@jolibox/implement 1.4.18 → 1.4.19

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.
@@ -1,6 +1,6 @@
1
- var RR=Object.create;var qa=Object.defineProperty,OR=Object.defineProperties,NR=Object.getOwnPropertyDescriptor,DR=Object.getOwnPropertyDescriptors,LR=Object.getOwnPropertyNames,La=Object.getOwnPropertySymbols,qR=Object.getPrototypeOf,Yl=Object.prototype.hasOwnProperty,Vm=Object.prototype.propertyIsEnumerable;var Hm=(e,t,r)=>t in e?qa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))Yl.call(t,r)&&Hm(e,r,t[r]);if(La)for(var r of La(t))Vm.call(t,r)&&Hm(e,r,t[r]);return e},J=(e,t)=>OR(e,DR(t));var tt=(e,t)=>{var r={};for(var n in e)Yl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&La)for(var n of La(e))t.indexOf(n)<0&&Vm.call(e,n)&&(r[n]=e[n]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$m=(e,t)=>{for(var r in t)qa(e,r,{get:t[r],enumerable:!0})},UR=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of LR(t))!Yl.call(e,i)&&i!==r&&qa(e,i,{get:()=>t[i],enumerable:!(n=NR(t,i))||n.enumerable});return e};var ue=(e,t,r)=>(r=e!=null?RR(qR(e)):{},UR(t||!e||!e.__esModule?qa(r,"default",{value:e,enumerable:!0}):r,e));var g=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});function GR(e){return!!(e!=null&&e.__nativeBuffers__)}function nu(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!GR(e))return e;let t=e.__nativeBuffers__;if(delete e.__nativeBuffers__,t)for(let r=0;r<t.length;r++){let n=t[r];if(n){let i;n.value?i=n.value:n.base64&&(i=HR(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function $R(e={},t=!1){let r=e,n=[];for(let[i,o]of Object.entries(r))if(o!==void 0&&o instanceof ArrayBuffer&&o.byteLength!==void 0){let a=t?{value:o,key:i}:{base64:VR(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function YR(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function og(e){return typeof e=="string"}function Xn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Wm(e){return typeof e=="number"&&!isNaN(e)}function XR(e){return typeof e=="undefined"}function ZR(e){return XR(e)||e===null}function ag(e){return typeof e=="function"}function eO(e){return Xn(e)&&ag(e.then)}function sg(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Zi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function sO(e,t,r){let n=e;for(let i of t)if(n&&typeof n=="object")n=n[i];else return r;return n===void 0?r:n}function pO(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function vO(e){return new Promise(t=>cg(e)(t))}function cg(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function yO(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new ro(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function _O(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)wO(e[n],t[n])}function wO(e,t){if(og(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(ag(t)){try{if(e instanceof t)return}catch(r){}if(!ZR(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function rt(e,t){if(ou.config[e]){Ja.warn(`[can i use] ${e} already registered`);return}ou.config[e]=br({},t)}function Qm(e,t){return`[${e}]:${t}`}function xO(e,t){Xm||(Zl=new Ma({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),eu=new Ma({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),tu=new Ma({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Zl.flush(),eu.flush(),tu.flush()}),Xm=!0);function r(i){var o,a;let{method:s,args:c,startTime:l,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:h,invokeCallback:v}=f,b=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Zl.report({status:b,method:n(s,c),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-l}),l&&h&&v&&(eu.report({status:b,method:s,isForeground:d,duration:Number((h-l).toFixed(3))}),tu.report({status:b,method:s,isForeground:d,duration:Number((Date.now()-v).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function OO(e,t){let r=0,n=!0,i=RO.resolveMap,o=xO(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,ru.forEach(c=>Ba(this,[c],function*({method:l,args:d,resolve:u}){let p=yield s(l,d);u(p)})),ru.length=0});let a=(c,l)=>{let d=i.get(Number(c));if(!d)return;let u=nu(l);d(u),i.delete(Number(c))},s=(c,l)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let h=new QR;if(i.set(r,h.resolve),!n&&AO.includes(c))return new Promise(C=>{ru.push({method:c,args:l,resolve:C})});let v=jR(br({},{method:c,startTime:p,args:l,isForeground:f}),{invokeType:"js-bridge"}),b=!TO&&IO.includes(c),y=$R(l,b),_=b?y:JSON.stringify(y),A;if(c.endsWith("Sync")||EO.includes(c)?A=(d=e.call)==null?void 0:d.call(e,c,y,r):typeof _=="string"?A=e.invoke(c,_,r):A=(u=e.call)==null?void 0:u.call(e,c,_,r),A){try{typeof A=="string"&&(A=JSON.parse(A)),A=nu(A)}catch(C){Ja.error(C)}return i.delete(r),A.errorCode&&(A.errorCode=Qm(c,A.errorCode)),o(br(br({},v),A)),A}return c.endsWith("Sync")&&i.delete(r),h.promise.then(C=>(C.errorCode&&(C.errorCode=Qm(c,C.errorCode)),o(br(br({},v),C)),C))};return{invokeNative:s,applyNative:(c,l)=>{let d=s(c,l);return eO(d)?d.then(u=>Zm(c,u)):Zm(c,d)},invokeHandler:a}}function Zm(e,t){if(!Xn(t)){Ja.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=JR(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new iO(n,i,o,a);return s}function NO(e){if(globalThis[Ua])return globalThis[Ua];let t=new cu,r=new cu,n=new Ma({eventName:"jolibox_publish",tagNameOrder:["type","event"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}});return t.on("onJoliboxEnterBackground",()=>{n.flush()}),globalThis[Ua]={onNative:t.on.bind(t),offNative:t.off.bind(t),subscribe:r.on.bind(r),unsubscribe:r.off.bind(r),subscribeHandler(i,o,a){let s=nu(o),c;if(s.__extra){c=s.params;let{type:l,startTime:d}=s.__extra;n.report({type:l,event:i,duration:Date.now()-d})}else c=s;if(i===lg){c.forEach(l=>{let[d,u]=l;try{r.emit(d.slice(to.length),u,a)}catch(p){}});return}if(i.startsWith(to)){r.emit(i.slice(to.length),c,a);return}t.emit(i,c,a)}},globalThis[Ua]}function DO(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,c)=>{if(c){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${to}${o}`,a,d);return}n||(n=Promise.resolve().then(()=>{t.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(lg,d,p)}catch(p){}}),n=void 0,t.clear()}));let l=t.get(s);l||(l=[],t.set(s,l)),l.push([`${to}${o}`,a])},emitNative:(o,a,s,c)=>{if(c){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(o,a,d),console.log("emitNative",o,a,d);return}i||(i=Promise.resolve().then(()=>{r.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(CO,d,p)}catch(p){}}),i=void 0,r.clear()}));let l=r.get(s);l||(l=[],r.set(s,l)),l.push([o,a])}}}function LO(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=NO(e),{invokeNative:a,invokeHandler:s,applyNative:c}=OO(e,r),{publish:l,emitNative:d}=DO(e);return{invokeHandler:s,subscribeHandler:t,applyNative:c,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:l,subscribe:i,unsubscribe:o}}function ug(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var MR,FR,BR,Fa,tg,rg,Km,br,jR,JR,Ba,HR,VR,ng,KR,WR,ig,zR,QR,tO,rO,ja,nO,iO,oO,Ql,Ja,zm,aO,iu,cO,ou,lO,uO,dO,Qn,fO,CW,au,ve,hO,mO,eo,ro,cu,lu,gO,Xl,bO,kW,uu,Ym,xW,Ga,SO,to,IO,AO,EO,lg,CO,kO,Ma,Xm,Zl,eu,tu,ru,TO,du,PO,RO,Ua,pu,qt,dg,pg,qO,fg,eg,fe,q,Ie,hg,UO,mg,yn,TW,PW,de=T(()=>{"use strict";MR=Object.defineProperty,FR=Object.defineProperties,BR=Object.getOwnPropertyDescriptors,Fa=Object.getOwnPropertySymbols,tg=Object.prototype.hasOwnProperty,rg=Object.prototype.propertyIsEnumerable,Km=(e,t,r)=>t in e?MR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,br=(e,t)=>{for(var r in t||(t={}))tg.call(t,r)&&Km(e,r,t[r]);if(Fa)for(var r of Fa(t))rg.call(t,r)&&Km(e,r,t[r]);return e},jR=(e,t)=>FR(e,BR(t)),JR=(e,t)=>{var r={};for(var n in e)tg.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Fa)for(var n of Fa(e))t.indexOf(n)<0&&rg.call(e,n)&&(r[n]=e[n]);return r},Ba=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});HR=e=>{let t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer};VR=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let i=0;i<n;i++)t+=String.fromCharCode(r[i]);return btoa(t)};ng=Object.defineProperty,KR=Object.getOwnPropertyDescriptor,WR=(e,t)=>{for(var r in t)ng(e,r,{get:t[r],enumerable:!0})},ig=(e,t,r,n)=>{for(var i=n>1?void 0:n?KR(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&ng(t,r,i),i},zR=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}QR=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};tO=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(tO||{}),rO=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},ja=class extends rO{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},nO=class extends ja{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},iO=class extends ja{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},oO=class extends ja{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Ql=class extends ja{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Ja={log:Zi("log"),warn:Zi("warn"),info:Zi("info"),error:Zi("error"),debug:Zi("debug")};Object.assign(globalThis,{logger:Ja});zm=Symbol.for("Jolibox.canIUseMap"),aO={};globalThis[zm]||(globalThis[zm]=aO);iu=Symbol.for("Jolibox.canIUseMap.native"),cO={};globalThis[iu]||(globalThis[iu]=cO);ou={get config(){return globalThis[iu]}},lO=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(lO||{}),uO=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(uO||{}),dO=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(dO||{});pO();Qn=typeof window=="undefined",fO=()=>!Qn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),CW={isiOS:!Qn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!Qn&&navigator.userAgent.includes("Android"),isMac:!Qn&&navigator.userAgent.includes("Mac"),isFacebook:!Qn&&navigator.userAgent.includes("FB_IAB"),isPC:!Qn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},au=class su{constructor(t){this.element=t,this.next=su.Undefined,this.prev=su.Undefined}};au.Undefined=new au(void 0);ve=au,hO=class{constructor(){this._first=ve.Undefined,this._last=ve.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ve.Undefined}clear(){let e=this._first;for(;e!==ve.Undefined;){let t=e.next;e.prev=ve.Undefined,e.next=ve.Undefined,e=t}this._first=ve.Undefined,this._last=ve.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ve(e);if(this._first===ve.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==ve.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ve.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ve.Undefined&&e.next!==ve.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ve.Undefined&&e.next===ve.Undefined?(this._first=ve.Undefined,this._last=ve.Undefined):e.next===ve.Undefined?(this._last=this._last.prev,this._last.next=ve.Undefined):e.prev===ve.Undefined&&(this._first=this._first.next,this._first.prev=ve.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ve.Undefined;)yield e.element,e=e.next}},mO=0,eo=class{constructor(e){this.value=e,this.id=mO++}},ro=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof eo&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,c;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let l=new eo(t);return this._listeners?this._listeners instanceof eo?this._listeners=[this._listeners,l]:this._listeners.push(l):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=l,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(c=(s=this.options)==null?void 0:s.onDidAddListener)==null||c.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof eo)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let h=this._listeners.indexOf(l);h>=0&&(this._listeners.splice(h,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof eo?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},cu=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new ro,o=c=>t(...c.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let c of s)t(...c.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new hO,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},lu={};WR(lu,{None:()=>gO,filter:()=>yO,once:()=>cg,toPromise:()=>vO});gO=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Xl=Symbol.for("Jolibox.hostEmitter"),bO=()=>{let e=new cu;return globalThis[Xl]||(globalThis[Xl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Xl]},kW=bO();uu=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ro,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return _O(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};uu=ig([sg],uu);Ym=class{constructor(){this._onWillExecuteCommand=new ro,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ro,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new uu,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=YR(3e4)),this._starActivation}executeCommand(e,...t){return zR(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),lu.toPromise(lu.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};Ym=ig([sg],Ym);xW=Symbol.for("Jolibox.commands");rt("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});rt("requestProductDetailsAsync",{version:102e4});rt("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});rt("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});rt("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});rt("userTrackAsync",{version:1e6});rt("openMiniapp",{version:1050100});rt("requestCoinDetailsSync",{version:1070100});rt("requestCoinDetailsAsync",{version:1070100});rt("sendServerEventAsync",{version:1070100});rt("requestGameLeaderboardSync",{version:108e4});rt("requestGameLeaderboardAsync",{version:108e4});rt("notifyTaskGameInfoAsync",{version:1080100});rt("loadAdsAsync",{version:1070200});rt("showAdAsync",{version:1070200});rt("onJoliboxHideLoading",{version:1070300});Ga=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let c=ou.config[a];if(!c)return!1;let l=(o=t==null?void 0:t())!=null?o:"",d=c.version;if(c.platforms&&l in c.platforms){let p=c.platforms[l];if(p===!1)return!1;typeof p=="number"&&(d=p)}if(typeof d!="number")return!1;let u=e();return typeof u!="number"||u<d?!1:s.length===0?!0:n(c,s,u)||n(c.properties,s,u)}function n(i,o,a){if(!i)return!1;let s=sO(i,o);if(!s)return!1;if(Xn(s)){let c=s.version;return Wm(c)?typeof a=="number"&&a>=c:!0}return Wm(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};SO=()=>fO(),to="custom_event_",IO=[],AO=[],EO=["env","createRequestTask","login"],lg="__batch_event__",CO="__native_batch_event__",kO=e=>e==="pv"?e:"default",Ma=class{constructor(e){this.interval=30,this.lastReportTime=0,this.cache={};let{reporter:t,interval:r=30,eventName:n,tagNameOrder:i,metricName:o,type:a}=e;this.reporter=t,this.interval=r,this.eventName=n,this.tagNameOrder=i,this.metricName=o,this.type=kO(a)}report(e){this.type==="pv"?this.addPVPoint(e):this.addPoint(e),this.tryReport(!1)}flush(){this.tryReport(!0)}tryReport(e){if(Object.keys(this.cache).length){if(e){this.reporter(this.processPoints(this.cache)),this.clearPoints();return}this.lastReportTime=this.lastReportTime||Date.now(),Date.now()-this.lastReportTime>=this.interval*1e3&&(this.reporter(this.processPoints(this.cache)),this.clearPoints(),this.lastReportTime=Date.now())}}addPoint(e){let t=(r,n,i,o)=>{let a=n.shift();if(a){let s=o[a];r[s]||(r[s]={}),t(r[s],n,i,o)}else r[i]||(r[i]=[]),r[i].push(o[i])};t(this.cache,[...this.tagNameOrder],this.metricName,e)}addPVPoint(e){let t=(n,i,o,a)=>{let s=i.shift();if(!s&&Xn(a))throw new Ql(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let c=[];if(Xn(a))c.push(...Object.keys(a));else if(og(a)){if(i.length>0)throw new Ql(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);c.push(a)}else throw new Ql(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);c.forEach(l=>{n[l]||(n[l]={});let d=Xn(a)?a[l]:a;t(n[l],[...i],o,d)})}else n[o]?n[o]++:n[o]=1},r={point:e,metricName:this.metricName,tagNameOrder:this.tagNameOrder};t(this.cache,[...this.tagNameOrder],this.metricName,e)}processPoints(e){return{eventName:this.eventName,tagNameOrder:this.tagNameOrder,metricName:this.metricName,metricAggregateType:this.type==="pv"?"itoa":"arr",data:e}}clearPoints(){this.cache={}}},Xm=!1;ru=[],TO=!1,du=Symbol.for("Jolibox.invokeResolverInstance"),PO=new Map;globalThis[du]||(globalThis[du]=PO);RO={get resolveMap(){return globalThis[du]}};Ua=Symbol.for("Jolibox.subscribeInstance");qt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){qt.trigger=e},onDoExit(e){qt.exit=e},onDoBackPress(e){qt.backPress=e}},dg=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new nO("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(typeof window!="undefined"&&window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{qt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>Ba(void 0,null,function*(){let o=yield qt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});pu={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=ug(o,"joliboxJSCore");window.prompt("publish",JSON.stringify({event:i,paramsString:JSON.stringify(s),webviewIds:a}))},call(i,o,a){let s=window.prompt("invoke",JSON.stringify({event:i,paramsString:JSON.stringify(o),callbackId:a}));if(s)return JSON.parse(s)}};let n={onDocumentReady:t,env:dg,doExit:r};globalThis.joliboxJSCore=br({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{qt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>Ba(void 0,null,function*(){let a=yield qt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});pu={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let c=ug(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(c),webviewIds:s}))},call(o,a,s){let c=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(c)return JSON.parse(c)},doBackPress(o){return Ba(this,null,function*(){let a=yield qt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:dg,doExit:n};globalThis.joliboxJSCore=br({},i)}pg=pu;if(!pg&&SO())throw new oO("No joliboxJScore is found, native bridge not found.");qO=br({},pg),fg=LO(qO),{invokeHandler:eg}=fg,{applyNative:fe,invokeNative:q,onNative:Ie,offNative:hg,subscribeHandler:UO,publish:mg,emitNative:yn,subscribe:TW,unsubscribe:PW}=fg;globalThis.joliboxJSBridge={callHandler:eg,invokeHandler:eg,subscribeHandler:UO}});function JO(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Va(e){return new Promise(t=>setTimeout(t,e))}function so(e){return typeof e=="string"}function _n(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Sg(e){return typeof e=="object"&&Array.isArray(e)}function $a(e){return typeof e=="number"&&!isNaN(e)}function $r(e){return e===!0||e===!1}function Ig(e){return typeof e=="undefined"}function co(e){return Ig(e)||e===null}function GO(e){return typeof e=="function"}function Ag(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Eg(e,t,r){if(typeof r!="function")throw new Error("[Jolibox SDK]Customizer must be a function");function n(i,o){for(let a in o)if(Object.prototype.hasOwnProperty.call(o,a)){let s=i[a],c=o[a],l=r(s,c,a,i,o);l!==void 0?i[a]=l:yg(c)&&yg(s)?i[a]=n(_g({},s),c):Array.isArray(c)&&Array.isArray(s)?i[a]=[...s,...c]:i[a]=c}return i}return n(e,t)}function yg(e){return e&&typeof e=="object"&&e.constructor===Object}function Cg(e,t){if(Array.isArray(e))return e.concat(t)}function lo(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:c=!0}=r,l=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...u){i=u,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,c&&!p&&l()},t),p)return l()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,l()},d}function VO(e,t){return(...r)=>t(e,...r)}function Zn(e){return t=>VO(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Qt(`${i}`))}})}function no(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Rg(e,t,r){let n=0;if(e!==t){let i=e.split("."),o=t.split("."),a=Math.max(i.length,o.length);for(let s=0;s<a;s++){let c=parseInt(i[s],10)||0,l=parseInt(o[s],10)||0;if(c>l){n=1;break}else if(c<l){n=-1;break}}}if(!r)return n;switch(r){case">":return n>0;case"<":return n<0;case"=":return n===0;case">=":return n>=0;case"<=":return n<=0;default:return!1}}function Eu(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function QO(e,t,r){let n=window.location.hostname,i=n.split("."),o=r?t:e;if(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n))return`${o}.jolibox.com`;if(i.length>=2){let a=i.slice(-2).join(".");if(a==="jolibox.com"||a==="pico-game.com"||a==="joyslite.com"||a==="mporia.com"||a==="pingplus.ai")return`${o}.${a}`}return`${o}.jolibox.com`}function Cu(e){return QO("app","stg-app",e)}function ti(e){return`https://${Cu(e)}`}function t1(e){return new Promise(t=>Lg(e)(t))}function Lg(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function r1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new ao(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function i1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)o1(e[n],t[n])}function o1(e,t){if(so(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(GO(t)){try{if(e instanceof t)return}catch(r){}if(!co(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function a1(){return typeof globalThis!="undefined"?globalThis[qg]:void 0}function s1(e){typeof globalThis!="undefined"&&(globalThis[qg]=e)}function z(e=!1){let t=a1();if(!e&&t)return t;let r=new Ha,n=new yu,i={registerCommand(o,a,s){r.registerCommand({id:o,handler:a,metadata:s})},executeCommand(o,...a){return n.executeCommand(o,...a)},excuteCommandSync(o,...a){return n.executeCommandThowErr(o,...a)}};return s1(i),i}var bu,MO,gg,FO,BO,vg,_g,jO,wg,bn,mt,HO,_u,uo,wu,kg,Qt,Ka,xg,Wa,Tg,Pg,po,Su,Xt,hu,$O,Iu,bg,KO,W,Au,WO,ei,io,fo,zO,YO,Og,Ng,Dg,Jt,mu,ye,XO,ZO,oo,ao,Zt,vu,e1,fu,n1,Ae,Ha,yu,qg,D=T(()=>{"use strict";bu=Object.defineProperty,MO=Object.getOwnPropertyDescriptor,gg=Object.getOwnPropertySymbols,FO=Object.prototype.hasOwnProperty,BO=Object.prototype.propertyIsEnumerable,vg=(e,t,r)=>t in e?bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_g=(e,t)=>{for(var r in t||(t={}))FO.call(t,r)&&vg(e,r,t[r]);if(gg)for(var r of gg(t))BO.call(t,r)&&vg(e,r,t[r]);return e},jO=(e,t)=>{for(var r in t)bu(e,r,{get:t[r],enumerable:!0})},wg=(e,t,r,n)=>{for(var i=n>1?void 0:n?MO(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&bu(t,r,i),i},bn=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}mt=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};HO=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(HO||{}),_u=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},uo=class extends _u{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},wu=class extends _u{constructor(){super(...arguments),this.kind="USER_ERROR"}},kg=class extends wu{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Qt=class extends wu{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_CUSTOM_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},Ka=class extends wu{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_PAYMENT_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},xg=class extends uo{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Wa=class extends uo{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="INTERNAL_PAYMENT_ERROR",this.priority="P0",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},Tg=class extends uo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},Pg=class extends uo{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},po=class extends _u{constructor(e,t,r,n,i){super(e),this.message=e,this.code=t,this.kind="API_ERROR",this.name="API_ERROR",r&&(this.errorType=r),n!==void 0&&(this.stack=n),i&&(this.priority=i)}toJSON(){return{message:this.message,stack:this.stack,name:this.name,code:this.code,errorType:this.errorType}}},Su=class extends uo{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Xt={log:no("log"),warn:no("warn"),info:no("info"),error:no("error"),debug:no("debug")};Object.assign(globalThis,{logger:Xt});hu=Symbol.for("Jolibox.canIUseMap"),$O={};globalThis[hu]||(globalThis[hu]=$O);Iu={get config(){return globalThis[hu]}},bg=Symbol.for("Jolibox.canIUseMap.native"),KO={};globalThis[bg]||(globalThis[bg]=KO);W=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(W||{}),Au=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Au||{}),WO=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(WO||{}),ei=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});Eu();io=typeof window=="undefined",fo={isiOS:!io&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!io&&navigator.userAgent.includes("Android"),isMac:!io&&navigator.userAgent.includes("Mac"),isFacebook:!io&&navigator.userAgent.includes("FB_IAB"),isPC:!io&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},zO="device_id",YO="advertising_id",Og=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,ei()),window.__joliboxLocalStorage__.getItem(e)),Ng=()=>new URLSearchParams(window.location.search).get("deviceId")||Og(zO),Dg=()=>new URLSearchParams(window.location.search).get("advertisingId")||Og(YO);Jt=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=_g({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return bn(this,null,function*(){let r=this.config.keyGenerator(e,t),n=this.pendingRequests.get(r);if(n)return console.log(`[RequestCacheService] Reusing pending request for ${e}`),n;let i=this.requestInternal(e,t),o=this.createTimeoutPromise(),a=Promise.race([i,o]).catch(s=>bn(this,null,function*(){if(s.message.includes("timeout")){let c=this.getValidCachedData(r);if(c)return console.warn(`[RequestCacheService] Request timeout, falling back to cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(c):c}throw s}));this.pendingRequests.set(r,a),i.then(s=>{console.log(`[RequestCacheService] Background request completed successfully for ${e}`)}).catch(s=>{console.warn(`[RequestCacheService] Background request failed for ${e}:`,s)});try{return yield a}finally{this.pendingRequests.delete(r)}})}requestInternal(e,t){return bn(this,null,function*(){var r,n,i,o;let a=this.config.keyGenerator(e,t),s=++this.requestSequence,c=this.getValidCachedData(a);if(console.log("[RequestCacheService] requestInternal start",e,"cached:",c),c){if(this.requestAdapter.extractRealTimeData&&this.requestAdapter.mergeData)try{let u=yield this.requestAdapter.execute(e,t),p=this.requestAdapter.extractRealTimeData(u),f=(n=(r=this.requestAdapter).extractCacheableData)==null?void 0:n.call(r,u);return f&&!this.config.consistencyChecker(c,f)?(console.log(`[RequestCacheService] Cache invalidated due to data change for ${e}`),this.setCachedDataWithSequence(a,f,s),u):this.requestAdapter.mergeData(c,p)}catch(u){return console.warn(`[RequestCacheService] Failed to fetch real-time data, using cache only for ${e}:`,u),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(c):c}return console.log(`[RequestCacheService] use cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(c):c}console.log(`[RequestCacheService] Cache miss, fetching fresh data for ${e} (sequence: ${s})`);let l=yield this.requestAdapter.execute(e,t),d=(o=(i=this.requestAdapter).extractCacheableData)==null?void 0:o.call(i,l);return d&&this.setCachedDataWithSequence(a,d,s),l})}createTimeoutPromise(){return new Promise((e,t)=>{setTimeout(()=>{t(new Error(`[RequestCacheService] Request timeout after ${this.config.timeout/1e3} seconds`))},this.config.timeout)})}getValidCachedData(e){let t=this.cache.get(e);return t?Date.now()>t.expiresAt?(this.cache.delete(e),null):t.data:null}setCachedDataWithSequence(e,t,r,n){let i=this.cache.get(e);if(i&&i.sequence>r){console.log(`[RequestCacheService] Ignoring stale cache update for ${e} (current: ${i.sequence}, incoming: ${r})`);return}let o=Date.now();this.cache.set(e,{data:JSON.parse(JSON.stringify(t)),timestamp:o,expiresAt:o+this.config.duration,key:e,sequence:r,metadata:n}),this.cacheSequences.set(e,r),console.log(`[RequestCacheService] Updated cache for ${e} with sequence ${r}`)}refreshCache(e,t){return bn(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return bn(this,null,function*(){var r,n;let i=this.config.keyGenerator(e,t),o=++this.requestSequence;console.log(`[RequestCacheService] Force request for ${e} (sequence: ${o})`);let a=yield this.requestAdapter.execute(e,t),s=(n=(r=this.requestAdapter).extractCacheableData)==null?void 0:n.call(r,a);return s&&(this.setCachedDataWithSequence(i,s,o),console.log(`[RequestCacheService] Force updated cache for ${e}`)),a})}warmupCache(e,t){return bn(this,null,function*(){let r=this.config.keyGenerator(e,t);if(this.pendingRequests.has(r)){console.log(`[RequestCacheService] Skipping warmup for ${e} - request in progress`);return}if(this.hasValidCache(r)){console.log(`[RequestCacheService] Skipping warmup for ${e} - valid cache exists`);return}try{console.log(`[RequestCacheService] Warming up cache for ${e}`),yield this.forceRequest(e,t)}catch(n){console.warn(`[RequestCacheService] Cache warmup failed for ${e}:`,n)}})}clearCache(e){e?(this.cache.delete(e),this.cacheSequences.delete(e),this.pendingRequests.delete(e),console.log(`[RequestCacheService] Cleared cache for ${e}`)):(this.cache.clear(),this.cacheSequences.clear(),this.pendingRequests.clear(),this.requestSequence=0,console.log("[RequestCacheService] Cleared all cache"))}clearExpiredCache(){let e=Date.now();for(let[t,r]of this.cache)e>r.expiresAt&&(this.cache.delete(t),this.cacheSequences.delete(t));console.log("[RequestCacheService] Cleared expired cache entries")}getCacheStats(){let e=Date.now(),t=0,r=0;for(let n of this.cache.values())e>n.expiresAt?r++:t++;return{cacheCount:this.cache.size,validCount:t,expiredCount:r,pendingRequestCount:this.pendingRequests.size}}getCacheKeys(){return Array.from(this.cache.keys())}hasValidCache(e){let t=this.cache.get(e);return t?Date.now()<=t.expiresAt:!1}getPendingRequestKeys(){return Array.from(this.pendingRequests.keys())}hasPendingRequest(e){return this.pendingRequests.has(e)}getCacheSequence(e){return this.cacheSequences.get(e)}},mu=class gu{constructor(t){this.element=t,this.next=gu.Undefined,this.prev=gu.Undefined}};mu.Undefined=new mu(void 0);ye=mu,XO=class{constructor(){this._first=ye.Undefined,this._last=ye.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ye.Undefined}clear(){let e=this._first;for(;e!==ye.Undefined;){let t=e.next;e.prev=ye.Undefined,e.next=ye.Undefined,e=t}this._first=ye.Undefined,this._last=ye.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ye(e);if(this._first===ye.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==ye.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ye.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ye.Undefined&&e.next!==ye.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ye.Undefined&&e.next===ye.Undefined?(this._first=ye.Undefined,this._last=ye.Undefined):e.next===ye.Undefined?(this._last=this._last.prev,this._last.next=ye.Undefined):e.prev===ye.Undefined&&(this._first=this._first.next,this._first.prev=ye.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ye.Undefined;)yield e.element,e=e.next}},ZO=0,oo=class{constructor(e){this.value=e,this.id=ZO++}},ao=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof oo&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,c;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let l=new oo(t);return this._listeners?this._listeners instanceof oo?this._listeners=[this._listeners,l]:this._listeners.push(l):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=l,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(c=(s=this.options)==null?void 0:s.onDidAddListener)==null||c.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof oo)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let h=this._listeners.indexOf(l);h>=0&&(this._listeners.splice(h,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof oo?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Zt=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new ao,o=c=>t(...c.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let c of s)t(...c.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new XO,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},vu={};jO(vu,{None:()=>e1,filter:()=>r1,once:()=>Lg,toPromise:()=>t1});e1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});fu=Symbol.for("Jolibox.hostEmitter"),n1=()=>{let e=new Zt;return globalThis[fu]||(globalThis[fu]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[fu]},Ae=n1();Ha=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ao,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return i1(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};Ha=wg([Ag],Ha);yu=class{constructor(){this._onWillExecuteCommand=new ao,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ao,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Ha,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=JO(3e4)),this._starActivation}executeCommand(e,...t){return bn(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),vu.toPromise(vu.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};yu=wg([Ag],yu);qg=Symbol.for("Jolibox.commands")});function Te(e,t={}){ku.emit("ERROR_REPORT",{error:e,options:t})}var ku,wn,It=T(()=>{"use strict";D();D();ku=new Zt,wn=new Zt;Te.debounce=lo(Te,50,{leading:!0})});var xu,c1,Ug,Mg,Fg=T(()=>{"use strict";D();It();xu=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t.length%4===0?"":"=".repeat(4-t.length%4),n=atob(t+r);try{return JSON.parse(n)}catch(i){return{}}},c1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Ug=e=>{var t;try{let i=(t=new URL(e).searchParams.get("joliSource"))==null?void 0:t.split(".");if(i!=null&&i.length){let[o,a,s]=i;return{headerJson:xu(o),payloadJson:xu(a),signature:xu(s)}}else throw"joli_source is missing"}catch(r){return Te(new xg(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Mg=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=c1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var l1,Tu,Bg=T(()=>{"use strict";D();l1="1.4.18",Tu=()=>l1});function Ru(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var u1,jg,Pu,Jg,be,d1,S,V=T(()=>{"use strict";D();Fg();Bg();D();u1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Ng(),adId:Dg(),pixelRatio:window.devicePixelRatio||1,platform:fo.isAndroid?"android":fo.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Tu()},schema:window.location.href,platform:fo.isAndroid?"android":fo.isiOS?"ios":"h5"},Pu=(jg=globalThis.joliboxJSCore)==null?void 0:jg.env,be=Object.assign({},(Jg=Pu==null?void 0:Pu())!=null?Jg:u1);d1=()=>{var v,b,y,_,A,C,x,k,E,H,ae;let{payloadJson:e,headerJson:t,signature:r}=be.schema.length?Ug(be.schema):{},n=`${be.deviceInfo.did}-${new Date().getTime()}`,o=new URL(be.schema.length?be.schema:window.location.href).searchParams,a=(y=(b=(v=o.get("mpId"))!=null?v:o.get("appId"))!=null?b:o.get("gameId"))!=null?y:"",s=(C=(A=(_=be.clientSessionId)!=null?_:e==null?void 0:e.sessionId)!=null?A:o.get("sessionId"))!=null?C:n,c=!!((k=(x=e==null?void 0:e.testAdsMode)!=null?x:e==null?void 0:e.__testAdsMode)!=null?k:o.get("testAdsMode")==="true"),l=(ae=(H=(E=e==null?void 0:e.joliboxEnv)!=null?E:e==null?void 0:e.__joliboxEnv)!=null?H:o.get("joliboxEnv"))!=null?ae:"production",d=l==="staging",u=t==null?void 0:t.channel,f=new URL(window.location.href).searchParams,h=e==null?void 0:e.__shouldInterupt;return{get startTime(){var N;return(N=performance.timeOrigin)!=null?N:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return c},get joliboxEnv(){return l},get joliSource(){var N,O;return(O=(N=f.get("joliSource"))!=null?N:o.get("joliSource"))!=null?O:null},get mpId(){var N;return(N=a!=null?a:e==null?void 0:e.id)!=null?N:""},get mpVersion(){var N;return(N=t==null?void 0:t.ver)!=null?N:Tu()},get mpType(){var N,O;return(O=(N=t==null?void 0:t.__mpType)!=null?N:e==null?void 0:e.__mpType)!=null?O:"game"},get platform(){var N;return((N=be.platform)!=null?N:be.deviceInfo.platform).toLowerCase()},get deviceInfo(){return be.deviceInfo},get sdkInfo(){return be.sdkInfo},get hostInfo(){return be.hostInfo},get hostUserInfo(){return be.hostUserInfo},get sessionId(){var N,O;return(O=(N=be.clientSessionId)!=null?N:s)!=null?O:n},get channel(){return u},get webviewId(){var N;return(N=be.webviewId)!=null?N:-1},get shouldInterupt(){return h},get from(){return e==null?void 0:e.__from},get baseApiHost(){return Cu(d)},get adId(){var N;return(N=be.deviceInfo.adId)!=null?N:be.deviceInfo.did},get language(){return be.deviceInfo.lang},get sdkEnvironment(){return Ru("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Ru("gamedistribution","jolibox")?"gamedistribution":Ru("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var X,ie,Ke;let N=(X=be.deviceInfo.pixelRatio)!=null?X:1,O=(ie=be.deviceInfo.statusBarHeight)!=null?ie:e==null?void 0:e.__androidStatusBarHeight,B=(Ke=be.deviceInfo.navigationBarHeight)!=null?Ke:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:O!==void 0?O/N:20,navigationBarHeight:B!==void 0?B/N:10}},get abTests(){var N,O;return(O=(N=be.abValues)==null?void 0:N.split(","))!=null?O:[]},get mpInfo(){var N;return(N=be.mpInfo)!=null?N:{mpName:"unknown"}},onEnvConfigChanged:N=>{Eg(be,N,Cg)},encodeJoliSourceQuery:N=>{var O,B;return t&&r?Mg(P(P({},e),N),(O=o.get("joliSource"))!=null?O:""):(B=o.get("joliSource"))!=null?B:""},setDoExitDirectly:()=>{h=!1}}},S=d1()});var Ou,Hg,p1,f1,Gg,h1,Vg=T(()=>{"use strict";D();It();V();D();Ou=!1,Hg=(e,t)=>e==null?!1:t in e,p1=e=>Hg(e,"kind"),f1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Gg=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=S.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:f1(e.name)},i=J(P({},n),{env:t.environment,isFromUser:r});r?wn.emit("GLOBAL_USER_ERROR",e,i):wn.emit("GLOBAL_ERROR",e,i)},h1=e=>Hg(e,"kind")&&e.kind==="USER_ERROR";ku.on("ERROR_REPORT",({error:e,options:t})=>{if(Ou)return;Ou=!0;let r=p1(e)&&e.raw?e.raw:e;try{let n=h1(e);Gg(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new Su(`${i}, origin error: ${r.message}`);Xt.error(o),Gg(new Su(o.message),{environment:t.environment},!1)}finally{Ou=!1}})});var Pe,Nu,Kr=T(()=>{"use strict";It();D();It();Pe=(e,t)=>{var r,n;return new po((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Nu=e=>new kg(e)});var $g=T(()=>{"use strict";Vg();Kr();D();de();wn.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};q("trackAsync",{event:"reportJsError",data:r})});wn.on("GLOBAL_USER_ERROR",(e,t)=>{Xt.log("UserError",e,t)})});var Du=T(()=>{"use strict"});function Kg(e,t){let r=(n,i,o)=>{let l=i!=null?i:{},{eventType:a}=l,s=tt(l,["eventType"]),c=J(P({tag:n,eventType:o!=null?o:a!=null?a:W.Other},t),{extra:P({},s)});n=="globalJsError"?Te(new Pg(JSON.stringify(c))):e("systemLog",c,S.webviewId)};return r.debounce=lo(r,500,{leading:!0}),r}function Wg(e){let t=(r,n,i)=>{var s;let o=(s=i&&JSON.stringify(i))!=null?s:0,a={speed_value_type:r,total_duration:n};o&&Object.assign(a,{extra:o}),e("joliboxSpeedAnalysis",a)};return t.debounce=lo(t,500,{leading:!0}),t}var zg=T(()=>{"use strict";D();D();It();V()});function Yg(e,t){let r=Kg(e,t),n=Wg(r);return{track:r,trackPerformance:n}}var Qg=T(()=>{"use strict";zg()});var Xg=T(()=>{"use strict";V();D();D()});var Zg=T(()=>{"use strict";Qg();Du();Xg()});var za,ev=T(()=>{"use strict";za=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.reportCount=0;this.notifyIframeGameEvent=(t,r)=>{let n=window.parent;n&&n!==window&&typeof n.postMessage=="function"&&n.postMessage({type:t,data:r},"*")};this.playGame=t=>{this.reportCount++,(this.reportCount<=3||(this.reportCount-3)%3===0)&&(this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_PLAY",{duration:t}))};this.timer=this.createRAFTimer(t=>{this.playGame(t)});this.interval=r!=null?r:5*1e3,t.on("visible",n=>{this.visible=n})}start(t){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:t!=null?t:0}}),this.tracker("OpenGame",{duration:t!=null?t:0}),this.notifyIframeGameEvent("JOLIBOX_GAME_OPEN",{duration:t!=null?t:0}),this.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_CLOSE",{duration:t}),this.timer.stop()}createRAFTimer(t){let r=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let f=Date.now(),h=f-r;h>=this.interval&&(this.visible&&(a+=Math.min(h,this.interval+1e3),t(a)),r=f),n=requestAnimationFrame(s)},c=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},l=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",f=>{o&&(console.log("visible",f),f?l():c())});let p=this.visible;return{start(){o||(o=!0,p?l():c())},stop(){o=!1,d(),u()}}}}});function Ya(e,t,r){var c,l,d;let n=new Map,i=(c=r==null?void 0:r.baseUrl)!=null?c:ti(S.testMode),o=(l=r==null?void 0:r.type)!=null?l:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return Ie("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:v,state:b}=f,y=tt(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(y):p.reject(y),n.delete(v)}else if(u.state==="fail"){let h=u,{requestTaskId:v,state:b}=h,y=tt(h,["requestTaskId","state"]);p.reject(y),n.delete(v)}else Xt.warn("onRequestTaskStateChange unknown event",u)}),Ae.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...h)=>g(this,[f,...h],function*(u,p={}){let v=Date.now(),b=m1(u,J(P({},p),{baseUrl:i})),{method:y="GET",responseType:_="text",dataType:A="json",timeout:C,enableCache:x=!1,appendHostCookie:k=!0}=p,E=Object.assign({"content-type":"application/json"},a,p.header),H={url:b,method:y,header:E,enableCache:x,responseType:_,appendHostCookie:k};if(y=="POST"||y=="PUT"){let X=v1(p.data,E["content-type"]);H.data=X}C&&Object.assign(H,{timeout:C});let{data:{requestTaskId:ae}}=q(e,H);if(typeof ae!="string")throw Pe({code:-1,msg:"requestTaskId is not a string"});let{resolve:N,reject:O,promise:B}=new mt;n.set(ae,{resolve:N,reject:O});try{let X=yield B,{data:ie}=X;return A==="json"&&typeof ie=="string"&&(ie=g1(ie)),{url:b,timeout:C,method:y,response:J(P({},X),{data:ie})}}catch(X){let ie=X;if(_n(ie)){let{errMsg:Ke,prefetchDetail:le,isPrefetch:Lt,errNo:Da}=ie;so(Ke)&&Te(Pe({code:-1,msg:Ke},{errNo:Da,errMsg:Ke}))}throw X}})}function g1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function v1(e,t="application/json"){let r=t.toLowerCase();return e===void 0?"":typeof e=="string"||e instanceof ArrayBuffer?e:r.includes("application/x-www-form-urlencoded")||r.includes("application/json")||typeof e=="object"?JSON.stringify(e):String(e)}var m1,Lu=T(()=>{"use strict";D();de();It();Kr();V();m1=(e,t)=>{if(/^https?:\/\//.test(e))return e;let r=t==null?void 0:t.query,i=new URLSearchParams(r).toString();return t!=null&&t.baseUrl?`${t.baseUrl}${e}${i?`?${i}`:""}`:`${e}${i?`?${i}`:""}`}});var qu,tv,Y,gt=T(()=>{"use strict";Lu();V();D();qu={};(tv=S.hostUserInfo)!=null&&tv.token&&(qu["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(qu["x-joli-source"]=S.joliSource);Y=Ya("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:ti(S.testMode),defaultHeaders:qu})});function rv(e){let t=Iu.config[e];return t||(t={},Iu.config[e]=t),(r,n)=>{if(t[r]){Xt.warn(`[can i use] ${r} already registered`);return}t[r]=P({},n)}}var nv=T(()=>{"use strict";D()});function Uu(e){iv=e}function Qa(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Qa(t)):Object.keys(e).reduce((t,r)=>(t[r]=Qa(e[r]),t),{})}function _r(e){return typeof e=="number"}function Mu(e){let t=Fu(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Fu(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var iv,Ne,Xa,Za,es,ts,ri,rs,ns,is,os,as,ss,cs,ls,us,ds,ps,fs,Bu=T(()=>{"use strict";iv=!1;Ne=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(iv)if(typeof t=="string")this.errors.push(t);else{let r=`${this.path} should be ${t.expect}`;this._optional&&t.expect!=="undefined"?r+=" or undefined, ":r+=", ",r+=`but got ${Mu(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Qa(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Qa(this._default)}optional(){return this._optional=!0,this}};Xa=class extends Ne{validate(t){return this._optional&&t===void 0?!0:_r(t)?_r(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):_r(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):_r(this._greater)&&t<=this._greater?this.fail(`the value of ${this.path} should be greater than ${this._greater}`):this._isInt&&t!==Math.floor(t)?this.fail(`the value of ${this.path} should be integer but got ${t}`):!0:this.fail({expect:"number",actual:t})}min(t){return this._min=t,this}max(t){return this._max=t,this}isInt(t){return this._isInt=t,this}greater(t){return this._greater=t,this}},Za=class extends Ne{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},es=class extends Ne{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(_r(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(_r(this._minLength)&&t.length<this._minLength)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minLength}`);if(typeof this._pattern=="string"){if(!new RegExp(this._pattern).test(t))return this.fail(`${this.path} should match pattern "${this._pattern}"`)}else if(this._pattern&&!this._pattern.test(t))return this.fail(`${this.path} should match pattern "${this._pattern.toString()}"`);return!0}minLength(t){return this._minLength=t,this}maxLength(t){return this._maxLength=t,this}pattern(t){return this._pattern=t,this}},ts=class extends Ne{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},ri=class extends Ne{validate(t){return!0}},rs=class extends Ne{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},ns=class extends Ne{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},is=class extends Ne{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},os=class extends Ne{constructor(...t){super(),this._items=t}validate(t){if(this._optional&&t===void 0)return!0;if(!this._items.includes(t)){let r=this._items.map(n=>JSON.stringify(n)).join(", ");return this.fail(`expect ${this.path} to be one of ${r}, but got ${Mu(t)}`)}return!0}},as=class extends Ne{constructor(r){super();this._item=r}validate(r){if(this._optional&&r===void 0)return!0;if(!Array.isArray(r))return this.fail({expect:"array",actual:r});if(_r(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(_r(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(_r(this._length)&&r.length!==this._length)return this.fail(`the length of ${this.path} should be equal to ${this._length}`);let n=this._item;if(!n)return!0;let i=!0;if(r.forEach((o,a)=>{if(n.path=`${this.path}[${a}]`,n.errors=this.errors,o===void 0&&n.hasDefault){r[a]=n.defaultValue;return}n.validate(o)||(n.hasFallback?r[a]=n.fallbackValue:i=!1)}),this._uniqueItems){let o=new Map;for(let a in r)o.has(r[a])?i=this.fail(`${this.path} should NOT have duplicate items (${this.path}[${o.get(r[a])}] and ${this.path}[${a}] are identical)`):o.set(r[a],a)}return i}minItems(r){return this._minItems=r,this}maxItems(r){return this._maxItems=r,this}uniqueItems(){return this._uniqueItems=!0,this}length(r){return this._length=r,this}},ss=class extends Ne{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Fu(r)!=="object")return this.fail({expect:"object",actual:r});let i=r,o=this._value;o.errors=this.errors;let a=!0;for(let s in i){let c=i[s];if(/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(s)?o.path=`${this.path}.${s}`:o.path=`${this.path}["${s}"]`,!(c===void 0&&o._optional)){if(c===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(c)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},cs=class extends Ne{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Fu(r)!=="object")return this.fail({expect:"object",actual:r});let n=r,i=!0;for(let o in this._object){let a=n[o],s=this._object[o];if(s.errors=this.errors,/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(o)?s.path=`${this.path}.${o}`:s.path=`${this.path}["${o}"]`,!(s._optional&&a===void 0)){if(a===void 0&&s.hasDefault){n[o]=s.defaultValue;continue}s.validate(a)||(s.hasFallback?n[o]=s.fallbackValue:i=!1)}}return i}},ls=class extends Ne{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Mu(this.value),actual:r}):!0}},us=class extends Ne{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
2
- or `);this.errors.push(o)}return n}},ds=class extends Ne{constructor(...t){super(),this._items=t;let r=0,n=t.length-1;for(;n>=0;n--){let i=t[n];if(i._optional||i.hasDefault)r+=1;else break}this._minItems=t.length-r}validate(t){if(t===void 0&&this._optional)return!0;if(!Array.isArray(t))return this.fail({expect:"array",actual:t});if(t.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);let r=!0;return this._items.forEach((n,i)=>{if(n.path=`${this.path}[${i}]`,n.errors=this.errors,t[i]===void 0&&n.hasDefault){t[i]=n.defaultValue;return}n.validate(t[i])||(n.hasFallback?t[i]=n._fallback:r=!1)}),r}},ps=class extends Ne{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},fs=class extends Ne{constructor(t){super(),this._ctor=t}validate(t){return t===void 0&&this._optional||t instanceof this._ctor?!0:this.fail({expect:`typedarray of ${this._ctor.name}`,actual:t})}}});function ju(e,t,r="param"){if(e.errors=[],e.path=r,Uu(!0),!e.validate(t)){let n=e.errors.join(`
3
- `);throw e.errors.length=0,Uu(!1),new TypeError(n)}}var I,Ju=T(()=>{"use strict";Bu();Bu();I={object(e){return new cs(e)},array(e){return new as(e)},tuple(...e){return new ds(...e)},literal(e){return new ls(e)},or(...e){return new us(...e)},symbol(){return new ts},record(e){return new ss(e)},function(){return new is},boolean(){return new Za},string(){return new es},number(){return new Xa},undefined(){return new rs},null(){return new ns},unknown(){return new ri},any(){return new ri},as(){return new ri},arraybuffer(){return new ps},enum(...e){return new os(...e)},typedarray(e){return new fs(e)}}});var hs,ov,av=T(()=>{"use strict";D();It();Ju();Kr();hs=1,ov=e=>{function t(n,i){return(...o)=>{var u,p,f,h;let a=Date.now(),s={method:n,trace_id:hs};hs+=1;let c="SUCCESS",l=`${n}:ok`,d=0;try{if(i.paramsSchema)try{ju(i.paramsSchema,o,"params")}catch(_){throw Nu(`${n}:fail ${_.message}`)}let v=i.implement(...o),b=v,y=`${n}:ok`;if(v&&"code"in v){let{code:_,data:A,message:C}=v;c=_,b=A,y=C}return{code:c,message:y,data:b}}catch(v){let b=v;d=(p=(u=b.code)!=null?u:b.errNo)!=null?p:2e3,c="FAILURE";let y=(h=(f=b.message)!=null?f:b.errMsg)!=null?h:`${v}`;return l=`${n}:${c} ${y.replace(/^\S+:(fail|cancel)\s?/,"")}`,Te(new po(l,d)),{code:c,message:l}}finally{let v=Date.now()-a}}}function r(n,i){return(...o)=>g(this,null,function*(){var p,f,h,v;let a=Sg(o)?o:[o],s=Date.now(),c={method:n,trace_id:hs};hs+=1;let l=`${n}:ok`,d="SUCCESS",u={code:d,message:l};try{if(i.paramsSchema)try{ju(i.paramsSchema,a,"params")}catch(_){throw Nu(_.message)}let y=yield i.implement(...a);if(y&&"code"in y){let{code:_,data:A,message:C}=y;d=_,l=C,y=A}return Object.assign(u,{code:d,message:l,data:y}),u}catch(b){let y=b,_=(f=(p=y.code)!=null?p:y.errNo)!=null?f:2e3;d="FAILURE";let A=(v=(h=y.message)!=null?h:y.errMsg)!=null?v:`${b}`,C=`${n}:${d} ${A.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:C}),Te(new po(C,_)),u}finally{let b=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});var _e,ms=T(()=>{"use strict";V();de();({canIUseNative:_e}=Ga(()=>S.sdkInfo.nativeSDKVersionCode,()=>S.platform))});function Gu(e){if(typeof e!="number"||e<=0)return"0.0.0";let t=e.toString(),r=0,n=0,i=0;return t.length>=1&&(r=parseInt(t.substring(0,1),10)),t.length>=3&&(n=parseInt(t.substring(1,3),10)),t.length>=5&&(i=parseInt(t.substring(3,5),10)),`${r}.${n}.${i}`}var sv=T(()=>{"use strict"});var K,Q,L,We=T(()=>{"use strict";nv();At();av();Ju();ms();sv();({createAPI:K,createSyncAPI:Q}=ov(j)),L=rv("native")});function cv(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),I1.includes(t)?t:""}function lv(e,t){try{switch(t){case"string":return e;case"object":return JSON.parse(e);case"number":return parseFloat(e);case"boolean":return e==="true";default:return""}}catch(r){return""}}function uv(e,t){try{switch(t){case"string":case"number":case"boolean":return`${e}`;case"object":return JSON.stringify(e);default:return""}}catch(r){return""}}var gs,b1,_1,w1,S1,i8,o8,I1,Wr,Et,ho=T(()=>{"use strict";We();de();D();gt();V();gs=z(),b1=K("getLocalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return g(this,null,function*(){let{response:t}=yield Y(`/api/games/user-storage/${S.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield fe("getLocalStorageAsync",{key:e}),s=lv(o,a);return{code:r,message:`${n}. fallback to native`,data:s}}catch(o){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get local storage failed",data:null}}})}});gs.registerCommand("StorageSDK.getItem",b1);L("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});_1=K("setStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number())),implement(e,t){return g(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield Y(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=cv(t),c=uv(t,s);return yield fe("setLocalStorageAsync",{key:e,data:c,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});gs.registerCommand("StorageSDK.setItem",_1);L("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});w1=K("removeStorage",{paramsSchema:I.tuple(I.string()),implement(e){return g(this,null,function*(){let t=S.mpId,{response:r}=yield Y(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield fe("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});gs.registerCommand("StorageSDK.removeItem",w1);L("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});S1=K("clearStorage",{implement(){return g(this,null,function*(){let e=S.mpId,{response:t}=yield Y(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});fe("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});gs.registerCommand("StorageSDK.clear",S1);L("storage.clear",{version:"1.0.0"});i8=K("getStorageInfo",{implement(){return g(this,null,function*(){let{data:e}=yield fe("getStorageInfoAsync");return e})}});L("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});o8=Q("getStorageInfoSync",{implement(){return q("getStorageInfoSync")}}),I1=["string","number","boolean","object",""];Wr=K("getGlobalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return g(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield fe("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:lv(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),Et=K("setGlobalStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number(),I.array())),implement(e,t){return g(this,null,function*(){try{let r=cv(t),n=uv(t,r);return yield fe("setGlobalStorageAsync",{key:e,data:n,dataType:r}),{code:"SUCCESS",message:"success"}}catch(r){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] set global storage failed"}}})}})});var dv,vs,pv=T(()=>{"use strict";V();ev();D();gt();de();ho();ms();dv="REPORT_FIRST_OPEN_GAME",vs=class extends za{constructor(r,n,i){super(n,i);this.started=!1;this.gameId=S.mpId,this.sessionId=S.sessionId,this.track=r,this.taskUrl=ti(S.testMode)+"/api/base/app-event"}reporter(r){return g(this,null,function*(){let{event:n,params:i,extraParams:o}=r,a={eventType:n,gameInfo:P({gameId:this.gameId,sessionId:this.sessionId},i)};o&&Object.assign(a,o),yield this.createTask(a)})}reportToNative(r){return g(this,null,function*(){let{event:n,params:i}=r;yield fe("userTrackAsync",{event:n,params:P({},i),gameId:this.gameId})})}tracker(r,n=null){this.track(r,n)}start(r){if(this.started){console.info("[JoliboxSDK] taskTrakcer has started");return}super.start(r),this.tryReportOpenGamePlus(),this.started=!0}tryReportOpenGamePlus(){Wr(dv).then(r=>{$r(r.data)&&r.data&&this.tracker("OpenGame_2Plus"),Et(dv,!0)})}createTask(r){return _e("sendServerEventAsync")?fe("sendServerEventAsync",{payload:r}):S.platform==="android"?Y("/api/base/app-event",{method:"POST",data:r}):fe("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(r)})}}});var vv={};$m(vv,{nativeTaskEmitter:()=>mo,taskTracker:()=>Ct,track:()=>j,trackPerformance:()=>mv});var A1,fv,hv,j,mv,gv,mo,Ct,At=T(()=>{"use strict";$g();D();Du();Zg();V();pv();de();A1=(e,t,r)=>{var l,d,u,p,f,h,v;let n=t,i=_n(n.extra)?n.extra:so(n.extra)?JSON.parse(n.extra):{},{mpName:o,mpVersion:a}=(l=S.mpInfo)!=null?l:{},s=P(P(J(P({},i),{mp_id:(d=n.mp_id)!=null?d:"",mp_version:(u=n.mp_version)!=null?u:"",session_id:S.sessionId,user_id:(f=(p=S.hostUserInfo)==null?void 0:p.uid)!=null?f:""}),o?{mp_name:o}:{}),a?{mp_info_version:a}:{}),c=(h=n.eventType)!=null?h:W.Other;q("trackAsync",{event:(v=t.tag)!=null?v:e,data:s,webviewId:r,eventType:c})},{track:j,trackPerformance:mv}=Yg(A1,{type:Au.AppSDK,platform:"native",jssdk_version:(hv=(fv=S.sdkInfo)==null?void 0:fv.jssdkVersion)!=null?hv:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),gv=z();gv.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{mv(e,t,r)});gv.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{j(e,t)});mo=new Zt,Ct=new vs(j,mo)});function yv(){let e=null,t=null,r=window.fetch,n=()=>{t=document.createElement("meta"),t.setAttribute("name","viewport"),t.setAttribute("content","viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"),t.setAttribute("data-jolibox-sdk","viewport-meta"),e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let s=`
1
+ var RR=Object.create;var Ua=Object.defineProperty,OR=Object.defineProperties,NR=Object.getOwnPropertyDescriptor,DR=Object.getOwnPropertyDescriptors,LR=Object.getOwnPropertyNames,qa=Object.getOwnPropertySymbols,qR=Object.getPrototypeOf,Ql=Object.prototype.hasOwnProperty,$h=Object.prototype.propertyIsEnumerable;var Vh=(e,t,r)=>t in e?Ua(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))Ql.call(t,r)&&Vh(e,r,t[r]);if(qa)for(var r of qa(t))$h.call(t,r)&&Vh(e,r,t[r]);return e},J=(e,t)=>OR(e,DR(t));var tt=(e,t)=>{var r={};for(var n in e)Ql.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&qa)for(var n of qa(e))t.indexOf(n)<0&&$h.call(e,n)&&(r[n]=e[n]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kh=(e,t)=>{for(var r in t)Ua(e,r,{get:t[r],enumerable:!0})},UR=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of LR(t))!Ql.call(e,i)&&i!==r&&Ua(e,i,{get:()=>t[i],enumerable:!(n=NR(t,i))||n.enumerable});return e};var ue=(e,t,r)=>(r=e!=null?RR(qR(e)):{},UR(t||!e||!e.__esModule?Ua(r,"default",{value:e,enumerable:!0}):r,e));var g=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});function GR(e){return!!(e!=null&&e.__nativeBuffers__)}function iu(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!GR(e))return e;let t=e.__nativeBuffers__;if(delete e.__nativeBuffers__,t)for(let r=0;r<t.length;r++){let n=t[r];if(n){let i;n.value?i=n.value:n.base64&&(i=HR(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function $R(e={},t=!1){let r=e,n=[];for(let[i,o]of Object.entries(r))if(o!==void 0&&o instanceof ArrayBuffer&&o.byteLength!==void 0){let a=t?{value:o,key:i}:{base64:VR(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function YR(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function ag(e){return typeof e=="string"}function Xn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function zh(e){return typeof e=="number"&&!isNaN(e)}function XR(e){return typeof e=="undefined"}function ZR(e){return XR(e)||e===null}function sg(e){return typeof e=="function"}function eO(e){return Xn(e)&&sg(e.then)}function cg(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function eo(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function sO(e,t,r){let n=e;for(let i of t)if(n&&typeof n=="object")n=n[i];else return r;return n===void 0?r:n}function pO(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function vO(e){return new Promise(t=>lg(e)(t))}function lg(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function yO(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new no(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function _O(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)wO(e[n],t[n])}function wO(e,t){if(ag(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(sg(t)){try{if(e instanceof t)return}catch(r){}if(!ZR(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function rt(e,t){if(au.config[e]){Ga.warn(`[can i use] ${e} already registered`);return}au.config[e]=br({},t)}function Xh(e,t){return`[${e}]:${t}`}function xO(e,t){Zh||(eu=new Fa({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),tu=new Fa({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),ru=new Fa({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{eu.flush(),tu.flush(),ru.flush()}),Zh=!0);function r(i){var o,a;let{method:s,args:c,startTime:l,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:v}=f,b=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";eu.report({status:b,method:n(s,c),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-l}),l&&m&&v&&(tu.report({status:b,method:s,isForeground:d,duration:Number((m-l).toFixed(3))}),ru.report({status:b,method:s,isForeground:d,duration:Number((Date.now()-v).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function OO(e,t){let r=0,n=!0,i=RO.resolveMap,o=xO(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,nu.forEach(c=>ja(this,[c],function*({method:l,args:d,resolve:u}){let p=yield s(l,d);u(p)})),nu.length=0});let a=(c,l)=>{let d=i.get(Number(c));if(!d)return;let u=iu(l);d(u),i.delete(Number(c))},s=(c,l)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new QR;if(i.set(r,m.resolve),!n&&AO.includes(c))return new Promise(k=>{nu.push({method:c,args:l,resolve:k})});let v=jR(br({},{method:c,startTime:p,args:l,isForeground:f}),{invokeType:"js-bridge"}),b=!TO&&IO.includes(c),y=$R(l,b),_=b?y:JSON.stringify(y),A;if(c.endsWith("Sync")||EO.includes(c)?A=(d=e.call)==null?void 0:d.call(e,c,y,r):typeof _=="string"?A=e.invoke(c,_,r):A=(u=e.call)==null?void 0:u.call(e,c,_,r),A){try{typeof A=="string"&&(A=JSON.parse(A)),A=iu(A)}catch(k){Ga.error(k)}return i.delete(r),A.errorCode&&(A.errorCode=Xh(c,A.errorCode)),o(br(br({},v),A)),A}return c.endsWith("Sync")&&i.delete(r),m.promise.then(k=>(k.errorCode&&(k.errorCode=Xh(c,k.errorCode)),o(br(br({},v),k)),k))};return{invokeNative:s,applyNative:(c,l)=>{let d=s(c,l);return eO(d)?d.then(u=>eg(c,u)):eg(c,d)},invokeHandler:a}}function eg(e,t){if(!Xn(t)){Ga.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=JR(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new iO(n,i,o,a);return s}function NO(e){if(globalThis[Ma])return globalThis[Ma];let t=new lu,r=new lu,n=new Fa({eventName:"jolibox_publish",tagNameOrder:["type","event"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}});return t.on("onJoliboxEnterBackground",()=>{n.flush()}),globalThis[Ma]={onNative:t.on.bind(t),offNative:t.off.bind(t),subscribe:r.on.bind(r),unsubscribe:r.off.bind(r),subscribeHandler(i,o,a){let s=iu(o),c;if(s.__extra){c=s.params;let{type:l,startTime:d}=s.__extra;n.report({type:l,event:i,duration:Date.now()-d})}else c=s;if(i===ug){c.forEach(l=>{let[d,u]=l;try{r.emit(d.slice(ro.length),u,a)}catch(p){}});return}if(i.startsWith(ro)){r.emit(i.slice(ro.length),c,a);return}t.emit(i,c,a)}},globalThis[Ma]}function DO(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,c)=>{if(c){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${ro}${o}`,a,d);return}n||(n=Promise.resolve().then(()=>{t.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(ug,d,p)}catch(p){}}),n=void 0,t.clear()}));let l=t.get(s);l||(l=[],t.set(s,l)),l.push([`${ro}${o}`,a])},emitNative:(o,a,s,c)=>{if(c){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(o,a,d),console.log("emitNative",o,a,d);return}i||(i=Promise.resolve().then(()=>{r.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(kO,d,p)}catch(p){}}),i=void 0,r.clear()}));let l=r.get(s);l||(l=[],r.set(s,l)),l.push([o,a])}}}function LO(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=NO(e),{invokeNative:a,invokeHandler:s,applyNative:c}=OO(e,r),{publish:l,emitNative:d}=DO(e);return{invokeHandler:s,subscribeHandler:t,applyNative:c,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:l,subscribe:i,unsubscribe:o}}function dg(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var MR,FR,BR,Ba,rg,ng,Wh,br,jR,JR,ja,HR,VR,ig,KR,WR,og,zR,QR,tO,rO,Ja,nO,iO,oO,Xl,Ga,Yh,aO,ou,cO,au,lO,uO,dO,Qn,fO,kW,su,ve,mO,hO,to,no,lu,uu,gO,Zl,bO,CW,du,Qh,xW,Ha,SO,ro,IO,AO,EO,ug,kO,CO,Fa,Zh,eu,tu,ru,nu,TO,pu,PO,RO,Ma,fu,qt,pg,fg,qO,mg,tg,fe,q,Ie,hg,UO,gg,yn,TW,PW,de=T(()=>{"use strict";MR=Object.defineProperty,FR=Object.defineProperties,BR=Object.getOwnPropertyDescriptors,Ba=Object.getOwnPropertySymbols,rg=Object.prototype.hasOwnProperty,ng=Object.prototype.propertyIsEnumerable,Wh=(e,t,r)=>t in e?MR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,br=(e,t)=>{for(var r in t||(t={}))rg.call(t,r)&&Wh(e,r,t[r]);if(Ba)for(var r of Ba(t))ng.call(t,r)&&Wh(e,r,t[r]);return e},jR=(e,t)=>FR(e,BR(t)),JR=(e,t)=>{var r={};for(var n in e)rg.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ba)for(var n of Ba(e))t.indexOf(n)<0&&ng.call(e,n)&&(r[n]=e[n]);return r},ja=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});HR=e=>{let t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer};VR=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let i=0;i<n;i++)t+=String.fromCharCode(r[i]);return btoa(t)};ig=Object.defineProperty,KR=Object.getOwnPropertyDescriptor,WR=(e,t)=>{for(var r in t)ig(e,r,{get:t[r],enumerable:!0})},og=(e,t,r,n)=>{for(var i=n>1?void 0:n?KR(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&ig(t,r,i),i},zR=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}QR=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};tO=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(tO||{}),rO=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},Ja=class extends rO{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},nO=class extends Ja{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},iO=class extends Ja{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},oO=class extends Ja{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Xl=class extends Ja{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Ga={log:eo("log"),warn:eo("warn"),info:eo("info"),error:eo("error"),debug:eo("debug")};Object.assign(globalThis,{logger:Ga});Yh=Symbol.for("Jolibox.canIUseMap"),aO={};globalThis[Yh]||(globalThis[Yh]=aO);ou=Symbol.for("Jolibox.canIUseMap.native"),cO={};globalThis[ou]||(globalThis[ou]=cO);au={get config(){return globalThis[ou]}},lO=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(lO||{}),uO=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(uO||{}),dO=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(dO||{});pO();Qn=typeof window=="undefined",fO=()=>!Qn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),kW={isiOS:!Qn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!Qn&&navigator.userAgent.includes("Android"),isMac:!Qn&&navigator.userAgent.includes("Mac"),isFacebook:!Qn&&navigator.userAgent.includes("FB_IAB"),isPC:!Qn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},su=class cu{constructor(t){this.element=t,this.next=cu.Undefined,this.prev=cu.Undefined}};su.Undefined=new su(void 0);ve=su,mO=class{constructor(){this._first=ve.Undefined,this._last=ve.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ve.Undefined}clear(){let e=this._first;for(;e!==ve.Undefined;){let t=e.next;e.prev=ve.Undefined,e.next=ve.Undefined,e=t}this._first=ve.Undefined,this._last=ve.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ve(e);if(this._first===ve.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==ve.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ve.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ve.Undefined&&e.next!==ve.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ve.Undefined&&e.next===ve.Undefined?(this._first=ve.Undefined,this._last=ve.Undefined):e.next===ve.Undefined?(this._last=this._last.prev,this._last.next=ve.Undefined):e.prev===ve.Undefined&&(this._first=this._first.next,this._first.prev=ve.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ve.Undefined;)yield e.element,e=e.next}},hO=0,to=class{constructor(e){this.value=e,this.id=hO++}},no=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof to&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,c;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let l=new to(t);return this._listeners?this._listeners instanceof to?this._listeners=[this._listeners,l]:this._listeners.push(l):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=l,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(c=(s=this.options)==null?void 0:s.onDidAddListener)==null||c.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof to)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(l);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof to?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},lu=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new no,o=c=>t(...c.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let c of s)t(...c.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new mO,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},uu={};WR(uu,{None:()=>gO,filter:()=>yO,once:()=>lg,toPromise:()=>vO});gO=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Zl=Symbol.for("Jolibox.hostEmitter"),bO=()=>{let e=new lu;return globalThis[Zl]||(globalThis[Zl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Zl]},CW=bO();du=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new no,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return _O(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};du=og([cg],du);Qh=class{constructor(){this._onWillExecuteCommand=new no,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new no,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new du,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=YR(3e4)),this._starActivation}executeCommand(e,...t){return zR(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),uu.toPromise(uu.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};Qh=og([cg],Qh);xW=Symbol.for("Jolibox.commands");rt("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});rt("requestProductDetailsAsync",{version:102e4});rt("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});rt("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});rt("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});rt("userTrackAsync",{version:1e6});rt("openMiniapp",{version:1050100});rt("requestCoinDetailsSync",{version:1070100});rt("requestCoinDetailsAsync",{version:1070100});rt("sendServerEventAsync",{version:1070100});rt("requestGameLeaderboardSync",{version:108e4});rt("requestGameLeaderboardAsync",{version:108e4});rt("notifyTaskGameInfoAsync",{version:1080100});rt("loadAdsAsync",{version:1070200});rt("showAdAsync",{version:1070200});rt("onJoliboxHideLoading",{version:1070300});Ha=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let c=au.config[a];if(!c)return!1;let l=(o=t==null?void 0:t())!=null?o:"",d=c.version;if(c.platforms&&l in c.platforms){let p=c.platforms[l];if(p===!1)return!1;typeof p=="number"&&(d=p)}if(typeof d!="number")return!1;let u=e();return typeof u!="number"||u<d?!1:s.length===0?!0:n(c,s,u)||n(c.properties,s,u)}function n(i,o,a){if(!i)return!1;let s=sO(i,o);if(!s)return!1;if(Xn(s)){let c=s.version;return zh(c)?typeof a=="number"&&a>=c:!0}return zh(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};SO=()=>fO(),ro="custom_event_",IO=[],AO=[],EO=["env","createRequestTask","login"],ug="__batch_event__",kO="__native_batch_event__",CO=e=>e==="pv"?e:"default",Fa=class{constructor(e){this.interval=30,this.lastReportTime=0,this.cache={};let{reporter:t,interval:r=30,eventName:n,tagNameOrder:i,metricName:o,type:a}=e;this.reporter=t,this.interval=r,this.eventName=n,this.tagNameOrder=i,this.metricName=o,this.type=CO(a)}report(e){this.type==="pv"?this.addPVPoint(e):this.addPoint(e),this.tryReport(!1)}flush(){this.tryReport(!0)}tryReport(e){if(Object.keys(this.cache).length){if(e){this.reporter(this.processPoints(this.cache)),this.clearPoints();return}this.lastReportTime=this.lastReportTime||Date.now(),Date.now()-this.lastReportTime>=this.interval*1e3&&(this.reporter(this.processPoints(this.cache)),this.clearPoints(),this.lastReportTime=Date.now())}}addPoint(e){let t=(r,n,i,o)=>{let a=n.shift();if(a){let s=o[a];r[s]||(r[s]={}),t(r[s],n,i,o)}else r[i]||(r[i]=[]),r[i].push(o[i])};t(this.cache,[...this.tagNameOrder],this.metricName,e)}addPVPoint(e){let t=(n,i,o,a)=>{let s=i.shift();if(!s&&Xn(a))throw new Xl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let c=[];if(Xn(a))c.push(...Object.keys(a));else if(ag(a)){if(i.length>0)throw new Xl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);c.push(a)}else throw new Xl(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);c.forEach(l=>{n[l]||(n[l]={});let d=Xn(a)?a[l]:a;t(n[l],[...i],o,d)})}else n[o]?n[o]++:n[o]=1},r={point:e,metricName:this.metricName,tagNameOrder:this.tagNameOrder};t(this.cache,[...this.tagNameOrder],this.metricName,e)}processPoints(e){return{eventName:this.eventName,tagNameOrder:this.tagNameOrder,metricName:this.metricName,metricAggregateType:this.type==="pv"?"itoa":"arr",data:e}}clearPoints(){this.cache={}}},Zh=!1;nu=[],TO=!1,pu=Symbol.for("Jolibox.invokeResolverInstance"),PO=new Map;globalThis[pu]||(globalThis[pu]=PO);RO={get resolveMap(){return globalThis[pu]}};Ma=Symbol.for("Jolibox.subscribeInstance");qt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){qt.trigger=e},onDoExit(e){qt.exit=e},onDoBackPress(e){qt.backPress=e}},pg=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new nO("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(typeof window!="undefined"&&window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{qt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>ja(void 0,null,function*(){let o=yield qt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});fu={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=dg(o,"joliboxJSCore");window.prompt("publish",JSON.stringify({event:i,paramsString:JSON.stringify(s),webviewIds:a}))},call(i,o,a){let s=window.prompt("invoke",JSON.stringify({event:i,paramsString:JSON.stringify(o),callbackId:a}));if(s)return JSON.parse(s)}};let n={onDocumentReady:t,env:pg,doExit:r};globalThis.joliboxJSCore=br({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{qt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>ja(void 0,null,function*(){let a=yield qt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});fu={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let c=dg(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(c),webviewIds:s}))},call(o,a,s){let c=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(c)return JSON.parse(c)},doBackPress(o){return ja(this,null,function*(){let a=yield qt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:pg,doExit:n};globalThis.joliboxJSCore=br({},i)}fg=fu;if(!fg&&SO())throw new oO("No joliboxJScore is found, native bridge not found.");qO=br({},fg),mg=LO(qO),{invokeHandler:tg}=mg,{applyNative:fe,invokeNative:q,onNative:Ie,offNative:hg,subscribeHandler:UO,publish:gg,emitNative:yn,subscribe:TW,unsubscribe:PW}=mg;globalThis.joliboxJSBridge={callHandler:tg,invokeHandler:tg,subscribeHandler:UO}});function JO(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function $a(e){return new Promise(t=>setTimeout(t,e))}function co(e){return typeof e=="string"}function _n(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Ig(e){return typeof e=="object"&&Array.isArray(e)}function Ka(e){return typeof e=="number"&&!isNaN(e)}function $r(e){return e===!0||e===!1}function Ag(e){return typeof e=="undefined"}function lo(e){return Ag(e)||e===null}function GO(e){return typeof e=="function"}function Eg(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function kg(e,t,r){if(typeof r!="function")throw new Error("[Jolibox SDK]Customizer must be a function");function n(i,o){for(let a in o)if(Object.prototype.hasOwnProperty.call(o,a)){let s=i[a],c=o[a],l=r(s,c,a,i,o);l!==void 0?i[a]=l:bg(c)&&bg(s)?i[a]=n(wg({},s),c):Array.isArray(c)&&Array.isArray(s)?i[a]=[...s,...c]:i[a]=c}return i}return n(e,t)}function bg(e){return e&&typeof e=="object"&&e.constructor===Object}function Cg(e,t){if(Array.isArray(e))return e.concat(t)}function uo(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:c=!0}=r,l=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...u){i=u,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,c&&!p&&l()},t),p)return l()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,l()},d}function VO(e,t){return(...r)=>t(e,...r)}function Zn(e){return t=>VO(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Qt(`${i}`))}})}function io(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Og(e,t,r){let n=0;if(e!==t){let i=e.split("."),o=t.split("."),a=Math.max(i.length,o.length);for(let s=0;s<a;s++){let c=parseInt(i[s],10)||0,l=parseInt(o[s],10)||0;if(c>l){n=1;break}else if(c<l){n=-1;break}}}if(!r)return n;switch(r){case">":return n>0;case"<":return n<0;case"=":return n===0;case">=":return n>=0;case"<=":return n<=0;default:return!1}}function ku(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function QO(e,t,r){let n=window.location.hostname,i=n.split("."),o=r?t:e;if(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n))return`${o}.jolibox.com`;if(i.length>=2){let a=i.slice(-2).join(".");if(a==="jolibox.com"||a==="pico-game.com"||a==="joyslite.com"||a==="mporia.com"||a==="pingplus.ai")return`${o}.${a}`}return`${o}.jolibox.com`}function Cu(e){return QO("app","stg-app",e)}function ti(e){return`https://${Cu(e)}`}function t1(e){return new Promise(t=>qg(e)(t))}function qg(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function r1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new so(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function i1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)o1(e[n],t[n])}function o1(e,t){if(co(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(GO(t)){try{if(e instanceof t)return}catch(r){}if(!lo(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function a1(){return typeof globalThis!="undefined"?globalThis[Ug]:void 0}function s1(e){typeof globalThis!="undefined"&&(globalThis[Ug]=e)}function z(e=!1){let t=a1();if(!e&&t)return t;let r=new Va,n=new bu,i={registerCommand(o,a,s){r.registerCommand({id:o,handler:a,metadata:s})},executeCommand(o,...a){return n.executeCommand(o,...a)},excuteCommandSync(o,...a){return n.executeCommandThowErr(o,...a)}};return s1(i),i}var _u,MO,vg,FO,BO,yg,wg,jO,Sg,bn,ht,HO,wu,po,Su,xg,Qt,Wa,Tg,za,Pg,Rg,fo,Iu,Xt,hu,$O,Au,_g,KO,W,Eu,WO,ei,oo,mo,zO,YO,Ng,Dg,Lg,Jt,gu,ye,XO,ZO,ao,so,Zt,yu,e1,mu,n1,Ae,Va,bu,Ug,D=T(()=>{"use strict";_u=Object.defineProperty,MO=Object.getOwnPropertyDescriptor,vg=Object.getOwnPropertySymbols,FO=Object.prototype.hasOwnProperty,BO=Object.prototype.propertyIsEnumerable,yg=(e,t,r)=>t in e?_u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wg=(e,t)=>{for(var r in t||(t={}))FO.call(t,r)&&yg(e,r,t[r]);if(vg)for(var r of vg(t))BO.call(t,r)&&yg(e,r,t[r]);return e},jO=(e,t)=>{for(var r in t)_u(e,r,{get:t[r],enumerable:!0})},Sg=(e,t,r,n)=>{for(var i=n>1?void 0:n?MO(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&_u(t,r,i),i},bn=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}ht=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};HO=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(HO||{}),wu=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},po=class extends wu{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},Su=class extends wu{constructor(){super(...arguments),this.kind="USER_ERROR"}},xg=class extends Su{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Qt=class extends Su{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_CUSTOM_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},Wa=class extends Su{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_PAYMENT_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},Tg=class extends po{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},za=class extends po{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="INTERNAL_PAYMENT_ERROR",this.priority="P0",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},Pg=class extends po{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},Rg=class extends po{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},fo=class extends wu{constructor(e,t,r,n,i){super(e),this.message=e,this.code=t,this.kind="API_ERROR",this.name="API_ERROR",r&&(this.errorType=r),n!==void 0&&(this.stack=n),i&&(this.priority=i)}toJSON(){return{message:this.message,stack:this.stack,name:this.name,code:this.code,errorType:this.errorType}}},Iu=class extends po{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Xt={log:io("log"),warn:io("warn"),info:io("info"),error:io("error"),debug:io("debug")};Object.assign(globalThis,{logger:Xt});hu=Symbol.for("Jolibox.canIUseMap"),$O={};globalThis[hu]||(globalThis[hu]=$O);Au={get config(){return globalThis[hu]}},_g=Symbol.for("Jolibox.canIUseMap.native"),KO={};globalThis[_g]||(globalThis[_g]=KO);W=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(W||{}),Eu=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Eu||{}),WO=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(WO||{}),ei=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});ku();oo=typeof window=="undefined",mo={isiOS:!oo&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!oo&&navigator.userAgent.includes("Android"),isMac:!oo&&navigator.userAgent.includes("Mac"),isFacebook:!oo&&navigator.userAgent.includes("FB_IAB"),isPC:!oo&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},zO="device_id",YO="advertising_id",Ng=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,ei()),window.__joliboxLocalStorage__.getItem(e)),Dg=()=>new URLSearchParams(window.location.search).get("deviceId")||Ng(zO),Lg=()=>new URLSearchParams(window.location.search).get("advertisingId")||Ng(YO);Jt=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=wg({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return bn(this,null,function*(){let r=this.config.keyGenerator(e,t),n=this.pendingRequests.get(r);if(n)return console.log(`[RequestCacheService] Reusing pending request for ${e}`),n;let i=this.requestInternal(e,t),o=this.createTimeoutPromise(),a=Promise.race([i,o]).catch(s=>bn(this,null,function*(){if(s.message.includes("timeout")){let c=this.getValidCachedData(r);if(c)return console.warn(`[RequestCacheService] Request timeout, falling back to cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(c):c}throw s}));this.pendingRequests.set(r,a),i.then(s=>{console.log(`[RequestCacheService] Background request completed successfully for ${e}`)}).catch(s=>{console.warn(`[RequestCacheService] Background request failed for ${e}:`,s)});try{return yield a}finally{this.pendingRequests.delete(r)}})}requestInternal(e,t){return bn(this,null,function*(){var r,n,i,o;let a=this.config.keyGenerator(e,t),s=++this.requestSequence,c=this.getValidCachedData(a);if(console.log("[RequestCacheService] requestInternal start",e,"cached:",c),c){if(this.requestAdapter.extractRealTimeData&&this.requestAdapter.mergeData)try{let u=yield this.requestAdapter.execute(e,t),p=this.requestAdapter.extractRealTimeData(u),f=(n=(r=this.requestAdapter).extractCacheableData)==null?void 0:n.call(r,u);return f&&!this.config.consistencyChecker(c,f)?(console.log(`[RequestCacheService] Cache invalidated due to data change for ${e}`),this.setCachedDataWithSequence(a,f,s),u):this.requestAdapter.mergeData(c,p)}catch(u){return console.warn(`[RequestCacheService] Failed to fetch real-time data, using cache only for ${e}:`,u),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(c):c}return console.log(`[RequestCacheService] use cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(c):c}console.log(`[RequestCacheService] Cache miss, fetching fresh data for ${e} (sequence: ${s})`);let l=yield this.requestAdapter.execute(e,t),d=(o=(i=this.requestAdapter).extractCacheableData)==null?void 0:o.call(i,l);return d&&this.setCachedDataWithSequence(a,d,s),l})}createTimeoutPromise(){return new Promise((e,t)=>{setTimeout(()=>{t(new Error(`[RequestCacheService] Request timeout after ${this.config.timeout/1e3} seconds`))},this.config.timeout)})}getValidCachedData(e){let t=this.cache.get(e);return t?Date.now()>t.expiresAt?(this.cache.delete(e),null):t.data:null}setCachedDataWithSequence(e,t,r,n){let i=this.cache.get(e);if(i&&i.sequence>r){console.log(`[RequestCacheService] Ignoring stale cache update for ${e} (current: ${i.sequence}, incoming: ${r})`);return}let o=Date.now();this.cache.set(e,{data:JSON.parse(JSON.stringify(t)),timestamp:o,expiresAt:o+this.config.duration,key:e,sequence:r,metadata:n}),this.cacheSequences.set(e,r),console.log(`[RequestCacheService] Updated cache for ${e} with sequence ${r}`)}refreshCache(e,t){return bn(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return bn(this,null,function*(){var r,n;let i=this.config.keyGenerator(e,t),o=++this.requestSequence;console.log(`[RequestCacheService] Force request for ${e} (sequence: ${o})`);let a=yield this.requestAdapter.execute(e,t),s=(n=(r=this.requestAdapter).extractCacheableData)==null?void 0:n.call(r,a);return s&&(this.setCachedDataWithSequence(i,s,o),console.log(`[RequestCacheService] Force updated cache for ${e}`)),a})}warmupCache(e,t){return bn(this,null,function*(){let r=this.config.keyGenerator(e,t);if(this.pendingRequests.has(r)){console.log(`[RequestCacheService] Skipping warmup for ${e} - request in progress`);return}if(this.hasValidCache(r)){console.log(`[RequestCacheService] Skipping warmup for ${e} - valid cache exists`);return}try{console.log(`[RequestCacheService] Warming up cache for ${e}`),yield this.forceRequest(e,t)}catch(n){console.warn(`[RequestCacheService] Cache warmup failed for ${e}:`,n)}})}clearCache(e){e?(this.cache.delete(e),this.cacheSequences.delete(e),this.pendingRequests.delete(e),console.log(`[RequestCacheService] Cleared cache for ${e}`)):(this.cache.clear(),this.cacheSequences.clear(),this.pendingRequests.clear(),this.requestSequence=0,console.log("[RequestCacheService] Cleared all cache"))}clearExpiredCache(){let e=Date.now();for(let[t,r]of this.cache)e>r.expiresAt&&(this.cache.delete(t),this.cacheSequences.delete(t));console.log("[RequestCacheService] Cleared expired cache entries")}getCacheStats(){let e=Date.now(),t=0,r=0;for(let n of this.cache.values())e>n.expiresAt?r++:t++;return{cacheCount:this.cache.size,validCount:t,expiredCount:r,pendingRequestCount:this.pendingRequests.size}}getCacheKeys(){return Array.from(this.cache.keys())}hasValidCache(e){let t=this.cache.get(e);return t?Date.now()<=t.expiresAt:!1}getPendingRequestKeys(){return Array.from(this.pendingRequests.keys())}hasPendingRequest(e){return this.pendingRequests.has(e)}getCacheSequence(e){return this.cacheSequences.get(e)}},gu=class vu{constructor(t){this.element=t,this.next=vu.Undefined,this.prev=vu.Undefined}};gu.Undefined=new gu(void 0);ye=gu,XO=class{constructor(){this._first=ye.Undefined,this._last=ye.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ye.Undefined}clear(){let e=this._first;for(;e!==ye.Undefined;){let t=e.next;e.prev=ye.Undefined,e.next=ye.Undefined,e=t}this._first=ye.Undefined,this._last=ye.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ye(e);if(this._first===ye.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==ye.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ye.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ye.Undefined&&e.next!==ye.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ye.Undefined&&e.next===ye.Undefined?(this._first=ye.Undefined,this._last=ye.Undefined):e.next===ye.Undefined?(this._last=this._last.prev,this._last.next=ye.Undefined):e.prev===ye.Undefined&&(this._first=this._first.next,this._first.prev=ye.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ye.Undefined;)yield e.element,e=e.next}},ZO=0,ao=class{constructor(e){this.value=e,this.id=ZO++}},so=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof ao&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,c;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let l=new ao(t);return this._listeners?this._listeners instanceof ao?this._listeners=[this._listeners,l]:this._listeners.push(l):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=l,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(c=(s=this.options)==null?void 0:s.onDidAddListener)==null||c.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof ao)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(l);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof ao?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Zt=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new so,o=c=>t(...c.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let c of s)t(...c.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new XO,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},yu={};jO(yu,{None:()=>e1,filter:()=>r1,once:()=>qg,toPromise:()=>t1});e1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});mu=Symbol.for("Jolibox.hostEmitter"),n1=()=>{let e=new Zt;return globalThis[mu]||(globalThis[mu]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[mu]},Ae=n1();Va=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new so,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return i1(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};Va=Sg([Eg],Va);bu=class{constructor(){this._onWillExecuteCommand=new so,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new so,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Va,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=JO(3e4)),this._starActivation}executeCommand(e,...t){return bn(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),yu.toPromise(yu.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};bu=Sg([Eg],bu);Ug=Symbol.for("Jolibox.commands")});function Te(e,t={}){xu.emit("ERROR_REPORT",{error:e,options:t})}var xu,wn,It=T(()=>{"use strict";D();D();xu=new Zt,wn=new Zt;Te.debounce=uo(Te,50,{leading:!0})});var Tu,c1,Mg,Fg,Bg=T(()=>{"use strict";D();It();Tu=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t.length%4===0?"":"=".repeat(4-t.length%4),n=atob(t+r);try{return JSON.parse(n)}catch(i){return{}}},c1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Mg=e=>{var t;try{let i=(t=new URL(e).searchParams.get("joliSource"))==null?void 0:t.split(".");if(i!=null&&i.length){let[o,a,s]=i;return{headerJson:Tu(o),payloadJson:Tu(a),signature:Tu(s)}}else throw"joli_source is missing"}catch(r){return Te(new Tg(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Fg=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=c1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var l1,Pu,jg=T(()=>{"use strict";D();l1="1.4.19",Pu=()=>l1});function Ou(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var u1,Jg,Ru,Gg,be,d1,S,V=T(()=>{"use strict";D();Bg();jg();D();u1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Dg(),adId:Lg(),pixelRatio:window.devicePixelRatio||1,platform:mo.isAndroid?"android":mo.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Pu()},schema:window.location.href,platform:mo.isAndroid?"android":mo.isiOS?"ios":"h5"},Ru=(Jg=globalThis.joliboxJSCore)==null?void 0:Jg.env,be=Object.assign({},(Gg=Ru==null?void 0:Ru())!=null?Gg:u1);d1=()=>{var v,b,y,_,A,k,x,C,E,H,ae;let{payloadJson:e,headerJson:t,signature:r}=be.schema.length?Mg(be.schema):{},n=`${be.deviceInfo.did}-${new Date().getTime()}`,o=new URL(be.schema.length?be.schema:window.location.href).searchParams,a=(y=(b=(v=o.get("mpId"))!=null?v:o.get("appId"))!=null?b:o.get("gameId"))!=null?y:"",s=(k=(A=(_=be.clientSessionId)!=null?_:e==null?void 0:e.sessionId)!=null?A:o.get("sessionId"))!=null?k:n,c=!!((C=(x=e==null?void 0:e.testAdsMode)!=null?x:e==null?void 0:e.__testAdsMode)!=null?C:o.get("testAdsMode")==="true"),l=(ae=(H=(E=e==null?void 0:e.joliboxEnv)!=null?E:e==null?void 0:e.__joliboxEnv)!=null?H:o.get("joliboxEnv"))!=null?ae:"production",d=l==="staging",u=t==null?void 0:t.channel,f=new URL(window.location.href).searchParams,m=e==null?void 0:e.__shouldInterupt;return{get startTime(){var N;return(N=performance.timeOrigin)!=null?N:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return c},get joliboxEnv(){return l},get joliSource(){var N,O;return(O=(N=f.get("joliSource"))!=null?N:o.get("joliSource"))!=null?O:null},get mpId(){var N;return(N=a!=null?a:e==null?void 0:e.id)!=null?N:""},get mpVersion(){var N;return(N=t==null?void 0:t.ver)!=null?N:Pu()},get mpType(){var N,O;return(O=(N=t==null?void 0:t.__mpType)!=null?N:e==null?void 0:e.__mpType)!=null?O:"game"},get platform(){var N;return((N=be.platform)!=null?N:be.deviceInfo.platform).toLowerCase()},get deviceInfo(){return be.deviceInfo},get sdkInfo(){return be.sdkInfo},get hostInfo(){return be.hostInfo},get hostUserInfo(){return be.hostUserInfo},get sessionId(){var N,O;return(O=(N=be.clientSessionId)!=null?N:s)!=null?O:n},get channel(){return u},get webviewId(){var N;return(N=be.webviewId)!=null?N:-1},get shouldInterupt(){return m},get from(){return e==null?void 0:e.__from},get baseApiHost(){return Cu(d)},get adId(){var N;return(N=be.deviceInfo.adId)!=null?N:be.deviceInfo.did},get language(){return be.deviceInfo.lang},get sdkEnvironment(){return Ou("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Ou("gamedistribution","jolibox")?"gamedistribution":Ou("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var X,ie,Ke;let N=(X=be.deviceInfo.pixelRatio)!=null?X:1,O=(ie=be.deviceInfo.statusBarHeight)!=null?ie:e==null?void 0:e.__androidStatusBarHeight,B=(Ke=be.deviceInfo.navigationBarHeight)!=null?Ke:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:O!==void 0?O/N:20,navigationBarHeight:B!==void 0?B/N:10}},get abTests(){var N,O;return(O=(N=be.abValues)==null?void 0:N.split(","))!=null?O:[]},get mpInfo(){var N;return(N=be.mpInfo)!=null?N:{mpName:"unknown"}},onEnvConfigChanged:N=>{kg(be,N,Cg)},encodeJoliSourceQuery:N=>{var O,B;return t&&r?Fg(P(P({},e),N),(O=o.get("joliSource"))!=null?O:""):(B=o.get("joliSource"))!=null?B:""},setDoExitDirectly:()=>{m=!1}}},S=d1()});var Nu,Vg,p1,f1,Hg,m1,$g=T(()=>{"use strict";D();It();V();D();Nu=!1,Vg=(e,t)=>e==null?!1:t in e,p1=e=>Vg(e,"kind"),f1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Hg=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=S.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:f1(e.name)},i=J(P({},n),{env:t.environment,isFromUser:r});r?wn.emit("GLOBAL_USER_ERROR",e,i):wn.emit("GLOBAL_ERROR",e,i)},m1=e=>Vg(e,"kind")&&e.kind==="USER_ERROR";xu.on("ERROR_REPORT",({error:e,options:t})=>{if(Nu)return;Nu=!0;let r=p1(e)&&e.raw?e.raw:e;try{let n=m1(e);Hg(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new Iu(`${i}, origin error: ${r.message}`);Xt.error(o),Hg(new Iu(o.message),{environment:t.environment},!1)}finally{Nu=!1}})});var Pe,Du,Kr=T(()=>{"use strict";It();D();It();Pe=(e,t)=>{var r,n;return new fo((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Du=e=>new xg(e)});var Kg=T(()=>{"use strict";$g();Kr();D();de();wn.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};q("trackAsync",{event:"reportJsError",data:r})});wn.on("GLOBAL_USER_ERROR",(e,t)=>{Xt.log("UserError",e,t)})});var Lu=T(()=>{"use strict"});function Wg(e,t){let r=(n,i,o)=>{let l=i!=null?i:{},{eventType:a}=l,s=tt(l,["eventType"]),c=J(P({tag:n,eventType:o!=null?o:a!=null?a:W.Other},t),{extra:P({},s)});n=="globalJsError"?Te(new Rg(JSON.stringify(c))):e("systemLog",c,S.webviewId)};return r.debounce=uo(r,500,{leading:!0}),r}function zg(e){let t=(r,n,i)=>{var s;let o=(s=i&&JSON.stringify(i))!=null?s:0,a={speed_value_type:r,total_duration:n};o&&Object.assign(a,{extra:o}),e("joliboxSpeedAnalysis",a)};return t.debounce=uo(t,500,{leading:!0}),t}var Yg=T(()=>{"use strict";D();D();It();V()});function Qg(e,t){let r=Wg(e,t),n=zg(r);return{track:r,trackPerformance:n}}var Xg=T(()=>{"use strict";Yg()});var Zg=T(()=>{"use strict";V();D();D()});var ev=T(()=>{"use strict";Xg();Lu();Zg()});var Ya,tv=T(()=>{"use strict";Ya=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.reportCount=0;this.notifyIframeGameEvent=(t,r)=>{let n=window.parent;n&&n!==window&&typeof n.postMessage=="function"&&n.postMessage({type:t,data:r},"*")};this.playGame=t=>{this.reportCount++,(this.reportCount<=3||(this.reportCount-3)%3===0)&&(this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_PLAY",{duration:t}))};this.timer=this.createRAFTimer(t=>{this.playGame(t)});this.interval=r!=null?r:5*1e3,t.on("visible",n=>{this.visible=n})}start(t){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:t!=null?t:0}}),this.tracker("OpenGame",{duration:t!=null?t:0}),this.notifyIframeGameEvent("JOLIBOX_GAME_OPEN",{duration:t!=null?t:0}),this.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_CLOSE",{duration:t}),this.timer.stop()}createRAFTimer(t){let r=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let f=Date.now(),m=f-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=f),n=requestAnimationFrame(s)},c=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},l=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",f=>{o&&(console.log("visible",f),f?l():c())});let p=this.visible;return{start(){o||(o=!0,p?l():c())},stop(){o=!1,d(),u()}}}}});function Qa(e,t,r){var c,l,d;let n=new Map,i=(c=r==null?void 0:r.baseUrl)!=null?c:ti(S.testMode),o=(l=r==null?void 0:r.type)!=null?l:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return Ie("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:v,state:b}=f,y=tt(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(y):p.reject(y),n.delete(v)}else if(u.state==="fail"){let m=u,{requestTaskId:v,state:b}=m,y=tt(m,["requestTaskId","state"]);p.reject(y),n.delete(v)}else Xt.warn("onRequestTaskStateChange unknown event",u)}),Ae.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>g(this,[f,...m],function*(u,p={}){let v=Date.now(),b=h1(u,J(P({},p),{baseUrl:i})),{method:y="GET",responseType:_="text",dataType:A="json",timeout:k,enableCache:x=!1,appendHostCookie:C=!0}=p,E=Object.assign({"content-type":"application/json"},a,p.header),H={url:b,method:y,header:E,enableCache:x,responseType:_,appendHostCookie:C};if(y=="POST"||y=="PUT"){let X=v1(p.data,E["content-type"]);H.data=X}k&&Object.assign(H,{timeout:k});let{data:{requestTaskId:ae}}=q(e,H);if(typeof ae!="string")throw Pe({code:-1,msg:"requestTaskId is not a string"});let{resolve:N,reject:O,promise:B}=new ht;n.set(ae,{resolve:N,reject:O});try{let X=yield B,{data:ie}=X;return A==="json"&&typeof ie=="string"&&(ie=g1(ie)),{url:b,timeout:k,method:y,response:J(P({},X),{data:ie})}}catch(X){let ie=X;if(_n(ie)){let{errMsg:Ke,prefetchDetail:le,isPrefetch:Lt,errNo:La}=ie;co(Ke)&&Te(Pe({code:-1,msg:Ke},{errNo:La,errMsg:Ke}))}throw X}})}function g1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function v1(e,t="application/json"){let r=t.toLowerCase();return e===void 0?"":typeof e=="string"||e instanceof ArrayBuffer?e:r.includes("application/x-www-form-urlencoded")||r.includes("application/json")||typeof e=="object"?JSON.stringify(e):String(e)}var h1,qu=T(()=>{"use strict";D();de();It();Kr();V();h1=(e,t)=>{if(/^https?:\/\//.test(e))return e;let r=t==null?void 0:t.query,i=new URLSearchParams(r).toString();return t!=null&&t.baseUrl?`${t.baseUrl}${e}${i?`?${i}`:""}`:`${e}${i?`?${i}`:""}`}});var Uu,rv,Y,gt=T(()=>{"use strict";qu();V();D();Uu={};(rv=S.hostUserInfo)!=null&&rv.token&&(Uu["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(Uu["x-joli-source"]=S.joliSource);Y=Qa("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:ti(S.testMode),defaultHeaders:Uu})});function nv(e){let t=Au.config[e];return t||(t={},Au.config[e]=t),(r,n)=>{if(t[r]){Xt.warn(`[can i use] ${r} already registered`);return}t[r]=P({},n)}}var iv=T(()=>{"use strict";D()});function Mu(e){ov=e}function Xa(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Xa(t)):Object.keys(e).reduce((t,r)=>(t[r]=Xa(e[r]),t),{})}function _r(e){return typeof e=="number"}function Fu(e){let t=Bu(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Bu(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var ov,Ne,Za,es,ts,rs,ri,ns,is,os,as,ss,cs,ls,us,ds,ps,fs,ms,ju=T(()=>{"use strict";ov=!1;Ne=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(ov)if(typeof t=="string")this.errors.push(t);else{let r=`${this.path} should be ${t.expect}`;this._optional&&t.expect!=="undefined"?r+=" or undefined, ":r+=", ",r+=`but got ${Fu(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Xa(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Xa(this._default)}optional(){return this._optional=!0,this}};Za=class extends Ne{validate(t){return this._optional&&t===void 0?!0:_r(t)?_r(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):_r(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):_r(this._greater)&&t<=this._greater?this.fail(`the value of ${this.path} should be greater than ${this._greater}`):this._isInt&&t!==Math.floor(t)?this.fail(`the value of ${this.path} should be integer but got ${t}`):!0:this.fail({expect:"number",actual:t})}min(t){return this._min=t,this}max(t){return this._max=t,this}isInt(t){return this._isInt=t,this}greater(t){return this._greater=t,this}},es=class extends Ne{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},ts=class extends Ne{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(_r(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(_r(this._minLength)&&t.length<this._minLength)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minLength}`);if(typeof this._pattern=="string"){if(!new RegExp(this._pattern).test(t))return this.fail(`${this.path} should match pattern "${this._pattern}"`)}else if(this._pattern&&!this._pattern.test(t))return this.fail(`${this.path} should match pattern "${this._pattern.toString()}"`);return!0}minLength(t){return this._minLength=t,this}maxLength(t){return this._maxLength=t,this}pattern(t){return this._pattern=t,this}},rs=class extends Ne{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},ri=class extends Ne{validate(t){return!0}},ns=class extends Ne{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},is=class extends Ne{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},os=class extends Ne{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},as=class extends Ne{constructor(...t){super(),this._items=t}validate(t){if(this._optional&&t===void 0)return!0;if(!this._items.includes(t)){let r=this._items.map(n=>JSON.stringify(n)).join(", ");return this.fail(`expect ${this.path} to be one of ${r}, but got ${Fu(t)}`)}return!0}},ss=class extends Ne{constructor(r){super();this._item=r}validate(r){if(this._optional&&r===void 0)return!0;if(!Array.isArray(r))return this.fail({expect:"array",actual:r});if(_r(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(_r(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(_r(this._length)&&r.length!==this._length)return this.fail(`the length of ${this.path} should be equal to ${this._length}`);let n=this._item;if(!n)return!0;let i=!0;if(r.forEach((o,a)=>{if(n.path=`${this.path}[${a}]`,n.errors=this.errors,o===void 0&&n.hasDefault){r[a]=n.defaultValue;return}n.validate(o)||(n.hasFallback?r[a]=n.fallbackValue:i=!1)}),this._uniqueItems){let o=new Map;for(let a in r)o.has(r[a])?i=this.fail(`${this.path} should NOT have duplicate items (${this.path}[${o.get(r[a])}] and ${this.path}[${a}] are identical)`):o.set(r[a],a)}return i}minItems(r){return this._minItems=r,this}maxItems(r){return this._maxItems=r,this}uniqueItems(){return this._uniqueItems=!0,this}length(r){return this._length=r,this}},cs=class extends Ne{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Bu(r)!=="object")return this.fail({expect:"object",actual:r});let i=r,o=this._value;o.errors=this.errors;let a=!0;for(let s in i){let c=i[s];if(/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(s)?o.path=`${this.path}.${s}`:o.path=`${this.path}["${s}"]`,!(c===void 0&&o._optional)){if(c===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(c)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},ls=class extends Ne{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Bu(r)!=="object")return this.fail({expect:"object",actual:r});let n=r,i=!0;for(let o in this._object){let a=n[o],s=this._object[o];if(s.errors=this.errors,/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(o)?s.path=`${this.path}.${o}`:s.path=`${this.path}["${o}"]`,!(s._optional&&a===void 0)){if(a===void 0&&s.hasDefault){n[o]=s.defaultValue;continue}s.validate(a)||(s.hasFallback?n[o]=s.fallbackValue:i=!1)}}return i}},us=class extends Ne{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Fu(this.value),actual:r}):!0}},ds=class extends Ne{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
2
+ or `);this.errors.push(o)}return n}},ps=class extends Ne{constructor(...t){super(),this._items=t;let r=0,n=t.length-1;for(;n>=0;n--){let i=t[n];if(i._optional||i.hasDefault)r+=1;else break}this._minItems=t.length-r}validate(t){if(t===void 0&&this._optional)return!0;if(!Array.isArray(t))return this.fail({expect:"array",actual:t});if(t.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);let r=!0;return this._items.forEach((n,i)=>{if(n.path=`${this.path}[${i}]`,n.errors=this.errors,t[i]===void 0&&n.hasDefault){t[i]=n.defaultValue;return}n.validate(t[i])||(n.hasFallback?t[i]=n._fallback:r=!1)}),r}},fs=class extends Ne{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},ms=class extends Ne{constructor(t){super(),this._ctor=t}validate(t){return t===void 0&&this._optional||t instanceof this._ctor?!0:this.fail({expect:`typedarray of ${this._ctor.name}`,actual:t})}}});function Ju(e,t,r="param"){if(e.errors=[],e.path=r,Mu(!0),!e.validate(t)){let n=e.errors.join(`
3
+ `);throw e.errors.length=0,Mu(!1),new TypeError(n)}}var I,Gu=T(()=>{"use strict";ju();ju();I={object(e){return new ls(e)},array(e){return new ss(e)},tuple(...e){return new ps(...e)},literal(e){return new us(e)},or(...e){return new ds(...e)},symbol(){return new rs},record(e){return new cs(e)},function(){return new os},boolean(){return new es},string(){return new ts},number(){return new Za},undefined(){return new ns},null(){return new is},unknown(){return new ri},any(){return new ri},as(){return new ri},arraybuffer(){return new fs},enum(...e){return new as(...e)},typedarray(e){return new ms(e)}}});var hs,av,sv=T(()=>{"use strict";D();It();Gu();Kr();hs=1,av=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:hs};hs+=1;let c="SUCCESS",l=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Ju(i.paramsSchema,o,"params")}catch(_){throw Du(`${n}:fail ${_.message}`)}let v=i.implement(...o),b=v,y=`${n}:ok`;if(v&&"code"in v){let{code:_,data:A,message:k}=v;c=_,b=A,y=k}return{code:c,message:y,data:b}}catch(v){let b=v;d=(p=(u=b.code)!=null?u:b.errNo)!=null?p:2e3,c="FAILURE";let y=(m=(f=b.message)!=null?f:b.errMsg)!=null?m:`${v}`;return l=`${n}:${c} ${y.replace(/^\S+:(fail|cancel)\s?/,"")}`,Te(new fo(l,d)),{code:c,message:l}}finally{let v=Date.now()-a}}}function r(n,i){return(...o)=>g(this,null,function*(){var p,f,m,v;let a=Ig(o)?o:[o],s=Date.now(),c={method:n,trace_id:hs};hs+=1;let l=`${n}:ok`,d="SUCCESS",u={code:d,message:l};try{if(i.paramsSchema)try{Ju(i.paramsSchema,a,"params")}catch(_){throw Du(_.message)}let y=yield i.implement(...a);if(y&&"code"in y){let{code:_,data:A,message:k}=y;d=_,l=k,y=A}return Object.assign(u,{code:d,message:l,data:y}),u}catch(b){let y=b,_=(f=(p=y.code)!=null?p:y.errNo)!=null?f:2e3;d="FAILURE";let A=(v=(m=y.message)!=null?m:y.errMsg)!=null?v:`${b}`,k=`${n}:${d} ${A.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:k}),Te(new fo(k,_)),u}finally{let b=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});var _e,gs=T(()=>{"use strict";V();de();({canIUseNative:_e}=Ha(()=>S.sdkInfo.nativeSDKVersionCode,()=>S.platform))});function Hu(e){if(typeof e!="number"||e<=0)return"0.0.0";let t=e.toString(),r=0,n=0,i=0;return t.length>=1&&(r=parseInt(t.substring(0,1),10)),t.length>=3&&(n=parseInt(t.substring(1,3),10)),t.length>=5&&(i=parseInt(t.substring(3,5),10)),`${r}.${n}.${i}`}var cv=T(()=>{"use strict"});var K,Q,L,We=T(()=>{"use strict";iv();At();sv();Gu();gs();cv();({createAPI:K,createSyncAPI:Q}=av(j)),L=nv("native")});function lv(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),I1.includes(t)?t:""}function uv(e,t){try{switch(t){case"string":return e;case"object":return JSON.parse(e);case"number":return parseFloat(e);case"boolean":return e==="true";default:return""}}catch(r){return""}}function dv(e,t){try{switch(t){case"string":case"number":case"boolean":return`${e}`;case"object":return JSON.stringify(e);default:return""}}catch(r){return""}}var vs,b1,_1,w1,S1,i8,o8,I1,Wr,Et,ho=T(()=>{"use strict";We();de();D();gt();V();vs=z(),b1=K("getLocalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return g(this,null,function*(){let{response:t}=yield Y(`/api/games/user-storage/${S.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield fe("getLocalStorageAsync",{key:e}),s=uv(o,a);return{code:r,message:`${n}. fallback to native`,data:s}}catch(o){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get local storage failed",data:null}}})}});vs.registerCommand("StorageSDK.getItem",b1);L("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});_1=K("setStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number())),implement(e,t){return g(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield Y(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=lv(t),c=dv(t,s);return yield fe("setLocalStorageAsync",{key:e,data:c,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});vs.registerCommand("StorageSDK.setItem",_1);L("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});w1=K("removeStorage",{paramsSchema:I.tuple(I.string()),implement(e){return g(this,null,function*(){let t=S.mpId,{response:r}=yield Y(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield fe("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});vs.registerCommand("StorageSDK.removeItem",w1);L("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});S1=K("clearStorage",{implement(){return g(this,null,function*(){let e=S.mpId,{response:t}=yield Y(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});fe("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});vs.registerCommand("StorageSDK.clear",S1);L("storage.clear",{version:"1.0.0"});i8=K("getStorageInfo",{implement(){return g(this,null,function*(){let{data:e}=yield fe("getStorageInfoAsync");return e})}});L("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});o8=Q("getStorageInfoSync",{implement(){return q("getStorageInfoSync")}}),I1=["string","number","boolean","object",""];Wr=K("getGlobalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return g(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield fe("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:uv(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),Et=K("setGlobalStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number(),I.array())),implement(e,t){return g(this,null,function*(){try{let r=lv(t),n=dv(t,r);return yield fe("setGlobalStorageAsync",{key:e,data:n,dataType:r}),{code:"SUCCESS",message:"success"}}catch(r){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] set global storage failed"}}})}})});var pv,ys,fv=T(()=>{"use strict";V();tv();D();gt();de();ho();gs();pv="REPORT_FIRST_OPEN_GAME",ys=class extends Ya{constructor(r,n,i){super(n,i);this.started=!1;this.gameId=S.mpId,this.sessionId=S.sessionId,this.track=r,this.taskUrl=ti(S.testMode)+"/api/base/app-event"}reporter(r){return g(this,null,function*(){let{event:n,params:i,extraParams:o}=r,a={eventType:n,gameInfo:P({gameId:this.gameId,sessionId:this.sessionId},i)};o&&Object.assign(a,o),yield this.createTask(a)})}reportToNative(r){return g(this,null,function*(){let{event:n,params:i}=r;yield fe("userTrackAsync",{event:n,params:P({},i),gameId:this.gameId})})}tracker(r,n=null){this.track(r,n)}start(r){if(this.started){console.info("[JoliboxSDK] taskTrakcer has started");return}super.start(r),this.tryReportOpenGamePlus(),this.started=!0}tryReportOpenGamePlus(){Wr(pv).then(r=>{$r(r.data)&&r.data&&this.tracker("OpenGame_2Plus"),Et(pv,!0)})}createTask(r){return _e("sendServerEventAsync")?fe("sendServerEventAsync",{payload:r}):S.platform==="android"?Y("/api/base/app-event",{method:"POST",data:r}):fe("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(r)})}}});var yv={};Kh(yv,{nativeTaskEmitter:()=>go,taskTracker:()=>kt,track:()=>j,trackPerformance:()=>gv});var A1,mv,hv,j,gv,vv,go,kt,At=T(()=>{"use strict";Kg();D();Lu();ev();V();fv();de();A1=(e,t,r)=>{var l,d,u,p,f,m,v;let n=t,i=_n(n.extra)?n.extra:co(n.extra)?JSON.parse(n.extra):{},{mpName:o,mpVersion:a}=(l=S.mpInfo)!=null?l:{},s=P(P(J(P({},i),{mp_id:(d=n.mp_id)!=null?d:"",mp_version:(u=n.mp_version)!=null?u:"",session_id:S.sessionId,user_id:(f=(p=S.hostUserInfo)==null?void 0:p.uid)!=null?f:""}),o?{mp_name:o}:{}),a?{mp_info_version:a}:{}),c=(m=n.eventType)!=null?m:W.Other;q("trackAsync",{event:(v=t.tag)!=null?v:e,data:s,webviewId:r,eventType:c})},{track:j,trackPerformance:gv}=Qg(A1,{type:Eu.AppSDK,platform:"native",jssdk_version:(hv=(mv=S.sdkInfo)==null?void 0:mv.jssdkVersion)!=null?hv:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),vv=z();vv.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{gv(e,t,r)});vv.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{j(e,t)});go=new Zt,kt=new ys(j,go)});function bv(){let e=null,t=null,r=window.fetch,n=()=>{t=document.createElement("meta"),t.setAttribute("name","viewport"),t.setAttribute("content","viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"),t.setAttribute("data-jolibox-sdk","viewport-meta"),e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let s=`
4
4
  html[data-jolibox-root] {
5
5
  height: 100%;
6
6
  margin: 0;
@@ -18,10 +18,10 @@ or `);this.errors.push(o)}return n}},ds=class extends Ne{constructor(...t){super
18
18
  min-height: 100dvh;
19
19
  }
20
20
  }
21
- `;e.textContent=s;let c=document.head||document.getElementsByTagName("head")[0];c.insertBefore(t,c.firstChild),c.insertBefore(e,c.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:c}=S.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${c}px`)},o=()=>{function s(l){return g(this,null,function*(){let d=l instanceof URL?l.href:l,u=new Promise((p,f)=>{let h=new XMLHttpRequest;h.open("GET",d),h.responseType="arraybuffer",h.addEventListener("load",()=>p(h.response)),h.addEventListener("error",f),h.send()});try{let p=yield u;return new Response(p,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(p){throw console.error("Failed to load wasm:",p),p}})}let c=window.fetch;window.fetch=(l,d)=>{let u=l instanceof URL?l.href:l.toString();return u.endsWith(".wasm")?s(u):c(l,d)}},a=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),t!=null&&t.parentNode&&(t.parentNode.removeChild(t),t=null),document.documentElement.removeAttribute("data-jolibox-root"),document.documentElement.style.removeProperty("--status-bar-height"),window.fetch=r};return n(),o(),i(),a}var bv=T(()=>{"use strict";V()});var _v=T(()=>{"use strict"});var wv=T(()=>{"use strict";D();Eu()});var Sv=T(()=>{"use strict";V()});var Sn,ys=T(()=>{"use strict";_v();wv();V();Sv();D();Sn=new Zt});function wr(e,t){for(var r in t)e[r]=t[r];return e}function zu(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function nt(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Ss.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return _s(e,a,n,i,null)}function _s(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++Cv:i,__i:-1,__u:0};return i==null&&U.vnode!=null&&U.vnode(o),o}function yo(){return{current:null}}function ze(e){return e.children}function kt(e,t){this.props=e,this.context=t}function ni(e,t){if(t==null)return e.__?ni(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ni(e):null}function Ov(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Ov(e)}}function $u(e){(!e.__d&&(e.__d=!0)&&In.push(e)&&!ws.__r++||Iv!==U.debounceRendering)&&((Iv=U.debounceRendering)||kv)(ws)}function ws(){for(var e,t,r,n,i,o,a,s=1;In.length;)In.length>s&&In.sort(xv),e=In.shift(),s=In.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=wr({},n)).__v=n.__v+1,U.vnode&&U.vnode(r),Yu(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?ni(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Lv(o,r,a),r.__e!=i&&Ov(r)));ws.__r=0}function Nv(e,t,r,n,i,o,a,s,c,l,d){var u,p,f,h,v,b,y=n&&n.__k||Rv,_=t.length;for(c=C1(r,t,y,c,_),u=0;u<_;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?go:y[f.__i]||go,f.__i=u,b=Yu(e,f,p,i,o,a,s,c,l,d),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Qu(p.ref,null,f),d.push(f.ref,f.__c||h,f)),v==null&&h!=null&&(v=h),4&f.__u||p.__k===f.__k?c=Dv(f,c,e):typeof f.type=="function"&&b!==void 0?c=b:h&&(c=h.nextSibling),f.__u&=-7);return r.__e=v,c}function C1(e,t,r,n,i){var o,a,s,c,l,d=r.length,u=d,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(c=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?_s(null,a,null,null,null):vo(a)?_s(ze,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?_s(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(l=a.__i=k1(a,r,c,u))!==-1&&(u--,(s=r[l])&&(s.__u|=2)),s==null||s.__v===null?(l==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):l!=c&&(l==c-1?p--:l==c+1?p++:(l>c?p--:p++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(s=r[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=ni(s)),Uv(s,s));return n}function Dv(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=Dv(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=ni(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function bo(e,t){return t=t||[],e==null||typeof e=="boolean"||(vo(e)?e.some(function(r){bo(r,t)}):t.push(e)),t}function k1(e,t,r,n){var i,o,a=e.key,s=e.type,c=t[r];if(c===null&&e.key==null||c&&a==c.key&&s===c.type&&!(2&c.__u))return r;if(n>(c!=null&&!(2&c.__u)?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;){if(i>=0){if((c=t[i])&&!(2&c.__u)&&a==c.key&&s===c.type)return i;i--}if(o<t.length){if((c=t[o])&&!(2&c.__u)&&a==c.key&&s===c.type)return o;o++}}return-1}function Av(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||E1.test(t)?r:r+"px"}function bs(e,t,r,n,i){var o;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Av(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Av(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Tv,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.t=n.t:(r.t=Wu,e.addEventListener(t,o?Vu:Hu,o)):e.removeEventListener(t,o?Vu:Hu,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch(a){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Ev(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Wu++;else if(t.u<r.t)return;return r(U.event?U.event(t):t)}}}function Yu(e,t,r,n,i,o,a,s,c,l){var d,u,p,f,h,v,b,y,_,A,C,x,k,E,H,ae,N,O=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=U.__b)&&d(t);e:if(typeof O=="function")try{if(y=t.props,_="prototype"in O&&O.prototype.render,A=(d=O.contextType)&&n[d.__c],C=d?A?A.props.value:d.__:n,r.__c?b=(u=t.__c=r.__c).__=u.__E:(_?t.__c=u=new O(y,C):(t.__c=u=new kt(y,C),u.constructor=O,u.render=T1),A&&A.sub(u),u.props=y,u.state||(u.state={}),u.context=C,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),_&&u.__s==null&&(u.__s=u.state),_&&O.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=wr({},u.__s)),wr(u.__s,O.getDerivedStateFromProps(y,u.__s))),f=u.props,h=u.state,u.__v=t,p)_&&O.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),_&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(_&&O.getDerivedStateFromProps==null&&y!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,C),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,C)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(B){B&&(B.__=t)}),x=0;x<u._sb.length;x++)u.__h.push(u._sb[x]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,C),_&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,h,v)})}if(u.context=C,u.props=y,u.__P=e,u.__e=!1,k=U.__r,E=0,_){for(u.state=u.__s,u.__d=!1,k&&k(t),d=u.render(u.props,u.state,u.context),H=0;H<u._sb.length;H++)u.__h.push(u._sb[H]);u._sb=[]}else do u.__d=!1,k&&k(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++E<25);u.state=u.__s,u.getChildContext!=null&&(n=wr(wr({},n),u.getChildContext())),_&&!p&&u.getSnapshotBeforeUpdate!=null&&(v=u.getSnapshotBeforeUpdate(f,h)),ae=d,d!=null&&d.type===ze&&d.key==null&&(ae=qv(d.props.children)),s=Nv(e,vo(ae)?ae:[ae],t,r,n,i,o,a,s,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),b&&(u.__E=u.__=null)}catch(B){if(t.__v=null,c||o!=null)if(B.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(N=o.length;N--;)zu(o[N]);else t.__e=r.__e,t.__k=r.__k;U.__e(B,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=x1(r.__e,t,r,n,i,o,a,c,l);return(d=U.diffed)&&d(t),128&t.__u?void 0:s}function Lv(e,t,r){for(var n=0;n<r.length;n++)Qu(r[n],r[++n],r[++n]);U.__c&&U.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){U.__e(o,i.__v)}})}function qv(e){return typeof e!="object"||e==null?e:vo(e)?e.map(qv):wr({},e)}function x1(e,t,r,n,i,o,a,s,c){var l,d,u,p,f,h,v,b=r.props,y=t.props,_=t.type;if(_=="svg"?i="http://www.w3.org/2000/svg":_=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((f=o[l])&&"setAttribute"in f==!!_&&(_?f.localName==_:f.nodeType==3)){e=f,o[l]=null;break}}if(e==null){if(_==null)return document.createTextNode(y);e=document.createElementNS(i,_,y.is&&y),s&&(U.__m&&U.__m(t,o),s=!1),o=null}if(_===null)b===y||s&&e.data===y||(e.data=y);else{if(o=o&&Ss.call(e.childNodes),b=r.props||go,!s&&o!=null)for(b={},l=0;l<e.attributes.length;l++)b[(f=e.attributes[l]).name]=f.value;for(l in b)if(f=b[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=f;else if(!(l in y)){if(l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y)continue;bs(e,l,null,f,i)}}for(l in y)f=y[l],l=="children"?p=f:l=="dangerouslySetInnerHTML"?d=f:l=="value"?h=f:l=="checked"?v=f:s&&typeof f!="function"||b[l]===f||bs(e,l,f,b[l],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),Nv(t.type==="template"?e.content:e,vo(p)?p:[p],t,r,n,_=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&ni(r,0),s,c),o!=null)for(l=o.length;l--;)zu(o[l]);s||(l="value",_=="progress"&&h==null?e.removeAttribute("value"):h!==void 0&&(h!==e[l]||_=="progress"&&!h||_=="option"&&h!==b[l])&&bs(e,l,h,b[l],i),l="checked",v!==void 0&&v!==e[l]&&bs(e,l,v,b[l],i))}return e}function Qu(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){U.__e(i,r)}}function Uv(e,t,r){var n,i;if(U.unmount&&U.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Qu(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){U.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Uv(n[i],t,r||typeof e.type!="function");r||zu(e.__e),e.__c=e.__=e.__e=void 0}function T1(e,t,r){return this.constructor(e,r)}function zr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),U.__&&U.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Yu(t,e=(!n&&r||t).__k=nt(ze,null,[e]),i||go,go,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Ss.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Lv(o,e,a)}function An(e){function t(r){var n,i;return this.getChildContext||(n=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&n.forEach(function(a){a.__e=!0,$u(a)})},this.sub=function(o){n.add(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){n&&n.delete(o),a&&a.call(o)}}),r.children}return t.__c="__cC"+Pv++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Ss,U,Cv,Ku,In,Iv,kv,xv,Tv,Wu,Hu,Vu,Pv,go,Rv,E1,vo,ii=T(()=>{go={},Rv=[],E1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,vo=Array.isArray;Ss=Rv.slice,U={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},Cv=0,Ku=function(e){return e!=null&&e.constructor==null},kt.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=wr({},this.state),typeof e=="function"&&(e=e(wr({},r),this.props)),e&&wr(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),$u(this))},kt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),$u(this))},kt.prototype.render=ze,In=[],kv=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,xv=function(e,t){return e.__v.__b-t.__v.__b},ws.__r=0,Tv=/(PointerCapture)$|Capture$/i,Wu=0,Hu=Ev(!1),Vu=Ev(!0),Pv=0});var Ee=m((W8,Mv)=>{"use strict";Mv.exports=function(e){try{return!!e()}catch(t){return!0}}});var oi=m((z8,Fv)=>{"use strict";var P1=Ee();Fv.exports=!P1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var De=m((Y8,Jv)=>{"use strict";var Bv=oi(),jv=Function.prototype,Xu=jv.call,R1=Bv&&jv.bind.bind(Xu,Xu);Jv.exports=Bv?R1:function(e){return function(){return Xu.apply(e,arguments)}}});var pt=m((Q8,Gv)=>{"use strict";var O1=De();Gv.exports=O1({}.isPrototypeOf)});var Ce=m((Zu,Hv)=>{"use strict";var _o=function(e){return e&&e.Math===Math&&e};Hv.exports=_o(typeof globalThis=="object"&&globalThis)||_o(typeof window=="object"&&window)||_o(typeof self=="object"&&self)||_o(typeof global=="object"&&global)||_o(typeof Zu=="object"&&Zu)||function(){return this}()||Function("return this")()});var ed=m((X8,Wv)=>{"use strict";var N1=oi(),Kv=Function.prototype,Vv=Kv.apply,$v=Kv.call;Wv.exports=typeof Reflect=="object"&&Reflect.apply||(N1?$v.bind(Vv):function(){return $v.apply(Vv,arguments)})});var Sr=m((Z8,Yv)=>{"use strict";var zv=De(),D1=zv({}.toString),L1=zv("".slice);Yv.exports=function(e){return L1(D1(e),8,-1)}});var wo=m((e7,Qv)=>{"use strict";var q1=Sr(),U1=De();Qv.exports=function(e){if(q1(e)==="Function")return U1(e)}});var Ye=m((t7,Xv)=>{"use strict";var td=typeof document=="object"&&document.all;Xv.exports=typeof td=="undefined"&&td!==void 0?function(e){return typeof e=="function"||e===td}:function(e){return typeof e=="function"}});var ft=m((r7,Zv)=>{"use strict";var M1=Ee();Zv.exports=!M1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Gt=m((n7,ey)=>{"use strict";var F1=oi(),Is=Function.prototype.call;ey.exports=F1?Is.bind(Is):function(){return Is.apply(Is,arguments)}});var rd=m(ny=>{"use strict";var ty={}.propertyIsEnumerable,ry=Object.getOwnPropertyDescriptor,B1=ry&&!ty.call({1:2},1);ny.f=B1?function(t){var r=ry(this,t);return!!r&&r.enumerable}:ty});var So=m((o7,iy)=>{"use strict";iy.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var As=m((a7,oy)=>{"use strict";var j1=De(),J1=Ee(),G1=Sr(),nd=Object,H1=j1("".split);oy.exports=J1(function(){return!nd("z").propertyIsEnumerable(0)})?function(e){return G1(e)==="String"?H1(e,""):nd(e)}:nd});var En=m((s7,ay)=>{"use strict";ay.exports=function(e){return e==null}});var Cn=m((c7,sy)=>{"use strict";var V1=En(),$1=TypeError;sy.exports=function(e){if(V1(e))throw new $1("Can't call method on "+e);return e}});var Yr=m((l7,cy)=>{"use strict";var K1=As(),W1=Cn();cy.exports=function(e){return K1(W1(e))}});var Be=m((u7,ly)=>{"use strict";var z1=Ye();ly.exports=function(e){return typeof e=="object"?e!==null:z1(e)}});var er=m((d7,uy)=>{"use strict";uy.exports={}});var ai=m((p7,py)=>{"use strict";var id=er(),od=Ce(),Y1=Ye(),dy=function(e){return Y1(e)?e:void 0};py.exports=function(e,t){return arguments.length<2?dy(id[e])||dy(od[e]):id[e]&&id[e][t]||od[e]&&od[e][t]}});var Es=m((f7,my)=>{"use strict";var Q1=Ce(),fy=Q1.navigator,hy=fy&&fy.userAgent;my.exports=hy?String(hy):""});var ks=m((h7,wy)=>{"use strict";var _y=Ce(),ad=Es(),gy=_y.process,vy=_y.Deno,yy=gy&&gy.versions||vy&&vy.version,by=yy&&yy.v8,Ht,Cs;by&&(Ht=by.split("."),Cs=Ht[0]>0&&Ht[0]<4?1:+(Ht[0]+Ht[1]));!Cs&&ad&&(Ht=ad.match(/Edge\/(\d+)/),(!Ht||Ht[1]>=74)&&(Ht=ad.match(/Chrome\/(\d+)/),Ht&&(Cs=+Ht[1])));wy.exports=Cs});var sd=m((m7,Iy)=>{"use strict";var Sy=ks(),X1=Ee(),Z1=Ce(),eN=Z1.String;Iy.exports=!!Object.getOwnPropertySymbols&&!X1(function(){var e=Symbol("symbol detection");return!eN(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Sy&&Sy<41})});var cd=m((g7,Ay)=>{"use strict";var tN=sd();Ay.exports=tN&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var ld=m((v7,Ey)=>{"use strict";var rN=ai(),nN=Ye(),iN=pt(),oN=cd(),aN=Object;Ey.exports=oN?function(e){return typeof e=="symbol"}:function(e){var t=rN("Symbol");return nN(t)&&iN(t.prototype,aN(e))}});var Io=m((y7,Cy)=>{"use strict";var sN=String;Cy.exports=function(e){try{return sN(e)}catch(t){return"Object"}}});var kn=m((b7,ky)=>{"use strict";var cN=Ye(),lN=Io(),uN=TypeError;ky.exports=function(e){if(cN(e))return e;throw new uN(lN(e)+" is not a function")}});var xs=m((_7,xy)=>{"use strict";var dN=kn(),pN=En();xy.exports=function(e,t){var r=e[t];return pN(r)?void 0:dN(r)}});var Py=m((w7,Ty)=>{"use strict";var ud=Gt(),dd=Ye(),pd=Be(),fN=TypeError;Ty.exports=function(e,t){var r,n;if(t==="string"&&dd(r=e.toString)&&!pd(n=ud(r,e))||dd(r=e.valueOf)&&!pd(n=ud(r,e))||t!=="string"&&dd(r=e.toString)&&!pd(n=ud(r,e)))return n;throw new fN("Can't convert object to primitive value")}});var si=m((S7,Ry)=>{"use strict";Ry.exports=!0});var Dy=m((I7,Ny)=>{"use strict";var Oy=Ce(),hN=Object.defineProperty;Ny.exports=function(e,t){try{hN(Oy,e,{value:t,configurable:!0,writable:!0})}catch(r){Oy[e]=t}return t}});var Ao=m((A7,Uy)=>{"use strict";var mN=si(),gN=Ce(),vN=Dy(),Ly="__core-js_shared__",qy=Uy.exports=gN[Ly]||vN(Ly,{});(qy.versions||(qy.versions=[])).push({version:"3.41.0",mode:mN?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var fd=m((E7,Fy)=>{"use strict";var My=Ao();Fy.exports=function(e,t){return My[e]||(My[e]=t||{})}});var ci=m((C7,By)=>{"use strict";var yN=Cn(),bN=Object;By.exports=function(e){return bN(yN(e))}});var xt=m((k7,jy)=>{"use strict";var _N=De(),wN=ci(),SN=_N({}.hasOwnProperty);jy.exports=Object.hasOwn||function(t,r){return SN(wN(t),r)}});var Ts=m((x7,Jy)=>{"use strict";var IN=De(),AN=0,EN=Math.random(),CN=IN(1 .toString);Jy.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+CN(++AN+EN,36)}});var it=m((T7,Hy)=>{"use strict";var kN=Ce(),xN=fd(),Gy=xt(),TN=Ts(),PN=sd(),RN=cd(),li=kN.Symbol,hd=xN("wks"),ON=RN?li.for||li:li&&li.withoutSetter||TN;Hy.exports=function(e){return Gy(hd,e)||(hd[e]=PN&&Gy(li,e)?li[e]:ON("Symbol."+e)),hd[e]}});var Wy=m((P7,Ky)=>{"use strict";var NN=Gt(),Vy=Be(),$y=ld(),DN=xs(),LN=Py(),qN=it(),UN=TypeError,MN=qN("toPrimitive");Ky.exports=function(e,t){if(!Vy(e)||$y(e))return e;var r=DN(e,MN),n;if(r){if(t===void 0&&(t="default"),n=NN(r,e,t),!Vy(n)||$y(n))return n;throw new UN("Can't convert object to primitive value")}return t===void 0&&(t="number"),LN(e,t)}});var md=m((R7,zy)=>{"use strict";var FN=Wy(),BN=ld();zy.exports=function(e){var t=FN(e,"string");return BN(t)?t:t+""}});var vd=m((O7,Qy)=>{"use strict";var jN=Ce(),Yy=Be(),gd=jN.document,JN=Yy(gd)&&Yy(gd.createElement);Qy.exports=function(e){return JN?gd.createElement(e):{}}});var yd=m((N7,Xy)=>{"use strict";var GN=ft(),HN=Ee(),VN=vd();Xy.exports=!GN&&!HN(function(){return Object.defineProperty(VN("div"),"a",{get:function(){return 7}}).a!==7})});var bd=m(eb=>{"use strict";var $N=ft(),KN=Gt(),WN=rd(),zN=So(),YN=Yr(),QN=md(),XN=xt(),ZN=yd(),Zy=Object.getOwnPropertyDescriptor;eb.f=$N?Zy:function(t,r){if(t=YN(t),r=QN(r),ZN)try{return Zy(t,r)}catch(n){}if(XN(t,r))return zN(!KN(WN.f,t,r),t[r])}});var rb=m((L7,tb)=>{"use strict";var eD=Ee(),tD=Ye(),rD=/#|\.prototype\./,Eo=function(e,t){var r=iD[nD(e)];return r===aD?!0:r===oD?!1:tD(t)?eD(t):!!t},nD=Eo.normalize=function(e){return String(e).replace(rD,".").toLowerCase()},iD=Eo.data={},oD=Eo.NATIVE="N",aD=Eo.POLYFILL="P";tb.exports=Eo});var Co=m((q7,ib)=>{"use strict";var nb=wo(),sD=kn(),cD=oi(),lD=nb(nb.bind);ib.exports=function(e,t){return sD(e),t===void 0?e:cD?lD(e,t):function(){return e.apply(t,arguments)}}});var _d=m((U7,ob)=>{"use strict";var uD=ft(),dD=Ee();ob.exports=uD&&dD(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Ir=m((M7,ab)=>{"use strict";var pD=Be(),fD=String,hD=TypeError;ab.exports=function(e){if(pD(e))return e;throw new hD(fD(e)+" is not an object")}});var Ar=m(cb=>{"use strict";var mD=ft(),gD=yd(),vD=_d(),Ps=Ir(),sb=md(),yD=TypeError,wd=Object.defineProperty,bD=Object.getOwnPropertyDescriptor,Sd="enumerable",Id="configurable",Ad="writable";cb.f=mD?vD?function(t,r,n){if(Ps(t),r=sb(r),Ps(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Ad in n&&!n[Ad]){var i=bD(t,r);i&&i[Ad]&&(t[r]=n.value,n={configurable:Id in n?n[Id]:i[Id],enumerable:Sd in n?n[Sd]:i[Sd],writable:!1})}return wd(t,r,n)}:wd:function(t,r,n){if(Ps(t),r=sb(r),Ps(n),gD)try{return wd(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new yD("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var xn=m((B7,lb)=>{"use strict";var _D=ft(),wD=Ar(),SD=So();lb.exports=_D?function(e,t,r){return wD.f(e,t,SD(1,r))}:function(e,t,r){return e[t]=r,e}});var ce=m((j7,db)=>{"use strict";var ko=Ce(),ID=ed(),AD=wo(),ED=Ye(),CD=bd().f,kD=rb(),ui=er(),xD=Co(),di=xn(),ub=xt();Ao();var TD=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return ID(e,this,arguments)};return t.prototype=e.prototype,t};db.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?ko:i?ko[r]:ko[r]&&ko[r].prototype,s=n?ui:ui[r]||di(ui,r,{})[r],c=s.prototype,l,d,u,p,f,h,v,b,y;for(p in t)l=kD(n?p:r+(i?".":"#")+p,e.forced),d=!l&&a&&ub(a,p),h=s[p],d&&(e.dontCallGetSet?(y=CD(a,p),v=y&&y.value):v=a[p]),f=d&&v?v:t[p],!(!l&&!o&&typeof h==typeof f)&&(e.bind&&d?b=xD(f,ko):e.wrap&&d?b=TD(f):o&&ED(f)?b=AD(f):b=f,(e.sham||f&&f.sham||h&&h.sham)&&di(b,"sham",!0),di(s,p,b),o&&(u=r+"Prototype",ub(ui,u)||di(ui,u,{}),di(ui[u],p,f),e.real&&c&&(l||!c[p])&&di(c,p,f)))}});var fb=m((J7,pb)=>{"use strict";var PD=Math.ceil,RD=Math.floor;pb.exports=Math.trunc||function(t){var r=+t;return(r>0?RD:PD)(r)}});var xo=m((G7,hb)=>{"use strict";var OD=fb();hb.exports=function(e){var t=+e;return t!==t||t===0?0:OD(t)}});var Ed=m((H7,mb)=>{"use strict";var ND=xo(),DD=Math.min;mb.exports=function(e){var t=ND(e);return t>0?DD(t,9007199254740991):0}});var pi=m((V7,gb)=>{"use strict";var LD=Ed();gb.exports=function(e){return LD(e.length)}});var To=m(($7,vb)=>{"use strict";var qD=Sr();vb.exports=Array.isArray||function(t){return qD(t)==="Array"}});var Rs=m((K7,bb)=>{"use strict";var UD=it(),MD=UD("toStringTag"),yb={};yb[MD]="z";bb.exports=String(yb)==="[object z]"});var fi=m((W7,_b)=>{"use strict";var FD=Rs(),BD=Ye(),Os=Sr(),jD=it(),JD=jD("toStringTag"),GD=Object,HD=Os(function(){return arguments}())==="Arguments",VD=function(e,t){try{return e[t]}catch(r){}};_b.exports=FD?Os:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=VD(t=GD(e),JD))=="string"?r:HD?Os(t):(n=Os(t))==="Object"&&BD(t.callee)?"Arguments":n}});var Sb=m((z7,wb)=>{"use strict";var $D=De(),KD=Ye(),Cd=Ao(),WD=$D(Function.toString);KD(Cd.inspectSource)||(Cd.inspectSource=function(e){return WD(e)});wb.exports=Cd.inspectSource});var xd=m((Y7,kb)=>{"use strict";var zD=De(),YD=Ee(),Ib=Ye(),QD=fi(),XD=ai(),ZD=Sb(),Ab=function(){},Eb=XD("Reflect","construct"),kd=/^\s*(?:class|function)\b/,eL=zD(kd.exec),tL=!kd.test(Ab),Po=function(t){if(!Ib(t))return!1;try{return Eb(Ab,[],t),!0}catch(r){return!1}},Cb=function(t){if(!Ib(t))return!1;switch(QD(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return tL||!!eL(kd,ZD(t))}catch(r){return!0}};Cb.sham=!0;kb.exports=!Eb||YD(function(){var e;return Po(Po.call)||!Po(Object)||!Po(function(){e=!0})||e})?Cb:Po});var Rb=m((Q7,Pb)=>{"use strict";var xb=To(),rL=xd(),nL=Be(),iL=it(),oL=iL("species"),Tb=Array;Pb.exports=function(e){var t;return xb(e)&&(t=e.constructor,rL(t)&&(t===Tb||xb(t.prototype))?t=void 0:nL(t)&&(t=t[oL],t===null&&(t=void 0))),t===void 0?Tb:t}});var Td=m((X7,Ob)=>{"use strict";var aL=Rb();Ob.exports=function(e,t){return new(aL(e))(t===0?0:t)}});var Xr=m((Z7,Db)=>{"use strict";var sL=Co(),cL=De(),lL=As(),uL=ci(),dL=pi(),pL=Td(),Nb=cL([].push),Qr=function(e){var t=e===1,r=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(c,l,d,u){for(var p=uL(c),f=lL(p),h=dL(f),v=sL(l,d),b=0,y=u||pL,_=t?y(c,h):r||a?y(c,0):void 0,A,C;h>b;b++)if((s||b in f)&&(A=f[b],C=v(A,b,p),e))if(t)_[b]=C;else if(C)switch(e){case 3:return!0;case 5:return A;case 6:return b;case 2:Nb(_,A)}else switch(e){case 4:return!1;case 7:Nb(_,A)}return o?-1:n||i?i:_}};Db.exports={forEach:Qr(0),map:Qr(1),filter:Qr(2),some:Qr(3),every:Qr(4),find:Qr(5),findIndex:Qr(6),filterReject:Qr(7)}});var Ro=m((eY,Lb)=>{"use strict";var fL=Ee(),hL=it(),mL=ks(),gL=hL("species");Lb.exports=function(e){return mL>=51||!fL(function(){var t=[],r=t.constructor={};return r[gL]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var qb=m(()=>{"use strict";var vL=ce(),yL=Xr().filter,bL=Ro(),_L=bL("filter");vL({target:"Array",proto:!0,forced:!_L},{filter:function(t){return yL(this,t,arguments.length>1?arguments[1]:void 0)}})});var Ut=m((nY,Ub)=>{"use strict";var wL=Ce(),SL=er();Ub.exports=function(e,t){var r=SL[e+"Prototype"],n=r&&r[t];if(n)return n;var i=wL[e],o=i&&i.prototype;return o&&o[t]}});var Fb=m((iY,Mb)=>{"use strict";qb();var IL=Ut();Mb.exports=IL("Array","filter")});var jb=m((oY,Bb)=>{"use strict";var AL=pt(),EL=Fb(),Pd=Array.prototype;Bb.exports=function(e){var t=e.filter;return e===Pd||AL(Pd,e)&&t===Pd.filter?EL:t}});var Gb=m((aY,Jb)=>{"use strict";var CL=jb();Jb.exports=CL});var Vb=m((sY,Hb)=>{Hb.exports=Gb()});var Oo=m((cY,$b)=>{"use strict";var kL=Ee();$b.exports=function(e,t){var r=[][e];return!!r&&kL(function(){r.call(null,t||function(){return 1},1)})}});var Kb=m(()=>{"use strict";var xL=ce(),TL=Xr().every,PL=Oo(),RL=PL("every");xL({target:"Array",proto:!0,forced:!RL},{every:function(t){return TL(this,t,arguments.length>1?arguments[1]:void 0)}})});var zb=m((dY,Wb)=>{"use strict";Kb();var OL=Ut();Wb.exports=OL("Array","every")});var Qb=m((pY,Yb)=>{"use strict";var NL=pt(),DL=zb(),Rd=Array.prototype;Yb.exports=function(e){var t=e.every;return e===Rd||NL(Rd,e)&&t===Rd.every?DL:t}});var Zb=m((fY,Xb)=>{"use strict";var LL=Qb();Xb.exports=LL});var t_=m((hY,e_)=>{e_.exports=Zb()});var n_=m((mY,r_)=>{"use strict";var qL=Xr().forEach,UL=Oo(),ML=UL("forEach");r_.exports=ML?[].forEach:function(t){return qL(this,t,arguments.length>1?arguments[1]:void 0)}});var o_=m(()=>{"use strict";var FL=ce(),i_=n_();FL({target:"Array",proto:!0,forced:[].forEach!==i_},{forEach:i_})});var s_=m((yY,a_)=>{"use strict";o_();var BL=Ut();a_.exports=BL("Array","forEach")});var l_=m((bY,c_)=>{"use strict";var jL=s_();c_.exports=jL});var u_=m(()=>{});var p_=m((SY,d_)=>{"use strict";var JL=fi(),GL=xt(),HL=pt(),VL=l_();u_();var Od=Array.prototype,$L={DOMTokenList:!0,NodeList:!0};d_.exports=function(e){var t=e.forEach;return e===Od||HL(Od,e)&&t===Od.forEach||GL($L,JL(e))?VL:t}});var h_=m((IY,f_)=>{f_.exports=p_()});var g_=m((AY,m_)=>{"use strict";var KL=TypeError,WL=9007199254740991;m_.exports=function(e){if(e>WL)throw KL("Maximum allowed index exceeded");return e}});var Nd=m((EY,v_)=>{"use strict";var zL=ft(),YL=Ar(),QL=So();v_.exports=function(e,t,r){zL?YL.f(e,t,QL(0,r)):e[t]=r}});var w_=m(()=>{"use strict";var XL=ce(),ZL=Ee(),eq=To(),tq=Be(),rq=ci(),nq=pi(),y_=g_(),b_=Nd(),iq=Td(),oq=Ro(),aq=it(),sq=ks(),__=aq("isConcatSpreadable"),cq=sq>=51||!ZL(function(){var e=[];return e[__]=!1,e.concat()[0]!==e}),lq=function(e){if(!tq(e))return!1;var t=e[__];return t!==void 0?!!t:eq(e)},uq=!cq||!oq("concat");XL({target:"Array",proto:!0,arity:1,forced:uq},{concat:function(t){var r=rq(this),n=iq(r,0),i=0,o,a,s,c,l;for(o=-1,s=arguments.length;o<s;o++)if(l=o===-1?r:arguments[o],lq(l))for(c=nq(l),y_(i+c),a=0;a<c;a++,i++)a in l&&b_(n,i,l[a]);else y_(i+1),b_(n,i++,l);return n.length=i,n}})});var I_=m((xY,S_)=>{"use strict";w_();var dq=Ut();S_.exports=dq("Array","concat")});var E_=m((TY,A_)=>{"use strict";var pq=pt(),fq=I_(),Dd=Array.prototype;A_.exports=function(e){var t=e.concat;return e===Dd||pq(Dd,e)&&t===Dd.concat?fq:t}});var k_=m((PY,C_)=>{"use strict";var hq=E_();C_.exports=hq});var T_=m((RY,x_)=>{x_.exports=k_()});var P_=m(()=>{"use strict";var mq=ce(),gq=Xr().some,vq=Oo(),yq=vq("some");mq({target:"Array",proto:!0,forced:!yq},{some:function(t){return gq(this,t,arguments.length>1?arguments[1]:void 0)}})});var O_=m((DY,R_)=>{"use strict";P_();var bq=Ut();R_.exports=bq("Array","some")});var D_=m((LY,N_)=>{"use strict";var _q=pt(),wq=O_(),Ld=Array.prototype;N_.exports=function(e){var t=e.some;return e===Ld||_q(Ld,e)&&t===Ld.some?wq:t}});var q_=m((qY,L_)=>{"use strict";var Sq=D_();L_.exports=Sq});var M_=m((UY,U_)=>{U_.exports=q_()});var B_=m((MY,F_)=>{"use strict";var No=Ce(),Iq=Es(),Aq=Sr(),Ns=function(e){return Iq.slice(0,e.length)===e};F_.exports=function(){return Ns("Bun/")?"BUN":Ns("Cloudflare-Workers")?"CLOUDFLARE":Ns("Deno/")?"DENO":Ns("Node.js/")?"NODE":No.Bun&&typeof Bun.version=="string"?"BUN":No.Deno&&typeof Deno.version=="object"?"DENO":Aq(No.process)==="process"?"NODE":No.window&&No.document?"BROWSER":"REST"}()});var Do=m((FY,j_)=>{"use strict";var Eq=De();j_.exports=Eq([].slice)});var G_=m((BY,J_)=>{"use strict";var Cq=TypeError;J_.exports=function(e,t){if(e<t)throw new Cq("Not enough arguments");return e}});var qd=m((jY,V_)=>{"use strict";var H_=Ce(),kq=ed(),xq=Ye(),Tq=B_(),Pq=Es(),Rq=Do(),Oq=G_(),Nq=H_.Function,Dq=/MSIE .\./.test(Pq)||Tq==="BUN"&&function(){var e=H_.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();V_.exports=function(e,t){var r=t?2:1;return Dq?function(n,i){var o=Oq(arguments.length,1)>r,a=xq(n)?n:Nq(n),s=o?Rq(arguments,r):[],c=o?function(){kq(a,this,s)}:a;return t?e(c,i):e(c)}:e}});var W_=m(()=>{"use strict";var Lq=ce(),K_=Ce(),qq=qd(),$_=qq(K_.setInterval,!0);Lq({global:!0,bind:!0,forced:K_.setInterval!==$_},{setInterval:$_})});var Q_=m(()=>{"use strict";var Uq=ce(),Y_=Ce(),Mq=qd(),z_=Mq(Y_.setTimeout,!0);Uq({global:!0,bind:!0,forced:Y_.setTimeout!==z_},{setTimeout:z_})});var X_=m(()=>{"use strict";W_();Q_()});var ew=m((WY,Z_)=>{"use strict";X_();var Fq=er();Z_.exports=Fq.setTimeout});var rw=m((zY,tw)=>{tw.exports=ew()});function qo(e,t){Re.__h&&Re.__h(he,e,Lo||t),Lo=0;var r=he.__H||(he.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Er(e){return Lo=1,pw(fw,e)}function pw(e,t,r){var n=qo(Tn++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):fw(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,s);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=he,!he.__f)){var i=function(s,c,l){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,s,c,l);var u=n.__c.props!==s;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(u=!0)}}),o&&o.call(this,s,c,l)||u};he.__f=!0;var o=he.shouldComponentUpdate,a=he.componentWillUpdate;he.componentWillUpdate=function(s,c,l){if(this.__e){var d=o;o=void 0,i(s,c,l),o=d}a&&a.call(this,s,c,l)},he.shouldComponentUpdate=i}return n.__N||n.__}function Zr(e,t){var r=qo(Tn++,3);!Re.__s&&Fd(r.__H,t)&&(r.__=e,r.u=t,he.__H.__h.push(r))}function hi(e,t){var r=qo(Tn++,4);!Re.__s&&Fd(r.__H,t)&&(r.__=e,r.u=t,he.__h.push(r))}function mi(e){return Lo=5,Uo(function(){return{current:e}},[])}function Uo(e,t){var r=qo(Tn++,7);return Fd(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function en(e,t){return Lo=8,Uo(function(){return e},t)}function gi(e){var t=he.context[e.__c],r=qo(Tn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(he)),t.props.value):e.__}function Bq(){for(var e;e=dw.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ds),e.__H.__h.forEach(Md),e.__H.__h=[]}catch(t){e.__H.__h=[],Re.__e(t,e.__v)}}function jq(e){var t,r=function(){clearTimeout(n),uw&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);uw&&(t=requestAnimationFrame(r))}function Ds(e){var t=he,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),he=t}function Md(e){var t=he;e.__c=e.__(),he=t}function Fd(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function fw(e,t){return typeof t=="function"?t(e):t}var Tn,he,Ud,nw,Lo,dw,Re,iw,ow,aw,sw,cw,lw,uw,Bd=T(()=>{ii();Lo=0,dw=[],Re=U,iw=Re.__b,ow=Re.__r,aw=Re.diffed,sw=Re.__c,cw=Re.unmount,lw=Re.__;Re.__b=function(e){he=null,iw&&iw(e)},Re.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),lw&&lw(e,t)},Re.__r=function(e){ow&&ow(e),Tn=0;var t=(he=e.__c).__H;t&&(Ud===he?(t.__h=[],he.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Ds),t.__h.forEach(Md),t.__h=[],Tn=0)),Ud=he},Re.diffed=function(e){aw&&aw(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(dw.push(t)!==1&&nw===Re.requestAnimationFrame||((nw=Re.requestAnimationFrame)||jq)(Bq)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Ud=he=null},Re.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ds),r.__h=r.__h.filter(function(n){return!n.__||Md(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Re.__e(n,r.__v)}}),sw&&sw(e,t)},Re.unmount=function(e){cw&&cw(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ds(n)}catch(i){t=i}}),r.__H=void 0,t&&Re.__e(t,r.__v))};uw=typeof requestAnimationFrame=="function"});function Sw(e,t){for(var r in t)e[r]=t[r];return e}function Jd(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function hw(e,t){this.props=e,this.context=t}function Hd(e,t){function r(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!a:Jd(this.props,i)}function n(i){return this.shouldComponentUpdate=r,nt(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Vd(e){function t(r){var n=Sw({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=Jq,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Iw(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Sw({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Iw(n,t,r)})),e}function Aw(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Aw(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function jd(){this.__u=0,this.o=null,this.__b=null}function Ew(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ls(){this.i=null,this.l=null}function tr(e,t,r){return t.__k==null&&(t.textContent=""),zr(e,t),typeof r=="function"&&r(),e?e.__c:null}function Yq(){}function Qq(){return this.cancelBubble}function Xq(){return this.defaultPrevented}var Gd,mw,Jq,Gq,gw,vw,Hq,Vq,$q,Kq,Wq,zq,yw,Cw,Zq,bw,_w,ww,qs=T(()=>{ii();ii();Bd();Bd();Gd=hi;(hw.prototype=new kt).isPureReactComponent=!0,hw.prototype.shouldComponentUpdate=function(e,t){return Jd(this.props,e)||Jd(this.state,t)};mw=U.__b;U.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),mw&&mw(e)};Jq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;Gq=U.__e;U.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}Gq(e,t,r,n)};gw=U.unmount;U.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),gw&&gw(e)},(jd.prototype=new kt).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Ew(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Aw(c,c.__c.__P,c.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.o.pop();)l.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},jd.prototype.componentWillUnmount=function(){this.o=[]},jd.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Iw(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&nt(ze,null,e.fallback);return i&&(i.__u&=-33),[nt(ze,null,t.__a?null:e.children),i]};vw=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};(Ls.prototype=new kt).__a=function(e){var t=this,r=Ew(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),vw(t,e,n)):i()};r?r(o):o()}},Ls.prototype.render=function(e){this.i=null,this.l=new Map;var t=bo(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},Ls.prototype.componentDidUpdate=Ls.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){vw(e,r,t)})};Hq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Vq=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,$q=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Kq=/[A-Z0-9]/g,Wq=typeof document!="undefined",zq=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};kt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(kt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});yw=U.event;U.event=function(e){return yw&&(e=yw(e)),e.persist=Yq,e.isPropagationStopped=Qq,e.isDefaultPrevented=Xq,e.nativeEvent=e};Zq={enumerable:!1,configurable:!0,get:function(){return this.class}},bw=U.vnode;U.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={},o=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||Wq&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var c=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":c==="translate"&&s==="no"?s=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?a="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||zq(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":$q.test(a)&&(a=c):c=a="oninput":o&&Vq.test(a)?a=a.replace(Kq,"-$&").toLowerCase():s===null&&(s=void 0),c==="oninput"&&i[a=c]&&(a="oninputCapture"),i[a]=s}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=bo(r.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=bo(r.children).forEach(function(l){l.props.selected=i.multiple?i.defaultValue.indexOf(l.props.value)!=-1:i.defaultValue==l.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",Zq)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=Hq,bw&&bw(e)};_w=U.__r;U.__r=function(e){_w&&_w(e),Cw=e.__c};ww=U.diffed;U.diffed=function(e){ww&&ww(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),Cw=null}});var Kd=m(()=>{"use strict";var tU=ce(),$d=Ce();tU({global:!0,forced:$d.globalThis!==$d},{globalThis:$d})});var kw=m(()=>{"use strict";Kd()});var Tw=m((dQ,xw)=>{"use strict";Kd();xw.exports=Ce()});var Rw=m((pQ,Pw)=>{"use strict";var rU=Tw();Pw.exports=rU});var Nw=m((fQ,Ow)=>{"use strict";var nU=Rw();Ow.exports=nU});var Lw=m((hQ,Dw)=>{"use strict";kw();var iU=Nw();Dw.exports=iU});var Uw=m((mQ,qw)=>{"use strict";qw.exports=Lw()});var Fw=m((gQ,Mw)=>{Mw.exports=Uw()});var Bw=m(()=>{"use strict";var oU=ce(),aU=To();oU({target:"Array",stat:!0},{isArray:aU})});var Jw=m((bQ,jw)=>{"use strict";Bw();var sU=er();jw.exports=sU.Array.isArray});var Hw=m((_Q,Gw)=>{"use strict";var cU=Jw();Gw.exports=cU});var $w=m((wQ,Vw)=>{Vw.exports=Hw()});var Ww=m((SQ,Kw)=>{"use strict";Kw.exports=function(){}});var Pn=m((IQ,zw)=>{"use strict";zw.exports={}});var Wd=m((AQ,Qw)=>{"use strict";var lU=Ce(),uU=Ye(),Yw=lU.WeakMap;Qw.exports=uU(Yw)&&/native code/.test(String(Yw))});var Us=m((EQ,Zw)=>{"use strict";var dU=fd(),pU=Ts(),Xw=dU("keys");Zw.exports=function(e){return Xw[e]||(Xw[e]=pU(e))}});var Mo=m((CQ,eS)=>{"use strict";eS.exports={}});var On=m((kQ,nS)=>{"use strict";var fU=Wd(),rS=Ce(),hU=Be(),mU=xn(),zd=xt(),Yd=Ao(),gU=Us(),vU=Mo(),tS="Object already initialized",Qd=rS.TypeError,yU=rS.WeakMap,Ms,Fo,Fs,bU=function(e){return Fs(e)?Fo(e):Ms(e,{})},_U=function(e){return function(t){var r;if(!hU(t)||(r=Fo(t)).type!==e)throw new Qd("Incompatible receiver, "+e+" required");return r}};fU||Yd.state?(Vt=Yd.state||(Yd.state=new yU),Vt.get=Vt.get,Vt.has=Vt.has,Vt.set=Vt.set,Ms=function(e,t){if(Vt.has(e))throw new Qd(tS);return t.facade=e,Vt.set(e,t),t},Fo=function(e){return Vt.get(e)||{}},Fs=function(e){return Vt.has(e)}):(Rn=gU("state"),vU[Rn]=!0,Ms=function(e,t){if(zd(e,Rn))throw new Qd(tS);return t.facade=e,mU(e,Rn,t),t},Fo=function(e){return zd(e,Rn)?e[Rn]:{}},Fs=function(e){return zd(e,Rn)});var Vt,Rn;nS.exports={set:Ms,get:Fo,has:Fs,enforce:bU,getterFor:_U}});var ep=m((xQ,oS)=>{"use strict";var Xd=ft(),wU=xt(),iS=Function.prototype,SU=Xd&&Object.getOwnPropertyDescriptor,Zd=wU(iS,"name"),IU=Zd&&(function(){}).name==="something",AU=Zd&&(!Xd||Xd&&SU(iS,"name").configurable);oS.exports={EXISTS:Zd,PROPER:IU,CONFIGURABLE:AU}});var tp=m((TQ,aS)=>{"use strict";var EU=xo(),CU=Math.max,kU=Math.min;aS.exports=function(e,t){var r=EU(e);return r<0?CU(r+t,0):kU(r,t)}});var rp=m((PQ,cS)=>{"use strict";var xU=Yr(),TU=tp(),PU=pi(),sS=function(e){return function(t,r,n){var i=xU(t),o=PU(i);if(o===0)return!e&&-1;var a=TU(n,o),s;if(e&&r!==r){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}};cS.exports={includes:sS(!0),indexOf:sS(!1)}});var ip=m((RQ,uS)=>{"use strict";var RU=De(),np=xt(),OU=Yr(),NU=rp().indexOf,DU=Mo(),lS=RU([].push);uS.exports=function(e,t){var r=OU(e),n=0,i=[],o;for(o in r)!np(DU,o)&&np(r,o)&&lS(i,o);for(;t.length>n;)np(r,o=t[n++])&&(~NU(i,o)||lS(i,o));return i}});var Bs=m((OQ,dS)=>{"use strict";dS.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var op=m((NQ,pS)=>{"use strict";var LU=ip(),qU=Bs();pS.exports=Object.keys||function(t){return LU(t,qU)}});var hS=m(fS=>{"use strict";var UU=ft(),MU=_d(),FU=Ar(),BU=Ir(),jU=Yr(),JU=op();fS.f=UU&&!MU?Object.defineProperties:function(t,r){BU(t);for(var n=jU(r),i=JU(r),o=i.length,a=0,s;o>a;)FU.f(t,s=i[a++],n[s]);return t}});var gS=m((LQ,mS)=>{"use strict";var GU=ai();mS.exports=GU("document","documentElement")});var Bo=m((qQ,IS)=>{"use strict";var HU=Ir(),VU=hS(),vS=Bs(),$U=Mo(),KU=gS(),WU=vd(),zU=Us(),yS=">",bS="<",sp="prototype",cp="script",wS=zU("IE_PROTO"),ap=function(){},SS=function(e){return bS+cp+yS+e+bS+"/"+cp+yS},_S=function(e){e.write(SS("")),e.close();var t=e.parentWindow.Object;return e=null,t},YU=function(){var e=WU("iframe"),t="java"+cp+":",r;return e.style.display="none",KU.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(SS("document.F=Object")),r.close(),r.F},js,Js=function(){try{js=new ActiveXObject("htmlfile")}catch(t){}Js=typeof document!="undefined"?document.domain&&js?_S(js):YU():_S(js);for(var e=vS.length;e--;)delete Js[sp][vS[e]];return Js()};$U[wS]=!0;IS.exports=Object.create||function(t,r){var n;return t!==null?(ap[sp]=HU(t),n=new ap,ap[sp]=null,n[wS]=t):n=Js(),r===void 0?n:VU.f(n,r)}});var ES=m((UQ,AS)=>{"use strict";var QU=Ee();AS.exports=!QU(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var up=m((MQ,kS)=>{"use strict";var XU=xt(),ZU=Ye(),eM=ci(),tM=Us(),rM=ES(),CS=tM("IE_PROTO"),lp=Object,nM=lp.prototype;kS.exports=rM?lp.getPrototypeOf:function(e){var t=eM(e);if(XU(t,CS))return t[CS];var r=t.constructor;return ZU(r)&&t instanceof r?r.prototype:t instanceof lp?nM:null}});var Gs=m((FQ,xS)=>{"use strict";var iM=xn();xS.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:iM(e,t,r),e}});var hp=m((BQ,RS)=>{"use strict";var oM=Ee(),aM=Ye(),sM=Be(),cM=Bo(),TS=up(),lM=Gs(),uM=it(),dM=si(),fp=uM("iterator"),PS=!1,Cr,dp,pp;[].keys&&(pp=[].keys(),"next"in pp?(dp=TS(TS(pp)),dp!==Object.prototype&&(Cr=dp)):PS=!0);var pM=!sM(Cr)||oM(function(){var e={};return Cr[fp].call(e)!==e});pM?Cr={}:dM&&(Cr=cM(Cr));aM(Cr[fp])||lM(Cr,fp,function(){return this});RS.exports={IteratorPrototype:Cr,BUGGY_SAFARI_ITERATORS:PS}});var NS=m((jQ,OS)=>{"use strict";var fM=Rs(),hM=fi();OS.exports=fM?{}.toString:function(){return"[object "+hM(this)+"]"}});var jo=m((JQ,LS)=>{"use strict";var mM=Rs(),gM=Ar().f,vM=xn(),yM=xt(),bM=NS(),_M=it(),DS=_M("toStringTag");LS.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(yM(i,DS)||gM(i,DS,{configurable:!0,value:t}),n&&!mM&&vM(i,"toString",bM))}});var US=m((GQ,qS)=>{"use strict";var wM=hp().IteratorPrototype,SM=Bo(),IM=So(),AM=jo(),EM=Pn(),CM=function(){return this};qS.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=SM(wM,{next:IM(+!n,r)}),AM(e,i,!1,!0),EM[i]=CM,e}});var FS=m((HQ,MS)=>{"use strict";var kM=De(),xM=kn();MS.exports=function(e,t,r){try{return kM(xM(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var jS=m((VQ,BS)=>{"use strict";var TM=Be();BS.exports=function(e){return TM(e)||e===null}});var GS=m(($Q,JS)=>{"use strict";var PM=jS(),RM=String,OM=TypeError;JS.exports=function(e){if(PM(e))return e;throw new OM("Can't set "+RM(e)+" as a prototype")}});var VS=m((KQ,HS)=>{"use strict";var NM=FS(),DM=Be(),LM=Cn(),qM=GS();HS.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=NM(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return LM(i),qM(o),DM(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var $s=m((WQ,tI)=>{"use strict";var UM=ce(),MM=Gt(),Hs=si(),ZS=ep(),FM=Ye(),BM=US(),$S=up(),KS=VS(),jM=jo(),JM=xn(),mp=Gs(),GM=it(),WS=Pn(),eI=hp(),HM=ZS.PROPER,VM=ZS.CONFIGURABLE,zS=eI.IteratorPrototype,Vs=eI.BUGGY_SAFARI_ITERATORS,Jo=GM("iterator"),YS="keys",Go="values",QS="entries",XS=function(){return this};tI.exports=function(e,t,r,n,i,o,a){BM(r,t,n);var s=function(y){if(y===i&&p)return p;if(!Vs&&y&&y in d)return d[y];switch(y){case YS:return function(){return new r(this,y)};case Go:return function(){return new r(this,y)};case QS:return function(){return new r(this,y)}}return function(){return new r(this)}},c=t+" Iterator",l=!1,d=e.prototype,u=d[Jo]||d["@@iterator"]||i&&d[i],p=!Vs&&u||s(i),f=t==="Array"&&d.entries||u,h,v,b;if(f&&(h=$S(f.call(new e)),h!==Object.prototype&&h.next&&(!Hs&&$S(h)!==zS&&(KS?KS(h,zS):FM(h[Jo])||mp(h,Jo,XS)),jM(h,c,!0,!0),Hs&&(WS[c]=XS))),HM&&i===Go&&u&&u.name!==Go&&(!Hs&&VM?JM(d,"name",Go):(l=!0,p=function(){return MM(u,this)})),i)if(v={values:s(Go),keys:o?p:s(YS),entries:s(QS)},a)for(b in v)(Vs||l||!(b in d))&&mp(d,b,v[b]);else UM({target:t,proto:!0,forced:Vs||l},v);return(!Hs||a)&&d[Jo]!==p&&mp(d,Jo,p,{name:i}),WS[t]=p,v}});var Ks=m((zQ,rI)=>{"use strict";rI.exports=function(e,t){return{value:e,done:t}}});var zs=m((YQ,sI)=>{"use strict";var $M=Yr(),gp=Ww(),nI=Pn(),oI=On(),KM=Ar().f,WM=$s(),Ws=Ks(),zM=si(),YM=ft(),aI="Array Iterator",QM=oI.set,XM=oI.getterFor(aI);sI.exports=WM(Array,"Array",function(e,t){QM(this,{type:aI,target:$M(e),index:0,kind:t})},function(){var e=XM(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Ws(void 0,!0);switch(e.kind){case"keys":return Ws(r,!1);case"values":return Ws(t[r],!1)}return Ws([r,t[r]],!1)},"values");var iI=nI.Arguments=nI.Array;gp("keys");gp("values");gp("entries");if(!zM&&YM&&iI.name!=="values")try{KM(iI,"name",{value:"values"})}catch(e){}});var vp=m(()=>{});var yp=m((ZQ,cI)=>{"use strict";var ZM=Ee();cI.exports=!ZM(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Ys=m((eX,lI)=>{"use strict";var eF=Gs();lI.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:eF(e,n,t[n],r);return e}});var bp=m(uI=>{"use strict";var tF=ip(),rF=Bs(),nF=rF.concat("length","prototype");uI.f=Object.getOwnPropertyNames||function(t){return tF(t,nF)}});var hI=m((rX,fI)=>{"use strict";var iF=Sr(),oF=Yr(),dI=bp().f,aF=Do(),pI=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],sF=function(e){try{return dI(e)}catch(t){return aF(pI)}};fI.exports.f=function(t){return pI&&iF(t)==="Window"?sF(t):dI(oF(t))}});var gI=m((nX,mI)=>{"use strict";var cF=Ee();mI.exports=cF(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var bI=m((iX,yI)=>{"use strict";var lF=Ee(),uF=Be(),dF=Sr(),vI=gI(),Qs=Object.isExtensible,pF=lF(function(){Qs(1)});yI.exports=pF||vI?function(t){return!uF(t)||vI&&dF(t)==="ArrayBuffer"?!1:Qs?Qs(t):!0}:Qs});var Ho=m((oX,SI)=>{"use strict";var fF=ce(),hF=De(),mF=Mo(),gF=Be(),_p=xt(),vF=Ar().f,_I=bp(),yF=hI(),wp=bI(),bF=Ts(),_F=yp(),wI=!1,kr=bF("meta"),wF=0,Sp=function(e){vF(e,kr,{value:{objectID:"O"+wF++,weakData:{}}})},SF=function(e,t){if(!gF(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!_p(e,kr)){if(!wp(e))return"F";if(!t)return"E";Sp(e)}return e[kr].objectID},IF=function(e,t){if(!_p(e,kr)){if(!wp(e))return!0;if(!t)return!1;Sp(e)}return e[kr].weakData},AF=function(e){return _F&&wI&&wp(e)&&!_p(e,kr)&&Sp(e),e},EF=function(){CF.enable=function(){},wI=!0;var e=_I.f,t=hF([].splice),r={};r[kr]=1,e(r).length&&(_I.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===kr){t(i,o,1);break}return i},fF({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:yF.f}))},CF=SI.exports={enable:EF,fastKey:SF,getWeakData:IF,onFreeze:AF};mF[kr]=!0});var AI=m((aX,II)=>{"use strict";var kF=it(),xF=Pn(),TF=kF("iterator"),PF=Array.prototype;II.exports=function(e){return e!==void 0&&(xF.Array===e||PF[TF]===e)}});var Ip=m((sX,CI)=>{"use strict";var RF=fi(),EI=xs(),OF=En(),NF=Pn(),DF=it(),LF=DF("iterator");CI.exports=function(e){if(!OF(e))return EI(e,LF)||EI(e,"@@iterator")||NF[RF(e)]}});var xI=m((cX,kI)=>{"use strict";var qF=Gt(),UF=kn(),MF=Ir(),FF=Io(),BF=Ip(),jF=TypeError;kI.exports=function(e,t){var r=arguments.length<2?BF(e):t;if(UF(r))return MF(qF(r,e));throw new jF(FF(e)+" is not iterable")}});var Xs=m((lX,PI)=>{"use strict";var JF=Gt(),TI=Ir(),GF=xs();PI.exports=function(e,t,r){var n,i;TI(e);try{if(n=GF(e,"return"),!n){if(t==="throw")throw r;return r}n=JF(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return TI(n),r}});var ec=m((uX,DI)=>{"use strict";var HF=Co(),VF=Gt(),$F=Ir(),KF=Io(),WF=AI(),zF=pi(),RI=pt(),YF=xI(),QF=Ip(),OI=Xs(),XF=TypeError,Zs=function(e,t){this.stopped=e,this.result=t},NI=Zs.prototype;DI.exports=function(e,t,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),c=HF(t,n),l,d,u,p,f,h,v,b=function(_){return l&&OI(l,"normal",_),new Zs(!0,_)},y=function(_){return i?($F(_),s?c(_[0],_[1],b):c(_[0],_[1])):s?c(_,b):c(_)};if(o)l=e.iterator;else if(a)l=e;else{if(d=QF(e),!d)throw new XF(KF(e)+" is not iterable");if(WF(d)){for(u=0,p=zF(e);p>u;u++)if(f=y(e[u]),f&&RI(NI,f))return f;return new Zs(!1)}l=YF(e,d)}for(h=o?e.next:l.next;!(v=VF(h,l)).done;){try{f=y(v.value)}catch(_){OI(l,"throw",_)}if(typeof f=="object"&&f&&RI(NI,f))return f}return new Zs(!1)}});var tc=m((dX,LI)=>{"use strict";var ZF=pt(),eB=TypeError;LI.exports=function(e,t){if(ZF(t,e))return e;throw new eB("Incorrect invocation")}});var Ap=m((pX,UI)=>{"use strict";var tB=ce(),rB=Ce(),nB=Ho(),iB=Ee(),oB=xn(),aB=ec(),sB=tc(),cB=Ye(),lB=Be(),uB=En(),dB=jo(),pB=Ar().f,fB=Xr().forEach,hB=ft(),qI=On(),mB=qI.set,gB=qI.getterFor;UI.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=rB[e],s=a&&a.prototype,c={},l;if(!hB||!cB(a)||!(i||s.forEach&&!iB(function(){new a().entries().next()})))l=r.getConstructor(t,e,n,o),nB.enable();else{l=t(function(p,f){mB(sB(p,d),{type:e,collection:new a}),uB(f)||aB(f,p[o],{that:p,AS_ENTRIES:n})});var d=l.prototype,u=gB(e);fB(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&oB(d,p,function(h,v){var b=u(this).collection;if(!f&&i&&!lB(h))return p==="get"?void 0:!1;var y=b[p](h===0?0:h,v);return f?this:y})}),i||pB(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return dB(l,e,!1,!0),c[e]=l,tB({global:!0,forced:!0},c),i||r.setStrong(l,e,n),l}});var HI=m((fX,GI)=>{"use strict";var vB=De(),MI=Ys(),rc=Ho().getWeakData,yB=tc(),bB=Ir(),_B=En(),Ep=Be(),wB=ec(),BI=Xr(),FI=xt(),jI=On(),SB=jI.set,IB=jI.getterFor,AB=BI.find,EB=BI.findIndex,CB=vB([].splice),kB=0,nc=function(e){return e.frozen||(e.frozen=new JI)},JI=function(){this.entries=[]},Cp=function(e,t){return AB(e.entries,function(r){return r[0]===t})};JI.prototype={get:function(e){var t=Cp(this,e);if(t)return t[1]},has:function(e){return!!Cp(this,e)},set:function(e,t){var r=Cp(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=EB(this.entries,function(r){return r[0]===e});return~t&&CB(this.entries,t,1),!!~t}};GI.exports={getConstructor:function(e,t,r,n){var i=e(function(c,l){yB(c,o),SB(c,{type:t,id:kB++,frozen:null}),_B(l)||wB(l,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=IB(t),s=function(c,l,d){var u=a(c),p=rc(bB(l),!0);return p===!0?nc(u).set(l,d):p[u.id]=d,c};return MI(o,{delete:function(c){var l=a(this);if(!Ep(c))return!1;var d=rc(c);return d===!0?nc(l).delete(c):d&&FI(d,l.id)&&delete d[l.id]},has:function(l){var d=a(this);if(!Ep(l))return!1;var u=rc(l);return u===!0?nc(d).has(l):u&&FI(u,d.id)}}),MI(o,r?{get:function(l){var d=a(this);if(Ep(l)){var u=rc(l);if(u===!0)return nc(d).get(l);if(u)return u[d.id]}},set:function(l,d){return s(this,l,d)}}:{add:function(l){return s(this,l,!0)}}),i}}});var XI=m(()=>{"use strict";var xB=yp(),VI=Ce(),sc=De(),$I=Ys(),TB=Ho(),PB=Ap(),KI=HI(),ic=Be(),oc=On().enforce,RB=Ee(),OB=Wd(),Ko=Object,NB=Array.isArray,ac=Ko.isExtensible,WI=Ko.isFrozen,DB=Ko.isSealed,zI=Ko.freeze,LB=Ko.seal,qB=!VI.ActiveXObject&&"ActiveXObject"in VI,Vo,YI=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},QI=PB("WeakMap",YI,KI),yi=QI.prototype,cc=sc(yi.set),UB=function(){return xB&&RB(function(){var e=zI([]);return cc(new QI,e,1),!WI(e)})};OB&&(qB?(Vo=KI.getConstructor(YI,"WeakMap",!0),TB.enable(),kp=sc(yi.delete),$o=sc(yi.has),xp=sc(yi.get),$I(yi,{delete:function(e){if(ic(e)&&!ac(e)){var t=oc(this);return t.frozen||(t.frozen=new Vo),kp(this,e)||t.frozen.delete(e)}return kp(this,e)},has:function(t){if(ic(t)&&!ac(t)){var r=oc(this);return r.frozen||(r.frozen=new Vo),$o(this,t)||r.frozen.has(t)}return $o(this,t)},get:function(t){if(ic(t)&&!ac(t)){var r=oc(this);return r.frozen||(r.frozen=new Vo),$o(this,t)?xp(this,t):r.frozen.get(t)}return xp(this,t)},set:function(t,r){if(ic(t)&&!ac(t)){var n=oc(this);n.frozen||(n.frozen=new Vo),$o(this,t)?cc(this,t,r):n.frozen.set(t,r)}else cc(this,t,r);return this}})):UB()&&$I(yi,{set:function(t,r){var n;return NB(t)&&(WI(t)?n=zI:DB(t)&&(n=LB)),cc(this,t,r),n&&n(t),this}}));var kp,$o,xp});var ZI=m(()=>{"use strict";XI()});var tA=m((yX,eA)=>{"use strict";zs();vp();ZI();var MB=er();eA.exports=MB.WeakMap});var nA=m((bX,rA)=>{"use strict";rA.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var Tp=m(()=>{"use strict";zs();var FB=nA(),BB=Ce(),jB=jo(),iA=Pn();for(lc in FB)jB(BB[lc],lc),iA[lc]=iA.Array;var lc});var aA=m((SX,oA)=>{"use strict";var JB=tA();Tp();oA.exports=JB});var cA=m((IX,sA)=>{sA.exports=aA()});var uA=m(()=>{"use strict";var GB=ce(),HB=wo(),VB=rp().indexOf,$B=Oo(),Pp=HB([].indexOf),lA=!!Pp&&1/Pp([1],1,-0)<0,KB=lA||!$B("indexOf");GB({target:"Array",proto:!0,forced:KB},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return lA?Pp(this,t,r)||0:VB(this,t,r)}})});var pA=m((CX,dA)=>{"use strict";uA();var WB=Ut();dA.exports=WB("Array","indexOf")});var hA=m((kX,fA)=>{"use strict";var zB=pt(),YB=pA(),Rp=Array.prototype;fA.exports=function(e){var t=e.indexOf;return e===Rp||zB(Rp,e)&&t===Rp.indexOf?YB:t}});var gA=m((xX,mA)=>{"use strict";var QB=hA();mA.exports=QB});var yA=m((TX,vA)=>{vA.exports=gA()});var bA=m(()=>{"use strict";var XB=ce(),ZB=Xr().map,ej=Ro(),tj=ej("map");XB({target:"Array",proto:!0,forced:!tj},{map:function(t){return ZB(this,t,arguments.length>1?arguments[1]:void 0)}})});var wA=m((OX,_A)=>{"use strict";bA();var rj=Ut();_A.exports=rj("Array","map")});var IA=m((NX,SA)=>{"use strict";var nj=pt(),ij=wA(),Op=Array.prototype;SA.exports=function(e){var t=e.map;return e===Op||nj(Op,e)&&t===Op.map?ij:t}});var EA=m((DX,AA)=>{"use strict";var oj=IA();AA.exports=oj});var kA=m((LX,CA)=>{CA.exports=EA()});var xA=m(()=>{"use strict";var aj=ce(),sj=ft(),cj=Bo();aj({target:"Object",stat:!0,sham:!sj},{create:cj})});var PA=m((MX,TA)=>{"use strict";xA();var lj=er(),uj=lj.Object;TA.exports=function(t,r){return uj.create(t,r)}});var OA=m((FX,RA)=>{"use strict";var dj=PA();RA.exports=dj});var DA=m((BX,NA)=>{NA.exports=OA()});var Np=m((jX,LA)=>{"use strict";var pj=Ar();LA.exports=function(e,t,r){return pj.f(e,t,r)}});var MA=m((JX,UA)=>{"use strict";var fj=ai(),hj=Np(),mj=it(),gj=ft(),qA=mj("species");UA.exports=function(e){var t=fj(e);gj&&t&&!t[qA]&&hj(t,qA,{configurable:!0,get:function(){return this}})}});var VA=m((GX,HA)=>{"use strict";var FA=Bo(),vj=Np(),BA=Ys(),yj=Co(),bj=tc(),_j=En(),wj=ec(),Sj=$s(),uc=Ks(),Ij=MA(),Wo=ft(),jA=Ho().fastKey,GA=On(),JA=GA.set,Dp=GA.getterFor;HA.exports={getConstructor:function(e,t,r,n){var i=e(function(l,d){bj(l,o),JA(l,{type:t,index:FA(null),first:null,last:null,size:0}),Wo||(l.size=0),_j(d)||wj(d,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Dp(t),s=function(l,d,u){var p=a(l),f=c(l,d),h,v;return f?f.value=u:(p.last=f={index:v=jA(d,!0),key:d,value:u,previous:h=p.last,next:null,removed:!1},p.first||(p.first=f),h&&(h.next=f),Wo?p.size++:l.size++,v!=="F"&&(p.index[v]=f)),l},c=function(l,d){var u=a(l),p=jA(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return BA(o,{clear:function(){for(var d=this,u=a(d),p=u.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;u.first=u.last=null,u.index=FA(null),Wo?u.size=0:d.size=0},delete:function(l){var d=this,u=a(d),p=c(d,l);if(p){var f=p.next,h=p.previous;delete u.index[p.index],p.removed=!0,h&&(h.next=f),f&&(f.previous=h),u.first===p&&(u.first=f),u.last===p&&(u.last=h),Wo?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=yj(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:u.first;)for(p(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!c(this,d)}}),BA(o,r?{get:function(d){var u=c(this,d);return u&&u.value},set:function(d,u){return s(this,d===0?0:d,u)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),Wo&&vj(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Dp(t),o=Dp(n);Sj(e,t,function(a,s){JA(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,c=a.last;c&&c.removed;)c=c.previous;return!a.target||!(a.last=c=c?c.next:a.state.first)?(a.target=null,uc(void 0,!0)):uc(s==="keys"?c.key:s==="values"?c.value:[c.key,c.value],!1)},r?"entries":"values",!r,!0),Ij(t)}}});var $A=m(()=>{"use strict";var Aj=Ap(),Ej=VA();Aj("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ej)});var KA=m(()=>{"use strict";$A()});var tn=m((WX,WA)=>{"use strict";var Cj=Io(),kj=TypeError;WA.exports=function(e){if(typeof e=="object"&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new kj(Cj(e)+" is not a set")}});var YA=m((zX,zA)=>{"use strict";zA.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var rn=m((YX,XA)=>{"use strict";var xj=ai(),Lp=YA(),QA=xj("Set"),Tj=QA.prototype;XA.exports={Set:QA,add:Lp("add",1),has:Lp("has",1),remove:Lp("delete",1),proto:Tj}});var nn=m((QX,ZA)=>{"use strict";var Pj=Gt();ZA.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=Pj(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var bi=m((XX,eE)=>{"use strict";var Rj=nn();eE.exports=function(e,t,r){return r?Rj(e.keys(),t,!0):e.forEach(t)}});var dc=m((ZX,rE)=>{"use strict";var tE=rn(),Oj=bi(),Nj=tE.Set,Dj=tE.add;rE.exports=function(e){var t=new Nj;return Oj(e,function(r){Dj(t,r)}),t}});var _i=m((eZ,nE)=>{"use strict";nE.exports=function(e){return e.size}});var oE=m((tZ,iE)=>{"use strict";iE.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var on=m((rZ,dE)=>{"use strict";var aE=kn(),lE=Ir(),sE=Gt(),Lj=xo(),qj=oE(),cE="Invalid size",Uj=RangeError,Mj=TypeError,Fj=Math.max,uE=function(e,t){this.set=e,this.size=Fj(t,0),this.has=aE(e.has),this.keys=aE(e.keys)};uE.prototype={getIterator:function(){return qj(lE(sE(this.keys,this.set)))},includes:function(e){return sE(this.has,this.set,e)}};dE.exports=function(e){lE(e);var t=+e.size;if(t!==t)throw new Mj(cE);var r=Lj(t);if(r<0)throw new Uj(cE);return new uE(e,r)}});var mE=m((nZ,hE)=>{"use strict";var Bj=tn(),fE=rn(),jj=dc(),Jj=_i(),Gj=on(),Hj=bi(),Vj=nn(),$j=fE.has,pE=fE.remove;hE.exports=function(t){var r=Bj(this),n=Gj(t),i=jj(r);return Jj(r)<=n.size?Hj(r,function(o){n.includes(o)&&pE(i,o)}):Vj(n.getIterator(),function(o){$j(r,o)&&pE(i,o)}),i}});var an=m((iZ,gE)=>{"use strict";gE.exports=function(){return!1}});var vE=m(()=>{"use strict";var Kj=ce(),Wj=mE(),zj=an(),Yj=!zj("difference",function(e){return e.size===0});Kj({target:"Set",proto:!0,real:!0,forced:Yj},{difference:Wj})});var _E=m((sZ,bE)=>{"use strict";var Qj=tn(),qp=rn(),Xj=_i(),Zj=on(),eJ=bi(),tJ=nn(),rJ=qp.Set,yE=qp.add,nJ=qp.has;bE.exports=function(t){var r=Qj(this),n=Zj(t),i=new rJ;return Xj(r)>n.size?tJ(n.getIterator(),function(o){nJ(r,o)&&yE(i,o)}):eJ(r,function(o){n.includes(o)&&yE(i,o)}),i}});var wE=m(()=>{"use strict";var iJ=ce(),oJ=Ee(),aJ=_E(),sJ=an(),cJ=!sJ("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||oJ(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});iJ({target:"Set",proto:!0,real:!0,forced:cJ},{intersection:aJ})});var IE=m((uZ,SE)=>{"use strict";var lJ=tn(),uJ=rn().has,dJ=_i(),pJ=on(),fJ=bi(),hJ=nn(),mJ=Xs();SE.exports=function(t){var r=lJ(this),n=pJ(t);if(dJ(r)<=n.size)return fJ(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return hJ(i,function(o){if(uJ(r,o))return mJ(i,"normal",!1)})!==!1}});var AE=m(()=>{"use strict";var gJ=ce(),vJ=IE(),yJ=an(),bJ=!yJ("isDisjointFrom",function(e){return!e});gJ({target:"Set",proto:!0,real:!0,forced:bJ},{isDisjointFrom:vJ})});var CE=m((fZ,EE)=>{"use strict";var _J=tn(),wJ=_i(),SJ=bi(),IJ=on();EE.exports=function(t){var r=_J(this),n=IJ(t);return wJ(r)>n.size?!1:SJ(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var kE=m(()=>{"use strict";var AJ=ce(),EJ=CE(),CJ=an(),kJ=!CJ("isSubsetOf",function(e){return e});AJ({target:"Set",proto:!0,real:!0,forced:kJ},{isSubsetOf:EJ})});var TE=m((gZ,xE)=>{"use strict";var xJ=tn(),TJ=rn().has,PJ=_i(),RJ=on(),OJ=nn(),NJ=Xs();xE.exports=function(t){var r=xJ(this),n=RJ(t);if(PJ(r)<n.size)return!1;var i=n.getIterator();return OJ(i,function(o){if(!TJ(r,o))return NJ(i,"normal",!1)})!==!1}});var PE=m(()=>{"use strict";var DJ=ce(),LJ=TE(),qJ=an(),UJ=!qJ("isSupersetOf",function(e){return!e});DJ({target:"Set",proto:!0,real:!0,forced:UJ},{isSupersetOf:LJ})});var OE=m((bZ,RE)=>{"use strict";var MJ=tn(),Up=rn(),FJ=dc(),BJ=on(),jJ=nn(),JJ=Up.add,GJ=Up.has,HJ=Up.remove;RE.exports=function(t){var r=MJ(this),n=BJ(t).getIterator(),i=FJ(r);return jJ(n,function(o){GJ(r,o)?HJ(i,o):JJ(i,o)}),i}});var NE=m(()=>{"use strict";var VJ=ce(),$J=OE(),KJ=an();VJ({target:"Set",proto:!0,real:!0,forced:!KJ("symmetricDifference")},{symmetricDifference:$J})});var LE=m((SZ,DE)=>{"use strict";var WJ=tn(),zJ=rn().add,YJ=dc(),QJ=on(),XJ=nn();DE.exports=function(t){var r=WJ(this),n=QJ(t).getIterator(),i=YJ(r);return XJ(n,function(o){zJ(i,o)}),i}});var qE=m(()=>{"use strict";var ZJ=ce(),eG=LE(),tG=an();ZJ({target:"Set",proto:!0,real:!0,forced:!tG("union")},{union:eG})});var zo=m((EZ,UE)=>{"use strict";var rG=fi(),nG=String;UE.exports=function(e){if(rG(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return nG(e)}});var jE=m((CZ,BE)=>{"use strict";var Mp=De(),iG=xo(),oG=zo(),aG=Cn(),sG=Mp("".charAt),ME=Mp("".charCodeAt),cG=Mp("".slice),FE=function(e){return function(t,r){var n=oG(aG(t)),i=iG(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=ME(n,i),a<55296||a>56319||i+1===o||(s=ME(n,i+1))<56320||s>57343?e?sG(n,i):a:e?cG(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};BE.exports={codeAt:FE(!1),charAt:FE(!0)}});var VE=m(()=>{"use strict";var lG=jE().charAt,uG=zo(),GE=On(),dG=$s(),JE=Ks(),HE="String Iterator",pG=GE.set,fG=GE.getterFor(HE);dG(String,"String",function(e){pG(this,{type:HE,string:uG(e),index:0})},function(){var t=fG(this),r=t.string,n=t.index,i;return n>=r.length?JE(void 0,!0):(i=lG(r,n),t.index+=i.length,JE(i,!1))})});var KE=m((TZ,$E)=>{"use strict";zs();vp();KA();vE();wE();AE();kE();PE();NE();qE();VE();var hG=er();$E.exports=hG.Set});var zE=m((PZ,WE)=>{"use strict";var mG=KE();Tp();WE.exports=mG});var QE=m((RZ,YE)=>{YE.exports=zE()});var ZE=m(XE=>{"use strict";XE.f=Object.getOwnPropertySymbols});var n0=m((NZ,r0)=>{"use strict";var e0=ft(),gG=De(),vG=Gt(),yG=Ee(),Fp=op(),bG=ZE(),_G=rd(),wG=ci(),SG=As(),wi=Object.assign,t0=Object.defineProperty,IG=gG([].concat);r0.exports=!wi||yG(function(){if(e0&&wi({b:1},wi(t0({},"a",{enumerable:!0,get:function(){t0(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),wi({},e)[r]!==7||Fp(wi({},t)).join("")!==n})?function(t,r){for(var n=wG(t),i=arguments.length,o=1,a=bG.f,s=_G.f;i>o;)for(var c=SG(arguments[o++]),l=a?IG(Fp(c),a(c)):Fp(c),d=l.length,u=0,p;d>u;)p=l[u++],(!e0||vG(s,c,p))&&(n[p]=c[p]);return n}:wi});var o0=m(()=>{"use strict";var AG=ce(),i0=n0();AG({target:"Object",stat:!0,arity:2,forced:Object.assign!==i0},{assign:i0})});var s0=m((qZ,a0)=>{"use strict";o0();var EG=er();a0.exports=EG.Object.assign});var l0=m((UZ,c0)=>{"use strict";var CG=s0();c0.exports=CG});var d0=m((MZ,u0)=>{u0.exports=l0()});var Bp=m((FZ,p0)=>{"use strict";p0.exports=`
22
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var m0=m((BZ,h0)=>{"use strict";var kG=De(),xG=Cn(),TG=zo(),Jp=Bp(),f0=kG("".replace),PG=RegExp("^["+Jp+"]+"),RG=RegExp("(^|[^"+Jp+"])["+Jp+"]+$"),jp=function(e){return function(t){var r=TG(xG(t));return e&1&&(r=f0(r,PG,"")),e&2&&(r=f0(r,RG,"$1")),r}};h0.exports={start:jp(1),end:jp(2),trim:jp(3)}});var b0=m((jZ,y0)=>{"use strict";var OG=ep().PROPER,NG=Ee(),g0=Bp(),v0="\u200B\x85\u180E";y0.exports=function(e){return NG(function(){return!!g0[e]()||v0[e]()!==v0||OG&&g0[e].name!==e})}});var _0=m(()=>{"use strict";var DG=ce(),LG=m0().trim,qG=b0();DG({target:"String",proto:!0,forced:qG("trim")},{trim:function(){return LG(this)}})});var S0=m((HZ,w0)=>{"use strict";_0();var UG=Ut();w0.exports=UG("String","trim")});var A0=m((VZ,I0)=>{"use strict";var MG=pt(),FG=S0(),Gp=String.prototype;I0.exports=function(e){var t=e.trim;return typeof e=="string"||e===Gp||MG(Gp,e)&&t===Gp.trim?FG:t}});var C0=m(($Z,E0)=>{"use strict";var BG=A0();E0.exports=BG});var x0=m((KZ,k0)=>{k0.exports=C0()});var R0=m(()=>{"use strict";var jG=ce(),T0=To(),JG=xd(),GG=Be(),P0=tp(),HG=pi(),VG=Yr(),$G=Nd(),KG=it(),WG=Ro(),zG=Do(),YG=WG("slice"),QG=KG("species"),Hp=Array,XG=Math.max;jG({target:"Array",proto:!0,forced:!YG},{slice:function(t,r){var n=VG(this),i=HG(n),o=P0(t,i),a=P0(r===void 0?i:r,i),s,c,l;if(T0(n)&&(s=n.constructor,JG(s)&&(s===Hp||T0(s.prototype))?s=void 0:GG(s)&&(s=s[QG],s===null&&(s=void 0)),s===Hp||s===void 0))return zG(n,o,a);for(c=new(s===void 0?Hp:s)(XG(a-o,0)),l=0;o<a;o++,l++)o in n&&$G(c,l,n[o]);return c.length=l,c}})});var N0=m((YZ,O0)=>{"use strict";R0();var ZG=Ut();O0.exports=ZG("Array","slice")});var L0=m((QZ,D0)=>{"use strict";var e2=pt(),t2=N0(),Vp=Array.prototype;D0.exports=function(e){var t=e.slice;return e===Vp||e2(Vp,e)&&t===Vp.slice?t2:t}});var U0=m((XZ,q0)=>{"use strict";var r2=L0();q0.exports=r2});var F0=m((ZZ,M0)=>{M0.exports=U0()});var $p=T(()=>{});var j0=m((tee,B0)=>{"use strict";var n2=Be(),i2=Sr(),o2=it(),a2=o2("match");B0.exports=function(e){var t;return n2(e)&&((t=e[a2])!==void 0?!!t:i2(e)==="RegExp")}});var G0=m((ree,J0)=>{"use strict";var s2=j0(),c2=TypeError;J0.exports=function(e){if(s2(e))throw new c2("The method doesn't accept regular expressions");return e}});var V0=m((nee,H0)=>{"use strict";var l2=it(),u2=l2("match");H0.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[u2]=!1,"/./"[e](t)}catch(n){}}return!1}});var W0=m(()=>{"use strict";var d2=ce(),p2=wo(),f2=bd().f,h2=Ed(),$0=zo(),m2=G0(),g2=Cn(),v2=V0(),y2=si(),b2=p2("".slice),_2=Math.min,K0=v2("startsWith"),w2=!y2&&!K0&&!!function(){var e=f2(String.prototype,"startsWith");return e&&!e.writable}();d2({target:"String",proto:!0,forced:!w2&&!K0},{startsWith:function(t){var r=$0(g2(this));m2(t);var n=h2(_2(arguments.length>1?arguments[1]:void 0,r.length)),i=$0(t);return b2(r,n,n+i.length)===i}})});var Y0=m((aee,z0)=>{"use strict";W0();var S2=Ut();z0.exports=S2("String","startsWith")});var X0=m((see,Q0)=>{"use strict";var I2=pt(),A2=Y0(),Kp=String.prototype;Q0.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Kp||I2(Kp,e)&&t===Kp.startsWith?A2:t}});var eC=m((cee,Z0)=>{"use strict";var E2=X0();Z0.exports=E2});var rC=m((lee,tC)=>{tC.exports=eC()});var sC=m((uee,aC)=>{"use strict";var iC=De(),C2=kn(),k2=Be(),x2=xt(),nC=Do(),T2=oi(),oC=Function,P2=iC([].concat),R2=iC([].join),Wp={},O2=function(e,t,r){if(!x2(Wp,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Wp[t]=oC("C,a","return new C("+R2(n,",")+")")}return Wp[t](e,r)};aC.exports=T2?oC.bind:function(t){var r=C2(this),n=r.prototype,i=nC(arguments,1),o=function(){var s=P2(i,nC(arguments));return this instanceof o?O2(r,s.length,s):r.apply(t,s)};return k2(n)&&(o.prototype=n),o}});var lC=m(()=>{"use strict";var N2=ce(),cC=sC();N2({target:"Function",proto:!0,forced:Function.bind!==cC},{bind:cC})});var dC=m((fee,uC)=>{"use strict";lC();var D2=Ut();uC.exports=D2("Function","bind")});var fC=m((hee,pC)=>{"use strict";var L2=pt(),q2=dC(),zp=Function.prototype;pC.exports=function(e){var t=e.bind;return e===zp||L2(zp,e)&&t===zp.bind?q2:t}});var mC=m((mee,hC)=>{"use strict";var U2=fC();hC.exports=U2});var vC=m((gee,gC)=>{gC.exports=mC()});function Pc(e,t){Le.__h&&Le.__h(we,e,ra||t),ra=0;var r=we.__H||(we.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function cr(e){return ra=1,M2(ok,e)}function M2(e,t,r){var n=Pc(Ei++,2);if(n.t=e,!n.__c&&(n.__=[ok(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,s);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=we,!we.__f)){var i=function(s,c,l){var d;if(!n.__c.__H)return!0;var u=(0,vf.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,ek.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,c,l);var p=n.__c.props!==s;return(0,je.default)(u).call(u,function(f){if(f.__N){var h=f.__[0];f.__=f.__N,f.__N=void 0,h!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,c,l)||p};we.__f=!0;var o=we.shouldComponentUpdate,a=we.componentWillUpdate;we.componentWillUpdate=function(s,c,l){if(this.__e){var d=o;o=void 0,i(s,c,l),o=d}a&&a.call(this,s,c,l)},we.shouldComponentUpdate=i}return n.__N||n.__}function Dn(e,t){var r=Pc(Ei++,3);!Le.__s&&ik(r.__H,t)&&(r.__=e,r.u=t,we.__H.__h.push(r))}function Xo(e){return ra=5,Tr(function(){return{current:e}},[])}function Tr(e,t){var r=Pc(Ei++,7);return ik(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Mt(e,t){return ra=8,Tr(function(){return e},t)}function F2(e){var t=we.context[e.__c],r=Pc(Ei++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(we)),t.props.value):e.__}function B2(){for(var e;e=nk.shift();)if(e.__P&&e.__H)try{var t,r;(0,je.default)(t=e.__H.__h).call(t,gc),(0,je.default)(r=e.__H.__h).call(r,of),e.__H.__h=[]}catch(n){e.__H.__h=[],Le.__e(n,e.__v)}}function j2(e){var t,r=function(){clearTimeout(n),EC&&cancelAnimationFrame(t),(0,sr.default)(e)},n=(0,sr.default)(r,100);EC&&(t=requestAnimationFrame(r))}function gc(e){var t=we,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),we=t}function of(e){var t=we;e.__c=e.__(),we=t}function ik(e,t){return!e||e.length!==t.length||(0,Ac.default)(t).call(t,function(r,n){return r!==e[n]})}function ok(e,t){return typeof t=="function"?t(e):t}function J2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function af(){throw new Error("setTimeout has not been defined")}function sf(){throw new Error("clearTimeout has not been defined")}function sk(e){if(rr===sr.default)return(0,sr.default)(e,0);if((rr===af||!rr)&&sr.default)return rr=sr.default,(0,sr.default)(e,0);try{return rr(e,0)}catch(t){try{return rr.call(null,e,0)}catch(r){return rr.call(this,e,0)}}}function G2(e){if(nr===clearTimeout)return clearTimeout(e);if((nr===sf||!nr)&&clearTimeout)return nr=clearTimeout,clearTimeout(e);try{return nr(e)}catch(t){try{return nr.call(null,e)}catch(r){return nr.call(this,e)}}}function H2(){!Si||!cn||(Si=!1,cn.length?xr=(0,Tc.default)(cn).call(cn,xr):vc=-1,xr.length&&ck())}function ck(){if(!Si){var e=sk(H2);Si=!0;for(var t=xr.length;t;){for(cn=xr,xr=[];++vc<t;)cn&&cn[vc].run();vc=-1,t=xr.length}cn=null,Si=!1,G2(e)}}function lk(e,t){this.fun=e,this.array=t}function Rr(){}function K2(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function W2(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function X2(e,t){return Qe(e,0)^45?(((t<<2^Qe(e,0))<<2^Qe(e,1))<<2^Qe(e,2))<<2^Qe(e,3):0}function pk(e){return(0,_f.default)(e).call(e)}function Z2(e,t){return(e=t.exec(e))?e[0]:e}function oe(e,t,r){return e.replace(t,r)}function cf(e,t){return(0,Pr.default)(e).call(e,t)}function Qe(e,t){return e.charCodeAt(t)|0}function na(e,t,r){return(0,wf.default)(e).call(e,t,r)}function ir(e){return e.length}function Ef(e){return e.length}function pc(e,t){return t.push(e),e}function eH(e,t){return(0,ta.default)(e).call(e,t).join("")}function Nc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Oc,column:Ci,length:a,return:""}}function Yo(e,t){return Q2(Nc("",null,null,"",null,null,0),e,{length:-e.length},t)}function tH(){return qe}function rH(){return qe=vt>0?Qe(xi,--vt):0,Ci--,qe===10&&(Ci=1,Oc--),qe}function Tt(){return qe=vt<fk?Qe(xi,vt++):0,Ci++,qe===10&&(Ci=1,Oc++),qe}function lr(){return Qe(xi,vt)}function yc(){return vt}function la(e,t){return na(xi,e,t)}function ia(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function hk(e){return Oc=Ci=1,fk=ir(xi=e),vt=0,[]}function mk(e){return xi="",e}function bc(e){return pk(la(vt-1,lf(e===91?e+2:e===40?e+1:e)))}function nH(e){for(;(qe=lr())&&qe<33;)Tt();return ia(e)>2||ia(qe)>3?"":" "}function iH(e,t){for(;--t&&Tt()&&!(qe<48||qe>102||qe>57&&qe<65||qe>70&&qe<97););return la(e,yc()+(t<6&&lr()==32&&Tt()==32))}function lf(e){for(;Tt();)switch(qe){case e:return vt;case 34:case 39:e!==34&&e!==39&&lf(qe);break;case 40:e===41&&lf(e);break;case 92:Tt();break}return vt}function oH(e,t){for(;Tt()&&e+qe!==57&&!(e+qe===84&&lr()===47););return"/*"+la(t,vt-1)+"*"+Rc(e===47?e:Tt())}function aH(e){for(;!ia(lr());)Tt();return la(e,vt)}function sH(e){return mk(_c("",null,null,null,[""],e=hk(e),0,[0],e))}function _c(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,h=0,v=1,b=1,y=1,_=0,A="",C=i,x=o,k=n,E=A;b;)switch(h=_,_=Tt()){case 40:if(h!=108&&Qe(E,u-1)==58){cf(E+=oe(bc(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:E+=bc(_);break;case 9:case 10:case 13:case 32:E+=nH(h);break;case 92:E+=iH(yc()-1,7);continue;case 47:switch(lr()){case 42:case 47:pc(cH(oH(Tt(),yc()),t,r),c);break;default:E+="/"}break;case 123*v:s[l++]=ir(E)*y;case 125*v:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:f>0&&ir(E)-u&&pc(f>32?kC(E+";",n,r,u-1):kC(oe(E," ","")+";",n,r,u-2),c);break;case 59:E+=";";default:if(pc(k=CC(E,t,r,l,d,i,s,A,C=[],x=[],u),o),_===123)if(d===0)_c(E,t,k,k,C,o,u,s,x);else switch(p===99&&Qe(E,3)===110?100:p){case 100:case 109:case 115:_c(e,k,k,n&&pc(CC(e,k,k,0,0,i,s,A,i,C=[],u),x),i,x,u,s,n?C:x);break;default:_c(E,k,k,k,[""],x,0,s,x)}}l=d=f=0,v=y=1,A=E="",u=a;break;case 58:u=1+ir(E),f=h;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&rH()==125)continue}switch(E+=Rc(_),_*v){case 38:y=d>0?1:(E+="\f",-1);break;case 44:s[l++]=(ir(E)-1)*y,y=1;break;case 64:lr()===45&&(E+=bc(Tt())),p=lr(),d=u=ir(A=E+=aH(yc())),_++;break;case 45:h===45&&ir(E)==2&&(v=0)}}return o}function CC(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Ef(p),h=0,v=0,b=0;h<n;++h)for(var y=0,_=na(e,u+1,u=Y2(v=a[h])),A=e;y<f;++y)(A=pk(v>0?p[y]+" "+_:oe(_,/&\f/g,p[y])))&&(c[b++]=A);return Nc(e,t,r,i===0?If:s,c,l,d)}function cH(e,t,r){return Nc(e,t,r,Sf,Rc(tH()),na(e,2,-2),0)}function kC(e,t,r,n){return Nc(e,t,r,Af,na(e,0,n),na(e,n+1,-1),n)}function Ii(e,t){for(var r="",n=Ef(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function lH(e,t,r,n){switch(e.type){case z2:case Af:return e.return=e.return||e.value;case Sf:return"";case dk:return e.return=e.value+"{"+Ii(e.children,n)+"}";case If:e.value=e.props.join(",")}return ir(r=Ii(e.children,n))?e.return=e.value+"{"+r+"}":""}function uH(e){var t=Ef(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function dH(e){return function(t){t.root||(t=t.return)&&e(t)}}function vk(e,t){switch(X2(e,t)){case 5103:return Z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Z+e+Cc+e+ot+e+e;case 6828:case 4268:return Z+e+ot+e+e;case 6165:return Z+e+ot+"flex-"+e+e;case 5187:return Z+e+oe(e,/(\w+).+(:[^]+)/,Z+"box-$1$2"+ot+"flex-$1$2")+e;case 5443:return Z+e+ot+"flex-item-"+oe(e,/flex-|-self/,"")+e;case 4675:return Z+e+ot+"flex-line-pack"+oe(e,/align-content|flex-|-self/,"")+e;case 5548:return Z+e+ot+oe(e,"shrink","negative")+e;case 5292:return Z+e+ot+oe(e,"basis","preferred-size")+e;case 6060:return Z+"box-"+oe(e,"-grow","")+Z+e+ot+oe(e,"grow","positive")+e;case 4554:return Z+oe(e,/([^-])(transform)/g,"$1"+Z+"$2")+e;case 6187:return oe(oe(oe(e,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),e,"")+e;case 5495:case 3959:return oe(e,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return oe(oe(e,/(.+:)(flex-)?(.*)/,Z+"box-pack:$3"+ot+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+e+e;case 4095:case 3583:case 4068:case 2532:return oe(e,/(.+)-inline(.+)/,Z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ir(e)-1-t>6)switch(Qe(e,t+1)){case 109:if(Qe(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+Cc+(Qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cf(e,"stretch")?vk(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Qe(e,t+1)!==115)break;case 6444:switch(Qe(e,ir(e)-3-(~cf(e,"!important")&&10))){case 107:return oe(e,":",":"+Z)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(Qe(e,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+ot+"$2box$3")+e}break;case 5936:switch(Qe(e,t+11)){case 114:return Z+e+ot+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+ot+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+ot+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+ot+e+e}return e}function bk(){if(PC)return fc.exports;PC=1;let e=bk();return fc.exports={default:e},fc.exports.default=e,fc.exports}function oa(e,t,r){var n,i="";return(0,je.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function EH(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function kH(e){var t=(0,tk.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function aa(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return or={name:i.name,styles:i.styles,next:or},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)or={name:a.name,styles:a.styles,next:or},a=a.next;var s=o.styles+";";return s}return PH(e,t,r)}case"function":{if(e!==void 0){var c=or,l=r(e);return or=c,aa(e,t,l)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function PH(e,t,r){var n="";if((0,ea.default)(r))for(var i=0;i<r.length;i++)n+=aa(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":RC(s)&&(n+=Qp(o)+":"+OC(o,s)+";")}else if((0,ea.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)RC(a[c])&&(n+=Qp(o)+":"+OC(o,a[c])+";");else{var l=aa(e,t,a);switch(o){case"animation":case"animationName":{n+=Qp(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function ln(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";or=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=aa(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=aa(r,t,e[s]),n){var c=o;i+=c[s]}NC.lastIndex=0;for(var l="",d;(d=NC.exec(i))!==null;)l+="-"+d[1];var u=EH(i)+l;return{name:u,styles:i,next:or}}function M(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ln(t)}function jH(e,t,r){var n=[],i=oa(e,n,r);return n.length<2?r:i+t(n)}function w(e,t,r,n,i,o){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var l={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--HH,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return U.vnode&&U.vnode(l),l}function ua(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=cr(e());return Dn(()=>{let n=()=>{r(e())};return window.addEventListener("resize",n),"onorientationchange"in window&&window.addEventListener("orientationchange",n),n(),()=>{window.removeEventListener("resize",n),"onorientationchange"in window&&window.removeEventListener("orientationchange",n)}},[]),t}function c3(e){if(!e||e==="none")return"";let t=e.match(/^matrix\(([^)]+)\)$/);if(!t)return"";let r=t[1].split(",").map(Number);if(r.length<6)return"";let[n,i]=r,o=-Math.atan2(i,n)*(180/Math.PI),a=Math.round(o);return a===90?"rotateZ(90deg) translateY(-100vw)":a===-90||a===270?"rotateZ(-90deg) translateX(-100vh)":a===180||a===-180?"rotateZ(180deg) translate(-100vw, -100vh)":`rotateZ(${a}deg)`}function Pk(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=c3(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function l3(e){let t=()=>Pk(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function p3(s){var c=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=c,a=tt(c,["elementTag","src","children","handleExposure","className","imgStyle"]);let l=d3(()=>{t&&n()});return e==="Image"?w("div",{className:i,style:{borderRadius:"8px"},children:nt("img",J(P({},a),{ref:l,src:t!=null?t:"",style:P({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):w("div",J(P({},a),{ref:l,className:i,children:r}))}function f3(e,t){if(!e)return null;let r=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:0;return Array.isArray(e)?e.map((i,o)=>i&&typeof i=="object"&&"type"in i?nt(i.type,J(P({},i.props),{style:J(P({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?nt(e.type,J(P({},e.props),{style:J(P({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function y3(e,t){let r=t.split("."),n=e;for(let i of r){if(typeof n!="object"||n===null||!Object.prototype.hasOwnProperty.call(n,i))return;n=n[i]}return n}function VC(e,t,r){return Lc.call(t,"css")?w(Tf,Ak(e,t),r):w(e,t,r)}function A3(e,t,r){return Lc.call(t,"css")?w(Tf,Ak(e,t),r):w(e,t,r)}function hf({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return w("div",{style:r,children:n.map((i,o)=>{let a=i.match(/^{{\s*(\w+)\s*}}$/);if(a){let s=a[1];return t[s]!==void 0?w(ze,{children:t[s]},o):null}return w(ze,{children:i},o)})})}function k3({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=cr(!1);return a?null:w("div",{style:P({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:w("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function P3({children:e,style:t}){return w("div",{style:`${x3.styles} ${t}`,children:[e,w("svg",{style:`${T3.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[w("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),w("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function V3(e,t){return Xe(e,0)^45?(((t<<2^Xe(e,0))<<2^Xe(e,1))<<2^Xe(e,2))<<2^Xe(e,3):0}function Hk(e){return(0,_f.default)(e).call(e)}function $3(e,t){return(e=t.exec(e))?e[0]:e}function te(e,t,r){return e.replace(t,r)}function mf(e,t){return(0,Pr.default)(e).call(e,t)}function Xe(e,t){return e.charCodeAt(t)|0}function sa(e,t,r){return(0,wf.default)(e).call(e,t,r)}function ar(e){return e.length}function Df(e){return e.length}function mc(e,t){return t.push(e),e}function K3(e,t){return(0,ta.default)(e).call(e,t).join("")}function jc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Bc,column:ki,length:a,return:""}}function Qo(e,t){return H3(jc("",null,null,"",null,null,0),e,{length:-e.length},t)}function W3(){return Ue}function z3(){return Ue=yt>0?Xe(Pi,--yt):0,ki--,Ue===10&&(ki=1,Bc--),Ue}function Pt(){return Ue=yt<Vk?Xe(Pi,yt++):0,ki++,Ue===10&&(ki=1,Bc++),Ue}function ur(){return Xe(Pi,yt)}function wc(){return yt}function da(e,t){return sa(Pi,e,t)}function ca(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $k(e){return Bc=ki=1,Vk=ar(Pi=e),yt=0,[]}function Kk(e){return Pi="",e}function Sc(e){return Hk(da(yt-1,gf(e===91?e+2:e===40?e+1:e)))}function Y3(e){for(;(Ue=ur())&&Ue<33;)Pt();return ca(e)>2||ca(Ue)>3?"":" "}function Q3(e,t){for(;--t&&Pt()&&!(Ue<48||Ue>102||Ue>57&&Ue<65||Ue>70&&Ue<97););return da(e,wc()+(t<6&&ur()==32&&Pt()==32))}function gf(e){for(;Pt();)switch(Ue){case e:return yt;case 34:case 39:e!==34&&e!==39&&gf(Ue);break;case 40:e===41&&gf(e);break;case 92:Pt();break}return yt}function X3(e,t){for(;Pt()&&e+Ue!==57&&!(e+Ue===84&&ur()===47););return"/*"+da(t,yt-1)+"*"+Fc(e===47?e:Pt())}function Z3(e){for(;!ca(ur());)Pt();return da(e,yt)}function eV(e){return Kk(Ic("",null,null,null,[""],e=$k(e),0,[0],e))}function Ic(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,h=0,v=1,b=1,y=1,_=0,A="",C=i,x=o,k=n,E=A;b;)switch(h=_,_=Pt()){case 40:if(h!=108&&Xe(E,u-1)==58){mf(E+=te(Sc(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:E+=Sc(_);break;case 9:case 10:case 13:case 32:E+=Y3(h);break;case 92:E+=Q3(wc()-1,7);continue;case 47:switch(ur()){case 42:case 47:mc(tV(X3(Pt(),wc()),t,r),c);break;default:E+="/"}break;case 123*v:s[l++]=ar(E)*y;case 125*v:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:y==-1&&(E=te(E,/\f/g,"")),f>0&&ar(E)-u&&mc(f>32?KC(E+";",n,r,u-1):KC(te(E," ","")+";",n,r,u-2),c);break;case 59:E+=";";default:if(mc(k=$C(E,t,r,l,d,i,s,A,C=[],x=[],u),o),_===123)if(d===0)Ic(E,t,k,k,C,o,u,s,x);else switch(p===99&&Xe(E,3)===110?100:p){case 100:case 108:case 109:case 115:Ic(e,k,k,n&&mc($C(e,k,k,0,0,i,s,A,i,C=[],u),x),i,x,u,s,n?C:x);break;default:Ic(E,k,k,k,[""],x,0,s,x)}}l=d=f=0,v=y=1,A=E="",u=a;break;case 58:u=1+ar(E),f=h;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&z3()==125)continue}switch(E+=Fc(_),_*v){case 38:y=d>0?1:(E+="\f",-1);break;case 44:s[l++]=(ar(E)-1)*y,y=1;break;case 64:ur()===45&&(E+=Sc(Pt())),p=ur(),d=u=ar(A=E+=Z3(wc())),_++;break;case 45:h===45&&ar(E)==2&&(v=0)}}return o}function $C(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Df(p),h=0,v=0,b=0;h<n;++h)for(var y=0,_=sa(e,u+1,u=G3(v=a[h])),A=e;y<f;++y)(A=Hk(v>0?p[y]+" "+_:te(_,/&\f/g,p[y])))&&(c[b++]=A);return jc(e,t,r,i===0?Of:s,c,l,d)}function tV(e,t,r){return jc(e,t,r,Jk,Fc(W3()),sa(e,2,-2),0)}function KC(e,t,r,n){return jc(e,t,r,Nf,sa(e,0,n),sa(e,n+1,-1),n)}function Ai(e,t){for(var r="",n=Df(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function rV(e,t,r,n){switch(e.type){case J3:if(e.children.length)break;case j3:case Nf:return e.return=e.return||e.value;case Jk:return"";case Gk:return e.return=e.value+"{"+Ai(e.children,n)+"}";case Of:e.value=e.props.join(",")}return ar(r=Ai(e.children,n))?e.return=e.value+"{"+r+"}":""}function nV(e){var t=Df(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function iV(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wk(e,t){switch(V3(e,t)){case 5103:return ee+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+xc+e+at+e+e;case 6828:case 4268:return ee+e+at+e+e;case 6165:return ee+e+at+"flex-"+e+e;case 5187:return ee+e+te(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+at+"flex-$1$2")+e;case 5443:return ee+e+at+"flex-item-"+te(e,/flex-|-self/,"")+e;case 4675:return ee+e+at+"flex-line-pack"+te(e,/align-content|flex-|-self/,"")+e;case 5548:return ee+e+at+te(e,"shrink","negative")+e;case 5292:return ee+e+at+te(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+te(e,"-grow","")+ee+e+at+te(e,"grow","positive")+e;case 4554:return ee+te(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return te(te(te(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return te(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return te(te(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+at+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4095:case 3583:case 4068:case 2532:return te(e,/(.+)-inline(.+)/,ee+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ar(e)-1-t>6)switch(Xe(e,t+1)){case 109:if(Xe(e,t+4)!==45)break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+xc+(Xe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mf(e,"stretch")?Wk(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Xe(e,t+1)!==115)break;case 6444:switch(Xe(e,ar(e)-3-(~mf(e,"!important")&&10))){case 107:return te(e,":",":"+ee)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(Xe(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+at+"$2box$3")+e}break;case 5936:switch(Xe(e,t+11)){case 114:return ee+e+at+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+at+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+at+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+at+e+e}return e}function zC(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function rf(e,t,r){var n=[],i=oa(e,n,r);return n.length<2?r:i+t(n)}function XC(e){if(e==="top"){let t=0;zk.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${YC}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${YC}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+QC)})}else if(e==="center"){let t=0;Yk.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+QC)})}}function Ln(){let e=!1,t=null,r=0,n=new Set,i=a=>g(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:c}=yield Zo.acquire(),l=c.contentDocument;if(l)t=l.createElement("div"),t.id="loading-root",l.body.appendChild(t),zr(w(wV,{}),t);else throw new Error("Iframe document is not available.")}catch(c){console.error("[LoadingManager] Failed to show loading:",c),r=0,e=!1,Zo.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let c=setTimeout(()=>{o(),n.delete(c)},a.duration);n.add(c)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&(zr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Zo.release()))};return{show:i,hide:o,get isLoading(){return e}}}var vf,ek,je,Tc,Ac,sr,Ec,ea,yf,Pr,ta,tk,rk,bf,_f,wf,wee,nf,Ei,we,Yp,yC,ra,nk,Le,bC,_C,wC,SC,IC,AC,EC,ak,Oe,rr,nr,xr,Si,cn,vc,V2,Je,$2,uk,ot,Cc,Z,Sf,If,Af,z2,dk,Y2,Rc,Q2,Oc,Ci,fk,vt,qe,xi,pH,fH,hH,xC,mH,gH,vH,yH,bH,gk,_H,TC,wH,SH,IH,yk,fc,PC,AH,Cf,Dc,CH,xH,TH,_k,RC,Qp,OC,NC,or,RH,wk,Sk,DC,Lc,kf,Ik,xf,qc,OH,NH,DH,LH,qH,uf,df,Ak,UH,Tf,MH,LC,FH,BH,JH,GH,Xp,qC,Zp,ef,HH,tf,VH,$H,KH,WH,zH,YH,QH,UC,XH,ZH,e5,MC,t5,r5,n5,FC,i5,o5,a5,BC,s5,c5,l5,u5,d5,p5,f5,h5,m5,g5,v5,jC,y5,b5,_5,w5,S5,I5,A5,E5,C5,k5,x5,JC,T5,P5,R5,O5,N5,D5,L5,q5,U5,M5,F5,B5,j5,J5,G5,H5,V5,$5,K5,W5,z5,Y5,Q5,X5,Z5,e3,t3,r3,n3,i3,o3,a3,Ek,Ck,kk,pf,s3,xk,Tk,kc,Zo,GC,u3,Uc,d3,Rk,Ok,Nk,h3,m3,g3,ff,v3,Dk,Lk,Mc,Pf,Ti,HC,sn,qk,Nn,b3,_3,w3,S3,I3,hc,Uk,Rf,ke,E3,C3,x3,T3,$t,R3,O3,Mk,Fk,Bk,jk,un,N3,D3,L3,q3,U3,M3,F3,B3,at,xc,ee,Jk,Of,Nf,j3,Gk,J3,G3,Fc,H3,Bc,ki,Vk,yt,Ue,Pi,oV,aV,sV,WC,cV,lV,uV,dV,pV,fV,hV,mV,gV,vV,yV,bV,YC,QC,zk,Yk,Or,ZC,_V,wV,See,dr=T(()=>{"use strict";ii();vf=ue(Vb(),1),ek=ue(t_(),1),je=ue(h_(),1),Tc=ue(T_(),1),Ac=ue(M_(),1),sr=ue(rw(),1);qs();qs();Ec=ue(Fw(),1),ea=ue($w(),1),yf=ue(cA(),1),Pr=ue(yA(),1),ta=ue(kA(),1),tk=ue(DA(),1),rk=ue(QE(),1),bf=ue(d0(),1),_f=ue(x0(),1),wf=ue(F0(),1);$p();$p();wee=ue(rC(),1),nf=ue(vC(),1),ra=0,nk=[],Le=U,bC=Le.__b,_C=Le.__r,wC=Le.diffed,SC=Le.__c,IC=Le.unmount,AC=Le.__;Le.__b=function(e){we=null,bC&&bC(e)},Le.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),AC&&AC(e,t)},Le.__r=function(e){var t,r,n;_C&&_C(e),Ei=0;var i=(we=e.__c).__H;i&&(Yp===we?(i.__h=[],we.__h=[],(0,je.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,je.default)(r=i.__h).call(r,gc),(0,je.default)(n=i.__h).call(n,of),i.__h=[],Ei=0)),Yp=we},Le.diffed=function(e){var t;wC&&wC(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(nk.push(r)!==1&&yC===Le.requestAnimationFrame||((yC=Le.requestAnimationFrame)||j2)(B2)),(0,je.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Yp=we=null},Le.__c=function(e,t){(0,Ac.default)(t).call(t,function(r){try{var n,i;(0,je.default)(n=r.__h).call(n,gc),r.__h=(0,vf.default)(i=r.__h).call(i,function(o){return!o.__||of(o)})}catch(o){(0,Ac.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Le.__e(o,r.__v)}}),SC&&SC(e,t)},Le.unmount=function(e){var t;IC&&IC(e);var r,n=e.__c;n&&n.__H&&((0,je.default)(t=n.__H.__).call(t,function(i){try{gc(i)}catch(o){r=o}}),n.__H=void 0,r&&Le.__e(r,n.__v))};EC=typeof requestAnimationFrame=="function";ak={exports:{}},Oe=ak.exports={};(function(){try{typeof sr.default=="function"?rr=sr.default:rr=af}catch(e){rr=af}try{typeof clearTimeout=="function"?nr=clearTimeout:nr=sf}catch(e){nr=sf}})();xr=[],Si=!1,vc=-1;Oe.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];xr.push(new lk(e,t)),xr.length===1&&!Si&&sk(ck)};lk.prototype.run=function(){this.fun.apply(null,this.array)};Oe.title="browser";Oe.browser=!0;Oe.env={};Oe.argv=[];Oe.version="";Oe.versions={};Oe.on=Rr;Oe.addListener=Rr;Oe.once=Rr;Oe.off=Rr;Oe.removeListener=Rr;Oe.removeAllListeners=Rr;Oe.emit=Rr;Oe.prependListener=Rr;Oe.prependOnceListener=Rr;Oe.listeners=function(e){return[]};Oe.binding=function(e){throw new Error("process.binding is not supported")};Oe.cwd=function(){return"/"};Oe.chdir=function(e){throw new Error("process.chdir is not supported")};Oe.umask=function(){return 0};V2=ak.exports,Je=J2(V2),$2=Ec.default||void 0||self;uk=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){(0,je.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(W2(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=K2(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,je.default)(r=this.tags).call(r,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),ot="-ms-",Cc="-moz-",Z="-webkit-",Sf="comm",If="rule",Af="decl",z2="@import",dk="@keyframes",Y2=Math.abs,Rc=String.fromCharCode,Q2=bf.default;Oc=1,Ci=1,fk=0,vt=0,qe=0,xi="";pH=function(e,t,r){for(var n=0,i=0;n=i,i=lr(),n===38&&i===12&&(t[r]=1),!ia(i);)Tt();return la(e,vt)},fH=function(e,t){var r=-1,n=44;do switch(ia(n)){case 0:n===38&&lr()===12&&(t[r]=1),e[r]+=pH(vt-1,t,r);break;case 2:e[r]+=bc(n);break;case 4:if(n===44){e[++r]=lr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Rc(n)}while(n=Tt());return e},hH=function(e,t){return mk(fH(hk(e),t))},xC=new yf.default,mH=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!xC.get(r))&&!n){xC.set(e,!0);for(var i=[],o=hH(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},gH=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},vH="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",yH=function(e){var t;return e.type==="comm"&&(0,Pr.default)(t=e.children).call(t,vH)>-1},bH=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=t.parent===n[0],a=o?n[0].children:n,s=a.length-1;s>=0;s--){var c=a[s];if(c.line<t.line)break;if(c.column<t.column){if(yH(c))return;break}}(0,je.default)(i).call(i,function(l){console.error('The pseudo class "'+l+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+l.split("-child")[0]+'-of-type".')})}}}},gk=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},_H=function(e,t){for(var r=e-1;r>=0;r--)if(!gk(t[r]))return!0;return!1},TC=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},wH=function(e,t,r){gk(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),TC(e)):_H(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),TC(e)))};SH=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Af:e.return=vk(e.value,e.length);break;case dk:return Ii([Yo(e,{value:oe(e.value,"@","@"+Z)})],n);case If:if(e.length)return eH(e.props,function(i){switch(Z2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ii([Yo(e,{props:[oe(i,/:(read-\w+)/,":"+Cc+"$1")]})],n);case"::placeholder":return Ii([Yo(e,{props:[oe(i,/:(plac\w+)/,":"+Z+"input-$1")]}),Yo(e,{props:[oe(i,/:(plac\w+)/,":"+Cc+"$1")]}),Yo(e,{props:[oe(i,/:(plac\w+)/,ot+"input-$1")]})],n)}return""})}},IH=[SH],yk=function(e){var t=e.key;if(Je.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
23
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,je.default)(Array.prototype).call(r,function(h){var v=h.getAttribute("data-emotion");(0,Pr.default)(v).call(v," ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||IH;if(Je.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i={},o,a=[];o=e.container||document.head,(0,je.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(h)});var s,c=[mH,gH];Je.env.NODE_ENV!=="production"&&c.push(bH({get compat(){return f.compat}}),wH);{var l,d=[lH,Je.env.NODE_ENV!=="production"?function(h){h.root||(h.return?l.insert(h.return):h.value&&h.type!==Sf&&l.insert(h.value+"{}"))}:dH(function(h){l.insert(h)})],u=uH((0,Tc.default)(c).call(c,n,d)),p=function(h){return Ii(sH(h),u)};s=function(h,v,b,y){l=b,Je.env.NODE_ENV!=="production"&&(0,ta.default)(v)!==void 0&&(l={insert:function(_){b.insert(_+(0,ta.default)(v))}}),p(h?h+"{"+v.styles+"}":v.styles),y&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new uk({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f},fc={exports:{}};bk();AH=!0;Cf=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||AH===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Dc=function(e,t,r){Cf(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};CH={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};xH=/[A-Z]|^ms/g,TH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_k=function(e){return e.charCodeAt(1)===45},RC=function(e){return e!=null&&typeof e!="boolean"},Qp=kH(function(e){return _k(e)?e:e.replace(xH,"-$&").toLowerCase()}),OC=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(TH,function(r,n,i){return or={name:n,styles:i,next:or},n})}return CH[e]!==1&&!_k(e)&&typeof t=="number"&&t!==0?t+"px":t};NC=/label:\s*([^\s;{]+)\s*(;|$)/g;RH=function(e){return e()},wk=Gd?Gd:!1,Sk=wk||RH,DC=wk||hi,Lc={}.hasOwnProperty,kf=An(typeof HTMLElement<"u"?yk({key:"css"}):null);Je.env.NODE_ENV!=="production"&&(kf.displayName="EmotionCacheContext");Ik=kf.Provider,xf=function(e){return Vd(function(t,r){var n=gi(kf);return e(t,n,r)})},qc=An({});Je.env.NODE_ENV!=="production"&&(qc.displayName="EmotionThemeContext");OH=function(e){var t=e.split(".");return t[t.length-1]},NH=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);if(t||(t=/^([A-Za-z0-9$.]+)@/.exec(e),t))return OH(t[1])},DH=new rk.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),LH=function(e){return e.replace(/\$/g,"-")},qH=function(e){if(e)for(var t=e.split(`
24
- `),r=0;r<t.length;r++){var n=NH(t[r]);if(n){if(DH.has(n))break;if(/^[A-Z]/.test(n))return LH(n)}}},uf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",df="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Ak=function(e,t){var r,n;if(Je.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,Pr.default)(r=t.css).call(r,":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var i={};for(var o in t)Lc.call(t,o)&&(i[o]=t[o]);if(i[uf]=e,Je.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,Pr.default)(n=t.css.name).call(n,"-")===-1)){var a=qH(new Error().stack);a&&(i[df]=a)}return i},UH=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Cf(t,r,n),Sk(function(){return Dc(t,r,n)}),null},Tf=xf(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[uf],a=[i],s="";typeof e.className=="string"?s=oa(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var c=ln(a,void 0,gi(qc));if(Je.env.NODE_ENV!=="production"&&(0,Pr.default)(n=c.name).call(n,"-")===-1){var l=e[df];l&&(c=ln([c,"label:"+l+";"]))}s+=t.key+"-"+c.name;var d={};for(var u in e)Lc.call(e,u)&&u!=="css"&&u!==uf&&(Je.env.NODE_ENV==="production"||u!==df)&&(d[u]=e[u]);return d.ref=r,d.className=s,nt(ze,null,nt(UH,{cache:t,serialized:c,isStringTag:typeof o=="string"}),nt(o,d))});Je.env.NODE_ENV!=="production"&&(Tf.displayName="EmotionCssPropInternal");MH={version:"11.10.5"},LC=!1,FH=xf(function(e,t){Je.env.NODE_ENV!=="production"&&!LC&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),LC=!0);var r=e.styles,n=ln([r],void 0,gi(qc)),i=mi();return DC(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(s=!0,c.setAttribute("data-emotion",o),a.hydrate([c])),i.current=[a,s],function(){a.flush()}},[t]),DC(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Dc(t,n.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});Je.env.NODE_ENV!=="production"&&(FH.displayName="EmotionGlobal");BH=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var o=t[n];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if((0,ea.default)(o))a=e(o);else{Je.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="";for(var s in o)o[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};JH=function(e){var t=e.cache,r=e.serializedArr;return Sk(function(){for(var n=0;n<r.length;n++)Dc(t,r[n],!1)}),null},GH=xf(function(e,t){var r=!1,n=[],i=function(){if(r&&Je.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];var u=ln(l,t.registered);return n.push(u),Cf(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Je.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];return jH(t.registered,i,BH(l))},a={css:i,cx:o,theme:gi(qc)},s=e.children(a);return r=!0,nt(ze,null,nt(JH,{cache:t,serializedArr:n}),s)});Je.env.NODE_ENV!=="production"&&(GH.displayName="EmotionClassNames");Je.env.NODE_ENV!=="production"&&(Xp=!0,qC=typeof jest<"u"||typeof vi<"u",Xp&&!qC&&(Zp=typeof Ec.default<"u"?Ec.default:Xp?window:$2,ef="__EMOTION_REACT_"+MH.version.split(".")[0]+"__",Zp[ef]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Zp[ef]=!0));HH=0;tf={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"transparent",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"rgb(26, 26, 26)",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.1)",display:"block",margin:"0 auto"},centerDrawer:{backgroundColor:"transparent",minWidth:"320px",maxWidth:"90vw",maxHeight:"90vh",width:"auto",position:"relative",display:"block",margin:"0 auto",overflowY:"auto"}},VH=M`
21
+ `;e.textContent=s;let c=document.head||document.getElementsByTagName("head")[0];c.insertBefore(t,c.firstChild),c.insertBefore(e,c.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:c}=S.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${c}px`)},o=()=>{function s(l){return g(this,null,function*(){let d=l instanceof URL?l.href:l,u=new Promise((p,f)=>{let m=new XMLHttpRequest;m.open("GET",d),m.responseType="arraybuffer",m.addEventListener("load",()=>p(m.response)),m.addEventListener("error",f),m.send()});try{let p=yield u;return new Response(p,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(p){throw console.error("Failed to load wasm:",p),p}})}let c=window.fetch;window.fetch=(l,d)=>{let u=l instanceof URL?l.href:l.toString();return u.endsWith(".wasm")?s(u):c(l,d)}},a=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),t!=null&&t.parentNode&&(t.parentNode.removeChild(t),t=null),document.documentElement.removeAttribute("data-jolibox-root"),document.documentElement.style.removeProperty("--status-bar-height"),window.fetch=r};return n(),o(),i(),a}var _v=T(()=>{"use strict";V()});var wv=T(()=>{"use strict"});var Sv=T(()=>{"use strict";D();ku()});var Iv=T(()=>{"use strict";V()});var Sn,bs=T(()=>{"use strict";wv();Sv();V();Iv();D();Sn=new Zt});function wr(e,t){for(var r in t)e[r]=t[r];return e}function Yu(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function nt(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Is.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return ws(e,a,n,i,null)}function ws(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++Cv:i,__i:-1,__u:0};return i==null&&U.vnode!=null&&U.vnode(o),o}function bo(){return{current:null}}function ze(e){return e.children}function Ct(e,t){this.props=e,this.context=t}function ni(e,t){if(t==null)return e.__?ni(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ni(e):null}function Nv(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Nv(e)}}function Ku(e){(!e.__d&&(e.__d=!0)&&In.push(e)&&!Ss.__r++||Av!==U.debounceRendering)&&((Av=U.debounceRendering)||xv)(Ss)}function Ss(){for(var e,t,r,n,i,o,a,s=1;In.length;)In.length>s&&In.sort(Tv),e=In.shift(),s=In.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=wr({},n)).__v=n.__v+1,U.vnode&&U.vnode(r),Qu(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?ni(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,qv(o,r,a),r.__e!=i&&Nv(r)));Ss.__r=0}function Dv(e,t,r,n,i,o,a,s,c,l,d){var u,p,f,m,v,b,y=n&&n.__k||Ov,_=t.length;for(c=k1(r,t,y,c,_),u=0;u<_;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?vo:y[f.__i]||vo,f.__i=u,b=Qu(e,f,p,i,o,a,s,c,l,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Xu(p.ref,null,f),d.push(f.ref,f.__c||m,f)),v==null&&m!=null&&(v=m),4&f.__u||p.__k===f.__k?c=Lv(f,c,e):typeof f.type=="function"&&b!==void 0?c=b:m&&(c=m.nextSibling),f.__u&=-7);return r.__e=v,c}function k1(e,t,r,n,i){var o,a,s,c,l,d=r.length,u=d,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(c=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?ws(null,a,null,null,null):yo(a)?ws(ze,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?ws(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(l=a.__i=C1(a,r,c,u))!==-1&&(u--,(s=r[l])&&(s.__u|=2)),s==null||s.__v===null?(l==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):l!=c&&(l==c-1?p--:l==c+1?p++:(l>c?p--:p++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(s=r[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=ni(s)),Mv(s,s));return n}function Lv(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=Lv(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=ni(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function _o(e,t){return t=t||[],e==null||typeof e=="boolean"||(yo(e)?e.some(function(r){_o(r,t)}):t.push(e)),t}function C1(e,t,r,n){var i,o,a=e.key,s=e.type,c=t[r];if(c===null&&e.key==null||c&&a==c.key&&s===c.type&&!(2&c.__u))return r;if(n>(c!=null&&!(2&c.__u)?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;){if(i>=0){if((c=t[i])&&!(2&c.__u)&&a==c.key&&s===c.type)return i;i--}if(o<t.length){if((c=t[o])&&!(2&c.__u)&&a==c.key&&s===c.type)return o;o++}}return-1}function Ev(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||E1.test(t)?r:r+"px"}function _s(e,t,r,n,i){var o;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Ev(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Ev(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Pv,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.t=n.t:(r.t=zu,e.addEventListener(t,o?$u:Vu,o)):e.removeEventListener(t,o?$u:Vu,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch(a){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function kv(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=zu++;else if(t.u<r.t)return;return r(U.event?U.event(t):t)}}}function Qu(e,t,r,n,i,o,a,s,c,l){var d,u,p,f,m,v,b,y,_,A,k,x,C,E,H,ae,N,O=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=U.__b)&&d(t);e:if(typeof O=="function")try{if(y=t.props,_="prototype"in O&&O.prototype.render,A=(d=O.contextType)&&n[d.__c],k=d?A?A.props.value:d.__:n,r.__c?b=(u=t.__c=r.__c).__=u.__E:(_?t.__c=u=new O(y,k):(t.__c=u=new Ct(y,k),u.constructor=O,u.render=T1),A&&A.sub(u),u.props=y,u.state||(u.state={}),u.context=k,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),_&&u.__s==null&&(u.__s=u.state),_&&O.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=wr({},u.__s)),wr(u.__s,O.getDerivedStateFromProps(y,u.__s))),f=u.props,m=u.state,u.__v=t,p)_&&O.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),_&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(_&&O.getDerivedStateFromProps==null&&y!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,k),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,k)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(B){B&&(B.__=t)}),x=0;x<u._sb.length;x++)u.__h.push(u._sb[x]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,k),_&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,v)})}if(u.context=k,u.props=y,u.__P=e,u.__e=!1,C=U.__r,E=0,_){for(u.state=u.__s,u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),H=0;H<u._sb.length;H++)u.__h.push(u._sb[H]);u._sb=[]}else do u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++E<25);u.state=u.__s,u.getChildContext!=null&&(n=wr(wr({},n),u.getChildContext())),_&&!p&&u.getSnapshotBeforeUpdate!=null&&(v=u.getSnapshotBeforeUpdate(f,m)),ae=d,d!=null&&d.type===ze&&d.key==null&&(ae=Uv(d.props.children)),s=Dv(e,yo(ae)?ae:[ae],t,r,n,i,o,a,s,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),b&&(u.__E=u.__=null)}catch(B){if(t.__v=null,c||o!=null)if(B.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(N=o.length;N--;)Yu(o[N]);else t.__e=r.__e,t.__k=r.__k;U.__e(B,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=x1(r.__e,t,r,n,i,o,a,c,l);return(d=U.diffed)&&d(t),128&t.__u?void 0:s}function qv(e,t,r){for(var n=0;n<r.length;n++)Xu(r[n],r[++n],r[++n]);U.__c&&U.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){U.__e(o,i.__v)}})}function Uv(e){return typeof e!="object"||e==null?e:yo(e)?e.map(Uv):wr({},e)}function x1(e,t,r,n,i,o,a,s,c){var l,d,u,p,f,m,v,b=r.props,y=t.props,_=t.type;if(_=="svg"?i="http://www.w3.org/2000/svg":_=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((f=o[l])&&"setAttribute"in f==!!_&&(_?f.localName==_:f.nodeType==3)){e=f,o[l]=null;break}}if(e==null){if(_==null)return document.createTextNode(y);e=document.createElementNS(i,_,y.is&&y),s&&(U.__m&&U.__m(t,o),s=!1),o=null}if(_===null)b===y||s&&e.data===y||(e.data=y);else{if(o=o&&Is.call(e.childNodes),b=r.props||vo,!s&&o!=null)for(b={},l=0;l<e.attributes.length;l++)b[(f=e.attributes[l]).name]=f.value;for(l in b)if(f=b[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=f;else if(!(l in y)){if(l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y)continue;_s(e,l,null,f,i)}}for(l in y)f=y[l],l=="children"?p=f:l=="dangerouslySetInnerHTML"?d=f:l=="value"?m=f:l=="checked"?v=f:s&&typeof f!="function"||b[l]===f||_s(e,l,f,b[l],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),Dv(t.type==="template"?e.content:e,yo(p)?p:[p],t,r,n,_=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&ni(r,0),s,c),o!=null)for(l=o.length;l--;)Yu(o[l]);s||(l="value",_=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[l]||_=="progress"&&!m||_=="option"&&m!==b[l])&&_s(e,l,m,b[l],i),l="checked",v!==void 0&&v!==e[l]&&_s(e,l,v,b[l],i))}return e}function Xu(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){U.__e(i,r)}}function Mv(e,t,r){var n,i;if(U.unmount&&U.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Xu(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){U.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Mv(n[i],t,r||typeof e.type!="function");r||Yu(e.__e),e.__c=e.__=e.__e=void 0}function T1(e,t,r){return this.constructor(e,r)}function zr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),U.__&&U.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Qu(t,e=(!n&&r||t).__k=nt(ze,null,[e]),i||vo,vo,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Is.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),qv(o,e,a)}function An(e){function t(r){var n,i;return this.getChildContext||(n=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&n.forEach(function(a){a.__e=!0,Ku(a)})},this.sub=function(o){n.add(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){n&&n.delete(o),a&&a.call(o)}}),r.children}return t.__c="__cC"+Rv++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Is,U,Cv,Wu,In,Av,xv,Tv,Pv,zu,Vu,$u,Rv,vo,Ov,E1,yo,ii=T(()=>{vo={},Ov=[],E1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,yo=Array.isArray;Is=Ov.slice,U={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},Cv=0,Wu=function(e){return e!=null&&e.constructor==null},Ct.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=wr({},this.state),typeof e=="function"&&(e=e(wr({},r),this.props)),e&&wr(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ku(this))},Ct.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ku(this))},Ct.prototype.render=ze,In=[],xv=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Tv=function(e,t){return e.__v.__b-t.__v.__b},Ss.__r=0,Pv=/(PointerCapture)$|Capture$/i,zu=0,Vu=kv(!1),$u=kv(!0),Rv=0});var Ee=h((W8,Fv)=>{"use strict";Fv.exports=function(e){try{return!!e()}catch(t){return!0}}});var oi=h((z8,Bv)=>{"use strict";var P1=Ee();Bv.exports=!P1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var De=h((Y8,Gv)=>{"use strict";var jv=oi(),Jv=Function.prototype,Zu=Jv.call,R1=jv&&Jv.bind.bind(Zu,Zu);Gv.exports=jv?R1:function(e){return function(){return Zu.apply(e,arguments)}}});var pt=h((Q8,Hv)=>{"use strict";var O1=De();Hv.exports=O1({}.isPrototypeOf)});var ke=h((ed,Vv)=>{"use strict";var wo=function(e){return e&&e.Math===Math&&e};Vv.exports=wo(typeof globalThis=="object"&&globalThis)||wo(typeof window=="object"&&window)||wo(typeof self=="object"&&self)||wo(typeof global=="object"&&global)||wo(typeof ed=="object"&&ed)||function(){return this}()||Function("return this")()});var td=h((X8,zv)=>{"use strict";var N1=oi(),Wv=Function.prototype,$v=Wv.apply,Kv=Wv.call;zv.exports=typeof Reflect=="object"&&Reflect.apply||(N1?Kv.bind($v):function(){return Kv.apply($v,arguments)})});var Sr=h((Z8,Qv)=>{"use strict";var Yv=De(),D1=Yv({}.toString),L1=Yv("".slice);Qv.exports=function(e){return L1(D1(e),8,-1)}});var So=h((e7,Xv)=>{"use strict";var q1=Sr(),U1=De();Xv.exports=function(e){if(q1(e)==="Function")return U1(e)}});var Ye=h((t7,Zv)=>{"use strict";var rd=typeof document=="object"&&document.all;Zv.exports=typeof rd=="undefined"&&rd!==void 0?function(e){return typeof e=="function"||e===rd}:function(e){return typeof e=="function"}});var ft=h((r7,ey)=>{"use strict";var M1=Ee();ey.exports=!M1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Gt=h((n7,ty)=>{"use strict";var F1=oi(),As=Function.prototype.call;ty.exports=F1?As.bind(As):function(){return As.apply(As,arguments)}});var nd=h(iy=>{"use strict";var ry={}.propertyIsEnumerable,ny=Object.getOwnPropertyDescriptor,B1=ny&&!ry.call({1:2},1);iy.f=B1?function(t){var r=ny(this,t);return!!r&&r.enumerable}:ry});var Io=h((o7,oy)=>{"use strict";oy.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Es=h((a7,ay)=>{"use strict";var j1=De(),J1=Ee(),G1=Sr(),id=Object,H1=j1("".split);ay.exports=J1(function(){return!id("z").propertyIsEnumerable(0)})?function(e){return G1(e)==="String"?H1(e,""):id(e)}:id});var En=h((s7,sy)=>{"use strict";sy.exports=function(e){return e==null}});var kn=h((c7,cy)=>{"use strict";var V1=En(),$1=TypeError;cy.exports=function(e){if(V1(e))throw new $1("Can't call method on "+e);return e}});var Yr=h((l7,ly)=>{"use strict";var K1=Es(),W1=kn();ly.exports=function(e){return K1(W1(e))}});var Be=h((u7,uy)=>{"use strict";var z1=Ye();uy.exports=function(e){return typeof e=="object"?e!==null:z1(e)}});var er=h((d7,dy)=>{"use strict";dy.exports={}});var ai=h((p7,fy)=>{"use strict";var od=er(),ad=ke(),Y1=Ye(),py=function(e){return Y1(e)?e:void 0};fy.exports=function(e,t){return arguments.length<2?py(od[e])||py(ad[e]):od[e]&&od[e][t]||ad[e]&&ad[e][t]}});var ks=h((f7,gy)=>{"use strict";var Q1=ke(),my=Q1.navigator,hy=my&&my.userAgent;gy.exports=hy?String(hy):""});var xs=h((m7,Sy)=>{"use strict";var wy=ke(),sd=ks(),vy=wy.process,yy=wy.Deno,by=vy&&vy.versions||yy&&yy.version,_y=by&&by.v8,Ht,Cs;_y&&(Ht=_y.split("."),Cs=Ht[0]>0&&Ht[0]<4?1:+(Ht[0]+Ht[1]));!Cs&&sd&&(Ht=sd.match(/Edge\/(\d+)/),(!Ht||Ht[1]>=74)&&(Ht=sd.match(/Chrome\/(\d+)/),Ht&&(Cs=+Ht[1])));Sy.exports=Cs});var cd=h((h7,Ay)=>{"use strict";var Iy=xs(),X1=Ee(),Z1=ke(),eN=Z1.String;Ay.exports=!!Object.getOwnPropertySymbols&&!X1(function(){var e=Symbol("symbol detection");return!eN(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Iy&&Iy<41})});var ld=h((g7,Ey)=>{"use strict";var tN=cd();Ey.exports=tN&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var ud=h((v7,ky)=>{"use strict";var rN=ai(),nN=Ye(),iN=pt(),oN=ld(),aN=Object;ky.exports=oN?function(e){return typeof e=="symbol"}:function(e){var t=rN("Symbol");return nN(t)&&iN(t.prototype,aN(e))}});var Ao=h((y7,Cy)=>{"use strict";var sN=String;Cy.exports=function(e){try{return sN(e)}catch(t){return"Object"}}});var Cn=h((b7,xy)=>{"use strict";var cN=Ye(),lN=Ao(),uN=TypeError;xy.exports=function(e){if(cN(e))return e;throw new uN(lN(e)+" is not a function")}});var Ts=h((_7,Ty)=>{"use strict";var dN=Cn(),pN=En();Ty.exports=function(e,t){var r=e[t];return pN(r)?void 0:dN(r)}});var Ry=h((w7,Py)=>{"use strict";var dd=Gt(),pd=Ye(),fd=Be(),fN=TypeError;Py.exports=function(e,t){var r,n;if(t==="string"&&pd(r=e.toString)&&!fd(n=dd(r,e))||pd(r=e.valueOf)&&!fd(n=dd(r,e))||t!=="string"&&pd(r=e.toString)&&!fd(n=dd(r,e)))return n;throw new fN("Can't convert object to primitive value")}});var si=h((S7,Oy)=>{"use strict";Oy.exports=!0});var Ly=h((I7,Dy)=>{"use strict";var Ny=ke(),mN=Object.defineProperty;Dy.exports=function(e,t){try{mN(Ny,e,{value:t,configurable:!0,writable:!0})}catch(r){Ny[e]=t}return t}});var Eo=h((A7,My)=>{"use strict";var hN=si(),gN=ke(),vN=Ly(),qy="__core-js_shared__",Uy=My.exports=gN[qy]||vN(qy,{});(Uy.versions||(Uy.versions=[])).push({version:"3.41.0",mode:hN?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var md=h((E7,By)=>{"use strict";var Fy=Eo();By.exports=function(e,t){return Fy[e]||(Fy[e]=t||{})}});var ci=h((k7,jy)=>{"use strict";var yN=kn(),bN=Object;jy.exports=function(e){return bN(yN(e))}});var xt=h((C7,Jy)=>{"use strict";var _N=De(),wN=ci(),SN=_N({}.hasOwnProperty);Jy.exports=Object.hasOwn||function(t,r){return SN(wN(t),r)}});var Ps=h((x7,Gy)=>{"use strict";var IN=De(),AN=0,EN=Math.random(),kN=IN(1 .toString);Gy.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+kN(++AN+EN,36)}});var it=h((T7,Vy)=>{"use strict";var CN=ke(),xN=md(),Hy=xt(),TN=Ps(),PN=cd(),RN=ld(),li=CN.Symbol,hd=xN("wks"),ON=RN?li.for||li:li&&li.withoutSetter||TN;Vy.exports=function(e){return Hy(hd,e)||(hd[e]=PN&&Hy(li,e)?li[e]:ON("Symbol."+e)),hd[e]}});var zy=h((P7,Wy)=>{"use strict";var NN=Gt(),$y=Be(),Ky=ud(),DN=Ts(),LN=Ry(),qN=it(),UN=TypeError,MN=qN("toPrimitive");Wy.exports=function(e,t){if(!$y(e)||Ky(e))return e;var r=DN(e,MN),n;if(r){if(t===void 0&&(t="default"),n=NN(r,e,t),!$y(n)||Ky(n))return n;throw new UN("Can't convert object to primitive value")}return t===void 0&&(t="number"),LN(e,t)}});var gd=h((R7,Yy)=>{"use strict";var FN=zy(),BN=ud();Yy.exports=function(e){var t=FN(e,"string");return BN(t)?t:t+""}});var yd=h((O7,Xy)=>{"use strict";var jN=ke(),Qy=Be(),vd=jN.document,JN=Qy(vd)&&Qy(vd.createElement);Xy.exports=function(e){return JN?vd.createElement(e):{}}});var bd=h((N7,Zy)=>{"use strict";var GN=ft(),HN=Ee(),VN=yd();Zy.exports=!GN&&!HN(function(){return Object.defineProperty(VN("div"),"a",{get:function(){return 7}}).a!==7})});var _d=h(tb=>{"use strict";var $N=ft(),KN=Gt(),WN=nd(),zN=Io(),YN=Yr(),QN=gd(),XN=xt(),ZN=bd(),eb=Object.getOwnPropertyDescriptor;tb.f=$N?eb:function(t,r){if(t=YN(t),r=QN(r),ZN)try{return eb(t,r)}catch(n){}if(XN(t,r))return zN(!KN(WN.f,t,r),t[r])}});var nb=h((L7,rb)=>{"use strict";var eD=Ee(),tD=Ye(),rD=/#|\.prototype\./,ko=function(e,t){var r=iD[nD(e)];return r===aD?!0:r===oD?!1:tD(t)?eD(t):!!t},nD=ko.normalize=function(e){return String(e).replace(rD,".").toLowerCase()},iD=ko.data={},oD=ko.NATIVE="N",aD=ko.POLYFILL="P";rb.exports=ko});var Co=h((q7,ob)=>{"use strict";var ib=So(),sD=Cn(),cD=oi(),lD=ib(ib.bind);ob.exports=function(e,t){return sD(e),t===void 0?e:cD?lD(e,t):function(){return e.apply(t,arguments)}}});var wd=h((U7,ab)=>{"use strict";var uD=ft(),dD=Ee();ab.exports=uD&&dD(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Ir=h((M7,sb)=>{"use strict";var pD=Be(),fD=String,mD=TypeError;sb.exports=function(e){if(pD(e))return e;throw new mD(fD(e)+" is not an object")}});var Ar=h(lb=>{"use strict";var hD=ft(),gD=bd(),vD=wd(),Rs=Ir(),cb=gd(),yD=TypeError,Sd=Object.defineProperty,bD=Object.getOwnPropertyDescriptor,Id="enumerable",Ad="configurable",Ed="writable";lb.f=hD?vD?function(t,r,n){if(Rs(t),r=cb(r),Rs(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Ed in n&&!n[Ed]){var i=bD(t,r);i&&i[Ed]&&(t[r]=n.value,n={configurable:Ad in n?n[Ad]:i[Ad],enumerable:Id in n?n[Id]:i[Id],writable:!1})}return Sd(t,r,n)}:Sd:function(t,r,n){if(Rs(t),r=cb(r),Rs(n),gD)try{return Sd(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new yD("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var xn=h((B7,ub)=>{"use strict";var _D=ft(),wD=Ar(),SD=Io();ub.exports=_D?function(e,t,r){return wD.f(e,t,SD(1,r))}:function(e,t,r){return e[t]=r,e}});var ce=h((j7,pb)=>{"use strict";var xo=ke(),ID=td(),AD=So(),ED=Ye(),kD=_d().f,CD=nb(),ui=er(),xD=Co(),di=xn(),db=xt();Eo();var TD=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return ID(e,this,arguments)};return t.prototype=e.prototype,t};pb.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?xo:i?xo[r]:xo[r]&&xo[r].prototype,s=n?ui:ui[r]||di(ui,r,{})[r],c=s.prototype,l,d,u,p,f,m,v,b,y;for(p in t)l=CD(n?p:r+(i?".":"#")+p,e.forced),d=!l&&a&&db(a,p),m=s[p],d&&(e.dontCallGetSet?(y=kD(a,p),v=y&&y.value):v=a[p]),f=d&&v?v:t[p],!(!l&&!o&&typeof m==typeof f)&&(e.bind&&d?b=xD(f,xo):e.wrap&&d?b=TD(f):o&&ED(f)?b=AD(f):b=f,(e.sham||f&&f.sham||m&&m.sham)&&di(b,"sham",!0),di(s,p,b),o&&(u=r+"Prototype",db(ui,u)||di(ui,u,{}),di(ui[u],p,f),e.real&&c&&(l||!c[p])&&di(c,p,f)))}});var mb=h((J7,fb)=>{"use strict";var PD=Math.ceil,RD=Math.floor;fb.exports=Math.trunc||function(t){var r=+t;return(r>0?RD:PD)(r)}});var To=h((G7,hb)=>{"use strict";var OD=mb();hb.exports=function(e){var t=+e;return t!==t||t===0?0:OD(t)}});var kd=h((H7,gb)=>{"use strict";var ND=To(),DD=Math.min;gb.exports=function(e){var t=ND(e);return t>0?DD(t,9007199254740991):0}});var pi=h((V7,vb)=>{"use strict";var LD=kd();vb.exports=function(e){return LD(e.length)}});var Po=h(($7,yb)=>{"use strict";var qD=Sr();yb.exports=Array.isArray||function(t){return qD(t)==="Array"}});var Os=h((K7,_b)=>{"use strict";var UD=it(),MD=UD("toStringTag"),bb={};bb[MD]="z";_b.exports=String(bb)==="[object z]"});var fi=h((W7,wb)=>{"use strict";var FD=Os(),BD=Ye(),Ns=Sr(),jD=it(),JD=jD("toStringTag"),GD=Object,HD=Ns(function(){return arguments}())==="Arguments",VD=function(e,t){try{return e[t]}catch(r){}};wb.exports=FD?Ns:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=VD(t=GD(e),JD))=="string"?r:HD?Ns(t):(n=Ns(t))==="Object"&&BD(t.callee)?"Arguments":n}});var Ib=h((z7,Sb)=>{"use strict";var $D=De(),KD=Ye(),Cd=Eo(),WD=$D(Function.toString);KD(Cd.inspectSource)||(Cd.inspectSource=function(e){return WD(e)});Sb.exports=Cd.inspectSource});var Td=h((Y7,xb)=>{"use strict";var zD=De(),YD=Ee(),Ab=Ye(),QD=fi(),XD=ai(),ZD=Ib(),Eb=function(){},kb=XD("Reflect","construct"),xd=/^\s*(?:class|function)\b/,eL=zD(xd.exec),tL=!xd.test(Eb),Ro=function(t){if(!Ab(t))return!1;try{return kb(Eb,[],t),!0}catch(r){return!1}},Cb=function(t){if(!Ab(t))return!1;switch(QD(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return tL||!!eL(xd,ZD(t))}catch(r){return!0}};Cb.sham=!0;xb.exports=!kb||YD(function(){var e;return Ro(Ro.call)||!Ro(Object)||!Ro(function(){e=!0})||e})?Cb:Ro});var Ob=h((Q7,Rb)=>{"use strict";var Tb=Po(),rL=Td(),nL=Be(),iL=it(),oL=iL("species"),Pb=Array;Rb.exports=function(e){var t;return Tb(e)&&(t=e.constructor,rL(t)&&(t===Pb||Tb(t.prototype))?t=void 0:nL(t)&&(t=t[oL],t===null&&(t=void 0))),t===void 0?Pb:t}});var Pd=h((X7,Nb)=>{"use strict";var aL=Ob();Nb.exports=function(e,t){return new(aL(e))(t===0?0:t)}});var Xr=h((Z7,Lb)=>{"use strict";var sL=Co(),cL=De(),lL=Es(),uL=ci(),dL=pi(),pL=Pd(),Db=cL([].push),Qr=function(e){var t=e===1,r=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(c,l,d,u){for(var p=uL(c),f=lL(p),m=dL(f),v=sL(l,d),b=0,y=u||pL,_=t?y(c,m):r||a?y(c,0):void 0,A,k;m>b;b++)if((s||b in f)&&(A=f[b],k=v(A,b,p),e))if(t)_[b]=k;else if(k)switch(e){case 3:return!0;case 5:return A;case 6:return b;case 2:Db(_,A)}else switch(e){case 4:return!1;case 7:Db(_,A)}return o?-1:n||i?i:_}};Lb.exports={forEach:Qr(0),map:Qr(1),filter:Qr(2),some:Qr(3),every:Qr(4),find:Qr(5),findIndex:Qr(6),filterReject:Qr(7)}});var Oo=h((eY,qb)=>{"use strict";var fL=Ee(),mL=it(),hL=xs(),gL=mL("species");qb.exports=function(e){return hL>=51||!fL(function(){var t=[],r=t.constructor={};return r[gL]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Ub=h(()=>{"use strict";var vL=ce(),yL=Xr().filter,bL=Oo(),_L=bL("filter");vL({target:"Array",proto:!0,forced:!_L},{filter:function(t){return yL(this,t,arguments.length>1?arguments[1]:void 0)}})});var Ut=h((nY,Mb)=>{"use strict";var wL=ke(),SL=er();Mb.exports=function(e,t){var r=SL[e+"Prototype"],n=r&&r[t];if(n)return n;var i=wL[e],o=i&&i.prototype;return o&&o[t]}});var Bb=h((iY,Fb)=>{"use strict";Ub();var IL=Ut();Fb.exports=IL("Array","filter")});var Jb=h((oY,jb)=>{"use strict";var AL=pt(),EL=Bb(),Rd=Array.prototype;jb.exports=function(e){var t=e.filter;return e===Rd||AL(Rd,e)&&t===Rd.filter?EL:t}});var Hb=h((aY,Gb)=>{"use strict";var kL=Jb();Gb.exports=kL});var $b=h((sY,Vb)=>{Vb.exports=Hb()});var No=h((cY,Kb)=>{"use strict";var CL=Ee();Kb.exports=function(e,t){var r=[][e];return!!r&&CL(function(){r.call(null,t||function(){return 1},1)})}});var Wb=h(()=>{"use strict";var xL=ce(),TL=Xr().every,PL=No(),RL=PL("every");xL({target:"Array",proto:!0,forced:!RL},{every:function(t){return TL(this,t,arguments.length>1?arguments[1]:void 0)}})});var Yb=h((dY,zb)=>{"use strict";Wb();var OL=Ut();zb.exports=OL("Array","every")});var Xb=h((pY,Qb)=>{"use strict";var NL=pt(),DL=Yb(),Od=Array.prototype;Qb.exports=function(e){var t=e.every;return e===Od||NL(Od,e)&&t===Od.every?DL:t}});var e_=h((fY,Zb)=>{"use strict";var LL=Xb();Zb.exports=LL});var r_=h((mY,t_)=>{t_.exports=e_()});var i_=h((hY,n_)=>{"use strict";var qL=Xr().forEach,UL=No(),ML=UL("forEach");n_.exports=ML?[].forEach:function(t){return qL(this,t,arguments.length>1?arguments[1]:void 0)}});var a_=h(()=>{"use strict";var FL=ce(),o_=i_();FL({target:"Array",proto:!0,forced:[].forEach!==o_},{forEach:o_})});var c_=h((yY,s_)=>{"use strict";a_();var BL=Ut();s_.exports=BL("Array","forEach")});var u_=h((bY,l_)=>{"use strict";var jL=c_();l_.exports=jL});var d_=h(()=>{});var f_=h((SY,p_)=>{"use strict";var JL=fi(),GL=xt(),HL=pt(),VL=u_();d_();var Nd=Array.prototype,$L={DOMTokenList:!0,NodeList:!0};p_.exports=function(e){var t=e.forEach;return e===Nd||HL(Nd,e)&&t===Nd.forEach||GL($L,JL(e))?VL:t}});var h_=h((IY,m_)=>{m_.exports=f_()});var v_=h((AY,g_)=>{"use strict";var KL=TypeError,WL=9007199254740991;g_.exports=function(e){if(e>WL)throw KL("Maximum allowed index exceeded");return e}});var Dd=h((EY,y_)=>{"use strict";var zL=ft(),YL=Ar(),QL=Io();y_.exports=function(e,t,r){zL?YL.f(e,t,QL(0,r)):e[t]=r}});var S_=h(()=>{"use strict";var XL=ce(),ZL=Ee(),eq=Po(),tq=Be(),rq=ci(),nq=pi(),b_=v_(),__=Dd(),iq=Pd(),oq=Oo(),aq=it(),sq=xs(),w_=aq("isConcatSpreadable"),cq=sq>=51||!ZL(function(){var e=[];return e[w_]=!1,e.concat()[0]!==e}),lq=function(e){if(!tq(e))return!1;var t=e[w_];return t!==void 0?!!t:eq(e)},uq=!cq||!oq("concat");XL({target:"Array",proto:!0,arity:1,forced:uq},{concat:function(t){var r=rq(this),n=iq(r,0),i=0,o,a,s,c,l;for(o=-1,s=arguments.length;o<s;o++)if(l=o===-1?r:arguments[o],lq(l))for(c=nq(l),b_(i+c),a=0;a<c;a++,i++)a in l&&__(n,i,l[a]);else b_(i+1),__(n,i++,l);return n.length=i,n}})});var A_=h((xY,I_)=>{"use strict";S_();var dq=Ut();I_.exports=dq("Array","concat")});var k_=h((TY,E_)=>{"use strict";var pq=pt(),fq=A_(),Ld=Array.prototype;E_.exports=function(e){var t=e.concat;return e===Ld||pq(Ld,e)&&t===Ld.concat?fq:t}});var x_=h((PY,C_)=>{"use strict";var mq=k_();C_.exports=mq});var P_=h((RY,T_)=>{T_.exports=x_()});var R_=h(()=>{"use strict";var hq=ce(),gq=Xr().some,vq=No(),yq=vq("some");hq({target:"Array",proto:!0,forced:!yq},{some:function(t){return gq(this,t,arguments.length>1?arguments[1]:void 0)}})});var N_=h((DY,O_)=>{"use strict";R_();var bq=Ut();O_.exports=bq("Array","some")});var L_=h((LY,D_)=>{"use strict";var _q=pt(),wq=N_(),qd=Array.prototype;D_.exports=function(e){var t=e.some;return e===qd||_q(qd,e)&&t===qd.some?wq:t}});var U_=h((qY,q_)=>{"use strict";var Sq=L_();q_.exports=Sq});var F_=h((UY,M_)=>{M_.exports=U_()});var j_=h((MY,B_)=>{"use strict";var Do=ke(),Iq=ks(),Aq=Sr(),Ds=function(e){return Iq.slice(0,e.length)===e};B_.exports=function(){return Ds("Bun/")?"BUN":Ds("Cloudflare-Workers")?"CLOUDFLARE":Ds("Deno/")?"DENO":Ds("Node.js/")?"NODE":Do.Bun&&typeof Bun.version=="string"?"BUN":Do.Deno&&typeof Deno.version=="object"?"DENO":Aq(Do.process)==="process"?"NODE":Do.window&&Do.document?"BROWSER":"REST"}()});var Lo=h((FY,J_)=>{"use strict";var Eq=De();J_.exports=Eq([].slice)});var H_=h((BY,G_)=>{"use strict";var kq=TypeError;G_.exports=function(e,t){if(e<t)throw new kq("Not enough arguments");return e}});var Ud=h((jY,$_)=>{"use strict";var V_=ke(),Cq=td(),xq=Ye(),Tq=j_(),Pq=ks(),Rq=Lo(),Oq=H_(),Nq=V_.Function,Dq=/MSIE .\./.test(Pq)||Tq==="BUN"&&function(){var e=V_.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();$_.exports=function(e,t){var r=t?2:1;return Dq?function(n,i){var o=Oq(arguments.length,1)>r,a=xq(n)?n:Nq(n),s=o?Rq(arguments,r):[],c=o?function(){Cq(a,this,s)}:a;return t?e(c,i):e(c)}:e}});var z_=h(()=>{"use strict";var Lq=ce(),W_=ke(),qq=Ud(),K_=qq(W_.setInterval,!0);Lq({global:!0,bind:!0,forced:W_.setInterval!==K_},{setInterval:K_})});var X_=h(()=>{"use strict";var Uq=ce(),Q_=ke(),Mq=Ud(),Y_=Mq(Q_.setTimeout,!0);Uq({global:!0,bind:!0,forced:Q_.setTimeout!==Y_},{setTimeout:Y_})});var Z_=h(()=>{"use strict";z_();X_()});var tw=h((WY,ew)=>{"use strict";Z_();var Fq=er();ew.exports=Fq.setTimeout});var nw=h((zY,rw)=>{rw.exports=tw()});function Uo(e,t){Re.__h&&Re.__h(me,e,qo||t),qo=0;var r=me.__H||(me.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Er(e){return qo=1,fw(mw,e)}function fw(e,t,r){var n=Uo(Tn++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):mw(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,s);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=me,!me.__f)){var i=function(s,c,l){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,s,c,l);var u=n.__c.props!==s;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(u=!0)}}),o&&o.call(this,s,c,l)||u};me.__f=!0;var o=me.shouldComponentUpdate,a=me.componentWillUpdate;me.componentWillUpdate=function(s,c,l){if(this.__e){var d=o;o=void 0,i(s,c,l),o=d}a&&a.call(this,s,c,l)},me.shouldComponentUpdate=i}return n.__N||n.__}function Zr(e,t){var r=Uo(Tn++,3);!Re.__s&&Bd(r.__H,t)&&(r.__=e,r.u=t,me.__H.__h.push(r))}function mi(e,t){var r=Uo(Tn++,4);!Re.__s&&Bd(r.__H,t)&&(r.__=e,r.u=t,me.__h.push(r))}function hi(e){return qo=5,Mo(function(){return{current:e}},[])}function Mo(e,t){var r=Uo(Tn++,7);return Bd(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function en(e,t){return qo=8,Mo(function(){return e},t)}function gi(e){var t=me.context[e.__c],r=Uo(Tn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(me)),t.props.value):e.__}function Bq(){for(var e;e=pw.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ls),e.__H.__h.forEach(Fd),e.__H.__h=[]}catch(t){e.__H.__h=[],Re.__e(t,e.__v)}}function jq(e){var t,r=function(){clearTimeout(n),dw&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);dw&&(t=requestAnimationFrame(r))}function Ls(e){var t=me,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),me=t}function Fd(e){var t=me;e.__c=e.__(),me=t}function Bd(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function mw(e,t){return typeof t=="function"?t(e):t}var Tn,me,Md,iw,qo,pw,Re,ow,aw,sw,cw,lw,uw,dw,jd=T(()=>{ii();qo=0,pw=[],Re=U,ow=Re.__b,aw=Re.__r,sw=Re.diffed,cw=Re.__c,lw=Re.unmount,uw=Re.__;Re.__b=function(e){me=null,ow&&ow(e)},Re.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),uw&&uw(e,t)},Re.__r=function(e){aw&&aw(e),Tn=0;var t=(me=e.__c).__H;t&&(Md===me?(t.__h=[],me.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Ls),t.__h.forEach(Fd),t.__h=[],Tn=0)),Md=me},Re.diffed=function(e){sw&&sw(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(pw.push(t)!==1&&iw===Re.requestAnimationFrame||((iw=Re.requestAnimationFrame)||jq)(Bq)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Md=me=null},Re.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ls),r.__h=r.__h.filter(function(n){return!n.__||Fd(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Re.__e(n,r.__v)}}),cw&&cw(e,t)},Re.unmount=function(e){lw&&lw(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ls(n)}catch(i){t=i}}),r.__H=void 0,t&&Re.__e(t,r.__v))};dw=typeof requestAnimationFrame=="function"});function Iw(e,t){for(var r in t)e[r]=t[r];return e}function Gd(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function hw(e,t){this.props=e,this.context=t}function Vd(e,t){function r(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!a:Gd(this.props,i)}function n(i){return this.shouldComponentUpdate=r,nt(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function $d(e){function t(r){var n=Iw({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=Jq,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Aw(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Iw({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Aw(n,t,r)})),e}function Ew(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Ew(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Jd(){this.__u=0,this.o=null,this.__b=null}function kw(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function qs(){this.i=null,this.l=null}function tr(e,t,r){return t.__k==null&&(t.textContent=""),zr(e,t),typeof r=="function"&&r(),e?e.__c:null}function Yq(){}function Qq(){return this.cancelBubble}function Xq(){return this.defaultPrevented}var Hd,gw,Jq,Gq,vw,yw,Hq,Vq,$q,Kq,Wq,zq,bw,Cw,Zq,_w,ww,Sw,Us=T(()=>{ii();ii();jd();jd();Hd=mi;(hw.prototype=new Ct).isPureReactComponent=!0,hw.prototype.shouldComponentUpdate=function(e,t){return Gd(this.props,e)||Gd(this.state,t)};gw=U.__b;U.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),gw&&gw(e)};Jq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;Gq=U.__e;U.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}Gq(e,t,r,n)};vw=U.unmount;U.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),vw&&vw(e)},(Jd.prototype=new Ct).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=kw(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Ew(c,c.__c.__P,c.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.o.pop();)l.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Jd.prototype.componentWillUnmount=function(){this.o=[]},Jd.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Aw(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&nt(ze,null,e.fallback);return i&&(i.__u&=-33),[nt(ze,null,t.__a?null:e.children),i]};yw=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};(qs.prototype=new Ct).__a=function(e){var t=this,r=kw(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),yw(t,e,n)):i()};r?r(o):o()}},qs.prototype.render=function(e){this.i=null,this.l=new Map;var t=_o(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},qs.prototype.componentDidUpdate=qs.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){yw(e,r,t)})};Hq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Vq=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,$q=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Kq=/[A-Z0-9]/g,Wq=typeof document!="undefined",zq=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};Ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ct.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});bw=U.event;U.event=function(e){return bw&&(e=bw(e)),e.persist=Yq,e.isPropagationStopped=Qq,e.isDefaultPrevented=Xq,e.nativeEvent=e};Zq={enumerable:!1,configurable:!0,get:function(){return this.class}},_w=U.vnode;U.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={},o=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||Wq&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var c=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":c==="translate"&&s==="no"?s=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?a="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||zq(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":$q.test(a)&&(a=c):c=a="oninput":o&&Vq.test(a)?a=a.replace(Kq,"-$&").toLowerCase():s===null&&(s=void 0),c==="oninput"&&i[a=c]&&(a="oninputCapture"),i[a]=s}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=_o(r.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=_o(r.children).forEach(function(l){l.props.selected=i.multiple?i.defaultValue.indexOf(l.props.value)!=-1:i.defaultValue==l.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",Zq)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=Hq,_w&&_w(e)};ww=U.__r;U.__r=function(e){ww&&ww(e),Cw=e.__c};Sw=U.diffed;U.diffed=function(e){Sw&&Sw(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),Cw=null}});var Wd=h(()=>{"use strict";var tU=ce(),Kd=ke();tU({global:!0,forced:Kd.globalThis!==Kd},{globalThis:Kd})});var xw=h(()=>{"use strict";Wd()});var Pw=h((dQ,Tw)=>{"use strict";Wd();Tw.exports=ke()});var Ow=h((pQ,Rw)=>{"use strict";var rU=Pw();Rw.exports=rU});var Dw=h((fQ,Nw)=>{"use strict";var nU=Ow();Nw.exports=nU});var qw=h((mQ,Lw)=>{"use strict";xw();var iU=Dw();Lw.exports=iU});var Mw=h((hQ,Uw)=>{"use strict";Uw.exports=qw()});var Bw=h((gQ,Fw)=>{Fw.exports=Mw()});var jw=h(()=>{"use strict";var oU=ce(),aU=Po();oU({target:"Array",stat:!0},{isArray:aU})});var Gw=h((bQ,Jw)=>{"use strict";jw();var sU=er();Jw.exports=sU.Array.isArray});var Vw=h((_Q,Hw)=>{"use strict";var cU=Gw();Hw.exports=cU});var Kw=h((wQ,$w)=>{$w.exports=Vw()});var zw=h((SQ,Ww)=>{"use strict";Ww.exports=function(){}});var Pn=h((IQ,Yw)=>{"use strict";Yw.exports={}});var zd=h((AQ,Xw)=>{"use strict";var lU=ke(),uU=Ye(),Qw=lU.WeakMap;Xw.exports=uU(Qw)&&/native code/.test(String(Qw))});var Ms=h((EQ,eS)=>{"use strict";var dU=md(),pU=Ps(),Zw=dU("keys");eS.exports=function(e){return Zw[e]||(Zw[e]=pU(e))}});var Fo=h((kQ,tS)=>{"use strict";tS.exports={}});var On=h((CQ,iS)=>{"use strict";var fU=zd(),nS=ke(),mU=Be(),hU=xn(),Yd=xt(),Qd=Eo(),gU=Ms(),vU=Fo(),rS="Object already initialized",Xd=nS.TypeError,yU=nS.WeakMap,Fs,Bo,Bs,bU=function(e){return Bs(e)?Bo(e):Fs(e,{})},_U=function(e){return function(t){var r;if(!mU(t)||(r=Bo(t)).type!==e)throw new Xd("Incompatible receiver, "+e+" required");return r}};fU||Qd.state?(Vt=Qd.state||(Qd.state=new yU),Vt.get=Vt.get,Vt.has=Vt.has,Vt.set=Vt.set,Fs=function(e,t){if(Vt.has(e))throw new Xd(rS);return t.facade=e,Vt.set(e,t),t},Bo=function(e){return Vt.get(e)||{}},Bs=function(e){return Vt.has(e)}):(Rn=gU("state"),vU[Rn]=!0,Fs=function(e,t){if(Yd(e,Rn))throw new Xd(rS);return t.facade=e,hU(e,Rn,t),t},Bo=function(e){return Yd(e,Rn)?e[Rn]:{}},Bs=function(e){return Yd(e,Rn)});var Vt,Rn;iS.exports={set:Fs,get:Bo,has:Bs,enforce:bU,getterFor:_U}});var tp=h((xQ,aS)=>{"use strict";var Zd=ft(),wU=xt(),oS=Function.prototype,SU=Zd&&Object.getOwnPropertyDescriptor,ep=wU(oS,"name"),IU=ep&&(function(){}).name==="something",AU=ep&&(!Zd||Zd&&SU(oS,"name").configurable);aS.exports={EXISTS:ep,PROPER:IU,CONFIGURABLE:AU}});var rp=h((TQ,sS)=>{"use strict";var EU=To(),kU=Math.max,CU=Math.min;sS.exports=function(e,t){var r=EU(e);return r<0?kU(r+t,0):CU(r,t)}});var np=h((PQ,lS)=>{"use strict";var xU=Yr(),TU=rp(),PU=pi(),cS=function(e){return function(t,r,n){var i=xU(t),o=PU(i);if(o===0)return!e&&-1;var a=TU(n,o),s;if(e&&r!==r){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}};lS.exports={includes:cS(!0),indexOf:cS(!1)}});var op=h((RQ,dS)=>{"use strict";var RU=De(),ip=xt(),OU=Yr(),NU=np().indexOf,DU=Fo(),uS=RU([].push);dS.exports=function(e,t){var r=OU(e),n=0,i=[],o;for(o in r)!ip(DU,o)&&ip(r,o)&&uS(i,o);for(;t.length>n;)ip(r,o=t[n++])&&(~NU(i,o)||uS(i,o));return i}});var js=h((OQ,pS)=>{"use strict";pS.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var ap=h((NQ,fS)=>{"use strict";var LU=op(),qU=js();fS.exports=Object.keys||function(t){return LU(t,qU)}});var hS=h(mS=>{"use strict";var UU=ft(),MU=wd(),FU=Ar(),BU=Ir(),jU=Yr(),JU=ap();mS.f=UU&&!MU?Object.defineProperties:function(t,r){BU(t);for(var n=jU(r),i=JU(r),o=i.length,a=0,s;o>a;)FU.f(t,s=i[a++],n[s]);return t}});var vS=h((LQ,gS)=>{"use strict";var GU=ai();gS.exports=GU("document","documentElement")});var jo=h((qQ,AS)=>{"use strict";var HU=Ir(),VU=hS(),yS=js(),$U=Fo(),KU=vS(),WU=yd(),zU=Ms(),bS=">",_S="<",cp="prototype",lp="script",SS=zU("IE_PROTO"),sp=function(){},IS=function(e){return _S+lp+bS+e+_S+"/"+lp+bS},wS=function(e){e.write(IS("")),e.close();var t=e.parentWindow.Object;return e=null,t},YU=function(){var e=WU("iframe"),t="java"+lp+":",r;return e.style.display="none",KU.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(IS("document.F=Object")),r.close(),r.F},Js,Gs=function(){try{Js=new ActiveXObject("htmlfile")}catch(t){}Gs=typeof document!="undefined"?document.domain&&Js?wS(Js):YU():wS(Js);for(var e=yS.length;e--;)delete Gs[cp][yS[e]];return Gs()};$U[SS]=!0;AS.exports=Object.create||function(t,r){var n;return t!==null?(sp[cp]=HU(t),n=new sp,sp[cp]=null,n[SS]=t):n=Gs(),r===void 0?n:VU.f(n,r)}});var kS=h((UQ,ES)=>{"use strict";var QU=Ee();ES.exports=!QU(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var dp=h((MQ,xS)=>{"use strict";var XU=xt(),ZU=Ye(),eM=ci(),tM=Ms(),rM=kS(),CS=tM("IE_PROTO"),up=Object,nM=up.prototype;xS.exports=rM?up.getPrototypeOf:function(e){var t=eM(e);if(XU(t,CS))return t[CS];var r=t.constructor;return ZU(r)&&t instanceof r?r.prototype:t instanceof up?nM:null}});var Hs=h((FQ,TS)=>{"use strict";var iM=xn();TS.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:iM(e,t,r),e}});var hp=h((BQ,OS)=>{"use strict";var oM=Ee(),aM=Ye(),sM=Be(),cM=jo(),PS=dp(),lM=Hs(),uM=it(),dM=si(),mp=uM("iterator"),RS=!1,kr,pp,fp;[].keys&&(fp=[].keys(),"next"in fp?(pp=PS(PS(fp)),pp!==Object.prototype&&(kr=pp)):RS=!0);var pM=!sM(kr)||oM(function(){var e={};return kr[mp].call(e)!==e});pM?kr={}:dM&&(kr=cM(kr));aM(kr[mp])||lM(kr,mp,function(){return this});OS.exports={IteratorPrototype:kr,BUGGY_SAFARI_ITERATORS:RS}});var DS=h((jQ,NS)=>{"use strict";var fM=Os(),mM=fi();NS.exports=fM?{}.toString:function(){return"[object "+mM(this)+"]"}});var Jo=h((JQ,qS)=>{"use strict";var hM=Os(),gM=Ar().f,vM=xn(),yM=xt(),bM=DS(),_M=it(),LS=_M("toStringTag");qS.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(yM(i,LS)||gM(i,LS,{configurable:!0,value:t}),n&&!hM&&vM(i,"toString",bM))}});var MS=h((GQ,US)=>{"use strict";var wM=hp().IteratorPrototype,SM=jo(),IM=Io(),AM=Jo(),EM=Pn(),kM=function(){return this};US.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=SM(wM,{next:IM(+!n,r)}),AM(e,i,!1,!0),EM[i]=kM,e}});var BS=h((HQ,FS)=>{"use strict";var CM=De(),xM=Cn();FS.exports=function(e,t,r){try{return CM(xM(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var JS=h((VQ,jS)=>{"use strict";var TM=Be();jS.exports=function(e){return TM(e)||e===null}});var HS=h(($Q,GS)=>{"use strict";var PM=JS(),RM=String,OM=TypeError;GS.exports=function(e){if(PM(e))return e;throw new OM("Can't set "+RM(e)+" as a prototype")}});var $S=h((KQ,VS)=>{"use strict";var NM=BS(),DM=Be(),LM=kn(),qM=HS();VS.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=NM(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return LM(i),qM(o),DM(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Ks=h((WQ,rI)=>{"use strict";var UM=ce(),MM=Gt(),Vs=si(),eI=tp(),FM=Ye(),BM=MS(),KS=dp(),WS=$S(),jM=Jo(),JM=xn(),gp=Hs(),GM=it(),zS=Pn(),tI=hp(),HM=eI.PROPER,VM=eI.CONFIGURABLE,YS=tI.IteratorPrototype,$s=tI.BUGGY_SAFARI_ITERATORS,Go=GM("iterator"),QS="keys",Ho="values",XS="entries",ZS=function(){return this};rI.exports=function(e,t,r,n,i,o,a){BM(r,t,n);var s=function(y){if(y===i&&p)return p;if(!$s&&y&&y in d)return d[y];switch(y){case QS:return function(){return new r(this,y)};case Ho:return function(){return new r(this,y)};case XS:return function(){return new r(this,y)}}return function(){return new r(this)}},c=t+" Iterator",l=!1,d=e.prototype,u=d[Go]||d["@@iterator"]||i&&d[i],p=!$s&&u||s(i),f=t==="Array"&&d.entries||u,m,v,b;if(f&&(m=KS(f.call(new e)),m!==Object.prototype&&m.next&&(!Vs&&KS(m)!==YS&&(WS?WS(m,YS):FM(m[Go])||gp(m,Go,ZS)),jM(m,c,!0,!0),Vs&&(zS[c]=ZS))),HM&&i===Ho&&u&&u.name!==Ho&&(!Vs&&VM?JM(d,"name",Ho):(l=!0,p=function(){return MM(u,this)})),i)if(v={values:s(Ho),keys:o?p:s(QS),entries:s(XS)},a)for(b in v)($s||l||!(b in d))&&gp(d,b,v[b]);else UM({target:t,proto:!0,forced:$s||l},v);return(!Vs||a)&&d[Go]!==p&&gp(d,Go,p,{name:i}),zS[t]=p,v}});var Ws=h((zQ,nI)=>{"use strict";nI.exports=function(e,t){return{value:e,done:t}}});var Ys=h((YQ,cI)=>{"use strict";var $M=Yr(),vp=zw(),iI=Pn(),aI=On(),KM=Ar().f,WM=Ks(),zs=Ws(),zM=si(),YM=ft(),sI="Array Iterator",QM=aI.set,XM=aI.getterFor(sI);cI.exports=WM(Array,"Array",function(e,t){QM(this,{type:sI,target:$M(e),index:0,kind:t})},function(){var e=XM(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,zs(void 0,!0);switch(e.kind){case"keys":return zs(r,!1);case"values":return zs(t[r],!1)}return zs([r,t[r]],!1)},"values");var oI=iI.Arguments=iI.Array;vp("keys");vp("values");vp("entries");if(!zM&&YM&&oI.name!=="values")try{KM(oI,"name",{value:"values"})}catch(e){}});var yp=h(()=>{});var bp=h((ZQ,lI)=>{"use strict";var ZM=Ee();lI.exports=!ZM(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Qs=h((eX,uI)=>{"use strict";var eF=Hs();uI.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:eF(e,n,t[n],r);return e}});var _p=h(dI=>{"use strict";var tF=op(),rF=js(),nF=rF.concat("length","prototype");dI.f=Object.getOwnPropertyNames||function(t){return tF(t,nF)}});var hI=h((rX,mI)=>{"use strict";var iF=Sr(),oF=Yr(),pI=_p().f,aF=Lo(),fI=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],sF=function(e){try{return pI(e)}catch(t){return aF(fI)}};mI.exports.f=function(t){return fI&&iF(t)==="Window"?sF(t):pI(oF(t))}});var vI=h((nX,gI)=>{"use strict";var cF=Ee();gI.exports=cF(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var _I=h((iX,bI)=>{"use strict";var lF=Ee(),uF=Be(),dF=Sr(),yI=vI(),Xs=Object.isExtensible,pF=lF(function(){Xs(1)});bI.exports=pF||yI?function(t){return!uF(t)||yI&&dF(t)==="ArrayBuffer"?!1:Xs?Xs(t):!0}:Xs});var Vo=h((oX,II)=>{"use strict";var fF=ce(),mF=De(),hF=Fo(),gF=Be(),wp=xt(),vF=Ar().f,wI=_p(),yF=hI(),Sp=_I(),bF=Ps(),_F=bp(),SI=!1,Cr=bF("meta"),wF=0,Ip=function(e){vF(e,Cr,{value:{objectID:"O"+wF++,weakData:{}}})},SF=function(e,t){if(!gF(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!wp(e,Cr)){if(!Sp(e))return"F";if(!t)return"E";Ip(e)}return e[Cr].objectID},IF=function(e,t){if(!wp(e,Cr)){if(!Sp(e))return!0;if(!t)return!1;Ip(e)}return e[Cr].weakData},AF=function(e){return _F&&SI&&Sp(e)&&!wp(e,Cr)&&Ip(e),e},EF=function(){kF.enable=function(){},SI=!0;var e=wI.f,t=mF([].splice),r={};r[Cr]=1,e(r).length&&(wI.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Cr){t(i,o,1);break}return i},fF({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:yF.f}))},kF=II.exports={enable:EF,fastKey:SF,getWeakData:IF,onFreeze:AF};hF[Cr]=!0});var EI=h((aX,AI)=>{"use strict";var CF=it(),xF=Pn(),TF=CF("iterator"),PF=Array.prototype;AI.exports=function(e){return e!==void 0&&(xF.Array===e||PF[TF]===e)}});var Ap=h((sX,CI)=>{"use strict";var RF=fi(),kI=Ts(),OF=En(),NF=Pn(),DF=it(),LF=DF("iterator");CI.exports=function(e){if(!OF(e))return kI(e,LF)||kI(e,"@@iterator")||NF[RF(e)]}});var TI=h((cX,xI)=>{"use strict";var qF=Gt(),UF=Cn(),MF=Ir(),FF=Ao(),BF=Ap(),jF=TypeError;xI.exports=function(e,t){var r=arguments.length<2?BF(e):t;if(UF(r))return MF(qF(r,e));throw new jF(FF(e)+" is not iterable")}});var Zs=h((lX,RI)=>{"use strict";var JF=Gt(),PI=Ir(),GF=Ts();RI.exports=function(e,t,r){var n,i;PI(e);try{if(n=GF(e,"return"),!n){if(t==="throw")throw r;return r}n=JF(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return PI(n),r}});var tc=h((uX,LI)=>{"use strict";var HF=Co(),VF=Gt(),$F=Ir(),KF=Ao(),WF=EI(),zF=pi(),OI=pt(),YF=TI(),QF=Ap(),NI=Zs(),XF=TypeError,ec=function(e,t){this.stopped=e,this.result=t},DI=ec.prototype;LI.exports=function(e,t,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),c=HF(t,n),l,d,u,p,f,m,v,b=function(_){return l&&NI(l,"normal",_),new ec(!0,_)},y=function(_){return i?($F(_),s?c(_[0],_[1],b):c(_[0],_[1])):s?c(_,b):c(_)};if(o)l=e.iterator;else if(a)l=e;else{if(d=QF(e),!d)throw new XF(KF(e)+" is not iterable");if(WF(d)){for(u=0,p=zF(e);p>u;u++)if(f=y(e[u]),f&&OI(DI,f))return f;return new ec(!1)}l=YF(e,d)}for(m=o?e.next:l.next;!(v=VF(m,l)).done;){try{f=y(v.value)}catch(_){NI(l,"throw",_)}if(typeof f=="object"&&f&&OI(DI,f))return f}return new ec(!1)}});var rc=h((dX,qI)=>{"use strict";var ZF=pt(),eB=TypeError;qI.exports=function(e,t){if(ZF(t,e))return e;throw new eB("Incorrect invocation")}});var Ep=h((pX,MI)=>{"use strict";var tB=ce(),rB=ke(),nB=Vo(),iB=Ee(),oB=xn(),aB=tc(),sB=rc(),cB=Ye(),lB=Be(),uB=En(),dB=Jo(),pB=Ar().f,fB=Xr().forEach,mB=ft(),UI=On(),hB=UI.set,gB=UI.getterFor;MI.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=rB[e],s=a&&a.prototype,c={},l;if(!mB||!cB(a)||!(i||s.forEach&&!iB(function(){new a().entries().next()})))l=r.getConstructor(t,e,n,o),nB.enable();else{l=t(function(p,f){hB(sB(p,d),{type:e,collection:new a}),uB(f)||aB(f,p[o],{that:p,AS_ENTRIES:n})});var d=l.prototype,u=gB(e);fB(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&oB(d,p,function(m,v){var b=u(this).collection;if(!f&&i&&!lB(m))return p==="get"?void 0:!1;var y=b[p](m===0?0:m,v);return f?this:y})}),i||pB(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return dB(l,e,!1,!0),c[e]=l,tB({global:!0,forced:!0},c),i||r.setStrong(l,e,n),l}});var VI=h((fX,HI)=>{"use strict";var vB=De(),FI=Qs(),nc=Vo().getWeakData,yB=rc(),bB=Ir(),_B=En(),kp=Be(),wB=tc(),jI=Xr(),BI=xt(),JI=On(),SB=JI.set,IB=JI.getterFor,AB=jI.find,EB=jI.findIndex,kB=vB([].splice),CB=0,ic=function(e){return e.frozen||(e.frozen=new GI)},GI=function(){this.entries=[]},Cp=function(e,t){return AB(e.entries,function(r){return r[0]===t})};GI.prototype={get:function(e){var t=Cp(this,e);if(t)return t[1]},has:function(e){return!!Cp(this,e)},set:function(e,t){var r=Cp(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=EB(this.entries,function(r){return r[0]===e});return~t&&kB(this.entries,t,1),!!~t}};HI.exports={getConstructor:function(e,t,r,n){var i=e(function(c,l){yB(c,o),SB(c,{type:t,id:CB++,frozen:null}),_B(l)||wB(l,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=IB(t),s=function(c,l,d){var u=a(c),p=nc(bB(l),!0);return p===!0?ic(u).set(l,d):p[u.id]=d,c};return FI(o,{delete:function(c){var l=a(this);if(!kp(c))return!1;var d=nc(c);return d===!0?ic(l).delete(c):d&&BI(d,l.id)&&delete d[l.id]},has:function(l){var d=a(this);if(!kp(l))return!1;var u=nc(l);return u===!0?ic(d).has(l):u&&BI(u,d.id)}}),FI(o,r?{get:function(l){var d=a(this);if(kp(l)){var u=nc(l);if(u===!0)return ic(d).get(l);if(u)return u[d.id]}},set:function(l,d){return s(this,l,d)}}:{add:function(l){return s(this,l,!0)}}),i}}});var ZI=h(()=>{"use strict";var xB=bp(),$I=ke(),cc=De(),KI=Qs(),TB=Vo(),PB=Ep(),WI=VI(),oc=Be(),ac=On().enforce,RB=Ee(),OB=zd(),Wo=Object,NB=Array.isArray,sc=Wo.isExtensible,zI=Wo.isFrozen,DB=Wo.isSealed,YI=Wo.freeze,LB=Wo.seal,qB=!$I.ActiveXObject&&"ActiveXObject"in $I,$o,QI=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},XI=PB("WeakMap",QI,WI),yi=XI.prototype,lc=cc(yi.set),UB=function(){return xB&&RB(function(){var e=YI([]);return lc(new XI,e,1),!zI(e)})};OB&&(qB?($o=WI.getConstructor(QI,"WeakMap",!0),TB.enable(),xp=cc(yi.delete),Ko=cc(yi.has),Tp=cc(yi.get),KI(yi,{delete:function(e){if(oc(e)&&!sc(e)){var t=ac(this);return t.frozen||(t.frozen=new $o),xp(this,e)||t.frozen.delete(e)}return xp(this,e)},has:function(t){if(oc(t)&&!sc(t)){var r=ac(this);return r.frozen||(r.frozen=new $o),Ko(this,t)||r.frozen.has(t)}return Ko(this,t)},get:function(t){if(oc(t)&&!sc(t)){var r=ac(this);return r.frozen||(r.frozen=new $o),Ko(this,t)?Tp(this,t):r.frozen.get(t)}return Tp(this,t)},set:function(t,r){if(oc(t)&&!sc(t)){var n=ac(this);n.frozen||(n.frozen=new $o),Ko(this,t)?lc(this,t,r):n.frozen.set(t,r)}else lc(this,t,r);return this}})):UB()&&KI(yi,{set:function(t,r){var n;return NB(t)&&(zI(t)?n=YI:DB(t)&&(n=LB)),lc(this,t,r),n&&n(t),this}}));var xp,Ko,Tp});var eA=h(()=>{"use strict";ZI()});var rA=h((yX,tA)=>{"use strict";Ys();yp();eA();var MB=er();tA.exports=MB.WeakMap});var iA=h((bX,nA)=>{"use strict";nA.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var Pp=h(()=>{"use strict";Ys();var FB=iA(),BB=ke(),jB=Jo(),oA=Pn();for(uc in FB)jB(BB[uc],uc),oA[uc]=oA.Array;var uc});var sA=h((SX,aA)=>{"use strict";var JB=rA();Pp();aA.exports=JB});var lA=h((IX,cA)=>{cA.exports=sA()});var dA=h(()=>{"use strict";var GB=ce(),HB=So(),VB=np().indexOf,$B=No(),Rp=HB([].indexOf),uA=!!Rp&&1/Rp([1],1,-0)<0,KB=uA||!$B("indexOf");GB({target:"Array",proto:!0,forced:KB},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return uA?Rp(this,t,r)||0:VB(this,t,r)}})});var fA=h((kX,pA)=>{"use strict";dA();var WB=Ut();pA.exports=WB("Array","indexOf")});var hA=h((CX,mA)=>{"use strict";var zB=pt(),YB=fA(),Op=Array.prototype;mA.exports=function(e){var t=e.indexOf;return e===Op||zB(Op,e)&&t===Op.indexOf?YB:t}});var vA=h((xX,gA)=>{"use strict";var QB=hA();gA.exports=QB});var bA=h((TX,yA)=>{yA.exports=vA()});var _A=h(()=>{"use strict";var XB=ce(),ZB=Xr().map,ej=Oo(),tj=ej("map");XB({target:"Array",proto:!0,forced:!tj},{map:function(t){return ZB(this,t,arguments.length>1?arguments[1]:void 0)}})});var SA=h((OX,wA)=>{"use strict";_A();var rj=Ut();wA.exports=rj("Array","map")});var AA=h((NX,IA)=>{"use strict";var nj=pt(),ij=SA(),Np=Array.prototype;IA.exports=function(e){var t=e.map;return e===Np||nj(Np,e)&&t===Np.map?ij:t}});var kA=h((DX,EA)=>{"use strict";var oj=AA();EA.exports=oj});var xA=h((LX,CA)=>{CA.exports=kA()});var TA=h(()=>{"use strict";var aj=ce(),sj=ft(),cj=jo();aj({target:"Object",stat:!0,sham:!sj},{create:cj})});var RA=h((MX,PA)=>{"use strict";TA();var lj=er(),uj=lj.Object;PA.exports=function(t,r){return uj.create(t,r)}});var NA=h((FX,OA)=>{"use strict";var dj=RA();OA.exports=dj});var LA=h((BX,DA)=>{DA.exports=NA()});var Dp=h((jX,qA)=>{"use strict";var pj=Ar();qA.exports=function(e,t,r){return pj.f(e,t,r)}});var FA=h((JX,MA)=>{"use strict";var fj=ai(),mj=Dp(),hj=it(),gj=ft(),UA=hj("species");MA.exports=function(e){var t=fj(e);gj&&t&&!t[UA]&&mj(t,UA,{configurable:!0,get:function(){return this}})}});var $A=h((GX,VA)=>{"use strict";var BA=jo(),vj=Dp(),jA=Qs(),yj=Co(),bj=rc(),_j=En(),wj=tc(),Sj=Ks(),dc=Ws(),Ij=FA(),zo=ft(),JA=Vo().fastKey,HA=On(),GA=HA.set,Lp=HA.getterFor;VA.exports={getConstructor:function(e,t,r,n){var i=e(function(l,d){bj(l,o),GA(l,{type:t,index:BA(null),first:null,last:null,size:0}),zo||(l.size=0),_j(d)||wj(d,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Lp(t),s=function(l,d,u){var p=a(l),f=c(l,d),m,v;return f?f.value=u:(p.last=f={index:v=JA(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),zo?p.size++:l.size++,v!=="F"&&(p.index[v]=f)),l},c=function(l,d){var u=a(l),p=JA(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return jA(o,{clear:function(){for(var d=this,u=a(d),p=u.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;u.first=u.last=null,u.index=BA(null),zo?u.size=0:d.size=0},delete:function(l){var d=this,u=a(d),p=c(d,l);if(p){var f=p.next,m=p.previous;delete u.index[p.index],p.removed=!0,m&&(m.next=f),f&&(f.previous=m),u.first===p&&(u.first=f),u.last===p&&(u.last=m),zo?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=yj(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:u.first;)for(p(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!c(this,d)}}),jA(o,r?{get:function(d){var u=c(this,d);return u&&u.value},set:function(d,u){return s(this,d===0?0:d,u)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),zo&&vj(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Lp(t),o=Lp(n);Sj(e,t,function(a,s){GA(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,c=a.last;c&&c.removed;)c=c.previous;return!a.target||!(a.last=c=c?c.next:a.state.first)?(a.target=null,dc(void 0,!0)):dc(s==="keys"?c.key:s==="values"?c.value:[c.key,c.value],!1)},r?"entries":"values",!r,!0),Ij(t)}}});var KA=h(()=>{"use strict";var Aj=Ep(),Ej=$A();Aj("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ej)});var WA=h(()=>{"use strict";KA()});var tn=h((WX,zA)=>{"use strict";var kj=Ao(),Cj=TypeError;zA.exports=function(e){if(typeof e=="object"&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new Cj(kj(e)+" is not a set")}});var QA=h((zX,YA)=>{"use strict";YA.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var rn=h((YX,ZA)=>{"use strict";var xj=ai(),qp=QA(),XA=xj("Set"),Tj=XA.prototype;ZA.exports={Set:XA,add:qp("add",1),has:qp("has",1),remove:qp("delete",1),proto:Tj}});var nn=h((QX,e0)=>{"use strict";var Pj=Gt();e0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=Pj(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var bi=h((XX,t0)=>{"use strict";var Rj=nn();t0.exports=function(e,t,r){return r?Rj(e.keys(),t,!0):e.forEach(t)}});var pc=h((ZX,n0)=>{"use strict";var r0=rn(),Oj=bi(),Nj=r0.Set,Dj=r0.add;n0.exports=function(e){var t=new Nj;return Oj(e,function(r){Dj(t,r)}),t}});var _i=h((eZ,i0)=>{"use strict";i0.exports=function(e){return e.size}});var a0=h((tZ,o0)=>{"use strict";o0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var on=h((rZ,p0)=>{"use strict";var s0=Cn(),u0=Ir(),c0=Gt(),Lj=To(),qj=a0(),l0="Invalid size",Uj=RangeError,Mj=TypeError,Fj=Math.max,d0=function(e,t){this.set=e,this.size=Fj(t,0),this.has=s0(e.has),this.keys=s0(e.keys)};d0.prototype={getIterator:function(){return qj(u0(c0(this.keys,this.set)))},includes:function(e){return c0(this.has,this.set,e)}};p0.exports=function(e){u0(e);var t=+e.size;if(t!==t)throw new Mj(l0);var r=Lj(t);if(r<0)throw new Uj(l0);return new d0(e,r)}});var g0=h((nZ,h0)=>{"use strict";var Bj=tn(),m0=rn(),jj=pc(),Jj=_i(),Gj=on(),Hj=bi(),Vj=nn(),$j=m0.has,f0=m0.remove;h0.exports=function(t){var r=Bj(this),n=Gj(t),i=jj(r);return Jj(r)<=n.size?Hj(r,function(o){n.includes(o)&&f0(i,o)}):Vj(n.getIterator(),function(o){$j(r,o)&&f0(i,o)}),i}});var an=h((iZ,v0)=>{"use strict";v0.exports=function(){return!1}});var y0=h(()=>{"use strict";var Kj=ce(),Wj=g0(),zj=an(),Yj=!zj("difference",function(e){return e.size===0});Kj({target:"Set",proto:!0,real:!0,forced:Yj},{difference:Wj})});var w0=h((sZ,_0)=>{"use strict";var Qj=tn(),Up=rn(),Xj=_i(),Zj=on(),eJ=bi(),tJ=nn(),rJ=Up.Set,b0=Up.add,nJ=Up.has;_0.exports=function(t){var r=Qj(this),n=Zj(t),i=new rJ;return Xj(r)>n.size?tJ(n.getIterator(),function(o){nJ(r,o)&&b0(i,o)}):eJ(r,function(o){n.includes(o)&&b0(i,o)}),i}});var S0=h(()=>{"use strict";var iJ=ce(),oJ=Ee(),aJ=w0(),sJ=an(),cJ=!sJ("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||oJ(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});iJ({target:"Set",proto:!0,real:!0,forced:cJ},{intersection:aJ})});var A0=h((uZ,I0)=>{"use strict";var lJ=tn(),uJ=rn().has,dJ=_i(),pJ=on(),fJ=bi(),mJ=nn(),hJ=Zs();I0.exports=function(t){var r=lJ(this),n=pJ(t);if(dJ(r)<=n.size)return fJ(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return mJ(i,function(o){if(uJ(r,o))return hJ(i,"normal",!1)})!==!1}});var E0=h(()=>{"use strict";var gJ=ce(),vJ=A0(),yJ=an(),bJ=!yJ("isDisjointFrom",function(e){return!e});gJ({target:"Set",proto:!0,real:!0,forced:bJ},{isDisjointFrom:vJ})});var C0=h((fZ,k0)=>{"use strict";var _J=tn(),wJ=_i(),SJ=bi(),IJ=on();k0.exports=function(t){var r=_J(this),n=IJ(t);return wJ(r)>n.size?!1:SJ(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var x0=h(()=>{"use strict";var AJ=ce(),EJ=C0(),kJ=an(),CJ=!kJ("isSubsetOf",function(e){return e});AJ({target:"Set",proto:!0,real:!0,forced:CJ},{isSubsetOf:EJ})});var P0=h((gZ,T0)=>{"use strict";var xJ=tn(),TJ=rn().has,PJ=_i(),RJ=on(),OJ=nn(),NJ=Zs();T0.exports=function(t){var r=xJ(this),n=RJ(t);if(PJ(r)<n.size)return!1;var i=n.getIterator();return OJ(i,function(o){if(!TJ(r,o))return NJ(i,"normal",!1)})!==!1}});var R0=h(()=>{"use strict";var DJ=ce(),LJ=P0(),qJ=an(),UJ=!qJ("isSupersetOf",function(e){return!e});DJ({target:"Set",proto:!0,real:!0,forced:UJ},{isSupersetOf:LJ})});var N0=h((bZ,O0)=>{"use strict";var MJ=tn(),Mp=rn(),FJ=pc(),BJ=on(),jJ=nn(),JJ=Mp.add,GJ=Mp.has,HJ=Mp.remove;O0.exports=function(t){var r=MJ(this),n=BJ(t).getIterator(),i=FJ(r);return jJ(n,function(o){GJ(r,o)?HJ(i,o):JJ(i,o)}),i}});var D0=h(()=>{"use strict";var VJ=ce(),$J=N0(),KJ=an();VJ({target:"Set",proto:!0,real:!0,forced:!KJ("symmetricDifference")},{symmetricDifference:$J})});var q0=h((SZ,L0)=>{"use strict";var WJ=tn(),zJ=rn().add,YJ=pc(),QJ=on(),XJ=nn();L0.exports=function(t){var r=WJ(this),n=QJ(t).getIterator(),i=YJ(r);return XJ(n,function(o){zJ(i,o)}),i}});var U0=h(()=>{"use strict";var ZJ=ce(),eG=q0(),tG=an();ZJ({target:"Set",proto:!0,real:!0,forced:!tG("union")},{union:eG})});var Yo=h((EZ,M0)=>{"use strict";var rG=fi(),nG=String;M0.exports=function(e){if(rG(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return nG(e)}});var J0=h((kZ,j0)=>{"use strict";var Fp=De(),iG=To(),oG=Yo(),aG=kn(),sG=Fp("".charAt),F0=Fp("".charCodeAt),cG=Fp("".slice),B0=function(e){return function(t,r){var n=oG(aG(t)),i=iG(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=F0(n,i),a<55296||a>56319||i+1===o||(s=F0(n,i+1))<56320||s>57343?e?sG(n,i):a:e?cG(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};j0.exports={codeAt:B0(!1),charAt:B0(!0)}});var $0=h(()=>{"use strict";var lG=J0().charAt,uG=Yo(),H0=On(),dG=Ks(),G0=Ws(),V0="String Iterator",pG=H0.set,fG=H0.getterFor(V0);dG(String,"String",function(e){pG(this,{type:V0,string:uG(e),index:0})},function(){var t=fG(this),r=t.string,n=t.index,i;return n>=r.length?G0(void 0,!0):(i=lG(r,n),t.index+=i.length,G0(i,!1))})});var W0=h((TZ,K0)=>{"use strict";Ys();yp();WA();y0();S0();E0();x0();R0();D0();U0();$0();var mG=er();K0.exports=mG.Set});var Y0=h((PZ,z0)=>{"use strict";var hG=W0();Pp();z0.exports=hG});var X0=h((RZ,Q0)=>{Q0.exports=Y0()});var eE=h(Z0=>{"use strict";Z0.f=Object.getOwnPropertySymbols});var iE=h((NZ,nE)=>{"use strict";var tE=ft(),gG=De(),vG=Gt(),yG=Ee(),Bp=ap(),bG=eE(),_G=nd(),wG=ci(),SG=Es(),wi=Object.assign,rE=Object.defineProperty,IG=gG([].concat);nE.exports=!wi||yG(function(){if(tE&&wi({b:1},wi(rE({},"a",{enumerable:!0,get:function(){rE(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),wi({},e)[r]!==7||Bp(wi({},t)).join("")!==n})?function(t,r){for(var n=wG(t),i=arguments.length,o=1,a=bG.f,s=_G.f;i>o;)for(var c=SG(arguments[o++]),l=a?IG(Bp(c),a(c)):Bp(c),d=l.length,u=0,p;d>u;)p=l[u++],(!tE||vG(s,c,p))&&(n[p]=c[p]);return n}:wi});var aE=h(()=>{"use strict";var AG=ce(),oE=iE();AG({target:"Object",stat:!0,arity:2,forced:Object.assign!==oE},{assign:oE})});var cE=h((qZ,sE)=>{"use strict";aE();var EG=er();sE.exports=EG.Object.assign});var uE=h((UZ,lE)=>{"use strict";var kG=cE();lE.exports=kG});var pE=h((MZ,dE)=>{dE.exports=uE()});var jp=h((FZ,fE)=>{"use strict";fE.exports=`
22
+ \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var gE=h((BZ,hE)=>{"use strict";var CG=De(),xG=kn(),TG=Yo(),Gp=jp(),mE=CG("".replace),PG=RegExp("^["+Gp+"]+"),RG=RegExp("(^|[^"+Gp+"])["+Gp+"]+$"),Jp=function(e){return function(t){var r=TG(xG(t));return e&1&&(r=mE(r,PG,"")),e&2&&(r=mE(r,RG,"$1")),r}};hE.exports={start:Jp(1),end:Jp(2),trim:Jp(3)}});var _E=h((jZ,bE)=>{"use strict";var OG=tp().PROPER,NG=Ee(),vE=jp(),yE="\u200B\x85\u180E";bE.exports=function(e){return NG(function(){return!!vE[e]()||yE[e]()!==yE||OG&&vE[e].name!==e})}});var wE=h(()=>{"use strict";var DG=ce(),LG=gE().trim,qG=_E();DG({target:"String",proto:!0,forced:qG("trim")},{trim:function(){return LG(this)}})});var IE=h((HZ,SE)=>{"use strict";wE();var UG=Ut();SE.exports=UG("String","trim")});var EE=h((VZ,AE)=>{"use strict";var MG=pt(),FG=IE(),Hp=String.prototype;AE.exports=function(e){var t=e.trim;return typeof e=="string"||e===Hp||MG(Hp,e)&&t===Hp.trim?FG:t}});var CE=h(($Z,kE)=>{"use strict";var BG=EE();kE.exports=BG});var TE=h((KZ,xE)=>{xE.exports=CE()});var OE=h(()=>{"use strict";var jG=ce(),PE=Po(),JG=Td(),GG=Be(),RE=rp(),HG=pi(),VG=Yr(),$G=Dd(),KG=it(),WG=Oo(),zG=Lo(),YG=WG("slice"),QG=KG("species"),Vp=Array,XG=Math.max;jG({target:"Array",proto:!0,forced:!YG},{slice:function(t,r){var n=VG(this),i=HG(n),o=RE(t,i),a=RE(r===void 0?i:r,i),s,c,l;if(PE(n)&&(s=n.constructor,JG(s)&&(s===Vp||PE(s.prototype))?s=void 0:GG(s)&&(s=s[QG],s===null&&(s=void 0)),s===Vp||s===void 0))return zG(n,o,a);for(c=new(s===void 0?Vp:s)(XG(a-o,0)),l=0;o<a;o++,l++)o in n&&$G(c,l,n[o]);return c.length=l,c}})});var DE=h((YZ,NE)=>{"use strict";OE();var ZG=Ut();NE.exports=ZG("Array","slice")});var qE=h((QZ,LE)=>{"use strict";var e2=pt(),t2=DE(),$p=Array.prototype;LE.exports=function(e){var t=e.slice;return e===$p||e2($p,e)&&t===$p.slice?t2:t}});var ME=h((XZ,UE)=>{"use strict";var r2=qE();UE.exports=r2});var BE=h((ZZ,FE)=>{FE.exports=ME()});var Kp=T(()=>{});var JE=h((tee,jE)=>{"use strict";var n2=Be(),i2=Sr(),o2=it(),a2=o2("match");jE.exports=function(e){var t;return n2(e)&&((t=e[a2])!==void 0?!!t:i2(e)==="RegExp")}});var HE=h((ree,GE)=>{"use strict";var s2=JE(),c2=TypeError;GE.exports=function(e){if(s2(e))throw new c2("The method doesn't accept regular expressions");return e}});var $E=h((nee,VE)=>{"use strict";var l2=it(),u2=l2("match");VE.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[u2]=!1,"/./"[e](t)}catch(n){}}return!1}});var zE=h(()=>{"use strict";var d2=ce(),p2=So(),f2=_d().f,m2=kd(),KE=Yo(),h2=HE(),g2=kn(),v2=$E(),y2=si(),b2=p2("".slice),_2=Math.min,WE=v2("startsWith"),w2=!y2&&!WE&&!!function(){var e=f2(String.prototype,"startsWith");return e&&!e.writable}();d2({target:"String",proto:!0,forced:!w2&&!WE},{startsWith:function(t){var r=KE(g2(this));h2(t);var n=m2(_2(arguments.length>1?arguments[1]:void 0,r.length)),i=KE(t);return b2(r,n,n+i.length)===i}})});var QE=h((aee,YE)=>{"use strict";zE();var S2=Ut();YE.exports=S2("String","startsWith")});var ZE=h((see,XE)=>{"use strict";var I2=pt(),A2=QE(),Wp=String.prototype;XE.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Wp||I2(Wp,e)&&t===Wp.startsWith?A2:t}});var tk=h((cee,ek)=>{"use strict";var E2=ZE();ek.exports=E2});var nk=h((lee,rk)=>{rk.exports=tk()});var ck=h((uee,sk)=>{"use strict";var ok=De(),k2=Cn(),C2=Be(),x2=xt(),ik=Lo(),T2=oi(),ak=Function,P2=ok([].concat),R2=ok([].join),zp={},O2=function(e,t,r){if(!x2(zp,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";zp[t]=ak("C,a","return new C("+R2(n,",")+")")}return zp[t](e,r)};sk.exports=T2?ak.bind:function(t){var r=k2(this),n=r.prototype,i=ik(arguments,1),o=function(){var s=P2(i,ik(arguments));return this instanceof o?O2(r,s.length,s):r.apply(t,s)};return C2(n)&&(o.prototype=n),o}});var uk=h(()=>{"use strict";var N2=ce(),lk=ck();N2({target:"Function",proto:!0,forced:Function.bind!==lk},{bind:lk})});var pk=h((fee,dk)=>{"use strict";uk();var D2=Ut();dk.exports=D2("Function","bind")});var mk=h((mee,fk)=>{"use strict";var L2=pt(),q2=pk(),Yp=Function.prototype;fk.exports=function(e){var t=e.bind;return e===Yp||L2(Yp,e)&&t===Yp.bind?q2:t}});var gk=h((hee,hk)=>{"use strict";var U2=mk();hk.exports=U2});var yk=h((gee,vk)=>{vk.exports=gk()});function Rc(e,t){Le.__h&&Le.__h(we,e,na||t),na=0;var r=we.__H||(we.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function cr(e){return na=1,M2(aC,e)}function M2(e,t,r){var n=Rc(Ei++,2);if(n.t=e,!n.__c&&(n.__=[aC(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,s);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=we,!we.__f)){var i=function(s,c,l){var d;if(!n.__c.__H)return!0;var u=(0,yf.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,tC.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,c,l);var p=n.__c.props!==s;return(0,je.default)(u).call(u,function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,c,l)||p};we.__f=!0;var o=we.shouldComponentUpdate,a=we.componentWillUpdate;we.componentWillUpdate=function(s,c,l){if(this.__e){var d=o;o=void 0,i(s,c,l),o=d}a&&a.call(this,s,c,l)},we.shouldComponentUpdate=i}return n.__N||n.__}function Dn(e,t){var r=Rc(Ei++,3);!Le.__s&&oC(r.__H,t)&&(r.__=e,r.u=t,we.__H.__h.push(r))}function Zo(e){return na=5,Tr(function(){return{current:e}},[])}function Tr(e,t){var r=Rc(Ei++,7);return oC(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Mt(e,t){return na=8,Tr(function(){return e},t)}function F2(e){var t=we.context[e.__c],r=Rc(Ei++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(we)),t.props.value):e.__}function B2(){for(var e;e=iC.shift();)if(e.__P&&e.__H)try{var t,r;(0,je.default)(t=e.__H.__h).call(t,vc),(0,je.default)(r=e.__H.__h).call(r,af),e.__H.__h=[]}catch(n){e.__H.__h=[],Le.__e(n,e.__v)}}function j2(e){var t,r=function(){clearTimeout(n),kk&&cancelAnimationFrame(t),(0,sr.default)(e)},n=(0,sr.default)(r,100);kk&&(t=requestAnimationFrame(r))}function vc(e){var t=we,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),we=t}function af(e){var t=we;e.__c=e.__(),we=t}function oC(e,t){return!e||e.length!==t.length||(0,Ec.default)(t).call(t,function(r,n){return r!==e[n]})}function aC(e,t){return typeof t=="function"?t(e):t}function J2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function sf(){throw new Error("setTimeout has not been defined")}function cf(){throw new Error("clearTimeout has not been defined")}function cC(e){if(rr===sr.default)return(0,sr.default)(e,0);if((rr===sf||!rr)&&sr.default)return rr=sr.default,(0,sr.default)(e,0);try{return rr(e,0)}catch(t){try{return rr.call(null,e,0)}catch(r){return rr.call(this,e,0)}}}function G2(e){if(nr===clearTimeout)return clearTimeout(e);if((nr===cf||!nr)&&clearTimeout)return nr=clearTimeout,clearTimeout(e);try{return nr(e)}catch(t){try{return nr.call(null,e)}catch(r){return nr.call(this,e)}}}function H2(){!Si||!cn||(Si=!1,cn.length?xr=(0,Pc.default)(cn).call(cn,xr):yc=-1,xr.length&&lC())}function lC(){if(!Si){var e=cC(H2);Si=!0;for(var t=xr.length;t;){for(cn=xr,xr=[];++yc<t;)cn&&cn[yc].run();yc=-1,t=xr.length}cn=null,Si=!1,G2(e)}}function uC(e,t){this.fun=e,this.array=t}function Rr(){}function K2(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function W2(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function X2(e,t){return Qe(e,0)^45?(((t<<2^Qe(e,0))<<2^Qe(e,1))<<2^Qe(e,2))<<2^Qe(e,3):0}function fC(e){return(0,wf.default)(e).call(e)}function Z2(e,t){return(e=t.exec(e))?e[0]:e}function oe(e,t,r){return e.replace(t,r)}function lf(e,t){return(0,Pr.default)(e).call(e,t)}function Qe(e,t){return e.charCodeAt(t)|0}function ia(e,t,r){return(0,Sf.default)(e).call(e,t,r)}function ir(e){return e.length}function kf(e){return e.length}function fc(e,t){return t.push(e),e}function eH(e,t){return(0,ra.default)(e).call(e,t).join("")}function Dc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Nc,column:ki,length:a,return:""}}function Qo(e,t){return Q2(Dc("",null,null,"",null,null,0),e,{length:-e.length},t)}function tH(){return qe}function rH(){return qe=vt>0?Qe(xi,--vt):0,ki--,qe===10&&(ki=1,Nc--),qe}function Tt(){return qe=vt<mC?Qe(xi,vt++):0,ki++,qe===10&&(ki=1,Nc++),qe}function lr(){return Qe(xi,vt)}function bc(){return vt}function ua(e,t){return ia(xi,e,t)}function oa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function hC(e){return Nc=ki=1,mC=ir(xi=e),vt=0,[]}function gC(e){return xi="",e}function _c(e){return fC(ua(vt-1,uf(e===91?e+2:e===40?e+1:e)))}function nH(e){for(;(qe=lr())&&qe<33;)Tt();return oa(e)>2||oa(qe)>3?"":" "}function iH(e,t){for(;--t&&Tt()&&!(qe<48||qe>102||qe>57&&qe<65||qe>70&&qe<97););return ua(e,bc()+(t<6&&lr()==32&&Tt()==32))}function uf(e){for(;Tt();)switch(qe){case e:return vt;case 34:case 39:e!==34&&e!==39&&uf(qe);break;case 40:e===41&&uf(e);break;case 92:Tt();break}return vt}function oH(e,t){for(;Tt()&&e+qe!==57&&!(e+qe===84&&lr()===47););return"/*"+ua(t,vt-1)+"*"+Oc(e===47?e:Tt())}function aH(e){for(;!oa(lr());)Tt();return ua(e,vt)}function sH(e){return gC(wc("",null,null,null,[""],e=hC(e),0,[0],e))}function wc(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,v=1,b=1,y=1,_=0,A="",k=i,x=o,C=n,E=A;b;)switch(m=_,_=Tt()){case 40:if(m!=108&&Qe(E,u-1)==58){lf(E+=oe(_c(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:E+=_c(_);break;case 9:case 10:case 13:case 32:E+=nH(m);break;case 92:E+=iH(bc()-1,7);continue;case 47:switch(lr()){case 42:case 47:fc(cH(oH(Tt(),bc()),t,r),c);break;default:E+="/"}break;case 123*v:s[l++]=ir(E)*y;case 125*v:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:f>0&&ir(E)-u&&fc(f>32?xk(E+";",n,r,u-1):xk(oe(E," ","")+";",n,r,u-2),c);break;case 59:E+=";";default:if(fc(C=Ck(E,t,r,l,d,i,s,A,k=[],x=[],u),o),_===123)if(d===0)wc(E,t,C,C,k,o,u,s,x);else switch(p===99&&Qe(E,3)===110?100:p){case 100:case 109:case 115:wc(e,C,C,n&&fc(Ck(e,C,C,0,0,i,s,A,i,k=[],u),x),i,x,u,s,n?k:x);break;default:wc(E,C,C,C,[""],x,0,s,x)}}l=d=f=0,v=y=1,A=E="",u=a;break;case 58:u=1+ir(E),f=m;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&rH()==125)continue}switch(E+=Oc(_),_*v){case 38:y=d>0?1:(E+="\f",-1);break;case 44:s[l++]=(ir(E)-1)*y,y=1;break;case 64:lr()===45&&(E+=_c(Tt())),p=lr(),d=u=ir(A=E+=aH(bc())),_++;break;case 45:m===45&&ir(E)==2&&(v=0)}}return o}function Ck(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=kf(p),m=0,v=0,b=0;m<n;++m)for(var y=0,_=ia(e,u+1,u=Y2(v=a[m])),A=e;y<f;++y)(A=fC(v>0?p[y]+" "+_:oe(_,/&\f/g,p[y])))&&(c[b++]=A);return Dc(e,t,r,i===0?Af:s,c,l,d)}function cH(e,t,r){return Dc(e,t,r,If,Oc(tH()),ia(e,2,-2),0)}function xk(e,t,r,n){return Dc(e,t,r,Ef,ia(e,0,n),ia(e,n+1,-1),n)}function Ii(e,t){for(var r="",n=kf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function lH(e,t,r,n){switch(e.type){case z2:case Ef:return e.return=e.return||e.value;case If:return"";case pC:return e.return=e.value+"{"+Ii(e.children,n)+"}";case Af:e.value=e.props.join(",")}return ir(r=Ii(e.children,n))?e.return=e.value+"{"+r+"}":""}function uH(e){var t=kf(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function dH(e){return function(t){t.root||(t=t.return)&&e(t)}}function yC(e,t){switch(X2(e,t)){case 5103:return Z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Z+e+Cc+e+ot+e+e;case 6828:case 4268:return Z+e+ot+e+e;case 6165:return Z+e+ot+"flex-"+e+e;case 5187:return Z+e+oe(e,/(\w+).+(:[^]+)/,Z+"box-$1$2"+ot+"flex-$1$2")+e;case 5443:return Z+e+ot+"flex-item-"+oe(e,/flex-|-self/,"")+e;case 4675:return Z+e+ot+"flex-line-pack"+oe(e,/align-content|flex-|-self/,"")+e;case 5548:return Z+e+ot+oe(e,"shrink","negative")+e;case 5292:return Z+e+ot+oe(e,"basis","preferred-size")+e;case 6060:return Z+"box-"+oe(e,"-grow","")+Z+e+ot+oe(e,"grow","positive")+e;case 4554:return Z+oe(e,/([^-])(transform)/g,"$1"+Z+"$2")+e;case 6187:return oe(oe(oe(e,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),e,"")+e;case 5495:case 3959:return oe(e,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return oe(oe(e,/(.+:)(flex-)?(.*)/,Z+"box-pack:$3"+ot+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+e+e;case 4095:case 3583:case 4068:case 2532:return oe(e,/(.+)-inline(.+)/,Z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ir(e)-1-t>6)switch(Qe(e,t+1)){case 109:if(Qe(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+Cc+(Qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~lf(e,"stretch")?yC(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Qe(e,t+1)!==115)break;case 6444:switch(Qe(e,ir(e)-3-(~lf(e,"!important")&&10))){case 107:return oe(e,":",":"+Z)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(Qe(e,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+ot+"$2box$3")+e}break;case 5936:switch(Qe(e,t+11)){case 114:return Z+e+ot+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+ot+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+ot+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+ot+e+e}return e}function _C(){if(Rk)return mc.exports;Rk=1;let e=_C();return mc.exports={default:e},mc.exports.default=e,mc.exports}function aa(e,t,r){var n,i="";return(0,je.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function EH(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function CH(e){var t=(0,rC.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function sa(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return or={name:i.name,styles:i.styles,next:or},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)or={name:a.name,styles:a.styles,next:or},a=a.next;var s=o.styles+";";return s}return PH(e,t,r)}case"function":{if(e!==void 0){var c=or,l=r(e);return or=c,sa(e,t,l)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function PH(e,t,r){var n="";if((0,ta.default)(r))for(var i=0;i<r.length;i++)n+=sa(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":Ok(s)&&(n+=Xp(o)+":"+Nk(o,s)+";")}else if((0,ta.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)Ok(a[c])&&(n+=Xp(o)+":"+Nk(o,a[c])+";");else{var l=sa(e,t,a);switch(o){case"animation":case"animationName":{n+=Xp(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function ln(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";or=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=sa(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=sa(r,t,e[s]),n){var c=o;i+=c[s]}Dk.lastIndex=0;for(var l="",d;(d=Dk.exec(i))!==null;)l+="-"+d[1];var u=EH(i)+l;return{name:u,styles:i,next:or}}function M(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ln(t)}function jH(e,t,r){var n=[],i=aa(e,n,r);return n.length<2?r:i+t(n)}function w(e,t,r,n,i,o){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var l={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--HH,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return U.vnode&&U.vnode(l),l}function da(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=cr(e());return Dn(()=>{let n=()=>{r(e())};return window.addEventListener("resize",n),"onorientationchange"in window&&window.addEventListener("orientationchange",n),n(),()=>{window.removeEventListener("resize",n),"onorientationchange"in window&&window.removeEventListener("orientationchange",n)}},[]),t}function c3(e){if(!e||e==="none")return"";let t=e.match(/^matrix\(([^)]+)\)$/);if(!t)return"";let r=t[1].split(",").map(Number);if(r.length<6)return"";let[n,i]=r,o=-Math.atan2(i,n)*(180/Math.PI),a=Math.round(o);return a===90?"rotateZ(90deg) translateY(-100vw)":a===-90||a===270?"rotateZ(-90deg) translateX(-100vh)":a===180||a===-180?"rotateZ(180deg) translate(-100vw, -100vh)":`rotateZ(${a}deg)`}function RC(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=c3(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function l3(e){let t=()=>RC(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function p3(s){var c=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=c,a=tt(c,["elementTag","src","children","handleExposure","className","imgStyle"]);let l=d3(()=>{t&&n()});return e==="Image"?w("div",{className:i,style:{borderRadius:"8px"},children:nt("img",J(P({},a),{ref:l,src:t!=null?t:"",style:P({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):w("div",J(P({},a),{ref:l,className:i,children:r}))}function f3(e,t){if(!e)return null;let r=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:0;return Array.isArray(e)?e.map((i,o)=>i&&typeof i=="object"&&"type"in i?nt(i.type,J(P({},i.props),{style:J(P({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?nt(e.type,J(P({},e.props),{style:J(P({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function y3(e,t){let r=t.split("."),n=e;for(let i of r){if(typeof n!="object"||n===null||!Object.prototype.hasOwnProperty.call(n,i))return;n=n[i]}return n}function $k(e,t,r){return qc.call(t,"css")?w(Pf,EC(e,t),r):w(e,t,r)}function A3(e,t,r){return qc.call(t,"css")?w(Pf,EC(e,t),r):w(e,t,r)}function hf({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return w("div",{style:r,children:n.map((i,o)=>{let a=i.match(/^{{\s*(\w+)\s*}}$/);if(a){let s=a[1];return t[s]!==void 0?w(ze,{children:t[s]},o):null}return w(ze,{children:i},o)})})}function C3({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=cr(!1);return a?null:w("div",{style:P({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:w("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function P3({children:e,style:t}){return w("div",{style:`${x3.styles} ${t}`,children:[e,w("svg",{style:`${T3.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[w("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),w("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function V3(e,t){return Xe(e,0)^45?(((t<<2^Xe(e,0))<<2^Xe(e,1))<<2^Xe(e,2))<<2^Xe(e,3):0}function VC(e){return(0,wf.default)(e).call(e)}function $3(e,t){return(e=t.exec(e))?e[0]:e}function te(e,t,r){return e.replace(t,r)}function gf(e,t){return(0,Pr.default)(e).call(e,t)}function Xe(e,t){return e.charCodeAt(t)|0}function ca(e,t,r){return(0,Sf.default)(e).call(e,t,r)}function ar(e){return e.length}function Lf(e){return e.length}function gc(e,t){return t.push(e),e}function K3(e,t){return(0,ra.default)(e).call(e,t).join("")}function Jc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:jc,column:Ci,length:a,return:""}}function Xo(e,t){return H3(Jc("",null,null,"",null,null,0),e,{length:-e.length},t)}function W3(){return Ue}function z3(){return Ue=yt>0?Xe(Pi,--yt):0,Ci--,Ue===10&&(Ci=1,jc--),Ue}function Pt(){return Ue=yt<$C?Xe(Pi,yt++):0,Ci++,Ue===10&&(Ci=1,jc++),Ue}function ur(){return Xe(Pi,yt)}function Sc(){return yt}function pa(e,t){return ca(Pi,e,t)}function la(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function KC(e){return jc=Ci=1,$C=ar(Pi=e),yt=0,[]}function WC(e){return Pi="",e}function Ic(e){return VC(pa(yt-1,vf(e===91?e+2:e===40?e+1:e)))}function Y3(e){for(;(Ue=ur())&&Ue<33;)Pt();return la(e)>2||la(Ue)>3?"":" "}function Q3(e,t){for(;--t&&Pt()&&!(Ue<48||Ue>102||Ue>57&&Ue<65||Ue>70&&Ue<97););return pa(e,Sc()+(t<6&&ur()==32&&Pt()==32))}function vf(e){for(;Pt();)switch(Ue){case e:return yt;case 34:case 39:e!==34&&e!==39&&vf(Ue);break;case 40:e===41&&vf(e);break;case 92:Pt();break}return yt}function X3(e,t){for(;Pt()&&e+Ue!==57&&!(e+Ue===84&&ur()===47););return"/*"+pa(t,yt-1)+"*"+Bc(e===47?e:Pt())}function Z3(e){for(;!la(ur());)Pt();return pa(e,yt)}function eV(e){return WC(Ac("",null,null,null,[""],e=KC(e),0,[0],e))}function Ac(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,v=1,b=1,y=1,_=0,A="",k=i,x=o,C=n,E=A;b;)switch(m=_,_=Pt()){case 40:if(m!=108&&Xe(E,u-1)==58){gf(E+=te(Ic(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:E+=Ic(_);break;case 9:case 10:case 13:case 32:E+=Y3(m);break;case 92:E+=Q3(Sc()-1,7);continue;case 47:switch(ur()){case 42:case 47:gc(tV(X3(Pt(),Sc()),t,r),c);break;default:E+="/"}break;case 123*v:s[l++]=ar(E)*y;case 125*v:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:y==-1&&(E=te(E,/\f/g,"")),f>0&&ar(E)-u&&gc(f>32?Wk(E+";",n,r,u-1):Wk(te(E," ","")+";",n,r,u-2),c);break;case 59:E+=";";default:if(gc(C=Kk(E,t,r,l,d,i,s,A,k=[],x=[],u),o),_===123)if(d===0)Ac(E,t,C,C,k,o,u,s,x);else switch(p===99&&Xe(E,3)===110?100:p){case 100:case 108:case 109:case 115:Ac(e,C,C,n&&gc(Kk(e,C,C,0,0,i,s,A,i,k=[],u),x),i,x,u,s,n?k:x);break;default:Ac(E,C,C,C,[""],x,0,s,x)}}l=d=f=0,v=y=1,A=E="",u=a;break;case 58:u=1+ar(E),f=m;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&z3()==125)continue}switch(E+=Bc(_),_*v){case 38:y=d>0?1:(E+="\f",-1);break;case 44:s[l++]=(ar(E)-1)*y,y=1;break;case 64:ur()===45&&(E+=Ic(Pt())),p=ur(),d=u=ar(A=E+=Z3(Sc())),_++;break;case 45:m===45&&ar(E)==2&&(v=0)}}return o}function Kk(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Lf(p),m=0,v=0,b=0;m<n;++m)for(var y=0,_=ca(e,u+1,u=G3(v=a[m])),A=e;y<f;++y)(A=VC(v>0?p[y]+" "+_:te(_,/&\f/g,p[y])))&&(c[b++]=A);return Jc(e,t,r,i===0?Nf:s,c,l,d)}function tV(e,t,r){return Jc(e,t,r,GC,Bc(W3()),ca(e,2,-2),0)}function Wk(e,t,r,n){return Jc(e,t,r,Df,ca(e,0,n),ca(e,n+1,-1),n)}function Ai(e,t){for(var r="",n=Lf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function rV(e,t,r,n){switch(e.type){case J3:if(e.children.length)break;case j3:case Df:return e.return=e.return||e.value;case GC:return"";case HC:return e.return=e.value+"{"+Ai(e.children,n)+"}";case Nf:e.value=e.props.join(",")}return ar(r=Ai(e.children,n))?e.return=e.value+"{"+r+"}":""}function nV(e){var t=Lf(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function iV(e){return function(t){t.root||(t=t.return)&&e(t)}}function zC(e,t){switch(V3(e,t)){case 5103:return ee+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+Tc+e+at+e+e;case 6828:case 4268:return ee+e+at+e+e;case 6165:return ee+e+at+"flex-"+e+e;case 5187:return ee+e+te(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+at+"flex-$1$2")+e;case 5443:return ee+e+at+"flex-item-"+te(e,/flex-|-self/,"")+e;case 4675:return ee+e+at+"flex-line-pack"+te(e,/align-content|flex-|-self/,"")+e;case 5548:return ee+e+at+te(e,"shrink","negative")+e;case 5292:return ee+e+at+te(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+te(e,"-grow","")+ee+e+at+te(e,"grow","positive")+e;case 4554:return ee+te(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return te(te(te(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return te(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return te(te(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+at+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4095:case 3583:case 4068:case 2532:return te(e,/(.+)-inline(.+)/,ee+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ar(e)-1-t>6)switch(Xe(e,t+1)){case 109:if(Xe(e,t+4)!==45)break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+Tc+(Xe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~gf(e,"stretch")?zC(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Xe(e,t+1)!==115)break;case 6444:switch(Xe(e,ar(e)-3-(~gf(e,"!important")&&10))){case 107:return te(e,":",":"+ee)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(Xe(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+at+"$2box$3")+e}break;case 5936:switch(Xe(e,t+11)){case 114:return ee+e+at+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+at+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+at+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+at+e+e}return e}function Yk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function nf(e,t,r){var n=[],i=aa(e,n,r);return n.length<2?r:i+t(n)}function Zk(e){if(e==="top"){let t=0;YC.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${Qk}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${Qk}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+Xk)})}else if(e==="center"){let t=0;QC.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+Xk)})}}function Ln(){let e=!1,t=null,r=0,n=new Set,i=a=>g(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:c}=yield ea.acquire(),l=c.contentDocument;if(l)t=l.createElement("div"),t.id="loading-root",l.body.appendChild(t),zr(w(wV,{}),t);else throw new Error("Iframe document is not available.")}catch(c){console.error("[LoadingManager] Failed to show loading:",c),r=0,e=!1,ea.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let c=setTimeout(()=>{o(),n.delete(c)},a.duration);n.add(c)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&(zr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),ea.release()))};return{show:i,hide:o,get isLoading(){return e}}}var yf,tC,je,Pc,Ec,sr,kc,ta,bf,Pr,ra,rC,nC,_f,wf,Sf,wee,of,Ei,we,Qp,bk,na,iC,Le,_k,wk,Sk,Ik,Ak,Ek,kk,sC,Oe,rr,nr,xr,Si,cn,yc,V2,Je,$2,dC,ot,Cc,Z,If,Af,Ef,z2,pC,Y2,Oc,Q2,Nc,ki,mC,vt,qe,xi,pH,fH,mH,Tk,hH,gH,vH,yH,bH,vC,_H,Pk,wH,SH,IH,bC,mc,Rk,AH,Cf,Lc,kH,xH,TH,wC,Ok,Xp,Nk,Dk,or,RH,SC,IC,Lk,qc,xf,AC,Tf,Uc,OH,NH,DH,LH,qH,df,pf,EC,UH,Pf,MH,qk,FH,BH,JH,GH,Zp,Uk,ef,tf,HH,rf,VH,$H,KH,WH,zH,YH,QH,Mk,XH,ZH,e5,Fk,t5,r5,n5,Bk,i5,o5,a5,jk,s5,c5,l5,u5,d5,p5,f5,m5,h5,g5,v5,Jk,y5,b5,_5,w5,S5,I5,A5,E5,k5,C5,x5,Gk,T5,P5,R5,O5,N5,D5,L5,q5,U5,M5,F5,B5,j5,J5,G5,H5,V5,$5,K5,W5,z5,Y5,Q5,X5,Z5,e3,t3,r3,n3,i3,o3,a3,kC,CC,xC,ff,s3,TC,PC,xc,ea,Hk,u3,Mc,d3,OC,NC,DC,m3,h3,g3,mf,v3,LC,qC,Fc,Rf,Ti,Vk,sn,UC,Nn,b3,_3,w3,S3,I3,hc,MC,Of,Ce,E3,k3,x3,T3,$t,R3,O3,FC,BC,jC,JC,un,N3,D3,L3,q3,U3,M3,F3,B3,at,Tc,ee,GC,Nf,Df,j3,HC,J3,G3,Bc,H3,jc,Ci,$C,yt,Ue,Pi,oV,aV,sV,zk,cV,lV,uV,dV,pV,fV,mV,hV,gV,vV,yV,bV,Qk,Xk,YC,QC,Or,eC,_V,wV,See,dr=T(()=>{"use strict";ii();yf=ue($b(),1),tC=ue(r_(),1),je=ue(h_(),1),Pc=ue(P_(),1),Ec=ue(F_(),1),sr=ue(nw(),1);Us();Us();kc=ue(Bw(),1),ta=ue(Kw(),1),bf=ue(lA(),1),Pr=ue(bA(),1),ra=ue(xA(),1),rC=ue(LA(),1),nC=ue(X0(),1),_f=ue(pE(),1),wf=ue(TE(),1),Sf=ue(BE(),1);Kp();Kp();wee=ue(nk(),1),of=ue(yk(),1),na=0,iC=[],Le=U,_k=Le.__b,wk=Le.__r,Sk=Le.diffed,Ik=Le.__c,Ak=Le.unmount,Ek=Le.__;Le.__b=function(e){we=null,_k&&_k(e)},Le.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ek&&Ek(e,t)},Le.__r=function(e){var t,r,n;wk&&wk(e),Ei=0;var i=(we=e.__c).__H;i&&(Qp===we?(i.__h=[],we.__h=[],(0,je.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,je.default)(r=i.__h).call(r,vc),(0,je.default)(n=i.__h).call(n,af),i.__h=[],Ei=0)),Qp=we},Le.diffed=function(e){var t;Sk&&Sk(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(iC.push(r)!==1&&bk===Le.requestAnimationFrame||((bk=Le.requestAnimationFrame)||j2)(B2)),(0,je.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Qp=we=null},Le.__c=function(e,t){(0,Ec.default)(t).call(t,function(r){try{var n,i;(0,je.default)(n=r.__h).call(n,vc),r.__h=(0,yf.default)(i=r.__h).call(i,function(o){return!o.__||af(o)})}catch(o){(0,Ec.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Le.__e(o,r.__v)}}),Ik&&Ik(e,t)},Le.unmount=function(e){var t;Ak&&Ak(e);var r,n=e.__c;n&&n.__H&&((0,je.default)(t=n.__H.__).call(t,function(i){try{vc(i)}catch(o){r=o}}),n.__H=void 0,r&&Le.__e(r,n.__v))};kk=typeof requestAnimationFrame=="function";sC={exports:{}},Oe=sC.exports={};(function(){try{typeof sr.default=="function"?rr=sr.default:rr=sf}catch(e){rr=sf}try{typeof clearTimeout=="function"?nr=clearTimeout:nr=cf}catch(e){nr=cf}})();xr=[],Si=!1,yc=-1;Oe.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];xr.push(new uC(e,t)),xr.length===1&&!Si&&cC(lC)};uC.prototype.run=function(){this.fun.apply(null,this.array)};Oe.title="browser";Oe.browser=!0;Oe.env={};Oe.argv=[];Oe.version="";Oe.versions={};Oe.on=Rr;Oe.addListener=Rr;Oe.once=Rr;Oe.off=Rr;Oe.removeListener=Rr;Oe.removeAllListeners=Rr;Oe.emit=Rr;Oe.prependListener=Rr;Oe.prependOnceListener=Rr;Oe.listeners=function(e){return[]};Oe.binding=function(e){throw new Error("process.binding is not supported")};Oe.cwd=function(){return"/"};Oe.chdir=function(e){throw new Error("process.chdir is not supported")};Oe.umask=function(){return 0};V2=sC.exports,Je=J2(V2),$2=kc.default||void 0||self;dC=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){(0,je.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(W2(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=K2(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,je.default)(r=this.tags).call(r,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),ot="-ms-",Cc="-moz-",Z="-webkit-",If="comm",Af="rule",Ef="decl",z2="@import",pC="@keyframes",Y2=Math.abs,Oc=String.fromCharCode,Q2=_f.default;Nc=1,ki=1,mC=0,vt=0,qe=0,xi="";pH=function(e,t,r){for(var n=0,i=0;n=i,i=lr(),n===38&&i===12&&(t[r]=1),!oa(i);)Tt();return ua(e,vt)},fH=function(e,t){var r=-1,n=44;do switch(oa(n)){case 0:n===38&&lr()===12&&(t[r]=1),e[r]+=pH(vt-1,t,r);break;case 2:e[r]+=_c(n);break;case 4:if(n===44){e[++r]=lr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Oc(n)}while(n=Tt());return e},mH=function(e,t){return gC(fH(hC(e),t))},Tk=new bf.default,hH=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Tk.get(r))&&!n){Tk.set(e,!0);for(var i=[],o=mH(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},gH=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},vH="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",yH=function(e){var t;return e.type==="comm"&&(0,Pr.default)(t=e.children).call(t,vH)>-1},bH=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=t.parent===n[0],a=o?n[0].children:n,s=a.length-1;s>=0;s--){var c=a[s];if(c.line<t.line)break;if(c.column<t.column){if(yH(c))return;break}}(0,je.default)(i).call(i,function(l){console.error('The pseudo class "'+l+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+l.split("-child")[0]+'-of-type".')})}}}},vC=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},_H=function(e,t){for(var r=e-1;r>=0;r--)if(!vC(t[r]))return!0;return!1},Pk=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},wH=function(e,t,r){vC(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Pk(e)):_H(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Pk(e)))};SH=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Ef:e.return=yC(e.value,e.length);break;case pC:return Ii([Qo(e,{value:oe(e.value,"@","@"+Z)})],n);case Af:if(e.length)return eH(e.props,function(i){switch(Z2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ii([Qo(e,{props:[oe(i,/:(read-\w+)/,":"+Cc+"$1")]})],n);case"::placeholder":return Ii([Qo(e,{props:[oe(i,/:(plac\w+)/,":"+Z+"input-$1")]}),Qo(e,{props:[oe(i,/:(plac\w+)/,":"+Cc+"$1")]}),Qo(e,{props:[oe(i,/:(plac\w+)/,ot+"input-$1")]})],n)}return""})}},IH=[SH],bC=function(e){var t=e.key;if(Je.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
23
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,je.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,Pr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||IH;if(Je.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i={},o,a=[];o=e.container||document.head,(0,je.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(m)});var s,c=[hH,gH];Je.env.NODE_ENV!=="production"&&c.push(bH({get compat(){return f.compat}}),wH);{var l,d=[lH,Je.env.NODE_ENV!=="production"?function(m){m.root||(m.return?l.insert(m.return):m.value&&m.type!==If&&l.insert(m.value+"{}"))}:dH(function(m){l.insert(m)})],u=uH((0,Pc.default)(c).call(c,n,d)),p=function(m){return Ii(sH(m),u)};s=function(m,v,b,y){l=b,Je.env.NODE_ENV!=="production"&&(0,ra.default)(v)!==void 0&&(l={insert:function(_){b.insert(_+(0,ra.default)(v))}}),p(m?m+"{"+v.styles+"}":v.styles),y&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new dC({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f},mc={exports:{}};_C();AH=!0;Cf=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||AH===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Lc=function(e,t,r){Cf(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};kH={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};xH=/[A-Z]|^ms/g,TH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wC=function(e){return e.charCodeAt(1)===45},Ok=function(e){return e!=null&&typeof e!="boolean"},Xp=CH(function(e){return wC(e)?e:e.replace(xH,"-$&").toLowerCase()}),Nk=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(TH,function(r,n,i){return or={name:n,styles:i,next:or},n})}return kH[e]!==1&&!wC(e)&&typeof t=="number"&&t!==0?t+"px":t};Dk=/label:\s*([^\s;{]+)\s*(;|$)/g;RH=function(e){return e()},SC=Hd?Hd:!1,IC=SC||RH,Lk=SC||mi,qc={}.hasOwnProperty,xf=An(typeof HTMLElement<"u"?bC({key:"css"}):null);Je.env.NODE_ENV!=="production"&&(xf.displayName="EmotionCacheContext");AC=xf.Provider,Tf=function(e){return $d(function(t,r){var n=gi(xf);return e(t,n,r)})},Uc=An({});Je.env.NODE_ENV!=="production"&&(Uc.displayName="EmotionThemeContext");OH=function(e){var t=e.split(".");return t[t.length-1]},NH=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);if(t||(t=/^([A-Za-z0-9$.]+)@/.exec(e),t))return OH(t[1])},DH=new nC.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),LH=function(e){return e.replace(/\$/g,"-")},qH=function(e){if(e)for(var t=e.split(`
24
+ `),r=0;r<t.length;r++){var n=NH(t[r]);if(n){if(DH.has(n))break;if(/^[A-Z]/.test(n))return LH(n)}}},df="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",pf="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",EC=function(e,t){var r,n;if(Je.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,Pr.default)(r=t.css).call(r,":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var i={};for(var o in t)qc.call(t,o)&&(i[o]=t[o]);if(i[df]=e,Je.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,Pr.default)(n=t.css.name).call(n,"-")===-1)){var a=qH(new Error().stack);a&&(i[pf]=a)}return i},UH=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Cf(t,r,n),IC(function(){return Lc(t,r,n)}),null},Pf=Tf(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[df],a=[i],s="";typeof e.className=="string"?s=aa(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var c=ln(a,void 0,gi(Uc));if(Je.env.NODE_ENV!=="production"&&(0,Pr.default)(n=c.name).call(n,"-")===-1){var l=e[pf];l&&(c=ln([c,"label:"+l+";"]))}s+=t.key+"-"+c.name;var d={};for(var u in e)qc.call(e,u)&&u!=="css"&&u!==df&&(Je.env.NODE_ENV==="production"||u!==pf)&&(d[u]=e[u]);return d.ref=r,d.className=s,nt(ze,null,nt(UH,{cache:t,serialized:c,isStringTag:typeof o=="string"}),nt(o,d))});Je.env.NODE_ENV!=="production"&&(Pf.displayName="EmotionCssPropInternal");MH={version:"11.10.5"},qk=!1,FH=Tf(function(e,t){Je.env.NODE_ENV!=="production"&&!qk&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),qk=!0);var r=e.styles,n=ln([r],void 0,gi(Uc)),i=hi();return Lk(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(s=!0,c.setAttribute("data-emotion",o),a.hydrate([c])),i.current=[a,s],function(){a.flush()}},[t]),Lk(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Lc(t,n.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});Je.env.NODE_ENV!=="production"&&(FH.displayName="EmotionGlobal");BH=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var o=t[n];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if((0,ta.default)(o))a=e(o);else{Je.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="";for(var s in o)o[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};JH=function(e){var t=e.cache,r=e.serializedArr;return IC(function(){for(var n=0;n<r.length;n++)Lc(t,r[n],!1)}),null},GH=Tf(function(e,t){var r=!1,n=[],i=function(){if(r&&Je.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];var u=ln(l,t.registered);return n.push(u),Cf(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Je.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var c=arguments.length,l=new Array(c),d=0;d<c;d++)l[d]=arguments[d];return jH(t.registered,i,BH(l))},a={css:i,cx:o,theme:gi(Uc)},s=e.children(a);return r=!0,nt(ze,null,nt(JH,{cache:t,serializedArr:n}),s)});Je.env.NODE_ENV!=="production"&&(GH.displayName="EmotionClassNames");Je.env.NODE_ENV!=="production"&&(Zp=!0,Uk=typeof jest<"u"||typeof vi<"u",Zp&&!Uk&&(ef=typeof kc.default<"u"?kc.default:Zp?window:$2,tf="__EMOTION_REACT_"+MH.version.split(".")[0]+"__",ef[tf]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),ef[tf]=!0));HH=0;rf={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"transparent",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"rgb(26, 26, 26)",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.1)",display:"block",margin:"0 auto"},centerDrawer:{backgroundColor:"transparent",minWidth:"320px",maxWidth:"90vw",maxHeight:"90vh",width:"auto",position:"relative",display:"block",margin:"0 auto",overflowY:"auto"}},VH=M`
25
25
  width: 100%;
26
26
  overflow: auto;
27
27
  margin: 0 auto;
@@ -69,7 +69,7 @@ If multiple caches share the same key they might "fight" for each other's style
69
69
  .fadeIn {
70
70
  animation: fadeIn 0.3s ease forwards;
71
71
  }
72
- `,KH=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,c]=cr(!1),[l,d]=cr(null),[u,p]=cr(!1),f=Xo(null),h=Xo(null),v=Xo(!1);Dn(()=>{if(s&&f.current){let O=f.current.ownerDocument,B=O.createElement("style");B.innerHTML=$H,O.head.appendChild(B);let X={overflow:O.body.style.overflow,position:O.body.style.position,width:O.body.style.width};return O.body.style.overflow="hidden",O.body.style.position="fixed",O.body.style.width="100%",()=>{O.head.contains(B)&&O.head.removeChild(B),O.body.style.overflow=X.overflow,O.body.style.position=X.position,O.body.style.width=X.width}}},[s]),Dn(()=>{t?!s&&!v.current&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(v.current=!0,d("leave"),p(!1))},[t]);let b=Mt(O=>{O.target===h.current&&(l==="leave"?(d(null),c(!1),v.current=!1,n&&n()):l==="enter"&&(d(null),p(!0)))},[l,n]),y=Mt(()=>{s&&!v.current&&(v.current=!0,d("leave"),p(!1))},[s]),_=Mt(O=>{r||(O.preventDefault(),O.stopPropagation(),y())},[y]),A=Mt(()=>{!v.current&&!s&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),C=Mt(()=>s&&!v.current,[s]);if(Dn(()=>{if(a){let O={show:A,hide:y,isOpen:C};typeof a=="function"?a(O):a&&(a.current=O)}},[A,y,C,a]),!s)return null;let x=o==="center",k=J(P({},tf.drawerBackdrop),{alignItems:x?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),E={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:l==="enter"||u?1:0,transition:"opacity 0.3s"},H=x?J(P({},tf.centerDrawer),{pointerEvents:"auto"}):J(P({},tf.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!l&&!x&&(H.transform="translateY(100%)");let ae=l?x?l==="leave"?"fadeOut":l==="enter"?"fadeIn":"":`drawer-${l}`:"",N=l?`backdrop-${l}`:"";return w("div",{ref:f,style:k,children:[w("div",{style:E,className:N,onClick:_}),w("div",{ref:h,style:J(P({},H),{opacity:x&&l===null&&!u?0:1}),className:`${x&&l==="leave"?"fadeOut":ae} ${i}`,onAnimationEnd:b,onClick:O=>O.stopPropagation(),children:w("div",{style:VH.styles,children:e})})]})},WH=Vd(KH);zH={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with Jolicoin for a better experience",unlockWithJolicoinDescription:"Unlock with Jolicoin automatically",useJolicoin:"Use Jolicoin",payAndUnlock:"Pay and unlock",noWatchAds:"No, watch ads",noThanks:"No thanks",balance:"Balance",coinUsed:"Jolicoin used",unlockSuccess:"Unlock successful",unlockFailed:"Unlock failed",unlockFailedNotLogin:"Please log in to continue",unlockFailedPaying:"Payment is already in progress. Please do not retry",unlockFailedProductIdNotFound:"Product has expired. Please choose another product",unlockFailedProductInvalid:"Failed to retrieve product info. Please retry or choose another product",unlockFailedLaunch:"Unable to start payment. Please try again later",unlockFailedTransaction:"Payment failed. Please try again",unlockFaileVerify:"Order verification failed. If you\u2019ve been charged, please contact support",transactionPending:"Payment confirmation failed. Please contact your payment provider for support"},YH={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},QH={instead:"Instead of watching ads",introduct:"Use {{coin}}Jolicoin to unlock for better experience",tips:"Get {{coin}} for free",login:"Register & Unlock with Jolicoin",noWatchAds:"No, watch ads",noThanks:"No thanks",rewardTips:"Congrats! You have received {{coin}} Jolicoin! Start unlocking now!"},UC={jolicoin:zH,joligem:YH,loginGuide:QH},XH={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 Jolicoin \u89E3\u9501",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u4F59\u989D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9501\u6210\u529F",unlockFailed:"\u89E3\u9501\u5931\u8D25",unlockFailedNotLogin:"\u8BF7\u767B\u5F55\u540E\u5B8C\u6210\u89E3\u9501",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u8FDB\u884C\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u83B7\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u6216\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u65E0\u6CD5\u542F\u52A8\u652F\u4ED8\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",unlockFailedTransaction:"\u652F\u4ED8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",unlockFaileVerify:"\u8BA2\u5355\u9A8C\u8BC1\u5931\u8D25\uFF0C\u5982\u5DF2\u6263\u8D39\u8BF7\u8054\u7CFB\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u786E\u8BA4\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u652F\u4ED8\u670D\u52A1\u5546\u83B7\u53D6\u652F\u6301"},ZH={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 GEM \u89E3\u9501",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u4F59\u989D"},e5={instead:"\u89C2\u770B\u5E7F\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9501\u4EE5\u83B7\u5F97\u66F4\u597D\u7684\u4F53\u9A8C",tips:"\u514D\u8D39\u83B7\u53D6 {{coin}}",login:"\u6CE8\u518C\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u83B7\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u5F00\u59CB\u89E3\u9501\u5427\uFF01"},MC={jolicoin:XH,joligem:ZH,loginGuide:e5},t5={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Saldo",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berhasil dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Silakan masuk untuk menyelesaikan pembukaan",unlockFailedPaying:"Pembayaran sedang diproses. Mohon jangan ulangi operasi",unlockFailedProductIdNotFound:"Produk telah kedaluwarsa. Silakan pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan informasi produk. Silakan coba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulai pembayaran. Silakan coba lagi nanti",unlockFailedTransaction:"Pembayaran gagal. Silakan coba lagi",unlockFaileVerify:"Verifikasi pesanan gagal. Jika Anda telah dikenakan biaya, silakan hubungi dukungan",transactionPending:"Konfirmasi pembayaran gagal. Silakan hubungi penyedia pembayaran Anda untuk dukungan"},r5={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},n5={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},FC={jolicoin:t5,joligem:r5,loginGuide:n5},i5={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Potongan automatik Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Baki",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berjaya dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Sila log masuk untuk meneruskan",unlockFailedPaying:"Pembayaran sedang diproses. Sila jangan cuba lagi",unlockFailedProductIdNotFound:"Produk telah tamat tempoh. Sila pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan maklumat produk. Sila cuba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulakan pembayaran. Sila cuba lagi kemudian",unlockFailedTransaction:"Pembayaran gagal. Sila cuba lagi",unlockFaileVerify:"Pengesahan pesanan gagal. Jika anda telah dikenakan caj, sila hubungi sokongan",transactionPending:"Pengesahan pembayaran gagal. Sila hubungi pembekal pembayaran anda untuk sokongan"},o5={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},a5={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},BC={jolicoin:i5,joligem:o5,loginGuide:a5},s5={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 Jolicoin",useJolicoin:"\u0E43\u0E0A\u0E49 Jolicoin",payAndUnlock:"\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",balance:"\u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D",coinUsed:"Jolicoin \u0E17\u0E35\u0E48\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27",unlockSuccess:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailed:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailedNotLogin:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",unlockFailedPaying:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E2D\u0E22\u0E39\u0E48 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E2D\u0E22\u0E48\u0E32\u0E17\u0E33\u0E0B\u0E49\u0E33\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23",unlockFailedProductIdNotFound:"\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2B\u0E21\u0E14\u0E2D\u0E32\u0E22\u0E38\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedProductInvalid:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E14\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedLaunch:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E23\u0E34\u0E48\u0E21\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07",unlockFailedTransaction:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unlockFaileVerify:"\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E0B\u0E37\u0E49\u0E2D\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E2B\u0E32\u0E01\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E40\u0E23\u0E35\u0E22\u0E01\u0E40\u0E01\u0E47\u0E1A\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1D\u0E48\u0E32\u0E22\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19",transactionPending:"\u0E01\u0E32\u0E23\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E43\u0E2B\u0E49\u0E1A\u0E23\u0E34\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D"},c5={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 GEM",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 GEM",useJolicoin:"\u0E43\u0E0A\u0E49 GEM",balance:"GEM \u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D"},l5={instead:"\u0E41\u0E17\u0E19\u0E17\u0E35\u0E48\u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",introduct:"\u0E43\u0E0A\u0E49 {{coin}} Jolicoin \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E1B\u0E23\u0E30\u0E2A\u0E1A\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E17\u0E35\u0E48\u0E14\u0E35\u0E02\u0E36\u0E49\u0E19",tips:"\u0E23\u0E31\u0E1A {{coin}} \u0E1F\u0E23\u0E35",login:"\u0E25\u0E07\u0E17\u0E30\u0E40\u0E1A\u0E35\u0E22\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",rewardTips:"\u0E22\u0E34\u0E19\u0E14\u0E35\u0E14\u0E49\u0E27\u0E22! \u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A {{coin}} Jolicoin. \u0E40\u0E23\u0E34\u0E48\u0E21\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49!"},u5={jolicoin:s5,joligem:c5,loginGuide:l5},d5={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng Jolicoin",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng Jolicoin",useJolicoin:"S\u1EED d\u1EE5ng Jolicoin",payAndUnlock:"Thanh to\xE1n v\xE0 m\u1EDF kh\xF3a",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",balance:"S\u1ED1 d\u01B0",coinUsed:"Jolicoin \u0111\xE3 s\u1EED d\u1EE5ng",unlockSuccess:"M\u1EDF kh\xF3a th\xE0nh c\xF4ng",unlockFailed:"M\u1EDF kh\xF3a th\u1EA5t b\u1EA1i",unlockFailedNotLogin:"Vui l\xF2ng \u0111\u0103ng nh\u1EADp \u0111\u1EC3 ho\xE0n th\xE0nh vi\u1EC7c m\u1EDF kh\xF3a",unlockFailedPaying:"Thanh to\xE1n \u0111ang \u0111\u01B0\u1EE3c x\u1EED l\xFD. Vui l\xF2ng kh\xF4ng l\u1EB7p l\u1EA1i thao t\xE1c",unlockFailedProductIdNotFound:"S\u1EA3n ph\u1EA9m \u0111\xE3 h\u1EBFt h\u1EA1n. Vui l\xF2ng ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedProductInvalid:"Kh\xF4ng th\u1EC3 l\u1EA5y th\xF4ng tin s\u1EA3n ph\u1EA9m. Vui l\xF2ng th\u1EED l\u1EA1i ho\u1EB7c ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedLaunch:"Kh\xF4ng th\u1EC3 b\u1EAFt \u0111\u1EA7u thanh to\xE1n. Vui l\xF2ng th\u1EED l\u1EA1i sau",unlockFailedTransaction:"Thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng th\u1EED l\u1EA1i",unlockFaileVerify:"X\xE1c minh \u0111\u01A1n h\xE0ng th\u1EA5t b\u1EA1i. N\u1EBFu b\u1EA1n \u0111\xE3 b\u1ECB t\xEDnh ph\xED, vui l\xF2ng li\xEAn h\u1EC7 h\u1ED7 tr\u1EE3",transactionPending:"X\xE1c nh\u1EADn thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng li\xEAn h\u1EC7 nh\xE0 cung c\u1EA5p thanh to\xE1n c\u1EE7a b\u1EA1n \u0111\u1EC3 \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3"},p5={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng GEM",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng GEM",useJolicoin:"S\u1EED d\u1EE5ng GEM",balance:"GEM S\u1ED1 d\u01B0"},f5={instead:"Thay th\u1EBF b\u1EB1ng xem qu\u1EA3ng c\xE1o",introduct:"S\u1EED d\u1EE5ng {{coin}} Jolicoin \u0111\u1EC3 m\u1EDF kh\xF3a cho tr\u1EA3i nghi\u1EC7m t\u1ED1t h\u01A1n",tips:"Nh\u1EADn {{coin}} mi\u1EC5n ph\xED",login:"\u0110\u0103ng k\xFD v\xE0 m\u1EDF kh\xF3a v\u1EDBi Jolicoin",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",rewardTips:"Ch\xFAc m\u1EEBng! B\u1EA1n \u0111\xE3 nh\u1EADn \u0111\u01B0\u1EE3c {{coin}} Jolicoin. M\u1EDF kh\xF3a ngay!"},h5={jolicoin:d5,joligem:p5,loginGuide:f5},m5={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang Jolicoin",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang Jolicoin",useJolicoin:"Gamitin ang Jolicoin",payAndUnlock:"Magbayad at i-unlock",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",balance:"Balanse",coinUsed:"Ginamit na Jolicoin",unlockSuccess:"Matagumpay na na-unlock",unlockFailed:"Hindi matagumpay ang pag-unlock",unlockFailedNotLogin:"Mangyaring mag-login para makumpleto ang pag-unlock",unlockFailedPaying:"Ang pagbabayad ay nasa proseso na. Huwag ulitin ang operasyon",unlockFailedProductIdNotFound:"Ang produkto ay nag-expire na. Mangyaring pumili ng ibang produkto",unlockFailedProductInvalid:"Hindi makuha ang impormasyon ng produkto. Subukang muli o pumili ng ibang produkto",unlockFailedLaunch:"Hindi maumpisahan ang pagbabayad. Subukang muli sa ibang pagkakataon",unlockFailedTransaction:"Hindi matagumpay ang pagbabayad. Subukang muli",unlockFaileVerify:"Hindi matagumpay ang pag-verify ng order. Kung na-charge ka na, mangyaring makipag-ugnayan sa suporta",transactionPending:"Hindi matagumpay ang kumpirmasyon ng pagbabayad. Mangyaring makipag-ugnayan sa iyong payment provider para sa suporta"},g5={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang GEM",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang GEM",useJolicoin:"Gamitin ang GEM",balance:"GEM Balanse"},v5={instead:"Kung hindi mo na gusto ang mga ad",introduct:"Gamitin ang {{coin}} Jolicoin para i-unlock para sa mas mahusay na karanasan",tips:"Kunin ang {{coin}} para sa libreng",login:"Mag-register at i-unlock gamit ang Jolicoin",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",rewardTips:"Maligayang pagdating! Nakatanggap ka ng {{coin}} Jolicoin. Simulan ang pag-unlock!"},jC={jolicoin:m5,joligem:g5,loginGuide:v5},y5={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con Jolicoin",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con Jolicoin",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar y desbloquear",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueo exitoso",unlockFailed:"Error al desbloquear",unlockFailedNotLogin:"Inicia sesi\xF3n para completar el desbloqueo",unlockFailedPaying:"El pago ya est\xE1 en proceso. Por favor, no repita la operaci\xF3n",unlockFailedProductIdNotFound:"El producto ha expirado. Por favor, elija otro producto",unlockFailedProductInvalid:"Error al obtener informaci\xF3n del producto. Int\xE9ntelo de nuevo o elija otro producto",unlockFailedLaunch:"No se puede iniciar el pago. Int\xE9ntelo de nuevo m\xE1s tarde",unlockFailedTransaction:"Error en el pago. Int\xE9ntelo de nuevo",unlockFaileVerify:"Error en la verificaci\xF3n del pedido. Si se le ha cobrado, contacte con soporte",transactionPending:"Error en la confirmaci\xF3n del pago. Contacte con su proveedor de pago para obtener ayuda"},b5={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},_5={instead:"En lugar de ver anuncios",introduct:"Usa {{coin}} Jolicoin para desbloquear para una mejor experiencia",tips:"Obt\xE9n {{coin}} gratis",login:"Reg\xEDstrate y desbloquea con Jolicoin",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",rewardTips:"\xA1Felicidades! Has recibido {{coin}} Jolicoin. \xA1Empieza a desbloquear!"},w5={jolicoin:y5,joligem:b5,loginGuide:_5},S5={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"Jolicoin\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"Jolicoin\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"Jolicoin\u3092\u4F7F\u7528",payAndUnlock:"\u652F\u6255\u3044\u3068\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",balance:"\u6B8B\u9AD8",coinUsed:"\u4F7F\u7528\u6E08\u307FJolicoin",unlockSuccess:"\u30A2\u30F3\u30ED\u30C3\u30AF\u6210\u529F",unlockFailed:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5931\u6557",unlockFailedNotLogin:"\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u5B8C\u4E86\u3059\u308B\u306B\u306F\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedPaying:"\u652F\u6255\u3044\u51E6\u7406\u4E2D\u3067\u3059\u3002\u64CD\u4F5C\u3092\u7E70\u308A\u8FD4\u3055\u306A\u3044\u3067\u304F\u3060\u3055\u3044",unlockFailedProductIdNotFound:"\u5546\u54C1\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u3066\u3044\u307E\u3059\u3002\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedProductInvalid:"\u5546\u54C1\u60C5\u5831\u306E\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3059\u308B\u304B\u3001\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedLaunch:"\u652F\u6255\u3044\u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044",unlockFailedTransaction:"\u652F\u6255\u3044\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044",unlockFaileVerify:"\u6CE8\u6587\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u6599\u91D1\u304C\u8ACB\u6C42\u3055\u308C\u305F\u5834\u5408\u306F\u3001\u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044",transactionPending:"\u652F\u6255\u3044\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u652F\u6255\u3044\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044"},I5={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"GEM\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"GEM\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"GEM\u3092\u4F7F\u7528",balance:"GEM\u6B8B\u9AD8"},A5={instead:"\u5E83\u544A\u3092\u898B\u308B\u4EE3\u308F\u308A\u306B",introduct:"{{coin}} Jolicoin\u3092\u4F7F\u7528\u3057\u3066\u3001\u3088\u308A\u826F\u3044\u4F53\u9A13\u306E\u305F\u3081\u306B\u30A2\u30F3\u30ED\u30C3\u30AF\u3057\u307E\u3059",tips:"{{coin}}\u3092\u7121\u6599\u3067\u53D6\u5F97",login:"Jolicoin\u3067\u767B\u9332\u3057\u3066\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",rewardTips:"\u304A\u3081\u3067\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01{{coin}} Jolicoin\u3092\u53D7\u3051\u53D6\u308A\u307E\u3057\u305F\uFF01\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u958B\u59CB\u3057\u307E\u3059\uFF01"},E5={jolicoin:S5,joligem:I5,loginGuide:A5},C5={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com Jolicoin",unlockWithJolicoinDescription:"Deduz Jolicoin automaticamente para itens digitais",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar e desbloquear",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueio bem-sucedido",unlockFailed:"Falha no desbloqueio",unlockFailedNotLogin:"Fa\xE7a login para completar o desbloqueio",unlockFailedPaying:"O pagamento j\xE1 est\xE1 em andamento. Por favor, n\xE3o repita a opera\xE7\xE3o",unlockFailedProductIdNotFound:"O produto expirou. Por favor, escolha outro produto",unlockFailedProductInvalid:"Falha ao recuperar informa\xE7\xF5es do produto. Tente novamente ou escolha outro produto",unlockFailedLaunch:"N\xE3o foi poss\xEDvel iniciar o pagamento. Tente novamente mais tarde",unlockFailedTransaction:"Falha no pagamento. Tente novamente",unlockFaileVerify:"Falha na verifica\xE7\xE3o do pedido. Se voc\xEA foi cobrado, entre em contato com o suporte",transactionPending:"Falha na confirma\xE7\xE3o do pagamento. Entre em contato com seu provedor de pagamento para suporte"},k5={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},x5={instead:"Em vez de assistir an\xFAncios",introduct:"Use {{coin}} Jolicoin para desbloquear para uma melhor experi\xEAncia",tips:"Obtenha {{coin}} gratuitamente",login:"Registre-se e desbloqueie com Jolicoin",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",rewardTips:"Parab\xE9ns! Voc\xEA recebeu {{coin}} Jolicoin. Comece a desbloquear agora!"},JC={jolicoin:C5,joligem:k5,loginGuide:x5},T5={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"Jolicoin\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"Jolicoin\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"Jolicoin \uC0AC\uC6A9",payAndUnlock:"\uACB0\uC81C \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uAD1C\uCC2E\uC2B5\uB2C8\uB2E4",balance:"\uC794\uC561",coinUsed:"\uC0AC\uC6A9\uB41C Jolicoin",unlockSuccess:"\uC7A0\uAE08 \uD574\uC81C \uC131\uACF5",unlockFailed:"\uC7A0\uAE08 \uD574\uC81C \uC2E4\uD328",unlockFailedNotLogin:"\uC7A0\uAE08 \uD574\uC81C\uB97C \uC644\uB8CC\uD558\uB824\uBA74 \uB85C\uADF8\uC778\uD558\uC138\uC694",unlockFailedPaying:"\uACB0\uC81C\uAC00 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uC791\uC5C5\uC744 \uBC18\uBCF5\uD558\uC9C0 \uB9C8\uC138\uC694",unlockFailedProductIdNotFound:"\uC0C1\uD488\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedProductInvalid:"\uC0C1\uD488 \uC815\uBCF4\uB97C \uAC00\uC838\uC624\uB294\uB370 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uAC70\uB098 \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedLaunch:"\uACB0\uC81C\uB97C \uC2DC\uC791\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFailedTransaction:"\uACB0\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFaileVerify:"\uC8FC\uBB38 \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uC694\uAE08\uC774 \uCCAD\uAD6C\uB41C \uACBD\uC6B0 \uACE0\uAC1D \uC9C0\uC6D0\uD300\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694",transactionPending:"\uACB0\uC81C \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uACB0\uC81C \uC11C\uBE44\uC2A4 \uC81C\uACF5\uC5C5\uCCB4\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694"},P5={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"GEM\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"GEM\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"GEM \uC0AC\uC6A9",balance:"GEM \uC794\uC561"},R5={instead:"\uAD11\uACE0 \uC2DC\uCCAD \uB300\uC2E0",introduct:"{{coin}} Jolicoin\uC744 \uC0AC\uC6A9\uD558\uC5EC \uB354 \uB098\uC740 \uACBD\uD5D8\uC744 \uC704\uD574 \uC7A0\uAE08 \uD574\uC81C",tips:"{{coin}}\uC744 \uBB34\uB8CC\uB85C \uBC1B\uC73C\uC138\uC694",login:"Jolicoin\uC73C\uB85C \uB4F1\uB85D \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uC544\uB2C8\uC694, \uAC10\uC0AC\uD569\uB2C8\uB2E4",rewardTips:"\uCD95\uD558\uD569\uB2C8\uB2E4! {{coin}} Jolicoin\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4! \uC7A0\uAE08 \uD574\uC81C\uB97C \uC2DC\uC791\uD558\uC138\uC694!"},O5={jolicoin:T5,joligem:P5,loginGuide:R5},N5={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 Jolicoin \u89E3\u9396",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u9918\u984D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9396\u6210\u529F",unlockFailed:"\u89E3\u9396\u5931\u6557",unlockFailedNotLogin:"\u8ACB\u767B\u5165\u5F8C\u5B8C\u6210\u89E3\u9396",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u9032\u884C\u4E2D\uFF0C\u8ACB\u52FF\u91CD\u8907\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u904E\u671F\uFF0C\u8ACB\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u7372\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66\u6216\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u7121\u6CD5\u555F\u52D5\u652F\u4ED8\uFF0C\u8ACB\u7A0D\u5F8C\u91CD\u8A66",unlockFailedTransaction:"\u652F\u4ED8\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66",unlockFaileVerify:"\u8A02\u55AE\u9A57\u8B49\u5931\u6557\uFF0C\u5982\u5DF2\u6263\u8CBB\u8ACB\u806F\u7E6B\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u78BA\u8A8D\u5931\u6557\uFF0C\u8ACB\u806F\u7E6B\u652F\u4ED8\u670D\u52D9\u5546\u7372\u53D6\u652F\u6301"},D5={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 GEM \u89E3\u9396",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u9918\u984D"},L5={instead:"\u89C0\u770B\u5EE3\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9396\u4EE5\u7372\u5F97\u66F4\u597D\u7684\u9AD4\u9A57",tips:"\u514D\u8CBB\u7372\u53D6 {{coin}}",login:"\u8A3B\u518A\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u7372\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u958B\u59CB\u89E3\u9396\u5427\uFF01"},q5={jolicoin:N5,joligem:D5,loginGuide:L5},U5={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit Jolicoin entsperren",unlockWithJolicoinDescription:"Automatisch mit Jolicoin entsperren",useJolicoin:"Jolicoin verwenden",payAndUnlock:"Bezahlen und entsperren",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",balance:"Guthaben",coinUsed:"Verwendete Jolicoin",unlockSuccess:"Erfolgreich entsperrt",unlockFailed:"Entsperren fehlgeschlagen",unlockFailedNotLogin:"Bitte melden Sie sich an, um die Entsperrung abzuschlie\xDFen",unlockFailedPaying:"Zahlung l\xE4uft bereits. Bitte nicht wiederholen",unlockFailedProductIdNotFound:"Produkt ist abgelaufen. Bitte w\xE4hlen Sie ein anderes Produkt",unlockFailedProductInvalid:"Produktinformationen konnten nicht abgerufen werden. Bitte versuchen Sie es erneut oder w\xE4hlen Sie ein anderes Produkt",unlockFailedLaunch:"Zahlung konnte nicht gestartet werden. Bitte versuchen Sie es sp\xE4ter erneut",unlockFailedTransaction:"Zahlung fehlgeschlagen. Bitte versuchen Sie es erneut",unlockFaileVerify:"Bestellbest\xE4tigung fehlgeschlagen. Falls Ihnen bereits etwas berechnet wurde, kontaktieren Sie bitte den Support",transactionPending:"Zahlungsbest\xE4tigung fehlgeschlagen. Bitte kontaktieren Sie Ihren Zahlungsanbieter f\xFCr Unterst\xFCtzung"},M5={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},F5={instead:"Anstatt Werbung anzusehen",introduct:"Verwenden Sie {{coin}} Jolicoin f\xFCr eine bessere Erfahrung",tips:"Holen Sie sich {{coin}} kostenlos",login:"Registrieren und entsperren mit Jolicoin",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",rewardTips:"Gl\xFCckwunsch! Sie haben {{coin}} Jolicoin erhalten! Beginnen Sie mit der Entsperrung!"},B5={jolicoin:U5,joligem:M5,loginGuide:F5},j5={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec Jolicoin",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec Jolicoin",useJolicoin:"Utiliser Jolicoin",payAndUnlock:"Payer et d\xE9verrouiller",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",balance:"Solde",coinUsed:"Jolicoin utilis\xE9",unlockSuccess:"D\xE9verrouillage r\xE9ussi",unlockFailed:"\xC9chec du d\xE9verrouillage",unlockFailedNotLogin:"Connectez-vous pour terminer le d\xE9verrouillage",unlockFailedPaying:"Le paiement est d\xE9j\xE0 en cours. Veuillez ne pas r\xE9p\xE9ter l'op\xE9ration",unlockFailedProductIdNotFound:"Le produit a expir\xE9. Veuillez choisir un autre produit",unlockFailedProductInvalid:"\xC9chec de la r\xE9cup\xE9ration des informations du produit. Veuillez r\xE9essayer ou choisir un autre produit",unlockFailedLaunch:"Impossible de lancer le paiement. Veuillez r\xE9essayer plus tard",unlockFailedTransaction:"\xC9chec du paiement. Veuillez r\xE9essayer",unlockFaileVerify:"\xC9chec de la v\xE9rification de la commande. Si vous avez \xE9t\xE9 factur\xE9, veuillez contacter le support",transactionPending:"\xC9chec de la confirmation du paiement. Veuillez contacter votre fournisseur de paiement pour obtenir de l'aide"},J5={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},G5={instead:"Au lieu de regarder des publicit\xE9s",introduct:"Utilisez {{coin}} Jolicoin pour d\xE9bloquer pour une meilleure exp\xE9rience",tips:"Obtenez {{coin}} gratuitement",login:"S'inscrire et d\xE9bloquer avec Jolicoin",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",rewardTips:"F\xE9licitations ! Vous avez re\xE7u {{coin}} Jolicoin. Commencez \xE0 d\xE9verrouiller !"},H5={jolicoin:j5,joligem:J5,loginGuide:G5},V5={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",payAndUnlock:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",balance:"\u0936\u0947\u0937 \u0930\u093E\u0936\u093F",coinUsed:"\u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u0917\u092F\u093E Jolicoin",unlockSuccess:"\u0905\u0928\u0932\u0949\u0915 \u0938\u092B\u0932",unlockFailed:"\u0905\u0928\u0932\u0949\u0915 \u0935\u093F\u092B\u0932",unlockFailedNotLogin:"\u0905\u0928\u0932\u0949\u0915 \u092A\u0942\u0930\u093E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0932\u0949\u0917\u093F\u0928 \u0915\u0930\u0947\u0902",unlockFailedPaying:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u092A\u094D\u0930\u0917\u0924\u093F \u092A\u0930 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0911\u092A\u0930\u0947\u0936\u0928 \u0926\u094B\u0939\u0930\u093E\u090F\u0902 \u0928\u0939\u0940\u0902",unlockFailedProductIdNotFound:"\u0909\u0924\u094D\u092A\u093E\u0926 \u0915\u0940 \u0938\u092E\u092F \u0938\u0940\u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B \u0917\u0908 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedProductInvalid:"\u0909\u0924\u094D\u092A\u093E\u0926 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedLaunch:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0936\u0941\u0930\u0942 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\u0964 \u0915\u0943\u092A\u092F\u093E \u092C\u093E\u0926 \u092E\u0947\u0902 \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFailedTransaction:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFaileVerify:"\u0911\u0930\u094D\u0921\u0930 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0935\u093F\u092B\u0932\u0964 \u092F\u0926\u093F \u0906\u092A\u0938\u0947 \u0936\u0941\u0932\u094D\u0915 \u0932\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948, \u0924\u094B \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902",transactionPending:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0941\u0937\u094D\u091F\u093F\u0915\u0930\u0923 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0915\u0947 \u0932\u093F\u090F \u0905\u092A\u0928\u0947 \u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u094D\u0930\u0926\u093E\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902"},$5={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"GEM \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",balance:"GEM \u0936\u0947\u0937 \u0930\u093E\u0936\u093F"},K5={instead:"\u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u092C\u091C\u093E\u092F",introduct:"{{coin}} Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u092C\u0947\u0939\u0924\u0930 \u0905\u0928\u0941\u092D\u0935 \u0915\u0947 \u0932\u093F\u090F \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",tips:"{{coin}} \u092E\u0941\u092B\u094D\u0924 \u092E\u0947\u0902 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",login:"Jolicoin \u0915\u0947 \u0938\u093E\u0925 \u0930\u091C\u093F\u0938\u094D\u091F\u0930 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",rewardTips:"\u0905\u092D\u093F\u0928\u0902\u0926\u0928! \u0906\u092A\u0915\u094B {{coin}} Jolicoin \u092E\u093F\u0932\u093E \u0939\u0948! \u0905\u0928\u0932\u0949\u0915 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902!"},W5={jolicoin:V5,joligem:$5,loginGuide:K5},z5={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",unlockWithJolicoinDescription:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C Jolicoin",payAndUnlock:"\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",balance:"\u0411\u0430\u043B\u0430\u043D\u0441",coinUsed:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E Jolicoin",unlockSuccess:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u0430",unlockFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438",unlockFailedNotLogin:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u043E\u0439\u0434\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443",unlockFailedPaying:"\u041E\u043F\u043B\u0430\u0442\u0430 \u0443\u0436\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u0439\u0442\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E",unlockFailedProductIdNotFound:"\u0421\u0440\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0442\u043E\u0432\u0430\u0440\u0430 \u0438\u0441\u0442\u0435\u043A. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedProductInvalid:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0442\u043E\u0432\u0430\u0440\u0435. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u0438\u043B\u0438 \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedLaunch:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0447\u0430\u0442\u044C \u043E\u043F\u043B\u0430\u0442\u0443. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435",unlockFailedTransaction:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443",unlockFaileVerify:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u0437\u0430\u043A\u0430\u0437\u0430. \u0415\u0441\u043B\u0438 \u0441 \u0432\u0430\u0441 \u0431\u044B\u043B\u0430 \u0441\u043F\u0438\u0441\u0430\u043D\u0430 \u043F\u043B\u0430\u0442\u0430, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u0441\u043B\u0443\u0436\u0431\u0443 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",transactionPending:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u043A \u0432\u0430\u0448\u0435\u043C\u0443 \u043F\u043B\u0430\u0442\u0435\u0436\u043D\u043E\u043C\u0443 \u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0443 \u0437\u0430 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439"},Y5={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",unlockWithJolicoinDescription:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C GEM",balance:"GEM \u0411\u0430\u043B\u0430\u043D\u0441"},Q5={instead:"\u0412\u043C\u0435\u0441\u0442\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u0440\u0435\u043A\u043B\u0430\u043C\u044B",introduct:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 {{coin}} Jolicoin \u0434\u043B\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438 \u0434\u043B\u044F \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u043E\u043F\u044B\u0442\u0430",tips:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 {{coin}} \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E",login:"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",rewardTips:"\u041F\u043E\u0437\u0434\u0440\u0430\u0432\u043B\u044F\u0435\u043C! \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 {{coin}} Jolicoin. \u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443!"},X5={jolicoin:z5,joligem:Y5,loginGuide:Q5},Z5={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",payAndUnlock:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09C1\u09A8",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",balance:"\u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8",coinUsed:"\u09AC\u09CD\u09AF\u09AC\u09B9\u09C3\u09A4 Jolicoin",unlockSuccess:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AB\u09B2",unlockFailed:"\u0986\u09A8\u09B2\u0995 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5",unlockFailedNotLogin:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AE\u09CD\u09AA\u09C2\u09B0\u09CD\u09A3 \u0995\u09B0\u09A4\u09C7 \u09B2\u0997\u0987\u09A8 \u0995\u09B0\u09C1\u09A8",unlockFailedPaying:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u0987\u09A4\u09BF\u09AE\u09A7\u09CD\u09AF\u09C7 \u099A\u09B2\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09C1\u09A8\u09B0\u09BE\u09AC\u09C3\u09A4\u09CD\u09A4\u09BF \u0995\u09B0\u09AC\u09C7\u09A8 \u09A8\u09BE",unlockFailedProductIdNotFound:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09AE\u09C7\u09AF\u09BC\u09BE\u09A6 \u09B6\u09C7\u09B7 \u09B9\u09AF\u09BC\u09C7 \u0997\u09C7\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedProductInvalid:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF \u09AA\u09C1\u09A8\u09B0\u09C1\u09A6\u09CD\u09A7\u09BE\u09B0 \u0995\u09B0\u09A4\u09C7 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8 \u09AC\u09BE \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedLaunch:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09A4\u09C7 \u0985\u0995\u09CD\u09B7\u09AE\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFailedTransaction:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFaileVerify:"\u0985\u09B0\u09CD\u09A1\u09BE\u09B0 \u09AF\u09BE\u099A\u09BE\u0987 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u09AF\u09A6\u09BF \u0986\u09AA\u09A8\u09BE\u0995\u09C7 \u099A\u09BE\u09B0\u09CD\u099C \u0995\u09B0\u09BE \u09B9\u09AF\u09BC\u09C7 \u09A5\u09BE\u0995\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",transactionPending:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09A8\u09BF\u09B6\u09CD\u099A\u09BF\u09A4\u0995\u09B0\u09A3 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF \u0986\u09AA\u09A8\u09BE\u09B0 \u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AA\u09CD\u09B0\u09A6\u09BE\u09A8\u0995\u09BE\u09B0\u09C0\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8"},e3={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"GEM \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",balance:"GEM \u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8"},t3={instead:"\u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",introduct:"\u0986\u09AA\u09A8\u09BE\u09B0 \u09AD\u09BE\u09B2 \u0985\u09AD\u09BF\u099C\u09CD\u099E\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF {{coin}}Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",tips:"\u09AB\u09CD\u09B0\u09BF {{coin}} \u09AA\u09C7\u09A4\u09C7",login:"Jolicoin \u09B8\u09BE\u09A5\u09C7 \u09B0\u09C7\u099C\u09BF\u09B8\u09CD\u099F\u09BE\u09B0 \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",rewardTips:"\u0985\u09AD\u09BF\u09A8\u09A8\u09CD\u09A6\u09A8! \u0986\u09AA\u09A8\u09BF {{coin}} Jolicoin \u09AA\u09C7\u09AF\u09BC\u09C7\u099B\u09C7\u09A8! \u0986\u09A8\u09B2\u0995 \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09C1\u09A8!"},r3={jolicoin:Z5,joligem:e3,loginGuide:t3},n3={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"Jolicoin ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"Jolicoin ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"Jolicoin kullan",payAndUnlock:"\xD6de ve kilidi a\xE7",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",balance:"Bakiye",coinUsed:"Kullan\u0131lan Jolicoin",unlockSuccess:"Kilidi a\xE7ma ba\u015Far\u0131l\u0131",unlockFailed:"Kilidi a\xE7ma ba\u015Far\u0131s\u0131z",unlockFailedNotLogin:"Kilidi a\xE7may\u0131 tamamlamak i\xE7in l\xFCtfen giri\u015F yap\u0131n",unlockFailedPaying:"\xD6deme zaten devam ediyor. L\xFCtfen i\u015Flemi tekrarlamay\u0131n",unlockFailedProductIdNotFound:"\xDCr\xFCn\xFCn s\xFCresi dolmu\u015F. L\xFCtfen ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedProductInvalid:"\xDCr\xFCn bilgileri al\u0131namad\u0131. L\xFCtfen tekrar deneyin veya ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedLaunch:"\xD6deme ba\u015Flat\u0131lamad\u0131. L\xFCtfen daha sonra tekrar deneyin",unlockFailedTransaction:"\xD6deme ba\u015Far\u0131s\u0131z. L\xFCtfen tekrar deneyin",unlockFaileVerify:"Sipari\u015F do\u011Frulamas\u0131 ba\u015Far\u0131s\u0131z. \xDCcretlendirildiyseniz, l\xFCtfen destek ile ileti\u015Fime ge\xE7in",transactionPending:"\xD6deme onay\u0131 ba\u015Far\u0131s\u0131z. L\xFCtfen destek i\xE7in \xF6deme sa\u011Flay\u0131c\u0131n\u0131zla ileti\u015Fime ge\xE7in"},i3={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"GEM ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"GEM ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"GEM kullan",balance:"GEM Bakiye"},o3={instead:"Reklam izleme yerine",introduct:"{{coin}} Jolicoin kullanarak daha iyi deneyim i\xE7in kilidi a\xE7\u0131n",tips:"{{coin}} almak i\xE7in \xFCcretsiz",login:"Jolicoin ile kay\u0131t ve kilidi a\xE7\u0131n",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",rewardTips:"Tebrikler! {{coin}} Jolicoin ald\u0131n\u0131z. Kilidi a\xE7maya ba\u015Flay\u0131n!"},a3={jolicoin:n3,joligem:i3,loginGuide:o3},Ek={en:{translations:UC},en_GB:{translations:UC},zh:{translations:MC},"zh-Hans":{translations:MC},"zh-Hant":{translations:q5},id:{translations:FC},in:{translations:FC},ms:{translations:BC},my:{translations:BC},th:{translations:u5},vi:{translations:h5},fil:{translations:jC},tl:{translations:jC},es:{translations:w5},ja:{translations:E5},pt:{translations:JC},pt_PT:{translations:JC},ko:{translations:O5},de:{translations:B5},fr:{translations:H5},hi:{translations:W5},ru:{translations:X5},bn:{translations:r3},tr:{translations:a3}},Ck=An(void 0),kk=({definition:e,children:t})=>{let r={translations:e};return w(Ck.Provider,{value:r,children:t})},pf=null,s3={zh:"zh","zh-CN":"zh","zh-TW":"zh-Hant","zh-Hans":"zh",zh_Hans:"zh","zh-Hant":"zh-Hant",zh_Hant:"zh-Hant",id:"id",in:"id",ms:"ms",my:"ms",th:"th",vi:"vi",fil:"tl",tl:"tl",es:"es",ja:"ja",pt:"pt",pt_PT:"pt","pt-PT":"pt",ko:"ko",de:"de",fr:"fr",hi:"hi",ru:"ru",ar:"ar",tr:"tr"},xk=e=>{pf=e},Tk=()=>{var e;if(typeof pf!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=pf();return(e=s3[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};kc=class{constructor(t,r){this.zIndex=t,this.pointerEvents=r,this.persistentIframe=null,this.iframeEmotionCache=null,this.iframeLoadPromise=null,this.iframeLoadResolver=null,this.removeGlobalTransformSync=null,this.referenceCount=0}create(){typeof window>"u"||this.persistentIframe&&document.body.contains(this.persistentIframe)||(this.persistentIframe=document.createElement("iframe"),this.persistentIframe.style.position="fixed",this.persistentIframe.style.left="0",this.persistentIframe.style.top="0",this.persistentIframe.style.width="100vw",this.persistentIframe.style.height="100vh",this.persistentIframe.style.zIndex=String(this.zIndex),this.persistentIframe.style.pointerEvents=this.pointerEvents,this.persistentIframe.style.border="none",this.persistentIframe.style.background="transparent",this.persistentIframe.setAttribute("allowtransparency","true"),this.persistentIframe.style.display="none",document.body.appendChild(this.persistentIframe),this.iframeLoadPromise=new Promise(t=>{this.iframeLoadResolver=t}),this.persistentIframe.onload=()=>{var r,n,i;if(!((n=(r=this.persistentIframe)==null?void 0:r.contentDocument)!=null&&n.head)){console.error("[SingletonIframe] Iframe loaded, but document or head is not available.");return}console.log("[SingletonIframe] Iframe content loaded."),this.iframeEmotionCache=yk({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=l3(this.persistentIframe);let t=this.persistentIframe.contentDocument;t&&["--status-bar-height","--navigation-bar-height"].forEach(o=>{let a=document.documentElement.style.getPropertyValue(o);a&&t.body.style.setProperty(o,a)}),(i=this.iframeLoadResolver)==null||i.call(this),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}acquire(){return g(this,null,function*(){if(this.create(),yield this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(Pk(this.persistentIframe),this.persistentIframe.style.display="block"),{iframe:this.persistentIframe,emotionCache:this.iframeEmotionCache}})}release(){this.referenceCount--,this.referenceCount<=0&&(this.referenceCount=0,this.persistentIframe&&(this.persistentIframe.style.display="none"))}},Zo=new kc(99999998,"auto"),GC=new kc(99999999,"none"),u3=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=ua(),c={container:M`
72
+ `,KH=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,c]=cr(!1),[l,d]=cr(null),[u,p]=cr(!1),f=Zo(null),m=Zo(null),v=Zo(!1);Dn(()=>{if(s&&f.current){let O=f.current.ownerDocument,B=O.createElement("style");B.innerHTML=$H,O.head.appendChild(B);let X={overflow:O.body.style.overflow,position:O.body.style.position,width:O.body.style.width};return O.body.style.overflow="hidden",O.body.style.position="fixed",O.body.style.width="100%",()=>{O.head.contains(B)&&O.head.removeChild(B),O.body.style.overflow=X.overflow,O.body.style.position=X.position,O.body.style.width=X.width}}},[s]),Dn(()=>{t?!s&&!v.current&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(v.current=!0,d("leave"),p(!1))},[t]);let b=Mt(O=>{O.target===m.current&&(l==="leave"?(d(null),c(!1),v.current=!1,n&&n()):l==="enter"&&(d(null),p(!0)))},[l,n]),y=Mt(()=>{s&&!v.current&&(v.current=!0,d("leave"),p(!1))},[s]),_=Mt(O=>{r||(O.preventDefault(),O.stopPropagation(),y())},[y]),A=Mt(()=>{!v.current&&!s&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),k=Mt(()=>s&&!v.current,[s]);if(Dn(()=>{if(a){let O={show:A,hide:y,isOpen:k};typeof a=="function"?a(O):a&&(a.current=O)}},[A,y,k,a]),!s)return null;let x=o==="center",C=J(P({},rf.drawerBackdrop),{alignItems:x?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),E={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:l==="enter"||u?1:0,transition:"opacity 0.3s"},H=x?J(P({},rf.centerDrawer),{pointerEvents:"auto"}):J(P({},rf.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!l&&!x&&(H.transform="translateY(100%)");let ae=l?x?l==="leave"?"fadeOut":l==="enter"?"fadeIn":"":`drawer-${l}`:"",N=l?`backdrop-${l}`:"";return w("div",{ref:f,style:C,children:[w("div",{style:E,className:N,onClick:_}),w("div",{ref:m,style:J(P({},H),{opacity:x&&l===null&&!u?0:1}),className:`${x&&l==="leave"?"fadeOut":ae} ${i}`,onAnimationEnd:b,onClick:O=>O.stopPropagation(),children:w("div",{style:VH.styles,children:e})})]})},WH=$d(KH);zH={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with Jolicoin for a better experience",unlockWithJolicoinDescription:"Unlock with Jolicoin automatically",useJolicoin:"Use Jolicoin",payAndUnlock:"Pay and unlock",noWatchAds:"No, watch ads",noThanks:"No thanks",balance:"Balance",coinUsed:"Jolicoin used",unlockSuccess:"Unlock successful",unlockFailed:"Unlock failed",unlockFailedNotLogin:"Please log in to continue",unlockFailedPaying:"Payment is already in progress. Please do not retry",unlockFailedProductIdNotFound:"Product has expired. Please choose another product",unlockFailedProductInvalid:"Failed to retrieve product info. Please retry or choose another product",unlockFailedLaunch:"Unable to start payment. Please try again later",unlockFailedTransaction:"Payment failed. Please try again",unlockFaileVerify:"Order verification failed. If you\u2019ve been charged, please contact support",transactionPending:"Payment confirmation failed. Please contact your payment provider for support"},YH={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},QH={instead:"Instead of watching ads",introduct:"Use {{coin}}Jolicoin to unlock for better experience",tips:"Get {{coin}} for free",login:"Register & Unlock with Jolicoin",noWatchAds:"No, watch ads",noThanks:"No thanks",rewardTips:"Congrats! You have received {{coin}} Jolicoin! Start unlocking now!"},Mk={jolicoin:zH,joligem:YH,loginGuide:QH},XH={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 Jolicoin \u89E3\u9501",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u4F59\u989D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9501\u6210\u529F",unlockFailed:"\u89E3\u9501\u5931\u8D25",unlockFailedNotLogin:"\u8BF7\u767B\u5F55\u540E\u5B8C\u6210\u89E3\u9501",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u8FDB\u884C\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u83B7\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u6216\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u65E0\u6CD5\u542F\u52A8\u652F\u4ED8\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",unlockFailedTransaction:"\u652F\u4ED8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",unlockFaileVerify:"\u8BA2\u5355\u9A8C\u8BC1\u5931\u8D25\uFF0C\u5982\u5DF2\u6263\u8D39\u8BF7\u8054\u7CFB\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u786E\u8BA4\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u652F\u4ED8\u670D\u52A1\u5546\u83B7\u53D6\u652F\u6301"},ZH={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 GEM \u89E3\u9501",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u4F59\u989D"},e5={instead:"\u89C2\u770B\u5E7F\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9501\u4EE5\u83B7\u5F97\u66F4\u597D\u7684\u4F53\u9A8C",tips:"\u514D\u8D39\u83B7\u53D6 {{coin}}",login:"\u6CE8\u518C\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u83B7\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u5F00\u59CB\u89E3\u9501\u5427\uFF01"},Fk={jolicoin:XH,joligem:ZH,loginGuide:e5},t5={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Saldo",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berhasil dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Silakan masuk untuk menyelesaikan pembukaan",unlockFailedPaying:"Pembayaran sedang diproses. Mohon jangan ulangi operasi",unlockFailedProductIdNotFound:"Produk telah kedaluwarsa. Silakan pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan informasi produk. Silakan coba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulai pembayaran. Silakan coba lagi nanti",unlockFailedTransaction:"Pembayaran gagal. Silakan coba lagi",unlockFaileVerify:"Verifikasi pesanan gagal. Jika Anda telah dikenakan biaya, silakan hubungi dukungan",transactionPending:"Konfirmasi pembayaran gagal. Silakan hubungi penyedia pembayaran Anda untuk dukungan"},r5={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},n5={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},Bk={jolicoin:t5,joligem:r5,loginGuide:n5},i5={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Potongan automatik Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Baki",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berjaya dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Sila log masuk untuk meneruskan",unlockFailedPaying:"Pembayaran sedang diproses. Sila jangan cuba lagi",unlockFailedProductIdNotFound:"Produk telah tamat tempoh. Sila pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan maklumat produk. Sila cuba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulakan pembayaran. Sila cuba lagi kemudian",unlockFailedTransaction:"Pembayaran gagal. Sila cuba lagi",unlockFaileVerify:"Pengesahan pesanan gagal. Jika anda telah dikenakan caj, sila hubungi sokongan",transactionPending:"Pengesahan pembayaran gagal. Sila hubungi pembekal pembayaran anda untuk sokongan"},o5={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},a5={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},jk={jolicoin:i5,joligem:o5,loginGuide:a5},s5={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 Jolicoin",useJolicoin:"\u0E43\u0E0A\u0E49 Jolicoin",payAndUnlock:"\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",balance:"\u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D",coinUsed:"Jolicoin \u0E17\u0E35\u0E48\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27",unlockSuccess:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailed:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailedNotLogin:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",unlockFailedPaying:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E2D\u0E22\u0E39\u0E48 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E2D\u0E22\u0E48\u0E32\u0E17\u0E33\u0E0B\u0E49\u0E33\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23",unlockFailedProductIdNotFound:"\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2B\u0E21\u0E14\u0E2D\u0E32\u0E22\u0E38\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedProductInvalid:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E14\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedLaunch:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E23\u0E34\u0E48\u0E21\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07",unlockFailedTransaction:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unlockFaileVerify:"\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E0B\u0E37\u0E49\u0E2D\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E2B\u0E32\u0E01\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E40\u0E23\u0E35\u0E22\u0E01\u0E40\u0E01\u0E47\u0E1A\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1D\u0E48\u0E32\u0E22\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19",transactionPending:"\u0E01\u0E32\u0E23\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E43\u0E2B\u0E49\u0E1A\u0E23\u0E34\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D"},c5={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 GEM",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 GEM",useJolicoin:"\u0E43\u0E0A\u0E49 GEM",balance:"GEM \u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D"},l5={instead:"\u0E41\u0E17\u0E19\u0E17\u0E35\u0E48\u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",introduct:"\u0E43\u0E0A\u0E49 {{coin}} Jolicoin \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E1B\u0E23\u0E30\u0E2A\u0E1A\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E17\u0E35\u0E48\u0E14\u0E35\u0E02\u0E36\u0E49\u0E19",tips:"\u0E23\u0E31\u0E1A {{coin}} \u0E1F\u0E23\u0E35",login:"\u0E25\u0E07\u0E17\u0E30\u0E40\u0E1A\u0E35\u0E22\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",rewardTips:"\u0E22\u0E34\u0E19\u0E14\u0E35\u0E14\u0E49\u0E27\u0E22! \u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A {{coin}} Jolicoin. \u0E40\u0E23\u0E34\u0E48\u0E21\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49!"},u5={jolicoin:s5,joligem:c5,loginGuide:l5},d5={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng Jolicoin",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng Jolicoin",useJolicoin:"S\u1EED d\u1EE5ng Jolicoin",payAndUnlock:"Thanh to\xE1n v\xE0 m\u1EDF kh\xF3a",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",balance:"S\u1ED1 d\u01B0",coinUsed:"Jolicoin \u0111\xE3 s\u1EED d\u1EE5ng",unlockSuccess:"M\u1EDF kh\xF3a th\xE0nh c\xF4ng",unlockFailed:"M\u1EDF kh\xF3a th\u1EA5t b\u1EA1i",unlockFailedNotLogin:"Vui l\xF2ng \u0111\u0103ng nh\u1EADp \u0111\u1EC3 ho\xE0n th\xE0nh vi\u1EC7c m\u1EDF kh\xF3a",unlockFailedPaying:"Thanh to\xE1n \u0111ang \u0111\u01B0\u1EE3c x\u1EED l\xFD. Vui l\xF2ng kh\xF4ng l\u1EB7p l\u1EA1i thao t\xE1c",unlockFailedProductIdNotFound:"S\u1EA3n ph\u1EA9m \u0111\xE3 h\u1EBFt h\u1EA1n. Vui l\xF2ng ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedProductInvalid:"Kh\xF4ng th\u1EC3 l\u1EA5y th\xF4ng tin s\u1EA3n ph\u1EA9m. Vui l\xF2ng th\u1EED l\u1EA1i ho\u1EB7c ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedLaunch:"Kh\xF4ng th\u1EC3 b\u1EAFt \u0111\u1EA7u thanh to\xE1n. Vui l\xF2ng th\u1EED l\u1EA1i sau",unlockFailedTransaction:"Thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng th\u1EED l\u1EA1i",unlockFaileVerify:"X\xE1c minh \u0111\u01A1n h\xE0ng th\u1EA5t b\u1EA1i. N\u1EBFu b\u1EA1n \u0111\xE3 b\u1ECB t\xEDnh ph\xED, vui l\xF2ng li\xEAn h\u1EC7 h\u1ED7 tr\u1EE3",transactionPending:"X\xE1c nh\u1EADn thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng li\xEAn h\u1EC7 nh\xE0 cung c\u1EA5p thanh to\xE1n c\u1EE7a b\u1EA1n \u0111\u1EC3 \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3"},p5={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng GEM",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng GEM",useJolicoin:"S\u1EED d\u1EE5ng GEM",balance:"GEM S\u1ED1 d\u01B0"},f5={instead:"Thay th\u1EBF b\u1EB1ng xem qu\u1EA3ng c\xE1o",introduct:"S\u1EED d\u1EE5ng {{coin}} Jolicoin \u0111\u1EC3 m\u1EDF kh\xF3a cho tr\u1EA3i nghi\u1EC7m t\u1ED1t h\u01A1n",tips:"Nh\u1EADn {{coin}} mi\u1EC5n ph\xED",login:"\u0110\u0103ng k\xFD v\xE0 m\u1EDF kh\xF3a v\u1EDBi Jolicoin",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",rewardTips:"Ch\xFAc m\u1EEBng! B\u1EA1n \u0111\xE3 nh\u1EADn \u0111\u01B0\u1EE3c {{coin}} Jolicoin. M\u1EDF kh\xF3a ngay!"},m5={jolicoin:d5,joligem:p5,loginGuide:f5},h5={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang Jolicoin",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang Jolicoin",useJolicoin:"Gamitin ang Jolicoin",payAndUnlock:"Magbayad at i-unlock",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",balance:"Balanse",coinUsed:"Ginamit na Jolicoin",unlockSuccess:"Matagumpay na na-unlock",unlockFailed:"Hindi matagumpay ang pag-unlock",unlockFailedNotLogin:"Mangyaring mag-login para makumpleto ang pag-unlock",unlockFailedPaying:"Ang pagbabayad ay nasa proseso na. Huwag ulitin ang operasyon",unlockFailedProductIdNotFound:"Ang produkto ay nag-expire na. Mangyaring pumili ng ibang produkto",unlockFailedProductInvalid:"Hindi makuha ang impormasyon ng produkto. Subukang muli o pumili ng ibang produkto",unlockFailedLaunch:"Hindi maumpisahan ang pagbabayad. Subukang muli sa ibang pagkakataon",unlockFailedTransaction:"Hindi matagumpay ang pagbabayad. Subukang muli",unlockFaileVerify:"Hindi matagumpay ang pag-verify ng order. Kung na-charge ka na, mangyaring makipag-ugnayan sa suporta",transactionPending:"Hindi matagumpay ang kumpirmasyon ng pagbabayad. Mangyaring makipag-ugnayan sa iyong payment provider para sa suporta"},g5={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang GEM",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang GEM",useJolicoin:"Gamitin ang GEM",balance:"GEM Balanse"},v5={instead:"Kung hindi mo na gusto ang mga ad",introduct:"Gamitin ang {{coin}} Jolicoin para i-unlock para sa mas mahusay na karanasan",tips:"Kunin ang {{coin}} para sa libreng",login:"Mag-register at i-unlock gamit ang Jolicoin",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",rewardTips:"Maligayang pagdating! Nakatanggap ka ng {{coin}} Jolicoin. Simulan ang pag-unlock!"},Jk={jolicoin:h5,joligem:g5,loginGuide:v5},y5={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con Jolicoin",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con Jolicoin",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar y desbloquear",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueo exitoso",unlockFailed:"Error al desbloquear",unlockFailedNotLogin:"Inicia sesi\xF3n para completar el desbloqueo",unlockFailedPaying:"El pago ya est\xE1 en proceso. Por favor, no repita la operaci\xF3n",unlockFailedProductIdNotFound:"El producto ha expirado. Por favor, elija otro producto",unlockFailedProductInvalid:"Error al obtener informaci\xF3n del producto. Int\xE9ntelo de nuevo o elija otro producto",unlockFailedLaunch:"No se puede iniciar el pago. Int\xE9ntelo de nuevo m\xE1s tarde",unlockFailedTransaction:"Error en el pago. Int\xE9ntelo de nuevo",unlockFaileVerify:"Error en la verificaci\xF3n del pedido. Si se le ha cobrado, contacte con soporte",transactionPending:"Error en la confirmaci\xF3n del pago. Contacte con su proveedor de pago para obtener ayuda"},b5={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},_5={instead:"En lugar de ver anuncios",introduct:"Usa {{coin}} Jolicoin para desbloquear para una mejor experiencia",tips:"Obt\xE9n {{coin}} gratis",login:"Reg\xEDstrate y desbloquea con Jolicoin",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",rewardTips:"\xA1Felicidades! Has recibido {{coin}} Jolicoin. \xA1Empieza a desbloquear!"},w5={jolicoin:y5,joligem:b5,loginGuide:_5},S5={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"Jolicoin\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"Jolicoin\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"Jolicoin\u3092\u4F7F\u7528",payAndUnlock:"\u652F\u6255\u3044\u3068\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",balance:"\u6B8B\u9AD8",coinUsed:"\u4F7F\u7528\u6E08\u307FJolicoin",unlockSuccess:"\u30A2\u30F3\u30ED\u30C3\u30AF\u6210\u529F",unlockFailed:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5931\u6557",unlockFailedNotLogin:"\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u5B8C\u4E86\u3059\u308B\u306B\u306F\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedPaying:"\u652F\u6255\u3044\u51E6\u7406\u4E2D\u3067\u3059\u3002\u64CD\u4F5C\u3092\u7E70\u308A\u8FD4\u3055\u306A\u3044\u3067\u304F\u3060\u3055\u3044",unlockFailedProductIdNotFound:"\u5546\u54C1\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u3066\u3044\u307E\u3059\u3002\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedProductInvalid:"\u5546\u54C1\u60C5\u5831\u306E\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3059\u308B\u304B\u3001\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedLaunch:"\u652F\u6255\u3044\u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044",unlockFailedTransaction:"\u652F\u6255\u3044\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044",unlockFaileVerify:"\u6CE8\u6587\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u6599\u91D1\u304C\u8ACB\u6C42\u3055\u308C\u305F\u5834\u5408\u306F\u3001\u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044",transactionPending:"\u652F\u6255\u3044\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u652F\u6255\u3044\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044"},I5={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"GEM\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"GEM\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"GEM\u3092\u4F7F\u7528",balance:"GEM\u6B8B\u9AD8"},A5={instead:"\u5E83\u544A\u3092\u898B\u308B\u4EE3\u308F\u308A\u306B",introduct:"{{coin}} Jolicoin\u3092\u4F7F\u7528\u3057\u3066\u3001\u3088\u308A\u826F\u3044\u4F53\u9A13\u306E\u305F\u3081\u306B\u30A2\u30F3\u30ED\u30C3\u30AF\u3057\u307E\u3059",tips:"{{coin}}\u3092\u7121\u6599\u3067\u53D6\u5F97",login:"Jolicoin\u3067\u767B\u9332\u3057\u3066\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",rewardTips:"\u304A\u3081\u3067\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01{{coin}} Jolicoin\u3092\u53D7\u3051\u53D6\u308A\u307E\u3057\u305F\uFF01\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u958B\u59CB\u3057\u307E\u3059\uFF01"},E5={jolicoin:S5,joligem:I5,loginGuide:A5},k5={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com Jolicoin",unlockWithJolicoinDescription:"Deduz Jolicoin automaticamente para itens digitais",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar e desbloquear",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueio bem-sucedido",unlockFailed:"Falha no desbloqueio",unlockFailedNotLogin:"Fa\xE7a login para completar o desbloqueio",unlockFailedPaying:"O pagamento j\xE1 est\xE1 em andamento. Por favor, n\xE3o repita a opera\xE7\xE3o",unlockFailedProductIdNotFound:"O produto expirou. Por favor, escolha outro produto",unlockFailedProductInvalid:"Falha ao recuperar informa\xE7\xF5es do produto. Tente novamente ou escolha outro produto",unlockFailedLaunch:"N\xE3o foi poss\xEDvel iniciar o pagamento. Tente novamente mais tarde",unlockFailedTransaction:"Falha no pagamento. Tente novamente",unlockFaileVerify:"Falha na verifica\xE7\xE3o do pedido. Se voc\xEA foi cobrado, entre em contato com o suporte",transactionPending:"Falha na confirma\xE7\xE3o do pagamento. Entre em contato com seu provedor de pagamento para suporte"},C5={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},x5={instead:"Em vez de assistir an\xFAncios",introduct:"Use {{coin}} Jolicoin para desbloquear para uma melhor experi\xEAncia",tips:"Obtenha {{coin}} gratuitamente",login:"Registre-se e desbloqueie com Jolicoin",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",rewardTips:"Parab\xE9ns! Voc\xEA recebeu {{coin}} Jolicoin. Comece a desbloquear agora!"},Gk={jolicoin:k5,joligem:C5,loginGuide:x5},T5={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"Jolicoin\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"Jolicoin\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"Jolicoin \uC0AC\uC6A9",payAndUnlock:"\uACB0\uC81C \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uAD1C\uCC2E\uC2B5\uB2C8\uB2E4",balance:"\uC794\uC561",coinUsed:"\uC0AC\uC6A9\uB41C Jolicoin",unlockSuccess:"\uC7A0\uAE08 \uD574\uC81C \uC131\uACF5",unlockFailed:"\uC7A0\uAE08 \uD574\uC81C \uC2E4\uD328",unlockFailedNotLogin:"\uC7A0\uAE08 \uD574\uC81C\uB97C \uC644\uB8CC\uD558\uB824\uBA74 \uB85C\uADF8\uC778\uD558\uC138\uC694",unlockFailedPaying:"\uACB0\uC81C\uAC00 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uC791\uC5C5\uC744 \uBC18\uBCF5\uD558\uC9C0 \uB9C8\uC138\uC694",unlockFailedProductIdNotFound:"\uC0C1\uD488\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedProductInvalid:"\uC0C1\uD488 \uC815\uBCF4\uB97C \uAC00\uC838\uC624\uB294\uB370 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uAC70\uB098 \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedLaunch:"\uACB0\uC81C\uB97C \uC2DC\uC791\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFailedTransaction:"\uACB0\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFaileVerify:"\uC8FC\uBB38 \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uC694\uAE08\uC774 \uCCAD\uAD6C\uB41C \uACBD\uC6B0 \uACE0\uAC1D \uC9C0\uC6D0\uD300\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694",transactionPending:"\uACB0\uC81C \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uACB0\uC81C \uC11C\uBE44\uC2A4 \uC81C\uACF5\uC5C5\uCCB4\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694"},P5={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"GEM\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"GEM\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"GEM \uC0AC\uC6A9",balance:"GEM \uC794\uC561"},R5={instead:"\uAD11\uACE0 \uC2DC\uCCAD \uB300\uC2E0",introduct:"{{coin}} Jolicoin\uC744 \uC0AC\uC6A9\uD558\uC5EC \uB354 \uB098\uC740 \uACBD\uD5D8\uC744 \uC704\uD574 \uC7A0\uAE08 \uD574\uC81C",tips:"{{coin}}\uC744 \uBB34\uB8CC\uB85C \uBC1B\uC73C\uC138\uC694",login:"Jolicoin\uC73C\uB85C \uB4F1\uB85D \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uC544\uB2C8\uC694, \uAC10\uC0AC\uD569\uB2C8\uB2E4",rewardTips:"\uCD95\uD558\uD569\uB2C8\uB2E4! {{coin}} Jolicoin\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4! \uC7A0\uAE08 \uD574\uC81C\uB97C \uC2DC\uC791\uD558\uC138\uC694!"},O5={jolicoin:T5,joligem:P5,loginGuide:R5},N5={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 Jolicoin \u89E3\u9396",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u9918\u984D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9396\u6210\u529F",unlockFailed:"\u89E3\u9396\u5931\u6557",unlockFailedNotLogin:"\u8ACB\u767B\u5165\u5F8C\u5B8C\u6210\u89E3\u9396",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u9032\u884C\u4E2D\uFF0C\u8ACB\u52FF\u91CD\u8907\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u904E\u671F\uFF0C\u8ACB\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u7372\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66\u6216\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u7121\u6CD5\u555F\u52D5\u652F\u4ED8\uFF0C\u8ACB\u7A0D\u5F8C\u91CD\u8A66",unlockFailedTransaction:"\u652F\u4ED8\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66",unlockFaileVerify:"\u8A02\u55AE\u9A57\u8B49\u5931\u6557\uFF0C\u5982\u5DF2\u6263\u8CBB\u8ACB\u806F\u7E6B\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u78BA\u8A8D\u5931\u6557\uFF0C\u8ACB\u806F\u7E6B\u652F\u4ED8\u670D\u52D9\u5546\u7372\u53D6\u652F\u6301"},D5={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 GEM \u89E3\u9396",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u9918\u984D"},L5={instead:"\u89C0\u770B\u5EE3\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9396\u4EE5\u7372\u5F97\u66F4\u597D\u7684\u9AD4\u9A57",tips:"\u514D\u8CBB\u7372\u53D6 {{coin}}",login:"\u8A3B\u518A\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u7372\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u958B\u59CB\u89E3\u9396\u5427\uFF01"},q5={jolicoin:N5,joligem:D5,loginGuide:L5},U5={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit Jolicoin entsperren",unlockWithJolicoinDescription:"Automatisch mit Jolicoin entsperren",useJolicoin:"Jolicoin verwenden",payAndUnlock:"Bezahlen und entsperren",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",balance:"Guthaben",coinUsed:"Verwendete Jolicoin",unlockSuccess:"Erfolgreich entsperrt",unlockFailed:"Entsperren fehlgeschlagen",unlockFailedNotLogin:"Bitte melden Sie sich an, um die Entsperrung abzuschlie\xDFen",unlockFailedPaying:"Zahlung l\xE4uft bereits. Bitte nicht wiederholen",unlockFailedProductIdNotFound:"Produkt ist abgelaufen. Bitte w\xE4hlen Sie ein anderes Produkt",unlockFailedProductInvalid:"Produktinformationen konnten nicht abgerufen werden. Bitte versuchen Sie es erneut oder w\xE4hlen Sie ein anderes Produkt",unlockFailedLaunch:"Zahlung konnte nicht gestartet werden. Bitte versuchen Sie es sp\xE4ter erneut",unlockFailedTransaction:"Zahlung fehlgeschlagen. Bitte versuchen Sie es erneut",unlockFaileVerify:"Bestellbest\xE4tigung fehlgeschlagen. Falls Ihnen bereits etwas berechnet wurde, kontaktieren Sie bitte den Support",transactionPending:"Zahlungsbest\xE4tigung fehlgeschlagen. Bitte kontaktieren Sie Ihren Zahlungsanbieter f\xFCr Unterst\xFCtzung"},M5={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},F5={instead:"Anstatt Werbung anzusehen",introduct:"Verwenden Sie {{coin}} Jolicoin f\xFCr eine bessere Erfahrung",tips:"Holen Sie sich {{coin}} kostenlos",login:"Registrieren und entsperren mit Jolicoin",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",rewardTips:"Gl\xFCckwunsch! Sie haben {{coin}} Jolicoin erhalten! Beginnen Sie mit der Entsperrung!"},B5={jolicoin:U5,joligem:M5,loginGuide:F5},j5={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec Jolicoin",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec Jolicoin",useJolicoin:"Utiliser Jolicoin",payAndUnlock:"Payer et d\xE9verrouiller",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",balance:"Solde",coinUsed:"Jolicoin utilis\xE9",unlockSuccess:"D\xE9verrouillage r\xE9ussi",unlockFailed:"\xC9chec du d\xE9verrouillage",unlockFailedNotLogin:"Connectez-vous pour terminer le d\xE9verrouillage",unlockFailedPaying:"Le paiement est d\xE9j\xE0 en cours. Veuillez ne pas r\xE9p\xE9ter l'op\xE9ration",unlockFailedProductIdNotFound:"Le produit a expir\xE9. Veuillez choisir un autre produit",unlockFailedProductInvalid:"\xC9chec de la r\xE9cup\xE9ration des informations du produit. Veuillez r\xE9essayer ou choisir un autre produit",unlockFailedLaunch:"Impossible de lancer le paiement. Veuillez r\xE9essayer plus tard",unlockFailedTransaction:"\xC9chec du paiement. Veuillez r\xE9essayer",unlockFaileVerify:"\xC9chec de la v\xE9rification de la commande. Si vous avez \xE9t\xE9 factur\xE9, veuillez contacter le support",transactionPending:"\xC9chec de la confirmation du paiement. Veuillez contacter votre fournisseur de paiement pour obtenir de l'aide"},J5={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},G5={instead:"Au lieu de regarder des publicit\xE9s",introduct:"Utilisez {{coin}} Jolicoin pour d\xE9bloquer pour une meilleure exp\xE9rience",tips:"Obtenez {{coin}} gratuitement",login:"S'inscrire et d\xE9bloquer avec Jolicoin",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",rewardTips:"F\xE9licitations ! Vous avez re\xE7u {{coin}} Jolicoin. Commencez \xE0 d\xE9verrouiller !"},H5={jolicoin:j5,joligem:J5,loginGuide:G5},V5={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",payAndUnlock:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",balance:"\u0936\u0947\u0937 \u0930\u093E\u0936\u093F",coinUsed:"\u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u0917\u092F\u093E Jolicoin",unlockSuccess:"\u0905\u0928\u0932\u0949\u0915 \u0938\u092B\u0932",unlockFailed:"\u0905\u0928\u0932\u0949\u0915 \u0935\u093F\u092B\u0932",unlockFailedNotLogin:"\u0905\u0928\u0932\u0949\u0915 \u092A\u0942\u0930\u093E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0932\u0949\u0917\u093F\u0928 \u0915\u0930\u0947\u0902",unlockFailedPaying:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u092A\u094D\u0930\u0917\u0924\u093F \u092A\u0930 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0911\u092A\u0930\u0947\u0936\u0928 \u0926\u094B\u0939\u0930\u093E\u090F\u0902 \u0928\u0939\u0940\u0902",unlockFailedProductIdNotFound:"\u0909\u0924\u094D\u092A\u093E\u0926 \u0915\u0940 \u0938\u092E\u092F \u0938\u0940\u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B \u0917\u0908 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedProductInvalid:"\u0909\u0924\u094D\u092A\u093E\u0926 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedLaunch:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0936\u0941\u0930\u0942 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\u0964 \u0915\u0943\u092A\u092F\u093E \u092C\u093E\u0926 \u092E\u0947\u0902 \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFailedTransaction:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFaileVerify:"\u0911\u0930\u094D\u0921\u0930 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0935\u093F\u092B\u0932\u0964 \u092F\u0926\u093F \u0906\u092A\u0938\u0947 \u0936\u0941\u0932\u094D\u0915 \u0932\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948, \u0924\u094B \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902",transactionPending:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0941\u0937\u094D\u091F\u093F\u0915\u0930\u0923 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0915\u0947 \u0932\u093F\u090F \u0905\u092A\u0928\u0947 \u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u094D\u0930\u0926\u093E\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902"},$5={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"GEM \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",balance:"GEM \u0936\u0947\u0937 \u0930\u093E\u0936\u093F"},K5={instead:"\u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u092C\u091C\u093E\u092F",introduct:"{{coin}} Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u092C\u0947\u0939\u0924\u0930 \u0905\u0928\u0941\u092D\u0935 \u0915\u0947 \u0932\u093F\u090F \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",tips:"{{coin}} \u092E\u0941\u092B\u094D\u0924 \u092E\u0947\u0902 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",login:"Jolicoin \u0915\u0947 \u0938\u093E\u0925 \u0930\u091C\u093F\u0938\u094D\u091F\u0930 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",rewardTips:"\u0905\u092D\u093F\u0928\u0902\u0926\u0928! \u0906\u092A\u0915\u094B {{coin}} Jolicoin \u092E\u093F\u0932\u093E \u0939\u0948! \u0905\u0928\u0932\u0949\u0915 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902!"},W5={jolicoin:V5,joligem:$5,loginGuide:K5},z5={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",unlockWithJolicoinDescription:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C Jolicoin",payAndUnlock:"\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",balance:"\u0411\u0430\u043B\u0430\u043D\u0441",coinUsed:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E Jolicoin",unlockSuccess:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u0430",unlockFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438",unlockFailedNotLogin:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u043E\u0439\u0434\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443",unlockFailedPaying:"\u041E\u043F\u043B\u0430\u0442\u0430 \u0443\u0436\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u0439\u0442\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E",unlockFailedProductIdNotFound:"\u0421\u0440\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0442\u043E\u0432\u0430\u0440\u0430 \u0438\u0441\u0442\u0435\u043A. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedProductInvalid:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0442\u043E\u0432\u0430\u0440\u0435. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u0438\u043B\u0438 \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedLaunch:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0447\u0430\u0442\u044C \u043E\u043F\u043B\u0430\u0442\u0443. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435",unlockFailedTransaction:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443",unlockFaileVerify:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u0437\u0430\u043A\u0430\u0437\u0430. \u0415\u0441\u043B\u0438 \u0441 \u0432\u0430\u0441 \u0431\u044B\u043B\u0430 \u0441\u043F\u0438\u0441\u0430\u043D\u0430 \u043F\u043B\u0430\u0442\u0430, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u0441\u043B\u0443\u0436\u0431\u0443 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",transactionPending:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u043A \u0432\u0430\u0448\u0435\u043C\u0443 \u043F\u043B\u0430\u0442\u0435\u0436\u043D\u043E\u043C\u0443 \u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0443 \u0437\u0430 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439"},Y5={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",unlockWithJolicoinDescription:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C GEM",balance:"GEM \u0411\u0430\u043B\u0430\u043D\u0441"},Q5={instead:"\u0412\u043C\u0435\u0441\u0442\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u0440\u0435\u043A\u043B\u0430\u043C\u044B",introduct:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 {{coin}} Jolicoin \u0434\u043B\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438 \u0434\u043B\u044F \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u043E\u043F\u044B\u0442\u0430",tips:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 {{coin}} \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E",login:"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",rewardTips:"\u041F\u043E\u0437\u0434\u0440\u0430\u0432\u043B\u044F\u0435\u043C! \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 {{coin}} Jolicoin. \u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443!"},X5={jolicoin:z5,joligem:Y5,loginGuide:Q5},Z5={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",payAndUnlock:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09C1\u09A8",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",balance:"\u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8",coinUsed:"\u09AC\u09CD\u09AF\u09AC\u09B9\u09C3\u09A4 Jolicoin",unlockSuccess:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AB\u09B2",unlockFailed:"\u0986\u09A8\u09B2\u0995 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5",unlockFailedNotLogin:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AE\u09CD\u09AA\u09C2\u09B0\u09CD\u09A3 \u0995\u09B0\u09A4\u09C7 \u09B2\u0997\u0987\u09A8 \u0995\u09B0\u09C1\u09A8",unlockFailedPaying:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u0987\u09A4\u09BF\u09AE\u09A7\u09CD\u09AF\u09C7 \u099A\u09B2\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09C1\u09A8\u09B0\u09BE\u09AC\u09C3\u09A4\u09CD\u09A4\u09BF \u0995\u09B0\u09AC\u09C7\u09A8 \u09A8\u09BE",unlockFailedProductIdNotFound:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09AE\u09C7\u09AF\u09BC\u09BE\u09A6 \u09B6\u09C7\u09B7 \u09B9\u09AF\u09BC\u09C7 \u0997\u09C7\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedProductInvalid:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF \u09AA\u09C1\u09A8\u09B0\u09C1\u09A6\u09CD\u09A7\u09BE\u09B0 \u0995\u09B0\u09A4\u09C7 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8 \u09AC\u09BE \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedLaunch:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09A4\u09C7 \u0985\u0995\u09CD\u09B7\u09AE\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFailedTransaction:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFaileVerify:"\u0985\u09B0\u09CD\u09A1\u09BE\u09B0 \u09AF\u09BE\u099A\u09BE\u0987 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u09AF\u09A6\u09BF \u0986\u09AA\u09A8\u09BE\u0995\u09C7 \u099A\u09BE\u09B0\u09CD\u099C \u0995\u09B0\u09BE \u09B9\u09AF\u09BC\u09C7 \u09A5\u09BE\u0995\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",transactionPending:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09A8\u09BF\u09B6\u09CD\u099A\u09BF\u09A4\u0995\u09B0\u09A3 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF \u0986\u09AA\u09A8\u09BE\u09B0 \u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AA\u09CD\u09B0\u09A6\u09BE\u09A8\u0995\u09BE\u09B0\u09C0\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8"},e3={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"GEM \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",balance:"GEM \u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8"},t3={instead:"\u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",introduct:"\u0986\u09AA\u09A8\u09BE\u09B0 \u09AD\u09BE\u09B2 \u0985\u09AD\u09BF\u099C\u09CD\u099E\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF {{coin}}Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",tips:"\u09AB\u09CD\u09B0\u09BF {{coin}} \u09AA\u09C7\u09A4\u09C7",login:"Jolicoin \u09B8\u09BE\u09A5\u09C7 \u09B0\u09C7\u099C\u09BF\u09B8\u09CD\u099F\u09BE\u09B0 \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",rewardTips:"\u0985\u09AD\u09BF\u09A8\u09A8\u09CD\u09A6\u09A8! \u0986\u09AA\u09A8\u09BF {{coin}} Jolicoin \u09AA\u09C7\u09AF\u09BC\u09C7\u099B\u09C7\u09A8! \u0986\u09A8\u09B2\u0995 \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09C1\u09A8!"},r3={jolicoin:Z5,joligem:e3,loginGuide:t3},n3={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"Jolicoin ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"Jolicoin ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"Jolicoin kullan",payAndUnlock:"\xD6de ve kilidi a\xE7",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",balance:"Bakiye",coinUsed:"Kullan\u0131lan Jolicoin",unlockSuccess:"Kilidi a\xE7ma ba\u015Far\u0131l\u0131",unlockFailed:"Kilidi a\xE7ma ba\u015Far\u0131s\u0131z",unlockFailedNotLogin:"Kilidi a\xE7may\u0131 tamamlamak i\xE7in l\xFCtfen giri\u015F yap\u0131n",unlockFailedPaying:"\xD6deme zaten devam ediyor. L\xFCtfen i\u015Flemi tekrarlamay\u0131n",unlockFailedProductIdNotFound:"\xDCr\xFCn\xFCn s\xFCresi dolmu\u015F. L\xFCtfen ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedProductInvalid:"\xDCr\xFCn bilgileri al\u0131namad\u0131. L\xFCtfen tekrar deneyin veya ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedLaunch:"\xD6deme ba\u015Flat\u0131lamad\u0131. L\xFCtfen daha sonra tekrar deneyin",unlockFailedTransaction:"\xD6deme ba\u015Far\u0131s\u0131z. L\xFCtfen tekrar deneyin",unlockFaileVerify:"Sipari\u015F do\u011Frulamas\u0131 ba\u015Far\u0131s\u0131z. \xDCcretlendirildiyseniz, l\xFCtfen destek ile ileti\u015Fime ge\xE7in",transactionPending:"\xD6deme onay\u0131 ba\u015Far\u0131s\u0131z. L\xFCtfen destek i\xE7in \xF6deme sa\u011Flay\u0131c\u0131n\u0131zla ileti\u015Fime ge\xE7in"},i3={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"GEM ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"GEM ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"GEM kullan",balance:"GEM Bakiye"},o3={instead:"Reklam izleme yerine",introduct:"{{coin}} Jolicoin kullanarak daha iyi deneyim i\xE7in kilidi a\xE7\u0131n",tips:"{{coin}} almak i\xE7in \xFCcretsiz",login:"Jolicoin ile kay\u0131t ve kilidi a\xE7\u0131n",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",rewardTips:"Tebrikler! {{coin}} Jolicoin ald\u0131n\u0131z. Kilidi a\xE7maya ba\u015Flay\u0131n!"},a3={jolicoin:n3,joligem:i3,loginGuide:o3},kC={en:{translations:Mk},en_GB:{translations:Mk},zh:{translations:Fk},"zh-Hans":{translations:Fk},"zh-Hant":{translations:q5},id:{translations:Bk},in:{translations:Bk},ms:{translations:jk},my:{translations:jk},th:{translations:u5},vi:{translations:m5},fil:{translations:Jk},tl:{translations:Jk},es:{translations:w5},ja:{translations:E5},pt:{translations:Gk},pt_PT:{translations:Gk},ko:{translations:O5},de:{translations:B5},fr:{translations:H5},hi:{translations:W5},ru:{translations:X5},bn:{translations:r3},tr:{translations:a3}},CC=An(void 0),xC=({definition:e,children:t})=>{let r={translations:e};return w(CC.Provider,{value:r,children:t})},ff=null,s3={zh:"zh","zh-CN":"zh","zh-TW":"zh-Hant","zh-Hans":"zh",zh_Hans:"zh","zh-Hant":"zh-Hant",zh_Hant:"zh-Hant",id:"id",in:"id",ms:"ms",my:"ms",th:"th",vi:"vi",fil:"tl",tl:"tl",es:"es",ja:"ja",pt:"pt",pt_PT:"pt","pt-PT":"pt",ko:"ko",de:"de",fr:"fr",hi:"hi",ru:"ru",ar:"ar",tr:"tr"},TC=e=>{ff=e},PC=()=>{var e;if(typeof ff!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=ff();return(e=s3[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};xc=class{constructor(t,r){this.zIndex=t,this.pointerEvents=r,this.persistentIframe=null,this.iframeEmotionCache=null,this.iframeLoadPromise=null,this.iframeLoadResolver=null,this.removeGlobalTransformSync=null,this.referenceCount=0}create(){typeof window>"u"||this.persistentIframe&&document.body.contains(this.persistentIframe)||(this.persistentIframe=document.createElement("iframe"),this.persistentIframe.style.position="fixed",this.persistentIframe.style.left="0",this.persistentIframe.style.top="0",this.persistentIframe.style.width="100vw",this.persistentIframe.style.height="100vh",this.persistentIframe.style.zIndex=String(this.zIndex),this.persistentIframe.style.pointerEvents=this.pointerEvents,this.persistentIframe.style.border="none",this.persistentIframe.style.background="transparent",this.persistentIframe.setAttribute("allowtransparency","true"),this.persistentIframe.style.display="none",document.body.appendChild(this.persistentIframe),this.iframeLoadPromise=new Promise(t=>{this.iframeLoadResolver=t}),this.persistentIframe.onload=()=>{var r,n,i;if(!((n=(r=this.persistentIframe)==null?void 0:r.contentDocument)!=null&&n.head)){console.error("[SingletonIframe] Iframe loaded, but document or head is not available.");return}console.log("[SingletonIframe] Iframe content loaded."),this.iframeEmotionCache=bC({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=l3(this.persistentIframe);let t=this.persistentIframe.contentDocument;t&&["--status-bar-height","--navigation-bar-height"].forEach(o=>{let a=document.documentElement.style.getPropertyValue(o);a&&t.body.style.setProperty(o,a)}),(i=this.iframeLoadResolver)==null||i.call(this),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}acquire(){return g(this,null,function*(){if(this.create(),yield this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(RC(this.persistentIframe),this.persistentIframe.style.display="block"),{iframe:this.persistentIframe,emotionCache:this.iframeEmotionCache}})}release(){this.referenceCount--,this.referenceCount<=0&&(this.referenceCount=0,this.persistentIframe&&(this.persistentIframe.style.display="none"))}},ea=new xc(99999998,"auto"),Hk=new xc(99999999,"none"),u3=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=da(),c={container:M`
73
73
  display: flex;
74
74
  flex-direction: column;
75
75
  height: 100%;
@@ -106,7 +106,7 @@ If multiple caches share the same key they might "fight" for each other's style
106
106
  ${c.button}
107
107
  background-color: ${l.variant==="primary"?"#1677ff":"#fff"};
108
108
  color: ${l.variant==="primary"?"#fff":"#333"};
109
- `.name,onClick:u=>{var p;return(p=l.onClick)==null?void 0:p.call(l,u,{hide:a})},children:l.text},d))})]})},Uc=e=>{let t=!1,r=Tk(),n=Ek[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function c(p){var f,h;if(!o||!a){console.error("[Modal] Iframe or emotion cache not ready for rendering Drawer.");return}s=o.contentDocument.getElementById(i),s||(s=o.contentDocument.createElement("div"),s.id=i,o.contentDocument.body.appendChild(s)),zr(w(Ik,{value:a,children:w(kk,{definition:n,children:w(WH,{ref:v=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:l,preventCloseOnBackdropClick:(h=e.preventCloseOnBackdropClick)!=null?h:!1,backdropColor:e.backdropColor,children:w(u3,J(P({},e),{onClose:u}))})})}),s)}function l(){var p,f;if(t){if(t=!1,o==null?void 0:o.contentDocument){let h=o.contentDocument.getElementById(i);h&&((p=h.parentNode)==null||p.removeChild(h))}Zo.release(),(f=e.onClose)==null||f.call(e)}}function d(){return g(this,null,function*(){let p=yield Zo.acquire();o=p.iframe,a=p.emotionCache,t=!0,c(!0),setTimeout(()=>{var f;(f=e.onOpen)==null||f.call(e)},50)})}function u(){t&&c(!1)}return{show:()=>{t||d()},hide:()=>{t&&u()},isOpen:()=>t,destroy:()=>{t&&u(),o=null,a=null,s=null,console.log("[Modal] Instance destroyed.")}}},d3=(e,t={threshold:.6})=>{let r=Xo(null),n=Xo(!1),i=Mt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return Dn(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};Rk=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=tt(a,["children","fluid","className","style"]);let s=P({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return w("div",J(P({className:r,style:s},i),{children:e}))},Ok=s=>{var c=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=c,a=tt(c,["children","gutter","justify","align","className","style"]);let l={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=P({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:l[r],alignItems:d[n]},o);if(t){let f=Array.isArray(t)?t[0]:t,h=Array.isArray(t)?t[1]:0;f>0&&(u.marginLeft=`-${f/2}px`,u.marginRight=`-${f/2}px`),h>0&&(u.marginTop=`-${h/2}px`,u.marginBottom=`-${h/2}px`)}let p=t?f3(e,t):e;return w("div",J(P({className:i,style:u},a),{children:p}))};Nk=u=>{var p=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:c="",style:l={}}=p,d=tt(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=P({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},l);if(t!==void 0){let h=t/24*100;f.flex=`0 0 ${h}%`,f.maxWidth=`${h}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),w("div",J(P({className:c,style:f},d),{children:e}))},h3=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,c;let o=en(l=>{l.preventDefault(),i==null||i(e)},[i,e]),a=en(()=>{},[e,t]);return w(Nk,{span:r==="landscape"?4:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:r==="landscape"?"8px":"16px",paddingLeft:"8px",paddingRight:"8px"},onClick:o,role:"button",tabIndex:0,children:[w("div",{className:"relative w-full mb-[2px] ion-no-margin",children:w(p3,{src:(c=(s=e.logo)!=null?s:e.cover)!=null?c:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),w("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:r==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},m3=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=tt(s,["list","routeMode","layerName","onGameClick","orientation"]);return w(Rk,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:w(Ok,{gutter:8,style:{display:"flex",flexWrap:i==="landscape"?"nowrap":"wrap",overflowX:i==="landscape"?"auto":"visible",paddingBottom:i==="landscape"?"10px":"0",justifyContent:i==="landscape"?"flex-start":"center"},children:e==null?void 0:e.map(c=>w(h3,{orientation:i,game:c,routeMode:t,layerName:r,onGameClick:n},c.gameId))})})},g3=Hd(m3),ff=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(ff||{}),v3=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=cr(null),s=Mt(u=>{i==null||i({type:u.type===ff.Quit?"quit":"dismiss"})},[i]),c=Mt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),l=ua();if(!t.length)return w(ze,{});let d=Mt(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
109
+ `.name,onClick:u=>{var p;return(p=l.onClick)==null?void 0:p.call(l,u,{hide:a})},children:l.text},d))})]})},Mc=e=>{let t=!1,r=PC(),n=kC[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function c(p){var f,m;if(!o||!a){console.error("[Modal] Iframe or emotion cache not ready for rendering Drawer.");return}s=o.contentDocument.getElementById(i),s||(s=o.contentDocument.createElement("div"),s.id=i,o.contentDocument.body.appendChild(s)),zr(w(AC,{value:a,children:w(xC,{definition:n,children:w(WH,{ref:v=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:l,preventCloseOnBackdropClick:(m=e.preventCloseOnBackdropClick)!=null?m:!1,backdropColor:e.backdropColor,children:w(u3,J(P({},e),{onClose:u}))})})}),s)}function l(){var p,f;if(t){if(t=!1,o==null?void 0:o.contentDocument){let m=o.contentDocument.getElementById(i);m&&((p=m.parentNode)==null||p.removeChild(m))}ea.release(),(f=e.onClose)==null||f.call(e)}}function d(){return g(this,null,function*(){let p=yield ea.acquire();o=p.iframe,a=p.emotionCache,t=!0,c(!0),setTimeout(()=>{var f;(f=e.onOpen)==null||f.call(e)},50)})}function u(){t&&c(!1)}return{show:()=>{t||d()},hide:()=>{t&&u()},isOpen:()=>t,destroy:()=>{t&&u(),o=null,a=null,s=null,console.log("[Modal] Instance destroyed.")}}},d3=(e,t={threshold:.6})=>{let r=Zo(null),n=Zo(!1),i=Mt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return Dn(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};OC=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=tt(a,["children","fluid","className","style"]);let s=P({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return w("div",J(P({className:r,style:s},i),{children:e}))},NC=s=>{var c=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=c,a=tt(c,["children","gutter","justify","align","className","style"]);let l={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=P({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:l[r],alignItems:d[n]},o);if(t){let f=Array.isArray(t)?t[0]:t,m=Array.isArray(t)?t[1]:0;f>0&&(u.marginLeft=`-${f/2}px`,u.marginRight=`-${f/2}px`),m>0&&(u.marginTop=`-${m/2}px`,u.marginBottom=`-${m/2}px`)}let p=t?f3(e,t):e;return w("div",J(P({className:i,style:u},a),{children:p}))};DC=u=>{var p=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:c="",style:l={}}=p,d=tt(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=P({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},l);if(t!==void 0){let m=t/24*100;f.flex=`0 0 ${m}%`,f.maxWidth=`${m}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),w("div",J(P({className:c,style:f},d),{children:e}))},m3=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,c;let o=en(l=>{l.preventDefault(),i==null||i(e)},[i,e]),a=en(()=>{},[e,t]);return w(DC,{span:r==="landscape"?4:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:r==="landscape"?"8px":"16px",paddingLeft:"8px",paddingRight:"8px"},onClick:o,role:"button",tabIndex:0,children:[w("div",{className:"relative w-full mb-[2px] ion-no-margin",children:w(p3,{src:(c=(s=e.logo)!=null?s:e.cover)!=null?c:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),w("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:r==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},h3=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=tt(s,["list","routeMode","layerName","onGameClick","orientation"]);return w(OC,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:w(NC,{gutter:8,style:{display:"flex",flexWrap:i==="landscape"?"nowrap":"wrap",overflowX:i==="landscape"?"auto":"visible",paddingBottom:i==="landscape"?"10px":"0",justifyContent:i==="landscape"?"flex-start":"center"},children:e==null?void 0:e.map(c=>w(m3,{orientation:i,game:c,routeMode:t,layerName:r,onGameClick:n},c.gameId))})})},g3=Vd(h3),mf=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(mf||{}),v3=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=cr(null),s=Mt(u=>{i==null||i({type:u.type===mf.Quit?"quit":"dismiss"})},[i]),c=Mt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),l=da();if(!t.length)return w(ze,{});let d=Mt(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
110
110
  .recommend-panel {
111
111
  display: flex;
112
112
  flex-direction: column;
@@ -228,7 +228,7 @@ If multiple caches share the same key they might "fight" for each other's style
228
228
  background-color: #7817FF;
229
229
  color: #fff;
230
230
  }
231
- `;let h=document.createElement("div");h.id="recommend-panel-content",p.appendChild(f),p.appendChild(h),a(p)}},[]);return Dn(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&zr(w("div",{className:"recommend-panel",children:w("div",{className:"container",children:[w("p",{className:"title",children:r}),w("div",{className:"games-container",children:w(g3,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:c,orientation:l})}),w("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>w("div",{className:"button-wrapper",children:w("button",{className:`button ${p.type===ff.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:w("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,c]),w("div",{ref:d})},Dk=e=>{let t=Uc({title:e.title,content:w(v3,{games:e.games,title:e.title,buttons:e.buttons,onClose:e.onClose}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"450px",onClose:()=>{var r;(r=e.onClose)==null||r.call(e,{type:"back"})},onOpen:e.onOpen});return t.show(),t},Lk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAC+lBMVEUAAABQTlBrQeL6+vufkPrEp/RcV2Pv6e23t7ehnqZVSIOZmaDy6vWRfPWDdvq6neHc29e5trzh4+DHyM2BUeHMteDIp+G2pd50SZV/aqmQkI1jWGyeYLz4+vTMh96RS8Lh2+XIwuGek6NEJn9RSF9QO8fBr+Xl1e2gh7e8e8FvUN1jO8dtbdDIzrr4zPzzxfv2yfrotPyzg/usgPrtufzBjfzyw/vjrvv80vy2hvv7z/zUnvvMl/zyv/vGkfuwgfn+9f7z1/7ep/z53Prtu/fvvf29keD///3u0vzkqfz91vv56vnorf27ifnbu/L54/3ttP3+7/zvt/q8jO+1gOzny/66gv757/zZovyjfvvy5Pr61vqjc/XlvfB0Ru+YZu68f+3+4P/+5/7bnvy6ePvgovr20fnQmvfq0/bImvafaPWDW/XNr/N7ZPPjxPHSj/DLl+7Lnu13WN9WMqHJqf/96/74x/3UtPutefjxy/Ttw/TZqe+re+/Ike2PYeStfd2NWsSVb77Ghv3+2vy8jfvcxfrntPTGhvKkbe7Qo+zSsuqdZdushdq4idl1S7zSmv3ssPvz2Pbu1fGvivCLYu2gdOuWcuqVY9KAVsXyuP7v3v3syP3bvf3Xkv2+oPy7mvzto/vnlvjgsfS7nvPEf/KSU/LbxO9xVu/Vne69l+6FWuyObuvbs+h9TOegfuacWuaoi+XPoeGic9+rct9qP7WrbfzYm/vPi/uTZ/rQiPS4f/TPwPPkpvOrlfOwc++8du2ugemIUunHpei1duGnbuGTa+DGm9+0jNGpcc9UKc20fctXI7rkvv+8sfrlw/nRpvjal/Xv3/TAzvTam/GAkfCsdejdvuSVedyYctxtNtP++f733f7ViP3Ld/rf0PT2vfPhgfNnafLjzezHuunFf+OPRN55P9WkZdKQRdBfMrFBIaxaQ/OExvLq1+pXJ+WBNuCkSdjBmtWGadKkf8mFM8eJT7dpRacnC5bA/Ph9rvOI5vFWXuzCUOJNLJZJYFROAAAALnRSTlMADP78/v4r63ZXPzH+/v37wKB6SP7x4MyhcW5K8evq4NjYi2YZ/e3a1c7IyMWtdH+scgAABvdJREFUSMeFlmVQG1EURrdQqLu7exsChYQSQkOcJI2QEBqXQoQEIi2uxb24lkJx97q7u7u7u890N6nreftr5zv3vju7O2+B3+gyakD/bvxjj64PmT58VBfgP3TpPsYzkM1m19Wxs9nqYsHBoSP/Ge+PSTLwSb1v9EtN7Zec6U8Pm09WL5/z1/xATLiKFHrrSYs0wSVB2nL7wIFIJ6EEt4vf/c/lLWtVmJVXqAK8dPtuQ1Ly9euZsM0HCmzFpfTcbn/ID8IYSBuvYixV6sv8Yltbe1uaqjyUnrnmQCRXzLIgWf+2HVJv/6uKEJHovGjRiVBlXZBWlVSbzFLSd0vvIcV8C0yPX/Ok4JUB8SEiZi06JvTOnY69dzrCCbZ6IouThT1wWFzUZPmTMciSdKXsikhVXq5g7N/byPCXy2WK3VFROlu2NqV9/blijec5S+sf5vXvjVfg/DxFCNb+PZ4yioDi6OjkBHeUpb2iSbbnlyeeO9iHP5j0XbBMzrqqC/XM0p0eTZXFUASOFDAPg8HgNrKo8LX0fAM7P/ZQ9pDx3wbgkD7q9aKsyrb9GEFMDAWs/0WA2yiIO7Z37GGHR+Z47jv9dQzG5bswfZtyS9szOSVGYIo7QnlIsIGnbaanNqbsDm4q2lVkzveXHGshrslKrN0vp1Di4d/LwyHBBra05HQVXr/0iMfgtBEmgVV9uzDhkZj1ikVxjGlLgzuBeZAAcx6BkN1zZ9M5WcGb+bf8oXz3MNITZXiFR1QmzMkxhojZsxEPER8AxiHBBu0XKfIjIHcHYhKfjgKFMbkV0dXhaxv3xoBlHYkXLvA9QajUPe4IBBoBCjaCKEpI/LoQRjH95lDwGTC0WV6q6tz9wQFwGMyJ6Eomu5qQ72GiCQQ0GoFANPopqMEyXPz5mysBoOcRVXlCEZG8lwK3gQdAgt9SMy9eF+LtCXjQgIkEOBZOEEJyv2QNTJxfvOWw0E9/GgFtOCDNldGJcIdgunOe0fD2eAK4r0x/HEkgyzwf/HIE0D9IWbl3XtKJYAIaJCCNTM5H20MwCTv8X9Bsmfb2aESIXI7DyaksasZwoFsYZ11kc4LOxp4AYhLsbSEymDtcGQUEk4GXKXACfyoDc3ccQA3amcLJq0xA2EJl0ake5Cgmkoak0WgZHWTX9EJkhi04CAWOg+HkDOrGsQA1LD+6pXq9FGEqW5jq4RGFRLpB0DrI5HQmEgl+fu4wPBwdjMNhno4D+ML8yCP16yMJSAhmZNzhKDesN4TbTg+PdCbWDYnMiHfPCNkoV7hST4wFVMKUFOez7Zx4LAQtdfnyKOzqRRDeO+M80mkLsVgkbWPZ0RA4DO/K2DEaGCLkFLho2x3aUAtBsOn0wIKFKNTq1ajVi1KWH0x3A++5uYWWXXI6WhjqGqybAQzjOS92CCOq05xREG734gpWLwNRLgOF5elYFFgIeaJElbHOW49DvhwOTJwb+wkZpt+VinU2ge2MNCTR/UShSbXEJYGdi5SggfLeUuu27igHl3JrEmAdyHutJS6IUKc6uJhAdWpXrChdAVJaqk13dlYuQ4WX6BKi3byFh+9WWQNdPPtUFOQ1520djHIws2yx1RIzVoudXcCmKF2JtGSzTlnK2fYYAIBufQPf5GTbSYTt8xaYce5cbKbTBerqfPNipWGNdJ3Eo2nfLFDoEbipQNxw9kb9NoPdPDOxYB8X8IqNdQAN/RqpYUfiIm/NkX3ingAIxtfjftOmy62ac+r5dtCCMLlQSwdlZTQ7Ub9emhjYlCMGIAYs2fQ8wmhsPbP2tjpo/lzTMluQod7C3Ry2fadXWQ1ds28SlDe32PSgtVWcZ1HHm2sCVOZDAjd8CzdoK9GHuyYnruq+BjDTnewb+GatRWuzOLfqbCzviwEp6g6vIGFebAR3lY5n0DiAE5jpVlrRb19NRHPzmXq7qna2Hc8kxYaf8omOSM6ZF8H1Wel7TDJlJvANTJ8N2y3EDbuyjcJdQT4tuae2bj21s2UVVxIhWRuUA+Wp21oPAt/pxeirra7X1D8/Y+QJIxK9QLhS9bZtYbk5Pj52YJ5v2ICZ/NMBUdQnm9Eu1GgPWRjPWlXkNTRESDintmo0ErugVTpfPifJv9cvR5zrpgbXZGJ0VXIcr8loNJ4hEuPq6n24c1ddzPUtWm+F+TkP7eqCla+2OLntaKUUfFn9fCRhiV7RXqsuJtR09cs28v70SzAttOtJeoCosTHenUkrLCuJ9rpUxq65Ftds0XUY8Ed6OIYcf3g8DsfqfSxToYCX1zU86Luh4rGxb0/gb3SXUS3fvn/47uTJk9c+XOt66EbXGt+uI4B/0Ws8icWqPn58wwar7Lwa3qHZPYH/Yj1ywLCh/aZOmDBg5GTgNz4D2CYAK8x+JcUAAAAASUVORK5CYII=",Mc="https://fe-oss.jolibox.com/static/coin/jolicoin.png",Pf="https://fe-oss.jolibox.com/static/coin/gem.png";Ti=()=>{let e=F2(Ck);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=y3(t,r);if(typeof i=="string"){let o=i;if(n)for(let a in n)o=o.replace(new RegExp(`{{${a}}}`,"g"),String(n[a]));return o}return console.warn(`Translation key "${r}" not found or not a string.`),`[${r}]`},translations:t}},HC=({text:e,initialFontSize:t,styles:r})=>w("span",{style:r,children:w("span",{style:{fontSize:`${t}px`,display:"-webkit-box",textAlign:"left",WebkitBoxOrient:"vertical",WebkitLineClamp:2,width:"auto",whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:e})}),sn={coinInfo:M`
231
+ `;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return Dn(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&zr(w("div",{className:"recommend-panel",children:w("div",{className:"container",children:[w("p",{className:"title",children:r}),w("div",{className:"games-container",children:w(g3,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:c,orientation:l})}),w("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>w("div",{className:"button-wrapper",children:w("button",{className:`button ${p.type===mf.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:w("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,c]),w("div",{ref:d})},LC=e=>{let t=Mc({title:e.title,content:w(v3,{games:e.games,title:e.title,buttons:e.buttons,onClose:e.onClose}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"450px",onClose:()=>{var r;(r=e.onClose)==null||r.call(e,{type:"back"})},onOpen:e.onOpen});return t.show(),t},qC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAC+lBMVEUAAABQTlBrQeL6+vufkPrEp/RcV2Pv6e23t7ehnqZVSIOZmaDy6vWRfPWDdvq6neHc29e5trzh4+DHyM2BUeHMteDIp+G2pd50SZV/aqmQkI1jWGyeYLz4+vTMh96RS8Lh2+XIwuGek6NEJn9RSF9QO8fBr+Xl1e2gh7e8e8FvUN1jO8dtbdDIzrr4zPzzxfv2yfrotPyzg/usgPrtufzBjfzyw/vjrvv80vy2hvv7z/zUnvvMl/zyv/vGkfuwgfn+9f7z1/7ep/z53Prtu/fvvf29keD///3u0vzkqfz91vv56vnorf27ifnbu/L54/3ttP3+7/zvt/q8jO+1gOzny/66gv757/zZovyjfvvy5Pr61vqjc/XlvfB0Ru+YZu68f+3+4P/+5/7bnvy6ePvgovr20fnQmvfq0/bImvafaPWDW/XNr/N7ZPPjxPHSj/DLl+7Lnu13WN9WMqHJqf/96/74x/3UtPutefjxy/Ttw/TZqe+re+/Ike2PYeStfd2NWsSVb77Ghv3+2vy8jfvcxfrntPTGhvKkbe7Qo+zSsuqdZdushdq4idl1S7zSmv3ssPvz2Pbu1fGvivCLYu2gdOuWcuqVY9KAVsXyuP7v3v3syP3bvf3Xkv2+oPy7mvzto/vnlvjgsfS7nvPEf/KSU/LbxO9xVu/Vne69l+6FWuyObuvbs+h9TOegfuacWuaoi+XPoeGic9+rct9qP7WrbfzYm/vPi/uTZ/rQiPS4f/TPwPPkpvOrlfOwc++8du2ugemIUunHpei1duGnbuGTa+DGm9+0jNGpcc9UKc20fctXI7rkvv+8sfrlw/nRpvjal/Xv3/TAzvTam/GAkfCsdejdvuSVedyYctxtNtP++f733f7ViP3Ld/rf0PT2vfPhgfNnafLjzezHuunFf+OPRN55P9WkZdKQRdBfMrFBIaxaQ/OExvLq1+pXJ+WBNuCkSdjBmtWGadKkf8mFM8eJT7dpRacnC5bA/Ph9rvOI5vFWXuzCUOJNLJZJYFROAAAALnRSTlMADP78/v4r63ZXPzH+/v37wKB6SP7x4MyhcW5K8evq4NjYi2YZ/e3a1c7IyMWtdH+scgAABvdJREFUSMeFlmVQG1EURrdQqLu7exsChYQSQkOcJI2QEBqXQoQEIi2uxb24lkJx97q7u7u7u890N6nreftr5zv3vju7O2+B3+gyakD/bvxjj64PmT58VBfgP3TpPsYzkM1m19Wxs9nqYsHBoSP/Ge+PSTLwSb1v9EtN7Zec6U8Pm09WL5/z1/xATLiKFHrrSYs0wSVB2nL7wIFIJ6EEt4vf/c/lLWtVmJVXqAK8dPtuQ1Ly9euZsM0HCmzFpfTcbn/ID8IYSBuvYixV6sv8Yltbe1uaqjyUnrnmQCRXzLIgWf+2HVJv/6uKEJHovGjRiVBlXZBWlVSbzFLSd0vvIcV8C0yPX/Ok4JUB8SEiZi06JvTOnY69dzrCCbZ6IouThT1wWFzUZPmTMciSdKXsikhVXq5g7N/byPCXy2WK3VFROlu2NqV9/blijec5S+sf5vXvjVfg/DxFCNb+PZ4yioDi6OjkBHeUpb2iSbbnlyeeO9iHP5j0XbBMzrqqC/XM0p0eTZXFUASOFDAPg8HgNrKo8LX0fAM7P/ZQ9pDx3wbgkD7q9aKsyrb9GEFMDAWs/0WA2yiIO7Z37GGHR+Z47jv9dQzG5bswfZtyS9szOSVGYIo7QnlIsIGnbaanNqbsDm4q2lVkzveXHGshrslKrN0vp1Di4d/LwyHBBra05HQVXr/0iMfgtBEmgVV9uzDhkZj1ikVxjGlLgzuBeZAAcx6BkN1zZ9M5WcGb+bf8oXz3MNITZXiFR1QmzMkxhojZsxEPER8AxiHBBu0XKfIjIHcHYhKfjgKFMbkV0dXhaxv3xoBlHYkXLvA9QajUPe4IBBoBCjaCKEpI/LoQRjH95lDwGTC0WV6q6tz9wQFwGMyJ6Eomu5qQ72GiCQQ0GoFANPopqMEyXPz5mysBoOcRVXlCEZG8lwK3gQdAgt9SMy9eF+LtCXjQgIkEOBZOEEJyv2QNTJxfvOWw0E9/GgFtOCDNldGJcIdgunOe0fD2eAK4r0x/HEkgyzwf/HIE0D9IWbl3XtKJYAIaJCCNTM5H20MwCTv8X9Bsmfb2aESIXI7DyaksasZwoFsYZ11kc4LOxp4AYhLsbSEymDtcGQUEk4GXKXACfyoDc3ccQA3amcLJq0xA2EJl0ake5Cgmkoak0WgZHWTX9EJkhi04CAWOg+HkDOrGsQA1LD+6pXq9FGEqW5jq4RGFRLpB0DrI5HQmEgl+fu4wPBwdjMNhno4D+ML8yCP16yMJSAhmZNzhKDesN4TbTg+PdCbWDYnMiHfPCNkoV7hST4wFVMKUFOez7Zx4LAQtdfnyKOzqRRDeO+M80mkLsVgkbWPZ0RA4DO/K2DEaGCLkFLho2x3aUAtBsOn0wIKFKNTq1ajVi1KWH0x3A++5uYWWXXI6WhjqGqybAQzjOS92CCOq05xREG734gpWLwNRLgOF5elYFFgIeaJElbHOW49DvhwOTJwb+wkZpt+VinU2ge2MNCTR/UShSbXEJYGdi5SggfLeUuu27igHl3JrEmAdyHutJS6IUKc6uJhAdWpXrChdAVJaqk13dlYuQ4WX6BKi3byFh+9WWQNdPPtUFOQ1520djHIws2yx1RIzVoudXcCmKF2JtGSzTlnK2fYYAIBufQPf5GTbSYTt8xaYce5cbKbTBerqfPNipWGNdJ3Eo2nfLFDoEbipQNxw9kb9NoPdPDOxYB8X8IqNdQAN/RqpYUfiIm/NkX3ingAIxtfjftOmy62ac+r5dtCCMLlQSwdlZTQ7Ub9emhjYlCMGIAYs2fQ8wmhsPbP2tjpo/lzTMluQod7C3Ry2fadXWQ1ds28SlDe32PSgtVWcZ1HHm2sCVOZDAjd8CzdoK9GHuyYnruq+BjDTnewb+GatRWuzOLfqbCzviwEp6g6vIGFebAR3lY5n0DiAE5jpVlrRb19NRHPzmXq7qna2Hc8kxYaf8omOSM6ZF8H1Wel7TDJlJvANTJ8N2y3EDbuyjcJdQT4tuae2bj21s2UVVxIhWRuUA+Wp21oPAt/pxeirra7X1D8/Y+QJIxK9QLhS9bZtYbk5Pj52YJ5v2ICZ/NMBUdQnm9Eu1GgPWRjPWlXkNTRESDintmo0ErugVTpfPifJv9cvR5zrpgbXZGJ0VXIcr8loNJ4hEuPq6n24c1ddzPUtWm+F+TkP7eqCla+2OLntaKUUfFn9fCRhiV7RXqsuJtR09cs28v70SzAttOtJeoCosTHenUkrLCuJ9rpUxq65Ftds0XUY8Ed6OIYcf3g8DsfqfSxToYCX1zU86Luh4rGxb0/gb3SXUS3fvn/47uTJk9c+XOt66EbXGt+uI4B/0Ws8icWqPn58wwar7Lwa3qHZPYH/Yj1ywLCh/aZOmDBg5GTgNz4D2CYAK8x+JcUAAAAASUVORK5CYII=",Fc="https://fe-oss.jolibox.com/static/coin/jolicoin.png",Rf="https://fe-oss.jolibox.com/static/coin/gem.png";Ti=()=>{let e=F2(CC);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=y3(t,r);if(typeof i=="string"){let o=i;if(n)for(let a in n)o=o.replace(new RegExp(`{{${a}}}`,"g"),String(n[a]));return o}return console.warn(`Translation key "${r}" not found or not a string.`),`[${r}]`},translations:t}},Vk=({text:e,initialFontSize:t,styles:r})=>w("span",{style:r,children:w("span",{style:{fontSize:`${t}px`,display:"-webkit-box",textAlign:"left",WebkitBoxOrient:"vertical",WebkitLineClamp:2,width:"auto",whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:e})}),sn={coinInfo:M`
232
232
  display: flex;
233
233
  width: calc(100% - 40px);
234
234
  max-width: 720px;
@@ -288,7 +288,7 @@ If multiple caches share the same key they might "fight" for each other's style
288
288
  font-size: 16px;
289
289
  font-weight: 600;
290
290
  color: #d9d9d9;
291
- `},qk=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Mc,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:c}=Ti(),l=14,d=Tr(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return w("div",{style:sn.coinInfo.styles,children:[!i&&w("div",{style:sn.coinAmount.styles,children:[w(HC,{text:c("jolicoin.price"),initialFontSize:l,styles:sn.coinLabelContainer.styles}),w("div",{style:sn.coinValue.styles,children:[w("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?sn.gemIcon.styles:sn.coinIcon.styles}),w("span",{children:e})]})]}),!o&&w("div",{style:sn.coinAmountBalance.styles,children:w(HC,{text:c(d)+":\xA0"+s,initialFontSize:l,styles:sn.coinValueText.styles})})]})},Nn={card:M`
291
+ `},UC=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Fc,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:c}=Ti(),l=14,d=Tr(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return w("div",{style:sn.coinInfo.styles,children:[!i&&w("div",{style:sn.coinAmount.styles,children:[w(Vk,{text:c("jolicoin.price"),initialFontSize:l,styles:sn.coinLabelContainer.styles}),w("div",{style:sn.coinValue.styles,children:[w("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?sn.gemIcon.styles:sn.coinIcon.styles}),w("span",{children:e})]})]}),!o&&w("div",{style:sn.coinAmountBalance.styles,children:w(Vk,{text:c(d)+":\xA0"+s,initialFontSize:l,styles:sn.coinValueText.styles})})]})},Nn={card:M`
292
292
  display: flex;
293
293
  flex-direction: column;
294
294
  align-items: center;
@@ -334,7 +334,7 @@ If multiple caches share the same key they might "fight" for each other's style
334
334
  flex-direction: column;
335
335
  justify-content: center;
336
336
  -webkit-tap-highlight-color: transparent;
337
- `,w3=e=>w("div",{style:b3.styles,children:w("div",{style:_3.styles,children:w("div",{style:`${Nn.card.styles} ${e.option.id===e.selectedId?Nn.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[w("div",{style:Nn.coinContainer.styles,children:[w("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?Nn.gemIcon.styles:Nn.coinIcon.styles}),w("span",{style:Nn.coinValue.styles,children:e.option.coins.toLocaleString()})]}),w("div",{style:Nn.price.styles,children:e.option.price})]})})}),S3=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=Mc})=>{let o=ua(),a=s=>{r==null||r(s)};return w(Rk,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:w(Ok,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>w(Nk,{span:o==="landscape"?4:8,children:w(w3,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},I3=Hd(S3);hc={toggleSwitch:M`
337
+ `,w3=e=>w("div",{style:b3.styles,children:w("div",{style:_3.styles,children:w("div",{style:`${Nn.card.styles} ${e.option.id===e.selectedId?Nn.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[w("div",{style:Nn.coinContainer.styles,children:[w("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?Nn.gemIcon.styles:Nn.coinIcon.styles}),w("span",{style:Nn.coinValue.styles,children:e.option.coins.toLocaleString()})]}),w("div",{style:Nn.price.styles,children:e.option.price})]})})}),S3=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=Fc})=>{let o=da(),a=s=>{r==null||r(s)};return w(OC,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:w(NC,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>w(DC,{span:o==="landscape"?4:8,children:w(w3,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},I3=Vd(S3);hc={toggleSwitch:M`
338
338
  position: relative;
339
339
  display: inline-block;
340
340
  width: 33px;
@@ -371,7 +371,7 @@ If multiple caches share the same key they might "fight" for each other's style
371
371
  &:before {
372
372
  transform: translateX(18px);
373
373
  }
374
- `},Uk=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>A3("label",{css:hc.toggleSwitch,children:[VC("input",{css:hc.toggleInput,type:"checkbox",checked:e,onChange:t}),VC("span",{css:[hc.toggleSlider,e&&hc.toggleSliderActive]})]}),Rf=()=>w("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w("g",{"clip-path":"url(#clip0_2716_2719)",children:w("path",{d:"M18.3 6.20997C17.91 5.81997 17.28 5.81997 16.89 6.20997L12 11.09L7.10997 6.19997C6.71997 5.80997 6.08997 5.80997 5.69997 6.19997C5.30997 6.58997 5.30997 7.21997 5.69997 7.60997L10.59 12.5L5.69997 17.39C5.30997 17.78 5.30997 18.41 5.69997 18.8C6.08997 19.19 6.71997 19.19 7.10997 18.8L12 13.91L16.89 18.8C17.28 19.19 17.91 19.19 18.3 18.8C18.69 18.41 18.69 17.78 18.3 17.39L13.41 12.5L18.3 7.60997C18.68 7.22997 18.68 6.58997 18.3 6.20997Z",fill:"#979797"})}),w("defs",{children:w("clipPath",{id:"clip0_2716_2719",children:w("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),ke={modal:M`
374
+ `},MC=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>A3("label",{css:hc.toggleSwitch,children:[$k("input",{css:hc.toggleInput,type:"checkbox",checked:e,onChange:t}),$k("span",{css:[hc.toggleSlider,e&&hc.toggleSliderActive]})]}),Of=()=>w("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w("g",{"clip-path":"url(#clip0_2716_2719)",children:w("path",{d:"M18.3 6.20997C17.91 5.81997 17.28 5.81997 16.89 6.20997L12 11.09L7.10997 6.19997C6.71997 5.80997 6.08997 5.80997 5.69997 6.19997C5.30997 6.58997 5.30997 7.21997 5.69997 7.60997L10.59 12.5L5.69997 17.39C5.30997 17.78 5.30997 18.41 5.69997 18.8C6.08997 19.19 6.71997 19.19 7.10997 18.8L12 13.91L16.89 18.8C17.28 19.19 17.91 19.19 18.3 18.8C18.69 18.41 18.69 17.78 18.3 17.39L13.41 12.5L18.3 7.60997C18.68 7.22997 18.68 6.58997 18.3 6.20997Z",fill:"#979797"})}),w("defs",{children:w("clipPath",{id:"clip0_2716_2719",children:w("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),Ce={modal:M`
375
375
  font-family: PingFangSC-Regular;
376
376
  background-color: #1a1a1a;
377
377
  color: white;
@@ -459,19 +459,19 @@ If multiple caches share the same key they might "fight" for each other's style
459
459
  border-radius: 2px;
460
460
  margin: 0 auto;
461
461
  -webkit-tap-highlight-color: transparent;
462
- `},E3=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,currency:n="JOLI_COIN",onConfirm:i,onClose:o,onEnableDeductChanged:a,confirmButtonKey:s,cancelButtonKey:c})=>{let[l,d]=cr(r),u=ua(),{t:p}=Ti(),f=()=>{i(l)},h=Tr(()=>n==="JOLI_GEM"?Pf:Mc,[n]),v=Tr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),b=Tr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),y=Mt(()=>{d(!l),a(!l)},[l]);return w("div",{style:`${ke.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[w("div",{style:ke.header.styles,children:[w(qk,{unlockNeedsAmount:e,balanceAmount:t,coinImage:h,currency:n}),w("button",{style:ke.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:w(Rf,{})})]}),w("div",{style:ke.content.styles,children:[w("h2",{style:ke.title.styles,children:p(v)}),!r&&w("div",{style:ke.autoDeductOption.styles,children:[w("span",{style:M`
462
+ `},E3=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,currency:n="JOLI_COIN",onConfirm:i,onClose:o,onEnableDeductChanged:a,confirmButtonKey:s,cancelButtonKey:c})=>{let[l,d]=cr(r),u=da(),{t:p}=Ti(),f=()=>{i(l)},m=Tr(()=>n==="JOLI_GEM"?Rf:Fc,[n]),v=Tr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),b=Tr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),y=Mt(()=>{d(!l),a(!l)},[l]);return w("div",{style:`${Ce.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[w("div",{style:Ce.header.styles,children:[w(UC,{unlockNeedsAmount:e,balanceAmount:t,coinImage:m,currency:n}),w("button",{style:Ce.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:w(Of,{})})]}),w("div",{style:Ce.content.styles,children:[w("h2",{style:Ce.title.styles,children:p(v)}),!r&&w("div",{style:Ce.autoDeductOption.styles,children:[w("span",{style:M`
463
463
  font-size: 12px;
464
464
  font-weight: 400;
465
465
  line-height: 1.2;
466
466
  color: #979797;
467
- `.styles,children:p(b)}),w(Uk,{enableAutoDeduct:l,toggleEnableAutoDeduct:y})]}),w("section",{style:`${ke.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[w("button",{style:`${ke.confirmButton.styles} ${ke.buttonFlex.styles}`,onClick:f,children:p(s)}),w("button",{style:`${ke.cancelButton.styles} ${ke.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(c)})]})]})]})},C3=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],currency:i="JOLI_COIN",onConfirm:o,onClose:a,onEnableDeductChanged:s,onSelect:c,confirmButtonKey:l,cancelButtonKey:d})=>{let[u,p]=cr(r),{t:f}=Ti(),[h,v]=cr(()=>{var k,E;return((k=n.find(H=>H.defaultSelected))==null?void 0:k.productId)||((E=n==null?void 0:n[0])==null?void 0:E.productId)}),b=ua(),y=()=>{o(h)},_=Mt(k=>{console.log(k),v(k),c(k)},[]),A=Mt(()=>{p(!u),s(!u)},[u]),C=Tr(()=>i==="JOLI_GEM"?Pf:Mc,[i]),x=Tr(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),w("div",{style:ke.modal.styles,children:[w("div",{style:ke.header.styles,children:[w(qk,{unlockNeedsAmount:e,balanceAmount:t,coinImage:C,currency:i}),w("button",{style:ke.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:w(Rf,{})})]}),w("div",{style:ke.content.styles,children:[w("div",{style:M`
467
+ `.styles,children:p(b)}),w(MC,{enableAutoDeduct:l,toggleEnableAutoDeduct:y})]}),w("section",{style:`${Ce.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[w("button",{style:`${Ce.confirmButton.styles} ${Ce.buttonFlex.styles}`,onClick:f,children:p(s)}),w("button",{style:`${Ce.cancelButton.styles} ${Ce.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(c)})]})]})]})},k3=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],currency:i="JOLI_COIN",onConfirm:o,onClose:a,onEnableDeductChanged:s,onSelect:c,confirmButtonKey:l,cancelButtonKey:d})=>{let[u,p]=cr(r),{t:f}=Ti(),[m,v]=cr(()=>{var C,E;return((C=n.find(H=>H.defaultSelected))==null?void 0:C.productId)||((E=n==null?void 0:n[0])==null?void 0:E.productId)}),b=da(),y=()=>{o(m)},_=Mt(C=>{console.log(C),v(C),c(C)},[]),A=Mt(()=>{p(!u),s(!u)},[u]),k=Tr(()=>i==="JOLI_GEM"?Rf:Fc,[i]),x=Tr(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),w("div",{style:Ce.modal.styles,children:[w("div",{style:Ce.header.styles,children:[w(UC,{unlockNeedsAmount:e,balanceAmount:t,coinImage:k,currency:i}),w("button",{style:Ce.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:w(Of,{})})]}),w("div",{style:Ce.content.styles,children:[w("div",{style:M`
468
468
  padding: 16px 0px;
469
- `.styles,children:w(I3,{options:n.map(k=>({id:k.productId,coins:k.quantity,price:k.totalAmountStr})),coinImageSrc:C,selectedId:h,currency:i,onSelect:k=>_(k.id)})}),!r&&w("div",{style:ke.autoDeductOption.styles,children:[w("span",{style:M`
469
+ `.styles,children:w(I3,{options:n.map(C=>({id:C.productId,coins:C.quantity,price:C.totalAmountStr})),coinImageSrc:k,selectedId:m,currency:i,onSelect:C=>_(C.id)})}),!r&&w("div",{style:Ce.autoDeductOption.styles,children:[w("span",{style:M`
470
470
  font-size: 12px;
471
471
  font-weight: 400;
472
472
  line-height: 1.2;
473
473
  color: #979797;
474
- `.styles,children:f(x)}),w(Uk,{enableAutoDeduct:u,toggleEnableAutoDeduct:A})]}),w("section",{style:`${ke.buttonContainer.styles} ${b==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[w("button",{style:`${ke.confirmButton.styles} ${ke.buttonFlex.styles}`,onClick:y,children:f(l)}),w("button",{style:`${ke.cancelButton.styles} ${ke.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};x3=M`
474
+ `.styles,children:f(x)}),w(MC,{enableAutoDeduct:u,toggleEnableAutoDeduct:A})]}),w("section",{style:`${Ce.buttonContainer.styles} ${b==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[w("button",{style:`${Ce.confirmButton.styles} ${Ce.buttonFlex.styles}`,onClick:y,children:f(l)}),w("button",{style:`${Ce.cancelButton.styles} ${Ce.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};x3=M`
475
475
  display: inline-flex;
476
476
  align-items: center;
477
477
  justify-content: center;
@@ -495,7 +495,7 @@ If multiple caches share the same key they might "fight" for each other's style
495
495
  transform: translateX(-50%);
496
496
  z-index: 2;
497
497
  pointer-events: none;
498
- `;$t=J(P({},ke),{header:M`
498
+ `;$t=J(P({},Ce),{header:M`
499
499
  display: flex;
500
500
  justify-content: flex-end;
501
501
  align-items: center;
@@ -549,7 +549,7 @@ If multiple caches share the same key they might "fight" for each other's style
549
549
  border-top: 8px solid #4f396d;
550
550
  z-index: 2;
551
551
  }
552
- `}),R3={JOLI_COIN:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_COIN":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now(),JOLI_GEM:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_GEM":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now()},O3=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:c}=Ti(),l=R3[t];return w("div",{style:{paddingTop:"80px"},children:w("section",{style:`${$t.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[w(k3,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),w("div",{style:$t.header.styles,children:w("button",{style:`${$t.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:w(Rf,{})})}),w("div",{style:$t.introduct.styles,children:[s?w("span",{style:$t.introductSubTitle.styles,children:c("loginGuide.instead")}):null,w("span",{style:$t.introductTitle.styles,children:w(hf,{children:c("loginGuide.introduct"),values:{coin:w("img",{src:l,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),w("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:w("section",{style:`${$t.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[w("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[w("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:w(P3,{children:w(hf,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:c("loginGuide.tips"),values:{coin:w(ze,{children:[w("img",{src:l,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),w("button",{style:`${$t.confirmButton.styles} ${$t.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:w("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:c(n)})})]}),w("button",{style:`${$t.cancelButton.styles} ${$t.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:c(i)})]})})]})})},Mk=e=>{let t=Uc({title:"",content:w(E3,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"316px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},Fk=e=>{let t=Uc({title:"",content:w(C3,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,paymentChoices:e.data.paymentChoices,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged,onSelect:e.onSelect}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},Bk=e=>{let t=Uc({title:"",content:w(O3,{currency:e.data.currency,rewardType:e.data.rewardType,rewardValue:e.data.rewardValue,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress}),backdropColor:"#1a1a1a",placement:"center",noHeader:!0,padding:"0px",preventCloseOnBackdropClick:!0});return t.show(),t},jk=new Map,un=(e,t)=>{jk.set(e,t)};un(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return w("div",{style:r,children:w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[w("g",{clipPath:"url(#clip0_2247_16523)",children:w("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),w("defs",{children:w("clipPath",{id:"clip0_2247_16523",children:w("rect",{width:"24",height:"24",fill:"white"})})})]})})});un(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:Lk;return w("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});un(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:Pf,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return w("img",{src:r,alt:"\u{1FA99}",style:J(P({},n),{verticalAlign:"middle"})})});N3=/^\{slot-i18n-(.+?)\}/,D3=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Ti(),i=n(e,t);return w("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};un(N3,(e,t)=>{var n;let r=e[1];return r?w(D3,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),w("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});L3=/^\{slot-i18ntran-(.+?)\}/,q3=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=Ti(),o=i(e),a=Object.entries(r).reduce((s,[c,l])=>(s[c]=l(t[c]),s),{});return w(hf,{children:o||n,values:P(P({},t),a)})},U3={coin:e=>w(ze,{children:[w("img",{src:Lk,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};un(L3,(e,t)=>{var n,i;let r=e[1];return r?w(q3,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:U3,fallbackText:`[${r}]`}):w("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});M3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";un(/^\{slot-success\}/,(e,t)=>w("img",{src:M3,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));F3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";un(/^\{slot-error\}/,(e,t)=>w("img",{src:F3,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));B3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAwCAYAAAC4wJK5AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMYSURBVHgB7ZfPi1JRFMfvjNO22VbQZlrVbpr+AIPqDxgYiJjVLGYimPUsZpHrFkIuQmoTriLElYggKhGRIgniwoUkSiphimaZv5+dc7jXOZg2My9tnnC/8PA933n3ns+955x7rxBaWlpaWlpaWlogG1wreLO1tXVJ/rcmlkjktM/nu28Yxg+4hsVi8Y18ZxNLIAJIJBIHI1Cv1+sPQQAyisfjDmFxYehQuJTLZQ8CdLvd3khKzkZGWFhjgEql8g6dhsHvcwD8hZl4JSwqBKA4HwwGXzBsAGCgAPAerlGz2UxLe8slNwKsHh0drYPzrX6/b6DfCgCgKJyq1WpI2lsOgEbf4XBsoKMAMDBwGk5mgADy+fwLaW85AKpAsVjsgapAIyaV0Nls9gm3t5LIoWQy+VgC9DgAzgj++v3+e9zejFaFXC1nPJsVhQSUytczAGhGPB7PTWlvemFDh4XL5dqEhPqUy+U+7uzsXOHvTGhcQuv1+geZtLyEGvCMCT3Y399fF6ximdXK4eHhDdmRgasl3gcCgU1hDmTsUKfTyWNz6DNLYOzDgHclu92+Jts3O1gngoTySt9VotGohcPh2+cEoTCEQbkMn/+aUkKp3Xa7rVbiNTGfsBUCVsZnstoZkyBut/uW7Og0EBp9p9O5weLdmFwDoIT6GMDctAo5YAOnv0O/Q96xSry9vb1rp4BQRQkGg3f5d0oqoUul0nNuP29RbELfP2eByGSfBkIOwWwe8BmcnNFIJPKI2y9KCqR1DhByqFAovOQjPvldNBq1sz4WLko0SPKZINvb21clCAHUarX3U0LIUM/Hx8fXZdv/9XBDIJCIM0F2d3cRRLRarc9Y1Ya8tIE9lmrc4OFGT5ytKCwM5G+hBVWy/VWewMYAuB4gD5iUZDu2iwIQEyB/JDsfdXWjDjWNRiPBvp/PGvCPOgsIjjwlNOyR3rLvLAGgNDO0eEXKZDIOaW+5bbTS1GRX54JUKvVQ2lkWQIlAAOKbzAGaCa/Xe4e9XwqRo6FQ6Gk6nXbD4jeXbfRFiDs8r8OTlpaWlpaWltJvJhoeBvCfSkcAAAAASUVORK5CYII=";un(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=B3,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return w("img",{src:r,alt:"\u{1FA99}",style:J(P({},n),{verticalAlign:"middle"})})});at="-ms-",xc="-moz-",ee="-webkit-",Jk="comm",Of="rule",Nf="decl",j3="@import",Gk="@keyframes",J3="@layer",G3=Math.abs,Fc=String.fromCharCode,H3=bf.default;Bc=1,ki=1,Vk=0,yt=0,Ue=0,Pi="";oV=function(e,t,r){for(var n=0,i=0;n=i,i=ur(),n===38&&i===12&&(t[r]=1),!ca(i);)Pt();return da(e,yt)},aV=function(e,t){var r=-1,n=44;do switch(ca(n)){case 0:n===38&&ur()===12&&(t[r]=1),e[r]+=oV(yt-1,t,r);break;case 2:e[r]+=Sc(n);break;case 4:if(n===44){e[++r]=ur()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Fc(n)}while(n=Pt());return e},sV=function(e,t){return Kk(aV($k(e),t))},WC=new yf.default,cV=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!WC.get(r))&&!n){WC.set(e,!0);for(var i=[],o=sV(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},lV=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};uV=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Nf:e.return=Wk(e.value,e.length);break;case Gk:return Ai([Qo(e,{value:te(e.value,"@","@"+ee)})],n);case Of:if(e.length)return K3(e.props,function(i){switch($3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ai([Qo(e,{props:[te(i,/:(read-\w+)/,":"+xc+"$1")]})],n);case"::placeholder":return Ai([Qo(e,{props:[te(i,/:(plac\w+)/,":"+ee+"input-$1")]}),Qo(e,{props:[te(i,/:(plac\w+)/,":"+xc+"$1")]}),Qo(e,{props:[te(i,/:(plac\w+)/,at+"input-$1")]})],n)}return""})}},dV=[uV],pV=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,je.default)(Array.prototype).call(r,function(h){var v=h.getAttribute("data-emotion");(0,Pr.default)(v).call(v," ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||dV,i={},o,a=[];o=e.container||document.head,(0,je.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(h)});var s,c=[cV,lV];{var l,d=[rV,iV(function(h){l.insert(h)})],u=nV((0,Tc.default)(c).call(c,n,d)),p=function(h){return Ai(eV(h),u)};s=function(h,v,b,y){l=b,p(h?h+"{"+v.styles+"}":v.styles),y&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new uk({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};fV=function(e){var t=pV(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=ln(s,t.registered,void 0);return Dc(t,l,!1),t.key+"-"+l.name},n=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=ln(s,t.registered),d="animation-"+l.name;return zC(t,{name:l.name,styles:"@keyframes "+d+"{"+l.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=ln(s,t.registered);zC(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return rf(t.registered,r,hV(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,je.default)(a).call(a,function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:(0,nf.default)(oa).call(oa,null,t.registered),merge:(0,nf.default)(rf).call(rf,null,t.registered,r)}},hV=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if((0,ea.default)(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},mV=fV({key:"css"}),gV=mV.css,vV=(e,t)=>{var a;let r=P({color:"#FFF",display:"inline-block",width:"auto",minWidth:"fit-content",whiteSpace:"nowrap"},(a=t==null?void 0:t.customStyle)==null?void 0:a.span);if(!e.includes("{slot-"))return w("span",{style:r,children:e});let n=[],i=0;for(;i<e.length;){let s=null,c=1/0,l=null;for(let[d,u]of jk.entries()){let p=d.source.startsWith("^")?d.source.slice(1):d.source,f=new RegExp(p,"g");f.lastIndex=i;let h=f.exec(e);h&&h.index<c&&(s=h,c=h.index,l=u)}if(s&&l){if(c>i){let d=e.substring(i,c);n.push(w("span",{style:r,children:d}))}n.push(l(s,t)),i=c+s[0].length}else{let d=e.substring(i);n.push(w("span",{style:r,children:d}));break}}let o=gV`
552
+ `}),R3={JOLI_COIN:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_COIN":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now(),JOLI_GEM:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_GEM":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now()},O3=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:c}=Ti(),l=R3[t];return w("div",{style:{paddingTop:"80px"},children:w("section",{style:`${$t.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[w(C3,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),w("div",{style:$t.header.styles,children:w("button",{style:`${$t.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:w(Of,{})})}),w("div",{style:$t.introduct.styles,children:[s?w("span",{style:$t.introductSubTitle.styles,children:c("loginGuide.instead")}):null,w("span",{style:$t.introductTitle.styles,children:w(hf,{children:c("loginGuide.introduct"),values:{coin:w("img",{src:l,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),w("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:w("section",{style:`${$t.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[w("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[w("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:w(P3,{children:w(hf,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:c("loginGuide.tips"),values:{coin:w(ze,{children:[w("img",{src:l,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),w("button",{style:`${$t.confirmButton.styles} ${$t.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:w("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:c(n)})})]}),w("button",{style:`${$t.cancelButton.styles} ${$t.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:c(i)})]})})]})})},FC=e=>{let t=Mc({title:"",content:w(E3,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"316px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},BC=e=>{let t=Mc({title:"",content:w(k3,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,paymentChoices:e.data.paymentChoices,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged,onSelect:e.onSelect}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},jC=e=>{let t=Mc({title:"",content:w(O3,{currency:e.data.currency,rewardType:e.data.rewardType,rewardValue:e.data.rewardValue,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress}),backdropColor:"#1a1a1a",placement:"center",noHeader:!0,padding:"0px",preventCloseOnBackdropClick:!0});return t.show(),t},JC=new Map,un=(e,t)=>{JC.set(e,t)};un(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return w("div",{style:r,children:w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[w("g",{clipPath:"url(#clip0_2247_16523)",children:w("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),w("defs",{children:w("clipPath",{id:"clip0_2247_16523",children:w("rect",{width:"24",height:"24",fill:"white"})})})]})})});un(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:qC;return w("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});un(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:Rf,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return w("img",{src:r,alt:"\u{1FA99}",style:J(P({},n),{verticalAlign:"middle"})})});N3=/^\{slot-i18n-(.+?)\}/,D3=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Ti(),i=n(e,t);return w("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};un(N3,(e,t)=>{var n;let r=e[1];return r?w(D3,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),w("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});L3=/^\{slot-i18ntran-(.+?)\}/,q3=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=Ti(),o=i(e),a=Object.entries(r).reduce((s,[c,l])=>(s[c]=l(t[c]),s),{});return w(hf,{children:o||n,values:P(P({},t),a)})},U3={coin:e=>w(ze,{children:[w("img",{src:qC,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};un(L3,(e,t)=>{var n,i;let r=e[1];return r?w(q3,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:U3,fallbackText:`[${r}]`}):w("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});M3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";un(/^\{slot-success\}/,(e,t)=>w("img",{src:M3,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));F3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";un(/^\{slot-error\}/,(e,t)=>w("img",{src:F3,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));B3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAwCAYAAAC4wJK5AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMYSURBVHgB7ZfPi1JRFMfvjNO22VbQZlrVbpr+AIPqDxgYiJjVLGYimPUsZpHrFkIuQmoTriLElYggKhGRIgniwoUkSiphimaZv5+dc7jXOZg2My9tnnC/8PA933n3ns+955x7rxBaWlpaWlpaWlogG1wreLO1tXVJ/rcmlkjktM/nu28Yxg+4hsVi8Y18ZxNLIAJIJBIHI1Cv1+sPQQAyisfjDmFxYehQuJTLZQ8CdLvd3khKzkZGWFhjgEql8g6dhsHvcwD8hZl4JSwqBKA4HwwGXzBsAGCgAPAerlGz2UxLe8slNwKsHh0drYPzrX6/b6DfCgCgKJyq1WpI2lsOgEbf4XBsoKMAMDBwGk5mgADy+fwLaW85AKpAsVjsgapAIyaV0Nls9gm3t5LIoWQy+VgC9DgAzgj++v3+e9zejFaFXC1nPJsVhQSUytczAGhGPB7PTWlvemFDh4XL5dqEhPqUy+U+7uzsXOHvTGhcQuv1+geZtLyEGvCMCT3Y399fF6ximdXK4eHhDdmRgasl3gcCgU1hDmTsUKfTyWNz6DNLYOzDgHclu92+Jts3O1gngoTySt9VotGohcPh2+cEoTCEQbkMn/+aUkKp3Xa7rVbiNTGfsBUCVsZnstoZkyBut/uW7Og0EBp9p9O5weLdmFwDoIT6GMDctAo5YAOnv0O/Q96xSry9vb1rp4BQRQkGg3f5d0oqoUul0nNuP29RbELfP2eByGSfBkIOwWwe8BmcnNFIJPKI2y9KCqR1DhByqFAovOQjPvldNBq1sz4WLko0SPKZINvb21clCAHUarX3U0LIUM/Hx8fXZdv/9XBDIJCIM0F2d3cRRLRarc9Y1Ya8tIE9lmrc4OFGT5ytKCwM5G+hBVWy/VWewMYAuB4gD5iUZDu2iwIQEyB/JDsfdXWjDjWNRiPBvp/PGvCPOgsIjjwlNOyR3rLvLAGgNDO0eEXKZDIOaW+5bbTS1GRX54JUKvVQ2lkWQIlAAOKbzAGaCa/Xe4e9XwqRo6FQ6Gk6nXbD4jeXbfRFiDs8r8OTlpaWlpaWltJvJhoeBvCfSkcAAAAASUVORK5CYII=";un(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=B3,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return w("img",{src:r,alt:"\u{1FA99}",style:J(P({},n),{verticalAlign:"middle"})})});at="-ms-",Tc="-moz-",ee="-webkit-",GC="comm",Nf="rule",Df="decl",j3="@import",HC="@keyframes",J3="@layer",G3=Math.abs,Bc=String.fromCharCode,H3=_f.default;jc=1,Ci=1,$C=0,yt=0,Ue=0,Pi="";oV=function(e,t,r){for(var n=0,i=0;n=i,i=ur(),n===38&&i===12&&(t[r]=1),!la(i);)Pt();return pa(e,yt)},aV=function(e,t){var r=-1,n=44;do switch(la(n)){case 0:n===38&&ur()===12&&(t[r]=1),e[r]+=oV(yt-1,t,r);break;case 2:e[r]+=Ic(n);break;case 4:if(n===44){e[++r]=ur()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Bc(n)}while(n=Pt());return e},sV=function(e,t){return WC(aV(KC(e),t))},zk=new bf.default,cV=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!zk.get(r))&&!n){zk.set(e,!0);for(var i=[],o=sV(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},lV=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};uV=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Df:e.return=zC(e.value,e.length);break;case HC:return Ai([Xo(e,{value:te(e.value,"@","@"+ee)})],n);case Nf:if(e.length)return K3(e.props,function(i){switch($3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ai([Xo(e,{props:[te(i,/:(read-\w+)/,":"+Tc+"$1")]})],n);case"::placeholder":return Ai([Xo(e,{props:[te(i,/:(plac\w+)/,":"+ee+"input-$1")]}),Xo(e,{props:[te(i,/:(plac\w+)/,":"+Tc+"$1")]}),Xo(e,{props:[te(i,/:(plac\w+)/,at+"input-$1")]})],n)}return""})}},dV=[uV],pV=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,je.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,Pr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||dV,i={},o,a=[];o=e.container||document.head,(0,je.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(m)});var s,c=[cV,lV];{var l,d=[rV,iV(function(m){l.insert(m)})],u=nV((0,Pc.default)(c).call(c,n,d)),p=function(m){return Ai(eV(m),u)};s=function(m,v,b,y){l=b,p(m?m+"{"+v.styles+"}":v.styles),y&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new dC({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};fV=function(e){var t=pV(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=ln(s,t.registered,void 0);return Lc(t,l,!1),t.key+"-"+l.name},n=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=ln(s,t.registered),d="animation-"+l.name;return Yk(t,{name:l.name,styles:"@keyframes "+d+"{"+l.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=ln(s,t.registered);Yk(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return nf(t.registered,r,mV(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,je.default)(a).call(a,function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:(0,of.default)(aa).call(aa,null,t.registered),merge:(0,of.default)(nf).call(nf,null,t.registered,r)}},mV=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if((0,ta.default)(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},hV=fV({key:"css"}),gV=hV.css,vV=(e,t)=>{var a;let r=P({color:"#FFF",display:"inline-block",width:"auto",minWidth:"fit-content",whiteSpace:"nowrap"},(a=t==null?void 0:t.customStyle)==null?void 0:a.span);if(!e.includes("{slot-"))return w("span",{style:r,children:e});let n=[],i=0;for(;i<e.length;){let s=null,c=1/0,l=null;for(let[d,u]of JC.entries()){let p=d.source.startsWith("^")?d.source.slice(1):d.source,f=new RegExp(p,"g");f.lastIndex=i;let m=f.exec(e);m&&m.index<c&&(s=m,c=m.index,l=u)}if(s&&l){if(c>i){let d=e.substring(i,c);n.push(w("span",{style:r,children:d}))}n.push(l(s,t)),i=c+s[0].length}else{let d=e.substring(i);n.push(w("span",{style:r,children:d}));break}}let o=gV`
553
553
  display: 'flex',
554
554
  alignItems: 'flex-start',
555
555
  gap: '4px',
@@ -610,7 +610,7 @@ If multiple caches share the same key they might "fight" for each other's style
610
610
  ${Object.entries(o).map(([d,u])=>`${d}: ${u};`).join(`
611
611
  `)}
612
612
  `}
613
- `;return w("div",{className:`toast toast-${t}`,style:l.styles,children:e})},bV=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),YC=Math.max(20,bV),QC=12,zk=[],Yk=[];Or=(e,t)=>g(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield GC.acquire(),i=r.contentDocument;if(!i)return;let o=i.createElement("div");i.body.appendChild(o);let a=(t==null?void 0:t.position)||"top",s=a==="top"?zk:Yk;s.push(o);let c=vV(e,t),l=Tk(),d=Ek[l].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),XC(a),GC.release()}setTimeout(()=>XC(a),0),zr(w(Ik,{value:n,children:w(kk,{definition:d,children:w(yV,{message:c,type:t==null?void 0:t.type,position:a,duration:t==null?void 0:t.duration,onClose:u,customStyle:(p=t==null?void 0:t.customStyle)==null?void 0:p.base})})}),o)}),ZC={container:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"transparent",zIndex:"10000"},spinner:{width:"36px",height:"36px",border:"3px solid transparent",borderTopColor:"#A86FF7",borderLeftColor:"#A86FF7",borderRadius:"50%",animation:"spin 1s linear infinite"}},_V=`
613
+ `;return w("div",{className:`toast toast-${t}`,style:l.styles,children:e})},bV=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),Qk=Math.max(20,bV),Xk=12,YC=[],QC=[];Or=(e,t)=>g(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield Hk.acquire(),i=r.contentDocument;if(!i)return;let o=i.createElement("div");i.body.appendChild(o);let a=(t==null?void 0:t.position)||"top",s=a==="top"?YC:QC;s.push(o);let c=vV(e,t),l=PC(),d=kC[l].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),Zk(a),Hk.release()}setTimeout(()=>Zk(a),0),zr(w(AC,{value:n,children:w(xC,{definition:d,children:w(yV,{message:c,type:t==null?void 0:t.type,position:a,duration:t==null?void 0:t.duration,onClose:u,customStyle:(p=t==null?void 0:t.customStyle)==null?void 0:p.base})})}),o)}),eC={container:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"transparent",zIndex:"10000"},spinner:{width:"36px",height:"36px",border:"3px solid transparent",borderTopColor:"#A86FF7",borderLeftColor:"#A86FF7",borderRadius:"50%",animation:"spin 1s linear infinite"}},_V=`
614
614
  @keyframes spin {
615
615
  0% {
616
616
  transform: rotate(0deg);
@@ -619,7 +619,7 @@ If multiple caches share the same key they might "fight" for each other's style
619
619
  transform: rotate(360deg);
620
620
  }
621
621
  }
622
- `,wV=()=>w("div",{style:ZC.container,children:[w("style",{children:_V}),w("div",{style:ZC.spinner})]});See=Ln()});function Qk(){return g(this,null,function*(){if(Lf)return Lf;let t=`${S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${S.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield Y(t);return Lf=r,r})}function Xk(){return g(this,null,function*(){let e=new mt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(qf)return e.resolve(!0),e.promise;let t=yield Qk();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;qf=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};j("RecommendedGuide",P({eventType:W.View},o));let a=Dk({games:r.games,title:n,buttons:i,onClose:s=>{var c;switch(qf=!1,s.type){case"quit":j("RecommendedGuide",{eventType:W.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":j("RecommendedGuide",P({eventType:W.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((c=s.data)!=null&&c.game){let l=s.data.game;SV(l),j("GameItem",{eventType:W.Click,gameId:l.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:j("RecommendedGuide",P({eventType:W.Hide},o)),e.resolve(!0);break}}});return e.promise})}var Lf,SV,qf,Zk=T(()=>{"use strict";V();de();D();dr();gt();At();Lf=null;Qk();SV=e=>{var a;let{data:t}=q("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",S.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;q("openSchemaSync",{schema:o})},qf=!1});function AV(e){let t=P(P({},IV),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:c}=t,l=0,d=0,u=!1,p=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},f=()=>a?300:0;function h(){let{overlayTransition:_,containerTransition:A,iframeTransition:C}=p();me=document.createElement("div"),me.id="jolibox-modal-overlay",me.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${_}; opacity:0; visibility:hidden;`,se=document.createElement("div"),se.id="jolibox-modal-container",se.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${A};`;let x=document.createElement("div");x.id="jolibox-modal-loading",x.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let k=document.createElement("style");k.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(k);let E=document.createElement("div");if(E.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",Ft=document.createElement("iframe"),Ft.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${C};`,Ft.src=r,Ft.onload=()=>{x.parentNode&&x.parentNode.removeChild(x),Ft.style.opacity="1",v(),c==null||c(),Ae.emit("onModalIframeLoaded",{url:r})},E.appendChild(Ft),E.appendChild(x),se.appendChild(E),i){let H=document.createElement("div");H.style.cssText="position:absolute; top:10px; right:10px; width:30px; height:30px; background:rgba(0,0,0,0.1); border-radius:15px; display:flex; justify-content:center; align-items:center; cursor:pointer; z-index:10;",H.innerHTML="\u2715",H.onclick=y,se.appendChild(H)}me.appendChild(se),document.body.appendChild(me),me.addEventListener("click",function(H){H.target===me&&y()}),o&&b()}function v(){!me||!se||u||(me.style.visibility="visible",a?requestAnimationFrame(()=>{me&&(me.style.opacity="1"),se&&(se.style.transform="translateY(0)"),u=!0}):(me&&(me.style.opacity="1"),se&&(se.style.transform="translateY(0)"),u=!0),q("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function b(){if(!se)return;let _=x=>{l=x.touches[0].clientY},A=x=>{if(!u)return;d=x.touches[0].clientY;let k=d-l;k>0&&(se&&(se.style.transition="none",se.style.transform=`translateY(${k}px)`),x.preventDefault())},C=()=>{!u||!se||(se.style.transition=a?"transform 0.3s ease":"none",d-l>80?y():se.style.transform="translateY(0)")};se.addEventListener("touchstart",_),se.addEventListener("touchmove",A),se.addEventListener("touchend",C)}function y(){!me||!se||!u||(a?(se.style.transform="translateY(100%)",me.style.opacity="0"):me.style.visibility="hidden",u=!1,q("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{me&&(me.remove(),me=null,se=null,Ft=null,s==null||s(),Ae.emit("onModalIframeClosed",{url:r}))},f()))}return h(),{close:y}}function ex(){return window.joliboxUI=J(P({},window.joliboxUI),{createIframeModal:AV}),()=>{window.joliboxUI=void 0,me&&me.parentNode&&me.parentNode.removeChild(me),se&&se.parentNode&&se.parentNode.removeChild(se),Ft&&Ft.parentNode&&Ft.parentNode.removeChild(Ft),me=null,se=null,Ft=null}}var IV,me,se,Ft,tx=T(()=>{"use strict";de();V();D();IV={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},me=null,se=null,Ft=null});var sx,Gc,Mf,Hc,Oi,cx,Ni,lx,ux,dx,Ri,rx,Jc,nx,EV,px,Ff,ix,fx,CV,ox,Uf,hx,ax,kV,mx,gx=T(()=>{sx=-1,Gc=function(e){addEventListener("pageshow",function(t){t.persisted&&(sx=t.timeStamp,e(t))},!0)},Mf=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Hc=function(){var e=Mf();return e&&e.activationStart||0},Oi=function(e,t){var r=Mf(),n="navigate";return sx>=0?n="back-forward-cache":r&&(document.prerendering||Hc()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},cx=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(i){Promise.resolve().then(function(){t(i.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(i){}},Ni=function(e,t,r,n){var i,o;return function(a){t.value>=0&&(a||n)&&((o=t.value-(i||0))||i===void 0)&&(i=t.value,t.delta=o,t.rating=function(s,c){return s>c[1]?"poor":s>c[0]?"needs-improvement":"good"}(t.value,r),e(t))}},lx=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},ux=function(e){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&e()})},dx=function(e){var t=!1;return function(){t||(e(),t=!0)}},Ri=-1,rx=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Jc=function(e){document.visibilityState==="hidden"&&Ri>-1&&(Ri=e.type==="visibilitychange"?e.timeStamp:0,EV())},nx=function(){addEventListener("visibilitychange",Jc,!0),addEventListener("prerenderingchange",Jc,!0)},EV=function(){removeEventListener("visibilitychange",Jc,!0),removeEventListener("prerenderingchange",Jc,!0)},px=function(){return Ri<0&&(Ri=rx(),nx(),Gc(function(){setTimeout(function(){Ri=rx(),nx()},0)})),{get firstHiddenTime(){return Ri}}},Ff=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},ix=[1800,3e3],fx=function(e,t){t=t||{},Ff(function(){var r,n=px(),i=Oi("FCP"),o=cx("paint",function(a){a.forEach(function(s){s.name==="first-contentful-paint"&&(o.disconnect(),s.startTime<n.firstHiddenTime&&(i.value=Math.max(s.startTime-Hc(),0),i.entries.push(s),r(!0)))})});o&&(r=Ni(e,i,ix,t.reportAllChanges),Gc(function(a){i=Oi("FCP"),r=Ni(e,i,ix,t.reportAllChanges),lx(function(){i.value=performance.now()-a.timeStamp,r(!0)})}))})},CV=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=dx(e),document.visibilityState==="hidden"?e():(r=t(e),ux(e)),r},ox=[2500,4e3],Uf={},hx=function(e,t){t=t||{},Ff(function(){var r,n=px(),i=Oi("LCP"),o=function(c){t.reportAllChanges||(c=c.slice(-1)),c.forEach(function(l){l.startTime<n.firstHiddenTime&&(i.value=Math.max(l.startTime-Hc(),0),i.entries=[l],r())})},a=cx("largest-contentful-paint",o);if(a){r=Ni(e,i,ox,t.reportAllChanges);var s=dx(function(){Uf[i.id]||(o(a.takeRecords()),a.disconnect(),Uf[i.id]=!0,r(!0))});["keydown","click"].forEach(function(c){addEventListener(c,function(){return CV(s)},{once:!0,capture:!0})}),ux(s),Gc(function(c){i=Oi("LCP"),r=Ni(e,i,ox,t.reportAllChanges),lx(function(){i.value=performance.now()-c.timeStamp,Uf[i.id]=!0,r(!0)})})}})},ax=[800,1800],kV=function e(t){document.prerendering?Ff(function(){return e(t)}):document.readyState!=="complete"?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},mx=function(e,t){t=t||{};var r=Oi("TTFB"),n=Ni(e,r,ax,t.reportAllChanges);kV(function(){var i=Mf();i&&(r.value=Math.max(i.responseStart-Hc(),0),r.entries=[i],n(!0),Gc(function(){r=Oi("TTFB",0),(n=Ni(e,r,ax,t.reportAllChanges))(!0)}))})}});var wx={};$m(wx,{config:()=>MV});function TV(){Sn.on("isAdShowing",e=>{Kc=e,$r(Kc)&&S.mpType==="game"&&q("updateContainerConfigSync",{displayCapsuleButton:!Kc,webviewId:S.webviewId})})}function PV(){Ae.on("onInterceptSystemExit",({intercept:e})=>{yx=e})}function RV(){Ae.on("onInterceptBackPress",({intercept:e})=>{xV=e}),Ie("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;_x(t),Ae.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function OV(){Ae.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),j("onDocumentReady",{start_timestamp:zc,timestamp:Date.now()})})}function NV(){Ie("onI18nChanged",({language:e})=>{Ae.emit("onI18nChanged",{i18n:e})})}function vx(e){S.mpType==="game"&&Ct.start(e)}function DV(){Ie("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),Ae.emit("LifecycleEvent.onReady",P({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),j("joliboxServiceReady",{start_timestamp:zc,timestamp:Date.now()}),_e("onJoliboxHideLoading")||vx(t),xk(()=>S.language)}),Ie("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;_x(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)}),Ie("onJoliboxHideLoading",({duration:e})=>{vx(e)})}function LV(){let e=()=>{j("onBeforeExit",{timestamp:Date.now()}),Vc==null||Vc(),$c==null||$c(),Ct.close(Date.now()-zc)},t=()=>Kc||yx;qt.onDoExit(()=>g(this,null,function*(){return t()?!0:S.platform==="ios"?(e(),!1):$r(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):Wc!=null&&Wc.canShowRecommended&&!bx&&(yield Xk())?!0:(e(),!1)})),qt.onDoBackPress(()=>g(this,null,function*(){return!!t()}))}function qV(){fx(e=>{j("GameFCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),hx(e=>{j("GameLCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),mx(e=>{j("GameTTFB",{value:e.value,rating:e.rating,navigationType:e.navigationType})})}function UV(){return g(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield Y(e);t&&(Wc=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function MV(){zc=Date.now(),DV(),TV(),PV(),RV(),LV(),OV(),NV(),UV(),qV(),$c=ex(),Vc=yv()}var Vc,$c,zc,Kc,Wc,yx,xV,bx,_x,Sx=T(()=>{"use strict";de();V();D();At();bv();ys();Zk();gt();dr();tx();gx();ms();Kc=!1,Wc=null,yx=!1,xV=!1,bx=!1,_x=e=>{$r(e)&&(bx=e)};qt.onReady(()=>{})});var Ix,FV,BV,jV,JV,Ax=T(()=>{"use strict";D();We();de();V();Ix=z(),FV="env",BV="getSystemInfoSync",jV=Q(BV,{implement:()=>{var r;let e=q("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:S.viewport.statusBarHeight,navigationBarHeight:S.viewport.navigationBarHeight}}}}),JV=Q(FV,{implement:()=>{var t;let e=q("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});Ix.registerCommand("API.getSystemInfoSync",jV);Ix.registerCommand("API.env",JV);L("env",{version:"1.0.0"});L("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var Ex=m(Bf=>{"use strict";D();We();It();de();At();V();var GV="exitGame",HV="onReady",VV="onJoliboxShow",$V="onJoliboxHide",Yc=z(),Qc=Zn(Te),KV=K(GV,{paramsSchema:I.tuple(I.function(),I.boolean().optional().default(!1)),implement:(e,t=!1)=>g(Bf,null,function*(){Qc(e).call(Bf),$r(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&mg("onRetentionResult",{shouldStay:t},S.from,!0),t||S.setDoExitDirectly(),yield fe("exitAppAsync")})}),WV=Q(VV,{paramsSchema:I.tuple(I.function()),implement(e){let t=Qc(e);Ie("onJoliboxEnterForeground",()=>{t.call(this),mo.emit("visible",!0)})}}),zV=Q($V,{paramsSchema:I.tuple(I.function()),implement(e){let t=Qc(e);Ie("onJoliboxEnterBackground",()=>{t.call(this),mo.emit("visible",!1)})}}),YV=Q(HV,{paramsSchema:I.tuple(I.function()),implement(e){let t=Qc(e);Ae.on("LifecycleEvent.onReady",r=>{t(r)})}});Yc.registerCommand("LifecycleSDK.exit",KV);Yc.registerCommand("LifecycleSDK.onReady",YV);Yc.registerCommand("LifecycleSDK.onJoliboxShow",WV);Yc.registerCommand("LifecycleSDK.onJoliboxHide",zV);L("lifeCycle.exit",{version:"1.0.0"});L("lifeCycle.onReady",{version:"1.0.0"});L("lifeCycle.onJoliboxShow",{version:"1.0.0"});L("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function Cx(e){let t={};if(!_n(e))return t;for(let[r,n]of Object.entries(e)){let i=r.toLocaleLowerCase();n?typeof n=="object"?t[i]=Object.prototype.toString.call(n):t[i]=String(n):t[i]=""}return t}function kx(e="GET"){if(e==="")return"POST";let t=e.toUpperCase();return["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"].includes(t)?t:"GET"}function xx(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function Tx(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!_n(r))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,c]of Object.entries(r))c!=null&&o.append(s,String(c));let a=o.toString();return a?`${n}?${a}`:n}var Px=T(()=>{"use strict";D()});var QV,XV,jf,Jf,Rx,ZV,e4,t4,Ox=T(()=>{"use strict";Kr();Lu();We();Px();D();It();V();QV=15,XV=Ya("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),jf=0,Jf=[],Rx=Zn(Te),ZV=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},e4=e=>{let t=new mt,r=()=>{};return Q("request",{paramsSchema:I.tuple(I.object({url:I.string(),method:I.string(),headers:I.object().optional(),data:I.or(I.object(),I.array()).optional(),query:I.object().optional(),dataType:I.string().default("json"),responseType:I.string().default("text"),enableCache:I.boolean().default(!1),appendHostCookie:I.boolean().default(!0),timeout:I.number().default(3e4),success:I.function(),fail:I.function()})),implement(i){let o=()=>g(this,null,function*(){var s,c,l;let a=Rx(i.fail);try{if(jf+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:h}=i,v=Cx((s=i.headers)!=null?s:{}),b=kx(i.method),y=xx(i.timeout),_=Tx(i.url,b,d),A=Rx(i.success),C=Object.assign({},i,{method:b,header:h?void 0:v,data:b==="GET"||b==="HEAD"?void 0:d,enableCache:f,query:(c=i.query)!=null?c:{},dataType:u,responseType:p,appendHostCookie:h});y&&(C.timeout=y);let x=XV(_,C);{let{response:k}=yield x,{code:E,data:H,message:ae}=k;if(H&&typeof H=="object"&&"status"in H&&H.status!==200)throw Pe({code:H.status||-1,msg:`request:fail status ${H.status}`});t.resolve({code:E!=null?E:"SUCCESS",data:H,message:ae!=null?ae:"request:ok"}),A({code:"SUCCESS",message:"request:ok",data:H})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{jf-=1,(l=Jf.shift())==null||l()}});return jf>=QV?(r=()=>{ZV(Jf,a=>a===o)},Jf.push(o)):o(),t.promise}})(e),{abort(){t.reject(Pe({code:-1,msg:"request:fail abort"})),r()}}},t4=z();t4.registerCommand("HttpSDK.request",e4);L("request",{version:"1.0.0"})});var r4,n4,i4,Gf,Nx=T(()=>{"use strict";D();de();We();r4=Q("showKeyboard",{paramsSchema:I.tuple(I.object({defaultValue:I.string().optional().default(""),multiple:I.boolean().optional().default(!1),maxLength:I.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),q("showKeyboardSync",J(P({},e),{defaultValue:r,maxLength:t}))}});L("keyboard.showKeyboard",{version:"1.0.0",properties:{params:{defaultValue:"1.0.0",multiple:"1.0.0",confirmHold:"1.0.0",confirmType:"1.0.0",maxLength:"1.0.0"}},success:{errMsg:"1.0.0"}});n4=Q("updateKeyboard",{paramsSchema:I.tuple(I.object({value:I.string()})),implement(e){q("updateKeyboardSync",e)}});L("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});i4=Q("hideKeyboard",{implement(){q("hideKeyboardSync")}});L("keyboard.hideKeyboard",{version:"1.0.0"});Gf=z();Gf.registerCommand("KeyboardSDK.showKeyboard",r4);Gf.registerCommand("KeyboardSDK.updateKeyboard",n4);Gf.registerCommand("KeyboardSDK.hideKeyboard",i4)});var qx=m(Di=>{"use strict";D();We();At();de();V();var pa=z(),Xc=null,Hf=!1,Dx=0,o4=200;function a4(e){yn("cpUpdateScoreEvent",e,S.webviewId)}function Lx(e){Xc=e,Hf||(Hf=!0,requestAnimationFrame(function t(){let r=Date.now();r-Dx>=o4?(Xc!==null&&(a4(Xc),Dx=r,Xc=null),Hf=!1):requestAnimationFrame(t)}))}function Vf(e,t){return _e("notifyTaskGameInfoAsync")?q("notifyTaskGameInfoAsync",{event:e,inGameInfo:t}):Ct.reporter({event:e,extraParams:{inGameInfo:t}})}var s4=K("levelFinished",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),duration:I.number().optional(),rating:I.number().optional(),score:I.number().optional(),variation:I.string().optional()})),implement:e=>g(Di,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(Ct.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(Vf("COMPLETE_GAME_LEVEL",{levelId:t,duration:r,rating:n,score:i})),Lx({levelId:t,duration:r,rating:n,score:i}),yield Promise.all(a)})}),c4=K("gamePlayEnded",{paramsSchema:I.tuple(I.object({duration:I.number().optional(),rating:I.number().optional(),score:I.number(),variation:I.string().optional()})),implement:e=>g(Di,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(Ct.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(Vf("GAME_ENDED",{duration:t,rating:r,score:n})),Lx({duration:t,rating:r,score:n}),yield Promise.all(o)})}),l4=K("levelUpgrade",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),name:I.string().optional()})),implement:r=>g(Di,[r],function*({levelId:e,name:t}){let n=[];n.push(Ct.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(Vf("GAME_LEVEL_UP",{levelId:e,levelName:t})),yn("cpUpdateScoreEvent",{levelId:e},S.webviewId),yield Promise.all(n)})}),u4=K("levelStart",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number())})),implement:e=>g(Di,null,function*(){let{levelId:t}=e;yield Ct.tracker("LevelStart",{levelId:t})})}),d4=K("levelFailed",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),score:I.number().optional(),rating:I.number().optional(),duration:I.number().optional()})),implement:e=>g(Di,null,function*(){let{levelId:t,score:r,rating:n,duration:i}=e;yield Ct.tracker("LevelFailed",{levelId:t,score:r,rating:n,duration:i})})});pa.registerCommand("TaskTrackerSDK.levelFinished",s4);pa.registerCommand("TaskTrackerSDK.gamePlayEnded",c4);pa.registerCommand("TaskTrackerSDK.levelUpgrade",l4);pa.registerCommand("TaskTrackerSDK.levelStart",u4);pa.registerCommand("TaskTrackerSDK.levelFailed",d4);L("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}});L("TaskTrackerSDK.onLevelStart",{version:"1.3.8",properties:{params:{levelId:"1.3.8"}}});L("TaskTrackerSDK.onLevelFailed",{version:"1.3.8",properties:{params:{levelId:"1.3.8",score:"1.3.8",rating:"1.3.8",duration:"1.3.8"}}})});var $f,Kf,Wf,p4,Ux,Zc=T(()=>{"use strict";V();de();We();D();Kr();L("login",{version:"1.0.0",properties:{force:"1.0.0"},success:{errMsg:"1.0.0",code:"1.0.0",token:"1.0.0",isLogin:"1.0.0"}});L("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0",isLogin:"1.0.0",isSubUser:"1.2.9"}});$f=new Map;Ie("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i,appAccountToken:o})=>{let a=$f.get(r);a&&(a.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i,appAccountToken:o}),$f.delete(r))});Kf=(e,t=!1)=>g(void 0,null,function*(){var h,v,b;let{data:{isLogin:r}}=yield fe("checkLoginAsync");if(r)return{isLogin:!0,token:(h=S.hostUserInfo)==null?void 0:h.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=q("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw Pe({code:-1,msg:"login failed"});let s=new mt;$f.set(a,s);let c=yield s.promise,l=q("envSync"),d=(b=(v=l==null?void 0:l.data)==null?void 0:v.hostUserInfo)==null?void 0:b.isSubUser;S.onEnvConfigChanged({hostUserInfo:J(P({},c),{isSubUser:d})});let y=c,{extra:u,appAccountToken:p}=y,f=tt(y,["extra","appAccountToken"]);return Ae.emit("onLoginComplete",f),t?c:f}),Wf=K("login",{paramsSchema:I.tuple(I.object({skipLogin:I.boolean().optional(),triggerFrom:I.string().optional()}).optional()),implement(e){return g(this,null,function*(){return yield Kf(e!=null?e:{})})}}),p4=K("checkSession",{implement(){return g(this,null,function*(){var r;let{data:{isLogin:e}}=yield fe("checkLoginAsync"),t=(r=S.hostUserInfo)==null?void 0:r.isSubUser;return{isLogin:e,isSubUser:t}})}}),Ux=z();Ux.registerCommand("API.login",Wf);Ux.registerCommand("API.checkSession",p4)});var Mx,Fx=T(()=>{"use strict";Mx=e=>{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=r+24*60*60*1e3;return e.filter(i=>i>=r&&i<n)}});function qn(e){return t=>g(this,null,function*(){var c;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield Wr(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=Bx(i.data),a=Mx(o);if(r&&a.length>=r)return{canShow:!1,isFirst:!1};let s=Date.now();return console.log("todayFrequencies",a,n,s-a[0]),n&&s-((c=a==null?void 0:a[0])!=null?c:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function Un(e){return()=>g(this,null,function*(){var i;let t=Date.now(),r=yield Wr(e),n=Bx((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield Et(e,JSON.stringify(n))})}var Bx,jx,Jx,Gx,Hx,Vx,$x,Kx,Wx,zx,Yx,Qx,Xx,Zx,eT,fa=T(()=>{"use strict";ho();Fx();Bx=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};jx=qn("joli_coin_use_modal_frequency"),Jx=qn("joli_coin_payment_frequency"),Gx=qn("joli_coin_unlogin_modal_frequency"),Hx=qn("joli_gem_use_modal_frequency"),Vx=qn("joli_gem_payment_frequency"),$x=qn("joli_gem_unlogin_modal_frequency"),Kx=qn("subscription_frequency");Wx=Un("joli_coin_use_modal_frequency"),zx=Un("joli_coin_payment_frequency"),Yx=Un("joli_coin_unlogin_modal_frequency"),Qx=Un("joli_gem_use_modal_frequency"),Xx=Un("joli_gem_payment_frequency"),Zx=Un("joli_gem_unlogin_modal_frequency"),eT=Un("subscription_frequency")});var zf,el,Yf=T(()=>{"use strict";gt();zf=Promise.resolve(),el=(e,t)=>g(void 0,null,function*(){zf=zf.then(()=>g(void 0,null,function*(){yield Y(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield zf})});var tl,rl,Kt,nl,Mn,Wt,Nr,il,ol,Fn,Li,f4,F,Dr,Lr,Ve=T(()=>{"use strict";D();tl="UNLOCK_OPTIONS_CHANGED",rl="INVOKE_PAYMENT",Kt="ON_PAYMENT_RESULT",nl="ON_USE_MODAL_EVENT",Mn="ON_USE_MODAL_RESULT",Wt="ON_USE_MODAL_FREQUENCY",Nr="ON_USE_UNLOGIN_MODAL_EVENT",il="INVOKE_UNLOGIN_MODAL_EVENT",ol="INVOKE_SUBSCRIPTION_EVENT",Fn="ON_USE_SUBSCRIPTION_RESULT",Li=new Zt,f4=()=>({on:Li.on.bind(Li),off:Li.off.bind(Li),emit:Li.emit.bind(Li)}),F=f4(),Dr={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},joinMember:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},Lr={show:!0,minInterval:8*60*60*1e3}});function $e(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=P(P({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var pr=T(()=>{"use strict"});var nT=m(Qf=>{"use strict";fa();Yf();Ve();Ve();dr();At();D();pr();var h4={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:jx,frequencyUpdater:Wx,apiEndpointAutoDeduct:"/api/joli-coin/user-config"},JOLI_GEM:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"gem_unlock_popup_show",coinUnlock:"gem_unlock_click",adUnlock:"gem_ad_unlock_click"},frequencyChecker:Hx,frequencyUpdater:Qx,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},tT=Ln(),rT=$e(F,Wt);rT.getData();F.on(nl,(e,t)=>g(Qf,null,function*(){let r=t.currency,n=h4[r];if(e.includes("ADS-")){yield tT.show({duration:3e3});let c=yield rT.getData(),{canShow:l,isFirst:d}=yield n.frequencyChecker(c.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,l,d),tT.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){F.emit(Mn,{useModalResult:"CONFIRM"});return}if(!l){F.emit(Mn,{useModalResult:"FAILED"});return}}j(n.trackEvents.popupShow,{eventType:W.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=Mk({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{j(n.trackEvents.coinUnlock,{targetType:"game",eventType:W.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),F.emit(Mn,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:c})=>{c==="FAILED"&&j(n.trackEvents.adUnlock,{targetType:"game",eventType:W.Click,currency:r}),F.emit(Mn,{useModalResult:(c!=null?c:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:c=>g(Qf,null,function*(){yield el(c,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function iT(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return g(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return Te(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var oT=T(()=>{"use strict";It()});var ha=T(()=>{"use strict"});var m4,qi,Rt,g4,Bn,al=T(()=>{"use strict";ha();D();V();gt();m4=()=>{let[e,t]=[Ka,Wa].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:qi,createPaymentInternalError:Rt}=m4(),g4=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Bn=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>g(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw qi(n,1001);return yield this.pay()});this.cancelOrder=t=>g(this,null,function*(){var n,i;let{response:r}=yield Y(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw qi((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(P({},this.generatePaymentContext()))),`${g4}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Zf,aT,sT=T(()=>{"use strict";gt();al();ha();Zf=class extends Bn{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>g(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return g(this,null,function*(){var n,i,o,a;try{let{response:s}=yield Y("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw qi((i=(n=s.errMsg)!=null?n:s.message)!=null?i:"",1002);return{code:"SUCCESS",message:(o=s.message)!=null?o:"placeorder jolicoin success",data:s.data}}catch(s){throw console.info("[JoliboxSDK] placeorder failed",s),Rt((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},aT=()=>{let e=new Map;return t=>g(void 0,null,function*(){let r=e.get(t);return r||(r=new Zf(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var cT,lT=T(()=>{"use strict";cT={SUCCESS:"unlockSuccess",FAIL_NOT_LOGIN:"unlockFailedNotLogin",FAIL_PAYING:"unlockFailedPaying",FAIL_PRODUCT_EMPTY:"unlockFailedProductIdNotFound",FAIL_GET_PRODUCT_INFO:"unlockFailedProductInvalid",FAIL_LAUNCH_BILLING:"unlockFailedLaunch",FAIL_TRANSACTION:"unlockFailedTransaction",FAIL_VERIFY:"unlockFaileVerify",TRANSACTION_PENDING:"transactionPending",FAILED:"unlockFailed"}});var eh,uT,th,rh,v4,nh,dT=T(()=>{"use strict";gt();al();ha();de();D();V();dr();lT();eh=new Map;Ie("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=eh.get(t);if(o){if(r==="SUCCESS")o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&$a(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Rt(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=cT[r];a&&Or(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}eh.delete(t)}});uT=e=>g(void 0,null,function*(){var n,i;let t=new mt,r;try{let o=yield fe("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw Rt("orderUUID is null",1002);eh.set(r,t)}catch(o){throw Rt((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),th=class extends Bn{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>g(this,null,function*(){return yield uT({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return g(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},rh=class extends Bn{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>g(this,null,function*(){return yield uT({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return g(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield Y("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw Rt("iap-init failed",1002);return this.appAccountToken=(a=i==null?void 0:i.data)==null?void 0:a.iapToken,{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},v4={android:th,ios:rh},nh=()=>{let e=new Map;return t=>g(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=v4[S.platform];if(!s)throw Rt("platform not supported",1002);i=new s(r,n),e.set(r,i)}let{code:o,message:a}=yield i.startPayment({productId:r,appStoreProductId:n});if(o!=="SUCCESS")throw qi(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var jn,ih=T(()=>{"use strict";oT();sT();dT();jn=iT();jn.registerPaymentHandler("JOLI_COIN",aT());jn.registerPaymentHandler("JOLI_COIN_IAP",nh());jn.registerPaymentHandler("JOLI_GEM_IAP",nh())});function pT(n,i){return g(this,arguments,function*(e,t,r={}){let{storageKeyPrefix:o="joli_cache_"}=r,a=o+e,s=a+"_timestamp";try{let c=yield t(),l=Date.now();try{c!=null&&(yield Et(a,c),yield Et(s,l.toString()),console.log("[Cache] Cached result for key:",e))}catch(d){console.warn("[Cache] Failed to save to localStorage for key:",e,d)}return c}catch(c){throw console.warn("[Cache] Executor failed for key:",e,c),c}})}function sl(n,i){return g(this,arguments,function*(e,t,r={}){let{cacheDuration:o=-1,storageKeyPrefix:a="joli_cache_"}=r,s=a+e,c=s+"_timestamp",l=o===1/0||o===-1;try{let{data:d}=yield Wr(s),{data:u}=yield Wr(c);if(d&&u){let p=parseInt(u,10);if(l||Date.now()-p<o){console.log("[Cache] Using localStorage cached data for key:",e);let f=JSON.parse(d);return l||setTimeout(()=>g(this,null,function*(){try{console.log("[Cache] Background updating cache for key:",e);let h=yield t(),v=Date.now();yield Et(s,h),yield Et(c,v.toString()),console.log("[Cache] Background cache update completed for key:",e)}catch(h){console.warn("[Cache] Background cache update failed for key:",e,h)}}),0),f}else yield Et(s,null),yield Et(c,null)}}catch(d){console.warn("[Cache] Failed to read from localStorage for key:",e,d)}try{let d=yield t(),u=Date.now();try{d&&(yield Et(s,d),yield Et(c,u.toString()))}catch(p){console.warn("[Cache] Failed to save to localStorage for key:",e,p)}return d}catch(d){throw console.warn("[Cache] Executor failed for key:",e,d),d}})}var oh=T(()=>{"use strict";ho()});function y4(e,t){Object.keys(t).forEach(r=>{let n=e.paymentChoices.find(i=>i.appStoreProductId===r);n&&(n.totalAmountStr=t[r].price)}),e.paymentChoices=e.paymentChoices.filter(r=>!co(r.totalAmountStr))}var dn,ah,fr,ul,sh,ch,cl,ll,fT,dl,lh=T(()=>{"use strict";ih();D();de();gt();D();oh();dn=class dn{execute(t,r){return g(this,null,function*(){var a,s,c;let{response:n}=yield Y(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(console.log("[PaymentService] get products info from server",t,n.data),!((a=n.data)!=null&&a.data))throw new Error("get products info failed");let i=n.data.data,o=(c=(s=i.paymentChoices)==null?void 0:s.filter(l=>typeof l.appStoreProductId=="string").map(l=>l.appStoreProductId))!=null?c:[];if(o.length>0){let l=yield this.getNativePriceData(o);l&&y4(i,l)}if(i.paymentChoices.length===0)throw new Error("paymentChoices is empty");return i})}getNativePriceData(t){return g(this,null,function*(){let r=t.sort().join(",");return sl(r,()=>g(this,null,function*(){try{let{data:n}=yield fe("requestProductDetailsAsync",{appStoreProductIds:t});return n&&(dn.nativePriceCache.set(r,n),dn.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[PaymentService] Failed to fetch native product details:",n),n}}),{cacheDuration:dn.NATIVE_PRICE_CACHE_DURATION,storageKeyPrefix:"joli_native_price_"})})}extractCacheableData(t){return{paymentChoices:t.paymentChoices}}mergeData(t,r){return{balance:r.balance,enableAutoDeduct:r.enableAutoDeduct,paymentChoices:t.paymentChoices}}processCachedData(t){return{balance:0,enableAutoDeduct:!1,paymentChoices:t.paymentChoices}}static clearNativePriceCache(){this.nativePriceCache.clear(),this.nativePriceCacheTimestamp.clear(),console.log("[PaymentService] Cleared native price cache")}};dn.nativePriceCache=new Map,dn.NATIVE_PRICE_CACHE_DURATION=10*60*1e3,dn.nativePriceCacheTimestamp=new Map;ah=dn,fr=class fr extends Jt{constructor(r,n){super(new ah,{duration:10*60*1e3,timeout:3e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return g(this,null,function*(){let r=fr.failureCounters.get(this.apiEndpoint)||0;if(r>=fr.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${fr.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return fr.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw fr.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${fr.MAX_FAILURE_COUNT+1}) for ${this.apiEndpoint}:`,n),n}})}purchase(r){return g(this,null,function*(){var a;let n=yield this.getProductsInfo(),i=(a=n==null?void 0:n.paymentChoices.find(s=>s.productId===r))==null?void 0:a.appStoreProductId;if(!i)throw new Error("appStoreProductId not found");return yield jn.invokePayment(this.paymentType==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}getProductsInfoWithBalance(){return g(this,null,function*(){return this.request(this.apiEndpoint)})}refreshProductsInfo(){return g(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}static resetFailureCounters(){this.failureCounters.clear()}static getFailureCount(r){return this.failureCounters.get(r)||0}};fr.failureCounters=new Map,fr.MAX_FAILURE_COUNT=2;ul=fr,sh=class extends ul{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},ch=class extends ul{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},cl=null,ll=null,fT=()=>cl||(cl=new sh,cl),dl=()=>ll||(ll=new ch,ll)});var gT=m(pl=>{"use strict";Ve();dr();V();Zc();D();fa();ih();dr();We();At();Yf();pr();lh();var b4={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:Jx,frequencyUpdater:zx,apiEndpoint:"/api/joli-coin/balance-detail",apiEndpointAutoDeduct:"/api/joli-coin/user-config",paymentType:"JOLI_COIN_IAP"},JOLI_GEM:{frequencyConfigKey:"charge",trackEvents:{modalShow:"gem_order_show",orderClick:"gem_order_click",payEnsure:"gem_pay_ensure",payResult:"gem_pay_result",adUnlock:"gem_ad_unlock_click"},frequencyChecker:Vx,frequencyUpdater:Xx,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},Ui=Ln(),hT=fT(),mT=dl(),_4=$e(F,Wt);F.on(rl,(e,t)=>g(pl,null,function*(){var r,n,i;try{let o=t.currency,a=b4[o];if(!_e("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{F.emit(Kt,{paymentResult:"FAILED",currency:o})},0);return}if(e.includes("ADS-")){yield Ui.show({duration:3e3});let d=yield _4.getData(),{canShow:u}=yield a.frequencyChecker(d.joliCoinUseAndCharge[a.frequencyConfigKey]);if(console.log(`${o} payment show by frequency`,u),Ui.hide(),!u){F.emit(Kt,{paymentResult:"FAILED",currency:o});return}console.log("show by frequency")}yield Ui.show({duration:3e3});let s=o==="JOLI_COIN"?hT:mT,c=yield s.getProductsInfo();if(Ui.hide(),!c||!((r=c.paymentChoices)!=null&&r.length)){F.emit(Kt,{paymentResult:"FAILED",currency:o});return}j(a.trackEvents.modalShow,{targetType:"game",eventType:W.View,currency:o});let l=Fk({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:o,paymentChoices:(i=(n=c.paymentChoices)==null?void 0:n.map(d=>{var u;return J(P({},d),{totalAmountStr:(u=d.totalAmountStr)!=null?u:""})}))!=null?i:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:d=>g(pl,null,function*(){var f,h,v,b,y,_,A,C;if(j(a.trackEvents.payEnsure,{targetType:"game",eventType:W.Click,payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(h=(f=c.paymentChoices.find(x=>x.productId===d))==null?void 0:f.totalAmountStr)!=null?h:""}),!((v=S.hostUserInfo)!=null&&v.isLogin)){let{data:x}=yield Wf({skipLogin:!0});if(!(x!=null&&x.isLogin)){console.log("login failed");return}let k=yield s.refreshProductsInfo();if(((b=k==null?void 0:k.balance)!=null?b:0)>=t.quantity){F.emit(Kt,{paymentResult:"SUCCESS",currency:o}),l.destroy();return}}console.log("invokeNativePayment",d);let u=(_=(y=c==null?void 0:c.paymentChoices)==null?void 0:y.find(x=>x.productId===d))==null?void 0:_.appStoreProductId;if(!u){F.emit(Kt,{paymentResult:"FAILED",currency:o}),l.destroy();return}yield Ui.show({duration:3e3});let{code:p}=yield jn.invokePayment(a.paymentType,{productId:d,appStoreProductId:u});if(Ui.hide(),j(a.trackEvents.payResult,{eventType:W.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(C=(A=c.paymentChoices.find(x=>x.productId===d))==null?void 0:A.totalAmountStr)!=null?C:"",payResult:p}),p!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}Or("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),F.emit(Kt,{paymentResult:"SUCCESS",currency:o}),l.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:d})=>{F.emit(Kt,{paymentResult:(d!=null?d:"")==="CANCEL"?"CANCEL":"FAILED",currency:o}),j(a.trackEvents.adUnlock,{targetType:"game",eventType:W.Click,currency:o}),l.destroy()}},onEnableDeductChanged:d=>g(pl,null,function*(){yield el(d,a.apiEndpointAutoDeduct)})},onSelect:d=>{var u,p;j(a.trackEvents.orderClick,{targetType:"game",eventType:W.Click,coinAmount:t.quantity,currency:o,orderPrice:(p=(u=c.paymentChoices.find(f=>f.productId===d))==null?void 0:u.totalAmountStr)!=null?p:""})}});yield a.frequencyUpdater()}catch(o){console.error("payment failed",o),F.emit(Kt,{paymentResult:"FAILED",currency:t.currency})}}));hT.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});mT.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var yT=m(fl=>{"use strict";Ve();pr();fa();gt();It();D();Zc();dr();At();var w4={JOLI_COIN:{frequencyChecker:Gx,frequencyUpdater:Yx,trackEvents:{modalExpose:"LoginGuideModal",clickConfirm:"LoginGuideModal",clickConfirmLogin:"LoginGuideModal",modalHide:"LoginGuideModal",clickClose:"LoginGuideModal",clickWatchAds:"LoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.rewardTips}",usedText:"Jolicoin Used"}},JOLI_GEM:{frequencyChecker:$x,frequencyUpdater:Zx,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},vT=$e(F,Wt);vT.getData();F.on(il,(e,t)=>g(fl,null,function*(){var r;try{let n=t.currency,i=w4[n];if(e.includes("ADS-")){let s=yield vT.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){F.emit(Nr,{result:"NOT_SUPPORT"});return}let{canShow:c}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,c),!c){F.emit(Nr,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield S4())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),F.emit(Nr,{result:"NOT_SUPPORT"});return}j(i.trackEvents.modalExpose,{eventType:W.Expose,currency:n},W.Expose);let a=Bk({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>g(fl,null,function*(){var d,u,p,f;j(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:W.Click,currency:n},W.Click);let{isLogin:s,extra:c,isFirstLogin:l}=yield Kf({},!0);if(!s){console.log("login failed");return}if(j(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:l,eventType:W.Click,currency:n},W.Click),l&&((d=c==null?void 0:c.firstLogin)!=null&&d.reward)){let{rewardValue:h}=c.firstLogin.reward;Or(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:h},position:"top",duration:3e3})}F.emit(Nr,{result:"SUCCESS",rewards:{claimedRewardValue:(f=(p=(u=c==null?void 0:c.firstLogin)==null?void 0:u.reward)==null?void 0:p.rewardValue)!=null?f:0,isFirstLogin:l!=null?l:!1,currency:t.currency}}),a.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:s})=>{j(i.trackEvents.modalHide,{eventType:W.Hide,currency:n},W.Hide);let c=s==="CANCEL"?"click_close":"click_watch_ads",l=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;j(l,{type:c,eventType:W.Click,currency:n},W.Click),F.emit(Nr,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){Te(new Tg(n)),F.emit(Nr,{result:"FAILED"})}}));var S4=()=>g(fl,null,function*(){var t;let{response:e}=yield Y("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function I4(){let e=new Map;return{registerSubscriptionHandler(r,n){e.set(r,n)},invokeSubscription(r,...n){return g(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} subscription not supported in this platform`};try{return yield i(...n)}catch(o){return Te(o),{code:"FAILED",message:`[joliboxSDK]: subscription error ${o}`}}})}}}var ma,uh=T(()=>{"use strict";It();ma=I4()});var Jn,hl=T(()=>{"use strict";Jn={PlaceOrderFailed:1001,CancelOrderFailed:1002,SubscriptionFailed:1003,InvalidPlan:1004}});var A4,bT,ml,E4,ga,dh=T(()=>{"use strict";hl();D();V();A4=()=>{let[e,t]=[Ka,Wa].map(r=>(n,i,o)=>new r(n,i,o));return{createSubscriptionError:e,createSubscriptionInternalError:t}},{createSubscriptionError:bT,createSubscriptionInternalError:ml}=A4(),E4=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",ga=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startSubscription=t=>g(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw bT(n,Jn.PlaceOrderFailed);return yield this.subscribe(t)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(P({},this.generateSubscriptionContext()))),`${E4}/subscription/callback?${t.toString()}`};this.createSubscriptionError=bT;this.createSubscriptionInternalError=ml}setOrderId(t){this._orderId=t}setOrderStatus(t){this._orderStatus=t}get orderId(){return this._orderId}get status(){return this._orderStatus}}});function C4(e,t){Object.keys(t).forEach(r=>{var i,o,a,s;let n=e.find(c=>c.appStoreProductId===r);n&&(n.amountStr=t[r].pricing.formattedPrice,n.originalAmountStr=t[r].pricing.originalPrice,n.discountPercentage=(o=(i=t[r].pricing.discountPercentage)==null?void 0:i.toString())!=null?o:"",n.trialDay=(s=(a=t[r].trial)==null?void 0:a.duration)!=null?s:0)}),e=e.filter(r=>!co(r.amountStr))}var Gn,vl,ph,fh,gl,_T,hh=T(()=>{"use strict";D();de();gt();D();oh();uh();de();dh();hl();Gn=class Gn{static getNativePriceCache(t){var n;let r=t.sort().join(",");return(n=this.nativePriceCache.get(r))!=null?n:{}}execute(t,r){return g(this,null,function*(){var a,s;let{response:n}=yield Y(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(!((a=n.data)!=null&&a.data))throw new Error("get subscription tiers failed");let i=n.data.data,o=(s=i==null?void 0:i.filter(c=>typeof c.appStoreProductId=="string").map(c=>c.appStoreProductId))!=null?s:[];if(o.length>0){let c=yield this.getNativePriceData(o);c&&C4(i,c)}if(i.length===0)throw new Error("subscription tiers is empty");return i})}requestNativeSubscriptionPlans(t,r){return g(this,null,function*(){try{let{data:n}=yield fe("requestSubscriptionPlansAsync",{appStoreProductIds:t,type:"game"});return n&&(Gn.nativePriceCache.set(r,n),Gn.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[SubscriptionService] Failed to fetch native subscription pricing:",n),n}})}getNativePriceData(t,r=!1){return g(this,null,function*(){let n=t.sort().join(",");return(r?pT:sl)(n,()=>this.requestNativeSubscriptionPlans(t,n),{storageKeyPrefix:"joli_subscription_price_"})})}extractCacheableData(t){return{subscriptionTiers:t}}mergeData(){throw new Error("SubscriptionService does not support real-time data merging")}processCachedData(t){return t.subscriptionTiers}updateNativePriceCache(t){return g(this,null,function*(){yield this.getNativePriceData(t,!0),console.log("[SubscriptionService] Updated native price cache for products:",t)})}static clearNativePriceCache(){this.nativePriceCache.clear(),this.nativePriceCacheTimestamp.clear(),console.log("[SubscriptionService] Cleared native price cache")}};Gn.nativePriceCache=new Map,Gn.NATIVE_PRICE_CACHE_DURATION=1*24*60*60*1e3,Gn.nativePriceCacheTimestamp=new Map;vl=Gn,ph=class extends Jt{constructor(r){super(new vl,{duration:30*60*1e3,timeout:3e3});this.apiEndpoint=r;this.pendingSubscriptions=new Map;this.subInfoCacheKeys=[];this.listenSubscriptionPanelStateChange()}getSubInfo(){return g(this,null,function*(){var r;try{let n=yield this.request(this.apiEndpoint);return this.subInfoCacheKeys=(r=n==null?void 0:n.map(i=>{var o;return(o=i.appStoreProductId)!=null?o:""}))!=null?r:[],n}catch(n){throw console.warn(`[SubscriptionService] getSubInfo failed for ${this.apiEndpoint}:`,n),n}})}refreshSubInfo(){return g(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}updateNativePriceCache(r){return g(this,null,function*(){yield this.requestAdapter.updateNativePriceCache(r)})}updateAllNativePriceCache(){return g(this,null,function*(){try{this.subInfoCacheKeys.length>0&&(yield this.updateNativePriceCache(this.subInfoCacheKeys),this.forceRequest(this.apiEndpoint))}catch(r){throw console.warn("[SubscriptionService] Failed to update all native price cache:",r),r}})}subscribe(r){return g(this,null,function*(){var s;console.log("[SubscriptionService] subscribe params",ma);let n=new AbortController,i=ma.invokeSubscription("SUB_APP",{productId:r.nativeProductId,appStoreProductId:r.appStoreProductId,planId:r.basePlanId}),o=this.pollSubscriptionStatus(n.signal),a=yield Promise.race([i.then(c=>{var l;return n.abort(),{result:c.code,subPlanId:(l=c.data)==null?void 0:l.subPlanId,message:c.message}}),o.then(c=>(c==null?void 0:c.result)==="SUCCESS"?(n.abort(),c):new Promise(()=>{console.log("[SubscriptionPolling] Timeout for subscriptionService.subscribe completion")}))]);return{result:a.result,subPlanId:a.subPlanId,message:(s=a.message)!=null?s:""}})}pollSubscriptionStatus(r){return g(this,null,function*(){var o,a;for(let s=0;s<10;s++){if(r.aborted){console.log("[SubscriptionPolling] Aborted due to subscribe completion");return}try{let{response:c}=yield Y("/api/subs/info",{method:"GET",appendHostCookie:!0,responseType:"json"});if(((a=(o=c.data)==null?void 0:o.data)==null?void 0:a.status)==="ACTIVE")return{result:"SUCCESS",subPlanId:c.data.data.subPlanId,message:"Subscription activated via polling"}}catch(c){console.warn(`[SubscriptionPolling] Attempt ${s+1} failed:`,c)}s<9&&!r.aborted&&(yield Va(5e3))}})}invokeSubscriptionPanel(){return g(this,null,function*(){var i,o;let r=new mt,n;try{if(console.log("[invokeSubscriptionPanel] requestSubscriptionSync params"),n=(i=q("invokeSubscriptionPanelSync",{type:"game"}).data)==null?void 0:i.subUUID,!n)throw ml("orderUUID is null",Jn.SubscriptionFailed);this.pendingSubscriptions.set(n,r)}catch(a){throw ml((o=JSON.stringify(a))!=null?o:"subscription panel failed",Jn.SubscriptionFailed)}return r.promise})}getTierByProductId(r){return g(this,null,function*(){var s;let n=yield this.getSubInfo(),i=n==null?void 0:n.find(c=>c.productId===r);if(!i)return;let o=vl.getNativePriceCache((n!=null?n:[]).map(c=>{var l;return(l=c.appStoreProductId)!=null?l:""}));if(!o)return;let a=o[(s=i.appStoreProductId)!=null?s:""];if(a)return console.log("[SubscriptionService] getTierByProductId nativeSubInfo",a),{nativeProductId:a.productId,appStoreProductId:i.appStoreProductId,basePlanId:a.basePlanId}})}listenSubscriptionPanelStateChange(){Ie("onSubscriptionPanelStateChange",r=>{var i;console.log("[onSubscriptionPanelStateChange] data",r);let n=this.pendingSubscriptions.get(r.subUUID);n&&(r.status==="SUCCESS"?n.resolve({code:"SUCCESS",message:"subscription panel success",data:{result:"SUCCESS",subPlanId:(i=r.orderResponse)==null?void 0:i.subPlanId}}):n.resolve({code:"FAILED",message:"subscription panel failed",data:{result:"FAILED"}}))})}},fh=class extends ph{constructor(){super("/api/subs/pricing")}},gl=null,_T=()=>gl||(gl=new fh,gl)});var wT=T(()=>{"use strict"});function IT(){let e=new Map;return t=>g(this,null,function*(){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler params",t);let{productId:r,planId:n}=t,i=`${r}_${n}`,o=e.get(i);if(!o){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler instance not found",i);let a=k4[S.platform];if(!a)throw new Error(`Platform ${S.platform} not supported for sub-app subscription`);o=new a(r,n),e.set(i,o)}return o.startSubscription({basePlanId:n,appStoreProductId:t.appStoreProductId,productId:r})})}var mh,ST,gh,vh,k4,AT=T(()=>{"use strict";V();dh();ha();al();D();de();D();hl();Ie("onGlobalSubscriptionStateChange",e=>{let{status:t,orderResponse:r}=e;console.log("[onGlobalSubscriptionStateChange] data",e),t==="SUCCESS"&&(r!=null&&r.subPlanId||r!=null&&r.ticketId)&&S.onEnvConfigChanged({hostUserInfo:{isLogin:!0,isSubUser:!0}})});mh=new Map;Ie("onSubscritptionStateChange",e=>{var o,a,s;let{subUUID:t,status:r,orderResponse:n}=e;console.log("[onSubscritptionStateChange] data",e);let i=mh.get(t);if(i){if(r==="SUCCESS")console.log("=======onSubscritptionStateChange",r,(o=n==null?void 0:n.subPlanId)!=null?o:n==null?void 0:n.ticketId),i.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{subPlanId:(a=n==null?void 0:n.subPlanId)!=null?a:n==null?void 0:n.ticketId}});else{if(r==="FAILED"&&$a(n==null?void 0:n.errNo)&&(n==null?void 0:n.errNo)!==0)throw Rt(`subscription failed: ${n==null?void 0:n.errMsg}`,Jn.SubscriptionFailed);i.resolve({code:r,message:(s=n==null?void 0:n.errMsg)!=null?s:"UNKNOWN_ERROR"})}mh.delete(t)}});ST=e=>g(void 0,null,function*(){var n,i;let t=new mt,r;try{if(console.log("[internalSubscribe] requestSubscriptionSync params",e),r=(n=q("requestSubscriptionSync",P({params:{basePlanId:e.basePlanId,appStoreProductId:e.appStoreProductId,productId:e.productId}},e.appAccountToken?{paymentBody:{appAccountToken:e.appAccountToken,appStoreProductId:e.appStoreProductId}}:{})).data)==null?void 0:n.subUUID,!r)throw Rt("subUUID is null",1002);mh.set(r,t)}catch(o){throw Rt((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),gh=class extends ga{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return g(this,null,function*(){return{code:"SUCCESS",message:"Android subscription order placed locally"}})}cancelOrder(r){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})}generateSubscriptionContext(){return{gameId:S.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return g(this,null,function*(){return yield ST(r)})}},vh=class extends ga{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return g(this,null,function*(){var o,a;console.log("----start place order for iOS subscription----");let n=q("envSync"),i=(a=(o=n==null?void 0:n.data)==null?void 0:o.hostUserInfo)==null?void 0:a.appAccountToken;if(!i)throw Rt("appAccountToken is null",1002);return this.subscriptionToken=i,{code:"SUCCESS",message:"placeorder sub-app success in native"}})}cancelOrder(r){return g(this,null,function*(){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})})}generateSubscriptionContext(){return{gameId:S.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return g(this,null,function*(){return yield ST(J(P({},r),{appAccountToken:this.subscriptionToken}))})}},k4={android:gh,ios:vh}});var Hn,yh=T(()=>{"use strict";hh();wT();uh();AT();hh();Hn=_T();ma.registerSubscriptionHandler("SUB_APP",IT())});var xT=m(kT=>{"use strict";fa();Ve();pr();We();yh();dr();var x4={SUBSCRIPTION:{frequencyConfigKey:"joinMember",frequencyChecker:Kx,frequencyUpdater:eT}},ET=Ln(),CT=$e(F,Wt);CT.getData();F.on(ol,e=>g(kT,null,function*(){let t=x4.SUBSCRIPTION;if(!_e("invokeSubscriptionPanelSync")){console.info("invokeSubscriptionPanelSync not supported"),setTimeout(()=>{F.emit(Fn,{result:"FAILED"})},0);return}yield ET.show({duration:3e3});let r=yield CT.getData(),{canShow:n,isFirst:i}=yield t.frequencyChecker(r.joliCoinUseAndCharge[t.frequencyConfigKey]);if(ET.hide(),!n){F.emit(Fn,{result:"FAILED"});return}let{data:o,code:a}=yield Hn.invokeSubscriptionPanel();a=="SUCCESS"?F.emit(Fn,{result:"SUCCESS"}):F.emit(Fn,{result:"FAILED"}),yield t.frequencyUpdater()}))});var Tie,Pie,Rie,Oie,TT=T(()=>{"use strict";Tie=ue(nT()),Pie=ue(gT()),Rie=ue(yT()),Oie=ue(xT())});var Mi,bh=T(()=>{"use strict";Mi=(e,t)=>{window.dispatchEvent(new CustomEvent(e,{detail:t}));let r=window.parent;r&&r!==window&&typeof r.postMessage=="function"&&r.postMessage({type:e,data:{detail:t}},"*")}});function J4(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function G4(e){return typeof e=="string"}function H4(e){return typeof e=="undefined"}function V4(e){return H4(e)||e===null}function $4(e){return typeof e=="function"}function lP(e){let t=e,r=null,n=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r||(r=new t(...o)),r};return n.prototype=t.prototype,n}function va(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function Sl(e,t){return t.map(r=>{if(r==="params"&&e[r]){let n=e[r];return Object.keys(n).reduce((i,o)=>(i[o]=String(n[o]),i),{})}return e[r]})}function Z4(e){let t=e.location?Sl(e.location,LT):null,r=e.target?Sl(e.target,LT):null;return Sl(F4(M4({},e),{location:t,target:r}),Q4)}function e$(e){let t=e.events.map(n=>Z4(n)),r=Sl(e.device,X4);return[e.protocolVersion,t,r,e.project]}function t$(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function a$(e){return new Promise(t=>fP(e)(t))}function fP(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function s$(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Ia(n);return i.event})(function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e(i=>t(i)&&r.call(n,i),null)})}function l$(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)u$(e[n],t[n])}function u$(e,t){if(G4(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if($4(t)){try{if(e instanceof t)return}catch(r){}if(!V4(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function bt(e,t,r){return(t=d$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d$(e){var t=p$(e,"string");return typeof t=="symbol"?t:t+""}function p$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yl(e,t,r){return(t=f$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f$(e){var t=h$(e,"string");return typeof t=="symbol"?t:t+""}function h$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bl(e,t,r){return(t=m$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m$(e){var t=g$(e,"string");return typeof t=="symbol"?t:t+""}function g$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qr(e,t,r){return(t=v$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v$(e){var t=y$(e,"string");return typeof t=="symbol"?t:t+""}function y$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b$(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function _$(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function C$(e,t){return Ze(e,0)^45?(((t<<2^Ze(e,0))<<2^Ze(e,1))<<2^Ze(e,2))<<2^Ze(e,3):0}function gP(e){return e.trim()}function k$(e,t){return(e=t.exec(e))?e[0]:e}function ne(e,t,r){return e.replace(t,r)}function Uh(e,t){return e.indexOf(t)}function Ze(e,t){return e.charCodeAt(t)|0}function Aa(e,t,r){return e.slice(t,r)}function gr(e){return e.length}function lm(e){return e.length}function _l(e,t){return t.push(e),e}function x$(e,t){return e.map(t).join("")}function jl(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Bl,column:Vi,length:a,return:""}}function ba(e,t){return E$(jl("",null,null,"",null,null,0),e,{length:-e.length},t)}function T$(){return Me}function P$(){return Me=wt>0?Ze(Ki,--wt):0,Vi--,Me===10&&(Vi=1,Bl--),Me}function Nt(){return Me=wt<vP?Ze(Ki,wt++):0,Vi++,Me===10&&(Vi=1,Bl++),Me}function vr(){return Ze(Ki,wt)}function Il(){return wt}function ka(e,t){return Aa(Ki,e,t)}function Ea(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yP(e){return Bl=Vi=1,vP=gr(Ki=e),wt=0,[]}function bP(e){return Ki="",e}function Al(e){return gP(ka(wt-1,Mh(e===91?e+2:e===40?e+1:e)))}function R$(e){for(;(Me=vr())&&Me<33;)Nt();return Ea(e)>2||Ea(Me)>3?"":" "}function O$(e,t){for(;--t&&Nt()&&!(Me<48||Me>102||Me>57&&Me<65||Me>70&&Me<97););return ka(e,Il()+(t<6&&vr()==32&&Nt()==32))}function Mh(e){for(;Nt();)switch(Me){case e:return wt;case 34:case 39:e!==34&&e!==39&&Mh(Me);break;case 40:e===41&&Mh(e);break;case 92:Nt();break}return wt}function N$(e,t){for(;Nt()&&e+Me!==57&&!(e+Me===84&&vr()===47););return"/*"+ka(t,wt-1)+"*"+Fl(e===47?e:Nt())}function D$(e){for(;!Ea(vr());)Nt();return ka(e,wt)}function L$(e){return bP(El("",null,null,null,[""],e=yP(e),0,[0],e))}function El(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,h=0,v=1,b=1,y=1,_=0,A="",C=i,x=o,k=n,E=A;b;)switch(h=_,_=Nt()){case 40:if(h!=108&&Ze(E,u-1)==58){Uh(E+=ne(Al(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:E+=Al(_);break;case 9:case 10:case 13:case 32:E+=R$(h);break;case 92:E+=O$(Il()-1,7);continue;case 47:switch(vr()){case 42:case 47:_l(q$(N$(Nt(),Il()),t,r),c);break;default:E+="/"}break;case 123*v:s[l++]=gr(E)*y;case 125*v:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:y==-1&&(E=ne(E,/\f/g,"")),f>0&&gr(E)-u&&_l(f>32?MT(E+";",n,r,u-1):MT(ne(E," ","")+";",n,r,u-2),c);break;case 59:E+=";";default:if(_l(k=UT(E,t,r,l,d,i,s,A,C=[],x=[],u),o),_===123)if(d===0)El(E,t,k,k,C,o,u,s,x);else switch(p===99&&Ze(E,3)===110?100:p){case 100:case 108:case 109:case 115:El(e,k,k,n&&_l(UT(e,k,k,0,0,i,s,A,i,C=[],u),x),i,x,u,s,n?C:x);break;default:El(E,k,k,k,[""],x,0,s,x)}}l=d=f=0,v=y=1,A=E="",u=a;break;case 58:u=1+gr(E),f=h;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&P$()==125)continue}switch(E+=Fl(_),_*v){case 38:y=d>0?1:(E+="\f",-1);break;case 44:s[l++]=(gr(E)-1)*y,y=1;break;case 64:vr()===45&&(E+=Al(Nt())),p=vr(),d=u=gr(A=E+=D$(Il())),_++;break;case 45:h===45&&gr(E)==2&&(v=0)}}return o}function UT(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=lm(p),h=0,v=0,b=0;h<n;++h)for(var y=0,_=Aa(e,u+1,u=A$(v=a[h])),A=e;y<f;++y)(A=gP(v>0?p[y]+" "+_:ne(_,/&\f/g,p[y])))&&(c[b++]=A);return jl(e,t,r,i===0?sm:s,c,l,d)}function q$(e,t,r){return jl(e,t,r,hP,Fl(T$()),Aa(e,2,-2),0)}function MT(e,t,r,n){return jl(e,t,r,cm,Aa(e,0,n),Aa(e,n+1,-1),n)}function Hi(e,t){for(var r="",n=lm(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function U$(e,t,r,n){switch(e.type){case I$:if(e.children.length)break;case S$:case cm:return e.return=e.return||e.value;case hP:return"";case mP:return e.return=e.value+"{"+Hi(e.children,n)+"}";case sm:e.value=e.props.join(",")}return gr(r=Hi(e.children,n))?e.return=e.value+"{"+r+"}":""}function M$(e){var t=lm(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function F$(e){return function(t){t.root||(t=t.return)&&e(t)}}function B$(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function _P(e,t){switch(C$(e,t)){case 5103:return re+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return re+e+Ol+e+ct+e+e;case 6828:case 4268:return re+e+ct+e+e;case 6165:return re+e+ct+"flex-"+e+e;case 5187:return re+e+ne(e,/(\w+).+(:[^]+)/,re+"box-$1$2"+ct+"flex-$1$2")+e;case 5443:return re+e+ct+"flex-item-"+ne(e,/flex-|-self/,"")+e;case 4675:return re+e+ct+"flex-line-pack"+ne(e,/align-content|flex-|-self/,"")+e;case 5548:return re+e+ct+ne(e,"shrink","negative")+e;case 5292:return re+e+ct+ne(e,"basis","preferred-size")+e;case 6060:return re+"box-"+ne(e,"-grow","")+re+e+ct+ne(e,"grow","positive")+e;case 4554:return re+ne(e,/([^-])(transform)/g,"$1"+re+"$2")+e;case 6187:return ne(ne(ne(e,/(zoom-|grab)/,re+"$1"),/(image-set)/,re+"$1"),e,"")+e;case 5495:case 3959:return ne(e,/(image-set\([^]*)/,re+"$1$`$1");case 4968:return ne(ne(e,/(.+:)(flex-)?(.*)/,re+"box-pack:$3"+ct+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+re+e+e;case 4095:case 3583:case 4068:case 2532:return ne(e,/(.+)-inline(.+)/,re+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(gr(e)-1-t>6)switch(Ze(e,t+1)){case 109:if(Ze(e,t+4)!==45)break;case 102:return ne(e,/(.+:)(.+)-([^]+)/,"$1"+re+"$2-$3$1"+Ol+(Ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Uh(e,"stretch")?_P(ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ze(e,t+1)!==115)break;case 6444:switch(Ze(e,gr(e)-3-(~Uh(e,"!important")&&10))){case 107:return ne(e,":",":"+re)+e;case 101:return ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+re+(Ze(e,14)===45?"inline-":"")+"box$3$1"+re+"$2$3$1"+ct+"$2box$3")+e}break;case 5936:switch(Ze(e,t+11)){case 114:return re+e+ct+ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return re+e+ct+ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return re+e+ct+ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return re+e+ct+e+e}return e}function z$(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Nl(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return fn={name:i.name,styles:i.styles,next:fn},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)fn={name:a.name,styles:a.styles,next:fn},a=a.next;var s=o.styles+";";return s}return Z$(e,t,r)}}var c=r;if(t==null)return c;var l=t[c];return l!==void 0?l:c}function Z$(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Nl(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":BT(s)&&(n+=wh(o)+":"+jT(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)BT(a[c])&&(n+=wh(o)+":"+jT(o,a[c])+";");else{var l=Nl(e,t,a);switch(o){case"animation":case"animationName":{n+=wh(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function Sh(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";fn=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Nl(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Nl(r,t,e[s]),n){var c=o;i+=c[s]}JT.lastIndex=0;for(var l="",d;(d=JT.exec(i))!==null;)l+="-"+d[1];var u=z$(i)+l;return{name:u,styles:i,next:fn}}function SP(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function GT(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function HT(e,t,r){var n=[],i=SP(e,n,r);return n.length<2?r:i+t(n)}function oK(e,t){Ge.__h&&Ge.__h(Ot,e,$T||t),$T=0;var r=Ot.__H||(Ot.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function AP(e,t){var r=oK(Fh++,7);return cK(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function aK(){for(var e;e=IP.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Cl),e.__H.__h.forEach(Bh),e.__H.__h=[]}catch(t){e.__H.__h=[],Ge.__e(t,e.__v)}}function sK(e){var t,r=function(){clearTimeout(n),ZT&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);ZT&&(t=requestAnimationFrame(r))}function Cl(e){var t=Ot,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Ot=t}function Bh(e){var t=Ot;e.__c=e.__(),Ot=t}function cK(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Jl(){if(hn>1)hn--;else{for(var e,t=!1;wa!==void 0;){var r=wa;for(wa=void 0,jh++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&CP(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(jh=0,hn--,t)throw e}}function xe(e){if(hn>0)return e();hn++;try{return e()}finally{Jl()}}function EP(e){if(pe!==void 0){var t=e.n;if(t===void 0||t.t!==pe)return t={i:0,S:e,p:pe.s,n:void 0,t:pe,e:void 0,x:void 0,r:t},pe.s!==void 0&&(pe.s.n=t),pe.s=t,e.n=t,32&pe.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=pe.s,t.n=void 0,pe.s.n=t,pe.s=t),t}}function et(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function $(e){return new et(e)}function CP(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function kP(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function xP(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Wi(e){et.call(this,void 0),this.x=e,this.s=void 0,this.g=Dl-1,this.f=4}function Sa(e){return new Wi(e)}function TP(e){var t=e.u;if(e.u=void 0,typeof t=="function"){hn++;var r=pe;pe=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,um(e),n}finally{pe=r,Jl()}}}function um(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,TP(e)}function uK(e){if(pe!==this)throw new Error("Out-of-order effect");xP(this),pe=e,this.f&=-2,8&this.f&&um(this),Jl()}function xa(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Ta(e){var t=new xa(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function zi(e,t){U[e]=t.bind(null,U[e]||function(){})}function Ll(e){Ah&&Ah(),Ah=e&&e.S()}function OP(e){var t=this,r=e.data,n=NP(r);n.value=r;var i=AP(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=Sa(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=Sa(function(){return!Array.isArray(l.value)&&!Ku(l.value)}),u=Ta(function(){if(this.N=DP,d.value){var f=l.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=f)}}),p=t.__$u.d;return t.__$u.d=function(){u(),p.call(this)},[d,l]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function dK(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=$(r);return{o:function(a,s){o.value=a,n=s},d:Ta(function(){this.N=DP;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function NP(e){return AP(function(){return $(e)},[])}function fK(){xe(function(){for(var e;e=RP.shift();)PP.call(e)})}function DP(){RP.push(this)===1&&(U.requestAnimationFrame||pK)(fK)}function hK(e,t){let r=mi(e);hi(()=>{r.current=e},[e]),Zr(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function G(e,t,r,n,i,o){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var l={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--mK,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return U.vnode&&U.vnode(l),l}function Ur(e,t,r){return(t=EK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EK(e){var t=CK(e,"string");return typeof t=="symbol"?t:t+""}function CK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ht(e,t,r){return(t=MK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MK(e){var t=FK(e,"string");return typeof t=="symbol"?t:t+""}function FK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mr(e,t,r){return(t=jK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jK(e){var t=JK(e,"string");return typeof t=="symbol"?t:t+""}function JK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function st(e,t,r){return(t=GK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GK(e){var t=HK(e,"string");return typeof t=="symbol"?t:t+""}function HK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _t(e,t,r){return(t=VK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VK(e){var t=$K(e,"string");return typeof t=="symbol"?t:t+""}function $K(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vn(e,t,r){return(t=KK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KK(e){var t=WK(e,"string");return typeof t=="symbol"?t:t+""}function WK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Eh(e,t,r){return(t=zK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zK(e){var t=YK(e,"string");return typeof t=="symbol"?t:t+""}function YK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lt(e,t,r){return(t=QK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QK(e){var t=XK(e,"string");return typeof t=="symbol"?t:t+""}function XK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZK(e,t,r){return(t=e9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e9(e){var t=t9(e,"string");return typeof t=="symbol"?t:t+""}function t9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fr(e,t,r){return(t=n9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n9(e){var t=i9(e,"string");return typeof t=="symbol"?t:t+""}function i9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Br(e,t,r){return(t=o9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o9(e){var t=a9(e,"string");return typeof t=="symbol"?t:t+""}function a9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _a(e,t,r){return(t=s9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s9(e){var t=c9(e,"string");return typeof t=="symbol"?t:t+""}function c9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function u9(e,t){return t==="call"&&e.join(".")==="GameSDK.showRewardAd"?0:15e3}function rP(e,t,r,n){return new Promise((i,o)=>{if(!window.parent||window.parent===window){o(new Error("[ParentProxy] No parent window"));return}let a=`${kh}-${++l9}`,s=d=>{let u=d.data;(u==null?void 0:u.type)===`${kh}:response`&&u.id===a&&(window.removeEventListener("message",s),l&&clearTimeout(l),u.error?o(new Error(u.error)):i(u.result))},c=u9(e,t),l=c>0?window.setTimeout(()=>{window.removeEventListener("message",s),o(new Error(`[ParentProxy] Timeout after ${c}ms: ${e.join(".")}.${t}`))},c):null;window.addEventListener("message",s),window.parent.postMessage({type:`${kh}:request`,id:a,path:e,action:t,args:r,value:n},"*")})}function jP(e){return console.log("[JoliboxSDK] NewsBreak createProxyForPath basePath:",e),new Proxy(()=>{},{get(t,r){if(console.log("[JoliboxSDK] NewsBreak createProxyForPath get:",r),!(r==="then"||r==="toJSON"||typeof r=="symbol"))return jP([...e,r])},set(t,r,n){return console.log("[JoliboxSDK] NewsBreak createProxyForPath set:",r),rP([...e,r],"set",void 0,n).catch(i=>{console.warn(`[ParentProxy] set ${[...e,r].join(".")} failed:`,i)}),!0},apply(t,r,n){return console.log("[JoliboxSDK] NewsBreak createProxyForPath apply:",n),rP(e,"call",n)}})}function d9(e){return jP([e])}function ji(e,t,r){return(t=p9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p9(e){var t=f9(e,"string");return typeof t=="symbol"?t:t+""}function f9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nP(e,t,r){return(t=h9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h9(e){var t=m9(e,"string");return typeof t=="symbol"?t:t+""}function m9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zt(e,t,r){return(t=g9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g9(e){var t=v9(e,"string");return typeof t=="symbol"?t:t+""}function v9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wl(e,t,r){return(t=y9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y9(e){var t=b9(e,"string");return typeof t=="symbol"?t:t+""}function b9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xh(e,t,r){return(t=_9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _9(e){var t=w9(e,"string");return typeof t=="symbol"?t:t+""}function w9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ge(e,t,r){return(t=S9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S9(e){var t=I9(e,"string");return typeof t=="symbol"?t:t+""}function I9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jr(e,t,r){return(t=k9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k9(e){var t=x9(e,"string");return typeof t=="symbol"?t:t+""}function x9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hr(e,t,r){return(t=T9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T9(e){var t=P9(e,"string");return typeof t=="symbol"?t:t+""}function P9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yt(e,t,r){return(t=R9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R9(e){var t=O9(e,"string");return typeof t=="symbol"?t:t+""}function O9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pn(e,t,r){return(t=N9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N9(e){var t=D9(e,"string");return typeof t=="symbol"?t:t+""}function D9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mr(e,t,r){return(t=L9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L9(e){var t=q9(e,"string");return typeof t=="symbol"?t:t+""}function q9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var T4,P4,R4,Pl,iP,oP,PT,aP,O4,N4,sP,D4,L4,RT,q4,U4,OT,M4,F4,B4,cP,j4,K4,W4,NT,z4,DT,Y4,uP,dP,pP,LT,Q4,X4,Ji,Rl,Th,Se,r$,n$,ya,Ia,i$,Rh,o$,_h,c$,Oh,qT,Fi,Nh,Dh,Lh,qh,w$,ct,Ol,re,hP,sm,cm,S$,mP,I$,A$,Fl,E$,Bl,Vi,vP,wt,Me,Ki,j$,J$,G$,FT,H$,V$,$$,K$,W$,Y$,Q$,X$,wP,BT,wh,jT,JT,fn,eK,tK,rK,nK,iK,dt,Fh,Ot,Ih,VT,$T,IP,Ge,KT,WT,zT,YT,QT,XT,ZT,lK,pe,wa,hn,jh,Dl,PP,Ah,RP,pK,He,mK,gK,Jr,Jh,Gh,kl,vK,yK,bK,_K,wK,SK,IK,LP,AK,qP,Hh,kK,xK,TK,PK,RK,OK,NK,eP,DK,LK,qK,UK,Vh,Gi,Bi,UP,BK,MP,$h,FP,BP,Kh,Wh,zh,tP,Ch,R,Ca,ql,r9,Ul,Yh,Qh,Xh,kh,l9,xl,Zh,em,$i,tm,ut,rm,Tl,A9,E9,C9,nm,im,om,am,Ml,dm=T(()=>{"use strict";ii();qs();de();T4=Object.defineProperty,P4=Object.defineProperties,R4=Object.getOwnPropertyDescriptors,Pl=Object.getOwnPropertySymbols,iP=Object.prototype.hasOwnProperty,oP=Object.prototype.propertyIsEnumerable,PT=(e,t,r)=>t in e?T4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,aP=(e,t)=>{for(var r in t||(t={}))iP.call(t,r)&&PT(e,r,t[r]);if(Pl)for(var r of Pl(t))oP.call(t,r)&&PT(e,r,t[r]);return e},O4=(e,t)=>P4(e,R4(t)),N4=(e,t)=>{var r={};for(var n in e)iP.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Pl)for(var n of Pl(e))t.indexOf(n)<0&&oP.call(e,n)&&(r[n]=e[n]);return r},sP=Object.defineProperty,D4=Object.defineProperties,L4=Object.getOwnPropertyDescriptors,RT=Object.getOwnPropertySymbols,q4=Object.prototype.hasOwnProperty,U4=Object.prototype.propertyIsEnumerable,OT=(e,t,r)=>t in e?sP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M4=(e,t)=>{for(var r in t||(t={}))q4.call(t,r)&&OT(e,r,t[r]);if(RT)for(var r of RT(t))U4.call(t,r)&&OT(e,r,t[r]);return e},F4=(e,t)=>D4(e,L4(t)),B4=(e,t)=>{for(var r in t)sP(e,r,{get:t[r],enumerable:!0})},cP=(e,t,r,n)=>{for(var i=t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=a(i)||i);return i},j4=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}K4=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(K4||{});W4={log:va("log"),warn:va("warn"),info:va("info"),error:va("error"),debug:va("debug")};Object.assign(globalThis,{logger:W4});NT=Symbol.for("Jolibox.canIUseMap"),z4={};globalThis[NT]||(globalThis[NT]=z4);DT=Symbol.for("Jolibox.canIUseMap.native"),Y4={};globalThis[DT]||(globalThis[DT]=Y4);uP=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(uP||{}),dP=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(dP||{}),pP=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(pP||{}),LT=["name","params"],Q4=["name","type","location","target","extra","timestamp","userId"],X4=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];t$();Ji=typeof window=="undefined",Rl=()=>!Ji&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Ji&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Ji&&navigator.userAgent.includes("Android"),!Ji&&navigator.userAgent.includes("Mac"),!Ji&&navigator.userAgent.includes("FB_IAB"),!Ji&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Th=class Ph{constructor(t){this.element=t,this.next=Ph.Undefined,this.prev=Ph.Undefined}};Th.Undefined=new Th(void 0);Se=Th,r$=class{constructor(){this._first=Se.Undefined,this._last=Se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Se.Undefined}clear(){let e=this._first;for(;e!==Se.Undefined;){let t=e.next;e.prev=Se.Undefined,e.next=Se.Undefined,e=t}this._first=Se.Undefined,this._last=Se.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new Se(e);if(this._first===Se.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==Se.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Se.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Se.Undefined&&e.next!==Se.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Se.Undefined&&e.next===Se.Undefined?(this._first=Se.Undefined,this._last=Se.Undefined):e.next===Se.Undefined?(this._last=this._last.prev,this._last.next=Se.Undefined):e.prev===Se.Undefined&&(this._first=this._first.next,this._first.prev=Se.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Se.Undefined;)yield e.element,e=e.next}},n$=0,ya=class{constructor(e){this.value=e,this.id=n$++}},Ia=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof ya&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){return this._event!=null||(this._event=(e,t)=>{var r,n,i,o,a,s;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(e=e.bind(t));let c=new ya(e);return this._listeners?this._listeners instanceof ya?this._listeners=[this._listeners,c]:this._listeners.push(c):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=c,(o=(i=this.options)==null?void 0:i.onDidFirstListener)==null||o.call(i,this)),(s=(a=this.options)==null?void 0:a.onDidAddListener)==null||s.call(a,this),this._size++,()=>{var l,d,u,p;if(!this._disposed){if(this._listeners instanceof ya)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(d=(l=this.options)==null?void 0:l.onDidRemoveLastListener)==null||d.call(l));else if(this._listeners){let f=this._listeners.indexOf(c);f>=0&&(this._listeners.splice(f,1),this._size--,this._size===0&&((p=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||p.call(u)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof ya?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},i$=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;var n;let i=(n=this.listeners.get(e))!=null?n:new Ia,o=c=>t(...c.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let c of s)t(...c.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e){let t=this.listeners.get(e),r=this.cachedEventQueue.get(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=new r$,this.cachedEventQueue.set(e,r)),r.push({args:i}),t&&t.fire({event:e,args:i})}once(e,t){var r=this;let n=function(){t(...arguments),r.off(e,n)};this.on(e,n,!1)}},Rh={};B4(Rh,{None:()=>o$,filter:()=>s$,once:()=>fP,toPromise:()=>a$});o$=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});_h=Symbol.for("Jolibox.hostEmitter"),c$=()=>{let e=new i$;return globalThis[_h]||(globalThis[_h]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[_h]};c$();Oh=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Ia,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return l$(o,r),n(...o)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};Oh=cP([lP],Oh);qT=class{constructor(){this._onWillExecuteCommand=new Ia,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Ia,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Oh,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=J4(3e4)),this._starActivation}executeCommand(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return j4(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Rh.toPromise(Rh.filter(this.registry.onDidRegisterCommand,i=>i===e))])]),this._tryExecuteCommand(e,r))})}executeCommandThowErr(e){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let t=this.registry.getCommand(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._onWillExecuteCommand.fire({commandId:e,args:n});let o=this.invokeFunction(t.handler,...n);return this._onDidExecuteCommand.fire({commandId:e,args:n}),o}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e(...r)}finally{}}};qT=cP([lP],qT);Fi=e=>e?function(){try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];e==null||e(...r)}catch(i){console.error("Error calling function",i)}}:()=>{console.log("wrapUserFunction: fn is undefined")},Nh=class{constructor(t){bt(this,"context",void 0),bt(this,"continueCallback",void 0),bt(this,"adIsShowingCallback",void 0),bt(this,"isBeforeAdCalled",!1),bt(this,"isBeforeRewardCalled",!1),bt(this,"isAdDismissedCalled",!1),bt(this,"isAdViewedCalled",!1),bt(this,"isAfterAdCalled",!1),bt(this,"currentProvider",void 0),bt(this,"currentClientParams",void 0),bt(this,"adsHasResponse",!1),bt(this,"videoChecker",window.document.createElement("video")),bt(this,"contextInfo",void 0),bt(this,"wrapShowAdFn",r=>()=>{var n,i,o;this.adsHasResponse=!0;let a=!1;this.videoChecker.play().catch(()=>{a=!1}),a=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:a},this.paramsToTrack)),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD",aP({userEvent:a},this.paramsToTrack)),Rl()&&this.context.track("mmp_ad_impression",{ad_network:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:"",ad_format:"rewarded",module:"game",game_id:this.contextInfo.objectId}),(o=this.adIsShowingCallback)==null||o.call(this,!0);let s=Fi(r);s==null||s()}),this.context=t,this.contextInfo=t.getContextInfo()}notifyIframeAdsEvent(t,r){let n=window.parent;n&&n!==window&&typeof n.postMessage=="function"&&n.postMessage({type:t,data:r},"*"),window.dispatchEvent(new CustomEvent(t,{detail:r}))}get paramsToTrack(){var t,r,n,i,o,a;return{provider:(r=(t=this.currentProvider)==null?void 0:t.name)!=null?r:null,type:(n=this.currentClientParams)==null?void 0:n.type,name:((i=this.currentClientParams)==null?void 0:i.type)==="preroll"?null:(a=(o=this.currentClientParams)==null?void 0:o.name)!=null?a:""}}wrapBeforeAd(t){return()=>{var r,n,i,o;if(this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD",this.paramsToTrack),!this.isBeforeAdCalled){this.isBeforeAdCalled=!0;let a=Fi(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),Rl()&&this.context.track("mmp_ad_impression",{ad_network:(o=(i=this.currentProvider)==null?void 0:i.name)!=null?o:"",ad_format:"interstitial",module:"game",game_id:this.contextInfo.objectId}))}}}wrapBeforeReward(t){return r=>{this.adsHasResponse=!0,this.isBeforeRewardCalled?this.wrapShowAdFn(r)():(this.isBeforeRewardCalled=!0,t==null||t(this.wrapShowAdFn(r)))}}wrapAdDismissed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdDismissedCalled){this.isAdDismissedCalled=!0;let r=Fi(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Fi(t);r==null||r()}}}wrapAfterAd(t){return()=>{if(this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AFTER_AD",this.paramsToTrack),!this.isAfterAdCalled){this.isAfterAdCalled=!0;let r=Fi(t);r==null||r()}}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s,c,l,d,u;switch(this.adsHasResponse=!0,this.context.track("CallAdBreakDone",{provider:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:null,breakType:r.breakType,breakName:(o=r.breakName)!=null?o:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_DONE",{provider:(s=(a=this.currentProvider)==null?void 0:a.name)!=null?s:null,breakType:r.breakType,breakName:(c=r.breakName)!=null?c:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{let p=Fi(t);p==null||p(r),(l=this.adIsShowingCallback)==null||l.call(this,!1),(d=this.continueCallback)==null||d.call(this,[!1,r]);break}default:{(u=this.continueCallback)==null||u.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return g(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,c,l,d,u,p,f;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(c=(s=this.currentProvider)==null?void 0:s.name)!=null?c:null}),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_TIMEOUT",{type:r.type,provider:(d=(l=this.currentProvider)==null?void 0:l.name)!=null?d:null}),(p=this.continueCallback)==null||p.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(u=r.name)!=null?u:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(f=this.adIsShowingCallback)==null||f.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Dh=class{constructor(t){yl(this,"context",void 0),yl(this,"adBreakIsShowing",!1),yl(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),yl(this,"reportPageHide",()=>{this.context.track("AdBreakHide",{context:"AdsActionDetection"})}),this.context=t,window.addEventListener("visibilitychange",()=>{document.hidden&&this.adBreakIsShowing&&this.reportPageHide()}),window.addEventListener("beforeunload",r=>{this.adBreakIsShowing&&this.reportPageJumpOut()})}};Lh=class{constructor(t){bl(this,"configs",null),bl(this,"firstRun",!0),bl(this,"context",void 0),bl(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return g(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};qh=class{constructor(t,r){qr(this,"name","ADSENSE"),qr(this,"context",void 0),qr(this,"contextInfo",void 0),qr(this,"configured",!1),qr(this,"initParams",void 0),qr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),qr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=N4(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),qr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),qr(this,"adUnit",n=>g(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:c,slot:l,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!c)throw new Error("targeting element is required");if(typeof c=="string"?f=document.querySelector(c):f=c,!f)throw new Error("targeting element not found");let h=l;if(h||(h=this.initParams.unitId),!h)throw new Error("slot is required");let v=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,b=document.createElement("ins");if(b.className="adsbygoogle",b.id="jolibox-ads",b.style.display="block",b.setAttribute("data-ad-client",this.initParams.clientId),b.setAttribute("data-ad-slot",h),v&&b.setAttribute("data-ad-format",v),u&&b.setAttribute("data-full-width-responsive",u),p&&b.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let y=document.createElement("div");y.style.position="absolute",y.style.top="0",y.style.left="0",y.style.width="100%",y.style.height="100%",y.style.display="flex",y.style.justifyContent="center",y.style.alignItems="center",y.style.backgroundColor="rgba(0, 0, 0, 0.5)",y.style.color="white",y.innerHTML="Test Ad",b.style.position="relative",f.appendChild(b),b.appendChild(y)}else f.appendChild(b),new MutationObserver(y=>{y.forEach(_=>{if(_.type==="attributes"&&_.attributeName==="data-ad-status"){let A=b.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:A!=null?A:"null"})}})}).observe(b,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return g(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),this.initParams.admobInterstitialSlot&&i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),this.initParams.admobRewardedSlot&&i.setAttribute("data-admob-rewarded-slot",this.initParams.admobRewardedSlot),this.initParams.admobOnly&&i.setAttribute("data-admob-ads-only","on"),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};w$=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(_$(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=b$(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e}(),ct="-ms-",Ol="-moz-",re="-webkit-",hP="comm",sm="rule",cm="decl",S$="@import",mP="@keyframes",I$="@layer",A$=Math.abs,Fl=String.fromCharCode,E$=Object.assign;Bl=1,Vi=1,vP=0,wt=0,Me=0,Ki="";j$=function(e,t,r){for(var n=0,i=0;n=i,i=vr(),n===38&&i===12&&(t[r]=1),!Ea(i);)Nt();return ka(e,wt)},J$=function(e,t){var r=-1,n=44;do switch(Ea(n)){case 0:n===38&&vr()===12&&(t[r]=1),e[r]+=j$(wt-1,t,r);break;case 2:e[r]+=Al(n);break;case 4:if(n===44){e[++r]=vr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Fl(n)}while(n=Nt());return e},G$=function(e,t){return bP(J$(yP(e),t))},FT=new WeakMap,H$=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!FT.get(r))&&!n){FT.set(e,!0);for(var i=[],o=G$(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},V$=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};$$=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case cm:e.return=_P(e.value,e.length);break;case mP:return Hi([ba(e,{value:ne(e.value,"@","@"+re)})],n);case sm:if(e.length)return x$(e.props,function(i){switch(k$(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hi([ba(e,{props:[ne(i,/:(read-\w+)/,":"+Ol+"$1")]})],n);case"::placeholder":return Hi([ba(e,{props:[ne(i,/:(plac\w+)/,":"+re+"input-$1")]}),ba(e,{props:[ne(i,/:(plac\w+)/,":"+Ol+"$1")]}),ba(e,{props:[ne(i,/:(plac\w+)/,ct+"input-$1")]})],n)}return""})}},K$=[$$],W$=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var v=h.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||K$,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(h)});var s,c=[H$,V$];{var l,d=[U$,F$(function(h){l.insert(h)})],u=M$(c.concat(n,d)),p=function(h){return Hi(L$(h),u)};s=function(h,v,b,y){l=b,p(h?h+"{"+v.styles+"}":v.styles),y&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new w$({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};Y$={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Q$=/[A-Z]|^ms/g,X$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wP=function(e){return e.charCodeAt(1)===45},BT=function(e){return e!=null&&typeof e!="boolean"},wh=B$(function(e){return wP(e)?e:e.replace(Q$,"-$&").toLowerCase()}),jT=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(X$,function(r,n,i){return fn={name:n,styles:i,next:fn},n})}return Y$[e]!==1&&!wP(e)&&typeof t=="number"&&t!==0?t+"px":t};JT=/label:\s*([^\s;{]+)\s*(;|$)/g;eK=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},tK=function(e,t,r){eK(e,t);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};rK=function(e){var t=W$(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=Sh(s,t.registered,void 0);return tK(t,l),t.key+"-"+l.name},n=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=Sh(s,t.registered),d="animation-"+l.name;return GT(t,{name:l.name,styles:"@keyframes "+d+"{"+l.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=Sh(s,t.registered);GT(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return HT(t.registered,r,nK(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){a.forEach(function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:SP.bind(null,t.registered),merge:HT.bind(null,t.registered,r)}},nK=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},iK=rK({key:"css"}),dt=iK.css,$T=0,IP=[],Ge=U,KT=Ge.__b,WT=Ge.__r,zT=Ge.diffed,YT=Ge.__c,QT=Ge.unmount,XT=Ge.__;Ge.__b=function(e){Ot=null,KT&&KT(e)},Ge.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),XT&&XT(e,t)},Ge.__r=function(e){WT&&WT(e),Fh=0;var t=(Ot=e.__c).__H;t&&(Ih===Ot?(t.__h=[],Ot.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Cl),t.__h.forEach(Bh),t.__h=[],Fh=0)),Ih=Ot},Ge.diffed=function(e){zT&&zT(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(IP.push(t)!==1&&VT===Ge.requestAnimationFrame||((VT=Ge.requestAnimationFrame)||sK)(aK)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Ih=Ot=null},Ge.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Cl),r.__h=r.__h.filter(function(n){return!n.__||Bh(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ge.__e(n,r.__v)}}),YT&&YT(e,t)},Ge.unmount=function(e){QT&&QT(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Cl(n)}catch(i){t=i}}),r.__H=void 0,t&&Ge.__e(t,r.__v))};ZT=typeof requestAnimationFrame=="function";lK=Symbol.for("preact-signals");pe=void 0,wa=void 0,hn=0,jh=0,Dl=0;et.prototype.brand=lK;et.prototype.h=function(){return!0};et.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};et.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};et.prototype.subscribe=function(e){var t=this;return Ta(function(){var r=t.value,n=pe;pe=void 0;try{e(r)}finally{pe=n}})};et.prototype.valueOf=function(){return this.value};et.prototype.toString=function(){return this.value+""};et.prototype.toJSON=function(){return this.value};et.prototype.peek=function(){var e=pe;pe=void 0;try{return this.value}finally{pe=e}};Object.defineProperty(et.prototype,"value",{get:function(){var e=EP(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(jh>100)throw new Error("Cycle detected");this.v=e,this.i++,Dl++,hn++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Jl()}}}});(Wi.prototype=new et).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Dl))return!0;if(this.g=Dl,this.f|=1,this.i>0&&!CP(this))return this.f&=-2,!0;var e=pe;try{kP(this),pe=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return pe=e,xP(this),this.f&=-2,!0};Wi.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}et.prototype.S.call(this,e)};Wi.prototype.U=function(e){if(this.t!==void 0&&(et.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Wi.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Wi.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=EP(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});xa.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};xa.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,TP(this),kP(this),hn++;var e=pe;return pe=this,uK.bind(this,e)};xa.prototype.N=function(){2&this.f||(this.f|=2,this.o=wa,wa=this)};xa.prototype.d=function(){this.f|=8,1&this.f||um(this)};RP=[];Ta(function(){PP=this.N})();OP.displayName="_st";Object.defineProperties(et.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:OP},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});zi("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof et&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});zi("__r",function(e,t){Ll();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return Ta(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Ll(r),e(t)});zi("__e",function(e,t,r,n){Ll(),e(t,r,n)});zi("diffed",function(e,t){Ll();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,i=t.props;if(n){var o=r.U;if(o)for(var a in o){var s=o[a];s!==void 0&&!(a in n)&&(s.d(),o[a]=void 0)}else o={},r.U=o;for(var c in n){var l=o[c],d=n[c];l===void 0?(l=dK(r,c,d,i),o[c]=l):l.o(d,i)}}}e(t)});zi("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var i in n){var o=n[i];o&&o.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});zi("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});kt.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var o=2&this.__$f;if(!(n||o||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};pK=function(e){queueMicrotask(function(){queueMicrotask(e)})};He=dt`
622
+ `,wV=()=>w("div",{style:eC.container,children:[w("style",{children:_V}),w("div",{style:eC.spinner})]});See=Ln()});function XC(){return g(this,null,function*(){if(qf)return qf;let t=`${S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${S.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield Y(t);return qf=r,r})}function ZC(){return g(this,null,function*(){let e=new ht;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(Uf)return e.resolve(!0),e.promise;let t=yield XC();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Uf=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};j("RecommendedGuide",P({eventType:W.View},o));let a=LC({games:r.games,title:n,buttons:i,onClose:s=>{var c;switch(Uf=!1,s.type){case"quit":j("RecommendedGuide",{eventType:W.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":j("RecommendedGuide",P({eventType:W.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((c=s.data)!=null&&c.game){let l=s.data.game;SV(l),j("GameItem",{eventType:W.Click,gameId:l.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:j("RecommendedGuide",P({eventType:W.Hide},o)),e.resolve(!0);break}}});return e.promise})}var qf,SV,Uf,ex=T(()=>{"use strict";V();de();D();dr();gt();At();qf=null;XC();SV=e=>{var a;let{data:t}=q("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",S.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;q("openSchemaSync",{schema:o})},Uf=!1});function AV(e){let t=P(P({},IV),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:c}=t,l=0,d=0,u=!1,p=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},f=()=>a?300:0;function m(){let{overlayTransition:_,containerTransition:A,iframeTransition:k}=p();he=document.createElement("div"),he.id="jolibox-modal-overlay",he.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${_}; opacity:0; visibility:hidden;`,se=document.createElement("div"),se.id="jolibox-modal-container",se.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${A};`;let x=document.createElement("div");x.id="jolibox-modal-loading",x.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let C=document.createElement("style");C.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(C);let E=document.createElement("div");if(E.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",Ft=document.createElement("iframe"),Ft.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${k};`,Ft.src=r,Ft.onload=()=>{x.parentNode&&x.parentNode.removeChild(x),Ft.style.opacity="1",v(),c==null||c(),Ae.emit("onModalIframeLoaded",{url:r})},E.appendChild(Ft),E.appendChild(x),se.appendChild(E),i){let H=document.createElement("div");H.style.cssText="position:absolute; top:10px; right:10px; width:30px; height:30px; background:rgba(0,0,0,0.1); border-radius:15px; display:flex; justify-content:center; align-items:center; cursor:pointer; z-index:10;",H.innerHTML="\u2715",H.onclick=y,se.appendChild(H)}he.appendChild(se),document.body.appendChild(he),he.addEventListener("click",function(H){H.target===he&&y()}),o&&b()}function v(){!he||!se||u||(he.style.visibility="visible",a?requestAnimationFrame(()=>{he&&(he.style.opacity="1"),se&&(se.style.transform="translateY(0)"),u=!0}):(he&&(he.style.opacity="1"),se&&(se.style.transform="translateY(0)"),u=!0),q("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function b(){if(!se)return;let _=x=>{l=x.touches[0].clientY},A=x=>{if(!u)return;d=x.touches[0].clientY;let C=d-l;C>0&&(se&&(se.style.transition="none",se.style.transform=`translateY(${C}px)`),x.preventDefault())},k=()=>{!u||!se||(se.style.transition=a?"transform 0.3s ease":"none",d-l>80?y():se.style.transform="translateY(0)")};se.addEventListener("touchstart",_),se.addEventListener("touchmove",A),se.addEventListener("touchend",k)}function y(){!he||!se||!u||(a?(se.style.transform="translateY(100%)",he.style.opacity="0"):he.style.visibility="hidden",u=!1,q("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{he&&(he.remove(),he=null,se=null,Ft=null,s==null||s(),Ae.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:y}}function tx(){return window.joliboxUI=J(P({},window.joliboxUI),{createIframeModal:AV}),()=>{window.joliboxUI=void 0,he&&he.parentNode&&he.parentNode.removeChild(he),se&&se.parentNode&&se.parentNode.removeChild(se),Ft&&Ft.parentNode&&Ft.parentNode.removeChild(Ft),he=null,se=null,Ft=null}}var IV,he,se,Ft,rx=T(()=>{"use strict";de();V();D();IV={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},he=null,se=null,Ft=null});var cx,Hc,Ff,Vc,Oi,lx,Ni,ux,dx,px,Ri,nx,Gc,ix,EV,fx,Bf,ox,mx,kV,ax,Mf,hx,sx,CV,gx,vx=T(()=>{cx=-1,Hc=function(e){addEventListener("pageshow",function(t){t.persisted&&(cx=t.timeStamp,e(t))},!0)},Ff=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Vc=function(){var e=Ff();return e&&e.activationStart||0},Oi=function(e,t){var r=Ff(),n="navigate";return cx>=0?n="back-forward-cache":r&&(document.prerendering||Vc()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},lx=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(i){Promise.resolve().then(function(){t(i.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(i){}},Ni=function(e,t,r,n){var i,o;return function(a){t.value>=0&&(a||n)&&((o=t.value-(i||0))||i===void 0)&&(i=t.value,t.delta=o,t.rating=function(s,c){return s>c[1]?"poor":s>c[0]?"needs-improvement":"good"}(t.value,r),e(t))}},ux=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},dx=function(e){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&e()})},px=function(e){var t=!1;return function(){t||(e(),t=!0)}},Ri=-1,nx=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Gc=function(e){document.visibilityState==="hidden"&&Ri>-1&&(Ri=e.type==="visibilitychange"?e.timeStamp:0,EV())},ix=function(){addEventListener("visibilitychange",Gc,!0),addEventListener("prerenderingchange",Gc,!0)},EV=function(){removeEventListener("visibilitychange",Gc,!0),removeEventListener("prerenderingchange",Gc,!0)},fx=function(){return Ri<0&&(Ri=nx(),ix(),Hc(function(){setTimeout(function(){Ri=nx(),ix()},0)})),{get firstHiddenTime(){return Ri}}},Bf=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},ox=[1800,3e3],mx=function(e,t){t=t||{},Bf(function(){var r,n=fx(),i=Oi("FCP"),o=lx("paint",function(a){a.forEach(function(s){s.name==="first-contentful-paint"&&(o.disconnect(),s.startTime<n.firstHiddenTime&&(i.value=Math.max(s.startTime-Vc(),0),i.entries.push(s),r(!0)))})});o&&(r=Ni(e,i,ox,t.reportAllChanges),Hc(function(a){i=Oi("FCP"),r=Ni(e,i,ox,t.reportAllChanges),ux(function(){i.value=performance.now()-a.timeStamp,r(!0)})}))})},kV=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=px(e),document.visibilityState==="hidden"?e():(r=t(e),dx(e)),r},ax=[2500,4e3],Mf={},hx=function(e,t){t=t||{},Bf(function(){var r,n=fx(),i=Oi("LCP"),o=function(c){t.reportAllChanges||(c=c.slice(-1)),c.forEach(function(l){l.startTime<n.firstHiddenTime&&(i.value=Math.max(l.startTime-Vc(),0),i.entries=[l],r())})},a=lx("largest-contentful-paint",o);if(a){r=Ni(e,i,ax,t.reportAllChanges);var s=px(function(){Mf[i.id]||(o(a.takeRecords()),a.disconnect(),Mf[i.id]=!0,r(!0))});["keydown","click"].forEach(function(c){addEventListener(c,function(){return kV(s)},{once:!0,capture:!0})}),dx(s),Hc(function(c){i=Oi("LCP"),r=Ni(e,i,ax,t.reportAllChanges),ux(function(){i.value=performance.now()-c.timeStamp,Mf[i.id]=!0,r(!0)})})}})},sx=[800,1800],CV=function e(t){document.prerendering?Bf(function(){return e(t)}):document.readyState!=="complete"?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},gx=function(e,t){t=t||{};var r=Oi("TTFB"),n=Ni(e,r,sx,t.reportAllChanges);CV(function(){var i=Ff();i&&(r.value=Math.max(i.responseStart-Vc(),0),r.entries=[i],n(!0),Hc(function(){r=Oi("TTFB",0),(n=Ni(e,r,sx,t.reportAllChanges))(!0)}))})}});var Sx={};Kh(Sx,{config:()=>MV});function TV(){Sn.on("isAdShowing",e=>{Wc=e,$r(Wc)&&S.mpType==="game"&&q("updateContainerConfigSync",{displayCapsuleButton:!Wc,webviewId:S.webviewId})})}function PV(){Ae.on("onInterceptSystemExit",({intercept:e})=>{bx=e})}function RV(){Ae.on("onInterceptBackPress",({intercept:e})=>{xV=e}),Ie("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;wx(t),Ae.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function OV(){Ae.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),j("onDocumentReady",{start_timestamp:Yc,timestamp:Date.now()})})}function NV(){Ie("onI18nChanged",({language:e})=>{Ae.emit("onI18nChanged",{i18n:e})})}function yx(e){S.mpType==="game"&&kt.start(e)}function DV(){Ie("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),Ae.emit("LifecycleEvent.onReady",P({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),j("joliboxServiceReady",{start_timestamp:Yc,timestamp:Date.now()}),_e("onJoliboxHideLoading")||yx(t),TC(()=>S.language)}),Ie("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;wx(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)}),Ie("onJoliboxHideLoading",({duration:e})=>{yx(e)})}function LV(){let e=()=>{j("onBeforeExit",{timestamp:Date.now()}),$c==null||$c(),Kc==null||Kc(),kt.close(Date.now()-Yc)},t=()=>Wc||bx;qt.onDoExit(()=>g(this,null,function*(){return t()?!0:S.platform==="ios"?(e(),!1):$r(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):zc!=null&&zc.canShowRecommended&&!_x&&(yield ZC())?!0:(e(),!1)})),qt.onDoBackPress(()=>g(this,null,function*(){return!!t()}))}function qV(){mx(e=>{j("GameFCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),hx(e=>{j("GameLCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),gx(e=>{j("GameTTFB",{value:e.value,rating:e.rating,navigationType:e.navigationType})})}function UV(){return g(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield Y(e);t&&(zc=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function MV(){Yc=Date.now(),DV(),TV(),PV(),RV(),LV(),OV(),NV(),UV(),qV(),Kc=tx(),$c=bv()}var $c,Kc,Yc,Wc,zc,bx,xV,_x,wx,Ix=T(()=>{"use strict";de();V();D();At();_v();bs();ex();gt();dr();rx();vx();gs();Wc=!1,zc=null,bx=!1,xV=!1,_x=!1,wx=e=>{$r(e)&&(_x=e)};qt.onReady(()=>{})});var Ax,FV,BV,jV,JV,Ex=T(()=>{"use strict";D();We();de();V();Ax=z(),FV="env",BV="getSystemInfoSync",jV=Q(BV,{implement:()=>{var r;let e=q("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:S.viewport.statusBarHeight,navigationBarHeight:S.viewport.navigationBarHeight}}}}),JV=Q(FV,{implement:()=>{var t;let e=q("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});Ax.registerCommand("API.getSystemInfoSync",jV);Ax.registerCommand("API.env",JV);L("env",{version:"1.0.0"});L("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var kx=h(jf=>{"use strict";D();We();It();de();At();V();var GV="exitGame",HV="onReady",VV="onJoliboxShow",$V="onJoliboxHide",Qc=z(),Xc=Zn(Te),KV=K(GV,{paramsSchema:I.tuple(I.function(),I.boolean().optional().default(!1)),implement:(e,t=!1)=>g(jf,null,function*(){Xc(e).call(jf),$r(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&gg("onRetentionResult",{shouldStay:t},S.from,!0),t||S.setDoExitDirectly(),yield fe("exitAppAsync")})}),WV=Q(VV,{paramsSchema:I.tuple(I.function()),implement(e){let t=Xc(e);Ie("onJoliboxEnterForeground",()=>{t.call(this),go.emit("visible",!0)})}}),zV=Q($V,{paramsSchema:I.tuple(I.function()),implement(e){let t=Xc(e);Ie("onJoliboxEnterBackground",()=>{t.call(this),go.emit("visible",!1)})}}),YV=Q(HV,{paramsSchema:I.tuple(I.function()),implement(e){let t=Xc(e);Ae.on("LifecycleEvent.onReady",r=>{t(r)})}});Qc.registerCommand("LifecycleSDK.exit",KV);Qc.registerCommand("LifecycleSDK.onReady",YV);Qc.registerCommand("LifecycleSDK.onJoliboxShow",WV);Qc.registerCommand("LifecycleSDK.onJoliboxHide",zV);L("lifeCycle.exit",{version:"1.0.0"});L("lifeCycle.onReady",{version:"1.0.0"});L("lifeCycle.onJoliboxShow",{version:"1.0.0"});L("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function Cx(e){let t={};if(!_n(e))return t;for(let[r,n]of Object.entries(e)){let i=r.toLocaleLowerCase();n?typeof n=="object"?t[i]=Object.prototype.toString.call(n):t[i]=String(n):t[i]=""}return t}function xx(e="GET"){if(e==="")return"POST";let t=e.toUpperCase();return["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"].includes(t)?t:"GET"}function Tx(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function Px(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!_n(r))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,c]of Object.entries(r))c!=null&&o.append(s,String(c));let a=o.toString();return a?`${n}?${a}`:n}var Rx=T(()=>{"use strict";D()});var QV,XV,Jf,Gf,Ox,ZV,e4,t4,Nx=T(()=>{"use strict";Kr();qu();We();Rx();D();It();V();QV=15,XV=Qa("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),Jf=0,Gf=[],Ox=Zn(Te),ZV=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},e4=e=>{let t=new ht,r=()=>{};return Q("request",{paramsSchema:I.tuple(I.object({url:I.string(),method:I.string(),headers:I.object().optional(),data:I.or(I.object(),I.array()).optional(),query:I.object().optional(),dataType:I.string().default("json"),responseType:I.string().default("text"),enableCache:I.boolean().default(!1),appendHostCookie:I.boolean().default(!0),timeout:I.number().default(3e4),success:I.function(),fail:I.function()})),implement(i){let o=()=>g(this,null,function*(){var s,c,l;let a=Ox(i.fail);try{if(Jf+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,v=Cx((s=i.headers)!=null?s:{}),b=xx(i.method),y=Tx(i.timeout),_=Px(i.url,b,d),A=Ox(i.success),k=Object.assign({},i,{method:b,header:m?void 0:v,data:b==="GET"||b==="HEAD"?void 0:d,enableCache:f,query:(c=i.query)!=null?c:{},dataType:u,responseType:p,appendHostCookie:m});y&&(k.timeout=y);let x=XV(_,k);{let{response:C}=yield x,{code:E,data:H,message:ae}=C;if(H&&typeof H=="object"&&"status"in H&&H.status!==200)throw Pe({code:H.status||-1,msg:`request:fail status ${H.status}`});t.resolve({code:E!=null?E:"SUCCESS",data:H,message:ae!=null?ae:"request:ok"}),A({code:"SUCCESS",message:"request:ok",data:H})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Jf-=1,(l=Gf.shift())==null||l()}});return Jf>=QV?(r=()=>{ZV(Gf,a=>a===o)},Gf.push(o)):o(),t.promise}})(e),{abort(){t.reject(Pe({code:-1,msg:"request:fail abort"})),r()}}},t4=z();t4.registerCommand("HttpSDK.request",e4);L("request",{version:"1.0.0"})});var r4,n4,i4,Hf,Dx=T(()=>{"use strict";D();de();We();r4=Q("showKeyboard",{paramsSchema:I.tuple(I.object({defaultValue:I.string().optional().default(""),multiple:I.boolean().optional().default(!1),maxLength:I.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),q("showKeyboardSync",J(P({},e),{defaultValue:r,maxLength:t}))}});L("keyboard.showKeyboard",{version:"1.0.0",properties:{params:{defaultValue:"1.0.0",multiple:"1.0.0",confirmHold:"1.0.0",confirmType:"1.0.0",maxLength:"1.0.0"}},success:{errMsg:"1.0.0"}});n4=Q("updateKeyboard",{paramsSchema:I.tuple(I.object({value:I.string()})),implement(e){q("updateKeyboardSync",e)}});L("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});i4=Q("hideKeyboard",{implement(){q("hideKeyboardSync")}});L("keyboard.hideKeyboard",{version:"1.0.0"});Hf=z();Hf.registerCommand("KeyboardSDK.showKeyboard",r4);Hf.registerCommand("KeyboardSDK.updateKeyboard",n4);Hf.registerCommand("KeyboardSDK.hideKeyboard",i4)});var Ux=h(Di=>{"use strict";D();We();At();de();V();var fa=z(),Zc=null,Vf=!1,Lx=0,o4=200;function a4(e){yn("cpUpdateScoreEvent",e,S.webviewId)}function qx(e){Zc=e,Vf||(Vf=!0,requestAnimationFrame(function t(){let r=Date.now();r-Lx>=o4?(Zc!==null&&(a4(Zc),Lx=r,Zc=null),Vf=!1):requestAnimationFrame(t)}))}function $f(e,t){return _e("notifyTaskGameInfoAsync")?q("notifyTaskGameInfoAsync",{event:e,inGameInfo:t}):kt.reporter({event:e,extraParams:{inGameInfo:t}})}var s4=K("levelFinished",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),duration:I.number().optional(),rating:I.number().optional(),score:I.number().optional(),variation:I.string().optional()})),implement:e=>g(Di,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(kt.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push($f("COMPLETE_GAME_LEVEL",{levelId:t,duration:r,rating:n,score:i})),qx({levelId:t,duration:r,rating:n,score:i}),yield Promise.all(a)})}),c4=K("gamePlayEnded",{paramsSchema:I.tuple(I.object({duration:I.number().optional(),rating:I.number().optional(),score:I.number(),variation:I.string().optional()})),implement:e=>g(Di,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(kt.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push($f("GAME_ENDED",{duration:t,rating:r,score:n})),qx({duration:t,rating:r,score:n}),yield Promise.all(o)})}),l4=K("levelUpgrade",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),name:I.string().optional()})),implement:r=>g(Di,[r],function*({levelId:e,name:t}){let n=[];n.push(kt.tracker("LevelUpgrade",{name:t,levelId:e})),n.push($f("GAME_LEVEL_UP",{levelId:e,levelName:t})),yn("cpUpdateScoreEvent",{levelId:e},S.webviewId),yield Promise.all(n)})}),u4=K("levelStart",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number())})),implement:e=>g(Di,null,function*(){let{levelId:t}=e;yield kt.tracker("LevelStart",{levelId:t})})}),d4=K("levelFailed",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),score:I.number().optional(),rating:I.number().optional(),duration:I.number().optional()})),implement:e=>g(Di,null,function*(){let{levelId:t,score:r,rating:n,duration:i}=e;yield kt.tracker("LevelFailed",{levelId:t,score:r,rating:n,duration:i})})});fa.registerCommand("TaskTrackerSDK.levelFinished",s4);fa.registerCommand("TaskTrackerSDK.gamePlayEnded",c4);fa.registerCommand("TaskTrackerSDK.levelUpgrade",l4);fa.registerCommand("TaskTrackerSDK.levelStart",u4);fa.registerCommand("TaskTrackerSDK.levelFailed",d4);L("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}});L("TaskTrackerSDK.onLevelStart",{version:"1.3.8",properties:{params:{levelId:"1.3.8"}}});L("TaskTrackerSDK.onLevelFailed",{version:"1.3.8",properties:{params:{levelId:"1.3.8",score:"1.3.8",rating:"1.3.8",duration:"1.3.8"}}})});var Kf,Wf,zf,p4,Mx,el=T(()=>{"use strict";V();de();We();D();Kr();L("login",{version:"1.0.0",properties:{force:"1.0.0"},success:{errMsg:"1.0.0",code:"1.0.0",token:"1.0.0",isLogin:"1.0.0"}});L("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0",isLogin:"1.0.0",isSubUser:"1.2.9"}});Kf=new Map;Ie("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i,appAccountToken:o})=>{let a=Kf.get(r);a&&(a.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i,appAccountToken:o}),Kf.delete(r))});Wf=(e,t=!1)=>g(void 0,null,function*(){var m,v,b;let{data:{isLogin:r}}=yield fe("checkLoginAsync");if(r)return{isLogin:!0,token:(m=S.hostUserInfo)==null?void 0:m.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=q("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw Pe({code:-1,msg:"login failed"});let s=new ht;Kf.set(a,s);let c=yield s.promise,l=q("envSync"),d=(b=(v=l==null?void 0:l.data)==null?void 0:v.hostUserInfo)==null?void 0:b.isSubUser;S.onEnvConfigChanged({hostUserInfo:J(P({},c),{isSubUser:d})});let y=c,{extra:u,appAccountToken:p}=y,f=tt(y,["extra","appAccountToken"]);return Ae.emit("onLoginComplete",f),t?c:f}),zf=K("login",{paramsSchema:I.tuple(I.object({skipLogin:I.boolean().optional(),triggerFrom:I.string().optional()}).optional()),implement(e){return g(this,null,function*(){return yield Wf(e!=null?e:{})})}}),p4=K("checkSession",{implement(){return g(this,null,function*(){var r;let{data:{isLogin:e}}=yield fe("checkLoginAsync"),t=(r=S.hostUserInfo)==null?void 0:r.isSubUser;return{isLogin:e,isSubUser:t}})}}),Mx=z();Mx.registerCommand("API.login",zf);Mx.registerCommand("API.checkSession",p4)});var Fx,Bx=T(()=>{"use strict";Fx=e=>{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=r+24*60*60*1e3;return e.filter(i=>i>=r&&i<n)}});function qn(e){return t=>g(this,null,function*(){var c;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield Wr(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=jx(i.data),a=Fx(o);if(r&&a.length>=r)return{canShow:!1,isFirst:!1};let s=Date.now();return console.log("todayFrequencies",a,n,s-a[0]),n&&s-((c=a==null?void 0:a[0])!=null?c:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function Un(e){return()=>g(this,null,function*(){var i;let t=Date.now(),r=yield Wr(e),n=jx((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield Et(e,JSON.stringify(n))})}var jx,Jx,Gx,Hx,Vx,$x,Kx,Wx,zx,Yx,Qx,Xx,Zx,eT,tT,ma=T(()=>{"use strict";ho();Bx();jx=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};Jx=qn("joli_coin_use_modal_frequency"),Gx=qn("joli_coin_payment_frequency"),Hx=qn("joli_coin_unlogin_modal_frequency"),Vx=qn("joli_gem_use_modal_frequency"),$x=qn("joli_gem_payment_frequency"),Kx=qn("joli_gem_unlogin_modal_frequency"),Wx=qn("subscription_frequency");zx=Un("joli_coin_use_modal_frequency"),Yx=Un("joli_coin_payment_frequency"),Qx=Un("joli_coin_unlogin_modal_frequency"),Xx=Un("joli_gem_use_modal_frequency"),Zx=Un("joli_gem_payment_frequency"),eT=Un("joli_gem_unlogin_modal_frequency"),tT=Un("subscription_frequency")});var Yf,tl,Qf=T(()=>{"use strict";gt();Yf=Promise.resolve(),tl=(e,t)=>g(void 0,null,function*(){Yf=Yf.then(()=>g(void 0,null,function*(){yield Y(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Yf})});var rl,nl,Kt,il,Mn,Wt,Nr,ol,al,Fn,Li,f4,F,Dr,Lr,Ve=T(()=>{"use strict";D();rl="UNLOCK_OPTIONS_CHANGED",nl="INVOKE_PAYMENT",Kt="ON_PAYMENT_RESULT",il="ON_USE_MODAL_EVENT",Mn="ON_USE_MODAL_RESULT",Wt="ON_USE_MODAL_FREQUENCY",Nr="ON_USE_UNLOGIN_MODAL_EVENT",ol="INVOKE_UNLOGIN_MODAL_EVENT",al="INVOKE_SUBSCRIPTION_EVENT",Fn="ON_USE_SUBSCRIPTION_RESULT",Li=new Zt,f4=()=>({on:Li.on.bind(Li),off:Li.off.bind(Li),emit:Li.emit.bind(Li)}),F=f4(),Dr={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},joinMember:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},Lr={show:!0,minInterval:8*60*60*1e3}});function $e(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=P(P({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var pr=T(()=>{"use strict"});var iT=h(Xf=>{"use strict";ma();Qf();Ve();Ve();dr();At();D();pr();var m4={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:Jx,frequencyUpdater:zx,apiEndpointAutoDeduct:"/api/joli-coin/user-config"},JOLI_GEM:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"gem_unlock_popup_show",coinUnlock:"gem_unlock_click",adUnlock:"gem_ad_unlock_click"},frequencyChecker:Vx,frequencyUpdater:Xx,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},rT=Ln(),nT=$e(F,Wt);nT.getData();F.on(il,(e,t)=>g(Xf,null,function*(){let r=t.currency,n=m4[r];if(e.includes("ADS-")){yield rT.show({duration:3e3});let c=yield nT.getData(),{canShow:l,isFirst:d}=yield n.frequencyChecker(c.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,l,d),rT.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){F.emit(Mn,{useModalResult:"CONFIRM"});return}if(!l){F.emit(Mn,{useModalResult:"FAILED"});return}}j(n.trackEvents.popupShow,{eventType:W.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=FC({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{j(n.trackEvents.coinUnlock,{targetType:"game",eventType:W.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),F.emit(Mn,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:c})=>{c==="FAILED"&&j(n.trackEvents.adUnlock,{targetType:"game",eventType:W.Click,currency:r}),F.emit(Mn,{useModalResult:(c!=null?c:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:c=>g(Xf,null,function*(){yield tl(c,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function oT(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return g(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return Te(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var aT=T(()=>{"use strict";It()});var ha=T(()=>{"use strict"});var h4,qi,Rt,g4,Bn,sl=T(()=>{"use strict";ha();D();V();gt();h4=()=>{let[e,t]=[Wa,za].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:qi,createPaymentInternalError:Rt}=h4(),g4=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Bn=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>g(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw qi(n,1001);return yield this.pay()});this.cancelOrder=t=>g(this,null,function*(){var n,i;let{response:r}=yield Y(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw qi((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(P({},this.generatePaymentContext()))),`${g4}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var em,sT,cT=T(()=>{"use strict";gt();sl();ha();em=class extends Bn{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>g(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return g(this,null,function*(){var n,i,o,a;try{let{response:s}=yield Y("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw qi((i=(n=s.errMsg)!=null?n:s.message)!=null?i:"",1002);return{code:"SUCCESS",message:(o=s.message)!=null?o:"placeorder jolicoin success",data:s.data}}catch(s){throw console.info("[JoliboxSDK] placeorder failed",s),Rt((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},sT=()=>{let e=new Map;return t=>g(void 0,null,function*(){let r=e.get(t);return r||(r=new em(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var lT,uT=T(()=>{"use strict";lT={SUCCESS:"unlockSuccess",FAIL_NOT_LOGIN:"unlockFailedNotLogin",FAIL_PAYING:"unlockFailedPaying",FAIL_PRODUCT_EMPTY:"unlockFailedProductIdNotFound",FAIL_GET_PRODUCT_INFO:"unlockFailedProductInvalid",FAIL_LAUNCH_BILLING:"unlockFailedLaunch",FAIL_TRANSACTION:"unlockFailedTransaction",FAIL_VERIFY:"unlockFaileVerify",TRANSACTION_PENDING:"transactionPending",FAILED:"unlockFailed"}});var tm,dT,rm,nm,v4,im,pT=T(()=>{"use strict";gt();sl();ha();de();D();V();dr();uT();tm=new Map;Ie("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=tm.get(t);if(o){if(r==="SUCCESS")o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&Ka(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Rt(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=lT[r];a&&Or(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}tm.delete(t)}});dT=e=>g(void 0,null,function*(){var n,i;let t=new ht,r;try{let o=yield fe("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw Rt("orderUUID is null",1002);tm.set(r,t)}catch(o){throw Rt((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),rm=class extends Bn{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>g(this,null,function*(){return yield dT({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return g(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},nm=class extends Bn{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>g(this,null,function*(){return yield dT({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return g(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield Y("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw Rt("iap-init failed",1002);return this.appAccountToken=(a=i==null?void 0:i.data)==null?void 0:a.iapToken,{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},v4={android:rm,ios:nm},im=()=>{let e=new Map;return t=>g(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=v4[S.platform];if(!s)throw Rt("platform not supported",1002);i=new s(r,n),e.set(r,i)}let{code:o,message:a}=yield i.startPayment({productId:r,appStoreProductId:n});if(o!=="SUCCESS")throw qi(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var jn,om=T(()=>{"use strict";aT();cT();pT();jn=oT();jn.registerPaymentHandler("JOLI_COIN",sT());jn.registerPaymentHandler("JOLI_COIN_IAP",im());jn.registerPaymentHandler("JOLI_GEM_IAP",im())});function fT(n,i){return g(this,arguments,function*(e,t,r={}){let{storageKeyPrefix:o="joli_cache_"}=r,a=o+e,s=a+"_timestamp";try{let c=yield t(),l=Date.now();try{c!=null&&(yield Et(a,c),yield Et(s,l.toString()),console.log("[Cache] Cached result for key:",e))}catch(d){console.warn("[Cache] Failed to save to localStorage for key:",e,d)}return c}catch(c){throw console.warn("[Cache] Executor failed for key:",e,c),c}})}function cl(n,i){return g(this,arguments,function*(e,t,r={}){let{cacheDuration:o=-1,storageKeyPrefix:a="joli_cache_"}=r,s=a+e,c=s+"_timestamp",l=o===1/0||o===-1;try{let{data:d}=yield Wr(s),{data:u}=yield Wr(c);if(d&&u){let p=parseInt(u,10);if(l||Date.now()-p<o){console.log("[Cache] Using localStorage cached data for key:",e);let f=JSON.parse(d);return l||setTimeout(()=>g(this,null,function*(){try{console.log("[Cache] Background updating cache for key:",e);let m=yield t(),v=Date.now();yield Et(s,m),yield Et(c,v.toString()),console.log("[Cache] Background cache update completed for key:",e)}catch(m){console.warn("[Cache] Background cache update failed for key:",e,m)}}),0),f}else yield Et(s,null),yield Et(c,null)}}catch(d){console.warn("[Cache] Failed to read from localStorage for key:",e,d)}try{let d=yield t(),u=Date.now();try{d&&(yield Et(s,d),yield Et(c,u.toString()))}catch(p){console.warn("[Cache] Failed to save to localStorage for key:",e,p)}return d}catch(d){throw console.warn("[Cache] Executor failed for key:",e,d),d}})}var am=T(()=>{"use strict";ho()});function y4(e,t){Object.keys(t).forEach(r=>{let n=e.paymentChoices.find(i=>i.appStoreProductId===r);n&&(n.totalAmountStr=t[r].price)}),e.paymentChoices=e.paymentChoices.filter(r=>!lo(r.totalAmountStr))}var dn,sm,fr,dl,cm,lm,ll,ul,mT,pl,um=T(()=>{"use strict";om();D();de();gt();D();am();dn=class dn{execute(t,r){return g(this,null,function*(){var a,s,c;let{response:n}=yield Y(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(console.log("[PaymentService] get products info from server",t,n.data),!((a=n.data)!=null&&a.data))throw new Error("get products info failed");let i=n.data.data,o=(c=(s=i.paymentChoices)==null?void 0:s.filter(l=>typeof l.appStoreProductId=="string").map(l=>l.appStoreProductId))!=null?c:[];if(o.length>0){let l=yield this.getNativePriceData(o);l&&y4(i,l)}if(i.paymentChoices.length===0)throw new Error("paymentChoices is empty");return i})}getNativePriceData(t){return g(this,null,function*(){let r=t.sort().join(",");return cl(r,()=>g(this,null,function*(){try{let{data:n}=yield fe("requestProductDetailsAsync",{appStoreProductIds:t});return n&&(dn.nativePriceCache.set(r,n),dn.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[PaymentService] Failed to fetch native product details:",n),n}}),{cacheDuration:dn.NATIVE_PRICE_CACHE_DURATION,storageKeyPrefix:"joli_native_price_"})})}extractCacheableData(t){return{paymentChoices:t.paymentChoices}}mergeData(t,r){return{balance:r.balance,enableAutoDeduct:r.enableAutoDeduct,paymentChoices:t.paymentChoices}}processCachedData(t){return{balance:0,enableAutoDeduct:!1,paymentChoices:t.paymentChoices}}static clearNativePriceCache(){this.nativePriceCache.clear(),this.nativePriceCacheTimestamp.clear(),console.log("[PaymentService] Cleared native price cache")}};dn.nativePriceCache=new Map,dn.NATIVE_PRICE_CACHE_DURATION=10*60*1e3,dn.nativePriceCacheTimestamp=new Map;sm=dn,fr=class fr extends Jt{constructor(r,n){super(new sm,{duration:10*60*1e3,timeout:3e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return g(this,null,function*(){let r=fr.failureCounters.get(this.apiEndpoint)||0;if(r>=fr.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${fr.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return fr.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw fr.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${fr.MAX_FAILURE_COUNT+1}) for ${this.apiEndpoint}:`,n),n}})}purchase(r){return g(this,null,function*(){var a;let n=yield this.getProductsInfo(),i=(a=n==null?void 0:n.paymentChoices.find(s=>s.productId===r))==null?void 0:a.appStoreProductId;if(!i)throw new Error("appStoreProductId not found");return yield jn.invokePayment(this.paymentType==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}getProductsInfoWithBalance(){return g(this,null,function*(){return this.request(this.apiEndpoint)})}refreshProductsInfo(){return g(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}static resetFailureCounters(){this.failureCounters.clear()}static getFailureCount(r){return this.failureCounters.get(r)||0}};fr.failureCounters=new Map,fr.MAX_FAILURE_COUNT=2;dl=fr,cm=class extends dl{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},lm=class extends dl{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},ll=null,ul=null,mT=()=>ll||(ll=new cm,ll),pl=()=>ul||(ul=new lm,ul)});var vT=h(fl=>{"use strict";Ve();dr();V();el();D();ma();om();dr();We();At();Qf();pr();um();var b4={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:Gx,frequencyUpdater:Yx,apiEndpoint:"/api/joli-coin/balance-detail",apiEndpointAutoDeduct:"/api/joli-coin/user-config",paymentType:"JOLI_COIN_IAP"},JOLI_GEM:{frequencyConfigKey:"charge",trackEvents:{modalShow:"gem_order_show",orderClick:"gem_order_click",payEnsure:"gem_pay_ensure",payResult:"gem_pay_result",adUnlock:"gem_ad_unlock_click"},frequencyChecker:$x,frequencyUpdater:Zx,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},Ui=Ln(),hT=mT(),gT=pl(),_4=$e(F,Wt);F.on(nl,(e,t)=>g(fl,null,function*(){var r,n,i;try{let o=t.currency,a=b4[o];if(!_e("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{F.emit(Kt,{paymentResult:"FAILED",currency:o})},0);return}if(e.includes("ADS-")){yield Ui.show({duration:3e3});let d=yield _4.getData(),{canShow:u}=yield a.frequencyChecker(d.joliCoinUseAndCharge[a.frequencyConfigKey]);if(console.log(`${o} payment show by frequency`,u),Ui.hide(),!u){F.emit(Kt,{paymentResult:"FAILED",currency:o});return}console.log("show by frequency")}yield Ui.show({duration:3e3});let s=o==="JOLI_COIN"?hT:gT,c=yield s.getProductsInfo();if(Ui.hide(),!c||!((r=c.paymentChoices)!=null&&r.length)){F.emit(Kt,{paymentResult:"FAILED",currency:o});return}j(a.trackEvents.modalShow,{targetType:"game",eventType:W.View,currency:o});let l=BC({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:o,paymentChoices:(i=(n=c.paymentChoices)==null?void 0:n.map(d=>{var u;return J(P({},d),{totalAmountStr:(u=d.totalAmountStr)!=null?u:""})}))!=null?i:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:d=>g(fl,null,function*(){var f,m,v,b,y,_,A,k;if(j(a.trackEvents.payEnsure,{targetType:"game",eventType:W.Click,payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(m=(f=c.paymentChoices.find(x=>x.productId===d))==null?void 0:f.totalAmountStr)!=null?m:""}),!((v=S.hostUserInfo)!=null&&v.isLogin)){let{data:x}=yield zf({skipLogin:!0});if(!(x!=null&&x.isLogin)){console.log("login failed");return}let C=yield s.refreshProductsInfo();if(((b=C==null?void 0:C.balance)!=null?b:0)>=t.quantity){F.emit(Kt,{paymentResult:"SUCCESS",currency:o}),l.destroy();return}}console.log("invokeNativePayment",d);let u=(_=(y=c==null?void 0:c.paymentChoices)==null?void 0:y.find(x=>x.productId===d))==null?void 0:_.appStoreProductId;if(!u){F.emit(Kt,{paymentResult:"FAILED",currency:o}),l.destroy();return}yield Ui.show({duration:3e3});let{code:p}=yield jn.invokePayment(a.paymentType,{productId:d,appStoreProductId:u});if(Ui.hide(),j(a.trackEvents.payResult,{eventType:W.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(k=(A=c.paymentChoices.find(x=>x.productId===d))==null?void 0:A.totalAmountStr)!=null?k:"",payResult:p}),p!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}Or("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),F.emit(Kt,{paymentResult:"SUCCESS",currency:o}),l.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:d})=>{F.emit(Kt,{paymentResult:(d!=null?d:"")==="CANCEL"?"CANCEL":"FAILED",currency:o}),j(a.trackEvents.adUnlock,{targetType:"game",eventType:W.Click,currency:o}),l.destroy()}},onEnableDeductChanged:d=>g(fl,null,function*(){yield tl(d,a.apiEndpointAutoDeduct)})},onSelect:d=>{var u,p;j(a.trackEvents.orderClick,{targetType:"game",eventType:W.Click,coinAmount:t.quantity,currency:o,orderPrice:(p=(u=c.paymentChoices.find(f=>f.productId===d))==null?void 0:u.totalAmountStr)!=null?p:""})}});yield a.frequencyUpdater()}catch(o){console.error("payment failed",o),F.emit(Kt,{paymentResult:"FAILED",currency:t.currency})}}));hT.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});gT.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var bT=h(ml=>{"use strict";Ve();pr();ma();gt();It();D();el();dr();At();var w4={JOLI_COIN:{frequencyChecker:Hx,frequencyUpdater:Qx,trackEvents:{modalExpose:"LoginGuideModal",clickConfirm:"LoginGuideModal",clickConfirmLogin:"LoginGuideModal",modalHide:"LoginGuideModal",clickClose:"LoginGuideModal",clickWatchAds:"LoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.rewardTips}",usedText:"Jolicoin Used"}},JOLI_GEM:{frequencyChecker:Kx,frequencyUpdater:eT,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},yT=$e(F,Wt);yT.getData();F.on(ol,(e,t)=>g(ml,null,function*(){var r;try{let n=t.currency,i=w4[n];if(e.includes("ADS-")){let s=yield yT.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){F.emit(Nr,{result:"NOT_SUPPORT"});return}let{canShow:c}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,c),!c){F.emit(Nr,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield S4())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),F.emit(Nr,{result:"NOT_SUPPORT"});return}j(i.trackEvents.modalExpose,{eventType:W.Expose,currency:n},W.Expose);let a=jC({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>g(ml,null,function*(){var d,u,p,f;j(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:W.Click,currency:n},W.Click);let{isLogin:s,extra:c,isFirstLogin:l}=yield Wf({},!0);if(!s){console.log("login failed");return}if(j(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:l,eventType:W.Click,currency:n},W.Click),l&&((d=c==null?void 0:c.firstLogin)!=null&&d.reward)){let{rewardValue:m}=c.firstLogin.reward;Or(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}F.emit(Nr,{result:"SUCCESS",rewards:{claimedRewardValue:(f=(p=(u=c==null?void 0:c.firstLogin)==null?void 0:u.reward)==null?void 0:p.rewardValue)!=null?f:0,isFirstLogin:l!=null?l:!1,currency:t.currency}}),a.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:s})=>{j(i.trackEvents.modalHide,{eventType:W.Hide,currency:n},W.Hide);let c=s==="CANCEL"?"click_close":"click_watch_ads",l=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;j(l,{type:c,eventType:W.Click,currency:n},W.Click),F.emit(Nr,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){Te(new Pg(n)),F.emit(Nr,{result:"FAILED"})}}));var S4=()=>g(ml,null,function*(){var t;let{response:e}=yield Y("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function I4(){let e=new Map;return{registerSubscriptionHandler(r,n){e.set(r,n)},invokeSubscription(r,...n){return g(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} subscription not supported in this platform`};try{return yield i(...n)}catch(o){return Te(o),{code:"FAILED",message:`[joliboxSDK]: subscription error ${o}`}}})}}}var ga,dm=T(()=>{"use strict";It();ga=I4()});var Jn,hl=T(()=>{"use strict";Jn={PlaceOrderFailed:1001,CancelOrderFailed:1002,SubscriptionFailed:1003,InvalidPlan:1004}});var A4,_T,gl,E4,va,pm=T(()=>{"use strict";hl();D();V();A4=()=>{let[e,t]=[Wa,za].map(r=>(n,i,o)=>new r(n,i,o));return{createSubscriptionError:e,createSubscriptionInternalError:t}},{createSubscriptionError:_T,createSubscriptionInternalError:gl}=A4(),E4=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",va=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startSubscription=t=>g(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw _T(n,Jn.PlaceOrderFailed);return yield this.subscribe(t)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(P({},this.generateSubscriptionContext()))),`${E4}/subscription/callback?${t.toString()}`};this.createSubscriptionError=_T;this.createSubscriptionInternalError=gl}setOrderId(t){this._orderId=t}setOrderStatus(t){this._orderStatus=t}get orderId(){return this._orderId}get status(){return this._orderStatus}}});function k4(e,t){Object.keys(t).forEach(r=>{var i,o,a,s;let n=e.find(c=>c.appStoreProductId===r);n&&(n.amountStr=t[r].pricing.formattedPrice,n.originalAmountStr=t[r].pricing.originalPrice,n.discountPercentage=(o=(i=t[r].pricing.discountPercentage)==null?void 0:i.toString())!=null?o:"",n.trialDay=(s=(a=t[r].trial)==null?void 0:a.duration)!=null?s:0)}),e=e.filter(r=>!lo(r.amountStr))}var Gn,yl,fm,mm,vl,wT,hm=T(()=>{"use strict";D();de();gt();D();am();dm();de();pm();hl();Gn=class Gn{static getNativePriceCache(t){var n;let r=t.sort().join(",");return(n=this.nativePriceCache.get(r))!=null?n:{}}execute(t,r){return g(this,null,function*(){var a,s;let{response:n}=yield Y(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(!((a=n.data)!=null&&a.data))throw new Error("get subscription tiers failed");let i=n.data.data,o=(s=i==null?void 0:i.filter(c=>typeof c.appStoreProductId=="string").map(c=>c.appStoreProductId))!=null?s:[];if(o.length>0){let c=yield this.getNativePriceData(o);c&&k4(i,c)}if(i.length===0)throw new Error("subscription tiers is empty");return i})}requestNativeSubscriptionPlans(t,r){return g(this,null,function*(){try{let{data:n}=yield fe("requestSubscriptionPlansAsync",{appStoreProductIds:t,type:"game"});return n&&(Gn.nativePriceCache.set(r,n),Gn.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[SubscriptionService] Failed to fetch native subscription pricing:",n),n}})}getNativePriceData(t,r=!1){return g(this,null,function*(){let n=t.sort().join(",");return(r?fT:cl)(n,()=>this.requestNativeSubscriptionPlans(t,n),{storageKeyPrefix:"joli_subscription_price_"})})}extractCacheableData(t){return{subscriptionTiers:t}}mergeData(){throw new Error("SubscriptionService does not support real-time data merging")}processCachedData(t){return t.subscriptionTiers}updateNativePriceCache(t){return g(this,null,function*(){yield this.getNativePriceData(t,!0),console.log("[SubscriptionService] Updated native price cache for products:",t)})}static clearNativePriceCache(){this.nativePriceCache.clear(),this.nativePriceCacheTimestamp.clear(),console.log("[SubscriptionService] Cleared native price cache")}};Gn.nativePriceCache=new Map,Gn.NATIVE_PRICE_CACHE_DURATION=1*24*60*60*1e3,Gn.nativePriceCacheTimestamp=new Map;yl=Gn,fm=class extends Jt{constructor(r){super(new yl,{duration:30*60*1e3,timeout:3e3});this.apiEndpoint=r;this.pendingSubscriptions=new Map;this.subInfoCacheKeys=[];this.listenSubscriptionPanelStateChange()}getSubInfo(){return g(this,null,function*(){var r;try{let n=yield this.request(this.apiEndpoint);return this.subInfoCacheKeys=(r=n==null?void 0:n.map(i=>{var o;return(o=i.appStoreProductId)!=null?o:""}))!=null?r:[],n}catch(n){throw console.warn(`[SubscriptionService] getSubInfo failed for ${this.apiEndpoint}:`,n),n}})}refreshSubInfo(){return g(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}updateNativePriceCache(r){return g(this,null,function*(){yield this.requestAdapter.updateNativePriceCache(r)})}updateAllNativePriceCache(){return g(this,null,function*(){try{this.subInfoCacheKeys.length>0&&(yield this.updateNativePriceCache(this.subInfoCacheKeys),this.forceRequest(this.apiEndpoint))}catch(r){throw console.warn("[SubscriptionService] Failed to update all native price cache:",r),r}})}subscribe(r){return g(this,null,function*(){var s;console.log("[SubscriptionService] subscribe params",ga);let n=new AbortController,i=ga.invokeSubscription("SUB_APP",{productId:r.nativeProductId,appStoreProductId:r.appStoreProductId,planId:r.basePlanId}),o=this.pollSubscriptionStatus(n.signal),a=yield Promise.race([i.then(c=>{var l;return n.abort(),{result:c.code,subPlanId:(l=c.data)==null?void 0:l.subPlanId,message:c.message}}),o.then(c=>(c==null?void 0:c.result)==="SUCCESS"?(n.abort(),c):new Promise(()=>{console.log("[SubscriptionPolling] Timeout for subscriptionService.subscribe completion")}))]);return{result:a.result,subPlanId:a.subPlanId,message:(s=a.message)!=null?s:""}})}pollSubscriptionStatus(r){return g(this,null,function*(){var o,a;for(let s=0;s<10;s++){if(r.aborted){console.log("[SubscriptionPolling] Aborted due to subscribe completion");return}try{let{response:c}=yield Y("/api/subs/info",{method:"GET",appendHostCookie:!0,responseType:"json"});if(((a=(o=c.data)==null?void 0:o.data)==null?void 0:a.status)==="ACTIVE")return{result:"SUCCESS",subPlanId:c.data.data.subPlanId,message:"Subscription activated via polling"}}catch(c){console.warn(`[SubscriptionPolling] Attempt ${s+1} failed:`,c)}s<9&&!r.aborted&&(yield $a(5e3))}})}invokeSubscriptionPanel(){return g(this,null,function*(){var i,o;let r=new ht,n;try{if(console.log("[invokeSubscriptionPanel] requestSubscriptionSync params"),n=(i=q("invokeSubscriptionPanelSync",{type:"game"}).data)==null?void 0:i.subUUID,!n)throw gl("orderUUID is null",Jn.SubscriptionFailed);this.pendingSubscriptions.set(n,r)}catch(a){throw gl((o=JSON.stringify(a))!=null?o:"subscription panel failed",Jn.SubscriptionFailed)}return r.promise})}getTierByProductId(r){return g(this,null,function*(){var s;let n=yield this.getSubInfo(),i=n==null?void 0:n.find(c=>c.productId===r);if(!i)return;let o=yl.getNativePriceCache((n!=null?n:[]).map(c=>{var l;return(l=c.appStoreProductId)!=null?l:""}));if(!o)return;let a=o[(s=i.appStoreProductId)!=null?s:""];if(a)return console.log("[SubscriptionService] getTierByProductId nativeSubInfo",a),{nativeProductId:a.productId,appStoreProductId:i.appStoreProductId,basePlanId:a.basePlanId}})}listenSubscriptionPanelStateChange(){Ie("onSubscriptionPanelStateChange",r=>{var i;console.log("[onSubscriptionPanelStateChange] data",r);let n=this.pendingSubscriptions.get(r.subUUID);n&&(r.status==="SUCCESS"?n.resolve({code:"SUCCESS",message:"subscription panel success",data:{result:"SUCCESS",subPlanId:(i=r.orderResponse)==null?void 0:i.subPlanId}}):n.resolve({code:"FAILED",message:"subscription panel failed",data:{result:"FAILED"}}))})}},mm=class extends fm{constructor(){super("/api/subs/pricing")}},vl=null,wT=()=>vl||(vl=new mm,vl)});var ST=T(()=>{"use strict"});function AT(){let e=new Map;return t=>g(this,null,function*(){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler params",t);let{productId:r,planId:n}=t,i=`${r}_${n}`,o=e.get(i);if(!o){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler instance not found",i);let a=C4[S.platform];if(!a)throw new Error(`Platform ${S.platform} not supported for sub-app subscription`);o=new a(r,n),e.set(i,o)}return o.startSubscription({basePlanId:n,appStoreProductId:t.appStoreProductId,productId:r})})}var gm,IT,vm,ym,C4,ET=T(()=>{"use strict";V();pm();ha();sl();D();de();D();hl();Ie("onGlobalSubscriptionStateChange",e=>{let{status:t,orderResponse:r}=e;console.log("[onGlobalSubscriptionStateChange] data",e),t==="SUCCESS"&&(r!=null&&r.subPlanId||r!=null&&r.ticketId)&&S.onEnvConfigChanged({hostUserInfo:{isLogin:!0,isSubUser:!0}})});gm=new Map;Ie("onSubscritptionStateChange",e=>{var o,a,s;let{subUUID:t,status:r,orderResponse:n}=e;console.log("[onSubscritptionStateChange] data",e);let i=gm.get(t);if(i){if(r==="SUCCESS")console.log("=======onSubscritptionStateChange",r,(o=n==null?void 0:n.subPlanId)!=null?o:n==null?void 0:n.ticketId),i.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{subPlanId:(a=n==null?void 0:n.subPlanId)!=null?a:n==null?void 0:n.ticketId}});else{if(r==="FAILED"&&Ka(n==null?void 0:n.errNo)&&(n==null?void 0:n.errNo)!==0)throw Rt(`subscription failed: ${n==null?void 0:n.errMsg}`,Jn.SubscriptionFailed);i.resolve({code:r,message:(s=n==null?void 0:n.errMsg)!=null?s:"UNKNOWN_ERROR"})}gm.delete(t)}});IT=e=>g(void 0,null,function*(){var n,i;let t=new ht,r;try{if(console.log("[internalSubscribe] requestSubscriptionSync params",e),r=(n=q("requestSubscriptionSync",P({params:{basePlanId:e.basePlanId,appStoreProductId:e.appStoreProductId,productId:e.productId}},e.appAccountToken?{paymentBody:{appAccountToken:e.appAccountToken,appStoreProductId:e.appStoreProductId}}:{})).data)==null?void 0:n.subUUID,!r)throw Rt("subUUID is null",1002);gm.set(r,t)}catch(o){throw Rt((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),vm=class extends va{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return g(this,null,function*(){return{code:"SUCCESS",message:"Android subscription order placed locally"}})}cancelOrder(r){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})}generateSubscriptionContext(){return{gameId:S.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return g(this,null,function*(){return yield IT(r)})}},ym=class extends va{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return g(this,null,function*(){var o,a;console.log("----start place order for iOS subscription----");let n=q("envSync"),i=(a=(o=n==null?void 0:n.data)==null?void 0:o.hostUserInfo)==null?void 0:a.appAccountToken;if(!i)throw Rt("appAccountToken is null",1002);return this.subscriptionToken=i,{code:"SUCCESS",message:"placeorder sub-app success in native"}})}cancelOrder(r){return g(this,null,function*(){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})})}generateSubscriptionContext(){return{gameId:S.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return g(this,null,function*(){return yield IT(J(P({},r),{appAccountToken:this.subscriptionToken}))})}},C4={android:vm,ios:ym}});var Hn,bm=T(()=>{"use strict";hm();ST();dm();ET();hm();Hn=wT();ga.registerSubscriptionHandler("SUB_APP",AT())});var TT=h(xT=>{"use strict";ma();Ve();pr();We();bm();dr();var x4={SUBSCRIPTION:{frequencyConfigKey:"joinMember",frequencyChecker:Wx,frequencyUpdater:tT}},kT=Ln(),CT=$e(F,Wt);CT.getData();F.on(al,e=>g(xT,null,function*(){let t=x4.SUBSCRIPTION;if(!_e("invokeSubscriptionPanelSync")){console.info("invokeSubscriptionPanelSync not supported"),setTimeout(()=>{F.emit(Fn,{result:"FAILED"})},0);return}yield kT.show({duration:3e3});let r=yield CT.getData(),{canShow:n,isFirst:i}=yield t.frequencyChecker(r.joliCoinUseAndCharge[t.frequencyConfigKey]);if(kT.hide(),!n){F.emit(Fn,{result:"FAILED"});return}let{data:o,code:a}=yield Hn.invokeSubscriptionPanel();a=="SUCCESS"?F.emit(Fn,{result:"SUCCESS"}):F.emit(Fn,{result:"FAILED"}),yield t.frequencyUpdater()}))});var Tie,Pie,Rie,Oie,PT=T(()=>{"use strict";Tie=ue(iT()),Pie=ue(vT()),Rie=ue(bT()),Oie=ue(TT())});var Mi,_m=T(()=>{"use strict";Mi=(e,t)=>{window.dispatchEvent(new CustomEvent(e,{detail:t}));let r=window.parent;r&&r!==window&&typeof r.postMessage=="function"&&r.postMessage({type:e,data:{detail:t}},"*")}});function J4(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function G4(e){return typeof e=="string"}function H4(e){return typeof e=="undefined"}function V4(e){return H4(e)||e===null}function $4(e){return typeof e=="function"}function lP(e){let t=e,r=null,n=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r||(r=new t(...o)),r};return n.prototype=t.prototype,n}function ya(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function Il(e,t){return t.map(r=>{if(r==="params"&&e[r]){let n=e[r];return Object.keys(n).reduce((i,o)=>(i[o]=String(n[o]),i),{})}return e[r]})}function Z4(e){let t=e.location?Il(e.location,qT):null,r=e.target?Il(e.target,qT):null;return Il(F4(M4({},e),{location:t,target:r}),Q4)}function e$(e){let t=e.events.map(n=>Z4(n)),r=Il(e.device,X4);return[e.protocolVersion,t,r,e.project]}function t$(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function a$(e){return new Promise(t=>fP(e)(t))}function fP(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function s$(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Aa(n);return i.event})(function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e(i=>t(i)&&r.call(n,i),null)})}function l$(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)u$(e[n],t[n])}function u$(e,t){if(G4(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if($4(t)){try{if(e instanceof t)return}catch(r){}if(!V4(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function bt(e,t,r){return(t=d$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d$(e){var t=p$(e,"string");return typeof t=="symbol"?t:t+""}function p$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bl(e,t,r){return(t=f$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f$(e){var t=m$(e,"string");return typeof t=="symbol"?t:t+""}function m$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _l(e,t,r){return(t=h$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h$(e){var t=g$(e,"string");return typeof t=="symbol"?t:t+""}function g$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qr(e,t,r){return(t=v$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v$(e){var t=y$(e,"string");return typeof t=="symbol"?t:t+""}function y$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b$(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function _$(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function k$(e,t){return Ze(e,0)^45?(((t<<2^Ze(e,0))<<2^Ze(e,1))<<2^Ze(e,2))<<2^Ze(e,3):0}function gP(e){return e.trim()}function C$(e,t){return(e=t.exec(e))?e[0]:e}function ne(e,t,r){return e.replace(t,r)}function Mm(e,t){return e.indexOf(t)}function Ze(e,t){return e.charCodeAt(t)|0}function Ea(e,t,r){return e.slice(t,r)}function gr(e){return e.length}function uh(e){return e.length}function wl(e,t){return t.push(e),e}function x$(e,t){return e.map(t).join("")}function Jl(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:jl,column:$i,length:a,return:""}}function _a(e,t){return E$(Jl("",null,null,"",null,null,0),e,{length:-e.length},t)}function T$(){return Me}function P$(){return Me=wt>0?Ze(Wi,--wt):0,$i--,Me===10&&($i=1,jl--),Me}function Nt(){return Me=wt<vP?Ze(Wi,wt++):0,$i++,Me===10&&($i=1,jl++),Me}function vr(){return Ze(Wi,wt)}function Al(){return wt}function xa(e,t){return Ea(Wi,e,t)}function ka(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yP(e){return jl=$i=1,vP=gr(Wi=e),wt=0,[]}function bP(e){return Wi="",e}function El(e){return gP(xa(wt-1,Fm(e===91?e+2:e===40?e+1:e)))}function R$(e){for(;(Me=vr())&&Me<33;)Nt();return ka(e)>2||ka(Me)>3?"":" "}function O$(e,t){for(;--t&&Nt()&&!(Me<48||Me>102||Me>57&&Me<65||Me>70&&Me<97););return xa(e,Al()+(t<6&&vr()==32&&Nt()==32))}function Fm(e){for(;Nt();)switch(Me){case e:return wt;case 34:case 39:e!==34&&e!==39&&Fm(Me);break;case 40:e===41&&Fm(e);break;case 92:Nt();break}return wt}function N$(e,t){for(;Nt()&&e+Me!==57&&!(e+Me===84&&vr()===47););return"/*"+xa(t,wt-1)+"*"+Bl(e===47?e:Nt())}function D$(e){for(;!ka(vr());)Nt();return xa(e,wt)}function L$(e){return bP(kl("",null,null,null,[""],e=yP(e),0,[0],e))}function kl(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,v=1,b=1,y=1,_=0,A="",k=i,x=o,C=n,E=A;b;)switch(m=_,_=Nt()){case 40:if(m!=108&&Ze(E,u-1)==58){Mm(E+=ne(El(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:E+=El(_);break;case 9:case 10:case 13:case 32:E+=R$(m);break;case 92:E+=O$(Al()-1,7);continue;case 47:switch(vr()){case 42:case 47:wl(q$(N$(Nt(),Al()),t,r),c);break;default:E+="/"}break;case 123*v:s[l++]=gr(E)*y;case 125*v:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:y==-1&&(E=ne(E,/\f/g,"")),f>0&&gr(E)-u&&wl(f>32?FT(E+";",n,r,u-1):FT(ne(E," ","")+";",n,r,u-2),c);break;case 59:E+=";";default:if(wl(C=MT(E,t,r,l,d,i,s,A,k=[],x=[],u),o),_===123)if(d===0)kl(E,t,C,C,k,o,u,s,x);else switch(p===99&&Ze(E,3)===110?100:p){case 100:case 108:case 109:case 115:kl(e,C,C,n&&wl(MT(e,C,C,0,0,i,s,A,i,k=[],u),x),i,x,u,s,n?k:x);break;default:kl(E,C,C,C,[""],x,0,s,x)}}l=d=f=0,v=y=1,A=E="",u=a;break;case 58:u=1+gr(E),f=m;default:if(v<1){if(_==123)--v;else if(_==125&&v++==0&&P$()==125)continue}switch(E+=Bl(_),_*v){case 38:y=d>0?1:(E+="\f",-1);break;case 44:s[l++]=(gr(E)-1)*y,y=1;break;case 64:vr()===45&&(E+=El(Nt())),p=vr(),d=u=gr(A=E+=D$(Al())),_++;break;case 45:m===45&&gr(E)==2&&(v=0)}}return o}function MT(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=uh(p),m=0,v=0,b=0;m<n;++m)for(var y=0,_=Ea(e,u+1,u=A$(v=a[m])),A=e;y<f;++y)(A=gP(v>0?p[y]+" "+_:ne(_,/&\f/g,p[y])))&&(c[b++]=A);return Jl(e,t,r,i===0?ch:s,c,l,d)}function q$(e,t,r){return Jl(e,t,r,mP,Bl(T$()),Ea(e,2,-2),0)}function FT(e,t,r,n){return Jl(e,t,r,lh,Ea(e,0,n),Ea(e,n+1,-1),n)}function Hi(e,t){for(var r="",n=uh(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function U$(e,t,r,n){switch(e.type){case I$:if(e.children.length)break;case S$:case lh:return e.return=e.return||e.value;case mP:return"";case hP:return e.return=e.value+"{"+Hi(e.children,n)+"}";case ch:e.value=e.props.join(",")}return gr(r=Hi(e.children,n))?e.return=e.value+"{"+r+"}":""}function M$(e){var t=uh(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function F$(e){return function(t){t.root||(t=t.return)&&e(t)}}function B$(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function _P(e,t){switch(k$(e,t)){case 5103:return re+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return re+e+Nl+e+ct+e+e;case 6828:case 4268:return re+e+ct+e+e;case 6165:return re+e+ct+"flex-"+e+e;case 5187:return re+e+ne(e,/(\w+).+(:[^]+)/,re+"box-$1$2"+ct+"flex-$1$2")+e;case 5443:return re+e+ct+"flex-item-"+ne(e,/flex-|-self/,"")+e;case 4675:return re+e+ct+"flex-line-pack"+ne(e,/align-content|flex-|-self/,"")+e;case 5548:return re+e+ct+ne(e,"shrink","negative")+e;case 5292:return re+e+ct+ne(e,"basis","preferred-size")+e;case 6060:return re+"box-"+ne(e,"-grow","")+re+e+ct+ne(e,"grow","positive")+e;case 4554:return re+ne(e,/([^-])(transform)/g,"$1"+re+"$2")+e;case 6187:return ne(ne(ne(e,/(zoom-|grab)/,re+"$1"),/(image-set)/,re+"$1"),e,"")+e;case 5495:case 3959:return ne(e,/(image-set\([^]*)/,re+"$1$`$1");case 4968:return ne(ne(e,/(.+:)(flex-)?(.*)/,re+"box-pack:$3"+ct+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+re+e+e;case 4095:case 3583:case 4068:case 2532:return ne(e,/(.+)-inline(.+)/,re+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(gr(e)-1-t>6)switch(Ze(e,t+1)){case 109:if(Ze(e,t+4)!==45)break;case 102:return ne(e,/(.+:)(.+)-([^]+)/,"$1"+re+"$2-$3$1"+Nl+(Ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Mm(e,"stretch")?_P(ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ze(e,t+1)!==115)break;case 6444:switch(Ze(e,gr(e)-3-(~Mm(e,"!important")&&10))){case 107:return ne(e,":",":"+re)+e;case 101:return ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+re+(Ze(e,14)===45?"inline-":"")+"box$3$1"+re+"$2$3$1"+ct+"$2box$3")+e}break;case 5936:switch(Ze(e,t+11)){case 114:return re+e+ct+ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return re+e+ct+ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return re+e+ct+ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return re+e+ct+e+e}return e}function z$(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Dl(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return fn={name:i.name,styles:i.styles,next:fn},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)fn={name:a.name,styles:a.styles,next:fn},a=a.next;var s=o.styles+";";return s}return Z$(e,t,r)}}var c=r;if(t==null)return c;var l=t[c];return l!==void 0?l:c}function Z$(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Dl(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":jT(s)&&(n+=Sm(o)+":"+JT(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)jT(a[c])&&(n+=Sm(o)+":"+JT(o,a[c])+";");else{var l=Dl(e,t,a);switch(o){case"animation":case"animationName":{n+=Sm(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function Im(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";fn=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Dl(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Dl(r,t,e[s]),n){var c=o;i+=c[s]}GT.lastIndex=0;for(var l="",d;(d=GT.exec(i))!==null;)l+="-"+d[1];var u=z$(i)+l;return{name:u,styles:i,next:fn}}function SP(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function HT(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function VT(e,t,r){var n=[],i=SP(e,n,r);return n.length<2?r:i+t(n)}function oK(e,t){Ge.__h&&Ge.__h(Ot,e,KT||t),KT=0;var r=Ot.__H||(Ot.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function AP(e,t){var r=oK(Bm++,7);return cK(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function aK(){for(var e;e=IP.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Cl),e.__H.__h.forEach(jm),e.__H.__h=[]}catch(t){e.__H.__h=[],Ge.__e(t,e.__v)}}function sK(e){var t,r=function(){clearTimeout(n),eP&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);eP&&(t=requestAnimationFrame(r))}function Cl(e){var t=Ot,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Ot=t}function jm(e){var t=Ot;e.__c=e.__(),Ot=t}function cK(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Gl(){if(mn>1)mn--;else{for(var e,t=!1;Sa!==void 0;){var r=Sa;for(Sa=void 0,Jm++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&kP(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Jm=0,mn--,t)throw e}}function xe(e){if(mn>0)return e();mn++;try{return e()}finally{Gl()}}function EP(e){if(pe!==void 0){var t=e.n;if(t===void 0||t.t!==pe)return t={i:0,S:e,p:pe.s,n:void 0,t:pe,e:void 0,x:void 0,r:t},pe.s!==void 0&&(pe.s.n=t),pe.s=t,e.n=t,32&pe.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=pe.s,t.n=void 0,pe.s.n=t,pe.s=t),t}}function et(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function $(e){return new et(e)}function kP(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function CP(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function xP(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function zi(e){et.call(this,void 0),this.x=e,this.s=void 0,this.g=Ll-1,this.f=4}function Ia(e){return new zi(e)}function TP(e){var t=e.u;if(e.u=void 0,typeof t=="function"){mn++;var r=pe;pe=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,dh(e),n}finally{pe=r,Gl()}}}function dh(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,TP(e)}function uK(e){if(pe!==this)throw new Error("Out-of-order effect");xP(this),pe=e,this.f&=-2,8&this.f&&dh(this),Gl()}function Ta(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Pa(e){var t=new Ta(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Yi(e,t){U[e]=t.bind(null,U[e]||function(){})}function ql(e){Em&&Em(),Em=e&&e.S()}function OP(e){var t=this,r=e.data,n=NP(r);n.value=r;var i=AP(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=Ia(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=Ia(function(){return!Array.isArray(l.value)&&!Wu(l.value)}),u=Pa(function(){if(this.N=DP,d.value){var f=l.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=f)}}),p=t.__$u.d;return t.__$u.d=function(){u(),p.call(this)},[d,l]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function dK(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=$(r);return{o:function(a,s){o.value=a,n=s},d:Pa(function(){this.N=DP;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function NP(e){return AP(function(){return $(e)},[])}function fK(){xe(function(){for(var e;e=RP.shift();)PP.call(e)})}function DP(){RP.push(this)===1&&(U.requestAnimationFrame||pK)(fK)}function mK(e,t){let r=hi(e);mi(()=>{r.current=e},[e]),Zr(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function G(e,t,r,n,i,o){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var l={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--hK,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return U.vnode&&U.vnode(l),l}function Ur(e,t,r){return(t=EK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EK(e){var t=kK(e,"string");return typeof t=="symbol"?t:t+""}function kK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mt(e,t,r){return(t=MK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MK(e){var t=FK(e,"string");return typeof t=="symbol"?t:t+""}function FK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mr(e,t,r){return(t=jK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jK(e){var t=JK(e,"string");return typeof t=="symbol"?t:t+""}function JK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function st(e,t,r){return(t=GK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GK(e){var t=HK(e,"string");return typeof t=="symbol"?t:t+""}function HK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _t(e,t,r){return(t=VK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VK(e){var t=$K(e,"string");return typeof t=="symbol"?t:t+""}function $K(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vn(e,t,r){return(t=KK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KK(e){var t=WK(e,"string");return typeof t=="symbol"?t:t+""}function WK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function km(e,t,r){return(t=zK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zK(e){var t=YK(e,"string");return typeof t=="symbol"?t:t+""}function YK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lt(e,t,r){return(t=QK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QK(e){var t=XK(e,"string");return typeof t=="symbol"?t:t+""}function XK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZK(e,t,r){return(t=e9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e9(e){var t=t9(e,"string");return typeof t=="symbol"?t:t+""}function t9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fr(e,t,r){return(t=n9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n9(e){var t=i9(e,"string");return typeof t=="symbol"?t:t+""}function i9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Br(e,t,r){return(t=o9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o9(e){var t=a9(e,"string");return typeof t=="symbol"?t:t+""}function a9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wa(e,t,r){return(t=s9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s9(e){var t=c9(e,"string");return typeof t=="symbol"?t:t+""}function c9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function u9(e,t){return t==="call"&&e.join(".")==="GameSDK.showRewardAd"?0:15e3}function nP(e,t,r,n){return new Promise((i,o)=>{if(!window.parent||window.parent===window){o(new Error("[ParentProxy] No parent window"));return}let a=`${xm}-${++l9}`,s=d=>{let u=d.data;(u==null?void 0:u.type)===`${xm}:response`&&u.id===a&&(window.removeEventListener("message",s),l&&clearTimeout(l),u.error?o(new Error(u.error)):i(u.result))},c=u9(e,t),l=c>0?window.setTimeout(()=>{window.removeEventListener("message",s),o(new Error(`[ParentProxy] Timeout after ${c}ms: ${e.join(".")}.${t}`))},c):null;window.addEventListener("message",s),window.parent.postMessage({type:`${xm}:request`,id:a,path:e,action:t,args:r,value:n},"*")})}function jP(e){return console.log("[JoliboxSDK] NewsBreak createProxyForPath basePath:",e),new Proxy(()=>{},{get(t,r){if(console.log("[JoliboxSDK] NewsBreak createProxyForPath get:",r),!(r==="then"||r==="toJSON"||typeof r=="symbol"))return jP([...e,r])},set(t,r,n){return console.log("[JoliboxSDK] NewsBreak createProxyForPath set:",r),nP([...e,r],"set",void 0,n).catch(i=>{console.warn(`[ParentProxy] set ${[...e,r].join(".")} failed:`,i)}),!0},apply(t,r,n){return console.log("[JoliboxSDK] NewsBreak createProxyForPath apply:",n),nP(e,"call",n)}})}function d9(e){return jP([e])}function ji(e,t,r){return(t=p9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p9(e){var t=f9(e,"string");return typeof t=="symbol"?t:t+""}function f9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iP(e,t,r){return(t=m9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m9(e){var t=h9(e,"string");return typeof t=="symbol"?t:t+""}function h9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zt(e,t,r){return(t=g9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g9(e){var t=v9(e,"string");return typeof t=="symbol"?t:t+""}function v9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sl(e,t,r){return(t=y9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y9(e){var t=b9(e,"string");return typeof t=="symbol"?t:t+""}function b9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tm(e,t,r){return(t=_9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _9(e){var t=w9(e,"string");return typeof t=="symbol"?t:t+""}function w9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ge(e,t,r){return(t=S9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S9(e){var t=I9(e,"string");return typeof t=="symbol"?t:t+""}function I9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jr(e,t,r){return(t=C9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C9(e){var t=x9(e,"string");return typeof t=="symbol"?t:t+""}function x9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mr(e,t,r){return(t=T9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T9(e){var t=P9(e,"string");return typeof t=="symbol"?t:t+""}function P9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yt(e,t,r){return(t=R9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R9(e){var t=O9(e,"string");return typeof t=="symbol"?t:t+""}function O9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pn(e,t,r){return(t=N9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N9(e){var t=D9(e,"string");return typeof t=="symbol"?t:t+""}function D9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hr(e,t,r){return(t=L9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L9(e){var t=q9(e,"string");return typeof t=="symbol"?t:t+""}function q9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var T4,P4,R4,Rl,oP,aP,RT,Vi,O4,N4,sP,D4,L4,OT,q4,U4,NT,M4,F4,B4,cP,j4,K4,W4,DT,z4,LT,Y4,uP,dP,pP,qT,Q4,X4,Ji,Ol,Pm,Se,r$,n$,ba,Aa,i$,Om,o$,wm,c$,Nm,UT,Fi,Dm,Lm,qm,Um,w$,ct,Nl,re,mP,ch,lh,S$,hP,I$,A$,Bl,E$,jl,$i,vP,wt,Me,Wi,j$,J$,G$,BT,H$,V$,$$,K$,W$,Y$,Q$,X$,wP,jT,Sm,JT,GT,fn,eK,tK,rK,nK,iK,dt,Bm,Ot,Am,$T,KT,IP,Ge,WT,zT,YT,QT,XT,ZT,eP,lK,pe,Sa,mn,Jm,Ll,PP,Em,RP,pK,He,hK,gK,Jr,Gm,Hm,xl,vK,yK,bK,_K,wK,SK,IK,LP,AK,qP,Vm,CK,xK,TK,PK,RK,OK,NK,tP,DK,LK,qK,UK,$m,Gi,Bi,UP,BK,MP,Km,FP,BP,Wm,zm,Ym,rP,Cm,R,Ca,Ul,r9,Ml,Qm,Xm,Zm,xm,l9,Tl,eh,th,Ki,rh,ut,nh,Pl,A9,E9,k9,ih,oh,ah,sh,Fl,ph=T(()=>{"use strict";ii();Us();de();T4=Object.defineProperty,P4=Object.defineProperties,R4=Object.getOwnPropertyDescriptors,Rl=Object.getOwnPropertySymbols,oP=Object.prototype.hasOwnProperty,aP=Object.prototype.propertyIsEnumerable,RT=(e,t,r)=>t in e?T4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vi=(e,t)=>{for(var r in t||(t={}))oP.call(t,r)&&RT(e,r,t[r]);if(Rl)for(var r of Rl(t))aP.call(t,r)&&RT(e,r,t[r]);return e},O4=(e,t)=>P4(e,R4(t)),N4=(e,t)=>{var r={};for(var n in e)oP.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Rl)for(var n of Rl(e))t.indexOf(n)<0&&aP.call(e,n)&&(r[n]=e[n]);return r},sP=Object.defineProperty,D4=Object.defineProperties,L4=Object.getOwnPropertyDescriptors,OT=Object.getOwnPropertySymbols,q4=Object.prototype.hasOwnProperty,U4=Object.prototype.propertyIsEnumerable,NT=(e,t,r)=>t in e?sP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M4=(e,t)=>{for(var r in t||(t={}))q4.call(t,r)&&NT(e,r,t[r]);if(OT)for(var r of OT(t))U4.call(t,r)&&NT(e,r,t[r]);return e},F4=(e,t)=>D4(e,L4(t)),B4=(e,t)=>{for(var r in t)sP(e,r,{get:t[r],enumerable:!0})},cP=(e,t,r,n)=>{for(var i=t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=a(i)||i);return i},j4=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}K4=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(K4||{});W4={log:ya("log"),warn:ya("warn"),info:ya("info"),error:ya("error"),debug:ya("debug")};Object.assign(globalThis,{logger:W4});DT=Symbol.for("Jolibox.canIUseMap"),z4={};globalThis[DT]||(globalThis[DT]=z4);LT=Symbol.for("Jolibox.canIUseMap.native"),Y4={};globalThis[LT]||(globalThis[LT]=Y4);uP=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(uP||{}),dP=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(dP||{}),pP=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(pP||{}),qT=["name","params"],Q4=["name","type","location","target","extra","timestamp","userId"],X4=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];t$();Ji=typeof window=="undefined",Ol=()=>!Ji&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Ji&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Ji&&navigator.userAgent.includes("Android"),!Ji&&navigator.userAgent.includes("Mac"),!Ji&&navigator.userAgent.includes("FB_IAB"),!Ji&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Pm=class Rm{constructor(t){this.element=t,this.next=Rm.Undefined,this.prev=Rm.Undefined}};Pm.Undefined=new Pm(void 0);Se=Pm,r$=class{constructor(){this._first=Se.Undefined,this._last=Se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Se.Undefined}clear(){let e=this._first;for(;e!==Se.Undefined;){let t=e.next;e.prev=Se.Undefined,e.next=Se.Undefined,e=t}this._first=Se.Undefined,this._last=Se.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new Se(e);if(this._first===Se.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==Se.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Se.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Se.Undefined&&e.next!==Se.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Se.Undefined&&e.next===Se.Undefined?(this._first=Se.Undefined,this._last=Se.Undefined):e.next===Se.Undefined?(this._last=this._last.prev,this._last.next=Se.Undefined):e.prev===Se.Undefined&&(this._first=this._first.next,this._first.prev=Se.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Se.Undefined;)yield e.element,e=e.next}},n$=0,ba=class{constructor(e){this.value=e,this.id=n$++}},Aa=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof ba&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){return this._event!=null||(this._event=(e,t)=>{var r,n,i,o,a,s;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(e=e.bind(t));let c=new ba(e);return this._listeners?this._listeners instanceof ba?this._listeners=[this._listeners,c]:this._listeners.push(c):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=c,(o=(i=this.options)==null?void 0:i.onDidFirstListener)==null||o.call(i,this)),(s=(a=this.options)==null?void 0:a.onDidAddListener)==null||s.call(a,this),this._size++,()=>{var l,d,u,p;if(!this._disposed){if(this._listeners instanceof ba)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(d=(l=this.options)==null?void 0:l.onDidRemoveLastListener)==null||d.call(l));else if(this._listeners){let f=this._listeners.indexOf(c);f>=0&&(this._listeners.splice(f,1),this._size--,this._size===0&&((p=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||p.call(u)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof ba?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},i$=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;var n;let i=(n=this.listeners.get(e))!=null?n:new Aa,o=c=>t(...c.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let c of s)t(...c.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e){let t=this.listeners.get(e),r=this.cachedEventQueue.get(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=new r$,this.cachedEventQueue.set(e,r)),r.push({args:i}),t&&t.fire({event:e,args:i})}once(e,t){var r=this;let n=function(){t(...arguments),r.off(e,n)};this.on(e,n,!1)}},Om={};B4(Om,{None:()=>o$,filter:()=>s$,once:()=>fP,toPromise:()=>a$});o$=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});wm=Symbol.for("Jolibox.hostEmitter"),c$=()=>{let e=new i$;return globalThis[wm]||(globalThis[wm]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[wm]};c$();Nm=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Aa,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return l$(o,r),n(...o)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};Nm=cP([lP],Nm);UT=class{constructor(){this._onWillExecuteCommand=new Aa,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Aa,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Nm,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=J4(3e4)),this._starActivation}executeCommand(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return j4(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Om.toPromise(Om.filter(this.registry.onDidRegisterCommand,i=>i===e))])]),this._tryExecuteCommand(e,r))})}executeCommandThowErr(e){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let t=this.registry.getCommand(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._onWillExecuteCommand.fire({commandId:e,args:n});let o=this.invokeFunction(t.handler,...n);return this._onDidExecuteCommand.fire({commandId:e,args:n}),o}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e(...r)}finally{}}};UT=cP([lP],UT);Fi=e=>e?function(){try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];e==null||e(...r)}catch(i){console.error("Error calling function",i)}}:()=>{console.log("wrapUserFunction: fn is undefined")},Dm=class{constructor(t){bt(this,"context",void 0),bt(this,"continueCallback",void 0),bt(this,"adIsShowingCallback",void 0),bt(this,"isBeforeAdCalled",!1),bt(this,"isBeforeRewardCalled",!1),bt(this,"isAdDismissedCalled",!1),bt(this,"isAdViewedCalled",!1),bt(this,"isAfterAdCalled",!1),bt(this,"currentProvider",void 0),bt(this,"currentClientParams",void 0),bt(this,"adsHasResponse",!1),bt(this,"videoChecker",window.document.createElement("video")),bt(this,"contextInfo",void 0),bt(this,"wrapShowAdFn",r=>()=>{var n,i,o;this.adsHasResponse=!0;let a=!1;this.videoChecker.play().catch(()=>{a=!1}),a=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:a},this.paramsToTrack)),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD",Vi({userEvent:a},this.paramsToTrack)),Ol()&&this.context.track("mmp_ad_impression",{ad_network:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:"",ad_format:"rewarded",module:"game",game_id:this.contextInfo.objectId}),(o=this.adIsShowingCallback)==null||o.call(this,!0);let s=Fi(r);s==null||s()}),this.context=t,this.contextInfo=t.getContextInfo()}notifyIframeAdsEvent(t,r){let n=window.parent;n&&n!==window&&typeof n.postMessage=="function"&&n.postMessage({type:t,data:r},"*"),window.dispatchEvent(new CustomEvent(t,{detail:r}))}get paramsToTrack(){var t,r,n,i,o,a;return{provider:(r=(t=this.currentProvider)==null?void 0:t.name)!=null?r:null,type:(n=this.currentClientParams)==null?void 0:n.type,name:((i=this.currentClientParams)==null?void 0:i.type)==="preroll"?null:(a=(o=this.currentClientParams)==null?void 0:o.name)!=null?a:""}}wrapBeforeAd(t){return()=>{var r,n,i,o;if(this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD",this.paramsToTrack),!this.isBeforeAdCalled){this.isBeforeAdCalled=!0;let a=Fi(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),Ol()&&this.context.track("mmp_ad_impression",{ad_network:(o=(i=this.currentProvider)==null?void 0:i.name)!=null?o:"",ad_format:"interstitial",module:"game",game_id:this.contextInfo.objectId}))}}}wrapBeforeReward(t){return r=>{this.adsHasResponse=!0,this.isBeforeRewardCalled?this.wrapShowAdFn(r)():(this.isBeforeRewardCalled=!0,t==null||t(this.wrapShowAdFn(r)))}}wrapAdDismissed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdDismissedCalled){this.isAdDismissedCalled=!0;let r=Fi(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Fi(t);r==null||r()}}}wrapAfterAd(t){return()=>{if(this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AFTER_AD",this.paramsToTrack),!this.isAfterAdCalled){this.isAfterAdCalled=!0;let r=Fi(t);r==null||r()}}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s,c,l,d,u;switch(this.adsHasResponse=!0,this.context.track("CallAdBreakDone",{provider:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:null,breakType:r.breakType,breakName:(o=r.breakName)!=null?o:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus,breakReason:r.breakReason,breakStage:r.breakStage}),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_DONE",{provider:(s=(a=this.currentProvider)==null?void 0:a.name)!=null?s:null,breakType:r.breakType,breakName:(c=r.breakName)!=null?c:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus,breakReason:r.breakReason,breakStage:r.breakStage}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{let p=Fi(t);p==null||p(r),(l=this.adIsShowingCallback)==null||l.call(this,!1),(d=this.continueCallback)==null||d.call(this,[!1,r]);break}default:{(u=this.continueCallback)==null||u.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return g(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,c,l,d,u,p,f;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(c=(s=this.currentProvider)==null?void 0:s.name)!=null?c:null}),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_TIMEOUT",{type:r.type,provider:(d=(l=this.currentProvider)==null?void 0:l.name)!=null?d:null}),(p=this.continueCallback)==null||p.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(u=r.name)!=null?u:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout",breakStage:"provider_request"}]),(f=this.adIsShowingCallback)==null||f.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Lm=class{constructor(t){bl(this,"context",void 0),bl(this,"adBreakIsShowing",!1),bl(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),bl(this,"reportPageHide",()=>{this.context.track("AdBreakHide",{context:"AdsActionDetection"})}),this.context=t,window.addEventListener("visibilitychange",()=>{document.hidden&&this.adBreakIsShowing&&this.reportPageHide()}),window.addEventListener("beforeunload",r=>{this.adBreakIsShowing&&this.reportPageJumpOut()})}};qm=class{constructor(t){_l(this,"configs",null),_l(this,"firstRun",!0),_l(this,"context",void 0),_l(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return g(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};Um=class{constructor(t,r){qr(this,"name","ADSENSE"),qr(this,"context",void 0),qr(this,"contextInfo",void 0),qr(this,"configured",!1),qr(this,"initParams",void 0),qr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),qr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=N4(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),qr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),qr(this,"adUnit",n=>g(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:c,slot:l,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!c)throw new Error("targeting element is required");if(typeof c=="string"?f=document.querySelector(c):f=c,!f)throw new Error("targeting element not found");let m=l;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let v=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,b=document.createElement("ins");if(b.className="adsbygoogle",b.id="jolibox-ads",b.style.display="block",b.setAttribute("data-ad-client",this.initParams.clientId),b.setAttribute("data-ad-slot",m),v&&b.setAttribute("data-ad-format",v),u&&b.setAttribute("data-full-width-responsive",u),p&&b.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let y=document.createElement("div");y.style.position="absolute",y.style.top="0",y.style.left="0",y.style.width="100%",y.style.height="100%",y.style.display="flex",y.style.justifyContent="center",y.style.alignItems="center",y.style.backgroundColor="rgba(0, 0, 0, 0.5)",y.style.color="white",y.innerHTML="Test Ad",b.style.position="relative",f.appendChild(b),b.appendChild(y)}else f.appendChild(b),new MutationObserver(y=>{y.forEach(_=>{if(_.type==="attributes"&&_.attributeName==="data-ad-status"){let A=b.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:A!=null?A:"null"})}})}).observe(b,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return g(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),this.initParams.admobInterstitialSlot&&i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),this.initParams.admobRewardedSlot&&i.setAttribute("data-admob-rewarded-slot",this.initParams.admobRewardedSlot),this.initParams.admobOnly&&i.setAttribute("data-admob-ads-only","on"),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};w$=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(_$(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=b$(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e}(),ct="-ms-",Nl="-moz-",re="-webkit-",mP="comm",ch="rule",lh="decl",S$="@import",hP="@keyframes",I$="@layer",A$=Math.abs,Bl=String.fromCharCode,E$=Object.assign;jl=1,$i=1,vP=0,wt=0,Me=0,Wi="";j$=function(e,t,r){for(var n=0,i=0;n=i,i=vr(),n===38&&i===12&&(t[r]=1),!ka(i);)Nt();return xa(e,wt)},J$=function(e,t){var r=-1,n=44;do switch(ka(n)){case 0:n===38&&vr()===12&&(t[r]=1),e[r]+=j$(wt-1,t,r);break;case 2:e[r]+=El(n);break;case 4:if(n===44){e[++r]=vr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Bl(n)}while(n=Nt());return e},G$=function(e,t){return bP(J$(yP(e),t))},BT=new WeakMap,H$=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!BT.get(r))&&!n){BT.set(e,!0);for(var i=[],o=G$(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},V$=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};$$=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case lh:e.return=_P(e.value,e.length);break;case hP:return Hi([_a(e,{value:ne(e.value,"@","@"+re)})],n);case ch:if(e.length)return x$(e.props,function(i){switch(C$(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hi([_a(e,{props:[ne(i,/:(read-\w+)/,":"+Nl+"$1")]})],n);case"::placeholder":return Hi([_a(e,{props:[ne(i,/:(plac\w+)/,":"+re+"input-$1")]}),_a(e,{props:[ne(i,/:(plac\w+)/,":"+Nl+"$1")]}),_a(e,{props:[ne(i,/:(plac\w+)/,ct+"input-$1")]})],n)}return""})}},K$=[$$],W$=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||K$,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(m)});var s,c=[H$,V$];{var l,d=[U$,F$(function(m){l.insert(m)})],u=M$(c.concat(n,d)),p=function(m){return Hi(L$(m),u)};s=function(m,v,b,y){l=b,p(m?m+"{"+v.styles+"}":v.styles),y&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new w$({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};Y$={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Q$=/[A-Z]|^ms/g,X$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wP=function(e){return e.charCodeAt(1)===45},jT=function(e){return e!=null&&typeof e!="boolean"},Sm=B$(function(e){return wP(e)?e:e.replace(Q$,"-$&").toLowerCase()}),JT=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(X$,function(r,n,i){return fn={name:n,styles:i,next:fn},n})}return Y$[e]!==1&&!wP(e)&&typeof t=="number"&&t!==0?t+"px":t};GT=/label:\s*([^\s;{]+)\s*(;|$)/g;eK=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},tK=function(e,t,r){eK(e,t);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};rK=function(e){var t=W$(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=Im(s,t.registered,void 0);return tK(t,l),t.key+"-"+l.name},n=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=Im(s,t.registered),d="animation-"+l.name;return HT(t,{name:l.name,styles:"@keyframes "+d+"{"+l.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=Im(s,t.registered);HT(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return VT(t.registered,r,nK(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){a.forEach(function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:SP.bind(null,t.registered),merge:VT.bind(null,t.registered,r)}},nK=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},iK=rK({key:"css"}),dt=iK.css,KT=0,IP=[],Ge=U,WT=Ge.__b,zT=Ge.__r,YT=Ge.diffed,QT=Ge.__c,XT=Ge.unmount,ZT=Ge.__;Ge.__b=function(e){Ot=null,WT&&WT(e)},Ge.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ZT&&ZT(e,t)},Ge.__r=function(e){zT&&zT(e),Bm=0;var t=(Ot=e.__c).__H;t&&(Am===Ot?(t.__h=[],Ot.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Cl),t.__h.forEach(jm),t.__h=[],Bm=0)),Am=Ot},Ge.diffed=function(e){YT&&YT(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(IP.push(t)!==1&&$T===Ge.requestAnimationFrame||(($T=Ge.requestAnimationFrame)||sK)(aK)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Am=Ot=null},Ge.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Cl),r.__h=r.__h.filter(function(n){return!n.__||jm(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ge.__e(n,r.__v)}}),QT&&QT(e,t)},Ge.unmount=function(e){XT&&XT(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Cl(n)}catch(i){t=i}}),r.__H=void 0,t&&Ge.__e(t,r.__v))};eP=typeof requestAnimationFrame=="function";lK=Symbol.for("preact-signals");pe=void 0,Sa=void 0,mn=0,Jm=0,Ll=0;et.prototype.brand=lK;et.prototype.h=function(){return!0};et.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};et.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};et.prototype.subscribe=function(e){var t=this;return Pa(function(){var r=t.value,n=pe;pe=void 0;try{e(r)}finally{pe=n}})};et.prototype.valueOf=function(){return this.value};et.prototype.toString=function(){return this.value+""};et.prototype.toJSON=function(){return this.value};et.prototype.peek=function(){var e=pe;pe=void 0;try{return this.value}finally{pe=e}};Object.defineProperty(et.prototype,"value",{get:function(){var e=EP(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Jm>100)throw new Error("Cycle detected");this.v=e,this.i++,Ll++,mn++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Gl()}}}});(zi.prototype=new et).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ll))return!0;if(this.g=Ll,this.f|=1,this.i>0&&!kP(this))return this.f&=-2,!0;var e=pe;try{CP(this),pe=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return pe=e,xP(this),this.f&=-2,!0};zi.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}et.prototype.S.call(this,e)};zi.prototype.U=function(e){if(this.t!==void 0&&(et.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};zi.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(zi.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=EP(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Ta.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Ta.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,TP(this),CP(this),mn++;var e=pe;return pe=this,uK.bind(this,e)};Ta.prototype.N=function(){2&this.f||(this.f|=2,this.o=Sa,Sa=this)};Ta.prototype.d=function(){this.f|=8,1&this.f||dh(this)};RP=[];Pa(function(){PP=this.N})();OP.displayName="_st";Object.defineProperties(et.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:OP},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Yi("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof et&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Yi("__r",function(e,t){ql();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return Pa(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),ql(r),e(t)});Yi("__e",function(e,t,r,n){ql(),e(t,r,n)});Yi("diffed",function(e,t){ql();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,i=t.props;if(n){var o=r.U;if(o)for(var a in o){var s=o[a];s!==void 0&&!(a in n)&&(s.d(),o[a]=void 0)}else o={},r.U=o;for(var c in n){var l=o[c],d=n[c];l===void 0?(l=dK(r,c,d,i),o[c]=l):l.o(d,i)}}}e(t)});Yi("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var i in n){var o=n[i];o&&o.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});Yi("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});Ct.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var o=2&this.__$f;if(!(n||o||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};pK=function(e){queueMicrotask(function(){queueMicrotask(e)})};He=dt`
623
623
  inset: 0;
624
624
  clear: none;
625
625
  float: none;
@@ -637,7 +637,7 @@ If multiple caches share the same key they might "fight" for each other's style
637
637
  text-decoration: none;
638
638
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
639
639
  'Helvetica Neue', sans-serif;
640
- `;mK=0;gK=dt`
640
+ `;hK=0;gK=dt`
641
641
  ${He}
642
642
  position: fixed;
643
643
  top: 0;
@@ -712,7 +712,7 @@ If multiple caches share the same key they might "fight" for each other's style
712
712
  }
713
713
  }
714
714
  }
715
- `,Jr=$(null),Jh=$(""),Gh=$(""),kl=$(!1),vK=()=>{var e;(e=Jr.value)==null||e.call(Jr,!1)},yK=()=>{var e;(e=Jr.value)==null||e.call(Jr,!0)},bK=e=>g(void 0,null,function*(){let{title:t,content:r}=e;return Jr.value&&(Jr.value(!1),xe(()=>{Jr.value=null,kl.value=!1})),xe(()=>{Jh.value=t||"",Gh.value=r||"",kl.value=!0}),new Promise(n=>{Jr.value=i=>{xe(()=>{Jr.value=null,kl.value=!1,Jh.value="",Gh.value=""}),n(i)}})}),_K=()=>kl.value?G("div",{className:gK,children:G("div",{className:"card-wrapper",children:[G("div",{className:"body",children:[G("div",{className:"title",children:Jh.value}),G("div",{className:"content",children:Gh.value})]}),G("div",{className:"footer",children:[G("button",{onClick:vK,className:"cancel-btn",children:"Cancel"}),G("button",{onClick:yK,className:"confirm-btm",children:"Confirm"})]})]})}):null,wK=dt`
715
+ `,Jr=$(null),Gm=$(""),Hm=$(""),xl=$(!1),vK=()=>{var e;(e=Jr.value)==null||e.call(Jr,!1)},yK=()=>{var e;(e=Jr.value)==null||e.call(Jr,!0)},bK=e=>g(void 0,null,function*(){let{title:t,content:r}=e;return Jr.value&&(Jr.value(!1),xe(()=>{Jr.value=null,xl.value=!1})),xe(()=>{Gm.value=t||"",Hm.value=r||"",xl.value=!0}),new Promise(n=>{Jr.value=i=>{xe(()=>{Jr.value=null,xl.value=!1,Gm.value="",Hm.value=""}),n(i)}})}),_K=()=>xl.value?G("div",{className:gK,children:G("div",{className:"card-wrapper",children:[G("div",{className:"body",children:[G("div",{className:"title",children:Gm.value}),G("div",{className:"content",children:Hm.value})]}),G("div",{className:"footer",children:[G("button",{onClick:vK,className:"cancel-btn",children:"Cancel"}),G("button",{onClick:yK,className:"confirm-btm",children:"Confirm"})]})]})}):null,wK=dt`
716
716
  ${He}
717
717
  position: relative;
718
718
  display: flex;
@@ -745,7 +745,7 @@ If multiple caches share the same key they might "fight" for each other's style
745
745
  cursor: not-allowed;
746
746
  }
747
747
  }
748
- `,SK=()=>{let e=$(!1),t=$(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{xe(()=>{t.value=Date.now(),e.value=!1})}}},IK=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=NP(t);hK(()=>{s.value>0?s.value-=1:xe(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let c=Sa(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!o.value)return!1;let f=Date.now()-o.value;return s.value>0&&t-s.value>=5&&f>=5e3}),l=Sa(()=>{if(r==="interstitial")return!0;if(!o.value)return!1;let f=Date.now()-o.value;return s.value<=0&&f>=(t-1)*1e3&&t>5}),d=Sa(()=>r==="interstitial"?!1:!c.value&&!l.value),u=()=>g(void 0,null,function*(){if(a.value=!0,!(yield bK({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),xe(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),xe(()=>{a.value=!0,s.value=0,o.value=null})};return G("div",{className:wK,children:[s.value>0&&r!=="interstitial"&&G("div",{className:"timer",children:[s.value,"s"]}),G("button",{onClick:c.value?u:l.value?p:void 0,disabled:d.value,children:G("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:G("path",{d:"M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",fill:"white"})})})]})},LP=()=>{let e=$(),t=$(),r=$(),n=$(),i=$(),o=$(!1),a=$(15),s=$(""),c=$("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:c}},AK=dt`
748
+ `,SK=()=>{let e=$(!1),t=$(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{xe(()=>{t.value=Date.now(),e.value=!1})}}},IK=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=NP(t);mK(()=>{s.value>0?s.value-=1:xe(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let c=Ia(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!o.value)return!1;let f=Date.now()-o.value;return s.value>0&&t-s.value>=5&&f>=5e3}),l=Ia(()=>{if(r==="interstitial")return!0;if(!o.value)return!1;let f=Date.now()-o.value;return s.value<=0&&f>=(t-1)*1e3&&t>5}),d=Ia(()=>r==="interstitial"?!1:!c.value&&!l.value),u=()=>g(void 0,null,function*(){if(a.value=!0,!(yield bK({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),xe(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),xe(()=>{a.value=!0,s.value=0,o.value=null})};return G("div",{className:wK,children:[s.value>0&&r!=="interstitial"&&G("div",{className:"timer",children:[s.value,"s"]}),G("button",{onClick:c.value?u:l.value?p:void 0,disabled:d.value,children:G("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:G("path",{d:"M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",fill:"white"})})})]})},LP=()=>{let e=$(),t=$(),r=$(),n=$(),i=$(),o=$(!1),a=$(15),s=$(""),c=$("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:c}},AK=dt`
749
749
  ${He}
750
750
  position: fixed;
751
751
  z-index: 2147483647;
@@ -764,7 +764,7 @@ If multiple caches share the same key they might "fight" for each other's style
764
764
  width: 100%;
765
765
  height: 100%;
766
766
  }
767
- `,qP=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,visible:s,countdown:c,src:l,mode:d}=t,u=Uo(()=>SK(),[]),[p,f]=Er(!1),h=b=>{var y,_,A,C;s.value=!1,b==="dismiss"?(y=n.value)==null||y.call(n):b==="viewed"&&((_=i.value)==null||_.call(i)),(A=r.value)==null||A.call(r),(C=o.value)==null||C.call(o),f(!1)},v=en(()=>{var b;p||(f(!0),(b=a.value)==null||b.call(a))},[p]);return Zr(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?G("div",{className:AK,children:[G(IK,{mode:d.value,onClose:h,countdown:c.value,state:u}),s.value&&G("iframe",{src:l.value,onLoad:v,sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"}),G(_K,{})]}):null};Hh=class{constructor(t,r){Ur(this,"name","OKSPIN"),Ur(this,"initialized",!1),Ur(this,"initCompleter",null),Ur(this,"context",void 0),Ur(this,"initParams",void 0),Ur(this,"adsOverlay",null),Ur(this,"adsIsShowing",!1),Ur(this,"lastUnDisplayedAdBreak",null),Ur(this,"state",LP()),this.context=t,this.initParams=r}init(){return g(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),tr(G(qP,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){return g(this,null,function*(){var n,i,o,a,s,c,l,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var f;this.adsIsShowing=!1,(f=t.afterAd)==null||f.call(t)},p=()=>{var f;this.adsIsShowing=!1,(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};xe(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=p,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((c=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||c.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(l=t.beforeAd)==null||l.call(t);let u=()=>{var y;this.adsIsShowing=!1,(y=t.afterAd)==null||y.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var y;this.adsIsShowing=!1,p.breakStatus="dismissed",(y=t.adDismissed)==null||y.call(t)},h=()=>{var y;this.adsIsShowing=!1,p.breakStatus="viewed",(y=t.adViewed)==null||y.call(t)},v=()=>{var y;this.adsIsShowing=!1,(y=t.adBreakDone)==null||y.call(t,p)};xe(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=h,this.state.adBreakDone.value=v});let b=()=>{var y;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(y=t.adBreakDone)==null||y.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,xe(()=>{var _;this.state.countdown.value=(_=r.params.countdown)!=null?_:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,b);break}}})}},kK=()=>{let e=$(null),t=$(null),r=$(null),n=$(null),i=$(null),o=$(null),a=$(!1),s=$(null);return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adError:o,visible:a,payload:s}},xK=dt`
767
+ `,qP=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,visible:s,countdown:c,src:l,mode:d}=t,u=Mo(()=>SK(),[]),[p,f]=Er(!1),m=b=>{var y,_,A,k;s.value=!1,b==="dismiss"?(y=n.value)==null||y.call(n):b==="viewed"&&((_=i.value)==null||_.call(i)),(A=r.value)==null||A.call(r),(k=o.value)==null||k.call(o),f(!1)},v=en(()=>{var b;p||(f(!0),(b=a.value)==null||b.call(a))},[p]);return Zr(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?G("div",{className:AK,children:[G(IK,{mode:d.value,onClose:m,countdown:c.value,state:u}),s.value&&G("iframe",{src:l.value,onLoad:v,sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"}),G(_K,{})]}):null};Vm=class{constructor(t,r){Ur(this,"name","OKSPIN"),Ur(this,"initialized",!1),Ur(this,"initCompleter",null),Ur(this,"context",void 0),Ur(this,"initParams",void 0),Ur(this,"adsOverlay",null),Ur(this,"adsIsShowing",!1),Ur(this,"lastUnDisplayedAdBreak",null),Ur(this,"state",LP()),this.context=t,this.initParams=r}init(){return g(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),tr(G(qP,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){return g(this,null,function*(){var n,i,o,a,s,c,l,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var f;this.adsIsShowing=!1,(f=t.afterAd)==null||f.call(t)},p=()=>{var f;this.adsIsShowing=!1,(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};xe(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=p,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((c=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||c.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(l=t.beforeAd)==null||l.call(t);let u=()=>{var y;this.adsIsShowing=!1,(y=t.afterAd)==null||y.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var y;this.adsIsShowing=!1,p.breakStatus="dismissed",(y=t.adDismissed)==null||y.call(t)},m=()=>{var y;this.adsIsShowing=!1,p.breakStatus="viewed",(y=t.adViewed)==null||y.call(t)},v=()=>{var y;this.adsIsShowing=!1,(y=t.adBreakDone)==null||y.call(t,p)};xe(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=m,this.state.adBreakDone.value=v});let b=()=>{var y;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(y=t.adBreakDone)==null||y.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,xe(()=>{var _;this.state.countdown.value=(_=r.params.countdown)!=null?_:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,b);break}}})}},CK=()=>{let e=$(null),t=$(null),r=$(null),n=$(null),i=$(null),o=$(null),a=$(!1),s=$(null);return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adError:o,visible:a,payload:s}},xK=dt`
768
768
  ${He}
769
769
  position: fixed;
770
770
  inset: 0;
@@ -806,7 +806,7 @@ If multiple caches share the same key they might "fight" for each other's style
806
806
  align-items: center;
807
807
  justify-content: center;
808
808
  padding: 0;
809
- `,eP=dt`
809
+ `,tP=dt`
810
810
  width: 100%;
811
811
  height: 100%;
812
812
  border: 2px dashed rgba(255, 255, 255, 0.08);
@@ -847,7 +847,7 @@ If multiple caches share the same key they might "fight" for each other's style
847
847
  font-size: 14px;
848
848
  font-weight: 500;
849
849
  cursor: pointer;
850
- `,UK=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adError:s,visible:c,payload:l}=t,[d,u]=Er(!1),[p,f]=Er(0),[h,v]=Er(!1),[b,y]=Er(!1),[_,A]=Er("Loading next content..."),C=mi(null),x=l.value,k=en(N=>{var O,B,X,ie;u(!1),c.value=!1,N==="dismiss"?(O=n.value)==null||O.call(n):(B=i.value)==null||B.call(i),(X=r.value)==null||X.call(r),(ie=o.value)==null||ie.call(o)},[c,n,i,r,o]),E=en(()=>{var N;u(!1),c.value=!1,(N=s.value)==null||N.call(s)},[c,s]);if(Zr(()=>{var N;if(!c.value||!x){f(0),v(!1),y(!1),A("Loading next content...");return}let O=x.mode==="reward"?15:0,B=Math.max(Math.floor((N=x.countdown)!=null?N:O),0);if(f(B),y(x.mode==="reward"?B===0:!0),v(x.mode==="interstitial"?B===0:!1),B===0)return;let X=B,ie=window.setInterval(()=>{X-=1,f(Math.max(X,0)),X<=0&&(window.clearInterval(ie),x.mode==="reward"?y(!0):v(!0))},1e3);return()=>{window.clearInterval(ie)}},[c.value,x,k]),Zr(()=>{var N;if(!c.value||!x)return;let O=C.current;if(!O)return;if(O.innerHTML="",A("Loading next content..."),u(!1),x.testMode){let ie=document.createElement("div");ie.className=eP,ie.innerText="Preview slot placeholder",O.appendChild(ie),u(!0),(N=a.value)==null||N.call(a);return}if(typeof window=="undefined"){E();return}let B=document.createElement("ins");B.className="adsbygoogle",B.style.display="block",B.style.width="100%",B.style.height="100%",B.setAttribute("data-ad-client",x.clientId),B.setAttribute("data-ad-slot",x.unitId),B.setAttribute("data-ad-format","auto"),B.setAttribute("data-full-width-responsive","true"),x.channelId&&B.setAttribute("data-ad-channel",x.channelId),O.appendChild(B);let X=new MutationObserver(()=>{var ie;let Ke=B.getAttribute("data-ad-status");Ke==="filled"?(u(!0),A(""),(ie=a.value)==null||ie.call(a),X.disconnect()):Ke==="unfilled"&&(A("Slot currently unavailable."),u(!1),X.disconnect())});X.observe(B,{attributes:!0,attributeFilter:["data-ad-status"]});try{let ie=window;ie.adsbygoogle=ie.adsbygoogle||[],ie.adsbygoogle.push({})}catch(ie){X.disconnect(),E()}return()=>{X.disconnect(),O.innerHTML=""}},[c.value,x,a,E]),!c.value||!x)return null;let H=x.mode==="reward"?"Next content unlocking":"Content paused",ae=p>0?`Content resumes in ${p}s`:"Content ready";return G("div",{className:xK,children:G("div",{className:TK,children:[G("div",{className:PK,children:[G("div",{className:RK,children:H}),G("div",{className:OK,children:ae})]}),G("div",{className:NK,ref:C,children:!d&&G("div",{className:eP,children:_})}),G("div",{className:DK,children:x.mode==="reward"?G("button",{className:LK,type:"button",onClick:()=>k("viewed"),disabled:!b,children:b?"Continue":`Continue in ${p}s`}):h&&G("button",{className:qK,type:"button",onClick:()=>k("viewed"),children:"Continue"})})]})})};Vh=class{constructor(t,r){if(ht(this,"name","ADSENSE_BANNER_AS_AFG"),ht(this,"initialized",!1),ht(this,"initCompleter",null),ht(this,"context",void 0),ht(this,"contextInfo",void 0),ht(this,"initParams",void 0),ht(this,"defaultCountdown",5),ht(this,"adsOverlay",null),ht(this,"adsIsShowing",!1),ht(this,"lastUnDisplayedAdBreak",null),ht(this,"requestCounter",0),ht(this,"scriptPromise",null),ht(this,"scriptReady",!1),ht(this,"scriptFailed",!1),ht(this,"state",kK()),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,typeof window!="undefined"){let n=window;n.adsbygoogle=n.adsbygoogle||[]}}init(){return g(this,null,function*(){var t;if(typeof document!="undefined"){this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-banner-as-afg"),tr(G(UK,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay);try{yield this.ensureAdSenseScript()}catch(r){this.scriptFailed=!0,console.warn("[BannerAsAFG] Failed to load Google AdSense script",r)}this.initialized=!0,(t=this.initCompleter)==null||t.call(this)}})}ensureAdSenseScript(){var t;if(typeof document=="undefined")return Promise.resolve();if(this.scriptPromise)return this.scriptPromise;if(document.getElementById("google-adsense"))return this.scriptReady=!0,Promise.resolve();if(!this.initParams.clientId)return this.scriptFailed=!0,Promise.reject(new Error("BannerAsAFG requires a Google AdSense clientId."));let r=(t=this.contextInfo.testAdsMode)!=null?t:!1;return this.scriptPromise=new Promise((n,i)=>{let o=document.createElement("script");o.id="google-adsense",o.async=!0,o.crossOrigin="anonymous",o.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,r&&o.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&o.setAttribute("data-ad-channel",this.initParams.channelId),o.onload=()=>{this.scriptReady=!0,n()},o.onerror=()=>{this.scriptFailed=!0,i(new Error("Failed to fetch Google AdSense script."))},document.head.appendChild(o)}),this.scriptPromise}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}resolveOverlayConfig(t){var r,n;let i=(n=(r=t==null?void 0:t.params)==null?void 0:r.countdown)!=null?n:this.defaultCountdown;return{rewardUnitId:this.initParams.rewardUnitId,interstitialUnitId:this.initParams.interstitialUnitId,channelId:this.initParams.channelId,countdown:Math.max(Math.floor(i),0)}}canDisplay(t){return!!t&&!!this.initParams.clientId&&!!this.adsOverlay&&this.initialized&&!this.scriptFailed&&this.scriptReady}showBannerOverlay(t,r){var n,i;let o=Math.max(Math.floor((n=r.countdown)!=null?n:t==="reward"?15:0),0),a={requestId:++this.requestCounter,clientId:this.initParams.clientId,unitId:t==="reward"?this.initParams.rewardUnitId:this.initParams.interstitialUnitId,channelId:r.channelId,countdown:o,mode:t,testMode:(i=this.contextInfo.testAdsMode)!=null?i:!1};this.state.payload.value=a,this.state.visible.value=!0}adBreak(t,r){var n,i,o,a,s,c,l,d,u;let p=t.type==="preroll"?"":t.name,f=t.type==="reward"?"reward":"interstitial";if(!this.initialized||!this.adsOverlay){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"frequencyCapped"});return}let h=this.resolveOverlayConfig(r);if(!this.canDisplay(h.rewardUnitId)){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"notReady"});return}switch(t.type){case"preroll":{(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(s=t.beforeAd)==null||s.call(t);let v={breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"},b=()=>{var A;this.adsIsShowing=!1,(A=t.afterAd)==null||A.call(t)},y=()=>{var A;this.adsIsShowing=!1,(A=t.adBreakDone)==null||A.call(t,v)},_=()=>{var A,C;this.adsIsShowing=!1,v.breakStatus="noAdPreloaded",(A=t.afterAd)==null||A.call(t),(C=t.adBreakDone)==null||C.call(t,v)};xe(()=>{this.adsIsShowing=!0,this.state.afterAd.value=b,this.state.adBreakDone.value=y,this.state.adDismissed.value=null,this.state.adViewed.value=null,this.state.adError.value=_,this.showBannerOverlay("interstitial",h)});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(c=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(c,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(d=t.beforeAd)==null||d.call(t);let v={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},b=()=>{var k;this.adsIsShowing=!1,(k=t.afterAd)==null||k.call(t)},y=()=>{var k;this.adsIsShowing=!1,v.breakStatus="dismissed",(k=t.adDismissed)==null||k.call(t)},_=()=>{var k;this.adsIsShowing=!1,v.breakStatus="viewed",(k=t.adViewed)==null||k.call(t)},A=()=>{var k;this.adsIsShowing=!1,(k=t.adBreakDone)==null||k.call(t,v)},C=()=>{var k,E;this.adsIsShowing=!1,v.breakStatus="noAdPreloaded",(k=t.afterAd)==null||k.call(t),(E=t.adBreakDone)==null||E.call(t,v)};xe(()=>{this.state.afterAd.value=b,this.state.adDismissed.value=y,this.state.adViewed.value=_,this.state.adBreakDone.value=A,this.state.adError.value=C});let x=()=>{var k,E;if(!this.canDisplay(h.rewardUnitId)){this.lastUnDisplayedAdBreak=null,(k=t.afterAd)==null||k.call(t),(E=t.adBreakDone)==null||E.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.lastUnDisplayedAdBreak=null,this.adsIsShowing=!0,xe(()=>{this.showBannerOverlay("reward",h)})};this.lastUnDisplayedAdBreak=t,(u=t.beforeReward)==null||u.call(t,x);break}}}},Gi={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||Gi[e.data.type]&&Gi[e.data.type].forEach(t=>{t(e.data.data)})});Bi=(e,t)=>{Zr(()=>(Gi[e]||(Gi[e]=new Set),Gi[e].add(t),()=>{Gi[e].delete(t)}),[e,t])},UP=()=>{let e=$(),t=$(),r=$(),n=$(),i=$(),o=$(),a=$(),s=$(!1),c=$("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:c}},BK=dt`
850
+ `,UK=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adError:s,visible:c,payload:l}=t,[d,u]=Er(!1),[p,f]=Er(0),[m,v]=Er(!1),[b,y]=Er(!1),[_,A]=Er("Loading next content..."),k=hi(null),x=l.value,C=en(N=>{var O,B,X,ie;u(!1),c.value=!1,N==="dismiss"?(O=n.value)==null||O.call(n):(B=i.value)==null||B.call(i),(X=r.value)==null||X.call(r),(ie=o.value)==null||ie.call(o)},[c,n,i,r,o]),E=en(()=>{var N;u(!1),c.value=!1,(N=s.value)==null||N.call(s)},[c,s]);if(Zr(()=>{var N;if(!c.value||!x){f(0),v(!1),y(!1),A("Loading next content...");return}let O=x.mode==="reward"?15:0,B=Math.max(Math.floor((N=x.countdown)!=null?N:O),0);if(f(B),y(x.mode==="reward"?B===0:!0),v(x.mode==="interstitial"?B===0:!1),B===0)return;let X=B,ie=window.setInterval(()=>{X-=1,f(Math.max(X,0)),X<=0&&(window.clearInterval(ie),x.mode==="reward"?y(!0):v(!0))},1e3);return()=>{window.clearInterval(ie)}},[c.value,x,C]),Zr(()=>{var N;if(!c.value||!x)return;let O=k.current;if(!O)return;if(O.innerHTML="",A("Loading next content..."),u(!1),x.testMode){let ie=document.createElement("div");ie.className=tP,ie.innerText="Preview slot placeholder",O.appendChild(ie),u(!0),(N=a.value)==null||N.call(a);return}if(typeof window=="undefined"){E();return}let B=document.createElement("ins");B.className="adsbygoogle",B.style.display="block",B.style.width="100%",B.style.height="100%",B.setAttribute("data-ad-client",x.clientId),B.setAttribute("data-ad-slot",x.unitId),B.setAttribute("data-ad-format","auto"),B.setAttribute("data-full-width-responsive","true"),x.channelId&&B.setAttribute("data-ad-channel",x.channelId),O.appendChild(B);let X=new MutationObserver(()=>{var ie;let Ke=B.getAttribute("data-ad-status");Ke==="filled"?(u(!0),A(""),(ie=a.value)==null||ie.call(a),X.disconnect()):Ke==="unfilled"&&(A("Slot currently unavailable."),u(!1),X.disconnect())});X.observe(B,{attributes:!0,attributeFilter:["data-ad-status"]});try{let ie=window;ie.adsbygoogle=ie.adsbygoogle||[],ie.adsbygoogle.push({})}catch(ie){X.disconnect(),E()}return()=>{X.disconnect(),O.innerHTML=""}},[c.value,x,a,E]),!c.value||!x)return null;let H=x.mode==="reward"?"Next content unlocking":"Content paused",ae=p>0?`Content resumes in ${p}s`:"Content ready";return G("div",{className:xK,children:G("div",{className:TK,children:[G("div",{className:PK,children:[G("div",{className:RK,children:H}),G("div",{className:OK,children:ae})]}),G("div",{className:NK,ref:k,children:!d&&G("div",{className:tP,children:_})}),G("div",{className:DK,children:x.mode==="reward"?G("button",{className:LK,type:"button",onClick:()=>C("viewed"),disabled:!b,children:b?"Continue":`Continue in ${p}s`}):m&&G("button",{className:qK,type:"button",onClick:()=>C("viewed"),children:"Continue"})})]})})};$m=class{constructor(t,r){if(mt(this,"name","ADSENSE_BANNER_AS_AFG"),mt(this,"initialized",!1),mt(this,"initCompleter",null),mt(this,"context",void 0),mt(this,"contextInfo",void 0),mt(this,"initParams",void 0),mt(this,"defaultCountdown",5),mt(this,"adsOverlay",null),mt(this,"adsIsShowing",!1),mt(this,"lastUnDisplayedAdBreak",null),mt(this,"requestCounter",0),mt(this,"scriptPromise",null),mt(this,"scriptReady",!1),mt(this,"scriptFailed",!1),mt(this,"state",CK()),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,typeof window!="undefined"){let n=window;n.adsbygoogle=n.adsbygoogle||[]}}init(){return g(this,null,function*(){var t;if(typeof document!="undefined"){this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-banner-as-afg"),tr(G(UK,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay);try{yield this.ensureAdSenseScript()}catch(r){this.scriptFailed=!0,console.warn("[BannerAsAFG] Failed to load Google AdSense script",r)}this.initialized=!0,(t=this.initCompleter)==null||t.call(this)}})}ensureAdSenseScript(){var t;if(typeof document=="undefined")return Promise.resolve();if(this.scriptPromise)return this.scriptPromise;if(document.getElementById("google-adsense"))return this.scriptReady=!0,Promise.resolve();if(!this.initParams.clientId)return this.scriptFailed=!0,Promise.reject(new Error("BannerAsAFG requires a Google AdSense clientId."));let r=(t=this.contextInfo.testAdsMode)!=null?t:!1;return this.scriptPromise=new Promise((n,i)=>{let o=document.createElement("script");o.id="google-adsense",o.async=!0,o.crossOrigin="anonymous",o.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,r&&o.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&o.setAttribute("data-ad-channel",this.initParams.channelId),o.onload=()=>{this.scriptReady=!0,n()},o.onerror=()=>{this.scriptFailed=!0,i(new Error("Failed to fetch Google AdSense script."))},document.head.appendChild(o)}),this.scriptPromise}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}resolveOverlayConfig(t){var r,n;let i=(n=(r=t==null?void 0:t.params)==null?void 0:r.countdown)!=null?n:this.defaultCountdown;return{rewardUnitId:this.initParams.rewardUnitId,interstitialUnitId:this.initParams.interstitialUnitId,channelId:this.initParams.channelId,countdown:Math.max(Math.floor(i),0)}}canDisplay(t){return!!t&&!!this.initParams.clientId&&!!this.adsOverlay&&this.initialized&&!this.scriptFailed&&this.scriptReady}showBannerOverlay(t,r){var n,i;let o=Math.max(Math.floor((n=r.countdown)!=null?n:t==="reward"?15:0),0),a={requestId:++this.requestCounter,clientId:this.initParams.clientId,unitId:t==="reward"?this.initParams.rewardUnitId:this.initParams.interstitialUnitId,channelId:r.channelId,countdown:o,mode:t,testMode:(i=this.contextInfo.testAdsMode)!=null?i:!1};this.state.payload.value=a,this.state.visible.value=!0}adBreak(t,r){var n,i,o,a,s,c,l,d,u;let p=t.type==="preroll"?"":t.name,f=t.type==="reward"?"reward":"interstitial";if(!this.initialized||!this.adsOverlay){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"frequencyCapped"});return}let m=this.resolveOverlayConfig(r);if(!this.canDisplay(m.rewardUnitId)){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"notReady"});return}switch(t.type){case"preroll":{(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(s=t.beforeAd)==null||s.call(t);let v={breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"},b=()=>{var A;this.adsIsShowing=!1,(A=t.afterAd)==null||A.call(t)},y=()=>{var A;this.adsIsShowing=!1,(A=t.adBreakDone)==null||A.call(t,v)},_=()=>{var A,k;this.adsIsShowing=!1,v.breakStatus="noAdPreloaded",(A=t.afterAd)==null||A.call(t),(k=t.adBreakDone)==null||k.call(t,v)};xe(()=>{this.adsIsShowing=!0,this.state.afterAd.value=b,this.state.adBreakDone.value=y,this.state.adDismissed.value=null,this.state.adViewed.value=null,this.state.adError.value=_,this.showBannerOverlay("interstitial",m)});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(c=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(c,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(d=t.beforeAd)==null||d.call(t);let v={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},b=()=>{var C;this.adsIsShowing=!1,(C=t.afterAd)==null||C.call(t)},y=()=>{var C;this.adsIsShowing=!1,v.breakStatus="dismissed",(C=t.adDismissed)==null||C.call(t)},_=()=>{var C;this.adsIsShowing=!1,v.breakStatus="viewed",(C=t.adViewed)==null||C.call(t)},A=()=>{var C;this.adsIsShowing=!1,(C=t.adBreakDone)==null||C.call(t,v)},k=()=>{var C,E;this.adsIsShowing=!1,v.breakStatus="noAdPreloaded",(C=t.afterAd)==null||C.call(t),(E=t.adBreakDone)==null||E.call(t,v)};xe(()=>{this.state.afterAd.value=b,this.state.adDismissed.value=y,this.state.adViewed.value=_,this.state.adBreakDone.value=A,this.state.adError.value=k});let x=()=>{var C,E;if(!this.canDisplay(m.rewardUnitId)){this.lastUnDisplayedAdBreak=null,(C=t.afterAd)==null||C.call(t),(E=t.adBreakDone)==null||E.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.lastUnDisplayedAdBreak=null,this.adsIsShowing=!0,xe(()=>{this.showBannerOverlay("reward",m)})};this.lastUnDisplayedAdBreak=t,(u=t.beforeReward)==null||u.call(t,x);break}}}},Gi={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||Gi[e.data.type]&&Gi[e.data.type].forEach(t=>{t(e.data.data)})});Bi=(e,t)=>{Zr(()=>(Gi[e]||(Gi[e]=new Set),Gi[e].add(t),()=>{Gi[e].delete(t)}),[e,t])},UP=()=>{let e=$(),t=$(),r=$(),n=$(),i=$(),o=$(),a=$(),s=$(!1),c=$("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:c}},BK=dt`
851
851
  ${He}
852
852
  position: fixed;
853
853
  z-index: 2147483647;
@@ -866,7 +866,7 @@ If multiple caches share the same key they might "fight" for each other's style
866
866
  width: 100%;
867
867
  height: 100%;
868
868
  }
869
- `,MP=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:c,src:l}=t,[d,u]=Er(!1),p=h=>{var v,b,y,_;u(!1),c.value=!1,h==="dismiss"?(v=n.value)==null||v.call(n):h==="viewed"&&((b=i.value)==null||b.call(i)),(y=r.value)==null||y.call(r),(_=o.value)==null||_.call(o)},f=()=>{var h;(h=a.value)==null||h.call(a)};return Bi("appsrockets_ad_dismissed",()=>p("dismiss")),Bi("appsrockets_ad_rewarded",()=>p("viewed")),Bi("appsrockets_ad_completed",()=>p("viewed")),Bi("appsrockets_ad_skipped",()=>p("viewed")),Bi("appsrockets_ad_clicked",h=>{var v;return(v=s.value)==null?void 0:v.call(s,h)}),Bi("appsrockets_ad_loaded",()=>u(!0)),c.value?G("div",{className:BK,style:{display:d?"flex":"none"},children:c.value&&G("iframe",{src:l.value,onLoad:f,allowFullScreen:!0,allow:"autoplay",sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"})}):null};$h=class{constructor(t,r){Mr(this,"name","APPSROCKETS"),Mr(this,"initialized",!1),Mr(this,"initCompleter",null),Mr(this,"context",void 0),Mr(this,"adsOverlay",null),Mr(this,"adsIsShowing",!1),Mr(this,"lastUnDisplayedAdBreak",null),Mr(this,"state",UP()),Mr(this,"processUrl",(n,i)=>{var o;let a=this.context.getContextInfo(),s=new URL(n),c=new URLSearchParams(s.search);return c.has("joliSource")||c.set("joliSource",a.joliSource),c.get("osType")||c.set("osType",a.osType),c.get("runtimeType")||c.set("runtimeType",a.runtimeType),c.get("mode")||c.set("mode","AFG"),c.get("deviceId")||c.set("deviceId",a.deviceId),c.get("statusBarHeight")||c.set("statusBarHeight",((o=this.context.getWindowInfo().statusBarHeight)!=null?o:0).toString()),c.get("adsType")||c.set("adsType",i),s.search=c.toString(),s.toString()}),this.context=t}init(){return g(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),tr(G(MP,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){var n,i,o,a,s,c,l,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=f=>{var h,v;(v=(h=this.context).handleLinkClicked)==null||v.call(h,f)},p=t.type==="reward"?"REWARD":"INTERSTITIAL";switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let f=()=>{var b;this.adsIsShowing=!1,(b=t.afterAd)==null||b.call(t)},h=()=>{var b;this.adsIsShowing=!1,(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},v=()=>{var b;this.adsIsShowing=!1,(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};xe(()=>{this.adsIsShowing=!0,this.state.afterAd.value=f,this.state.adBreakDone.value=h,this.state.src.value=this.processUrl(r.params.url,p),this.state.adLinkClicked.value=u,this.state.adError.value=v,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((c=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||c.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(l=t.beforeAd)==null||l.call(t);let f=()=>{var C;this.adsIsShowing=!1,(C=t.afterAd)==null||C.call(t)},h={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},v=()=>{var C;this.adsIsShowing=!1,h.breakStatus="dismissed",(C=t.adDismissed)==null||C.call(t)},b=()=>{var C;this.adsIsShowing=!1,h.breakStatus="viewed",(C=t.adViewed)==null||C.call(t)},y=()=>{var C;this.adsIsShowing=!1,(C=t.adBreakDone)==null||C.call(t,h)},_=()=>{this.adsIsShowing=!1,h.breakStatus="noAdPreloaded"};xe(()=>{this.state.afterAd.value=f,this.state.adDismissed.value=v,this.state.adViewed.value=b,this.state.adBreakDone.value=y,this.state.adLinkClicked.value=u,this.state.adError.value=_});let A=()=>{var C;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(C=t.adBreakDone)==null||C.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,xe(()=>{this.state.src.value=this.processUrl(r.params.url,p),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,A);break}}}},FP=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};BP=class{constructor(e,t,r){st(this,"adUnit",void 0),st(this,"project",void 0),st(this,"keyValue",void 0),st(this,"adsContext",null),st(this,"rewardedSlot",null),st(this,"rewardedPayload",null),st(this,"readyEvent",null),st(this,"withCommand",function(){googletag.cmd.push(...arguments)}),st(this,"init",()=>{var n;this.rewardedSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.REWARDED),this.rewardedSlot&&(this.rewardedSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().addEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().addEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.keyValue&&(Object.keys(this.keyValue).forEach(i=>{var o;(o=this.rewardedSlot)==null||o.setTargeting(i,this.keyValue[i])}),Object.keys(this.keyValue).includes("project")||(n=this.rewardedSlot)==null||n.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),st(this,"destroy",n=>{var i,o;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(o=(i=this.adsContext)==null?void 0:i.adBreakDone)==null||o.call(i,n),n!=="ignored"&&(this.adsContext=null)}),st(this,"reinit",n=>{this.destroy(n),this.init()}),st(this,"handleSlotReady",n=>{n.slot===this.rewardedSlot&&(this.readyEvent=n)}),st(this,"handleSlotClosed",n=>{var i,o;if(this.adsContext&&n.slot===this.rewardedSlot){let a=this.rewardedPayload?"viewed":"dismissed";a==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(o=(i=this.adsContext).afterAd)==null||o.call(i),this.withCommand(()=>{this.reinit(a)})}}),st(this,"handleSlotGranted",n=>{this.adsContext&&n.slot===this.rewardedSlot&&(this.rewardedPayload=n.payload)}),st(this,"handleSlotRenderEnded",n=>{n.slot===this.rewardedSlot&&n.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),st(this,"requestAds",n=>{this.withCommand(()=>{if(this.adsContext){this.destroy("ignored");return}if(this.rewardedSlot||this.init(),this.adsContext=n,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var i,o,a;(o=(i=this.adsContext)==null?void 0:i.beforeAd)==null||o.call(i),(a=this.readyEvent)==null||a.makeRewardedVisible()});else{let i=o=>{o.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",i),this.readyEvent=o,this.adsContext.beforeReward(()=>{var a,s,c;(s=(a=this.adsContext)==null?void 0:a.beforeAd)==null||s.call(a),(c=this.readyEvent)==null||c.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",i),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",i))},500)}})}),this.adUnit=e,this.project=t,this.keyValue=r,FP(),this.withCommand(()=>{this.init()})}};Kh=class{constructor(t,r,n){var i=this;_t(this,"adUnit",void 0),_t(this,"project",void 0),_t(this,"keyValue",void 0),_t(this,"adsContext",null),_t(this,"gamingInterstitialSlot",null),_t(this,"readyEvent",null),_t(this,"isRetrying",!1),_t(this,"withCommand",function(){googletag.cmd.push(...arguments)}),_t(this,"init",()=>{var o;this.gamingInterstitialSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL),this.gamingInterstitialSlot&&(this.gamingInterstitialSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("gameManualInterstitialSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("gameManualInterstitialSlotClosed",this.handleSlotClosed),this.keyValue&&(Object.keys(this.keyValue).forEach(a=>{var s;(s=this.gamingInterstitialSlot)==null||s.setTargeting(a,this.keyValue[a])}),Object.keys(this.keyValue).includes("project")||(o=this.gamingInterstitialSlot)==null||o.setTargeting("project",this.project)),googletag.display(this.gamingInterstitialSlot))}),_t(this,"destroy",function(o){var a,s;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o),o!=="ignored"&&(i.adsContext=null)),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),_t(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),_t(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),_t(this,"handleSlotClosed",o=>{var a,s;this.adsContext&&this.gamingInterstitialSlot===o.slot&&((s=(a=this.adsContext).afterAd)==null||s.call(a),this.withCommand(()=>{this.reinit("viewed")}))}),_t(this,"requestAds",o=>{this.withCommand(()=>{var a,s,c;if(this.adsContext){this.destroy("ignored");return}if(this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((c=(s=this.adsContext).onEnd)==null||c.call(s,"frequencyCapped"),this.adsContext=null,this.isRetrying||(this.isRetrying=!0,window.setTimeout(()=>{this.readyEvent||this.withCommand(()=>{this.reinit("frequencyCapped",!1)}),this.isRetrying=!1},31e3)))})}),FP(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};Wh=class{constructor(t,r){Vn(this,"name","GOOGLE_GPT"),Vn(this,"context",void 0),Vn(this,"contextInfo",void 0),Vn(this,"initParams",void 0),Vn(this,"rewardAdManager",void 0),Vn(this,"interstitialManager",void 0),Vn(this,"insertScript",()=>{let n="jolibox-google-gpt",i=document.getElementById(n);i||(i=window.document.createElement("script"),i.id=n,i.async=!0,i.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",i.crossOrigin="anonymous",document.head.appendChild(i))}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,this.insertScript()}init(){return g(this,null,function*(){let t=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":this.initParams.rewardedSlot,r=this.contextInfo.testAdsMode?"/6355419/Travel/Europe/France/Paris":this.initParams.interstitialSlot,n=`minigame-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;t&&(this.rewardAdManager=new BP(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new Kh(r,n,this.initParams.keyValue))})}adConfig(t,r){}adBreak(t,r){var n,i,o;switch(t.type){case"preroll":{(n=t.adBreakDone)==null||n.call(t,{breakType:"preroll",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"reward":{if(!this.rewardAdManager){(i=t.adBreakDone)==null||i.call(t,{breakName:t.name,breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:a=>{var s;(s=t.adBreakDone)==null||s.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:a})}});break}default:{if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded"});return}this.interstitialManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,onEnd:a=>{var s;(s=t.adBreakDone)==null||s.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:a})}});break}}}};zh=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Eh(this,"context",void 0),Eh(this,"placement","GAME"),Eh(this,"contextInfo",void 0),this.context=t,this.placement=r,this.contextInfo=this.context.getContextInfo()}getLocation(){let t=new URLSearchParams(window.location.search),r={};return t.forEach((n,i)=>{r[i]=n}),{name:this.placement==="GAME"?"GamePage":"DramaPage",params:r}}getDevice(){var t,r,n,i;return{platform:(t=this.contextInfo.platform)!=null?t:pP.WebSDK,os:this.contextInfo.osType+"_"+this.contextInfo.runtimeType,appVersion:"1.0.0",appId:(r=this.contextInfo.hostAppId)!=null?r:"1",model:(n=this.contextInfo.deviceModel)!=null?n:"UnknownModel",brand:(i=this.contextInfo.deviceBrand)!=null?i:"UnknownBrand",uuid:this.contextInfo.deviceId,jsSdkVersion:"1.0.0",extra:{}}}serialize(t,r){var n;let i={protocolVersion:"1.0.0",events:[{name:t,type:uP.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:dP.WebSDK};return e$(i)}},tP="__jolibox_ads_trace__key__",Ch=()=>{var e;try{return window.__jolibox_ads_trace__key__===!0||((e=window.localStorage)==null?void 0:e.getItem(tP))==="1"||new URLSearchParams(window.location.search).get(tP)==="1"}catch(t){return!1}},R={log:function(){Ch()&&console.log(...arguments)},warn:function(){Ch()&&console.warn(...arguments)},error:function(){Ch()&&console.error(...arguments)}};Ca=class{constructor(t){lt(this,"context",void 0),lt(this,"adsTrackSerializer",void 0),lt(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new zh(this.context)}getRequestContextData(t){var r,n;this.contextInfo=this.context.getContextInfo();let{width:i,height:o}=this.context.getWindowInfo();return{report:JSON.stringify(this.adsTrackSerializer.serialize(t,{sessionId:this.contextInfo.sessionId,objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId,testAdsMode:this.contextInfo.testAdsMode})),osType:this.contextInfo.osType,runtimeType:this.contextInfo.runtimeType,sessionId:this.contextInfo.sessionId,deviceId:this.contextInfo.deviceId,adId:this.contextInfo.adId,deviceModel:(r=this.contextInfo.deviceModel)!=null?r:"UnknownModel",deviceBrand:(n=this.contextInfo.deviceBrand)!=null?n:"UnknownBrand",dimension:{width:i,height:o}}}getRequestBizParams(){return{objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId}}},ql=class{constructor(t,r){var n=this;lt(this,"context",void 0),lt(this,"contextInfo",void 0),lt(this,"requestContext",void 0),lt(this,"adsInfoRequestSeq",0),lt(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),lt(this,"pendingAFVAdsInfo",Promise.resolve(null)),lt(this,"doFetchAdsInfo",i=>g(this,null,function*(){var o;let a=++this.adsInfoRequestSeq,s=Date.now(),c=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",l=[];switch(i){case"afv":{l=["REWARD_INTERSTITIAL","REWARD","NATIVE"];break}case"reward":{l=["REWARD_INTERSTITIAL","REWARD","NATIVE"];break}default:{l=["INTERSTITIAL"];break}}let d=i==="afv"?void 0:"cached";R.log("[Jolibox SDK Ads][Trace][AdsRequest] doFetchAdsInfo start",{requestId:a,type:i,eventName:c,adsTypes:l,name:d,contextData:this.requestContext.getRequestContextData(c),bizParams:this.requestContext.getRequestBizParams()});try{let{data:u,code:p}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(c),bizParams:this.requestContext.getRequestBizParams(),adsTypes:l,testAdsMode:this.contextInfo.testAdsMode,name:d}});return R.log("[Jolibox SDK Ads][Trace][AdsRequest] doFetchAdsInfo response",{requestId:a,type:i,code:p,duration:Date.now()-s,length:(o=u==null?void 0:u.length)!=null?o:null,data:u}),p==="SUCCESS"||p==="BYPASS_ADS"?{code:p,data:u}:null}catch(u){throw R.warn("[Jolibox SDK Ads][Trace][AdsRequest] doFetchAdsInfo error",{requestId:a,type:i,duration:Date.now()-s,error:u}),u}})),lt(this,"cacheRewardInfo",()=>{R.log("[Jolibox SDK Ads][Trace][AdsRequest] cacheRewardInfo scheduled"),this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),lt(this,"cacheInterstitialInfo",i=>{R.log("[Jolibox SDK Ads][Trace][AdsRequest] cacheInterstitialInfo scheduled",{type:i}),this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),lt(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),lt(this,"cacheNextAFGAdsInfo",i=>g(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),lt(this,"getAFGAdsInfo",i=>g(this,null,function*(){var o,a;R.log("[Jolibox SDK Ads][Trace][AdsRequest] getAFGAdsInfo await cache",{type:i,cacheKey:i==="reward"?"REWARD":"INTERSTITIAL"});let s=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return R.log("[Jolibox SDK Ads][Trace][AdsRequest] getAFGAdsInfo resolved",{type:i,code:s==null?void 0:s.code,length:(a=(o=s==null?void 0:s.data)==null?void 0:o.length)!=null?a:null}),i==="reward"&&(this.cacheNextAFGAdsInfo(i),R.log("[Jolibox SDK Ads][Trace][AdsRequest] getAFGAdsInfo cacheNext scheduled",{type:i})),s})),lt(this,"getAFVAdsInfo",function(){return g(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new Ca(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};r9=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(e)try{e(...r)}catch(i){console.error("[JoliboxSDK] Callback error:",i)}},Ul=class{constructor(t){this.context=t,ZK(this,"canIUseHelper",void 0),this.context=t;let{canIUseNative:r}=Ga(()=>this.context.getContextInfo().deviceInfo.nativeSDKVersionCode||1e6,()=>this.context.getContextInfo().deviceInfo.platform||"h5");this.canIUseHelper=r}getTraceContext(){let t=this.context.getContextInfo();return{platform:t.deviceInfo.platform,nativeSDKVersionCode:t.deviceInfo.nativeSDKVersionCode,objectId:t.objectId}}loadAdsAsync(t){return g(this,null,function*(){try{R.log("[Jolibox SDK Ads][Trace][NativeHelper] loadAdsAsync invoke",{context:this.getTraceContext(),providers:t.providers});let{errNo:r,errMsg:n}=yield q("loadAdsAsync",{params:{providers:t.providers}});return R.log("[Jolibox SDK Ads][Trace][NativeHelper] loadAdsAsync response",{context:this.getTraceContext(),providers:t.providers,errNo:r,errMsg:n}),r!==0||n.length>0?{code:"FAILURE",message:n||"Failed to load ads"}:{code:"SUCCESS",message:"Ads loaded successfully"}}catch(r){return R.error("[Jolibox SDK Ads][Trace][NativeHelper] loadAdsAsync error",{context:this.getTraceContext(),providers:t.providers,error:r}),{code:"FAILURE",message:`Failed to load ads: ${r instanceof Error?r.message:String(r)}`}}})}canIUse(){let t=this.getTraceContext(),r=Rl(),n=this.canIUseHelper("loadAdsAsync"),i=this.canIUseHelper("showAdAsync"),o=r&&n&&i;return R.log("[Jolibox SDK Ads][Trace][NativeHelper] canIUse",{context:t,nativeFlag:r,canLoad:n,canShow:i,result:o}),o}showAdAsync(t){return g(this,null,function*(){try{R.log("[Jolibox SDK Ads][Trace][NativeHelper] showAdAsync invoke",{context:this.getTraceContext(),providers:t.providers});let r=yield q("showAdAsync",{params:{providers:t.providers}});if(R.log("[Jolibox SDK Ads][Trace][NativeHelper] showAdAsync response",{context:this.getTraceContext(),providers:t.providers,result:r}),r.errNo!==0)return{code:"FAILURE",message:r.errMsg||"Failed to show ad"};let n=r.data.UUID;if(R.log("[Jolibox SDK Ads][Trace][NativeHelper] showAdAsync success",{context:this.getTraceContext(),providers:t.providers,uuid:n}),t.callbacks){let i=t.timeout!==void 0?t.timeout:-1,o=null,a=()=>{R.log("[Jolibox SDK Ads][Trace][NativeHelper] onAdsStateChange cleanup",{context:this.getTraceContext(),uuid:n}),hg("onAdsStateChange",s),o&&(clearTimeout(o),o=null)},s=c=>{var l;if(R.log("[Jolibox SDK Ads][Trace][NativeHelper] onAdsStateChange received",{context:this.getTraceContext(),uuid:n,event:c}),c.UUID!==n)return;let d=(l=t.callbacks)==null?void 0:l[c.event];d&&r9(d,c.data),["onAdClosed","onAdError","onAdDismissed"].includes(c.event)&&a()};Ie("onAdsStateChange",s),R.log("[Jolibox SDK Ads][Trace][NativeHelper] onAdsStateChange registered",{context:this.getTraceContext(),uuid:n,timeoutMs:i}),i>0&&(o=setTimeout(()=>{a(),console.warn(`[JoliboxSDK] Event listener for ad ${n} auto-cleaned after ${i}ms timeout`)},i))}return{code:"SUCCESS",message:"Ad shown successfully"}}catch(r){return R.error("[Jolibox SDK Ads][Trace][NativeHelper] showAdAsync error",{context:this.getTraceContext(),providers:t.providers,error:r}),{code:"FAILURE",message:`Failed to show ad: ${r instanceof Error?r.message:String(r)}`}}})}isAdsReadySync(t){try{let{errNo:r,data:n}=q("isAdsReadySync",{params:{providers:t.providers}});return r!==0||!n?(console.warn("[Jolibox SDK]isAdsReadySync returned an error or no data"),!1):!0}catch(r){return console.warn("[Jolibox SDK]isAdsReadySync invocation failed:",r),!1}}};Yh=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){Fr(this,"providers",void 0),Fr(this,"helper",void 0),Fr(this,"adsContext",null),Fr(this,"_isAdsReady",!1),Fr(this,"init",()=>g(this,null,function*(){let n=this.helper.canIUse();if(R.log("[Jolibox SDK Ads][Trace][Reward] init start",{canIUse:n,providers:this.providers}),n){let i=yield this.helper.loadAdsAsync({providers:this.providers});R.log("[Jolibox SDK Ads][Trace][Reward] init loadAdsAsync result",{providers:this.providers,result:i}),i.code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1}else this._isAdsReady=!1;R.log("[Jolibox SDK Ads][Trace][Reward] init end",{isAdsReady:this._isAdsReady,providers:this.providers})})),Fr(this,"destroy",n=>{var i,o;R.log("[Jolibox SDK Ads][Trace][Reward] destroy",{breakStatus:n,hasAdsContext:!!this.adsContext,isAdsReady:this._isAdsReady}),this._isAdsReady=!1,(o=(i=this.adsContext)==null?void 0:i.adBreakDone)==null||o.call(i,n),n!=="ignored"&&(this.adsContext=null)}),Fr(this,"reinit",n=>g(this,null,function*(){R.log("[Jolibox SDK Ads][Trace][Reward] reinit start",{breakStatus:n,providers:this.providers}),this.destroy(n),yield this.init(),R.log("[Jolibox SDK Ads][Trace][Reward] reinit end",{breakStatus:n,isAdsReady:this._isAdsReady,providers:this.providers})})),Fr(this,"requestAds",(n,i)=>g(this,null,function*(){if(R.log("[Jolibox SDK Ads][Trace][Reward] requestAds start",{incomingProviders:i,currentProviders:this.providers,isAdsReady:this.isAdsReady,hasAdsContext:!!this.adsContext}),this.adsContext){R.log("[Jolibox SDK Ads][Trace][Reward] requestAds ignored because adsContext exists"),this.destroy("ignored");return}this.adsContext=n,i&&i.length>0&&(this.providers=i,R.log("[Jolibox SDK Ads][Trace][Reward] requestAds replace providers",{providers:this.providers}));try{this.isAdsReady?(R.log("[Jolibox SDK Ads][Trace][Reward] requestAds showAd directly",{providers:this.providers}),this.showAd()):(R.log("[Jolibox SDK Ads][Trace][Reward] requestAds not ready -> reinit only",{providers:this.providers}),yield this.reinit("frequencyCapped"))}catch(o){R.error("[Jolibox SDK Ads][Trace][Reward] requestAds error",{error:o,providers:this.providers}),this.destroy("notReady")}})),Fr(this,"showAd",()=>{if(R.log("[Jolibox SDK Ads][Trace][Reward] showAd start",{hasAdsContext:!!this.adsContext,providers:this.providers}),!this.adsContext){this.destroy("error");return}let n=!1,i=!1;this.adsContext.beforeReward(()=>g(this,null,function*(){var o,a;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o);let s=d=>{var u,p,f;i||(i=!0,R.log("[Jolibox SDK Ads][Trace][Reward] showAd terminal",{status:d,rewarded:n,providers:this.providers}),d==="dismissed"&&((u=this.adsContext)==null||u.adDismissed()),(f=(p=this.adsContext)==null?void 0:p.afterAd)==null||f.call(p),this.reinit(d))},c={onAdShow:()=>{},onAdError:()=>{s("error")},onAdRewarded:()=>{var d;n=!0,(d=this.adsContext)==null||d.adViewed()},onAdDismissed:()=>{s(n?"viewed":"dismissed")},onAdClosed:()=>{s(n?"viewed":"dismissed")}},l=yield this.helper.showAdAsync({providers:this.providers,callbacks:c});R.log("[Jolibox SDK Ads][Trace][Reward] showAd showAdAsync result",{providers:this.providers,result:l}),l.code!=="SUCCESS"&&this.reinit("noAdPreloaded")}))}),this.providers=r,this.helper=new Ul(t),this.init()}};Qh=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){var n=this;Br(this,"providers",void 0),Br(this,"helper",void 0),Br(this,"adsContext",null),Br(this,"_isAdsReady",!1),Br(this,"init",()=>g(this,null,function*(){let i=this.helper.canIUse();if(R.log("[Jolibox SDK Ads][Trace][Interstitial] init start",{canIUse:i,providers:this.providers}),i){let o=yield this.helper.loadAdsAsync({providers:this.providers});R.log("[Jolibox SDK Ads][Trace][Interstitial] init loadAdsAsync result",{providers:this.providers,result:o}),o.code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1}else this._isAdsReady=!1;R.log("[Jolibox SDK Ads][Trace][Interstitial] init end",{isAdsReady:this._isAdsReady,providers:this.providers})})),Br(this,"destroy",function(i){var o,a;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;R.log("[Jolibox SDK Ads][Trace][Interstitial] destroy",{endReason:i,clearContext:s,hasAdsContext:!!n.adsContext,isAdsReady:n._isAdsReady}),n._isAdsReady=!1,s&&((a=(o=n.adsContext)==null?void 0:o.onEnd)==null||a.call(o,i),i!=="ignored"&&(n.adsContext=null))}),Br(this,"reinit",function(o){return g(this,arguments,function*(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;R.log("[Jolibox SDK Ads][Trace][Interstitial] reinit start",{endReason:i,clearContext:a,providers:n.providers}),n.destroy(i,a),yield n.init(),R.log("[Jolibox SDK Ads][Trace][Interstitial] reinit end",{endReason:i,clearContext:a,isAdsReady:n._isAdsReady,providers:n.providers})})}),Br(this,"requestAds",(i,o)=>g(this,null,function*(){if(R.log("[Jolibox SDK Ads][Trace][Interstitial] requestAds start",{incomingProviders:o,currentProviders:this.providers,isAdsReady:this.isAdsReady,hasAdsContext:!!this.adsContext}),this.adsContext){R.log("[Jolibox SDK Ads][Trace][Interstitial] requestAds ignored because adsContext exists"),this.destroy("ignored");return}this.adsContext=i,o&&o.length>0&&(this.providers=o,R.log("[Jolibox SDK Ads][Trace][Interstitial] requestAds replace providers",{providers:this.providers}));try{this.isAdsReady?(R.log("[Jolibox SDK Ads][Trace][Interstitial] requestAds showAd directly",{providers:this.providers}),yield this.showAd()):(R.log("[Jolibox SDK Ads][Trace][Interstitial] requestAds not ready -> reinit only",{providers:this.providers}),yield this.reinit("frequencyCapped"))}catch(a){R.error("[Jolibox SDK Ads][Trace][Interstitial] requestAds error",{error:a,providers:this.providers}),this.destroy("notReady")}})),Br(this,"showAd",()=>g(this,null,function*(){var i,o;if(R.log("[Jolibox SDK Ads][Trace][Interstitial] showAd start",{hasAdsContext:!!this.adsContext,providers:this.providers}),!this.adsContext){this.destroy("error");return}let a=!1;(o=(i=this.adsContext).beforeAd)==null||o.call(i);let s=d=>{var u,p;a||(a=!0,R.log("[Jolibox SDK Ads][Trace][Interstitial] showAd terminal",{status:d,providers:this.providers}),(p=(u=this.adsContext)==null?void 0:u.afterAd)==null||p.call(u),this.reinit(d))},c={onAdShow:()=>{},onAdError:()=>{s("error")},onAdDismissed:()=>{s("dismissed")},onAdClosed:()=>{s("viewed")}},l=yield this.helper.showAdAsync({providers:this.providers,callbacks:c});R.log("[Jolibox SDK Ads][Trace][Interstitial] showAd showAdAsync result",{providers:this.providers,result:l}),l.code!=="SUCCESS"&&this.reinit("noAdPreloaded")})),this.providers=r,this.helper=new Ul(t),this.init()}};Xh=class{constructor(t,r){_a(this,"name","INTERNAL_NATIVE"),_a(this,"context",void 0),_a(this,"rewardAdManager",void 0),_a(this,"interstitialManager",void 0),_a(this,"initProviders",void 0),this.context=t,this.initProviders=r.providers;let n=this.getConfigsByTypes(["REWARD","REWARD_INTERSTITIAL","NATIVE"],r.providers),i=this.getConfigsByTypes(["INTERSTITIAL"],r.providers);R.log("[Jolibox SDK Ads][Trace][NativeProvider] constructor",{initProviders:r.providers.map(o=>({provider:o.provider,adUnitId:o.params.adUnitId,extra:o.params.extra})),rewardProviders:n,interstitialProviders:i}),n.length>0&&(this.rewardAdManager=new Yh(this.context,n)),i.length>0&&(this.interstitialManager=new Qh(this.context,i))}getConfigsByTypes(t,r,n){var i;let o=[],a=n?n.map(s=>r.find(c=>c.provider===s.provider)).filter(s=>!!s):r;return R.log("[Jolibox SDK Ads][Trace][NativeProvider] getConfigsByTypes",{adsTypes:t,adBreakServerProviders:(i=n==null?void 0:n.map(s=>s.provider))!=null?i:null,baseProviders:a.map(s=>({provider:s.provider,adUnitId:s.params.adUnitId}))}),a.forEach(s=>{t.forEach(c=>{let l="";c==="REWARD"&&(l=s.params.adUnitId.reward),c==="REWARD_INTERSTITIAL"&&(l=s.params.adUnitId.rewardInterstitial),c==="INTERSTITIAL"&&(l=s.params.adUnitId.interstitial),c==="NATIVE"&&(l=s.params.adUnitId.nativeAds),l&&o.push({provider:s.provider,params:{placementId:l,adsType:c,extra:s.params.extra}})})}),R.log("[Jolibox SDK Ads][Trace][NativeProvider] getConfigsByTypes result",{adsTypes:t,configs:o}),o}init(){return g(this,null,function*(){})}adConfig(t,r){}adBreak(t,r){var n,i,o;switch(R.log("[Jolibox SDK Ads][Trace][NativeProvider] adBreak start",{type:t.type,name:"name"in t?t.name:void 0,serverProviders:r.params.map(a=>a.provider),hasRewardManager:!!this.rewardAdManager,hasInterstitialManager:!!this.interstitialManager}),t.type){case"preroll":{(n=t.adBreakDone)==null||n.call(t,{breakType:"preroll",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"reward":{if(!this.rewardAdManager){(i=t.adBreakDone)==null||i.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:"noAdPreloaded"});return}let a=this.getConfigsByTypes(["REWARD","REWARD_INTERSTITIAL","NATIVE"],this.initProviders,r.params);R.log("[Jolibox SDK Ads][Trace][NativeProvider] reward orderedConfigs",{type:t.type,orderedConfigs:a}),this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:s=>{var c;(c=t.adBreakDone)==null||c.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:s})}},a);break}default:{let a=t;if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:a.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded"});return}let s=this.getConfigsByTypes(["INTERSTITIAL"],this.initProviders,r.params);R.log("[Jolibox SDK Ads][Trace][NativeProvider] interstitial orderedConfigs",{type:t.type,orderedConfigs:s}),this.interstitialManager.requestAds({beforeAd:a.beforeAd,afterAd:a.afterAd,onEnd:c=>{var l;(l=t.adBreakDone)==null||l.call(t,{breakName:a.name,breakType:t.type,breakFormat:"interstitial",breakStatus:c})}},s);break}}}},kh="jolibox-nb-proxy",l9=0;xl=()=>{try{if(window.parent&&window.parent!==window)return d9("GameSDK")}catch(e){}};Zh=class{constructor(){ji(this,"adsContext",null),ji(this,"init",()=>g(this,null,function*(){console.log("[JoliboxSDK] NewsBreak init");let t=xl();if(t)try{let r=yield t.createRewardAd({platform:"jolibox"});console.log("[JoliboxSDK] NewsBreak init createRewardAd result:",r)}catch(r){console.log("[JoliboxSDK] NewsBreak init createRewardAd error:",r)}})),ji(this,"destroy",t=>{var r,n;(n=(r=this.adsContext)==null?void 0:r.adBreakDone)==null||n.call(r,t),t!=="ignored"&&(this.adsContext=null)}),ji(this,"reinit",t=>g(this,null,function*(){console.log("[JoliboxSDK] NewsBreak reinit breakStatus:",t),this.destroy(t),yield this.init()})),ji(this,"requestAds",t=>g(this,null,function*(){if(console.log("[JoliboxSDK] NewsBreak newsbreak this.adsContext",this.adsContext),this.adsContext){this.destroy("ignored");return}this.adsContext=t;let r=xl();if(console.log("[JoliboxSDK] NewsBreak newsbreak sdk",r),!r){this.destroy("notReady");return}this.showAd()})),ji(this,"showAd",()=>{if(console.log("[JoliboxSDK] NewsBreak showAd"),!this.adsContext){this.destroy("error");return}this.adsContext.beforeReward(()=>g(this,null,function*(){var t,r,n,i,o,a,s,c,l,d,u,p,f,h;(r=(t=this.adsContext)==null?void 0:t.beforeAd)==null||r.call(t);let v=xl();if(!v){(i=(n=this.adsContext)==null?void 0:n.afterAd)==null||i.call(n),this.reinit("error");return}try{let b=yield v.showRewardAd();if(console.log("[JoliboxSDK] NewsBreak showRewardAd result:",b),!b.success){(a=(o=this.adsContext)==null?void 0:o.afterAd)==null||a.call(o),this.reinit("error");return}b.rewardGranted?((s=this.adsContext)==null||s.adViewed(),(l=(c=this.adsContext)==null?void 0:c.afterAd)==null||l.call(c),this.reinit("viewed")):((d=this.adsContext)==null||d.adDismissed(),(p=(u=this.adsContext)==null?void 0:u.afterAd)==null||p.call(u),this.reinit("dismissed"))}catch(b){console.error("[JoliboxSDK] NewsBreak showRewardAd failed:",b),(h=(f=this.adsContext)==null?void 0:f.afterAd)==null||h.call(f),this.reinit("error")}}))}),this.init()}};em=class{constructor(){nP(this,"name","NEWSBREAK"),nP(this,"rewardAdManager",void 0)}init(){return g(this,null,function*(){let t=xl();if(!t){console.warn("[JoliboxSDK] NewsBreak GameSDK is not available on window");return}t.onEnter(),this.rewardAdManager=new Zh})}adConfig(t,r){}adBreak(t,r){var n,i;if(t.type!=="reward"){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakFormat:"reward",breakStatus:"noAdPreloaded"});return}if(!this.rewardAdManager){(i=t.adBreakDone)==null||i.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:"noAdPreloaded"});return}this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:o=>{var a;(a=t.adBreakDone)==null||a.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:o})}})}};$i=class{constructor(t){if(zt(this,"context",void 0),zt(this,"contextInfo",void 0),zt(this,"providers",{}),zt(this,"channelPolicy",void 0),zt(this,"adsActionDetection",void 0),zt(this,"requestContext",void 0),zt(this,"adsRequest",void 0),zt(this,"initialized",!1),zt(this,"adsIsShowing",!1),zt(this,"lastAdBreak",void 0),zt(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Lh(this.context),this.adsActionDetection=new Dh(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new ql(t),this.requestContext=new Ca(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return g(this,null,function*(){var r;window.adsbygoogle=window.adsbygoogle||[],R.log("[Jolibox SDK Ads][Trace][AFG] init /api/ads/init request",{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode});let{data:n}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if(R.log("[Jolibox SDK Ads][Trace][AFG] init /api/ads/init response",{length:(r=n==null?void 0:n.length)!=null?r:null,data:n}),(n==null?void 0:n.length)>0){let i=n.filter(c=>c.isNative),o=n.filter(c=>!c.isNative),a={provider:"INTERNAL_NATIVE",params:{providers:i}},s=o.concat([a]);for(let c of s)switch(c.provider){case"GOOGLE_GPT":{let l=new Wh(this.context,c.params);yield l.init(),this.providers[c.provider]=l;break}case"ADSENSE":case"ADSENSE_ADMOB":{let l=new qh(this.context,c.params);yield l.init(),this.providers[c.provider]=l;break}case"OKSPIN":{let l=new Hh(this.context,c.params);yield l.init(),this.providers.OKSPIN=l;break}case"APPSROCKETS":{let l=new $h(this.context,c.params);yield l.init(),this.providers.APPSROCKETS=l;break}case"ADSENSE_BANNER_AS_AFG":{let l=new Vh(this.context,c.params);yield l.init(),this.providers.ADSENSE_BANNER_AS_AFG=l;break}case"INTERNAL_NATIVE":{let l=new Xh(this.context,c.params);yield l.init(),this.providers.INTERNAL_NATIVE=l;break}case"NEWSBREAK":{console.log("[JoliboxSDK] NewsBreak Provider",c);let l=new em;yield l.init(),this.providers.NEWSBREAK=l;break}}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return g(this,null,function*(){var r,n,i,o,a,s,c,l,d,u,p,f,h,v,b,y,_,A;let C=Date.now(),x=C-this.initializedTimeStamp;if(R.log("[Jolibox SDK Ads][Trace] adBreak:start",{type:t.type,name:t.type==="preroll"?void 0:t.name,initialized:this.initialized,adsIsShowing:this.adsIsShowing,diffToInitialized:x,lastAdBreakDiff:this.lastAdBreak?C-this.lastAdBreak:null}),x<3e3){R.log("[Jolibox SDK Ads][Trace] adBreak:blocked too soon",{type:t.type,diffToInitialized:x}),(r=t.adBreakDone)==null||r.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}if(this.lastAdBreak&&C-this.lastAdBreak<500){R.warn("[Jolibox SDK Ads][Trace] adBreak:blocked too frequently",{type:t.type,interval:C-this.lastAdBreak}),(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.lastAdBreak=C,this.adsIsShowing){R.warn("[Jolibox SDK Ads][Trace] adBreak:blocked ad is showing",{type:t.type}),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.initialized||(R.log("[Jolibox SDK Ads][Trace] adBreak:init begin",{type:t.type}),yield this.init(),R.log("[Jolibox SDK Ads][Trace] adBreak:init end",{type:t.type,providerKeys:Object.keys(this.providers)})),t.type!=="reward"){let k=this.channelPolicy.shouldBypassCallingInterstitial();if(R.log("[Jolibox SDK Ads][Trace] adBreak:channelPolicy",{type:t.type,shouldBypassCallingInterstitial:k}),!k){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}}if(!this.context.checkNetwork()&&!this.providers.NEWSBREAK){R.log("[Jolibox SDK Ads][Trace] adBreak:blocked network not ready",{type:t.type,hasNewsBreak:!!this.providers.NEWSBREAK}),(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{R.log("[Jolibox SDK Ads][Trace] adBreak:getAFGAdsInfo begin",{type:t.type});let k=yield this.adsRequest.getAFGAdsInfo(t.type),E=k==null?void 0:k.data,H=k==null?void 0:k.code;if(R.log("[Jolibox SDK Ads][Trace] adBreak:getAFGAdsInfo end",{type:t.type,code:H,length:(s=E==null?void 0:E.length)!=null?s:null,nativeCount:(c=E==null?void 0:E.filter(ae=>ae.isNative).length)!=null?c:null,data:E}),H==="BYPASS_ADS"){switch(R.log("[Jolibox SDK Ads][Trace] adBreak:bypass",{type:t.type}),t.type){case"preroll":{(l=t.adBreakDone)==null||l.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var ae,N,O,B;(ae=t.beforeAd)==null||ae.call(t),(N=t.adViewed)==null||N.call(t),(O=t.afterAd)==null||O.call(t),(B=t.adBreakDone)==null||B.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(d=t.beforeAd)==null||d.call(t),(u=t.afterAd)==null||u.call(t),(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!E||H!=="SUCCESS"){R.log("[Jolibox SDK Ads][Trace] adBreak:ads info invalid",{type:t.type,code:H,hasData:!!E}),(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{if(E.length===0){R.log("[Jolibox SDK Ads][Trace] adBreak:ads info empty",{type:t.type}),(h=t.adBreakDone)==null||h.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let ae=!0,N=null,O=new Nh(this.context);this.adsActionDetection.adBreakIsShowing=!0;let B=E.filter(le=>le.isNative).sort((le,Lt)=>le.seq-Lt.seq),X=E.filter(le=>!le.isNative).sort((le,Lt)=>le.seq-Lt.seq);R.log("[Jolibox SDK Ads][Trace] adBreak:provider options",{type:t.type,nativeOptions:B.map(le=>({provider:le.provider,seq:le.seq})),webOptions:X.map(le=>({provider:le.provider,seq:le.seq}))});let ie={seq:(b=(v=B[0])==null?void 0:v.seq)!=null?b:0,provider:"INTERNAL_NATIVE",params:B},Ke;for(B.length>0?Ke=[ie].concat(X):Ke=X,Ke=Ke.sort((le,Lt)=>le.seq-Lt.seq).map((le,Lt)=>O4(aP({},le),{seq:Lt})),R.log("[Jolibox SDK Ads][Trace] adBreak:final options",{type:t.type,finalOptions:Ke.map(le=>({provider:le.provider,seq:le.seq}))});Ke.length>0;){let le=Ke.shift(),Lt=this.providers[le.provider];if(R.log("[Jolibox SDK Ads][Trace] adBreak:provider loop",{type:t.type,optionProvider:le.provider,optionSeq:le.seq,providerFound:!!Lt}),Lt){let[Da,jm]=yield O.callAdBreakAndContinue(Lt,t,le,Jm=>{var Gm;this.adsIsShowing=Jm,(Gm=this.context.eventEmitter)==null||Gm.emit("isAdShowing",Jm)});ae=Da,N=jm,R.log("[Jolibox SDK Ads][Trace] adBreak:provider result",{type:t.type,provider:le.provider,shouldContinue:Da,placementInfo:jm})}else ae=!0,N={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!ae)break}ae&&N&&(R.log("[Jolibox SDK Ads][Trace] adBreak:trailing adBreakDone",{type:t.type,placementInfo:N}),(y=t.adBreakDone)==null||y.call(t,N))}}catch(k){R.log("[Jolibox SDK Ads][Trace] adBreak:error",{type:t.type,error:k}),(_=t.adBreakDone)==null||_.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{R.log("[Jolibox SDK Ads][Trace] adBreak:finally",{type:t.type,adsIsShowingBeforeReset:this.adsIsShowing}),t.type!=="reward"&&(this.adsRequest.cacheNextAFGAdsInfo(t.type),R.log("[Jolibox SDK Ads][Trace] adBreak:cacheNext scheduled",{type:t.type})),this.adsIsShowing=!1,(A=this.context.eventEmitter)==null||A.emit("isAdShowing",!1),this.adsActionDetection.adBreakIsShowing=!1}})}adUnit(t){console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.")}};tm=class{constructor(t){wl(this,"context",void 0),wl(this,"currentProvider",void 0),wl(this,"continueCallback",void 0),wl(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo()}get paramsToTrack(){var t,r;return{provider:(r=(t=this.currentProvider)==null?void 0:t.name)!=null?r:null}}wrapAdRequested(t){return()=>{this.context.track("CallAFVRequest",this.paramsToTrack),t==null||t()}}wrapAdLoaded(t){return r=>{this.context.track("CallAFVLoad",this.paramsToTrack),t==null||t(r)}}wrapAdPlaying(t){return r=>{var n,i;this.context.track("CallAFVPlaying",this.paramsToTrack),Rl()&&this.context.track("mmp_ad_impression",{ad_network:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:"",ad_format:"AFV",module:"drama",game_id:this.contextInfo.objectId}),t==null||t(r)}}wrapAdCompleted(t){return r=>{var n;this.context.track("CallAFVCompleted",this.paramsToTrack),t==null||t(r),(n=this.continueCallback)==null||n.call(this,[!1,null])}}wrapAdError(t){return r=>{var n;this.context.track("CallAFVError",this.paramsToTrack),(n=this.continueCallback)==null||n.call(this,[!0,r])}}callAdRequestAndContinue(t,r,n){return g(this,null,function*(){return this.currentProvider=t,new Promise(i=>{this.continueCallback=i;let o=Object.assign({},r);o.onAdRequested=this.wrapAdRequested(r.onAdRequested),o.onAdLoaded=this.wrapAdLoaded(r.onAdLoaded),o.onAdPlaying=this.wrapAdPlaying(r.onAdPlaying),o.onAdCompleted=this.wrapAdCompleted(r.onAdCompleted),o.onAdError=this.wrapAdError(r.onAdError),t.requestAd(o,n)})})}};ut=class e extends Error{constructor(t,r){super(t.message),xh(this,"name",void 0),xh(this,"type",void 0),xh(this,"raw",void 0),this.name="AFVRequestError",this.type=r,this.raw=t,this.stack=t.stack,this.message=t.message}static from(t,r){switch(r){case"GOOGLE_IMA_ERROR":return new e(t,r);case"JOLIBOX_IMA_ERROR":return new e(t,r)}}};rm=class{constructor(t,r,n){ge(this,"adsLoader",void 0),ge(this,"adDisplayContainer",void 0),ge(this,"isAdPlaying",!1),ge(this,"isContentFinished",!1),ge(this,"videoContent",void 0),ge(this,"adContainer",void 0),ge(this,"adsManager",void 0),ge(this,"intervalTimer",void 0),ge(this,"completed",!1),ge(this,"adTagUrl",void 0),ge(this,"notifyRequestAd",void 0),ge(this,"notifyLoaded",void 0),ge(this,"notifyPlayingAd",void 0),ge(this,"notifyCompleted",void 0),ge(this,"notifyError",void 0),ge(this,"destroy",()=>{var i,o,a,s,c,l,d,u,p,f,h;this.intervalTimer&&clearInterval(this.intervalTimer),(i=this.adsManager)==null||i.stop(),(o=this.adDisplayContainer)==null||o.destroy(),(a=this.adsLoader)==null||a.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded),(s=this.adsLoader)==null||s.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError),(c=this.adsManager)==null||c.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError),(l=this.adsManager)==null||l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPauseRequested),(d=this.adsManager)==null||d.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this.onContentResumeRequested),(u=this.adsManager)==null||u.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this.onAdEvent),(p=this.adsManager)==null||p.removeEventListener(window.google.ima.AdEvent.Type.LOADED,this.onAdEvent),(f=this.adsManager)==null||f.removeEventListener(window.google.ima.AdEvent.Type.STARTED,this.onAdEvent),(h=this.adsManager)==null||h.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE,this.onAdEvent)}),ge(this,"requestAds",(i,o)=>g(this,null,function*(){var a;this.createAdDisplayContainer(),this.notifyRequestAd=i.onAdRequested,this.notifyLoaded=i.onAdLoaded,this.notifyPlayingAd=i.onAdPlaying,this.notifyCompleted=i.onAdCompleted,this.notifyError=u=>{var p;return(p=i.onAdError)==null?void 0:p.call(i,ut.from(u,"GOOGLE_IMA_ERROR"))},this.adsLoader=new window.google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.addEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded,!1),this.adsLoader.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError,!1);let s=()=>{var u;this.isAdPlaying||(this.isContentFinished=!0,(u=this.adsLoader)==null||u.contentComplete())};this.videoContent.onended=s;let c=new window.google.ima.AdsRequest;c.vastLoadTimeout=1e4;let l="";Object.keys(o.params).forEach(u=>{let p=window.encodeURIComponent(o.params[u]);l+=`&${u}=${p}`});let d=`${this.adTagUrl}${l}`;c.adTagUrl=d,c.linearAdSlotWidth=640,c.linearAdSlotHeight=400,c.nonLinearAdSlotWidth=640,c.nonLinearAdSlotHeight=150,this.adsLoader.requestAds(c),(a=this.notifyRequestAd)==null||a.call(this)})),ge(this,"createAdDisplayContainer",()=>{this.adDisplayContainer=new window.google.ima.AdDisplayContainer(this.adContainer,this.videoContent)}),ge(this,"playAds",()=>{var i,o;this.videoContent.load(),this.adDisplayContainer.initialize(),this.completed=!1;try{(i=this.adsManager)==null||i.init(window.document.body.clientWidth,window.document.body.clientHeight,window.google.ima.ViewMode.NORMAL),(o=this.adsManager)==null||o.start()}catch(a){console.error("[JoliboxAFV] Google IMA Error: ",a),this.videoContent.play()}}),ge(this,"onAdsManagerLoaded",i=>{let o=new window.google.ima.AdsRenderingSettings;o.restoreCustomPlaybackStateOnAdBreakComplete=!0,o.loadVideoTimeout=1e4,this.adsManager=i.getAdsManager(this.videoContent,o),this.adsManager.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPauseRequested),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this.onContentResumeRequested),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this.onAdEvent),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.LOADED,this.onAdEvent),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.STARTED,this.onAdEvent),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.COMPLETE,this.onAdEvent),i.type==="adsManagerLoaded"&&this.playAds()}),ge(this,"onAdEvent",i=>{var o,a,s,c;let l=i.getAd();switch(i.type){case window.google.ima.AdEvent.Type.LOADED:l!=null&&l.isLinear()||this.videoContent.play(),(o=this.notifyLoaded)==null||o.call(this,i);break;case window.google.ima.AdEvent.Type.STARTED:l!=null&&l.isLinear()&&(this.intervalTimer=window.setInterval(function(){},300)),(a=this.notifyPlayingAd)==null||a.call(this,i);break;case window.google.ima.AdEvent.Type.COMPLETE:l!=null&&l.isLinear()&&clearInterval(this.intervalTimer),this.completed||(this.completed=!0,(s=this.notifyCompleted)==null||s.call(this,i));break;case window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED:l!=null&&l.isLinear()&&clearInterval(this.intervalTimer),this.completed||(this.completed=!0,(c=this.notifyCompleted)==null||c.call(this,i));break}}),ge(this,"onAdError",i=>{var o,a;(o=this.notifyError)==null||o.call(this,i.getError()),(a=this.adsManager)==null||a.destroy()}),ge(this,"onContentPauseRequested",()=>{this.isAdPlaying=!0,this.videoContent.pause()}),ge(this,"onContentResumeRequested",()=>{this.isAdPlaying=!1}),this.adTagUrl=t,this.videoContent=r,this.adContainer=n}},Tl=(e=>(e[e.ADS_REQUEST_NETWORK_ERROR=1012]="ADS_REQUEST_NETWORK_ERROR",e[e.ASSET_FALLBACK_FAILED=1021]="ASSET_FALLBACK_FAILED",e[e.AUTOPLAY_DISALLOWED=1205]="AUTOPLAY_DISALLOWED",e[e.COMPANION_AD_LOADING_FAILED=603]="COMPANION_AD_LOADING_FAILED",e[e.COMPANION_REQUIRED_ERROR=602]="COMPANION_REQUIRED_ERROR",e[e.FAILED_TO_REQUEST_ADS=1005]="FAILED_TO_REQUEST_ADS",e[e.INVALID_AD_TAG=1013]="INVALID_AD_TAG",e[e.INVALID_ADX_EXTENSION=1105]="INVALID_ADX_EXTENSION",e[e.INVALID_ARGUMENTS=1101]="INVALID_ARGUMENTS",e[e.NONLINEAR_DIMENSIONS_ERROR=501]="NONLINEAR_DIMENSIONS_ERROR",e[e.OVERLAY_AD_LOADING_FAILED=502]="OVERLAY_AD_LOADING_FAILED",e[e.OVERLAY_AD_PLAYING_FAILED=500]="OVERLAY_AD_PLAYING_FAILED",e[e.STREAM_INITIALIZATION_FAILED=1020]="STREAM_INITIALIZATION_FAILED",e[e.UNKNOWN_AD_RESPONSE=1010]="UNKNOWN_AD_RESPONSE",e[e.UNKNOWN_ERROR=900]="UNKNOWN_ERROR",e[e.UNSUPPORTED_LOCALE=1011]="UNSUPPORTED_LOCALE",e[e.VAST_ASSET_NOT_FOUND=1007]="VAST_ASSET_NOT_FOUND",e[e.VAST_EMPTY_RESPONSE=1009]="VAST_EMPTY_RESPONSE",e[e.VAST_LINEAR_ASSET_MISMATCH=403]="VAST_LINEAR_ASSET_MISMATCH",e[e.VAST_LOAD_TIMEOUT=301]="VAST_LOAD_TIMEOUT",e[e.VAST_MALFORMED_RESPONSE=100]="VAST_MALFORMED_RESPONSE",e[e.VAST_MEDIA_LOAD_TIMEOUT=402]="VAST_MEDIA_LOAD_TIMEOUT",e[e.VAST_NO_ADS_AFTER_WRAPPER=303]="VAST_NO_ADS_AFTER_WRAPPER",e[e.VAST_NONLINEAR_ASSET_MISMATCH=503]="VAST_NONLINEAR_ASSET_MISMATCH",e[e.VAST_PROBLEM_DISPLAYING_MEDIA_FILE=405]="VAST_PROBLEM_DISPLAYING_MEDIA_FILE",e[e.VAST_SCHEMA_VALIDATION_ERROR=101]="VAST_SCHEMA_VALIDATION_ERROR",e[e.VAST_TOO_MANY_REDIRECTS=302]="VAST_TOO_MANY_REDIRECTS",e[e.VAST_TRAFFICKING_ERROR=200]="VAST_TRAFFICKING_ERROR",e[e.VAST_UNEXPECTED_DURATION_ERROR=202]="VAST_UNEXPECTED_DURATION_ERROR",e[e.VAST_UNEXPECTED_LINEARITY=201]="VAST_UNEXPECTED_LINEARITY",e[e.VAST_UNSUPPORTED_VERSION=102]="VAST_UNSUPPORTED_VERSION",e[e.VAST_WRAPPER_ERROR=300]="VAST_WRAPPER_ERROR",e[e.VIDEO_PLAY_ERROR=400]="VIDEO_PLAY_ERROR",e[e.VPAID_ERROR=901]="VPAID_ERROR",e))(Tl||{}),A9=()=>{let e=$(!1),t=$(!1),r=$(null),n=yo(),i=yo();return{visible:e,canRetry:t,retry:r,videoRef:n,adContainerRef:i}},E9=dt`
869
+ `,MP=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:c,src:l}=t,[d,u]=Er(!1),p=m=>{var v,b,y,_;u(!1),c.value=!1,m==="dismiss"?(v=n.value)==null||v.call(n):m==="viewed"&&((b=i.value)==null||b.call(i)),(y=r.value)==null||y.call(r),(_=o.value)==null||_.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return Bi("appsrockets_ad_dismissed",()=>p("dismiss")),Bi("appsrockets_ad_rewarded",()=>p("viewed")),Bi("appsrockets_ad_completed",()=>p("viewed")),Bi("appsrockets_ad_skipped",()=>p("viewed")),Bi("appsrockets_ad_clicked",m=>{var v;return(v=s.value)==null?void 0:v.call(s,m)}),Bi("appsrockets_ad_loaded",()=>u(!0)),c.value?G("div",{className:BK,style:{display:d?"flex":"none"},children:c.value&&G("iframe",{src:l.value,onLoad:f,allowFullScreen:!0,allow:"autoplay",sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"})}):null};Km=class{constructor(t,r){Mr(this,"name","APPSROCKETS"),Mr(this,"initialized",!1),Mr(this,"initCompleter",null),Mr(this,"context",void 0),Mr(this,"adsOverlay",null),Mr(this,"adsIsShowing",!1),Mr(this,"lastUnDisplayedAdBreak",null),Mr(this,"state",UP()),Mr(this,"processUrl",(n,i)=>{var o;let a=this.context.getContextInfo(),s=new URL(n),c=new URLSearchParams(s.search);return c.has("joliSource")||c.set("joliSource",a.joliSource),c.get("osType")||c.set("osType",a.osType),c.get("runtimeType")||c.set("runtimeType",a.runtimeType),c.get("mode")||c.set("mode","AFG"),c.get("deviceId")||c.set("deviceId",a.deviceId),c.get("statusBarHeight")||c.set("statusBarHeight",((o=this.context.getWindowInfo().statusBarHeight)!=null?o:0).toString()),c.get("adsType")||c.set("adsType",i),s.search=c.toString(),s.toString()}),this.context=t}init(){return g(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),tr(G(MP,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){var n,i,o,a,s,c,l,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=f=>{var m,v;(v=(m=this.context).handleLinkClicked)==null||v.call(m,f)},p=t.type==="reward"?"REWARD":"INTERSTITIAL";switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let f=()=>{var b;this.adsIsShowing=!1,(b=t.afterAd)==null||b.call(t)},m=()=>{var b;this.adsIsShowing=!1,(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},v=()=>{var b;this.adsIsShowing=!1,(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};xe(()=>{this.adsIsShowing=!0,this.state.afterAd.value=f,this.state.adBreakDone.value=m,this.state.src.value=this.processUrl(r.params.url,p),this.state.adLinkClicked.value=u,this.state.adError.value=v,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((c=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||c.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(l=t.beforeAd)==null||l.call(t);let f=()=>{var k;this.adsIsShowing=!1,(k=t.afterAd)==null||k.call(t)},m={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},v=()=>{var k;this.adsIsShowing=!1,m.breakStatus="dismissed",(k=t.adDismissed)==null||k.call(t)},b=()=>{var k;this.adsIsShowing=!1,m.breakStatus="viewed",(k=t.adViewed)==null||k.call(t)},y=()=>{var k;this.adsIsShowing=!1,(k=t.adBreakDone)==null||k.call(t,m)},_=()=>{this.adsIsShowing=!1,m.breakStatus="noAdPreloaded"};xe(()=>{this.state.afterAd.value=f,this.state.adDismissed.value=v,this.state.adViewed.value=b,this.state.adBreakDone.value=y,this.state.adLinkClicked.value=u,this.state.adError.value=_});let A=()=>{var k;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(k=t.adBreakDone)==null||k.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,xe(()=>{this.state.src.value=this.processUrl(r.params.url,p),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,A);break}}}},FP=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};BP=class{constructor(e,t,r){st(this,"adUnit",void 0),st(this,"project",void 0),st(this,"keyValue",void 0),st(this,"adsContext",null),st(this,"rewardedSlot",null),st(this,"rewardedPayload",null),st(this,"readyEvent",null),st(this,"withCommand",function(){googletag.cmd.push(...arguments)}),st(this,"init",()=>{var n;this.rewardedSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.REWARDED),this.rewardedSlot&&(this.rewardedSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().addEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().addEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.keyValue&&(Object.keys(this.keyValue).forEach(i=>{var o;(o=this.rewardedSlot)==null||o.setTargeting(i,this.keyValue[i])}),Object.keys(this.keyValue).includes("project")||(n=this.rewardedSlot)==null||n.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),st(this,"destroy",(n,i)=>{var o,a;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,n,i),n!=="ignored"&&(this.adsContext=null)}),st(this,"reinit",(n,i)=>{this.destroy(n,i),this.init()}),st(this,"handleSlotReady",n=>{n.slot===this.rewardedSlot&&(this.readyEvent=n)}),st(this,"handleSlotClosed",n=>{var i,o;if(this.adsContext&&n.slot===this.rewardedSlot){let a=this.rewardedPayload?"viewed":"dismissed";a==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(o=(i=this.adsContext).afterAd)==null||o.call(i),this.withCommand(()=>{this.reinit(a,a==="dismissed"?{breakReason:"reward_not_completed",breakStage:"ad_terminal"}:{breakStage:"ad_terminal"})})}}),st(this,"handleSlotGranted",n=>{this.adsContext&&n.slot===this.rewardedSlot&&(this.rewardedPayload=n.payload)}),st(this,"handleSlotRenderEnded",n=>{n.slot===this.rewardedSlot&&n.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped",{breakReason:"gpt_reward_empty_render",breakStage:"provider_request"})})}),st(this,"requestAds",n=>{this.withCommand(()=>{if(this.adsContext){this.destroy("ignored");return}if(this.rewardedSlot||this.init(),this.adsContext=n,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var i,o,a;(o=(i=this.adsContext)==null?void 0:i.beforeAd)==null||o.call(i),(a=this.readyEvent)==null||a.makeRewardedVisible()});else{let i=o=>{o.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",i),this.readyEvent=o,this.adsContext.beforeReward(()=>{var a,s,c;(s=(a=this.adsContext)==null?void 0:a.beforeAd)==null||s.call(a),(c=this.readyEvent)==null||c.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",i),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",i))},500)}})}),this.adUnit=e,this.project=t,this.keyValue=r,FP(),this.withCommand(()=>{this.init()})}};Wm=class{constructor(t,r,n){var i=this;_t(this,"adUnit",void 0),_t(this,"project",void 0),_t(this,"keyValue",void 0),_t(this,"adsContext",null),_t(this,"gamingInterstitialSlot",null),_t(this,"readyEvent",null),_t(this,"isRetrying",!1),_t(this,"withCommand",function(){googletag.cmd.push(...arguments)}),_t(this,"init",()=>{var o;this.gamingInterstitialSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL),this.gamingInterstitialSlot&&(this.gamingInterstitialSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("gameManualInterstitialSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("gameManualInterstitialSlotClosed",this.handleSlotClosed),this.keyValue&&(Object.keys(this.keyValue).forEach(a=>{var s;(s=this.gamingInterstitialSlot)==null||s.setTargeting(a,this.keyValue[a])}),Object.keys(this.keyValue).includes("project")||(o=this.gamingInterstitialSlot)==null||o.setTargeting("project",this.project)),googletag.display(this.gamingInterstitialSlot))}),_t(this,"destroy",function(o){var a,s;let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,l=arguments.length>2?arguments[2]:void 0;c&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o,l),o!=="ignored"&&(i.adsContext=null)),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),_t(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=arguments.length>2?arguments[2]:void 0;i.destroy(o,a,s),i.init()}),_t(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),_t(this,"handleSlotClosed",o=>{var a,s;this.adsContext&&this.gamingInterstitialSlot===o.slot&&((s=(a=this.adsContext).afterAd)==null||s.call(a),this.withCommand(()=>{this.reinit("viewed")}))}),_t(this,"requestAds",o=>{this.withCommand(()=>{var a,s,c;if(this.adsContext){this.destroy("ignored");return}if(this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((c=(s=this.adsContext).onEnd)==null||c.call(s,"frequencyCapped",{breakReason:"gpt_interstitial_not_ready",breakStage:"provider_request"}),this.adsContext=null,this.isRetrying||(this.isRetrying=!0,window.setTimeout(()=>{this.readyEvent||this.withCommand(()=>{this.reinit("frequencyCapped",!1,{breakReason:"gpt_interstitial_not_ready",breakStage:"provider_request"})}),this.isRetrying=!1},31e3)))})}),FP(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};zm=class{constructor(t,r){Vn(this,"name","GOOGLE_GPT"),Vn(this,"context",void 0),Vn(this,"contextInfo",void 0),Vn(this,"initParams",void 0),Vn(this,"rewardAdManager",void 0),Vn(this,"interstitialManager",void 0),Vn(this,"insertScript",()=>{let n="jolibox-google-gpt",i=document.getElementById(n);i||(i=window.document.createElement("script"),i.id=n,i.async=!0,i.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",i.crossOrigin="anonymous",document.head.appendChild(i))}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,this.insertScript()}init(){return g(this,null,function*(){let t=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":this.initParams.rewardedSlot,r=this.contextInfo.testAdsMode?"/6355419/Travel/Europe/France/Paris":this.initParams.interstitialSlot,n=`minigame-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;t&&(this.rewardAdManager=new BP(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new Wm(r,n,this.initParams.keyValue))})}adConfig(t,r){}adBreak(t,r){var n,i,o;switch(t.type){case"preroll":{(n=t.adBreakDone)==null||n.call(t,{breakType:"preroll",breakFormat:"interstitial",breakStatus:"noAdPreloaded",breakReason:"unknown_no_ad_preloaded",breakStage:"provider_request"});break}case"reward":{if(!this.rewardAdManager){(i=t.adBreakDone)==null||i.call(t,{breakName:t.name,breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded",breakReason:"provider_missing",breakStage:"provider_request"});return}this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:(a,s)=>{var c;(c=t.adBreakDone)==null||c.call(t,Vi({breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:a},s))}});break}default:{if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded",breakReason:"provider_missing",breakStage:"provider_request"});return}this.interstitialManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,onEnd:(a,s)=>{var c;(c=t.adBreakDone)==null||c.call(t,Vi({breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:a},s))}});break}}}};Ym=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";km(this,"context",void 0),km(this,"placement","GAME"),km(this,"contextInfo",void 0),this.context=t,this.placement=r,this.contextInfo=this.context.getContextInfo()}getLocation(){let t=new URLSearchParams(window.location.search),r={};return t.forEach((n,i)=>{r[i]=n}),{name:this.placement==="GAME"?"GamePage":"DramaPage",params:r}}getDevice(){var t,r,n,i;return{platform:(t=this.contextInfo.platform)!=null?t:pP.WebSDK,os:this.contextInfo.osType+"_"+this.contextInfo.runtimeType,appVersion:"1.0.0",appId:(r=this.contextInfo.hostAppId)!=null?r:"1",model:(n=this.contextInfo.deviceModel)!=null?n:"UnknownModel",brand:(i=this.contextInfo.deviceBrand)!=null?i:"UnknownBrand",uuid:this.contextInfo.deviceId,jsSdkVersion:"1.0.0",extra:{}}}serialize(t,r){var n;let i={protocolVersion:"1.0.0",events:[{name:t,type:uP.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:dP.WebSDK};return e$(i)}},rP="__jolibox_ads_trace__key__",Cm=()=>{var e;try{return window.__jolibox_ads_trace__key__===!0||((e=window.localStorage)==null?void 0:e.getItem(rP))==="1"||new URLSearchParams(window.location.search).get(rP)==="1"}catch(t){return!1}},R={log:function(){Cm()&&console.log(...arguments)},warn:function(){Cm()&&console.warn(...arguments)},error:function(){Cm()&&console.error(...arguments)}};Ca=class{constructor(t){lt(this,"context",void 0),lt(this,"adsTrackSerializer",void 0),lt(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new Ym(this.context)}getRequestContextData(t){var r,n;this.contextInfo=this.context.getContextInfo();let{width:i,height:o}=this.context.getWindowInfo();return{report:JSON.stringify(this.adsTrackSerializer.serialize(t,{sessionId:this.contextInfo.sessionId,objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId,testAdsMode:this.contextInfo.testAdsMode})),osType:this.contextInfo.osType,runtimeType:this.contextInfo.runtimeType,sessionId:this.contextInfo.sessionId,deviceId:this.contextInfo.deviceId,adId:this.contextInfo.adId,deviceModel:(r=this.contextInfo.deviceModel)!=null?r:"UnknownModel",deviceBrand:(n=this.contextInfo.deviceBrand)!=null?n:"UnknownBrand",dimension:{width:i,height:o}}}getRequestBizParams(){return{objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId}}},Ul=class{constructor(t,r){var n=this;lt(this,"context",void 0),lt(this,"contextInfo",void 0),lt(this,"requestContext",void 0),lt(this,"adsInfoRequestSeq",0),lt(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),lt(this,"pendingAFVAdsInfo",Promise.resolve(null)),lt(this,"doFetchAdsInfo",i=>g(this,null,function*(){var o;let a=++this.adsInfoRequestSeq,s=Date.now(),c=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",l=[];switch(i){case"afv":{l=["REWARD_INTERSTITIAL","REWARD","NATIVE"];break}case"reward":{l=["REWARD_INTERSTITIAL","REWARD","NATIVE"];break}default:{l=["INTERSTITIAL"];break}}let d=i==="afv"?void 0:"cached";R.log("[Jolibox SDK Ads][Trace][AdsRequest] doFetchAdsInfo start",{requestId:a,type:i,eventName:c,adsTypes:l,name:d,contextData:this.requestContext.getRequestContextData(c),bizParams:this.requestContext.getRequestBizParams()});try{let{data:u,code:p}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(c),bizParams:this.requestContext.getRequestBizParams(),adsTypes:l,testAdsMode:this.contextInfo.testAdsMode,name:d}});return R.log("[Jolibox SDK Ads][Trace][AdsRequest] doFetchAdsInfo response",{requestId:a,type:i,code:p,duration:Date.now()-s,length:(o=u==null?void 0:u.length)!=null?o:null,data:u}),p==="SUCCESS"||p==="BYPASS_ADS"?{code:p,data:u}:null}catch(u){throw R.warn("[Jolibox SDK Ads][Trace][AdsRequest] doFetchAdsInfo error",{requestId:a,type:i,duration:Date.now()-s,error:u}),u}})),lt(this,"cacheRewardInfo",()=>{R.log("[Jolibox SDK Ads][Trace][AdsRequest] cacheRewardInfo scheduled"),this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),lt(this,"cacheInterstitialInfo",i=>{R.log("[Jolibox SDK Ads][Trace][AdsRequest] cacheInterstitialInfo scheduled",{type:i}),this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),lt(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),lt(this,"cacheNextAFGAdsInfo",i=>g(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),lt(this,"getAFGAdsInfo",i=>g(this,null,function*(){var o,a;R.log("[Jolibox SDK Ads][Trace][AdsRequest] getAFGAdsInfo await cache",{type:i,cacheKey:i==="reward"?"REWARD":"INTERSTITIAL"});let s=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return R.log("[Jolibox SDK Ads][Trace][AdsRequest] getAFGAdsInfo resolved",{type:i,code:s==null?void 0:s.code,length:(a=(o=s==null?void 0:s.data)==null?void 0:o.length)!=null?a:null}),i==="reward"&&(this.cacheNextAFGAdsInfo(i),R.log("[Jolibox SDK Ads][Trace][AdsRequest] getAFGAdsInfo cacheNext scheduled",{type:i})),s})),lt(this,"getAFVAdsInfo",function(){return g(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new Ca(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};r9=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(e)try{e(...r)}catch(i){console.error("[JoliboxSDK] Callback error:",i)}},Ml=class{constructor(t){this.context=t,ZK(this,"canIUseHelper",void 0),this.context=t;let{canIUseNative:r}=Ha(()=>this.context.getContextInfo().deviceInfo.nativeSDKVersionCode||1e6,()=>this.context.getContextInfo().deviceInfo.platform||"h5");this.canIUseHelper=r}getTraceContext(){let t=this.context.getContextInfo();return{platform:t.deviceInfo.platform,nativeSDKVersionCode:t.deviceInfo.nativeSDKVersionCode,objectId:t.objectId}}loadAdsAsync(t){return g(this,null,function*(){try{R.log("[Jolibox SDK Ads][Trace][NativeHelper] loadAdsAsync invoke",{context:this.getTraceContext(),providers:t.providers});let{errNo:r,errMsg:n}=yield q("loadAdsAsync",{params:{providers:t.providers}});return R.log("[Jolibox SDK Ads][Trace][NativeHelper] loadAdsAsync response",{context:this.getTraceContext(),providers:t.providers,errNo:r,errMsg:n}),r!==0||n.length>0?{code:"FAILURE",message:n||"Failed to load ads"}:{code:"SUCCESS",message:"Ads loaded successfully"}}catch(r){return R.error("[Jolibox SDK Ads][Trace][NativeHelper] loadAdsAsync error",{context:this.getTraceContext(),providers:t.providers,error:r}),{code:"FAILURE",message:`Failed to load ads: ${r instanceof Error?r.message:String(r)}`}}})}canIUse(){let t=this.getTraceContext(),r=Ol(),n=this.canIUseHelper("loadAdsAsync"),i=this.canIUseHelper("showAdAsync"),o=r&&n&&i;return R.log("[Jolibox SDK Ads][Trace][NativeHelper] canIUse",{context:t,nativeFlag:r,canLoad:n,canShow:i,result:o}),o}showAdAsync(t){return g(this,null,function*(){try{R.log("[Jolibox SDK Ads][Trace][NativeHelper] showAdAsync invoke",{context:this.getTraceContext(),providers:t.providers});let r=yield q("showAdAsync",{params:{providers:t.providers}});if(R.log("[Jolibox SDK Ads][Trace][NativeHelper] showAdAsync response",{context:this.getTraceContext(),providers:t.providers,result:r}),r.errNo!==0)return{code:"FAILURE",message:r.errMsg||"Failed to show ad"};let n=r.data.UUID;if(R.log("[Jolibox SDK Ads][Trace][NativeHelper] showAdAsync success",{context:this.getTraceContext(),providers:t.providers,uuid:n}),t.callbacks){let i=t.timeout!==void 0?t.timeout:-1,o=null,a=()=>{R.log("[Jolibox SDK Ads][Trace][NativeHelper] onAdsStateChange cleanup",{context:this.getTraceContext(),uuid:n}),hg("onAdsStateChange",s),o&&(clearTimeout(o),o=null)},s=c=>{var l;if(R.log("[Jolibox SDK Ads][Trace][NativeHelper] onAdsStateChange received",{context:this.getTraceContext(),uuid:n,event:c}),c.UUID!==n)return;let d=(l=t.callbacks)==null?void 0:l[c.event];d&&r9(d,c.data),["onAdClosed","onAdError","onAdDismissed"].includes(c.event)&&a()};Ie("onAdsStateChange",s),R.log("[Jolibox SDK Ads][Trace][NativeHelper] onAdsStateChange registered",{context:this.getTraceContext(),uuid:n,timeoutMs:i}),i>0&&(o=setTimeout(()=>{a(),console.warn(`[JoliboxSDK] Event listener for ad ${n} auto-cleaned after ${i}ms timeout`)},i))}return{code:"SUCCESS",message:"Ad shown successfully"}}catch(r){return R.error("[Jolibox SDK Ads][Trace][NativeHelper] showAdAsync error",{context:this.getTraceContext(),providers:t.providers,error:r}),{code:"FAILURE",message:`Failed to show ad: ${r instanceof Error?r.message:String(r)}`}}})}isAdsReadySync(t){try{let{errNo:r,data:n}=q("isAdsReadySync",{params:{providers:t.providers}});return r!==0||!n?(console.warn("[Jolibox SDK]isAdsReadySync returned an error or no data"),!1):!0}catch(r){return console.warn("[Jolibox SDK]isAdsReadySync invocation failed:",r),!1}}};Qm=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){Fr(this,"providers",void 0),Fr(this,"helper",void 0),Fr(this,"adsContext",null),Fr(this,"_isAdsReady",!1),Fr(this,"init",()=>g(this,null,function*(){let n=this.helper.canIUse();if(R.log("[Jolibox SDK Ads][Trace][Reward] init start",{canIUse:n,providers:this.providers}),n){let i=yield this.helper.loadAdsAsync({providers:this.providers});R.log("[Jolibox SDK Ads][Trace][Reward] init loadAdsAsync result",{providers:this.providers,result:i}),i.code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1}else this._isAdsReady=!1;R.log("[Jolibox SDK Ads][Trace][Reward] init end",{isAdsReady:this._isAdsReady,providers:this.providers})})),Fr(this,"destroy",(n,i)=>{var o,a;R.log("[Jolibox SDK Ads][Trace][Reward] destroy",{breakStatus:n,hasAdsContext:!!this.adsContext,isAdsReady:this._isAdsReady}),this._isAdsReady=!1,(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,n,i),n!=="ignored"&&(this.adsContext=null)}),Fr(this,"reinit",(n,i)=>g(this,null,function*(){R.log("[Jolibox SDK Ads][Trace][Reward] reinit start",{breakStatus:n,providers:this.providers}),this.destroy(n,i),yield this.init(),R.log("[Jolibox SDK Ads][Trace][Reward] reinit end",{breakStatus:n,isAdsReady:this._isAdsReady,providers:this.providers})})),Fr(this,"requestAds",(n,i)=>g(this,null,function*(){if(R.log("[Jolibox SDK Ads][Trace][Reward] requestAds start",{incomingProviders:i,currentProviders:this.providers,isAdsReady:this.isAdsReady,hasAdsContext:!!this.adsContext}),this.adsContext){R.log("[Jolibox SDK Ads][Trace][Reward] requestAds ignored because adsContext exists"),this.destroy("ignored");return}this.adsContext=n,i&&i.length>0&&(this.providers=i,R.log("[Jolibox SDK Ads][Trace][Reward] requestAds replace providers",{providers:this.providers}));try{this.isAdsReady?(R.log("[Jolibox SDK Ads][Trace][Reward] requestAds showAd directly",{providers:this.providers}),this.showAd()):(R.log("[Jolibox SDK Ads][Trace][Reward] requestAds not ready -> reinit only",{providers:this.providers}),yield this.reinit("frequencyCapped",{breakReason:"native_reward_not_ready",breakStage:"provider_request"}))}catch(o){R.error("[Jolibox SDK Ads][Trace][Reward] requestAds error",{error:o,providers:this.providers}),this.destroy("notReady")}})),Fr(this,"showAd",()=>{if(R.log("[Jolibox SDK Ads][Trace][Reward] showAd start",{hasAdsContext:!!this.adsContext,providers:this.providers}),!this.adsContext){this.destroy("error");return}let n=!1,i=!1;this.adsContext.beforeReward(()=>g(this,null,function*(){var o,a;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o);let s=d=>{var u,p,f;i||(i=!0,R.log("[Jolibox SDK Ads][Trace][Reward] showAd terminal",{status:d,rewarded:n,providers:this.providers}),d==="dismissed"&&((u=this.adsContext)==null||u.adDismissed()),(f=(p=this.adsContext)==null?void 0:p.afterAd)==null||f.call(p),this.reinit(d,d==="dismissed"?{breakReason:"reward_not_completed",breakStage:"ad_terminal"}:{breakStage:"ad_terminal"}))},c={onAdShow:()=>{},onAdError:()=>{s("error")},onAdRewarded:()=>{var d;n=!0,(d=this.adsContext)==null||d.adViewed()},onAdDismissed:()=>{s(n?"viewed":"dismissed")},onAdClosed:()=>{s(n?"viewed":"dismissed")}},l=yield this.helper.showAdAsync({providers:this.providers,callbacks:c});R.log("[Jolibox SDK Ads][Trace][Reward] showAd showAdAsync result",{providers:this.providers,result:l}),l.code!=="SUCCESS"&&this.reinit("noAdPreloaded",{breakReason:"native_show_failed",breakStage:"native_show"})}))}),this.providers=r,this.helper=new Ml(t),this.init()}};Xm=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){var n=this;Br(this,"providers",void 0),Br(this,"helper",void 0),Br(this,"adsContext",null),Br(this,"_isAdsReady",!1),Br(this,"init",()=>g(this,null,function*(){let i=this.helper.canIUse();if(R.log("[Jolibox SDK Ads][Trace][Interstitial] init start",{canIUse:i,providers:this.providers}),i){let o=yield this.helper.loadAdsAsync({providers:this.providers});R.log("[Jolibox SDK Ads][Trace][Interstitial] init loadAdsAsync result",{providers:this.providers,result:o}),o.code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1}else this._isAdsReady=!1;R.log("[Jolibox SDK Ads][Trace][Interstitial] init end",{isAdsReady:this._isAdsReady,providers:this.providers})})),Br(this,"destroy",function(i){var o,a;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,c=arguments.length>2?arguments[2]:void 0;R.log("[Jolibox SDK Ads][Trace][Interstitial] destroy",{endReason:i,clearContext:s,hasAdsContext:!!n.adsContext,isAdsReady:n._isAdsReady}),n._isAdsReady=!1,s&&((a=(o=n.adsContext)==null?void 0:o.onEnd)==null||a.call(o,i,c),i!=="ignored"&&(n.adsContext=null))}),Br(this,"reinit",function(o){return g(this,arguments,function*(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=arguments.length>2?arguments[2]:void 0;R.log("[Jolibox SDK Ads][Trace][Interstitial] reinit start",{endReason:i,clearContext:a,providers:n.providers}),n.destroy(i,a,s),yield n.init(),R.log("[Jolibox SDK Ads][Trace][Interstitial] reinit end",{endReason:i,clearContext:a,isAdsReady:n._isAdsReady,providers:n.providers})})}),Br(this,"requestAds",(i,o)=>g(this,null,function*(){if(R.log("[Jolibox SDK Ads][Trace][Interstitial] requestAds start",{incomingProviders:o,currentProviders:this.providers,isAdsReady:this.isAdsReady,hasAdsContext:!!this.adsContext}),this.adsContext){R.log("[Jolibox SDK Ads][Trace][Interstitial] requestAds ignored because adsContext exists"),this.destroy("ignored");return}this.adsContext=i,o&&o.length>0&&(this.providers=o,R.log("[Jolibox SDK Ads][Trace][Interstitial] requestAds replace providers",{providers:this.providers}));try{this.isAdsReady?(R.log("[Jolibox SDK Ads][Trace][Interstitial] requestAds showAd directly",{providers:this.providers}),yield this.showAd()):(R.log("[Jolibox SDK Ads][Trace][Interstitial] requestAds not ready -> reinit only",{providers:this.providers}),yield this.reinit("frequencyCapped",!0,{breakReason:"native_interstitial_not_ready",breakStage:"provider_request"}))}catch(a){R.error("[Jolibox SDK Ads][Trace][Interstitial] requestAds error",{error:a,providers:this.providers}),this.destroy("notReady")}})),Br(this,"showAd",()=>g(this,null,function*(){var i,o;if(R.log("[Jolibox SDK Ads][Trace][Interstitial] showAd start",{hasAdsContext:!!this.adsContext,providers:this.providers}),!this.adsContext){this.destroy("error");return}let a=!1;(o=(i=this.adsContext).beforeAd)==null||o.call(i);let s=d=>{var u,p;a||(a=!0,R.log("[Jolibox SDK Ads][Trace][Interstitial] showAd terminal",{status:d,providers:this.providers}),(p=(u=this.adsContext)==null?void 0:u.afterAd)==null||p.call(u),this.reinit(d,!0,d==="dismissed"?{breakReason:"interstitial_dismissed",breakStage:"ad_terminal"}:{breakStage:"ad_terminal"}))},c={onAdShow:()=>{},onAdError:()=>{s("error")},onAdDismissed:()=>{s("dismissed")},onAdClosed:()=>{s("viewed")}},l=yield this.helper.showAdAsync({providers:this.providers,callbacks:c});R.log("[Jolibox SDK Ads][Trace][Interstitial] showAd showAdAsync result",{providers:this.providers,result:l}),l.code!=="SUCCESS"&&this.reinit("noAdPreloaded",!0,{breakReason:"native_show_failed",breakStage:"native_show"})})),this.providers=r,this.helper=new Ml(t),this.init()}};Zm=class{constructor(t,r){wa(this,"name","INTERNAL_NATIVE"),wa(this,"context",void 0),wa(this,"rewardAdManager",void 0),wa(this,"interstitialManager",void 0),wa(this,"initProviders",void 0),this.context=t,this.initProviders=r.providers;let n=this.getConfigsByTypes(["REWARD","REWARD_INTERSTITIAL","NATIVE"],r.providers),i=this.getConfigsByTypes(["INTERSTITIAL"],r.providers);R.log("[Jolibox SDK Ads][Trace][NativeProvider] constructor",{initProviders:r.providers.map(o=>({provider:o.provider,adUnitId:o.params.adUnitId,extra:o.params.extra})),rewardProviders:n,interstitialProviders:i}),n.length>0&&(this.rewardAdManager=new Qm(this.context,n)),i.length>0&&(this.interstitialManager=new Xm(this.context,i))}getConfigsByTypes(t,r,n){var i;let o=[],a=n?n.map(s=>r.find(c=>c.provider===s.provider)).filter(s=>!!s):r;return R.log("[Jolibox SDK Ads][Trace][NativeProvider] getConfigsByTypes",{adsTypes:t,adBreakServerProviders:(i=n==null?void 0:n.map(s=>s.provider))!=null?i:null,baseProviders:a.map(s=>({provider:s.provider,adUnitId:s.params.adUnitId}))}),a.forEach(s=>{t.forEach(c=>{let l="";c==="REWARD"&&(l=s.params.adUnitId.reward),c==="REWARD_INTERSTITIAL"&&(l=s.params.adUnitId.rewardInterstitial),c==="INTERSTITIAL"&&(l=s.params.adUnitId.interstitial),c==="NATIVE"&&(l=s.params.adUnitId.nativeAds),l&&o.push({provider:s.provider,params:{placementId:l,adsType:c,extra:s.params.extra}})})}),R.log("[Jolibox SDK Ads][Trace][NativeProvider] getConfigsByTypes result",{adsTypes:t,configs:o}),o}init(){return g(this,null,function*(){})}adConfig(t,r){}adBreak(t,r){var n,i,o;switch(R.log("[Jolibox SDK Ads][Trace][NativeProvider] adBreak start",{type:t.type,name:"name"in t?t.name:void 0,serverProviders:r.params.map(a=>a.provider),hasRewardManager:!!this.rewardAdManager,hasInterstitialManager:!!this.interstitialManager}),t.type){case"preroll":{(n=t.adBreakDone)==null||n.call(t,{breakType:"preroll",breakFormat:"interstitial",breakStatus:"noAdPreloaded",breakReason:"native_preroll_not_supported",breakStage:"provider_request"});break}case"reward":{if(!this.rewardAdManager){(i=t.adBreakDone)==null||i.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:"noAdPreloaded",breakReason:"native_manager_missing",breakStage:"provider_request"});return}let a=this.getConfigsByTypes(["REWARD","REWARD_INTERSTITIAL","NATIVE"],this.initProviders,r.params);R.log("[Jolibox SDK Ads][Trace][NativeProvider] reward orderedConfigs",{type:t.type,orderedConfigs:a}),this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:(s,c)=>{var l;(l=t.adBreakDone)==null||l.call(t,Vi({breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:s},c))}},a);break}default:{let a=t;if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:a.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded",breakReason:"native_manager_missing",breakStage:"provider_request"});return}let s=this.getConfigsByTypes(["INTERSTITIAL"],this.initProviders,r.params);R.log("[Jolibox SDK Ads][Trace][NativeProvider] interstitial orderedConfigs",{type:t.type,orderedConfigs:s}),this.interstitialManager.requestAds({beforeAd:a.beforeAd,afterAd:a.afterAd,onEnd:(c,l)=>{var d;(d=t.adBreakDone)==null||d.call(t,Vi({breakName:a.name,breakType:t.type,breakFormat:"interstitial",breakStatus:c},l))}},s);break}}}},xm="jolibox-nb-proxy",l9=0;Tl=()=>{try{if(window.parent&&window.parent!==window)return d9("GameSDK")}catch(e){}};eh=class{constructor(){ji(this,"adsContext",null),ji(this,"init",()=>g(this,null,function*(){console.log("[JoliboxSDK] NewsBreak init");let t=Tl();if(t)try{let r=yield t.createRewardAd({platform:"jolibox"});console.log("[JoliboxSDK] NewsBreak init createRewardAd result:",r)}catch(r){console.log("[JoliboxSDK] NewsBreak init createRewardAd error:",r)}})),ji(this,"destroy",t=>{var r,n;(n=(r=this.adsContext)==null?void 0:r.adBreakDone)==null||n.call(r,t),t!=="ignored"&&(this.adsContext=null)}),ji(this,"reinit",t=>g(this,null,function*(){console.log("[JoliboxSDK] NewsBreak reinit breakStatus:",t),this.destroy(t),yield this.init()})),ji(this,"requestAds",t=>g(this,null,function*(){if(console.log("[JoliboxSDK] NewsBreak newsbreak this.adsContext",this.adsContext),this.adsContext){this.destroy("ignored");return}this.adsContext=t;let r=Tl();if(console.log("[JoliboxSDK] NewsBreak newsbreak sdk",r),!r){this.destroy("notReady");return}this.showAd()})),ji(this,"showAd",()=>{if(console.log("[JoliboxSDK] NewsBreak showAd"),!this.adsContext){this.destroy("error");return}this.adsContext.beforeReward(()=>g(this,null,function*(){var t,r,n,i,o,a,s,c,l,d,u,p,f,m;(r=(t=this.adsContext)==null?void 0:t.beforeAd)==null||r.call(t);let v=Tl();if(!v){(i=(n=this.adsContext)==null?void 0:n.afterAd)==null||i.call(n),this.reinit("error");return}try{let b=yield v.showRewardAd();if(console.log("[JoliboxSDK] NewsBreak showRewardAd result:",b),!b.success){(a=(o=this.adsContext)==null?void 0:o.afterAd)==null||a.call(o),this.reinit("error");return}b.rewardGranted?((s=this.adsContext)==null||s.adViewed(),(l=(c=this.adsContext)==null?void 0:c.afterAd)==null||l.call(c),this.reinit("viewed")):((d=this.adsContext)==null||d.adDismissed(),(p=(u=this.adsContext)==null?void 0:u.afterAd)==null||p.call(u),this.reinit("dismissed"))}catch(b){console.error("[JoliboxSDK] NewsBreak showRewardAd failed:",b),(m=(f=this.adsContext)==null?void 0:f.afterAd)==null||m.call(f),this.reinit("error")}}))}),this.init()}};th=class{constructor(){iP(this,"name","NEWSBREAK"),iP(this,"rewardAdManager",void 0)}init(){return g(this,null,function*(){let t=Tl();if(!t){console.warn("[JoliboxSDK] NewsBreak GameSDK is not available on window");return}t.onEnter(),this.rewardAdManager=new eh})}adConfig(t,r){}adBreak(t,r){var n,i;if(t.type!=="reward"){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakFormat:"reward",breakStatus:"noAdPreloaded",breakReason:"provider_missing",breakStage:"provider_request"});return}if(!this.rewardAdManager){(i=t.adBreakDone)==null||i.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:"noAdPreloaded",breakReason:"provider_missing",breakStage:"provider_request"});return}this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:o=>{var a;(a=t.adBreakDone)==null||a.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:o,breakReason:o==="dismissed"?"reward_not_completed":void 0,breakStage:o==="dismissed"?"ad_terminal":void 0})}})}};Ki=class{constructor(t){if(zt(this,"context",void 0),zt(this,"contextInfo",void 0),zt(this,"providers",{}),zt(this,"channelPolicy",void 0),zt(this,"adsActionDetection",void 0),zt(this,"requestContext",void 0),zt(this,"adsRequest",void 0),zt(this,"initialized",!1),zt(this,"adsIsShowing",!1),zt(this,"lastAdBreak",void 0),zt(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new qm(this.context),this.adsActionDetection=new Lm(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new Ul(t),this.requestContext=new Ca(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return g(this,null,function*(){var r;window.adsbygoogle=window.adsbygoogle||[],R.log("[Jolibox SDK Ads][Trace][AFG] init /api/ads/init request",{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode});let{data:n}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if(R.log("[Jolibox SDK Ads][Trace][AFG] init /api/ads/init response",{length:(r=n==null?void 0:n.length)!=null?r:null,data:n}),(n==null?void 0:n.length)>0){let i=n.filter(c=>c.isNative),o=n.filter(c=>!c.isNative),a={provider:"INTERNAL_NATIVE",params:{providers:i}},s=o.concat([a]);for(let c of s)switch(c.provider){case"GOOGLE_GPT":{let l=new zm(this.context,c.params);yield l.init(),this.providers[c.provider]=l;break}case"ADSENSE":case"ADSENSE_ADMOB":{let l=new Um(this.context,c.params);yield l.init(),this.providers[c.provider]=l;break}case"OKSPIN":{let l=new Vm(this.context,c.params);yield l.init(),this.providers.OKSPIN=l;break}case"APPSROCKETS":{let l=new Km(this.context,c.params);yield l.init(),this.providers.APPSROCKETS=l;break}case"ADSENSE_BANNER_AS_AFG":{let l=new $m(this.context,c.params);yield l.init(),this.providers.ADSENSE_BANNER_AS_AFG=l;break}case"INTERNAL_NATIVE":{let l=new Zm(this.context,c.params);yield l.init(),this.providers.INTERNAL_NATIVE=l;break}case"NEWSBREAK":{console.log("[JoliboxSDK] NewsBreak Provider",c);let l=new th;yield l.init(),this.providers.NEWSBREAK=l;break}}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return g(this,null,function*(){var r,n,i,o,a,s,c,l,d,u,p,f,m,v,b,y,_,A;let k=Date.now(),x=k-this.initializedTimeStamp;if(R.log("[Jolibox SDK Ads][Trace] adBreak:start",{type:t.type,name:t.type==="preroll"?void 0:t.name,initialized:this.initialized,adsIsShowing:this.adsIsShowing,diffToInitialized:x,lastAdBreakDiff:this.lastAdBreak?k-this.lastAdBreak:null}),x<3e3){R.log("[Jolibox SDK Ads][Trace] adBreak:blocked too soon",{type:t.type,diffToInitialized:x}),(r=t.adBreakDone)==null||r.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded",breakReason:"called_too_soon_after_init",breakStage:"before_ads_info"});return}if(this.lastAdBreak&&k-this.lastAdBreak<500){R.warn("[Jolibox SDK Ads][Trace] adBreak:blocked too frequently",{type:t.type,interval:k-this.lastAdBreak}),(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped",breakReason:"too_frequently_500ms",breakStage:"before_provider"});return}if(this.lastAdBreak=k,this.adsIsShowing){R.warn("[Jolibox SDK Ads][Trace] adBreak:blocked ad is showing",{type:t.type}),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped",breakReason:"ad_already_showing",breakStage:"before_provider"});return}if(this.initialized||(R.log("[Jolibox SDK Ads][Trace] adBreak:init begin",{type:t.type}),yield this.init(),R.log("[Jolibox SDK Ads][Trace] adBreak:init end",{type:t.type,providerKeys:Object.keys(this.providers)})),t.type!=="reward"){let C=this.channelPolicy.shouldBypassCallingInterstitial();if(R.log("[Jolibox SDK Ads][Trace] adBreak:channelPolicy",{type:t.type,shouldBypassCallingInterstitial:C}),!C){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}}if(!this.context.checkNetwork()&&!this.providers.NEWSBREAK){R.log("[Jolibox SDK Ads][Trace] adBreak:blocked network not ready",{type:t.type,hasNewsBreak:!!this.providers.NEWSBREAK}),(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded",breakReason:"network_not_ready",breakStage:"before_ads_info"});return}try{R.log("[Jolibox SDK Ads][Trace] adBreak:getAFGAdsInfo begin",{type:t.type});let C=yield this.adsRequest.getAFGAdsInfo(t.type),E=C==null?void 0:C.data,H=C==null?void 0:C.code;if(R.log("[Jolibox SDK Ads][Trace] adBreak:getAFGAdsInfo end",{type:t.type,code:H,length:(s=E==null?void 0:E.length)!=null?s:null,nativeCount:(c=E==null?void 0:E.filter(ae=>ae.isNative).length)!=null?c:null,data:E}),H==="BYPASS_ADS"){switch(R.log("[Jolibox SDK Ads][Trace] adBreak:bypass",{type:t.type}),t.type){case"preroll":{(l=t.adBreakDone)==null||l.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var ae,N,O,B;(ae=t.beforeAd)==null||ae.call(t),(N=t.adViewed)==null||N.call(t),(O=t.afterAd)==null||O.call(t),(B=t.adBreakDone)==null||B.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(d=t.beforeAd)==null||d.call(t),(u=t.afterAd)==null||u.call(t),(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!E||H!=="SUCCESS"){R.log("[Jolibox SDK Ads][Trace] adBreak:ads info invalid",{type:t.type,code:H,hasData:!!E}),(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded",breakReason:"ads_info_invalid_code",breakStage:"ads_info"});return}else{if(E.length===0){R.log("[Jolibox SDK Ads][Trace] adBreak:ads info empty",{type:t.type}),(m=t.adBreakDone)==null||m.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded",breakReason:"ads_info_empty",breakStage:"ads_info"});return}let ae=!0,N=null,O=new Dm(this.context);this.adsActionDetection.adBreakIsShowing=!0;let B=E.filter(le=>le.isNative).sort((le,Lt)=>le.seq-Lt.seq),X=E.filter(le=>!le.isNative).sort((le,Lt)=>le.seq-Lt.seq);R.log("[Jolibox SDK Ads][Trace] adBreak:provider options",{type:t.type,nativeOptions:B.map(le=>({provider:le.provider,seq:le.seq})),webOptions:X.map(le=>({provider:le.provider,seq:le.seq}))});let ie={seq:(b=(v=B[0])==null?void 0:v.seq)!=null?b:0,provider:"INTERNAL_NATIVE",params:B},Ke;for(B.length>0?Ke=[ie].concat(X):Ke=X,Ke=Ke.sort((le,Lt)=>le.seq-Lt.seq).map((le,Lt)=>O4(Vi({},le),{seq:Lt})),R.log("[Jolibox SDK Ads][Trace] adBreak:final options",{type:t.type,finalOptions:Ke.map(le=>({provider:le.provider,seq:le.seq}))});Ke.length>0;){let le=Ke.shift(),Lt=this.providers[le.provider];if(R.log("[Jolibox SDK Ads][Trace] adBreak:provider loop",{type:t.type,optionProvider:le.provider,optionSeq:le.seq,providerFound:!!Lt}),Lt){let[La,Jh]=yield O.callAdBreakAndContinue(Lt,t,le,Gh=>{var Hh;this.adsIsShowing=Gh,(Hh=this.context.eventEmitter)==null||Hh.emit("isAdShowing",Gh)});ae=La,N=Jh,R.log("[Jolibox SDK Ads][Trace] adBreak:provider result",{type:t.type,provider:le.provider,shouldContinue:La,placementInfo:Jh})}else ae=!0,N={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady",breakReason:"provider_missing",breakStage:"before_provider"};if(!ae)break}ae&&N&&(R.log("[Jolibox SDK Ads][Trace] adBreak:trailing adBreakDone",{type:t.type,placementInfo:N}),(y=t.adBreakDone)==null||y.call(t,N))}}catch(C){R.log("[Jolibox SDK Ads][Trace] adBreak:error",{type:t.type,error:C}),(_=t.adBreakDone)==null||_.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded",breakReason:"ads_info_request_failed",breakStage:"ads_info"})}finally{R.log("[Jolibox SDK Ads][Trace] adBreak:finally",{type:t.type,adsIsShowingBeforeReset:this.adsIsShowing}),t.type!=="reward"&&(this.adsRequest.cacheNextAFGAdsInfo(t.type),R.log("[Jolibox SDK Ads][Trace] adBreak:cacheNext scheduled",{type:t.type})),this.adsIsShowing=!1,(A=this.context.eventEmitter)==null||A.emit("isAdShowing",!1),this.adsActionDetection.adBreakIsShowing=!1}})}adUnit(t){console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.")}};rh=class{constructor(t){Sl(this,"context",void 0),Sl(this,"currentProvider",void 0),Sl(this,"continueCallback",void 0),Sl(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo()}get paramsToTrack(){var t,r;return{provider:(r=(t=this.currentProvider)==null?void 0:t.name)!=null?r:null}}wrapAdRequested(t){return()=>{this.context.track("CallAFVRequest",this.paramsToTrack),t==null||t()}}wrapAdLoaded(t){return r=>{this.context.track("CallAFVLoad",this.paramsToTrack),t==null||t(r)}}wrapAdPlaying(t){return r=>{var n,i;this.context.track("CallAFVPlaying",this.paramsToTrack),Ol()&&this.context.track("mmp_ad_impression",{ad_network:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:"",ad_format:"AFV",module:"drama",game_id:this.contextInfo.objectId}),t==null||t(r)}}wrapAdCompleted(t){return r=>{var n;this.context.track("CallAFVCompleted",this.paramsToTrack),t==null||t(r),(n=this.continueCallback)==null||n.call(this,[!1,null])}}wrapAdError(t){return r=>{var n;this.context.track("CallAFVError",this.paramsToTrack),(n=this.continueCallback)==null||n.call(this,[!0,r])}}callAdRequestAndContinue(t,r,n){return g(this,null,function*(){return this.currentProvider=t,new Promise(i=>{this.continueCallback=i;let o=Object.assign({},r);o.onAdRequested=this.wrapAdRequested(r.onAdRequested),o.onAdLoaded=this.wrapAdLoaded(r.onAdLoaded),o.onAdPlaying=this.wrapAdPlaying(r.onAdPlaying),o.onAdCompleted=this.wrapAdCompleted(r.onAdCompleted),o.onAdError=this.wrapAdError(r.onAdError),t.requestAd(o,n)})})}};ut=class e extends Error{constructor(t,r){super(t.message),Tm(this,"name",void 0),Tm(this,"type",void 0),Tm(this,"raw",void 0),this.name="AFVRequestError",this.type=r,this.raw=t,this.stack=t.stack,this.message=t.message}static from(t,r){switch(r){case"GOOGLE_IMA_ERROR":return new e(t,r);case"JOLIBOX_IMA_ERROR":return new e(t,r)}}};nh=class{constructor(t,r,n){ge(this,"adsLoader",void 0),ge(this,"adDisplayContainer",void 0),ge(this,"isAdPlaying",!1),ge(this,"isContentFinished",!1),ge(this,"videoContent",void 0),ge(this,"adContainer",void 0),ge(this,"adsManager",void 0),ge(this,"intervalTimer",void 0),ge(this,"completed",!1),ge(this,"adTagUrl",void 0),ge(this,"notifyRequestAd",void 0),ge(this,"notifyLoaded",void 0),ge(this,"notifyPlayingAd",void 0),ge(this,"notifyCompleted",void 0),ge(this,"notifyError",void 0),ge(this,"destroy",()=>{var i,o,a,s,c,l,d,u,p,f,m;this.intervalTimer&&clearInterval(this.intervalTimer),(i=this.adsManager)==null||i.stop(),(o=this.adDisplayContainer)==null||o.destroy(),(a=this.adsLoader)==null||a.removeEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded),(s=this.adsLoader)==null||s.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError),(c=this.adsManager)==null||c.removeEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError),(l=this.adsManager)==null||l.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPauseRequested),(d=this.adsManager)==null||d.removeEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this.onContentResumeRequested),(u=this.adsManager)==null||u.removeEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this.onAdEvent),(p=this.adsManager)==null||p.removeEventListener(window.google.ima.AdEvent.Type.LOADED,this.onAdEvent),(f=this.adsManager)==null||f.removeEventListener(window.google.ima.AdEvent.Type.STARTED,this.onAdEvent),(m=this.adsManager)==null||m.removeEventListener(window.google.ima.AdEvent.Type.COMPLETE,this.onAdEvent)}),ge(this,"requestAds",(i,o)=>g(this,null,function*(){var a;this.createAdDisplayContainer(),this.notifyRequestAd=i.onAdRequested,this.notifyLoaded=i.onAdLoaded,this.notifyPlayingAd=i.onAdPlaying,this.notifyCompleted=i.onAdCompleted,this.notifyError=u=>{var p;return(p=i.onAdError)==null?void 0:p.call(i,ut.from(u,"GOOGLE_IMA_ERROR"))},this.adsLoader=new window.google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.addEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.onAdsManagerLoaded,!1),this.adsLoader.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError,!1);let s=()=>{var u;this.isAdPlaying||(this.isContentFinished=!0,(u=this.adsLoader)==null||u.contentComplete())};this.videoContent.onended=s;let c=new window.google.ima.AdsRequest;c.vastLoadTimeout=1e4;let l="";Object.keys(o.params).forEach(u=>{let p=window.encodeURIComponent(o.params[u]);l+=`&${u}=${p}`});let d=`${this.adTagUrl}${l}`;c.adTagUrl=d,c.linearAdSlotWidth=640,c.linearAdSlotHeight=400,c.nonLinearAdSlotWidth=640,c.nonLinearAdSlotHeight=150,this.adsLoader.requestAds(c),(a=this.notifyRequestAd)==null||a.call(this)})),ge(this,"createAdDisplayContainer",()=>{this.adDisplayContainer=new window.google.ima.AdDisplayContainer(this.adContainer,this.videoContent)}),ge(this,"playAds",()=>{var i,o;this.videoContent.load(),this.adDisplayContainer.initialize(),this.completed=!1;try{(i=this.adsManager)==null||i.init(window.document.body.clientWidth,window.document.body.clientHeight,window.google.ima.ViewMode.NORMAL),(o=this.adsManager)==null||o.start()}catch(a){console.error("[JoliboxAFV] Google IMA Error: ",a),this.videoContent.play()}}),ge(this,"onAdsManagerLoaded",i=>{let o=new window.google.ima.AdsRenderingSettings;o.restoreCustomPlaybackStateOnAdBreakComplete=!0,o.loadVideoTimeout=1e4,this.adsManager=i.getAdsManager(this.videoContent,o),this.adsManager.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,this.onAdError),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this.onContentPauseRequested),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this.onContentResumeRequested),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this.onAdEvent),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.LOADED,this.onAdEvent),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.STARTED,this.onAdEvent),this.adsManager.addEventListener(window.google.ima.AdEvent.Type.COMPLETE,this.onAdEvent),i.type==="adsManagerLoaded"&&this.playAds()}),ge(this,"onAdEvent",i=>{var o,a,s,c;let l=i.getAd();switch(i.type){case window.google.ima.AdEvent.Type.LOADED:l!=null&&l.isLinear()||this.videoContent.play(),(o=this.notifyLoaded)==null||o.call(this,i);break;case window.google.ima.AdEvent.Type.STARTED:l!=null&&l.isLinear()&&(this.intervalTimer=window.setInterval(function(){},300)),(a=this.notifyPlayingAd)==null||a.call(this,i);break;case window.google.ima.AdEvent.Type.COMPLETE:l!=null&&l.isLinear()&&clearInterval(this.intervalTimer),this.completed||(this.completed=!0,(s=this.notifyCompleted)==null||s.call(this,i));break;case window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED:l!=null&&l.isLinear()&&clearInterval(this.intervalTimer),this.completed||(this.completed=!0,(c=this.notifyCompleted)==null||c.call(this,i));break}}),ge(this,"onAdError",i=>{var o,a;(o=this.notifyError)==null||o.call(this,i.getError()),(a=this.adsManager)==null||a.destroy()}),ge(this,"onContentPauseRequested",()=>{this.isAdPlaying=!0,this.videoContent.pause()}),ge(this,"onContentResumeRequested",()=>{this.isAdPlaying=!1}),this.adTagUrl=t,this.videoContent=r,this.adContainer=n}},Pl=(e=>(e[e.ADS_REQUEST_NETWORK_ERROR=1012]="ADS_REQUEST_NETWORK_ERROR",e[e.ASSET_FALLBACK_FAILED=1021]="ASSET_FALLBACK_FAILED",e[e.AUTOPLAY_DISALLOWED=1205]="AUTOPLAY_DISALLOWED",e[e.COMPANION_AD_LOADING_FAILED=603]="COMPANION_AD_LOADING_FAILED",e[e.COMPANION_REQUIRED_ERROR=602]="COMPANION_REQUIRED_ERROR",e[e.FAILED_TO_REQUEST_ADS=1005]="FAILED_TO_REQUEST_ADS",e[e.INVALID_AD_TAG=1013]="INVALID_AD_TAG",e[e.INVALID_ADX_EXTENSION=1105]="INVALID_ADX_EXTENSION",e[e.INVALID_ARGUMENTS=1101]="INVALID_ARGUMENTS",e[e.NONLINEAR_DIMENSIONS_ERROR=501]="NONLINEAR_DIMENSIONS_ERROR",e[e.OVERLAY_AD_LOADING_FAILED=502]="OVERLAY_AD_LOADING_FAILED",e[e.OVERLAY_AD_PLAYING_FAILED=500]="OVERLAY_AD_PLAYING_FAILED",e[e.STREAM_INITIALIZATION_FAILED=1020]="STREAM_INITIALIZATION_FAILED",e[e.UNKNOWN_AD_RESPONSE=1010]="UNKNOWN_AD_RESPONSE",e[e.UNKNOWN_ERROR=900]="UNKNOWN_ERROR",e[e.UNSUPPORTED_LOCALE=1011]="UNSUPPORTED_LOCALE",e[e.VAST_ASSET_NOT_FOUND=1007]="VAST_ASSET_NOT_FOUND",e[e.VAST_EMPTY_RESPONSE=1009]="VAST_EMPTY_RESPONSE",e[e.VAST_LINEAR_ASSET_MISMATCH=403]="VAST_LINEAR_ASSET_MISMATCH",e[e.VAST_LOAD_TIMEOUT=301]="VAST_LOAD_TIMEOUT",e[e.VAST_MALFORMED_RESPONSE=100]="VAST_MALFORMED_RESPONSE",e[e.VAST_MEDIA_LOAD_TIMEOUT=402]="VAST_MEDIA_LOAD_TIMEOUT",e[e.VAST_NO_ADS_AFTER_WRAPPER=303]="VAST_NO_ADS_AFTER_WRAPPER",e[e.VAST_NONLINEAR_ASSET_MISMATCH=503]="VAST_NONLINEAR_ASSET_MISMATCH",e[e.VAST_PROBLEM_DISPLAYING_MEDIA_FILE=405]="VAST_PROBLEM_DISPLAYING_MEDIA_FILE",e[e.VAST_SCHEMA_VALIDATION_ERROR=101]="VAST_SCHEMA_VALIDATION_ERROR",e[e.VAST_TOO_MANY_REDIRECTS=302]="VAST_TOO_MANY_REDIRECTS",e[e.VAST_TRAFFICKING_ERROR=200]="VAST_TRAFFICKING_ERROR",e[e.VAST_UNEXPECTED_DURATION_ERROR=202]="VAST_UNEXPECTED_DURATION_ERROR",e[e.VAST_UNEXPECTED_LINEARITY=201]="VAST_UNEXPECTED_LINEARITY",e[e.VAST_UNSUPPORTED_VERSION=102]="VAST_UNSUPPORTED_VERSION",e[e.VAST_WRAPPER_ERROR=300]="VAST_WRAPPER_ERROR",e[e.VIDEO_PLAY_ERROR=400]="VIDEO_PLAY_ERROR",e[e.VPAID_ERROR=901]="VPAID_ERROR",e))(Pl||{}),A9=()=>{let e=$(!1),t=$(!1),r=$(null),n=bo(),i=bo();return{visible:e,canRetry:t,retry:r,videoRef:n,adContainerRef:i}},E9=dt`
870
870
  ${He}
871
871
  position: fixed;
872
872
  left: 0;
@@ -911,4 +911,4 @@ If multiple caches share the same key they might "fight" for each other's style
911
911
  cursor: pointer;
912
912
  }
913
913
  }
914
- `,C9=e=>{let{onReady:t,state:r}=e,{visible:n,retry:i,canRetry:o,videoRef:a,adContainerRef:s}=r,c=()=>{i.value&&(i.value(),xe(()=>{i.value=null,o.value=!1}))};return Zr(()=>{t()},[t]),G("div",{className:E9,style:{display:n.value?"block":"none"},children:G("div",{className:"ads-wrapper",children:[G("video",{ref:a,width:"100%",height:"100%",playsInline:!0,"webkit-playsinline":"true",poster:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAD0lEQVR4AQEEAPv/AAAAAAAEAAFlScNgAAAAAElFTkSuQmCC",style:{transition:"none !important",transform:"none !important",animation:"none !important",objectFit:"contain"}}),G("div",{id:"ad-container",ref:s}),o.value?G("div",{className:"retry-button",onClick:c,children:G("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[G("circle",{cx:"32",cy:"32",r:"32",fill:"#141416",fillOpacity:"0.3"}),G("path",{d:"M25.3334 23.3668V40.6334C25.3334 41.9501 26.7834 42.7501 27.9 42.0334L41.4667 33.4001C42.5 32.7501 42.5 31.2501 41.4667 30.5834L27.9 21.9668C26.7834 21.2501 25.3334 22.0501 25.3334 23.3668Z",fill:"white"})]})}):null]})})};nm=class{constructor(t){jr(this,"name","GOOGLE_IMA"),jr(this,"context",void 0),jr(this,"adsOverlay",null),jr(this,"initialized",!1),jr(this,"ima",null),jr(this,"state",A9()),jr(this,"init",r=>g(this,null,function*(){if(this.initialized)return;let n="//imasdk.googleapis.com/js/sdkloader/ima3.js";yield new Promise((i,o)=>{if(document.querySelector("#google-ima-sdk")){i();return}else{let a=document.createElement("script");a.id="google-ima-sdk",a.src=n,a.onload=()=>{var s;(s=window.google)!=null&&s.ima?i():setTimeout(i,100)},a.onerror=o,document.head.appendChild(a)}}),this.adsOverlay=document.createElement("div"),this.adsOverlay.id="jolibox-ima-overlay",document.documentElement.appendChild(this.adsOverlay),yield new Promise((i,o)=>{tr(G(C9,{state:this.state,onReady:()=>{this.ima=new rm(r.params.url,this.state.videoRef.current,this.state.adContainerRef.current),i()}}),this.adsOverlay)}),this.initialized=!0})),jr(this,"destroy",()=>{this.adsOverlay&&(tr(null,this.adsOverlay),this.adsOverlay.remove()),this.ima&&this.ima.destroy(),this.initialized=!1}),jr(this,"requestAd",(r,n)=>{var i;if(!this.adsOverlay||!this.ima||!this.initialized){let d=ut.from(new Error("IMA not initialized"),"JOLIBOX_IMA_ERROR");(i=r.onAdError)==null||i.call(r,d);return}let o=d=>{var u;this.ima.destroy(),this.state.visible.value=!1,(u=r.onAdCompleted)==null||u.call(r,d)},a=d=>{var u;let p=!1;switch(d.raw.getErrorCode()){case Tl.AUTOPLAY_DISALLOWED:case Tl.VIDEO_PLAY_ERROR:case Tl.ADS_REQUEST_NETWORK_ERROR:{p=!0;break}default:{p=!1;break}}if(!p)this.ima.destroy(),xe(()=>{this.state.canRetry.value=!1,this.state.retry.value=null,this.state.visible.value=!1}),(u=r.onAdError)==null||u.call(r,d);else{let f=()=>{this.ima.destroy(),this.requestAd(r,n)};xe(()=>{this.state.canRetry.value=!0,this.state.retry.value=f})}},s=d=>{var u;this.state.visible.value=!0,(u=r.onAdLoaded)==null||u.call(r,d)},c=d=>{var u;(u=r.onAdPlaying)==null||u.call(r,d)},l=Object.assign({},r);l.onAdCompleted=o,l.onAdError=a,l.onAdLoaded=s,l.onAdPlaying=c,this.ima.requestAds(l,n)}),this.context=t}};im=class{constructor(t){hr(this,"name","OKSPIN"),hr(this,"initialized",!1),hr(this,"initCompleter",null),hr(this,"context",void 0),hr(this,"adsOverlay",null),hr(this,"adsIsShowing",!1),hr(this,"state",LP()),hr(this,"init",r=>g(this,null,function*(){var n;this.initialized||(this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afv"),tr(G(qP,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(n=this.initCompleter)==null||n.call(this))})),hr(this,"destroy",()=>{var r;this.adsOverlay&&(tr(null,this.adsOverlay),(r=this.adsOverlay)==null||r.remove()),this.initialized=!1}),hr(this,"requestAd",(r,n)=>{var i,o,a,s;if(!this.adsOverlay||!this.initialized){(i=r.onAdError)==null||i.call(r,ut.from(new Error("Ads not initialized"),"JOLIBOX_IMA_ERROR"));return}if(this.adsIsShowing){(o=r.onAdError)==null||o.call(r,ut.from(new Error("Ads already showing"),"JOLIBOX_IMA_ERROR"));return}(a=r.onAdRequested)==null||a.call(r);let c=()=>{var d;this.adsIsShowing=!1,(d=r.onAdCompleted)==null||d.call(r,void 0)},l=()=>{var d;(d=r.onAdLoaded)==null||d.call(r,void 0)};this.adsIsShowing=!0,xe(()=>{var d;this.state.adLoaded.value=l,this.state.adBreakDone.value=c,this.state.countdown.value=(d=n.params.countdown)!=null?d:15,this.state.src.value=n.params.url,this.state.mode.value="rewarded_insterstitial",this.state.visible.value=!0}),(s=r.onAdPlaying)==null||s.call(r,void 0)}),this.context=t}};om=class{constructor(t){Yt(this,"name","APPSROCKETS"),Yt(this,"initialized",!1),Yt(this,"initCompleter",null),Yt(this,"context",void 0),Yt(this,"adsOverlay",null),Yt(this,"adsIsShowing",!1),Yt(this,"state",UP()),Yt(this,"processUrl",r=>{var n;let i=this.context.getContextInfo(),o=new URL(r),a=new URLSearchParams(o.search);return a.has("joliSource")||a.set("joliSource",i.joliSource),a.get("osType")||a.set("osType",i.osType),a.get("runtimeType")||a.set("runtimeType",i.runtimeType),a.get("mode")||a.set("mode","AFV"),a.get("deviceId")||a.set("deviceId",i.deviceId),a.get("statusBarHeight")||a.set("statusBarHeight",((n=this.context.getWindowInfo().statusBarHeight)!=null?n:0).toString()),a.get("adsType")||a.set("adsType","REWARD_INTERSTITIAL"),o.search=a.toString(),o.toString()}),Yt(this,"init",r=>g(this,null,function*(){var n;this.initialized||(this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afv-appsrockets"),tr(G(MP,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(n=this.initCompleter)==null||n.call(this))})),Yt(this,"destroy",()=>{var r;this.adsOverlay&&(tr(null,this.adsOverlay),(r=this.adsOverlay)==null||r.remove()),this.initialized=!1}),Yt(this,"requestAd",(r,n)=>{var i,o,a,s;if(!this.adsOverlay||!this.initialized){(i=r.onAdError)==null||i.call(r,ut.from(new Error("Ads not initialized"),"JOLIBOX_IMA_ERROR"));return}if(this.adsIsShowing){(o=r.onAdError)==null||o.call(r,ut.from(new Error("Ads already showing"),"JOLIBOX_IMA_ERROR"));return}(a=r.onAdRequested)==null||a.call(r);let c=()=>{var p;this.adsIsShowing=!1,(p=r.onAdCompleted)==null||p.call(r,void 0)},l=()=>{var p;(p=r.onAdLoaded)==null||p.call(r,void 0)},d=p=>{var f,h;(h=(f=this.context).handleLinkClicked)==null||h.call(f,p)},u=()=>{var p;(p=r.onAdError)==null||p.call(r,ut.from(new Error("Ads load error"),"JOLIBOX_IMA_ERROR"))};this.adsIsShowing=!0,xe(()=>{this.state.adLoaded.value=l,this.state.adBreakDone.value=c,this.state.adLinkClicked.value=d,this.state.adError.value=u,this.state.src.value=this.processUrl(n.params.url),this.state.visible.value=!0}),(s=r.onAdPlaying)==null||s.call(r,void 0)}),this.context=t}};am=class{constructor(t){pn(this,"name","GOOGLE_GPT"),pn(this,"context",void 0),pn(this,"contextInfo",void 0),pn(this,"rewardAdManager",void 0),pn(this,"init",r=>g(this,null,function*(){if(!this.rewardAdManager){let n=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":r.params.rewardedSlot,i=`minidrama-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;this.rewardAdManager=new BP(n,i,r.params.keyValue)}})),pn(this,"insertScript",()=>{let r="jolibox-google-gpt",n=document.getElementById(r);n||(n=window.document.createElement("script"),n.id=r,n.async=!0,n.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",n.crossOrigin="anonymous",document.head.appendChild(n))}),pn(this,"destroy",()=>{var r;(r=this.rewardAdManager)==null||r.withCommand(()=>{var n;(n=this.rewardAdManager)==null||n.destroy("ignored")})}),pn(this,"requestAd",(r,n)=>{var i;if(!this.rewardAdManager){(i=r.onAdError)==null||i.call(r,ut.from(new Error("rewardAdManager not initialized"),"JOLIBOX_IMA_ERROR"));return}this.rewardAdManager.requestAds({beforeAd:r.onAdRequested,beforeReward:o=>{var a,s;(a=r.onAdLoaded)==null||a.call(r,void 0),o(),(s=r.onAdPlaying)==null||s.call(r,void 0)},adDismissed:()=>{},adViewed:()=>{},adBreakDone:o=>{var a,s;switch(o){case"viewed":{(a=r.onAdCompleted)==null||a.call(r,void 0);break}case"ignored":break;default:{(s=r.onAdError)==null||s.call(r,ut.from(new Error(o),"JOLIBOX_IMA_ERROR"));break}}}})}),this.context=t,this.contextInfo=t.getContextInfo(),this.insertScript()}};Ml=class e{constructor(t){if(mr(this,"context",void 0),mr(this,"contextInfo",void 0),mr(this,"providers",{}),mr(this,"requestContext",void 0),mr(this,"adsRequest",void 0),mr(this,"initialized",!1),mr(this,"preloadedAd",null),mr(this,"shouldCache",!1),t)this.context=t,this.requestContext=new Ca(t),this.adsRequest=new ql(t,{reward:!1,interstitial:!1,afv:!1}),this.contextInfo=this.context.getContextInfo();else throw new Error("JoliboxAdsForVideo requires a configuration object")}init(){return g(this,arguments,function*(){var t;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n,i=sessionStorage.getItem(e.STORAGE_KEY_INIT);if(i){sessionStorage.removeItem(e.STORAGE_KEY_INIT);try{n=JSON.parse(i)}catch(o){}}if(n!=null&&n.length||(R.log("[Jolibox SDK Ads][Trace][AFV] init /api/ads/init request",{contextData:this.requestContext.getRequestContextData("AdsAFVSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}),n=(yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFVSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}})).data,R.log("[Jolibox SDK Ads][Trace][AFV] init /api/ads/init response",{length:(t=n==null?void 0:n.length)!=null?t:null,data:n})),r&&n!=null&&n.length)try{sessionStorage.setItem(e.STORAGE_KEY_INIT,JSON.stringify(n))}catch(o){}if((n==null?void 0:n.length)>0)for(let o of n)switch(o.provider){case"GOOGLE_GPT":{let a=new am(this.context);yield a.init(o),this.providers.GOOGLE_GPT=a;break}case"GOOGLE_IMA":{let a=new nm(this.context);yield a.init(o),this.providers.GOOGLE_IMA=a;break}case"OKSPIN":{let a=new im(this.context);yield a.init(o),this.providers.OKSPIN=a;break}case"APPSROCKETS":{let a=new om(this.context);yield a.init(o),this.providers.APPSROCKETS=a;break}}this.adsRequest.cacheAFVInfo(),this.initialized=!0,this.shouldCache=r,this.preload()})}preload(){let t=sessionStorage.getItem(e.STORAGE_KEY_INFO);if(t){sessionStorage.removeItem(e.STORAGE_KEY_INFO);try{this.preloadedAd=JSON.parse(t);return}catch(r){}}this.adsRequest.getAFVAdsInfo(!0).then(r=>{if(R.log("[Jolibox SDK Ads][Trace][AFV] preload adsInfo",r),this.preloadedAd=r,this.shouldCache&&r)try{sessionStorage.setItem(e.STORAGE_KEY_INFO,JSON.stringify(r))}catch(n){}}).catch(()=>{this.preloadedAd=null})}destroy(){let t=Object.values(this.providers);for(let r of t)r.destroy();this.initialized=!1,this.preloadedAd=null}requestAd(t){return g(this,null,function*(){var r,n,i,o,a,s,c,l,d,u,p,f;if((r=this.context.eventEmitter)==null||r.emit("isAdShowing",!0),this.initialized||(yield this.init()),!this.context.checkNetwork()){let h=ut.from(new Error("No network connection"),"JOLIBOX_IMA_ERROR");(n=t.onAdError)==null||n.call(t,h);return}try{R.log("[Jolibox SDK Ads][Trace][AFV] requestAd preloadedAd",this.preloadedAd);let h=(i=this.preloadedAd)!=null?i:yield this.adsRequest.getAFVAdsInfo(!0);this.preloadedAd=null;let v=h==null?void 0:h.code,b=h==null?void 0:h.data;if(v==="BYPASS_ADS"){(o=t.onAdRequested)==null||o.call(t),(a=t.onAdLoaded)==null||a.call(t,void 0),(s=t.onAdPlaying)==null||s.call(t,void 0),(c=t.onAdCompleted)==null||c.call(t,void 0);return}if(b){let y=b.sort((x,k)=>x.seq-k.seq);if(y.length===0){let x=ut.from(new Error("No ads available"),"JOLIBOX_IMA_ERROR");(d=t.onAdError)==null||d.call(t,x);return}let _=!0,A=null,C=new tm(this.context);for(;y.length>0;){let x=y.shift(),k=this.providers[x.provider];if(k){let[E,H]=yield C.callAdRequestAndContinue(k,t,x);_=E,A=H}else _=!0,A=ut.from(new Error("No provider available"),"JOLIBOX_IMA_ERROR");if(!_)break}_&&A&&((u=t.onAdError)==null||u.call(t,A))}else{let y=ut.from(new Error("Unknown error"),"JOLIBOX_IMA_ERROR");(l=t.onAdError)==null||l.call(t,y);return}}catch(h){let v=ut.from(new Error("Failed to request ad"),"JOLIBOX_IMA_ERROR");(p=t.onAdError)==null||p.call(t,v)}finally{(f=this.context.eventEmitter)==null||f.emit("isAdShowing",!1),this.preload()}})}};mr(Ml,"STORAGE_KEY_INIT","jolibox_afv_init_data");mr(Ml,"STORAGE_KEY_INFO","jolibox_afv_info_data")});function GP(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return g(this,null,function*(){return yield i.reduce((s,c)=>g(this,null,function*(){let l=yield s;if(l===!0)return!0;JP&&console.log(`handleReward ${c}`);let d=e.get(c),u=d?yield d(...o):l;return JP&&console.log(`handleReward ${c} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return g(this,null,function*(){t=(...o)=>g(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return g(this,null,function*(){r=(...o)=>g(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Dr,loginGuide:Lr}}})})},getRewardsTypes(...i){return g(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return g(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:Dr,loginGuide:Lr}})}}}var JP,HP=T(()=>{"use strict";V();Ve();JP=S.testMode});var pm,fm,Gl,VP=T(()=>{"use strict";D();pm=class{constructor(t){this.httpClient=t}execute(t,r){return g(this,null,function*(){let n=(r==null?void 0:r.method)||"POST",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){var r,n,i;return{unlockOptions:((r=t.data)==null?void 0:r.unlockOptions)||[],joliCoin:((n=t.extra)==null?void 0:n.joliCoin)||{balance:0,enableAutoDeduct:!1},joliGem:((i=t.extra)==null?void 0:i.joliGem)||{balance:0,enableAutoDeduct:!1}}}mergeData(t,r){return{code:"SUCCESS",message:"success",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin||{balance:0,enableAutoDeduct:!1},joliGem:t.joliGem||{balance:0,enableAutoDeduct:!1}}}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin,joliGem:t.joliGem}}}},fm=class{constructor(t){this.httpClient=t}execute(t,r){return g(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){let r=t.data;return P({joliCoinUseAndCharge:r==null?void 0:r.joliCoinUseAndCharge,loginGuide:r==null?void 0:r.loginGuide},r)}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:t}}},Gl=class{constructor(t){this.unlockOptionsService=new Jt(new pm(t),{duration:30*60*1e3,timeout:1e3,keyGenerator:r=>r,consistencyChecker:(r,n)=>r.unlockOptions.length!==n.unlockOptions.length?!1:r.unlockOptions.every((i,o)=>{var s,c;let a=n.unlockOptions[o];return i.type===a.type&&((s=i.joliGemChoice)==null?void 0:s.joliGemQuantity)===((c=a.joliGemChoice)==null?void 0:c.joliGemQuantity)})}),this.globalConfigService=new Jt(new fm(t),{duration:60*60*1e3,timeout:1e3,keyGenerator:r=>r})}getUnlockOptions(){return g(this,arguments,function*(t={}){return yield this.unlockOptionsService.request("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}getGlobalConfig(){return g(this,null,function*(){return yield this.globalConfigService.request("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}refreshUnlockOptions(){return g(this,arguments,function*(t={}){return yield this.unlockOptionsService.forceRequest("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}refreshGlobalConfig(){return g(this,null,function*(){return yield this.globalConfigService.forceRequest("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}warmupCache(){return g(this,null,function*(){yield Promise.all([this.unlockOptionsService.warmupCache("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",method:"POST"}),this.globalConfigService.warmupCache("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})])})}clearAllCache(){this.unlockOptionsService.clearCache(),this.globalConfigService.clearCache()}getCacheStats(){return{unlockOptions:this.unlockOptionsService.getCacheStats(),globalConfig:this.globalConfigService.getCacheStats()}}clearExpiredCache(){this.unlockOptionsService.clearExpiredCache(),this.globalConfigService.clearExpiredCache()}}});function mm(e){return hm||(hm=new Gl(e)),hm}var U9,M9,F9,hm,gm,vm,ym,bm=T(()=>{"use strict";VP();Ve();D();U9=()=>(e,t)=>{let r={SUBSCRIPTION:4,JOLI_GEM:3,JOLI_GEM_ONLY:3,JOLI_COIN:2,JOLI_COIN_ONLY:2,ADS:1};return r[t]-r[e]},M9=["openJolicoinGuide",{method:"getABTest",platforms:["android"],nativeVersionCode:1050100},"userTrackAsync",{method:"openMiniapp",nativeVersionCode:1050100}],F9=e=>{if(!e.length)return["ADS"];if(e.includes("JOLI_GEM")){if(e.length===1)return["JOLI_GEM_ONLY"];if(e.includes("SUBSCRIPTION")&&e.length===2)return["SUBSCRIPTION","JOLI_GEM_ONLY"]}if(e.includes("JOLI_COIN")){if(e.length===1)return["JOLI_COIN_ONLY"];if(e.includes("SUBSCRIPTION")&&e.length===2)return["SUBSCRIPTION","JOLI_COIN_ONLY"]}return e.sort(U9())},hm=null;gm=e=>{e.registerRewardsFetcher(t=>g(void 0,null,function*(){var i,o,a,s,c;let r=["ADS"],n=mm(t);try{let l=yield n.getUnlockOptions({});if(l.code!=="SUCCESS")return r;F.emit(tl,{options:((i=l.data)==null?void 0:i.unlockOptions)||[],userJoliCoin:((o=l.extra)==null?void 0:o.joliCoin)||{balance:0,enableAutoDeduct:!1},userGem:((a=l.extra)==null?void 0:a.joliGem)||{balance:0,enableAutoDeduct:!1}});let d=((c=(s=l.data)==null?void 0:s.unlockOptions)==null?void 0:c.map(u=>u.type))||Array.from(r);return F9(d)}catch(l){return console.error("getRewardOptions error (cached):",l),r}}))},vm=e=>{e.registerRewardFrequencyConfigFetcher(t=>g(void 0,null,function*(){var n,i,o,a;let r=mm(t);try{let s=yield r.getGlobalConfig();return F.emit(Wt,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||Dr,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||Lr}),s.data&&Ae.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||Dr,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||Lr}}catch(s){return console.error("getGlobalConfig error (cached):",s),F.emit(Wt,{joliCoinUseAndCharge:Dr,loginGuide:Lr}),Ae.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:Dr,loginGuide:Lr,supportedHostMethods:M9}}),{joliCoinUseAndCharge:Dr,loginGuide:Lr}}}))},ym=e=>g(void 0,null,function*(){yield mm(e).warmupCache(),console.log("Reward cache warmed up")})});var _m=T(()=>{"use strict";bm();bm()});var $P,KP=T(()=>{"use strict";$P=e=>t=>g(void 0,null,function*(){try{console.log("trigger @jolibox/ads reward",t),yield e.adBreak(t)}catch(r){console.error("-----createAdsRewardHandler error-----",r)}return!0})});var Fe,Yi,Dt=T(()=>{"use strict";Ve();pr();Ve();Fe=$e(F,tl),Yi=(e,t)=>{var n;let r=(n=e.options)==null?void 0:n.some(i=>i.type==="SUBSCRIPTION");return console.log("typeof extraCheck",typeof t,t==null?void 0:t()),r&&(!t||(t==null?void 0:t()))}});var Hl,wm=T(()=>{"use strict";Hl={JOLI_COIN:{balanceEndpoint:"/api/joli-coin/balance",balanceDetailEndpoint:"/api/joli-coin/balance-detail",unlockEndpoint:"/api/joli-coin/unlock",unlockType:"JOLI_COIN"},GEM:{balanceEndpoint:"/api/joli-gem/balance",balanceDetailEndpoint:"/api/joli-gem/balance-detail",unlockEndpoint:"/api/joli-gem/unlock",unlockType:"GEM"}}});var St,mn=T(()=>{"use strict";D();St=z()});function WP(e){return Sm||(Sm=new Am(e)),Sm}var Im,Am,Sm,Em,$n,Qi=T(()=>{"use strict";D();Im=class{constructor(t){this.httpClient=t}execute(t,r){return g(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},Am=class{constructor(t){this.balanceService=new Jt(new Im(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getBalance(t="JOLI_COIN"){return g(this,null,function*(){return(yield this.balanceService.request("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}refreshBalance(t="JOLI_COIN"){return g(this,null,function*(){return(yield this.balanceService.forceRequest("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}warmupBalance(t="JOLI_COIN"){return g(this,null,function*(){yield this.balanceService.warmupCache("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})})}clearBalanceCache(){this.balanceService.clearCache()}getBalanceCacheStats(){return this.balanceService.getCacheStats()}clearExpiredCache(){this.balanceService.clearExpiredCache()}},Sm=null;Em=(e,t="JOLI_COIN")=>g(void 0,null,function*(){return yield WP(e).getBalance(t)}),$n=(e,t="JOLI_COIN")=>g(void 0,null,function*(){let n=yield WP(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var zP=T(()=>{"use strict";Qi()});function Tm(e){return Cm||(Cm=new xm(e)),Cm}var km,xm,Cm,Pm,Kn,Vl,Xi=T(()=>{"use strict";D();km=class{constructor(t){this.httpClient=t}execute(t,r){return g(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},xm=class{constructor(t){this.gemBalanceService=new Jt(new km(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getGemBalance(t="GEM"){return g(this,null,function*(){return(yield this.gemBalanceService.request("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}refreshGemBalance(t="GEM"){return g(this,null,function*(){return(yield this.gemBalanceService.forceRequest("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}warmupGemBalance(t="GEM"){return g(this,null,function*(){yield this.gemBalanceService.warmupCache("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})})}clearGemBalanceCache(){this.gemBalanceService.clearCache()}getGemBalanceCacheStats(){return this.gemBalanceService.getCacheStats()}clearExpiredCache(){this.gemBalanceService.clearExpiredCache()}},Cm=null;Pm=(e,t="GEM")=>g(void 0,null,function*(){return yield Tm(e).getGemBalance(t)}),Kn=(e,t="GEM")=>g(void 0,null,function*(){let n=yield Tm(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),Vl=(e,t="GEM")=>g(void 0,null,function*(){yield Tm(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var YP=T(()=>{"use strict";Xi()});var Bt,Wn=T(()=>{"use strict";zP();YP();Bt={JOLI_COIN:{fetchBalance:Em,getQuantity:e=>{var t,r,n;return(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(i=>i.type==="JOLI_COIN"))==null?void 0:r.joliCoinChoices[0].joliCoinQuantity)!=null?n:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userJoliCoin)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userJoliCoin",isEnough:(e,t)=>{var r,n;return(n=(r=e==null?void 0:e.options)==null?void 0:r.some(i=>i.type==="JOLI_COIN"&&i.joliCoinChoices.some(o=>{var a;return o.joliCoinQuantity<=((a=t==null?void 0:t.balance)!=null?a:0)})))!=null?n:!1}},JOLI_GEM:{fetchBalance:Pm,getQuantity:e=>{var t,r,n,i;return(i=(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(o=>o.type==="JOLI_GEM"))==null?void 0:r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userGem)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userGem",isEnough:(e,t)=>{var n,i,o;let r=e==null?void 0:e.options.find(a=>a.type==="JOLI_GEM");return r?((i=(n=r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0)<=((o=t==null?void 0:t.balance)!=null?o:0):!1}}}});var Pa,Gr,Rm=T(()=>{"use strict";mn();Dt();pr();Ve();Ve();Wn();Pa=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;St.registerCommand(`Rewards.${e}.useJolicoin`,()=>g(void 0,null,function*(){let i=yield Fe.getData(),o=Bt[t],a=o.getCurrentUser(i),s=o.getQuantity(i),c=!!(a!=null&&a.enableAutoDeduct);return console.log("-----unlockOptions usemodal-----",i,c,s),(yield n({enableAutoDeduct:c,userCurrency:a,quantity:s,currency:t}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},Gr=(e,t)=>r=>g(void 0,null,function*(){let n=$e(F,Mn);return F.emit(nl,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var Ra,Hr,QP=T(()=>{"use strict";mn();Dt();Ve();pr();Ve();Wn();Xi();Qi();Ra=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;St.registerCommand(`Rewards.${e}.usePayment`,()=>g(void 0,null,function*(){var p;let o=yield Fe.getData(),a=Bt[t],s=yield a.fetchBalance(n),c=a.getQuantity(o),l=a.getCurrentUser(o),d=a.createUpdatedUser((p=s==null?void 0:s.balance)!=null?p:0,l.enableAutoDeduct),u=a.getUpdateKey();if(Fe.updateData({[u]:d}),console.log("-----unlockOptions payment-----",o,d,c,t),!a.isEnough(o,d)){let f=yield i({userCurrency:d,currencyQuantity:c,currency:t});return t==="JOLI_GEM"?Kn(n):$n(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},Hr=(e,t)=>r=>g(void 0,null,function*(){let n=$e(F,Kt);return F.emit(rl,e,{userCurrency:r.userCurrency,quantity:r.currencyQuantity,currency:r.currency,enableAutoDeduct:r.userCurrency.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult})});var Om,Vr,XP=T(()=>{"use strict";V();mn();pr();Ve();Ve();D();Dt();Wn();Om=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;St.registerCommand(`Rewards.${e}.useUnloginModal`,()=>g(void 0,null,function*(){var s,c,l;let o=(s=S.hostUserInfo)==null?void 0:s.isLogin,a=yield Fe.getData();if(console.log("-----isLogin-----",!!o),!o){let d=yield n(t);if(console.log("-----unloginModalResult-----",d),d.result=="FAILED"||d.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:u,claimedRewardValue:p}=(c=d.rewards)!=null?c:{};if(d.result=="SUCCESS"){u&&p&&(yield Va(3e3));let f=Bt[t],h=yield f.fetchBalance(i),v=f.getQuantity(a),b=f.getCurrentUser(a),y=f.createUpdatedUser((l=h==null?void 0:h.balance)!=null?l:0,b.enableAutoDeduct),_=f.getUpdateKey();if(Fe.updateData({[_]:y}),y.balance>=v)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Vr=(e,t)=>r=>g(void 0,null,function*(){let n=$e(F,Nr);return F.emit(il,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var zn=T(()=>{"use strict";Rm();QP();XP()});var j9,$l,Nm=T(()=>{"use strict";V();D();wm();zn();mn();Qi();Wn();Dt();j9=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:c,hasSubscription:l}})=>{Ra(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),Pa(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let d=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return u=>g(void 0,null,function*(){var p,f,h,v;try{let b=yield o.getData();if(Yi(b,l)){let C=Bt.JOLI_COIN,x=yield C.fetchBalance(t),k=C.getCurrentUser(b),E=C.createUpdatedUser((p=x==null?void 0:x.balance)!=null?p:0,k.enableAutoDeduct);if(!C.isEnough(b,E))return i==null||i(u),!1}else{let C=!0;for(let x of d){let k=yield St.executeCommand(x);if(C=C&&k.result!=="FAILED",k.result!=="CONTINUE")break}if(!C)return i==null||i(u),!1}let _=Hl[r],A=yield t.post(_.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${ei()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});if(console.log("-----unlockWithCurrency request result-----",A),A.code=="SUCCESS"){try{(h=u.adBreakDone)==null||h.call(u,{breakType:u.type,breakName:"name"in u&&(f=u.name)!=null?f:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in u&&((v=u.adViewed)==null||v.call(u)),$n(t)}catch(C){console.error("-----unlockWithJolicoin adBreakDone error-----",C)}return n==null||n({quantity:A.data.quantity,balance:A.data.balance}),!0}return i==null||i(u),!1}catch(b){if(console.info("JolicoinRewardHandler error:",b),b instanceof Error&&b.message=="CANCEL")throw b;return i==null||i(u),!1}finally{o.clearCache()}})},$l=(e,t,r)=>j9(e,t,"JOLI_COIN",r)});var ZP,eR=T(()=>{"use strict";Dt();Nm();zn();ZP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Gr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Hr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Vr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return $l("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Fe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var tR,rR=T(()=>{"use strict";Nm();Dt();zn();tR=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=l=>{var d;r==null||r(),(d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=Gr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Hr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Vr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return $l("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Fe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var Kl,Dm=T(()=>{"use strict";V();D();wm();zn();Rm();mn();Xi();Wn();Dt();Kl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s,hasSubscription:c}})=>{Om(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),Ra(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),Pa(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>g(void 0,null,function*(){var u,p,f,h;try{let v=yield i.getData(),b=Yi(v,c);if(console.log("[GemHandler] supportSubscription",b,v),b){let A=Bt.JOLI_GEM,C=yield A.fetchBalance(t),x=A.getCurrentUser(v),k=A.createUpdatedUser((u=C==null?void 0:C.balance)!=null?u:0,x.enableAutoDeduct);if(!A.isEnough(v,k))return n==null||n(d),!1}else{let A=!0;for(let C of l){let x=yield St.executeCommand(C);if(console.log("[GemHandler] command result",x,C),A=A&&x.result!=="FAILED",x.result!=="CONTINUE")break}if(!A)return n==null||n(d),!1}let y=Hl.GEM,_=yield t.post(y.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${ei()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});if(console.log("-----unlockWithGem request result-----",_),_.code=="SUCCESS"){try{(f=d.adBreakDone)==null||f.call(d,{breakType:d.type,breakName:"name"in d&&(p=d.name)!=null?p:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((h=d.adViewed)==null||h.call(d)),Kn(t)}catch(A){console.error("-----unlockWithGem adBreakDone error-----",A)}return r==null||r({quantity:_.data.quantity,balance:_.data.balance}),!0}return n==null||n(d),!1}catch(v){if(console.info("GemRewardHandler error:",v),v instanceof Error&&v.message=="CANCEL")throw v;return n==null||n(d),!1}finally{i.clearCache()}})}});var nR,iR=T(()=>{"use strict";Dt();Dm();zn();nR=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Gr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Hr("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Vr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Kl("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Fe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var oR,aR=T(()=>{"use strict";Dm();Dt();zn();oR=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=l=>{var d;r==null||r(),(d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=Gr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Hr("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Vr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Kl("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Fe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var sR,cR,Lm=T(()=>{"use strict";Wn();mn();Dt();pr();Ve();Ve();sR=e=>{let{showSubscriptionModal:t}=e;St.registerCommand("Rewards.subscription",()=>g(void 0,null,function*(){var s,c;let r=yield Fe.getData(),n=(c=(s=r==null?void 0:r.options)==null?void 0:s.find(l=>l.type==="JOLI_GEM"))==null?void 0:c.type,i=Bt[n?"JOLI_GEM":"JOLI_COIN"],o=i.getCurrentUser(r);return i.isEnough(r,o)?{result:"FAILED"}:{result:(yield t())==="SUCCESS"?"SUCCESS":"FAILED"}}))},cR=e=>()=>g(void 0,null,function*(){let t=$e(F,Fn);return F.emit(ol,e),(yield t.getFreshData()).result})});var lR=T(()=>{"use strict";Lm()});var uR,dR=T(()=>{"use strict";mn();lR();V();Dt();Qi();Xi();uR=(e,t,{handlers:{handleSubSuccess:r,handleSubFailed:n,unlockOptionsHandler:i,showSubscriptionModal:o,hasSubscription:a}})=>{sR({showSubscriptionModal:o});let s=["Rewards.subscription"];return c=>g(void 0,null,function*(){var l,d,u,p,f,h;try{let v=yield i.getData();if(!Yi(v,a))return!1;let y=!0;for(let _ of s){let A=yield St.executeCommand(_);if(y=y&&A.result!=="FAILED",A.result!=="CONTINUE")break}if($n(t),Kn(t),console.log("-----unlockWithSubscription result-----",y),y){try{(d=c.adBreakDone)==null||d.call(c,{breakType:c.type,breakName:"name"in c&&(l=c.name)!=null?l:"",breakFormat:c.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in c&&((u=c.adViewed)==null||u.call(c)),(h=(f=S).onEnvConfigChanged)==null||h.call(f,{hostUserInfo:J(P({},(p=S.hostUserInfo)!=null?p:{isLogin:!1}),{isSubUser:!0})})}catch(_){console.error("-----unlockWithSubscription adBreakDone error-----",_)}return r==null||r(),!0}return n==null||n(c),!1}catch(v){if(console.info("SubscriptionRewardHandler error:",v),v instanceof Error&&v.message=="CANCEL")throw v;return n==null||n(c),!1}finally{}})}});var pR,fR=T(()=>{"use strict";Dt();dR();Lm();pR=(e,{onSubSuccess:t,onSubFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=cR("SUBSCRIPTION");return uR("SUBSCRIPTION",e,{handlers:{handleSubSuccess:t,handleSubFailed:i,unlockOptionsHandler:Fe,showSubscriptionModal:o,hasSubscription:n}})}});var jt,hR=T(()=>{"use strict";HP();_m();KP();eR();rR();iR();aR();fR();Qi();Xi();jt=GP();gm(jt);vm(jt)});var Wl,J9,yr,G9,Oa,H9,mR,gR,V9,$9,qm,K9,W9,z9,vR=T(()=>{"use strict";D();We();dr();TT();bh();dm();At();V();gt();de();hR();ys();_m();Wl=z(),J9=()=>{let{data:e}=q("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},yr={get:(e,t)=>Y(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>Y(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},G9={httpClient:yr,checkNetwork:J9,track:j,eventEmitter:Sn,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,c,l;return{hostAppId:(t=(e=S.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=S.deviceInfo.did)!=null?r:"",adId:(n=S.deviceInfo.adId)!=null?n:"",sessionId:(i=S.sessionId)!=null?i:"",userId:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:S.mpId,testAdsMode:S.testAdsMode,channel:(s=S.joliSource)!=null?s:"",deviceBrand:S.deviceInfo.brand,deviceModel:S.deviceInfo.model,osType:S.platform==="android"?"ANDROID":S.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=S.joliSource)!=null?c:"",deviceInfo:{platform:S.platform,nativeSDKVersionCode:(l=S.sdkInfo.nativeSDKVersionCode)!=null?l:0}}}},Oa=new $i(G9);jt.getRewardFrequencyConfig(yr).then(e=>{console.log("getRewardFrequencyConfig",e)});jt.registerRewardHandler("ADS",$P(Oa));jt.registerRewardHandler("JOLI_COIN",ZP(yr,{onUnlockSuccess:e=>{mR(e),j("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>_e("invokeSubscriptionPanelSync")}));jt.registerRewardHandler("JOLI_COIN_ONLY",tR(yr,{onUnlockSuccess:e=>{mR(e),j("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>_e("invokeSubscriptionPanelSync")}));jt.registerRewardHandler("JOLI_GEM",nR(yr,{onUnlockSuccess:e=>{gR(e),j("gem_unlock_success",{quantity:e.quantity})},hasSubscription:()=>_e("invokeSubscriptionPanelSync")}));jt.registerRewardHandler("JOLI_GEM_ONLY",oR(yr,{onUnlockSuccess:e=>{gR(e),j("gem_unlock_success",{quantity:e.quantity,isOnly:!0})},hasSubscription:()=>_e("invokeSubscriptionPanelSync")}));H9=()=>{j("subscription_unlock_success",{})};jt.registerRewardHandler("SUBSCRIPTION",pR(yr,{onSubSuccess:H9.bind(void 0),hasSubscription:()=>_e("invokeSubscriptionPanelSync")}));mR=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Or(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})};ym(yr);Vl(yr);Sn.on("isAdShowing",e=>{Mi("JOLIBOX_ADS_EVENT",{isAdShowing:e})});gR=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Or(r,{customStyle:{mark:{marginRight:"8px"},base:{"font-size":"25px","font-weight":"700","line-height":"18px"},span:{width:"auto",minWidth:"fit-content",maxWidth:"60px",textAlign:"center",padding:"0 2px",lineHeight:"25px"},gem:{transform:"translateY(-2px)",width:"28px",height:"28px"}}})},V9=Q("adInit",{implement:e=>{Oa.init(e)}}),$9=Q("adConfig",{implement:e=>{Oa.adConfig(e)}}),qm=!1,K9=e=>{var t,r,n;(r=e.adBreakDone)==null||r.call(e,{breakType:e.type,breakName:"name"in e&&(t=e.name)!=null?t:"",breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in e&&((n=e.adViewed)==null||n.call(e))},W9=Q("adBreak",{implement:e=>{var r;if((r=S.hostUserInfo)==null?void 0:r.isSubUser){K9(e);return}if(e.type==="reward"){if(qm)return;qm=!0,jt.getRewardsTypes(yr).then(n=>{jt.handleReward(n,e).catch(i=>{var o;console.info("handleReward failed in native",i),(o=e.adBreakDone)==null||o.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{qm=!1})})}else Oa.adBreak(e)}}),z9=Q("adUnit",{implement:e=>{Oa.adUnit(e)}});Wl.registerCommand("AdsSDK.init",V9);Wl.registerCommand("AdsSDK.adConfig",$9);Wl.registerCommand("AdsSDK.adBreak",W9);Wl.registerCommand("AdsSDK.adUnit",z9);L("AdsSDK.init",{version:"1.0.0"});L("AdsSDK.adConfig",{version:"1.0.0"});L("AdsSDK.adBreak",{version:"1.0.0"});L("AdsSDK.adUnit",{version:"1.0.0"})});var Na,Y9,Q9,X9,Z9,eW,yR=T(()=>{"use strict";D();de();We();V();Na=z(),Y9=Q("openSchemaSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=q("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Qt(r.errMsg,r.errNo)}}),Q9=Q("openPageSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=q("openPageSync",{url:e});if(t!==0||!n)throw new Qt(r,t);return{webviewId:n.webviewId}}}),X9=Q("closePageSync",{paramsSchema:I.tuple(I.number()),implement:e=>{let{errNo:t,errMsg:r}=q("closePageSync",{webviewId:e});if(t!==0)throw new Qt(r,t)}}),Z9=Q("interceptSystemExitSync",{paramsSchema:I.tuple(I.boolean()),implement:e=>{Ae.emit("onInterceptSystemExit",{intercept:e}),Ae.emit("onInterceptBackPress",{intercept:e})}}),eW=Q("navigateToNativePage",{paramsSchema:I.tuple(I.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),I.object()),implement:(e,t)=>{q("callHostMethodAsync",{method:e,params:P({},t)})}});Na.registerCommand("RouterSDK.openSchema",Y9);Na.registerCommand("RouterSDK.openPage",Q9);Na.registerCommand("RouterSDK.closePage",X9);Na.registerCommand("RouterSDK.interceptSystemExit",Z9);Na.registerCommand("RouterSDK.navigateToNativePage",eW);L("router.openSchema",{version:"1.1.10"});L("router.openPage",{version:"1.1.10"});L("router.closePage",{version:"1.1.10"});L("router.interceptSystemExit",{version:"1.1.18"});L("router.navigateToNativePage",{version:"1.1.19"})});function nW(e){yn("cpLoadProgressEvent",{progress:e},S.webviewId,!0),Mi("CP_LOAD_PROGRESS",{progress:e})}var Mm,tW,zl,Um,bR,rW,iW,oW,_R=T(()=>{"use strict";D();We();de();V();At();bh();Mm=z(),tW=Q("onLoadFinished",{implement:()=>{yn("cpLoadFinishEvent",{},S.webviewId,!0),Mi("CP_LOAD_FINISH",{duration:performance.now()}),j("loadFinished",{duration:performance.now()})}}),zl=null,Um=!1,bR=0,rW=200;iW=Q("onLoadProgress",{paramsSchema:I.tuple(I.number()),implement:e=>{zl=e,Um||(Um=!0,requestAnimationFrame(function t(){let r=Date.now();r-bR>=rW?(zl!==null&&(nW(zl),bR=r,zl=null),Um=!1):requestAnimationFrame(t)}))}}),oW=Q("onGameTTI",{paramsSchema:I.tuple(I.number().optional()),implement:()=>{yn("cpGameTTIEvent",{duration:performance.now()},S.webviewId,!0),Mi("CP_GAME_TTI",{duration:performance.now()}),j("gameTTI",{duration:performance.now()})}});Mm.registerCommand("RuntimeSDK.loadFinishedEvent",tW);Mm.registerCommand("RuntimeSDK.loadProgressEvent",iW);Mm.registerCommand("RuntimeSDK.gameTTIEvent",oW)});var aW,sW,cW,wR=T(()=>{"use strict";D();We();V();aW=z(),sW="isNativeSupport",cW=Q(sW,{paramsSchema:I.tuple(I.object({version:I.string()})),implement:e=>{let t=S.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:Rg(Gu(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});aW.registerCommand("API.isNativeSupport",cW);L("isNativeSupport",{version:"1.1.46"})});var IR=m(Fm=>{"use strict";We();de();D();D();V();var SR=z(),lW=K("callHostMethod",{paramsSchema:I.tuple(I.object({method:I.string(),params:I.object().optional().default({})})),implement:r=>g(Fm,[r],function*({method:e,params:t}){if(!_e(e))throw new Qt("Method not supported",10001);let{errNo:n,errMsg:i,data:o}=yield q("callHostMethodAsync",{method:e,params:P({},t)});if(n!==0)throw new Qt(i,n);let c=o,{callHostMethodId:a}=c,s=tt(c,["callHostMethodId"]);return P({},s)})});SR.registerCommand("API.callHostMethod",lW);L("callHostMethod",{version:"1.1.49"});var uW=K("userTrackAsync",{paramsSchema:I.tuple(I.object({event:I.string(),eventType:I.number(),params:I.object().optional().default({})})),implement:n=>g(Fm,[n],function*({event:e,eventType:t,params:r}){if(!_e("userTrackAsync"))throw new Qt("Method not supported",10001);let{errNo:i,errMsg:o}=yield q("trackAsync",{event:e,eventType:t,data:P({},r),webviewId:S.webviewId});if(i!==0)throw new Qt(o,i)})});SR.registerCommand("API.track",uW);L("track",{version:"1.1.53"})});var CR=m(gn=>{"use strict";D();We();lh();Kr();yh();de();var Yn=z(),AR=dl(),dW=K("purchaseGem",{paramsSchema:I.tuple(I.object({productId:I.string()})),implement:e=>g(gn,null,function*(){var r,n;let t=yield AR.purchase(e.productId);if(t.code!=="SUCCESS")throw Pe({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=(r=t.data)==null?void 0:r.totalAmount)!=null?n:""}})}),pW=K("getGemProducts",{paramsSchema:I.tuple(),implement:()=>g(gn,null,function*(){var t,r;let e=(r=(t=yield AR.getProductsInfoWithBalance())==null?void 0:t.paymentChoices)!=null?r:[];return console.info("choices",e),{products:e.map(n=>{var i;return{productId:n.productId,totalAmountStr:(i=n.totalAmountStr)!=null?i:"",quantity:n.quantity}})}})}),fW=K("getSubscriptionPlans",{paramsSchema:I.tuple(),implement:()=>g(gn,null,function*(){let e=yield Hn.getSubInfo();if(console.log("[PaymentAPI] getSubscriptionPlans result",e),!e)throw Pe({code:-1,msg:"[JoliboxSDK]: get subscription plans failed"});return{plans:e}})}),hW=K("flushSubInfoCache",{paramsSchema:I.tuple(),implement:()=>g(gn,null,function*(){yield Hn.updateAllNativePriceCache()})}),ER=e=>g(gn,null,function*(){var a;let{productId:t}=e,r=e.appStoreProductId,n=e.appStoreProductId,i=t;if(!e.appStoreProductId){let s=yield Hn.getTierByProductId(e.productId);if(!s)throw Pe({code:-1,msg:"[JoliboxSDK]: product not found"});r=s.basePlanId,n=s.appStoreProductId,i=s.nativeProductId}if(!r||!n||!i)throw Pe({code:-1,msg:"[JoliboxSDK]: product not found"});let o=yield Hn.subscribe({basePlanId:r,nativeProductId:i,appStoreProductId:n});return{result:o.result,subPlanId:o.subPlanId,errMsg:(a=o.message)!=null?a:""}}),mW=K("subscribe",{paramsSchema:I.tuple(I.object({productId:I.string(),appStoreProductId:I.string().optional()})),implement:ER}),gW=K("subscribeSpin",{paramsSchema:I.tuple(I.object({appStoreProductId:I.string().optional()})),implement:e=>g(gn,null,function*(){return ER(J(P({},e),{productId:"jolibox_app_spin_sub"}))})});Yn.registerCommand("PaymentSDK.purchaseGem",dW);Yn.registerCommand("PaymentSDK.getGemProducts",pW);Yn.registerCommand("PaymentSDK.getSubscriptionPlans",fW);Yn.registerCommand("PaymentSDK.subscribe",mW);Yn.registerCommand("PaymentSDK.subscribeSpin",gW);var vW=K("getSpinSubscriptionPrice",{paramsSchema:I.tuple(I.object({appStoreProductId:I.string()})),implement:e=>g(gn,null,function*(){let{data:t}=yield fe("requestSubscriptionPlansAsync",{appStoreProductIds:[e.appStoreProductId],type:"SPIN"});if(!t)throw Pe({code:-1,msg:"[JoliboxSDK]: get spin subscription price failed"});return{plans:Object.values(t).map(n=>{var i,o;return{basePlanId:n.basePlanId,productId:n.productId,formattedPrice:n.pricing.formattedPrice,originalPrice:n.pricing.originalPrice,trialDay:(o=(i=n.trial)==null?void 0:i.duration)!=null?o:0}})}})});Yn.registerCommand("PaymentSDK.flushSubInfoCache",hW);Yn.registerCommand("PaymentSDK.getSpinSubscriptionPrice",vW);L("payment.purchaseGem",{version:"1.2.9"});L("payment.getGemProducts",{version:"1.2.9"});L("payment.getSubscriptionPlans",{version:"1.2.9"});L("payment.subscribe",{version:"1.2.9"});L("payment.flushSubInfoCache",{version:"1.2.9"});L("payment.subscribeSpin",{version:"1.3.7"});L("payment.getSpinSubscriptionPrice",{version:"1.4.3"})});var xR=m(vn=>{"use strict";D();We();V();Kr();de();ys();At();dm();gt();var yW=()=>{let{data:e}=q("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},bW={get:(e,t)=>Y(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>Y(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},_W={httpClient:bW,checkNetwork:yW,track:j,eventEmitter:Sn,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,c,l;return{hostAppId:(t=(e=S.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=S.deviceInfo.did)!=null?r:"",adId:(n=S.deviceInfo.adId)!=null?n:"",sessionId:(i=S.sessionId)!=null?i:"",userId:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"TASK",objectId:S.mpId,testAdsMode:S.testAdsMode,channel:(s=S.joliSource)!=null?s:"",deviceBrand:S.deviceInfo.brand,deviceModel:S.deviceInfo.model,osType:S.platform==="android"?"ANDROID":S.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=S.joliSource)!=null?c:"",deviceInfo:{platform:S.platform,nativeSDKVersionCode:(l=S.sdkInfo.nativeSDKVersionCode)!=null?l:0}}}},Bm=z(),kR=Zn(reportError),wW=K("getCoinDetails",{paramsSchema:I.tuple(I.function().optional()),implement:e=>g(vn,null,function*(){try{if(S.mpType!=="miniApp")return reportError(Pe({code:-1,msg:"[JoliboxSDK]: rewards info not supported in games. Only supported in mini apps."})),{code:"FAILURE",message:"[JoliboxSDK]: rewards info not supported in games. Only supported in mini apps."};if(!_e("requestCoinDetailsSync"))return reportError(Pe({code:-1,msg:"[JoliboxSDK]: rewards info not supported in this platform."})),{code:"FAILURE",message:"[JoliboxSDK]: rewards info not supported in this platform. lower than 1.7.1"};let r=e?kR(e):(()=>{console.log("default update function called")}).bind(vn),{errNo:n,errMsg:i,data:o}=q("requestCoinDetailsSync");if(n!==0)throw Pe({code:n!=null?n:-1,msg:i});return console.log("=====> sync data",o,n),q("requestCoinDetailsAsync").then(a=>{a.errNo==0&&a.data&&(r(a.data),console.log("=====> res.data",a.data))}),{code:"SUCCESS",message:"Successfully retrieved coin details",data:o}}catch(t){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to get coin details: "+t.message}}})});Bm.registerCommand("RewardsSDK.getCoinDetails",wW);L("rewards.getCoinDetails",{version:"1.3.2"});var SW=K("createRewardsAdsManager",{implement:()=>g(vn,null,function*(){try{let e=new $i(_W);if(S.mpType!=="miniApp")throw Pe({code:-1,msg:"[JoliboxSDK]: createRewardsAdsManager not supported in games. Only supported in mini apps."});return{code:"SUCCESS",message:"Successfully created RewardsAdsManager",data:{init:()=>g(vn,null,function*(){yield e.init(),e.adConfig({preloadAdBreaks:"on",sound:"off",onReady:()=>{}})}),showAd:(t,r=!1)=>g(vn,null,function*(){e.adBreak({type:"reward",beforeReward:n=>{var i;n(),(i=t.onAdLoaded)==null||i.call(t)},adDismissed:()=>{var n;(n=t.onAdDismissed)==null||n.call(t)},adViewed:()=>{},adBreakDone:n=>{var a,s;let i=n.breakStatus,o=i==="frequencyCapped"||i==="other"||i==="error"||i==="noAdPreloaded";i==="viewed"&&(console.log("-----> complete watch ads"),!r&&Ct.reporter({event:"COMPLETE_WATCH_ADS"}),(a=t.onAdRewarded)==null||a.call(t)),o&&(console.log("-----> no ad preloaded or error occurred",i),(s=t.onAdError)==null||s.call(t,new Error("No ad preloaded or error occurred: "+i)))}})})}}}catch(e){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to create RewardsAdsManager"}}})});Bm.registerCommand("Rewards.createRewardsAdsManager",SW);L("rewards.createRewardsAdsManager",{version:"1.3.4"});var IW=K("getLeaderBoardData",{paramsSchema:I.tuple(I.object({gameId:I.string(),onUpdate:I.function().optional()})),implement:e=>g(vn,null,function*(){try{if(!_e("requestGameLeaderboardSync"))return{code:"FAILURE",message:"[JoliboxSDK]: getLeaderBoardData not supported in this platform."};let t=e.onUpdate?kR(e.onUpdate):(()=>{console.log("default update function called")}).bind(vn),{errNo:r,errMsg:n,data:i}=q("requestGameLeaderboardSync",{gameId:e.gameId});if(r!==0)throw Pe({code:r!=null?r:-1,msg:n});return q("requestGameLeaderboardAsync",{gameId:e.gameId}).then(o=>{var a;if(o.errNo===0&&o.data)t(o.data);else throw Pe({code:(a=o.errNo)!=null?a:-1,msg:o.errMsg})}).catch(o=>{console.error("Failed to fetch leaderboard data asynchronously: ",o)}),{code:"SUCCESS",message:"Successfully retrieved leaderboard data",data:i}}catch(t){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to get leaderboard data: "+t.message}}})});Bm.registerCommand("RewardsSDK.getLeaderBoardData",IW);L("rewards.getLeaderBoardData",{version:"1.3.9"})});var AW={};var ple,gle,Sle,Ile,Ale,TR=T(()=>{"use strict";Ax();ple=ue(Ex());Ox();ho();Nx();gle=ue(qx());Zc();vR();yR();_R();wR();Sle=ue(IR()),Ile=ue(CR()),Ale=ue(xR())});var PR=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[PR])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[PR]=!0;g(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(Sx(),wx)),Promise.resolve().then(()=>(TR(),AW)),Promise.resolve().then(()=>(At(),vv))]);e()});
914
+ `,k9=e=>{let{onReady:t,state:r}=e,{visible:n,retry:i,canRetry:o,videoRef:a,adContainerRef:s}=r,c=()=>{i.value&&(i.value(),xe(()=>{i.value=null,o.value=!1}))};return Zr(()=>{t()},[t]),G("div",{className:E9,style:{display:n.value?"block":"none"},children:G("div",{className:"ads-wrapper",children:[G("video",{ref:a,width:"100%",height:"100%",playsInline:!0,"webkit-playsinline":"true",poster:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAD0lEQVR4AQEEAPv/AAAAAAAEAAFlScNgAAAAAElFTkSuQmCC",style:{transition:"none !important",transform:"none !important",animation:"none !important",objectFit:"contain"}}),G("div",{id:"ad-container",ref:s}),o.value?G("div",{className:"retry-button",onClick:c,children:G("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[G("circle",{cx:"32",cy:"32",r:"32",fill:"#141416",fillOpacity:"0.3"}),G("path",{d:"M25.3334 23.3668V40.6334C25.3334 41.9501 26.7834 42.7501 27.9 42.0334L41.4667 33.4001C42.5 32.7501 42.5 31.2501 41.4667 30.5834L27.9 21.9668C26.7834 21.2501 25.3334 22.0501 25.3334 23.3668Z",fill:"white"})]})}):null]})})};ih=class{constructor(t){jr(this,"name","GOOGLE_IMA"),jr(this,"context",void 0),jr(this,"adsOverlay",null),jr(this,"initialized",!1),jr(this,"ima",null),jr(this,"state",A9()),jr(this,"init",r=>g(this,null,function*(){if(this.initialized)return;let n="//imasdk.googleapis.com/js/sdkloader/ima3.js";yield new Promise((i,o)=>{if(document.querySelector("#google-ima-sdk")){i();return}else{let a=document.createElement("script");a.id="google-ima-sdk",a.src=n,a.onload=()=>{var s;(s=window.google)!=null&&s.ima?i():setTimeout(i,100)},a.onerror=o,document.head.appendChild(a)}}),this.adsOverlay=document.createElement("div"),this.adsOverlay.id="jolibox-ima-overlay",document.documentElement.appendChild(this.adsOverlay),yield new Promise((i,o)=>{tr(G(k9,{state:this.state,onReady:()=>{this.ima=new nh(r.params.url,this.state.videoRef.current,this.state.adContainerRef.current),i()}}),this.adsOverlay)}),this.initialized=!0})),jr(this,"destroy",()=>{this.adsOverlay&&(tr(null,this.adsOverlay),this.adsOverlay.remove()),this.ima&&this.ima.destroy(),this.initialized=!1}),jr(this,"requestAd",(r,n)=>{var i;if(!this.adsOverlay||!this.ima||!this.initialized){let d=ut.from(new Error("IMA not initialized"),"JOLIBOX_IMA_ERROR");(i=r.onAdError)==null||i.call(r,d);return}let o=d=>{var u;this.ima.destroy(),this.state.visible.value=!1,(u=r.onAdCompleted)==null||u.call(r,d)},a=d=>{var u;let p=!1;switch(d.raw.getErrorCode()){case Pl.AUTOPLAY_DISALLOWED:case Pl.VIDEO_PLAY_ERROR:case Pl.ADS_REQUEST_NETWORK_ERROR:{p=!0;break}default:{p=!1;break}}if(!p)this.ima.destroy(),xe(()=>{this.state.canRetry.value=!1,this.state.retry.value=null,this.state.visible.value=!1}),(u=r.onAdError)==null||u.call(r,d);else{let f=()=>{this.ima.destroy(),this.requestAd(r,n)};xe(()=>{this.state.canRetry.value=!0,this.state.retry.value=f})}},s=d=>{var u;this.state.visible.value=!0,(u=r.onAdLoaded)==null||u.call(r,d)},c=d=>{var u;(u=r.onAdPlaying)==null||u.call(r,d)},l=Object.assign({},r);l.onAdCompleted=o,l.onAdError=a,l.onAdLoaded=s,l.onAdPlaying=c,this.ima.requestAds(l,n)}),this.context=t}};oh=class{constructor(t){mr(this,"name","OKSPIN"),mr(this,"initialized",!1),mr(this,"initCompleter",null),mr(this,"context",void 0),mr(this,"adsOverlay",null),mr(this,"adsIsShowing",!1),mr(this,"state",LP()),mr(this,"init",r=>g(this,null,function*(){var n;this.initialized||(this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afv"),tr(G(qP,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(n=this.initCompleter)==null||n.call(this))})),mr(this,"destroy",()=>{var r;this.adsOverlay&&(tr(null,this.adsOverlay),(r=this.adsOverlay)==null||r.remove()),this.initialized=!1}),mr(this,"requestAd",(r,n)=>{var i,o,a,s;if(!this.adsOverlay||!this.initialized){(i=r.onAdError)==null||i.call(r,ut.from(new Error("Ads not initialized"),"JOLIBOX_IMA_ERROR"));return}if(this.adsIsShowing){(o=r.onAdError)==null||o.call(r,ut.from(new Error("Ads already showing"),"JOLIBOX_IMA_ERROR"));return}(a=r.onAdRequested)==null||a.call(r);let c=()=>{var d;this.adsIsShowing=!1,(d=r.onAdCompleted)==null||d.call(r,void 0)},l=()=>{var d;(d=r.onAdLoaded)==null||d.call(r,void 0)};this.adsIsShowing=!0,xe(()=>{var d;this.state.adLoaded.value=l,this.state.adBreakDone.value=c,this.state.countdown.value=(d=n.params.countdown)!=null?d:15,this.state.src.value=n.params.url,this.state.mode.value="rewarded_insterstitial",this.state.visible.value=!0}),(s=r.onAdPlaying)==null||s.call(r,void 0)}),this.context=t}};ah=class{constructor(t){Yt(this,"name","APPSROCKETS"),Yt(this,"initialized",!1),Yt(this,"initCompleter",null),Yt(this,"context",void 0),Yt(this,"adsOverlay",null),Yt(this,"adsIsShowing",!1),Yt(this,"state",UP()),Yt(this,"processUrl",r=>{var n;let i=this.context.getContextInfo(),o=new URL(r),a=new URLSearchParams(o.search);return a.has("joliSource")||a.set("joliSource",i.joliSource),a.get("osType")||a.set("osType",i.osType),a.get("runtimeType")||a.set("runtimeType",i.runtimeType),a.get("mode")||a.set("mode","AFV"),a.get("deviceId")||a.set("deviceId",i.deviceId),a.get("statusBarHeight")||a.set("statusBarHeight",((n=this.context.getWindowInfo().statusBarHeight)!=null?n:0).toString()),a.get("adsType")||a.set("adsType","REWARD_INTERSTITIAL"),o.search=a.toString(),o.toString()}),Yt(this,"init",r=>g(this,null,function*(){var n;this.initialized||(this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afv-appsrockets"),tr(G(MP,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(n=this.initCompleter)==null||n.call(this))})),Yt(this,"destroy",()=>{var r;this.adsOverlay&&(tr(null,this.adsOverlay),(r=this.adsOverlay)==null||r.remove()),this.initialized=!1}),Yt(this,"requestAd",(r,n)=>{var i,o,a,s;if(!this.adsOverlay||!this.initialized){(i=r.onAdError)==null||i.call(r,ut.from(new Error("Ads not initialized"),"JOLIBOX_IMA_ERROR"));return}if(this.adsIsShowing){(o=r.onAdError)==null||o.call(r,ut.from(new Error("Ads already showing"),"JOLIBOX_IMA_ERROR"));return}(a=r.onAdRequested)==null||a.call(r);let c=()=>{var p;this.adsIsShowing=!1,(p=r.onAdCompleted)==null||p.call(r,void 0)},l=()=>{var p;(p=r.onAdLoaded)==null||p.call(r,void 0)},d=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)},u=()=>{var p;(p=r.onAdError)==null||p.call(r,ut.from(new Error("Ads load error"),"JOLIBOX_IMA_ERROR"))};this.adsIsShowing=!0,xe(()=>{this.state.adLoaded.value=l,this.state.adBreakDone.value=c,this.state.adLinkClicked.value=d,this.state.adError.value=u,this.state.src.value=this.processUrl(n.params.url),this.state.visible.value=!0}),(s=r.onAdPlaying)==null||s.call(r,void 0)}),this.context=t}};sh=class{constructor(t){pn(this,"name","GOOGLE_GPT"),pn(this,"context",void 0),pn(this,"contextInfo",void 0),pn(this,"rewardAdManager",void 0),pn(this,"init",r=>g(this,null,function*(){if(!this.rewardAdManager){let n=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":r.params.rewardedSlot,i=`minidrama-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;this.rewardAdManager=new BP(n,i,r.params.keyValue)}})),pn(this,"insertScript",()=>{let r="jolibox-google-gpt",n=document.getElementById(r);n||(n=window.document.createElement("script"),n.id=r,n.async=!0,n.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",n.crossOrigin="anonymous",document.head.appendChild(n))}),pn(this,"destroy",()=>{var r;(r=this.rewardAdManager)==null||r.withCommand(()=>{var n;(n=this.rewardAdManager)==null||n.destroy("ignored")})}),pn(this,"requestAd",(r,n)=>{var i;if(!this.rewardAdManager){(i=r.onAdError)==null||i.call(r,ut.from(new Error("rewardAdManager not initialized"),"JOLIBOX_IMA_ERROR"));return}this.rewardAdManager.requestAds({beforeAd:r.onAdRequested,beforeReward:o=>{var a,s;(a=r.onAdLoaded)==null||a.call(r,void 0),o(),(s=r.onAdPlaying)==null||s.call(r,void 0)},adDismissed:()=>{},adViewed:()=>{},adBreakDone:o=>{var a,s;switch(o){case"viewed":{(a=r.onAdCompleted)==null||a.call(r,void 0);break}case"ignored":break;default:{(s=r.onAdError)==null||s.call(r,ut.from(new Error(o),"JOLIBOX_IMA_ERROR"));break}}}})}),this.context=t,this.contextInfo=t.getContextInfo(),this.insertScript()}};Fl=class e{constructor(t){if(hr(this,"context",void 0),hr(this,"contextInfo",void 0),hr(this,"providers",{}),hr(this,"requestContext",void 0),hr(this,"adsRequest",void 0),hr(this,"initialized",!1),hr(this,"preloadedAd",null),hr(this,"shouldCache",!1),t)this.context=t,this.requestContext=new Ca(t),this.adsRequest=new Ul(t,{reward:!1,interstitial:!1,afv:!1}),this.contextInfo=this.context.getContextInfo();else throw new Error("JoliboxAdsForVideo requires a configuration object")}init(){return g(this,arguments,function*(){var t;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n,i=sessionStorage.getItem(e.STORAGE_KEY_INIT);if(i){sessionStorage.removeItem(e.STORAGE_KEY_INIT);try{n=JSON.parse(i)}catch(o){}}if(n!=null&&n.length||(R.log("[Jolibox SDK Ads][Trace][AFV] init /api/ads/init request",{contextData:this.requestContext.getRequestContextData("AdsAFVSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}),n=(yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFVSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}})).data,R.log("[Jolibox SDK Ads][Trace][AFV] init /api/ads/init response",{length:(t=n==null?void 0:n.length)!=null?t:null,data:n})),r&&n!=null&&n.length)try{sessionStorage.setItem(e.STORAGE_KEY_INIT,JSON.stringify(n))}catch(o){}if((n==null?void 0:n.length)>0)for(let o of n)switch(o.provider){case"GOOGLE_GPT":{let a=new sh(this.context);yield a.init(o),this.providers.GOOGLE_GPT=a;break}case"GOOGLE_IMA":{let a=new ih(this.context);yield a.init(o),this.providers.GOOGLE_IMA=a;break}case"OKSPIN":{let a=new oh(this.context);yield a.init(o),this.providers.OKSPIN=a;break}case"APPSROCKETS":{let a=new ah(this.context);yield a.init(o),this.providers.APPSROCKETS=a;break}}this.adsRequest.cacheAFVInfo(),this.initialized=!0,this.shouldCache=r,this.preload()})}preload(){let t=sessionStorage.getItem(e.STORAGE_KEY_INFO);if(t){sessionStorage.removeItem(e.STORAGE_KEY_INFO);try{this.preloadedAd=JSON.parse(t);return}catch(r){}}this.adsRequest.getAFVAdsInfo(!0).then(r=>{if(R.log("[Jolibox SDK Ads][Trace][AFV] preload adsInfo",r),this.preloadedAd=r,this.shouldCache&&r)try{sessionStorage.setItem(e.STORAGE_KEY_INFO,JSON.stringify(r))}catch(n){}}).catch(()=>{this.preloadedAd=null})}destroy(){let t=Object.values(this.providers);for(let r of t)r.destroy();this.initialized=!1,this.preloadedAd=null}requestAd(t){return g(this,null,function*(){var r,n,i,o,a,s,c,l,d,u,p,f;if((r=this.context.eventEmitter)==null||r.emit("isAdShowing",!0),this.initialized||(yield this.init()),!this.context.checkNetwork()){let m=ut.from(new Error("No network connection"),"JOLIBOX_IMA_ERROR");(n=t.onAdError)==null||n.call(t,m);return}try{R.log("[Jolibox SDK Ads][Trace][AFV] requestAd preloadedAd",this.preloadedAd);let m=(i=this.preloadedAd)!=null?i:yield this.adsRequest.getAFVAdsInfo(!0);this.preloadedAd=null;let v=m==null?void 0:m.code,b=m==null?void 0:m.data;if(v==="BYPASS_ADS"){(o=t.onAdRequested)==null||o.call(t),(a=t.onAdLoaded)==null||a.call(t,void 0),(s=t.onAdPlaying)==null||s.call(t,void 0),(c=t.onAdCompleted)==null||c.call(t,void 0);return}if(b){let y=b.sort((x,C)=>x.seq-C.seq);if(y.length===0){let x=ut.from(new Error("No ads available"),"JOLIBOX_IMA_ERROR");(d=t.onAdError)==null||d.call(t,x);return}let _=!0,A=null,k=new rh(this.context);for(;y.length>0;){let x=y.shift(),C=this.providers[x.provider];if(C){let[E,H]=yield k.callAdRequestAndContinue(C,t,x);_=E,A=H}else _=!0,A=ut.from(new Error("No provider available"),"JOLIBOX_IMA_ERROR");if(!_)break}_&&A&&((u=t.onAdError)==null||u.call(t,A))}else{let y=ut.from(new Error("Unknown error"),"JOLIBOX_IMA_ERROR");(l=t.onAdError)==null||l.call(t,y);return}}catch(m){let v=ut.from(new Error("Failed to request ad"),"JOLIBOX_IMA_ERROR");(p=t.onAdError)==null||p.call(t,v)}finally{(f=this.context.eventEmitter)==null||f.emit("isAdShowing",!1),this.preload()}})}};hr(Fl,"STORAGE_KEY_INIT","jolibox_afv_init_data");hr(Fl,"STORAGE_KEY_INFO","jolibox_afv_info_data")});function GP(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return g(this,null,function*(){return yield i.reduce((s,c)=>g(this,null,function*(){let l=yield s;if(l===!0)return!0;JP&&console.log(`handleReward ${c}`);let d=e.get(c),u=d?yield d(...o):l;return JP&&console.log(`handleReward ${c} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return g(this,null,function*(){t=(...o)=>g(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return g(this,null,function*(){r=(...o)=>g(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Dr,loginGuide:Lr}}})})},getRewardsTypes(...i){return g(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return g(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:Dr,loginGuide:Lr}})}}}var JP,HP=T(()=>{"use strict";V();Ve();JP=S.testMode});var fh,mh,Hl,VP=T(()=>{"use strict";D();fh=class{constructor(t){this.httpClient=t}execute(t,r){return g(this,null,function*(){let n=(r==null?void 0:r.method)||"POST",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){var r,n,i;return{unlockOptions:((r=t.data)==null?void 0:r.unlockOptions)||[],joliCoin:((n=t.extra)==null?void 0:n.joliCoin)||{balance:0,enableAutoDeduct:!1},joliGem:((i=t.extra)==null?void 0:i.joliGem)||{balance:0,enableAutoDeduct:!1}}}mergeData(t,r){return{code:"SUCCESS",message:"success",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin||{balance:0,enableAutoDeduct:!1},joliGem:t.joliGem||{balance:0,enableAutoDeduct:!1}}}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin,joliGem:t.joliGem}}}},mh=class{constructor(t){this.httpClient=t}execute(t,r){return g(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){let r=t.data;return P({joliCoinUseAndCharge:r==null?void 0:r.joliCoinUseAndCharge,loginGuide:r==null?void 0:r.loginGuide},r)}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:t}}},Hl=class{constructor(t){this.unlockOptionsService=new Jt(new fh(t),{duration:30*60*1e3,timeout:1e3,keyGenerator:r=>r,consistencyChecker:(r,n)=>r.unlockOptions.length!==n.unlockOptions.length?!1:r.unlockOptions.every((i,o)=>{var s,c;let a=n.unlockOptions[o];return i.type===a.type&&((s=i.joliGemChoice)==null?void 0:s.joliGemQuantity)===((c=a.joliGemChoice)==null?void 0:c.joliGemQuantity)})}),this.globalConfigService=new Jt(new mh(t),{duration:60*60*1e3,timeout:1e3,keyGenerator:r=>r})}getUnlockOptions(){return g(this,arguments,function*(t={}){return yield this.unlockOptionsService.request("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}getGlobalConfig(){return g(this,null,function*(){return yield this.globalConfigService.request("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}refreshUnlockOptions(){return g(this,arguments,function*(t={}){return yield this.unlockOptionsService.forceRequest("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}refreshGlobalConfig(){return g(this,null,function*(){return yield this.globalConfigService.forceRequest("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}warmupCache(){return g(this,null,function*(){yield Promise.all([this.unlockOptionsService.warmupCache("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",method:"POST"}),this.globalConfigService.warmupCache("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})])})}clearAllCache(){this.unlockOptionsService.clearCache(),this.globalConfigService.clearCache()}getCacheStats(){return{unlockOptions:this.unlockOptionsService.getCacheStats(),globalConfig:this.globalConfigService.getCacheStats()}}clearExpiredCache(){this.unlockOptionsService.clearExpiredCache(),this.globalConfigService.clearExpiredCache()}}});function gh(e){return hh||(hh=new Hl(e)),hh}var U9,M9,F9,hh,vh,yh,bh,_h=T(()=>{"use strict";VP();Ve();D();U9=()=>(e,t)=>{let r={SUBSCRIPTION:4,JOLI_GEM:3,JOLI_GEM_ONLY:3,JOLI_COIN:2,JOLI_COIN_ONLY:2,ADS:1};return r[t]-r[e]},M9=["openJolicoinGuide",{method:"getABTest",platforms:["android"],nativeVersionCode:1050100},"userTrackAsync",{method:"openMiniapp",nativeVersionCode:1050100}],F9=e=>{if(!e.length)return["ADS"];if(e.includes("JOLI_GEM")){if(e.length===1)return["JOLI_GEM_ONLY"];if(e.includes("SUBSCRIPTION")&&e.length===2)return["SUBSCRIPTION","JOLI_GEM_ONLY"]}if(e.includes("JOLI_COIN")){if(e.length===1)return["JOLI_COIN_ONLY"];if(e.includes("SUBSCRIPTION")&&e.length===2)return["SUBSCRIPTION","JOLI_COIN_ONLY"]}return e.sort(U9())},hh=null;vh=e=>{e.registerRewardsFetcher(t=>g(void 0,null,function*(){var i,o,a,s,c;let r=["ADS"],n=gh(t);try{let l=yield n.getUnlockOptions({});if(l.code!=="SUCCESS")return r;F.emit(rl,{options:((i=l.data)==null?void 0:i.unlockOptions)||[],userJoliCoin:((o=l.extra)==null?void 0:o.joliCoin)||{balance:0,enableAutoDeduct:!1},userGem:((a=l.extra)==null?void 0:a.joliGem)||{balance:0,enableAutoDeduct:!1}});let d=((c=(s=l.data)==null?void 0:s.unlockOptions)==null?void 0:c.map(u=>u.type))||Array.from(r);return F9(d)}catch(l){return console.error("getRewardOptions error (cached):",l),r}}))},yh=e=>{e.registerRewardFrequencyConfigFetcher(t=>g(void 0,null,function*(){var n,i,o,a;let r=gh(t);try{let s=yield r.getGlobalConfig();return F.emit(Wt,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||Dr,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||Lr}),s.data&&Ae.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||Dr,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||Lr}}catch(s){return console.error("getGlobalConfig error (cached):",s),F.emit(Wt,{joliCoinUseAndCharge:Dr,loginGuide:Lr}),Ae.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:Dr,loginGuide:Lr,supportedHostMethods:M9}}),{joliCoinUseAndCharge:Dr,loginGuide:Lr}}}))},bh=e=>g(void 0,null,function*(){yield gh(e).warmupCache(),console.log("Reward cache warmed up")})});var wh=T(()=>{"use strict";_h();_h()});var $P,KP=T(()=>{"use strict";$P=e=>t=>g(void 0,null,function*(){try{console.log("trigger @jolibox/ads reward",t),yield e.adBreak(t)}catch(r){console.error("-----createAdsRewardHandler error-----",r)}return!0})});var Fe,Qi,Dt=T(()=>{"use strict";Ve();pr();Ve();Fe=$e(F,rl),Qi=(e,t)=>{var n;let r=(n=e.options)==null?void 0:n.some(i=>i.type==="SUBSCRIPTION");return console.log("typeof extraCheck",typeof t,t==null?void 0:t()),r&&(!t||(t==null?void 0:t()))}});var Vl,Sh=T(()=>{"use strict";Vl={JOLI_COIN:{balanceEndpoint:"/api/joli-coin/balance",balanceDetailEndpoint:"/api/joli-coin/balance-detail",unlockEndpoint:"/api/joli-coin/unlock",unlockType:"JOLI_COIN"},GEM:{balanceEndpoint:"/api/joli-gem/balance",balanceDetailEndpoint:"/api/joli-gem/balance-detail",unlockEndpoint:"/api/joli-gem/unlock",unlockType:"GEM"}}});var St,hn=T(()=>{"use strict";D();St=z()});function WP(e){return Ih||(Ih=new Eh(e)),Ih}var Ah,Eh,Ih,kh,$n,Xi=T(()=>{"use strict";D();Ah=class{constructor(t){this.httpClient=t}execute(t,r){return g(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},Eh=class{constructor(t){this.balanceService=new Jt(new Ah(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getBalance(t="JOLI_COIN"){return g(this,null,function*(){return(yield this.balanceService.request("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}refreshBalance(t="JOLI_COIN"){return g(this,null,function*(){return(yield this.balanceService.forceRequest("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}warmupBalance(t="JOLI_COIN"){return g(this,null,function*(){yield this.balanceService.warmupCache("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})})}clearBalanceCache(){this.balanceService.clearCache()}getBalanceCacheStats(){return this.balanceService.getCacheStats()}clearExpiredCache(){this.balanceService.clearExpiredCache()}},Ih=null;kh=(e,t="JOLI_COIN")=>g(void 0,null,function*(){return yield WP(e).getBalance(t)}),$n=(e,t="JOLI_COIN")=>g(void 0,null,function*(){let n=yield WP(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var zP=T(()=>{"use strict";Xi()});function Ph(e){return Ch||(Ch=new Th(e)),Ch}var xh,Th,Ch,Rh,Kn,$l,Zi=T(()=>{"use strict";D();xh=class{constructor(t){this.httpClient=t}execute(t,r){return g(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},Th=class{constructor(t){this.gemBalanceService=new Jt(new xh(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getGemBalance(t="GEM"){return g(this,null,function*(){return(yield this.gemBalanceService.request("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}refreshGemBalance(t="GEM"){return g(this,null,function*(){return(yield this.gemBalanceService.forceRequest("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}warmupGemBalance(t="GEM"){return g(this,null,function*(){yield this.gemBalanceService.warmupCache("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})})}clearGemBalanceCache(){this.gemBalanceService.clearCache()}getGemBalanceCacheStats(){return this.gemBalanceService.getCacheStats()}clearExpiredCache(){this.gemBalanceService.clearExpiredCache()}},Ch=null;Rh=(e,t="GEM")=>g(void 0,null,function*(){return yield Ph(e).getGemBalance(t)}),Kn=(e,t="GEM")=>g(void 0,null,function*(){let n=yield Ph(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),$l=(e,t="GEM")=>g(void 0,null,function*(){yield Ph(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var YP=T(()=>{"use strict";Zi()});var Bt,Wn=T(()=>{"use strict";zP();YP();Bt={JOLI_COIN:{fetchBalance:kh,getQuantity:e=>{var t,r,n;return(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(i=>i.type==="JOLI_COIN"))==null?void 0:r.joliCoinChoices[0].joliCoinQuantity)!=null?n:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userJoliCoin)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userJoliCoin",isEnough:(e,t)=>{var r,n;return(n=(r=e==null?void 0:e.options)==null?void 0:r.some(i=>i.type==="JOLI_COIN"&&i.joliCoinChoices.some(o=>{var a;return o.joliCoinQuantity<=((a=t==null?void 0:t.balance)!=null?a:0)})))!=null?n:!1}},JOLI_GEM:{fetchBalance:Rh,getQuantity:e=>{var t,r,n,i;return(i=(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(o=>o.type==="JOLI_GEM"))==null?void 0:r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userGem)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userGem",isEnough:(e,t)=>{var n,i,o;let r=e==null?void 0:e.options.find(a=>a.type==="JOLI_GEM");return r?((i=(n=r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0)<=((o=t==null?void 0:t.balance)!=null?o:0):!1}}}});var Ra,Gr,Oh=T(()=>{"use strict";hn();Dt();pr();Ve();Ve();Wn();Ra=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;St.registerCommand(`Rewards.${e}.useJolicoin`,()=>g(void 0,null,function*(){let i=yield Fe.getData(),o=Bt[t],a=o.getCurrentUser(i),s=o.getQuantity(i),c=!!(a!=null&&a.enableAutoDeduct);return console.log("-----unlockOptions usemodal-----",i,c,s),(yield n({enableAutoDeduct:c,userCurrency:a,quantity:s,currency:t}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},Gr=(e,t)=>r=>g(void 0,null,function*(){let n=$e(F,Mn);return F.emit(il,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var Oa,Hr,QP=T(()=>{"use strict";hn();Dt();Ve();pr();Ve();Wn();Zi();Xi();Oa=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;St.registerCommand(`Rewards.${e}.usePayment`,()=>g(void 0,null,function*(){var p;let o=yield Fe.getData(),a=Bt[t],s=yield a.fetchBalance(n),c=a.getQuantity(o),l=a.getCurrentUser(o),d=a.createUpdatedUser((p=s==null?void 0:s.balance)!=null?p:0,l.enableAutoDeduct),u=a.getUpdateKey();if(Fe.updateData({[u]:d}),console.log("-----unlockOptions payment-----",o,d,c,t),!a.isEnough(o,d)){let f=yield i({userCurrency:d,currencyQuantity:c,currency:t});return t==="JOLI_GEM"?Kn(n):$n(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},Hr=(e,t)=>r=>g(void 0,null,function*(){let n=$e(F,Kt);return F.emit(nl,e,{userCurrency:r.userCurrency,quantity:r.currencyQuantity,currency:r.currency,enableAutoDeduct:r.userCurrency.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult})});var Nh,Vr,XP=T(()=>{"use strict";V();hn();pr();Ve();Ve();D();Dt();Wn();Nh=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;St.registerCommand(`Rewards.${e}.useUnloginModal`,()=>g(void 0,null,function*(){var s,c,l;let o=(s=S.hostUserInfo)==null?void 0:s.isLogin,a=yield Fe.getData();if(console.log("-----isLogin-----",!!o),!o){let d=yield n(t);if(console.log("-----unloginModalResult-----",d),d.result=="FAILED"||d.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:u,claimedRewardValue:p}=(c=d.rewards)!=null?c:{};if(d.result=="SUCCESS"){u&&p&&(yield $a(3e3));let f=Bt[t],m=yield f.fetchBalance(i),v=f.getQuantity(a),b=f.getCurrentUser(a),y=f.createUpdatedUser((l=m==null?void 0:m.balance)!=null?l:0,b.enableAutoDeduct),_=f.getUpdateKey();if(Fe.updateData({[_]:y}),y.balance>=v)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Vr=(e,t)=>r=>g(void 0,null,function*(){let n=$e(F,Nr);return F.emit(ol,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var zn=T(()=>{"use strict";Oh();QP();XP()});var j9,Kl,Dh=T(()=>{"use strict";V();D();Sh();zn();hn();Xi();Wn();Dt();j9=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:c,hasSubscription:l}})=>{Oa(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),Ra(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let d=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return u=>g(void 0,null,function*(){var p,f,m,v;try{let b=yield o.getData();if(Qi(b,l)){let k=Bt.JOLI_COIN,x=yield k.fetchBalance(t),C=k.getCurrentUser(b),E=k.createUpdatedUser((p=x==null?void 0:x.balance)!=null?p:0,C.enableAutoDeduct);if(!k.isEnough(b,E))return i==null||i(u),!1}else{let k=!0;for(let x of d){let C=yield St.executeCommand(x);if(k=k&&C.result!=="FAILED",C.result!=="CONTINUE")break}if(!k)return i==null||i(u),!1}let _=Vl[r],A=yield t.post(_.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${ei()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});if(console.log("-----unlockWithCurrency request result-----",A),A.code=="SUCCESS"){try{(m=u.adBreakDone)==null||m.call(u,{breakType:u.type,breakName:"name"in u&&(f=u.name)!=null?f:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in u&&((v=u.adViewed)==null||v.call(u)),$n(t)}catch(k){console.error("-----unlockWithJolicoin adBreakDone error-----",k)}return n==null||n({quantity:A.data.quantity,balance:A.data.balance}),!0}return i==null||i(u),!1}catch(b){if(console.info("JolicoinRewardHandler error:",b),b instanceof Error&&b.message=="CANCEL")throw b;return i==null||i(u),!1}finally{o.clearCache()}})},Kl=(e,t,r)=>j9(e,t,"JOLI_COIN",r)});var ZP,eR=T(()=>{"use strict";Dt();Dh();zn();ZP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Gr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Hr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Vr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Kl("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Fe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var tR,rR=T(()=>{"use strict";Dh();Dt();zn();tR=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=l=>{var d;r==null||r(),(d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=Gr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Hr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Vr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Kl("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Fe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var Wl,Lh=T(()=>{"use strict";V();D();Sh();zn();Oh();hn();Zi();Wn();Dt();Wl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s,hasSubscription:c}})=>{Nh(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),Oa(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),Ra(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>g(void 0,null,function*(){var u,p,f,m;try{let v=yield i.getData(),b=Qi(v,c);if(console.log("[GemHandler] supportSubscription",b,v),b){let A=Bt.JOLI_GEM,k=yield A.fetchBalance(t),x=A.getCurrentUser(v),C=A.createUpdatedUser((u=k==null?void 0:k.balance)!=null?u:0,x.enableAutoDeduct);if(!A.isEnough(v,C))return n==null||n(d),!1}else{let A=!0;for(let k of l){let x=yield St.executeCommand(k);if(console.log("[GemHandler] command result",x,k),A=A&&x.result!=="FAILED",x.result!=="CONTINUE")break}if(!A)return n==null||n(d),!1}let y=Vl.GEM,_=yield t.post(y.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${ei()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});if(console.log("-----unlockWithGem request result-----",_),_.code=="SUCCESS"){try{(f=d.adBreakDone)==null||f.call(d,{breakType:d.type,breakName:"name"in d&&(p=d.name)!=null?p:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((m=d.adViewed)==null||m.call(d)),Kn(t)}catch(A){console.error("-----unlockWithGem adBreakDone error-----",A)}return r==null||r({quantity:_.data.quantity,balance:_.data.balance}),!0}return n==null||n(d),!1}catch(v){if(console.info("GemRewardHandler error:",v),v instanceof Error&&v.message=="CANCEL")throw v;return n==null||n(d),!1}finally{i.clearCache()}})}});var nR,iR=T(()=>{"use strict";Dt();Lh();zn();nR=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Gr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Hr("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Vr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Wl("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Fe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var oR,aR=T(()=>{"use strict";Lh();Dt();zn();oR=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=l=>{var d;r==null||r(),(d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=Gr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Hr("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Vr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Wl("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Fe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var sR,cR,qh=T(()=>{"use strict";Wn();hn();Dt();pr();Ve();Ve();sR=e=>{let{showSubscriptionModal:t}=e;St.registerCommand("Rewards.subscription",()=>g(void 0,null,function*(){var s,c;let r=yield Fe.getData(),n=(c=(s=r==null?void 0:r.options)==null?void 0:s.find(l=>l.type==="JOLI_GEM"))==null?void 0:c.type,i=Bt[n?"JOLI_GEM":"JOLI_COIN"],o=i.getCurrentUser(r);return i.isEnough(r,o)?{result:"FAILED"}:{result:(yield t())==="SUCCESS"?"SUCCESS":"FAILED"}}))},cR=e=>()=>g(void 0,null,function*(){let t=$e(F,Fn);return F.emit(al,e),(yield t.getFreshData()).result})});var lR=T(()=>{"use strict";qh()});var uR,dR=T(()=>{"use strict";hn();lR();V();Dt();Xi();Zi();uR=(e,t,{handlers:{handleSubSuccess:r,handleSubFailed:n,unlockOptionsHandler:i,showSubscriptionModal:o,hasSubscription:a}})=>{sR({showSubscriptionModal:o});let s=["Rewards.subscription"];return c=>g(void 0,null,function*(){var l,d,u,p,f,m;try{let v=yield i.getData();if(!Qi(v,a))return!1;let y=!0;for(let _ of s){let A=yield St.executeCommand(_);if(y=y&&A.result!=="FAILED",A.result!=="CONTINUE")break}if($n(t),Kn(t),console.log("-----unlockWithSubscription result-----",y),y){try{(d=c.adBreakDone)==null||d.call(c,{breakType:c.type,breakName:"name"in c&&(l=c.name)!=null?l:"",breakFormat:c.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in c&&((u=c.adViewed)==null||u.call(c)),(m=(f=S).onEnvConfigChanged)==null||m.call(f,{hostUserInfo:J(P({},(p=S.hostUserInfo)!=null?p:{isLogin:!1}),{isSubUser:!0})})}catch(_){console.error("-----unlockWithSubscription adBreakDone error-----",_)}return r==null||r(),!0}return n==null||n(c),!1}catch(v){if(console.info("SubscriptionRewardHandler error:",v),v instanceof Error&&v.message=="CANCEL")throw v;return n==null||n(c),!1}finally{}})}});var pR,fR=T(()=>{"use strict";Dt();dR();qh();pR=(e,{onSubSuccess:t,onSubFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=cR("SUBSCRIPTION");return uR("SUBSCRIPTION",e,{handlers:{handleSubSuccess:t,handleSubFailed:i,unlockOptionsHandler:Fe,showSubscriptionModal:o,hasSubscription:n}})}});var jt,mR=T(()=>{"use strict";HP();wh();KP();eR();rR();iR();aR();fR();Xi();Zi();jt=GP();vh(jt);yh(jt)});var zl,J9,yr,G9,Na,H9,hR,gR,V9,$9,Uh,K9,W9,z9,vR=T(()=>{"use strict";D();We();dr();PT();_m();ph();At();V();gt();de();mR();bs();wh();zl=z(),J9=()=>{let{data:e}=q("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},yr={get:(e,t)=>Y(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>Y(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},G9={httpClient:yr,checkNetwork:J9,track:j,eventEmitter:Sn,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,c,l;return{hostAppId:(t=(e=S.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=S.deviceInfo.did)!=null?r:"",adId:(n=S.deviceInfo.adId)!=null?n:"",sessionId:(i=S.sessionId)!=null?i:"",userId:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:S.mpId,testAdsMode:S.testAdsMode,channel:(s=S.joliSource)!=null?s:"",deviceBrand:S.deviceInfo.brand,deviceModel:S.deviceInfo.model,osType:S.platform==="android"?"ANDROID":S.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=S.joliSource)!=null?c:"",deviceInfo:{platform:S.platform,nativeSDKVersionCode:(l=S.sdkInfo.nativeSDKVersionCode)!=null?l:0}}}},Na=new Ki(G9);jt.getRewardFrequencyConfig(yr).then(e=>{console.log("getRewardFrequencyConfig",e)});jt.registerRewardHandler("ADS",$P(Na));jt.registerRewardHandler("JOLI_COIN",ZP(yr,{onUnlockSuccess:e=>{hR(e),j("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>_e("invokeSubscriptionPanelSync")}));jt.registerRewardHandler("JOLI_COIN_ONLY",tR(yr,{onUnlockSuccess:e=>{hR(e),j("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>_e("invokeSubscriptionPanelSync")}));jt.registerRewardHandler("JOLI_GEM",nR(yr,{onUnlockSuccess:e=>{gR(e),j("gem_unlock_success",{quantity:e.quantity})},hasSubscription:()=>_e("invokeSubscriptionPanelSync")}));jt.registerRewardHandler("JOLI_GEM_ONLY",oR(yr,{onUnlockSuccess:e=>{gR(e),j("gem_unlock_success",{quantity:e.quantity,isOnly:!0})},hasSubscription:()=>_e("invokeSubscriptionPanelSync")}));H9=()=>{j("subscription_unlock_success",{})};jt.registerRewardHandler("SUBSCRIPTION",pR(yr,{onSubSuccess:H9.bind(void 0),hasSubscription:()=>_e("invokeSubscriptionPanelSync")}));hR=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Or(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})};bh(yr);$l(yr);Sn.on("isAdShowing",e=>{Mi("JOLIBOX_ADS_EVENT",{isAdShowing:e})});gR=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Or(r,{customStyle:{mark:{marginRight:"8px"},base:{"font-size":"25px","font-weight":"700","line-height":"18px"},span:{width:"auto",minWidth:"fit-content",maxWidth:"60px",textAlign:"center",padding:"0 2px",lineHeight:"25px"},gem:{transform:"translateY(-2px)",width:"28px",height:"28px"}}})},V9=Q("adInit",{implement:e=>{Na.init(e)}}),$9=Q("adConfig",{implement:e=>{Na.adConfig(e)}}),Uh=!1,K9=e=>{var t,r,n;(r=e.adBreakDone)==null||r.call(e,{breakType:e.type,breakName:"name"in e&&(t=e.name)!=null?t:"",breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in e&&((n=e.adViewed)==null||n.call(e))},W9=Q("adBreak",{implement:e=>{var r;if((r=S.hostUserInfo)==null?void 0:r.isSubUser){K9(e);return}if(e.type==="reward"){if(Uh)return;Uh=!0,jt.getRewardsTypes(yr).then(n=>{jt.handleReward(n,e).catch(i=>{var o;console.info("handleReward failed in native",i),(o=e.adBreakDone)==null||o.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{Uh=!1})})}else Na.adBreak(e)}}),z9=Q("adUnit",{implement:e=>{Na.adUnit(e)}});zl.registerCommand("AdsSDK.init",V9);zl.registerCommand("AdsSDK.adConfig",$9);zl.registerCommand("AdsSDK.adBreak",W9);zl.registerCommand("AdsSDK.adUnit",z9);L("AdsSDK.init",{version:"1.0.0"});L("AdsSDK.adConfig",{version:"1.0.0"});L("AdsSDK.adBreak",{version:"1.0.0"});L("AdsSDK.adUnit",{version:"1.0.0"})});var Da,Y9,Q9,X9,Z9,eW,yR=T(()=>{"use strict";D();de();We();V();Da=z(),Y9=Q("openSchemaSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=q("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Qt(r.errMsg,r.errNo)}}),Q9=Q("openPageSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=q("openPageSync",{url:e});if(t!==0||!n)throw new Qt(r,t);return{webviewId:n.webviewId}}}),X9=Q("closePageSync",{paramsSchema:I.tuple(I.number()),implement:e=>{let{errNo:t,errMsg:r}=q("closePageSync",{webviewId:e});if(t!==0)throw new Qt(r,t)}}),Z9=Q("interceptSystemExitSync",{paramsSchema:I.tuple(I.boolean()),implement:e=>{Ae.emit("onInterceptSystemExit",{intercept:e}),Ae.emit("onInterceptBackPress",{intercept:e})}}),eW=Q("navigateToNativePage",{paramsSchema:I.tuple(I.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),I.object()),implement:(e,t)=>{q("callHostMethodAsync",{method:e,params:P({},t)})}});Da.registerCommand("RouterSDK.openSchema",Y9);Da.registerCommand("RouterSDK.openPage",Q9);Da.registerCommand("RouterSDK.closePage",X9);Da.registerCommand("RouterSDK.interceptSystemExit",Z9);Da.registerCommand("RouterSDK.navigateToNativePage",eW);L("router.openSchema",{version:"1.1.10"});L("router.openPage",{version:"1.1.10"});L("router.closePage",{version:"1.1.10"});L("router.interceptSystemExit",{version:"1.1.18"});L("router.navigateToNativePage",{version:"1.1.19"})});function nW(e){yn("cpLoadProgressEvent",{progress:e},S.webviewId,!0),Mi("CP_LOAD_PROGRESS",{progress:e})}var Fh,tW,Yl,Mh,bR,rW,iW,oW,_R=T(()=>{"use strict";D();We();de();V();At();_m();Fh=z(),tW=Q("onLoadFinished",{implement:()=>{yn("cpLoadFinishEvent",{},S.webviewId,!0),Mi("CP_LOAD_FINISH",{duration:performance.now()}),j("loadFinished",{duration:performance.now()})}}),Yl=null,Mh=!1,bR=0,rW=200;iW=Q("onLoadProgress",{paramsSchema:I.tuple(I.number()),implement:e=>{Yl=e,Mh||(Mh=!0,requestAnimationFrame(function t(){let r=Date.now();r-bR>=rW?(Yl!==null&&(nW(Yl),bR=r,Yl=null),Mh=!1):requestAnimationFrame(t)}))}}),oW=Q("onGameTTI",{paramsSchema:I.tuple(I.number().optional()),implement:()=>{yn("cpGameTTIEvent",{duration:performance.now()},S.webviewId,!0),Mi("CP_GAME_TTI",{duration:performance.now()}),j("gameTTI",{duration:performance.now()})}});Fh.registerCommand("RuntimeSDK.loadFinishedEvent",tW);Fh.registerCommand("RuntimeSDK.loadProgressEvent",iW);Fh.registerCommand("RuntimeSDK.gameTTIEvent",oW)});var aW,sW,cW,wR=T(()=>{"use strict";D();We();V();aW=z(),sW="isNativeSupport",cW=Q(sW,{paramsSchema:I.tuple(I.object({version:I.string()})),implement:e=>{let t=S.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:Og(Hu(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});aW.registerCommand("API.isNativeSupport",cW);L("isNativeSupport",{version:"1.1.46"})});var IR=h(Bh=>{"use strict";We();de();D();D();V();var SR=z(),lW=K("callHostMethod",{paramsSchema:I.tuple(I.object({method:I.string(),params:I.object().optional().default({})})),implement:r=>g(Bh,[r],function*({method:e,params:t}){if(!_e(e))throw new Qt("Method not supported",10001);let{errNo:n,errMsg:i,data:o}=yield q("callHostMethodAsync",{method:e,params:P({},t)});if(n!==0)throw new Qt(i,n);let c=o,{callHostMethodId:a}=c,s=tt(c,["callHostMethodId"]);return P({},s)})});SR.registerCommand("API.callHostMethod",lW);L("callHostMethod",{version:"1.1.49"});var uW=K("userTrackAsync",{paramsSchema:I.tuple(I.object({event:I.string(),eventType:I.number(),params:I.object().optional().default({})})),implement:n=>g(Bh,[n],function*({event:e,eventType:t,params:r}){if(!_e("userTrackAsync"))throw new Qt("Method not supported",10001);let{errNo:i,errMsg:o}=yield q("trackAsync",{event:e,eventType:t,data:P({},r),webviewId:S.webviewId});if(i!==0)throw new Qt(o,i)})});SR.registerCommand("API.track",uW);L("track",{version:"1.1.53"})});var kR=h(gn=>{"use strict";D();We();um();Kr();bm();de();var Yn=z(),AR=pl(),dW=K("purchaseGem",{paramsSchema:I.tuple(I.object({productId:I.string()})),implement:e=>g(gn,null,function*(){var r,n;let t=yield AR.purchase(e.productId);if(t.code!=="SUCCESS")throw Pe({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=(r=t.data)==null?void 0:r.totalAmount)!=null?n:""}})}),pW=K("getGemProducts",{paramsSchema:I.tuple(),implement:()=>g(gn,null,function*(){var t,r;let e=(r=(t=yield AR.getProductsInfoWithBalance())==null?void 0:t.paymentChoices)!=null?r:[];return console.info("choices",e),{products:e.map(n=>{var i;return{productId:n.productId,totalAmountStr:(i=n.totalAmountStr)!=null?i:"",quantity:n.quantity}})}})}),fW=K("getSubscriptionPlans",{paramsSchema:I.tuple(),implement:()=>g(gn,null,function*(){let e=yield Hn.getSubInfo();if(console.log("[PaymentAPI] getSubscriptionPlans result",e),!e)throw Pe({code:-1,msg:"[JoliboxSDK]: get subscription plans failed"});return{plans:e}})}),mW=K("flushSubInfoCache",{paramsSchema:I.tuple(),implement:()=>g(gn,null,function*(){yield Hn.updateAllNativePriceCache()})}),ER=e=>g(gn,null,function*(){var a;let{productId:t}=e,r=e.appStoreProductId,n=e.appStoreProductId,i=t;if(!e.appStoreProductId){let s=yield Hn.getTierByProductId(e.productId);if(!s)throw Pe({code:-1,msg:"[JoliboxSDK]: product not found"});r=s.basePlanId,n=s.appStoreProductId,i=s.nativeProductId}if(!r||!n||!i)throw Pe({code:-1,msg:"[JoliboxSDK]: product not found"});let o=yield Hn.subscribe({basePlanId:r,nativeProductId:i,appStoreProductId:n});return{result:o.result,subPlanId:o.subPlanId,errMsg:(a=o.message)!=null?a:""}}),hW=K("subscribe",{paramsSchema:I.tuple(I.object({productId:I.string(),appStoreProductId:I.string().optional()})),implement:ER}),gW=K("subscribeSpin",{paramsSchema:I.tuple(I.object({appStoreProductId:I.string().optional()})),implement:e=>g(gn,null,function*(){return ER(J(P({},e),{productId:"jolibox_app_spin_sub"}))})});Yn.registerCommand("PaymentSDK.purchaseGem",dW);Yn.registerCommand("PaymentSDK.getGemProducts",pW);Yn.registerCommand("PaymentSDK.getSubscriptionPlans",fW);Yn.registerCommand("PaymentSDK.subscribe",hW);Yn.registerCommand("PaymentSDK.subscribeSpin",gW);var vW=K("getSpinSubscriptionPrice",{paramsSchema:I.tuple(I.object({appStoreProductId:I.string()})),implement:e=>g(gn,null,function*(){let{data:t}=yield fe("requestSubscriptionPlansAsync",{appStoreProductIds:[e.appStoreProductId],type:"SPIN"});if(!t)throw Pe({code:-1,msg:"[JoliboxSDK]: get spin subscription price failed"});return{plans:Object.values(t).map(n=>{var i,o;return{basePlanId:n.basePlanId,productId:n.productId,formattedPrice:n.pricing.formattedPrice,originalPrice:n.pricing.originalPrice,trialDay:(o=(i=n.trial)==null?void 0:i.duration)!=null?o:0}})}})});Yn.registerCommand("PaymentSDK.flushSubInfoCache",mW);Yn.registerCommand("PaymentSDK.getSpinSubscriptionPrice",vW);L("payment.purchaseGem",{version:"1.2.9"});L("payment.getGemProducts",{version:"1.2.9"});L("payment.getSubscriptionPlans",{version:"1.2.9"});L("payment.subscribe",{version:"1.2.9"});L("payment.flushSubInfoCache",{version:"1.2.9"});L("payment.subscribeSpin",{version:"1.3.7"});L("payment.getSpinSubscriptionPrice",{version:"1.4.3"})});var xR=h(vn=>{"use strict";D();We();V();Kr();de();bs();At();ph();gt();var yW=()=>{let{data:e}=q("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},bW={get:(e,t)=>Y(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>Y(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},_W={httpClient:bW,checkNetwork:yW,track:j,eventEmitter:Sn,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,c,l;return{hostAppId:(t=(e=S.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=S.deviceInfo.did)!=null?r:"",adId:(n=S.deviceInfo.adId)!=null?n:"",sessionId:(i=S.sessionId)!=null?i:"",userId:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"TASK",objectId:S.mpId,testAdsMode:S.testAdsMode,channel:(s=S.joliSource)!=null?s:"",deviceBrand:S.deviceInfo.brand,deviceModel:S.deviceInfo.model,osType:S.platform==="android"?"ANDROID":S.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=S.joliSource)!=null?c:"",deviceInfo:{platform:S.platform,nativeSDKVersionCode:(l=S.sdkInfo.nativeSDKVersionCode)!=null?l:0}}}},jh=z(),CR=Zn(reportError),wW=K("getCoinDetails",{paramsSchema:I.tuple(I.function().optional()),implement:e=>g(vn,null,function*(){try{if(S.mpType!=="miniApp")return reportError(Pe({code:-1,msg:"[JoliboxSDK]: rewards info not supported in games. Only supported in mini apps."})),{code:"FAILURE",message:"[JoliboxSDK]: rewards info not supported in games. Only supported in mini apps."};if(!_e("requestCoinDetailsSync"))return reportError(Pe({code:-1,msg:"[JoliboxSDK]: rewards info not supported in this platform."})),{code:"FAILURE",message:"[JoliboxSDK]: rewards info not supported in this platform. lower than 1.7.1"};let r=e?CR(e):(()=>{console.log("default update function called")}).bind(vn),{errNo:n,errMsg:i,data:o}=q("requestCoinDetailsSync");if(n!==0)throw Pe({code:n!=null?n:-1,msg:i});return console.log("=====> sync data",o,n),q("requestCoinDetailsAsync").then(a=>{a.errNo==0&&a.data&&(r(a.data),console.log("=====> res.data",a.data))}),{code:"SUCCESS",message:"Successfully retrieved coin details",data:o}}catch(t){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to get coin details: "+t.message}}})});jh.registerCommand("RewardsSDK.getCoinDetails",wW);L("rewards.getCoinDetails",{version:"1.3.2"});var SW=K("createRewardsAdsManager",{implement:()=>g(vn,null,function*(){try{let e=new Ki(_W);if(S.mpType!=="miniApp")throw Pe({code:-1,msg:"[JoliboxSDK]: createRewardsAdsManager not supported in games. Only supported in mini apps."});return{code:"SUCCESS",message:"Successfully created RewardsAdsManager",data:{init:()=>g(vn,null,function*(){yield e.init(),e.adConfig({preloadAdBreaks:"on",sound:"off",onReady:()=>{}})}),showAd:(t,r=!1)=>g(vn,null,function*(){e.adBreak({type:"reward",beforeReward:n=>{var i;n(),(i=t.onAdLoaded)==null||i.call(t)},adDismissed:()=>{var n;(n=t.onAdDismissed)==null||n.call(t)},adViewed:()=>{},adBreakDone:n=>{var a,s;let i=n.breakStatus,o=i==="frequencyCapped"||i==="other"||i==="error"||i==="noAdPreloaded";i==="viewed"&&(console.log("-----> complete watch ads"),!r&&kt.reporter({event:"COMPLETE_WATCH_ADS"}),(a=t.onAdRewarded)==null||a.call(t)),o&&(console.log("-----> no ad preloaded or error occurred",i),(s=t.onAdError)==null||s.call(t,new Error("No ad preloaded or error occurred: "+i)))}})})}}}catch(e){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to create RewardsAdsManager"}}})});jh.registerCommand("Rewards.createRewardsAdsManager",SW);L("rewards.createRewardsAdsManager",{version:"1.3.4"});var IW=K("getLeaderBoardData",{paramsSchema:I.tuple(I.object({gameId:I.string(),onUpdate:I.function().optional()})),implement:e=>g(vn,null,function*(){try{if(!_e("requestGameLeaderboardSync"))return{code:"FAILURE",message:"[JoliboxSDK]: getLeaderBoardData not supported in this platform."};let t=e.onUpdate?CR(e.onUpdate):(()=>{console.log("default update function called")}).bind(vn),{errNo:r,errMsg:n,data:i}=q("requestGameLeaderboardSync",{gameId:e.gameId});if(r!==0)throw Pe({code:r!=null?r:-1,msg:n});return q("requestGameLeaderboardAsync",{gameId:e.gameId}).then(o=>{var a;if(o.errNo===0&&o.data)t(o.data);else throw Pe({code:(a=o.errNo)!=null?a:-1,msg:o.errMsg})}).catch(o=>{console.error("Failed to fetch leaderboard data asynchronously: ",o)}),{code:"SUCCESS",message:"Successfully retrieved leaderboard data",data:i}}catch(t){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to get leaderboard data: "+t.message}}})});jh.registerCommand("RewardsSDK.getLeaderBoardData",IW);L("rewards.getLeaderBoardData",{version:"1.3.9"})});var AW={};var ple,gle,Sle,Ile,Ale,TR=T(()=>{"use strict";Ex();ple=ue(kx());Nx();ho();Dx();gle=ue(Ux());el();vR();yR();_R();wR();Sle=ue(IR()),Ile=ue(kR()),Ale=ue(xR())});var PR=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[PR])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[PR]=!0;g(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(Ix(),Sx)),Promise.resolve().then(()=>(TR(),AW)),Promise.resolve().then(()=>(At(),yv))]);e()});