@jolibox/implement 1.3.0 → 1.3.2
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.
- package/.rush/temp/package-deps_build.json +7 -7
- package/dist/index.js +108 -25
- package/dist/index.native.js +168 -85
- package/dist/native/subscription/subscription-service.d.ts +1 -0
- package/implement.build.log +2 -2
- package/package.json +5 -5
- package/src/native/api/payment.ts +9 -2
- package/src/native/payment/__tests__/payment-service-simple.test.ts +5 -5
- package/src/native/payment/payment-service.ts +1 -1
- package/src/native/payment/registers/jolicoin-iap.ts +0 -4
- package/src/native/rewards/ui/payment-modal.ts +6 -2
- package/src/native/subscription/subscription-service.ts +81 -5
package/dist/index.native.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var XP=Object.create;var oa=Object.defineProperty,ZP=Object.defineProperties,eT=Object.getOwnPropertyDescriptor,tT=Object.getOwnPropertyDescriptors,rT=Object.getOwnPropertyNames,ia=Object.getOwnPropertySymbols,nT=Object.getPrototypeOf,ul=Object.prototype.hasOwnProperty,Um=Object.prototype.propertyIsEnumerable;var Mm=(e,t,r)=>t in e?oa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))ul.call(t,r)&&Mm(e,r,t[r]);if(ia)for(var r of ia(t))Um.call(t,r)&&Mm(e,r,t[r]);return e},U=(e,t)=>ZP(e,tT(t));var $e=(e,t)=>{var r={};for(var n in e)ul.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ia)for(var n of ia(e))t.indexOf(n)<0&&Um.call(e,n)&&(r[n]=e[n]);return r};var C=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Fm=(e,t)=>{for(var r in t)oa(e,r,{get:t[r],enumerable:!0})},iT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of rT(t))!ul.call(e,i)&&i!==r&&oa(e,i,{get:()=>t[i],enumerable:!(n=eT(t,i))||n.enumerable});return e};var re=(e,t,r)=>(r=e!=null?XP(nT(e)):{},iT(t||!e||!e.__esModule?oa(r,"default",{value:e,enumerable:!0}):r,e));var y=(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 uT(e){return!!(e!=null&&e.__nativeBuffers__)}function vl(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!uT(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=dT(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function fT(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:pT(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function vT(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Xm(e){return typeof e=="string"}function Pn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Gm(e){return typeof e=="number"&&!isNaN(e)}function bT(e){return typeof e=="undefined"}function _T(e){return bT(e)||e===null}function Zm(e){return typeof e=="function"}function wT(e){return Pn(e)&&Zm(e.then)}function eh(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Ei(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function xT(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 NT(){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 UT(e){return new Promise(t=>th(e)(t))}function th(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function FT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Ai(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function GT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)BT(e[n],t[n])}function BT(e,t){if(Xm(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Zm(t)){try{if(e instanceof t)return}catch(r){}if(!_T(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 zr(e,t){if(bl.config[e]){da.warn(`[can i use] ${e} already registered`);return}bl.config[e]=ar({},t)}function Hm(e,t){return`[${e}]:${t}`}function KT(e,t){$m||(fl=new sa({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),ml=new sa({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),hl=new sa({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{fl.flush(),ml.flush(),hl.flush()}),$m=!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:g}=f,b=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";fl.report({status:b,method:n(s,c),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-l}),l&&m&&g&&(ml.report({status:b,method:s,isForeground:d,duration:Number((m-l).toFixed(3))}),hl.report({status:b,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function ZT(e,t){let r=0,n=!0,i=XT.resolveMap,o=KT(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,gl.forEach(c=>la(this,[c],function*({method:l,args:d,resolve:u}){let p=yield s(l,d);u(p)})),gl.length=0});let a=(c,l)=>{let d=i.get(Number(c));if(!d)return;let u=vl(l);d(u),i.delete(Number(c))},s=(c,l)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new yT;if(i.set(r,m.resolve),!n&&$T.includes(c))return new Promise(A=>{gl.push({method:c,args:l,resolve:A})});let g=cT(ar({},{method:c,startTime:p,args:l,isForeground:f}),{invokeType:"js-bridge"}),b=!YT&&HT.includes(c),v=fT(l,b),w=b?v:JSON.stringify(v),E;if(c.endsWith("Sync")||VT.includes(c)?E=(d=e.call)==null?void 0:d.call(e,c,v,r):typeof w=="string"?E=e.invoke(c,w,r):E=(u=e.call)==null?void 0:u.call(e,c,w,r),E){try{typeof E=="string"&&(E=JSON.parse(E)),E=vl(E)}catch(A){da.error(A)}return i.delete(r),E.errorCode&&(E.errorCode=Hm(c,E.errorCode)),o(ar(ar({},g),E)),E}return c.endsWith("Sync")&&i.delete(r),m.promise.then(A=>(A.errorCode&&(A.errorCode=Hm(c,A.errorCode)),o(ar(ar({},g),A)),A))};return{invokeNative:s,applyNative:(c,l)=>{let d=s(c,l);return wT(d)?d.then(u=>Vm(c,u)):Vm(c,d)},invokeHandler:a}}function Vm(e,t){if(!Pn(t)){da.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=lT(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new kT(n,i,o,a);return s}function eR(e){if(globalThis[aa])return globalThis[aa];let t=new Sl,r=new Sl,n=new sa({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[aa]={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=vl(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===nh){c.forEach(l=>{let[d,u]=l;try{r.emit(d.slice(Ci.length),u,a)}catch(p){}});return}if(i.startsWith(Ci)){r.emit(i.slice(Ci.length),c,a);return}t.emit(i,c,a)}},globalThis[aa]}function tR(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(`${Ci}${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(nh,d,p)}catch(p){}}),n=void 0,t.clear()}));let l=t.get(s);l||(l=[],t.set(s,l)),l.push([`${Ci}${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(WT,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 rR(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=eR(e),{invokeNative:a,invokeHandler:s,applyNative:c}=ZT(e,r),{publish:l,emitNative:d}=tR(e);return{invokeHandler:s,subscribeHandler:t,applyNative:c,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:l,subscribe:i,unsubscribe:o}}function ih(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var oT,aT,sT,ca,zm,Km,jm,ar,cT,lT,la,dT,pT,Ym,mT,hT,Qm,gT,yT,ST,IT,ua,ET,kT,CT,dl,da,Bm,AT,yl,PT,bl,TT,RT,OT,xn,DT,jV,_l,se,qT,LT,ki,Ai,Sl,Il,MT,pl,jT,GV,El,Jm,BV,rh,JT,Ci,HT,$T,VT,nh,WT,zT,sa,$m,fl,ml,hl,gl,YT,kl,QT,XT,aa,Cl,It,oh,ah,nR,sh,Wm,me,F,Re,JV,iR,ch,Al,HV,$V,ce=C(()=>{"use strict";oT=Object.defineProperty,aT=Object.defineProperties,sT=Object.getOwnPropertyDescriptors,ca=Object.getOwnPropertySymbols,zm=Object.prototype.hasOwnProperty,Km=Object.prototype.propertyIsEnumerable,jm=(e,t,r)=>t in e?oT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ar=(e,t)=>{for(var r in t||(t={}))zm.call(t,r)&&jm(e,r,t[r]);if(ca)for(var r of ca(t))Km.call(t,r)&&jm(e,r,t[r]);return e},cT=(e,t)=>aT(e,sT(t)),lT=(e,t)=>{var r={};for(var n in e)zm.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ca)for(var n of ca(e))t.indexOf(n)<0&&Km.call(e,n)&&(r[n]=e[n]);return r},la=(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())});dT=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};pT=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)};Ym=Object.defineProperty,mT=Object.getOwnPropertyDescriptor,hT=(e,t)=>{for(var r in t)Ym(e,r,{get:t[r],enumerable:!0})},Qm=(e,t,r,n)=>{for(var i=n>1?void 0:n?mT(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&&Ym(t,r,i),i},gT=(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}yT=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))}})}};ST=(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))(ST||{}),IT=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}},ua=class extends IT{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},ET=class extends ua{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},kT=class extends ua{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},CT=class extends ua{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},dl=class extends ua{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};da={log:Ei("log"),warn:Ei("warn"),info:Ei("info"),error:Ei("error"),debug:Ei("debug")};Object.assign(globalThis,{logger:da});Bm=Symbol.for("Jolibox.canIUseMap"),AT={};globalThis[Bm]||(globalThis[Bm]=AT);yl=Symbol.for("Jolibox.canIUseMap.native"),PT={};globalThis[yl]||(globalThis[yl]=PT);bl={get config(){return globalThis[yl]}},TT=(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))(TT||{}),RT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(RT||{}),OT=(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))(OT||{});NT();xn=typeof window=="undefined",DT=()=>!xn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),jV={isiOS:!xn&&(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:!xn&&navigator.userAgent.includes("Android"),isMac:!xn&&navigator.userAgent.includes("Mac"),isFacebook:!xn&&navigator.userAgent.includes("FB_IAB"),isPC:!xn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},_l=class wl{constructor(t){this.element=t,this.next=wl.Undefined,this.prev=wl.Undefined}};_l.Undefined=new _l(void 0);se=_l,qT=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}},LT=0,ki=class{constructor(e){this.value=e,this.id=LT++}},Ai=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 ki&&(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 ki(t);return this._listeners?this._listeners instanceof ki?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 ki)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 ki?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Sl=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 Ai,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 qT,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)}},Il={};hT(Il,{None:()=>MT,filter:()=>FT,once:()=>th,toPromise:()=>UT});MT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});pl=Symbol.for("Jolibox.hostEmitter"),jT=()=>{let e=new Sl;return globalThis[pl]||(globalThis[pl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[pl]},GV=jT();El=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Ai,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 GT(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}};El=Qm([eh],El);Jm=class{constructor(){this._onWillExecuteCommand=new Ai,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Ai,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new El,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=vT(3e4)),this._starActivation}executeCommand(e,...t){return gT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Il.toPromise(Il.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}}};Jm=Qm([eh],Jm);BV=Symbol.for("Jolibox.commands");zr("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});zr("requestProductDetailsAsync",{version:102e4});zr("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});zr("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});zr("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});zr("userTrackAsync",{version:1e6});zr("openMiniapp",{version:1050100});rh=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let c=bl.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=xT(i,o);if(!s)return!1;if(Pn(s)){let c=s.version;return Gm(c)?typeof a=="number"&&a>=c:!0}return Gm(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};JT=()=>DT(),Ci="custom_event_",HT=[],$T=[],VT=["env","createRequestTask","login"],nh="__batch_event__",WT="__native_batch_event__",zT=e=>e==="pv"?e:"default",sa=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=zT(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&&Pn(a))throw new dl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let c=[];if(Pn(a))c.push(...Object.keys(a));else if(Xm(a)){if(i.length>0)throw new dl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);c.push(a)}else throw new dl(`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=Pn(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={}}},$m=!1;gl=[],YT=!1,kl=Symbol.for("Jolibox.invokeResolverInstance"),QT=new Map;globalThis[kl]||(globalThis[kl]=QT);XT={get resolveMap(){return globalThis[kl]}};aa=Symbol.for("Jolibox.subscribeInstance");It={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){It.trigger=e},onDoExit(e){It.exit=e},onDoBackPress(e){It.backPress=e}},oh=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new ET("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="")=>{It.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>la(void 0,null,function*(){let o=yield It.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Cl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=ih(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:oh,doExit:r};globalThis.joliboxJSCore=ar({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{It.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>la(void 0,null,function*(){let a=yield It.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Cl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let c=ih(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 la(this,null,function*(){let a=yield It.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:oh,doExit:n};globalThis.joliboxJSCore=ar({},i)}ah=Cl;if(!ah&&JT())throw new CT("No joliboxJScore is found, native bridge not found.");nR=ar({},ah),sh=rR(nR),{invokeHandler:Wm}=sh,{applyNative:me,invokeNative:F,onNative:Re,offNative:JV,subscribeHandler:iR,publish:ch,emitNative:Al,subscribe:HV,unsubscribe:$V}=sh;globalThis.joliboxJSBridge={callHandler:Wm,invokeHandler:Wm,subscribeHandler:iR}});function lR(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function hh(e){return new Promise(t=>setTimeout(t,e))}function Oi(e){return typeof e=="string"}function Yr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function gh(e){return typeof e=="object"&&Array.isArray(e)}function fa(e){return typeof e=="number"&&!isNaN(e)}function xr(e){return e===!0||e===!1}function vh(e){return typeof e=="undefined"}function Ni(e){return vh(e)||e===null}function uR(e){return typeof e=="function"}function yh(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function bh(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:dh(c)&&dh(s)?i[a]=n(fh({},s),c):Array.isArray(c)&&Array.isArray(s)?i[a]=[...s,...c]:i[a]=c}return i}return n(e,t)}function dh(e){return e&&typeof e=="object"&&e.constructor===Object}function _h(e,t){if(Array.isArray(e))return e.concat(t)}function Di(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 pR(e,t){return(...r)=>t(e,...r)}function ga(e){return t=>pR(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Gt(`${i}`))}})}function xi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function kh(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 jl(){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 yR(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")return`${o}.${a}`}return`${o}.jolibox.com`}function Gl(e){return yR("app","stg-app",e)}function Rn(e){return`https://${Gl(e)}`}function SR(e){return new Promise(t=>Ph(e)(t))}function Ph(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function IR(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Ri(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function kR(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)CR(e[n],t[n])}function CR(e,t){if(Oi(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(uR(t)){try{if(e instanceof t)return}catch(r){}if(!Ni(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 AR(){return typeof globalThis!="undefined"?globalThis[Th]:void 0}function xR(e){typeof globalThis!="undefined"&&(globalThis[Th]=e)}function Y(e=!1){let t=AR();if(!e&&t)return t;let r=new pa,n=new Nl,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 xR(i),i}var Dl,oR,lh,aR,sR,uh,fh,cR,mh,Kr,nt,dR,ql,qi,Ll,wh,Gt,ma,Sh,ha,Ih,Eh,Li,Ml,Bt,Pl,fR,Ul,ph,mR,J,Fl,hR,Tn,Pi,Mi,gR,vR,Ch,Ah,xh,Rt,Tl,le,bR,_R,Ti,Ri,Jt,Ol,wR,xl,ER,he,pa,Nl,Th,R=C(()=>{"use strict";Dl=Object.defineProperty,oR=Object.getOwnPropertyDescriptor,lh=Object.getOwnPropertySymbols,aR=Object.prototype.hasOwnProperty,sR=Object.prototype.propertyIsEnumerable,uh=(e,t,r)=>t in e?Dl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fh=(e,t)=>{for(var r in t||(t={}))aR.call(t,r)&&uh(e,r,t[r]);if(lh)for(var r of lh(t))sR.call(t,r)&&uh(e,r,t[r]);return e},cR=(e,t)=>{for(var r in t)Dl(e,r,{get:t[r],enumerable:!0})},mh=(e,t,r,n)=>{for(var i=n>1?void 0:n?oR(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&&Dl(t,r,i),i},Kr=(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}nt=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))}})}};dR=(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))(dR||{}),ql=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}},qi=class extends ql{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},Ll=class extends ql{constructor(){super(...arguments),this.kind="USER_ERROR"}},wh=class extends Ll{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Gt=class extends Ll{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))}},ma=class extends Ll{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))}},Sh=class extends qi{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},ha=class extends qi{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))}},Ih=class extends qi{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},Eh=class extends qi{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Li=class extends ql{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}}},Ml=class extends qi{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Bt={log:xi("log"),warn:xi("warn"),info:xi("info"),error:xi("error"),debug:xi("debug")};Object.assign(globalThis,{logger:Bt});Pl=Symbol.for("Jolibox.canIUseMap"),fR={};globalThis[Pl]||(globalThis[Pl]=fR);Ul={get config(){return globalThis[Pl]}},ph=Symbol.for("Jolibox.canIUseMap.native"),mR={};globalThis[ph]||(globalThis[ph]=mR);J=(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))(J||{}),Fl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Fl||{}),hR=(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))(hR||{}),Tn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});jl();Pi=typeof window=="undefined",Mi={isiOS:!Pi&&(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:!Pi&&navigator.userAgent.includes("Android"),isMac:!Pi&&navigator.userAgent.includes("Mac"),isFacebook:!Pi&&navigator.userAgent.includes("FB_IAB"),isPC:!Pi&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},gR="device_id",vR="advertising_id",Ch=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,Tn()),window.__joliboxLocalStorage__.getItem(e)),Ah=()=>new URLSearchParams(window.location.search).get("deviceId")||Ch(gR),xh=()=>new URLSearchParams(window.location.search).get("advertisingId")||Ch(vR);Rt=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=fh({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return Kr(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=>Kr(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 Kr(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 Kr(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return Kr(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 Kr(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)}},Tl=class Rl{constructor(t){this.element=t,this.next=Rl.Undefined,this.prev=Rl.Undefined}};Tl.Undefined=new Tl(void 0);le=Tl,bR=class{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){let t=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=t}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new le(e);if(this._first===le.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!==le.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}},_R=0,Ti=class{constructor(e){this.value=e,this.id=_R++}},Ri=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 Ti&&(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 Ti(t);return this._listeners?this._listeners instanceof Ti?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 Ti)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 Ti?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Jt=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 Ri,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 bR,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)}},Ol={};cR(Ol,{None:()=>wR,filter:()=>IR,once:()=>Ph,toPromise:()=>SR});wR=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});xl=Symbol.for("Jolibox.hostEmitter"),ER=()=>{let e=new Jt;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]},he=ER();pa=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Ri,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 kR(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}};pa=mh([yh],pa);Nl=class{constructor(){this._onWillExecuteCommand=new Ri,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Ri,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new pa,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=lR(3e4)),this._starActivation}executeCommand(e,...t){return Kr(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Ol.toPromise(Ol.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}}};Nl=mh([yh],Nl);Th=Symbol.for("Jolibox.commands")});function _e(e,t={}){Bl.emit("ERROR_REPORT",{error:e,options:t})}var Bl,Qr,dt=C(()=>{"use strict";R();R();Bl=new Jt,Qr=new Jt;_e.debounce=Di(_e,50,{leading:!0})});var Jl,PR,Rh,Oh,Nh=C(()=>{"use strict";R();dt();Jl=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{}}},PR=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Rh=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:Jl(o),payloadJson:Jl(a),signature:Jl(s)}}else throw"joli_source is missing"}catch(r){return _e(new Sh(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Oh=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=PR(e),o=r[2];return`${n}.${i}.${o}`}return t}});var TR,Hl,Dh=C(()=>{"use strict";R();TR="1.3.0",Hl=()=>TR});function Vl(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var RR,qh,$l,Lh,ue,OR,S,B=C(()=>{"use strict";R();Nh();Dh();R();RR={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Ah(),adId:xh(),pixelRatio:window.devicePixelRatio||1,platform:Mi.isAndroid?"android":Mi.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Hl()},schema:window.location.href,platform:Mi.isAndroid?"android":Mi.isiOS?"ios":"h5"},$l=(qh=globalThis.joliboxJSCore)==null?void 0:qh.env,ue=Object.assign({},(Lh=$l==null?void 0:$l())!=null?Lh:RR);OR=()=>{var g,b,v,w,E,A,P,T,k,G,fe;let{payloadJson:e,headerJson:t,signature:r}=ue.schema.length?Rh(ue.schema):{},n=`${ue.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ue.schema.length?ue.schema:window.location.href).searchParams,a=(v=(b=(g=o.get("mpId"))!=null?g:o.get("appId"))!=null?b:o.get("gameId"))!=null?v:"",s=(A=(E=(w=ue.clientSessionId)!=null?w:e==null?void 0:e.sessionId)!=null?E:o.get("sessionId"))!=null?A:n,c=!!((T=(P=e==null?void 0:e.testAdsMode)!=null?P:e==null?void 0:e.__testAdsMode)!=null?T:o.get("testAdsMode")==="true"),l=(fe=(G=(k=e==null?void 0:e.joliboxEnv)!=null?k:e==null?void 0:e.__joliboxEnv)!=null?G:o.get("joliboxEnv"))!=null?fe:"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 L;return(L=performance.timeOrigin)!=null?L:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return c},get joliboxEnv(){return l},get joliSource(){var L,O;return(O=(L=f.get("joliSource"))!=null?L:o.get("joliSource"))!=null?O:null},get mpId(){var L;return(L=a!=null?a:e==null?void 0:e.id)!=null?L:""},get mpVersion(){var L;return(L=t==null?void 0:t.ver)!=null?L:Hl()},get mpType(){var L,O;return(O=(L=t==null?void 0:t.__mpType)!=null?L:e==null?void 0:e.__mpType)!=null?O:"game"},get platform(){var L;return((L=ue.platform)!=null?L:ue.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ue.deviceInfo},get sdkInfo(){return ue.sdkInfo},get hostInfo(){return ue.hostInfo},get hostUserInfo(){return ue.hostUserInfo},get sessionId(){var L,O;return(O=(L=ue.clientSessionId)!=null?L:s)!=null?O:n},get channel(){return u},get webviewId(){var L;return(L=ue.webviewId)!=null?L:-1},get shouldInterupt(){return m},get from(){return e==null?void 0:e.__from},get baseApiHost(){return Gl(d)},get adId(){var L;return(L=ue.deviceInfo.adId)!=null?L:ue.deviceInfo.did},get language(){return ue.deviceInfo.lang},get sdkEnvironment(){return Vl("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Vl("gamedistribution","jolibox")?"gamedistribution":Vl("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var Ue,jt,An;let L=(Ue=ue.deviceInfo.pixelRatio)!=null?Ue:1,O=(jt=ue.deviceInfo.statusBarHeight)!=null?jt:e==null?void 0:e.__androidStatusBarHeight,be=(An=ue.deviceInfo.navigationBarHeight)!=null?An:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:O!==void 0?O/L:20,navigationBarHeight:be!==void 0?be/L:10}},get abTests(){var L,O;return(O=(L=ue.abValues)==null?void 0:L.split(","))!=null?O:[]},get mpInfo(){var L;return(L=ue.mpInfo)!=null?L:{mpName:"unknown"}},onEnvConfigChanged:L=>{bh(ue,L,_h)},encodeJoliSourceQuery:L=>{var O,be;return t&&r?Oh(x(x({},e),L),(O=o.get("joliSource"))!=null?O:""):(be=o.get("joliSource"))!=null?be:""},setDoExitDirectly:()=>{m=!1}}},S=OR()});var Wl,Uh,NR,DR,Mh,qR,Fh=C(()=>{"use strict";R();dt();B();R();Wl=!1,Uh=(e,t)=>e==null?!1:t in e,NR=e=>Uh(e,"kind"),DR=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Mh=(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:DR(e.name)},i=U(x({},n),{env:t.environment,isFromUser:r});r?Qr.emit("GLOBAL_USER_ERROR",e,i):Qr.emit("GLOBAL_ERROR",e,i)},qR=e=>Uh(e,"kind")&&e.kind==="USER_ERROR";Bl.on("ERROR_REPORT",({error:e,options:t})=>{if(Wl)return;Wl=!0;let r=NR(e)&&e.raw?e.raw:e;try{let n=qR(e);Mh(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new Ml(`${i}, origin error: ${r.message}`);Bt.error(o),Mh(new Ml(o.message),{environment:t.environment},!1)}finally{Wl=!1}})});var Et,zl,Xr=C(()=>{"use strict";dt();R();dt();Et=(e,t)=>{var r,n;return new Li((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},zl=e=>new wh(e)});var jh=C(()=>{"use strict";Fh();Xr();R();ce();Qr.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};F("trackAsync",{event:"reportJsError",data:r})});Qr.on("GLOBAL_USER_ERROR",(e,t)=>{Bt.log("UserError",e,t)})});var Kl=C(()=>{"use strict"});function Gh(e,t){let r=(n,i,o)=>{let l=i!=null?i:{},{eventType:a}=l,s=$e(l,["eventType"]),c=U(x({tag:n,eventType:o!=null?o:a!=null?a:J.Other},t),{extra:x({},s)});n=="globalJsError"?_e(new Eh(JSON.stringify(c))):e("systemLog",c,S.webviewId)};return r.debounce=Di(r,500,{leading:!0}),r}function Bh(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=Di(t,500,{leading:!0}),t}var Jh=C(()=>{"use strict";R();R();dt();B()});function Hh(e,t){let r=Gh(e,t),n=Bh(r);return{track:r,trackPerformance:n}}var $h=C(()=>{"use strict";Jh()});var Vh=C(()=>{"use strict";B();R();R()});var Wh=C(()=>{"use strict";$h();Kl();Vh()});var va,zh=C(()=>{"use strict";va=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.reportCount=0;this.notifyIframeGameEvent=(t,r)=>{window.parent&&window.parent.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 ya(e,t,r){var c,l,d;let n=new Map,i=(c=r==null?void 0:r.baseUrl)!=null?c:Rn(S.testMode),o=(l=r==null?void 0:r.type)!=null?l:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return Re("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:b}=f,v=$e(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:b}=m,v=$e(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else Bt.warn("onRequestTaskStateChange unknown event",u)}),he.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>y(this,[f,...m],function*(u,p={}){let g=Date.now(),b=LR(u,U(x({},p),{baseUrl:i})),{method:v="GET",responseType:w="text",dataType:E="json",timeout:A,enableCache:P=!1,appendHostCookie:T=!0}=p,k=Object.assign({"content-type":"application/json"},a,p.header),G={url:b,method:v,header:k,enableCache:P,responseType:w,appendHostCookie:T};if(v=="POST"||v=="PUT"){let Ue=UR(p.data,k["content-type"]);G.data=Ue}A&&Object.assign(G,{timeout:A});let{data:{requestTaskId:fe}}=F(e,G);if(typeof fe!="string")throw Et({code:-1,msg:"requestTaskId is not a string"});let{resolve:L,reject:O,promise:be}=new nt;n.set(fe,{resolve:L,reject:O});try{let Ue=yield be,{data:jt}=Ue;return E==="json"&&typeof jt=="string"&&(jt=MR(jt)),{url:b,timeout:A,method:v,response:U(x({},Ue),{data:jt})}}catch(Ue){let jt=Ue;if(Yr(jt)){let{errMsg:An,prefetchDetail:MV,isPrefetch:UV,errNo:QP}=jt;Oi(An)&&_e(Et({code:-1,msg:An},{errNo:QP,errMsg:An}))}throw Ue}})}function MR(e){try{return JSON.parse(e.trim())}catch(t){return e}}function UR(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 LR,Yl=C(()=>{"use strict";R();ce();dt();Xr();B();LR=(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 Ql,Kh,Z,pt=C(()=>{"use strict";Yl();B();R();Ql={};(Kh=S.hostUserInfo)!=null&&Kh.token&&(Ql["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(Ql["x-joli-source"]=S.joliSource);Z=ya("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:Rn(S.testMode),defaultHeaders:Ql})});function Yh(e){let t=Ul.config[e];return t||(t={},Ul.config[e]=t),(r,n)=>{if(t[r]){Bt.warn(`[can i use] ${r} already registered`);return}t[r]=x({},n)}}var Qh=C(()=>{"use strict";R()});function Xl(e){Xh=e}function ba(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>ba(t)):Object.keys(e).reduce((t,r)=>(t[r]=ba(e[r]),t),{})}function sr(e){return typeof e=="number"}function Zl(e){let t=eu(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function eu(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var Xh,Ee,_a,wa,Sa,Ia,On,Ea,ka,Ca,Aa,xa,Pa,Ta,Ra,Oa,Na,Da,qa,tu=C(()=>{"use strict";Xh=!1;Ee=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(Xh)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 ${Zl(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return ba(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:ba(this._default)}optional(){return this._optional=!0,this}};_a=class extends Ee{validate(t){return this._optional&&t===void 0?!0:sr(t)?sr(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):sr(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):sr(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}},wa=class extends Ee{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Sa=class extends Ee{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(sr(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(sr(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}},Ia=class extends Ee{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},On=class extends Ee{validate(t){return!0}},Ea=class extends Ee{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},ka=class extends Ee{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Ca=class extends Ee{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Aa=class extends Ee{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 ${Zl(t)}`)}return!0}},xa=class extends Ee{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(sr(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(sr(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(sr(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}},Pa=class extends Ee{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(eu(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}},Ta=class extends Ee{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(eu(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}},Ra=class extends Ee{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Zl(this.value),actual:r}):!0}},Oa=class extends Ee{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}},
|
|
3
|
-
`);throw e.errors.length=0,
|
|
1
|
+
var tT=Object.create;var sa=Object.defineProperty,rT=Object.defineProperties,nT=Object.getOwnPropertyDescriptor,iT=Object.getOwnPropertyDescriptors,oT=Object.getOwnPropertyNames,aa=Object.getOwnPropertySymbols,aT=Object.getPrototypeOf,fl=Object.prototype.hasOwnProperty,Gm=Object.prototype.propertyIsEnumerable;var jm=(e,t,r)=>t in e?sa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))fl.call(t,r)&&jm(e,r,t[r]);if(aa)for(var r of aa(t))Gm.call(t,r)&&jm(e,r,t[r]);return e},F=(e,t)=>rT(e,iT(t));var ze=(e,t)=>{var r={};for(var n in e)fl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&aa)for(var n of aa(e))t.indexOf(n)<0&&Gm.call(e,n)&&(r[n]=e[n]);return r};var P=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Bm=(e,t)=>{for(var r in t)sa(e,r,{get:t[r],enumerable:!0})},sT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of oT(t))!fl.call(e,i)&&i!==r&&sa(e,i,{get:()=>t[i],enumerable:!(n=nT(t,i))||n.enumerable});return e};var se=(e,t,r)=>(r=e!=null?tT(aT(e)):{},sT(t||!e||!e.__esModule?sa(r,"default",{value:e,enumerable:!0}):r,e));var y=(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 fT(e){return!!(e!=null&&e.__nativeBuffers__)}function _l(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!fT(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=mT(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function gT(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:hT(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function _T(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function th(e){return typeof e=="string"}function Dn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Hm(e){return typeof e=="number"&&!isNaN(e)}function ST(e){return typeof e=="undefined"}function IT(e){return ST(e)||e===null}function rh(e){return typeof e=="function"}function ET(e){return Dn(e)&&rh(e.then)}function nh(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function xi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function RT(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 qT(){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 GT(e){return new Promise(t=>ih(e)(t))}function ih(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function BT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Ri(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function HT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)$T(e[n],t[n])}function $T(e,t){if(th(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(rh(t)){try{if(e instanceof t)return}catch(r){}if(!IT(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 Zr(e,t){if(Sl.config[e]){fa.warn(`[can i use] ${e} already registered`);return}Sl.config[e]=lr({},t)}function Wm(e,t){return`[${e}]:${t}`}function XT(e,t){zm||(gl=new la({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),vl=new la({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),yl=new la({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{gl.flush(),vl.flush(),yl.flush()}),zm=!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:g}=f,b=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";gl.report({status:b,method:n(s,c),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-l}),l&&m&&g&&(vl.report({status:b,method:s,isForeground:d,duration:Number((m-l).toFixed(3))}),yl.report({status:b,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function rR(e,t){let r=0,n=!0,i=tR.resolveMap,o=XT(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,bl.forEach(c=>da(this,[c],function*({method:l,args:d,resolve:u}){let p=yield s(l,d);u(p)})),bl.length=0});let a=(c,l)=>{let d=i.get(Number(c));if(!d)return;let u=_l(l);d(u),i.delete(Number(c))},s=(c,l)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new wT;if(i.set(r,m.resolve),!n&&zT.includes(c))return new Promise(x=>{bl.push({method:c,args:l,resolve:x})});let g=dT(lr({},{method:c,startTime:p,args:l,isForeground:f}),{invokeType:"js-bridge"}),b=!ZT&&WT.includes(c),v=gT(l,b),w=b?v:JSON.stringify(v),S;if(c.endsWith("Sync")||KT.includes(c)?S=(d=e.call)==null?void 0:d.call(e,c,v,r):typeof w=="string"?S=e.invoke(c,w,r):S=(u=e.call)==null?void 0:u.call(e,c,w,r),S){try{typeof S=="string"&&(S=JSON.parse(S)),S=_l(S)}catch(x){fa.error(x)}return i.delete(r),S.errorCode&&(S.errorCode=Wm(c,S.errorCode)),o(lr(lr({},g),S)),S}return c.endsWith("Sync")&&i.delete(r),m.promise.then(x=>(x.errorCode&&(x.errorCode=Wm(c,x.errorCode)),o(lr(lr({},g),x)),x))};return{invokeNative:s,applyNative:(c,l)=>{let d=s(c,l);return ET(d)?d.then(u=>Km(c,u)):Km(c,d)},invokeHandler:a}}function Km(e,t){if(!Dn(t)){fa.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=pT(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new xT(n,i,o,a);return s}function nR(e){if(globalThis[ca])return globalThis[ca];let t=new kl,r=new kl,n=new la({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[ca]={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=_l(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===ah){c.forEach(l=>{let[d,u]=l;try{r.emit(d.slice(Ti.length),u,a)}catch(p){}});return}if(i.startsWith(Ti)){r.emit(i.slice(Ti.length),c,a);return}t.emit(i,c,a)}},globalThis[ca]}function iR(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(`${Ti}${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(ah,d,p)}catch(p){}}),n=void 0,t.clear()}));let l=t.get(s);l||(l=[],t.set(s,l)),l.push([`${Ti}${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(YT,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 oR(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=nR(e),{invokeNative:a,invokeHandler:s,applyNative:c}=rR(e,r),{publish:l,emitNative:d}=iR(e);return{invokeHandler:s,subscribeHandler:t,applyNative:c,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:l,subscribe:i,unsubscribe:o}}function sh(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var cT,lT,uT,ua,Qm,Xm,Jm,lr,dT,pT,da,mT,hT,Zm,vT,yT,eh,bT,wT,kT,CT,pa,AT,xT,PT,ml,fa,$m,TT,wl,OT,Sl,NT,DT,LT,Nn,MT,r9,Il,pe,UT,FT,Pi,Ri,kl,Cl,jT,hl,JT,n9,Al,Vm,i9,oh,VT,Ti,WT,zT,KT,ah,YT,QT,la,zm,gl,vl,yl,bl,ZT,xl,eR,tR,ca,Pl,Ct,ch,lh,aR,uh,Ym,ye,j,Ne,o9,sR,dh,Tl,a9,s9,fe=P(()=>{"use strict";cT=Object.defineProperty,lT=Object.defineProperties,uT=Object.getOwnPropertyDescriptors,ua=Object.getOwnPropertySymbols,Qm=Object.prototype.hasOwnProperty,Xm=Object.prototype.propertyIsEnumerable,Jm=(e,t,r)=>t in e?cT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lr=(e,t)=>{for(var r in t||(t={}))Qm.call(t,r)&&Jm(e,r,t[r]);if(ua)for(var r of ua(t))Xm.call(t,r)&&Jm(e,r,t[r]);return e},dT=(e,t)=>lT(e,uT(t)),pT=(e,t)=>{var r={};for(var n in e)Qm.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ua)for(var n of ua(e))t.indexOf(n)<0&&Xm.call(e,n)&&(r[n]=e[n]);return r},da=(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())});mT=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};hT=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)};Zm=Object.defineProperty,vT=Object.getOwnPropertyDescriptor,yT=(e,t)=>{for(var r in t)Zm(e,r,{get:t[r],enumerable:!0})},eh=(e,t,r,n)=>{for(var i=n>1?void 0:n?vT(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&&Zm(t,r,i),i},bT=(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}wT=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))}})}};kT=(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))(kT||{}),CT=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}},pa=class extends CT{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},AT=class extends pa{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},xT=class extends pa{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},PT=class extends pa{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},ml=class extends pa{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};fa={log:xi("log"),warn:xi("warn"),info:xi("info"),error:xi("error"),debug:xi("debug")};Object.assign(globalThis,{logger:fa});$m=Symbol.for("Jolibox.canIUseMap"),TT={};globalThis[$m]||(globalThis[$m]=TT);wl=Symbol.for("Jolibox.canIUseMap.native"),OT={};globalThis[wl]||(globalThis[wl]=OT);Sl={get config(){return globalThis[wl]}},NT=(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))(NT||{}),DT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(DT||{}),LT=(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))(LT||{});qT();Nn=typeof window=="undefined",MT=()=>!Nn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),r9={isiOS:!Nn&&(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:!Nn&&navigator.userAgent.includes("Android"),isMac:!Nn&&navigator.userAgent.includes("Mac"),isFacebook:!Nn&&navigator.userAgent.includes("FB_IAB"),isPC:!Nn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Il=class El{constructor(t){this.element=t,this.next=El.Undefined,this.prev=El.Undefined}};Il.Undefined=new Il(void 0);pe=Il,UT=class{constructor(){this._first=pe.Undefined,this._last=pe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===pe.Undefined}clear(){let e=this._first;for(;e!==pe.Undefined;){let t=e.next;e.prev=pe.Undefined,e.next=pe.Undefined,e=t}this._first=pe.Undefined,this._last=pe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new pe(e);if(this._first===pe.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!==pe.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==pe.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==pe.Undefined&&e.next!==pe.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===pe.Undefined&&e.next===pe.Undefined?(this._first=pe.Undefined,this._last=pe.Undefined):e.next===pe.Undefined?(this._last=this._last.prev,this._last.next=pe.Undefined):e.prev===pe.Undefined&&(this._first=this._first.next,this._first.prev=pe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==pe.Undefined;)yield e.element,e=e.next}},FT=0,Pi=class{constructor(e){this.value=e,this.id=FT++}},Ri=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 Pi&&(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 Pi(t);return this._listeners?this._listeners instanceof Pi?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 Pi)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 Pi?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},kl=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 Ri,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 UT,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)}},Cl={};yT(Cl,{None:()=>jT,filter:()=>BT,once:()=>ih,toPromise:()=>GT});jT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});hl=Symbol.for("Jolibox.hostEmitter"),JT=()=>{let e=new kl;return globalThis[hl]||(globalThis[hl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[hl]},n9=JT();Al=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Ri,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 HT(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}};Al=eh([nh],Al);Vm=class{constructor(){this._onWillExecuteCommand=new Ri,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Ri,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Al,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=_T(3e4)),this._starActivation}executeCommand(e,...t){return bT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Cl.toPromise(Cl.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}}};Vm=eh([nh],Vm);i9=Symbol.for("Jolibox.commands");Zr("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Zr("requestProductDetailsAsync",{version:102e4});Zr("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});Zr("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Zr("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});Zr("userTrackAsync",{version:1e6});Zr("openMiniapp",{version:1050100});oh=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let c=Sl.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=RT(i,o);if(!s)return!1;if(Dn(s)){let c=s.version;return Hm(c)?typeof a=="number"&&a>=c:!0}return Hm(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};VT=()=>MT(),Ti="custom_event_",WT=[],zT=[],KT=["env","createRequestTask","login"],ah="__batch_event__",YT="__native_batch_event__",QT=e=>e==="pv"?e:"default",la=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=QT(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&&Dn(a))throw new ml(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let c=[];if(Dn(a))c.push(...Object.keys(a));else if(th(a)){if(i.length>0)throw new ml(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);c.push(a)}else throw new ml(`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=Dn(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={}}},zm=!1;bl=[],ZT=!1,xl=Symbol.for("Jolibox.invokeResolverInstance"),eR=new Map;globalThis[xl]||(globalThis[xl]=eR);tR={get resolveMap(){return globalThis[xl]}};ca=Symbol.for("Jolibox.subscribeInstance");Ct={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){Ct.trigger=e},onDoExit(e){Ct.exit=e},onDoBackPress(e){Ct.backPress=e}},ch=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new AT("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="")=>{Ct.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>da(void 0,null,function*(){let o=yield Ct.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Pl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=sh(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:ch,doExit:r};globalThis.joliboxJSCore=lr({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{Ct.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>da(void 0,null,function*(){let a=yield Ct.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Pl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let c=sh(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 da(this,null,function*(){let a=yield Ct.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:ch,doExit:n};globalThis.joliboxJSCore=lr({},i)}lh=Pl;if(!lh&&VT())throw new PT("No joliboxJScore is found, native bridge not found.");aR=lr({},lh),uh=oR(aR),{invokeHandler:Ym}=uh,{applyNative:ye,invokeNative:j,onNative:Ne,offNative:o9,subscribeHandler:sR,publish:dh,emitNative:Tl,subscribe:a9,unsubscribe:s9}=uh;globalThis.joliboxJSBridge={callHandler:Ym,invokeHandler:Ym,subscribeHandler:sR}});function pR(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function ha(e){return new Promise(t=>setTimeout(t,e))}function qi(e){return typeof e=="string"}function tn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function yh(e){return typeof e=="object"&&Array.isArray(e)}function ga(e){return typeof e=="number"&&!isNaN(e)}function Nr(e){return e===!0||e===!1}function bh(e){return typeof e=="undefined"}function Mi(e){return bh(e)||e===null}function fR(e){return typeof e=="function"}function _h(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function wh(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:mh(c)&&mh(s)?i[a]=n(gh({},s),c):Array.isArray(c)&&Array.isArray(s)?i[a]=[...s,...c]:i[a]=c}return i}return n(e,t)}function mh(e){return e&&typeof e=="object"&&e.constructor===Object}function Sh(e,t){if(Array.isArray(e))return e.concat(t)}function Ui(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 hR(e,t){return(...r)=>t(e,...r)}function ba(e){return t=>hR(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Jt(`${i}`))}})}function Oi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Ah(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 Jl(){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 wR(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")return`${o}.${a}`}return`${o}.jolibox.com`}function Hl(e){return wR("app","stg-app",e)}function qn(e){return`https://${Hl(e)}`}function kR(e){return new Promise(t=>Rh(e)(t))}function Rh(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function CR(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Li(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function xR(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)PR(e[n],t[n])}function PR(e,t){if(qi(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(fR(t)){try{if(e instanceof t)return}catch(r){}if(!Mi(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 TR(){return typeof globalThis!="undefined"?globalThis[Oh]:void 0}function RR(e){typeof globalThis!="undefined"&&(globalThis[Oh]=e)}function ee(e=!1){let t=TR();if(!e&&t)return t;let r=new ma,n=new ql,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 RR(i),i}var Ml,cR,ph,lR,uR,fh,gh,dR,vh,en,st,mR,Ul,Fi,Fl,Ih,Jt,va,Eh,ya,kh,Ch,ji,jl,Ht,Ol,gR,Gl,hh,vR,$,Bl,yR,Ln,Ni,Gi,bR,_R,xh,Ph,Th,Dt,Nl,me,SR,IR,Di,Li,$t,Ll,ER,Rl,AR,be,ma,ql,Oh,O=P(()=>{"use strict";Ml=Object.defineProperty,cR=Object.getOwnPropertyDescriptor,ph=Object.getOwnPropertySymbols,lR=Object.prototype.hasOwnProperty,uR=Object.prototype.propertyIsEnumerable,fh=(e,t,r)=>t in e?Ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gh=(e,t)=>{for(var r in t||(t={}))lR.call(t,r)&&fh(e,r,t[r]);if(ph)for(var r of ph(t))uR.call(t,r)&&fh(e,r,t[r]);return e},dR=(e,t)=>{for(var r in t)Ml(e,r,{get:t[r],enumerable:!0})},vh=(e,t,r,n)=>{for(var i=n>1?void 0:n?cR(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&&Ml(t,r,i),i},en=(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}st=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))}})}};mR=(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))(mR||{}),Ul=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}},Fi=class extends Ul{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},Fl=class extends Ul{constructor(){super(...arguments),this.kind="USER_ERROR"}},Ih=class extends Fl{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Jt=class extends Fl{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))}},va=class extends Fl{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))}},Eh=class extends Fi{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},ya=class extends Fi{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))}},kh=class extends Fi{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},Ch=class extends Fi{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},ji=class extends Ul{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}}},jl=class extends Fi{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Ht={log:Oi("log"),warn:Oi("warn"),info:Oi("info"),error:Oi("error"),debug:Oi("debug")};Object.assign(globalThis,{logger:Ht});Ol=Symbol.for("Jolibox.canIUseMap"),gR={};globalThis[Ol]||(globalThis[Ol]=gR);Gl={get config(){return globalThis[Ol]}},hh=Symbol.for("Jolibox.canIUseMap.native"),vR={};globalThis[hh]||(globalThis[hh]=vR);$=(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))($||{}),Bl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Bl||{}),yR=(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))(yR||{}),Ln=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});Jl();Ni=typeof window=="undefined",Gi={isiOS:!Ni&&(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:!Ni&&navigator.userAgent.includes("Android"),isMac:!Ni&&navigator.userAgent.includes("Mac"),isFacebook:!Ni&&navigator.userAgent.includes("FB_IAB"),isPC:!Ni&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},bR="device_id",_R="advertising_id",xh=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,Ln()),window.__joliboxLocalStorage__.getItem(e)),Ph=()=>new URLSearchParams(window.location.search).get("deviceId")||xh(bR),Th=()=>new URLSearchParams(window.location.search).get("advertisingId")||xh(_R);Dt=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=gh({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return en(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=>en(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 en(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 en(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return en(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 en(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)}},Nl=class Dl{constructor(t){this.element=t,this.next=Dl.Undefined,this.prev=Dl.Undefined}};Nl.Undefined=new Nl(void 0);me=Nl,SR=class{constructor(){this._first=me.Undefined,this._last=me.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===me.Undefined}clear(){let e=this._first;for(;e!==me.Undefined;){let t=e.next;e.prev=me.Undefined,e.next=me.Undefined,e=t}this._first=me.Undefined,this._last=me.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new me(e);if(this._first===me.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!==me.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==me.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==me.Undefined&&e.next!==me.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===me.Undefined&&e.next===me.Undefined?(this._first=me.Undefined,this._last=me.Undefined):e.next===me.Undefined?(this._last=this._last.prev,this._last.next=me.Undefined):e.prev===me.Undefined&&(this._first=this._first.next,this._first.prev=me.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==me.Undefined;)yield e.element,e=e.next}},IR=0,Di=class{constructor(e){this.value=e,this.id=IR++}},Li=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 Di&&(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 Di(t);return this._listeners?this._listeners instanceof Di?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 Di)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 Di?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},$t=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 Li,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 SR,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)}},Ll={};dR(Ll,{None:()=>ER,filter:()=>CR,once:()=>Rh,toPromise:()=>kR});ER=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Rl=Symbol.for("Jolibox.hostEmitter"),AR=()=>{let e=new $t;return globalThis[Rl]||(globalThis[Rl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Rl]},be=AR();ma=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Li,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 xR(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}};ma=vh([_h],ma);ql=class{constructor(){this._onWillExecuteCommand=new Li,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Li,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new ma,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=pR(3e4)),this._starActivation}executeCommand(e,...t){return en(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Ll.toPromise(Ll.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}}};ql=vh([_h],ql);Oh=Symbol.for("Jolibox.commands")});function Ie(e,t={}){$l.emit("ERROR_REPORT",{error:e,options:t})}var $l,rn,mt=P(()=>{"use strict";O();O();$l=new $t,rn=new $t;Ie.debounce=Ui(Ie,50,{leading:!0})});var Vl,OR,Nh,Dh,Lh=P(()=>{"use strict";O();mt();Vl=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{}}},OR=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Nh=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:Vl(o),payloadJson:Vl(a),signature:Vl(s)}}else throw"joli_source is missing"}catch(r){return Ie(new Eh(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Dh=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=OR(e),o=r[2];return`${n}.${i}.${o}`}return t}});var NR,Wl,qh=P(()=>{"use strict";O();NR="1.3.2",Wl=()=>NR});function Kl(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var DR,Mh,zl,Uh,he,LR,I,J=P(()=>{"use strict";O();Lh();qh();O();DR={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Ph(),adId:Th(),pixelRatio:window.devicePixelRatio||1,platform:Gi.isAndroid?"android":Gi.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Wl()},schema:window.location.href,platform:Gi.isAndroid?"android":Gi.isiOS?"ios":"h5"},zl=(Mh=globalThis.joliboxJSCore)==null?void 0:Mh.env,he=Object.assign({},(Uh=zl==null?void 0:zl())!=null?Uh:DR);LR=()=>{var g,b,v,w,S,x,A,C,k,B,le;let{payloadJson:e,headerJson:t,signature:r}=he.schema.length?Nh(he.schema):{},n=`${he.deviceInfo.did}-${new Date().getTime()}`,o=new URL(he.schema.length?he.schema:window.location.href).searchParams,a=(v=(b=(g=o.get("mpId"))!=null?g:o.get("appId"))!=null?b:o.get("gameId"))!=null?v:"",s=(x=(S=(w=he.clientSessionId)!=null?w:e==null?void 0:e.sessionId)!=null?S:o.get("sessionId"))!=null?x:n,c=!!((C=(A=e==null?void 0:e.testAdsMode)!=null?A:e==null?void 0:e.__testAdsMode)!=null?C:o.get("testAdsMode")==="true"),l=(le=(B=(k=e==null?void 0:e.joliboxEnv)!=null?k:e==null?void 0:e.__joliboxEnv)!=null?B:o.get("joliboxEnv"))!=null?le:"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,R;return(R=(N=f.get("joliSource"))!=null?N:o.get("joliSource"))!=null?R: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:Wl()},get mpType(){var N,R;return(R=(N=t==null?void 0:t.__mpType)!=null?N:e==null?void 0:e.__mpType)!=null?R:"game"},get platform(){var N;return((N=he.platform)!=null?N:he.deviceInfo.platform).toLowerCase()},get deviceInfo(){return he.deviceInfo},get sdkInfo(){return he.sdkInfo},get hostInfo(){return he.hostInfo},get hostUserInfo(){return he.hostUserInfo},get sessionId(){var N,R;return(R=(N=he.clientSessionId)!=null?N:s)!=null?R:n},get channel(){return u},get webviewId(){var N;return(N=he.webviewId)!=null?N:-1},get shouldInterupt(){return m},get from(){return e==null?void 0:e.__from},get baseApiHost(){return Hl(d)},get adId(){var N;return(N=he.deviceInfo.adId)!=null?N:he.deviceInfo.did},get language(){return he.deviceInfo.lang},get sdkEnvironment(){return Kl("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Kl("gamedistribution","jolibox")?"gamedistribution":Kl("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var Z,ie,cr;let N=(Z=he.deviceInfo.pixelRatio)!=null?Z:1,R=(ie=he.deviceInfo.statusBarHeight)!=null?ie:e==null?void 0:e.__androidStatusBarHeight,U=(cr=he.deviceInfo.navigationBarHeight)!=null?cr:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:R!==void 0?R/N:20,navigationBarHeight:U!==void 0?U/N:10}},get abTests(){var N,R;return(R=(N=he.abValues)==null?void 0:N.split(","))!=null?R:[]},get mpInfo(){var N;return(N=he.mpInfo)!=null?N:{mpName:"unknown"}},onEnvConfigChanged:N=>{wh(he,N,Sh)},encodeJoliSourceQuery:N=>{var R,U;return t&&r?Dh(T(T({},e),N),(R=o.get("joliSource"))!=null?R:""):(U=o.get("joliSource"))!=null?U:""},setDoExitDirectly:()=>{m=!1}}},I=LR()});var Yl,jh,qR,MR,Fh,UR,Gh=P(()=>{"use strict";O();mt();J();O();Yl=!1,jh=(e,t)=>e==null?!1:t in e,qR=e=>jh(e,"kind"),MR=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Fh=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=I.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=I.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:MR(e.name)},i=F(T({},n),{env:t.environment,isFromUser:r});r?rn.emit("GLOBAL_USER_ERROR",e,i):rn.emit("GLOBAL_ERROR",e,i)},UR=e=>jh(e,"kind")&&e.kind==="USER_ERROR";$l.on("ERROR_REPORT",({error:e,options:t})=>{if(Yl)return;Yl=!0;let r=qR(e)&&e.raw?e.raw:e;try{let n=UR(e);Fh(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new jl(`${i}, origin error: ${r.message}`);Ht.error(o),Fh(new jl(o.message),{environment:t.environment},!1)}finally{Yl=!1}})});var At,Ql,nn=P(()=>{"use strict";mt();O();mt();At=(e,t)=>{var r,n;return new ji((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Ql=e=>new Ih(e)});var Bh=P(()=>{"use strict";Gh();nn();O();fe();rn.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};j("trackAsync",{event:"reportJsError",data:r})});rn.on("GLOBAL_USER_ERROR",(e,t)=>{Ht.log("UserError",e,t)})});var Xl=P(()=>{"use strict"});function Jh(e,t){let r=(n,i,o)=>{let l=i!=null?i:{},{eventType:a}=l,s=ze(l,["eventType"]),c=F(T({tag:n,eventType:o!=null?o:a!=null?a:$.Other},t),{extra:T({},s)});n=="globalJsError"?Ie(new Ch(JSON.stringify(c))):e("systemLog",c,I.webviewId)};return r.debounce=Ui(r,500,{leading:!0}),r}function Hh(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=Ui(t,500,{leading:!0}),t}var $h=P(()=>{"use strict";O();O();mt();J()});function Vh(e,t){let r=Jh(e,t),n=Hh(r);return{track:r,trackPerformance:n}}var Wh=P(()=>{"use strict";$h()});var zh=P(()=>{"use strict";J();O();O()});var Kh=P(()=>{"use strict";Wh();Xl();zh()});var _a,Yh=P(()=>{"use strict";_a=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.reportCount=0;this.notifyIframeGameEvent=(t,r)=>{window.parent&&window.parent.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 wa(e,t,r){var c,l,d;let n=new Map,i=(c=r==null?void 0:r.baseUrl)!=null?c:qn(I.testMode),o=(l=r==null?void 0:r.type)!=null?l:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return Ne("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:b}=f,v=ze(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:b}=m,v=ze(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else Ht.warn("onRequestTaskStateChange unknown event",u)}),be.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>y(this,[f,...m],function*(u,p={}){let g=Date.now(),b=FR(u,F(T({},p),{baseUrl:i})),{method:v="GET",responseType:w="text",dataType:S="json",timeout:x,enableCache:A=!1,appendHostCookie:C=!0}=p,k=Object.assign({"content-type":"application/json"},a,p.header),B={url:b,method:v,header:k,enableCache:A,responseType:w,appendHostCookie:C};if(v=="POST"||v=="PUT"){let Z=GR(p.data,k["content-type"]);B.data=Z}x&&Object.assign(B,{timeout:x});let{data:{requestTaskId:le}}=j(e,B);if(typeof le!="string")throw At({code:-1,msg:"requestTaskId is not a string"});let{resolve:N,reject:R,promise:U}=new st;n.set(le,{resolve:N,reject:R});try{let Z=yield U,{data:ie}=Z;return S==="json"&&typeof ie=="string"&&(ie=jR(ie)),{url:b,timeout:x,method:v,response:F(T({},Z),{data:ie})}}catch(Z){let ie=Z;if(tn(ie)){let{errMsg:cr,prefetchDetail:ZV,isPrefetch:e9,errNo:eT}=ie;qi(cr)&&Ie(At({code:-1,msg:cr},{errNo:eT,errMsg:cr}))}throw Z}})}function jR(e){try{return JSON.parse(e.trim())}catch(t){return e}}function GR(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 FR,Zl=P(()=>{"use strict";O();fe();mt();nn();J();FR=(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 eu,Qh,re,ht=P(()=>{"use strict";Zl();J();O();eu={};(Qh=I.hostUserInfo)!=null&&Qh.token&&(eu["x-joli-token"]=I.hostUserInfo.token);I.joliSource&&(eu["x-joli-source"]=I.joliSource);re=wa("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:qn(I.testMode),defaultHeaders:eu})});function Xh(e){let t=Gl.config[e];return t||(t={},Gl.config[e]=t),(r,n)=>{if(t[r]){Ht.warn(`[can i use] ${r} already registered`);return}t[r]=T({},n)}}var Zh=P(()=>{"use strict";O()});function tu(e){eg=e}function Sa(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Sa(t)):Object.keys(e).reduce((t,r)=>(t[r]=Sa(e[r]),t),{})}function ur(e){return typeof e=="number"}function ru(e){let t=nu(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function nu(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var eg,Ce,Ia,Ea,ka,Ca,Mn,Aa,xa,Pa,Ta,Ra,Oa,Na,Da,La,qa,Ma,Ua,iu=P(()=>{"use strict";eg=!1;Ce=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(eg)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 ${ru(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Sa(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Sa(this._default)}optional(){return this._optional=!0,this}};Ia=class extends Ce{validate(t){return this._optional&&t===void 0?!0:ur(t)?ur(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):ur(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):ur(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}},Ea=class extends Ce{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},ka=class extends Ce{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(ur(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(ur(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}},Ca=class extends Ce{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},Mn=class extends Ce{validate(t){return!0}},Aa=class extends Ce{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},xa=class extends Ce{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Pa=class extends Ce{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Ta=class extends Ce{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 ${ru(t)}`)}return!0}},Ra=class extends Ce{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(ur(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(ur(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(ur(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}},Oa=class extends Ce{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(nu(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}},Na=class extends Ce{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(nu(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}},Da=class extends Ce{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:ru(this.value),actual:r}):!0}},La=class extends Ce{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}},qa=class extends Ce{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}},Ma=class extends Ce{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},Ua=class extends Ce{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 ou(e,t,r="param"){if(e.errors=[],e.path=r,tu(!0),!e.validate(t)){let n=e.errors.join(`
|
|
3
|
+
`);throw e.errors.length=0,tu(!1),new TypeError(n)}}var E,au=P(()=>{"use strict";iu();iu();E={object(e){return new Na(e)},array(e){return new Ra(e)},tuple(...e){return new qa(...e)},literal(e){return new Da(e)},or(...e){return new La(...e)},symbol(){return new Ca},record(e){return new Oa(e)},function(){return new Pa},boolean(){return new Ea},string(){return new ka},number(){return new Ia},undefined(){return new Aa},null(){return new xa},unknown(){return new Mn},any(){return new Mn},as(){return new Mn},arraybuffer(){return new Ma},enum(...e){return new Ta(...e)},typedarray(e){return new Ua(e)}}});var Fa,tg,rg=P(()=>{"use strict";O();mt();au();nn();Fa=1,tg=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:Fa};Fa+=1;let c="SUCCESS",l=`${n}:ok`,d=0;try{if(i.paramsSchema)try{ou(i.paramsSchema,o,"params")}catch(w){throw Ql(`${n}:fail ${w.message}`)}let g=i.implement(...o),b=g,v=`${n}:ok`;if(g&&"code"in g){let{code:w,data:S,message:x}=g;c=w,b=S,v=x}return{code:c,message:v,data:b}}catch(g){let b=g;d=(p=(u=b.code)!=null?u:b.errNo)!=null?p:2e3,c="FAILURE";let v=(m=(f=b.message)!=null?f:b.errMsg)!=null?m:`${g}`;return l=`${n}:${c} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,Ie(new ji(l,d)),{code:c,message:l}}finally{let g=Date.now()-a}}}function r(n,i){return(...o)=>y(this,null,function*(){var p,f,m,g;let a=yh(o)?o:[o],s=Date.now(),c={method:n,trace_id:Fa};Fa+=1;let l=`${n}:ok`,d="SUCCESS",u={code:d,message:l};try{if(i.paramsSchema)try{ou(i.paramsSchema,a,"params")}catch(w){throw Ql(w.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:w,data:S,message:x}=v;d=w,l=x,v=S}return Object.assign(u,{code:d,message:l,data:v}),u}catch(b){let v=b,w=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let S=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${b}`,x=`${n}:${d} ${S.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:x}),Ie(new ji(x,w)),u}finally{let b=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});function su(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 ng=P(()=>{"use strict"});var ce,W,M,gt,Ke=P(()=>{"use strict";Zh();xt();rg();au();fe();J();ng();({createAPI:ce,createSyncAPI:W}=tg(G)),M=Xh("native"),{canIUseNative:gt}=oh(()=>I.sdkInfo.nativeSDKVersionCode,()=>I.platform)});function ig(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),WR.includes(t)?t:""}function og(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 ag(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 ja,JR,HR,$R,VR,Nz,Dz,WR,Dr,vt,Bi=P(()=>{"use strict";Ke();fe();O();ht();J();ja=ee(),JR=ce("getLocalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return y(this,null,function*(){let{response:t}=yield re(`/api/games/user-storage/${I.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 ye("getLocalStorageAsync",{key:e}),s=og(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}}})}});ja.registerCommand("StorageSDK.getItem",JR);M("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});HR=ce("setStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number())),implement(e,t){return y(this,null,function*(){let r=I.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield re(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=ig(t),c=ag(t,s);return yield ye("setLocalStorageAsync",{key:e,data:c,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});ja.registerCommand("StorageSDK.setItem",HR);M("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});$R=ce("removeStorage",{paramsSchema:E.tuple(E.string()),implement(e){return y(this,null,function*(){let t=I.mpId,{response:r}=yield re(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield ye("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});ja.registerCommand("StorageSDK.removeItem",$R);M("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});VR=ce("clearStorage",{implement(){return y(this,null,function*(){let e=I.mpId,{response:t}=yield re(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});ye("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});ja.registerCommand("StorageSDK.clear",VR);M("storage.clear",{version:"1.0.0"});Nz=ce("getStorageInfo",{implement(){return y(this,null,function*(){let{data:e}=yield ye("getStorageInfoAsync");return e})}});M("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});Dz=W("getStorageInfoSync",{implement(){return j("getStorageInfoSync")}}),WR=["string","number","boolean","object",""];Dr=ce("getGlobalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return y(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield ye("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:og(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),vt=ce("setGlobalStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number(),E.array())),implement(e,t){return y(this,null,function*(){try{let r=ig(t),n=ag(t,r);return yield ye("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 sg,Ga,cg=P(()=>{"use strict";J();Yh();O();ht();fe();Bi();sg="REPORT_FIRST_OPEN_GAME",Ga=class extends _a{constructor(t,r,n){super(r,n),this.gameId=I.mpId,this.sessionId=I.sessionId,this.track=t,this.taskUrl=qn(I.testMode)+"/api/base/app-event"}reporter(t){return y(this,null,function*(){let{event:r,params:n,extraParams:i}=t,o={eventType:r,gameInfo:T({gameId:this.gameId,sessionId:this.sessionId},n)};i&&Object.assign(o,i),yield I.platform==="android"?re("/api/base/app-event",{method:"POST",data:o}):ye("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(o)})})}reportToNative(t){return y(this,null,function*(){let{event:r,params:n}=t;yield ye("userTrackAsync",{event:r,params:T({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}start(t){super.start(t),this.tryReportOpenGamePlus()}tryReportOpenGamePlus(){Dr(sg).then(t=>{Nr(t.data)&&t.data&&this.tracker("OpenGame_2Plus"),vt(sg,!0)})}}});var fg={};Bm(fg,{nativeTaskEmitter:()=>Ji,taskTracker:()=>Lt,track:()=>G,trackPerformance:()=>dg});var zR,lg,ug,G,dg,pg,Ji,Lt,xt=P(()=>{"use strict";Bh();O();Xl();Kh();J();cg();fe();zR=(e,t,r)=>{var l,d,u,p,f,m,g;let n=t,i=tn(n.extra)?n.extra:qi(n.extra)?JSON.parse(n.extra):{},{mpName:o,mpVersion:a}=(l=I.mpInfo)!=null?l:{},s=T(T(F(T({},i),{mp_id:(d=n.mp_id)!=null?d:"",mp_version:(u=n.mp_version)!=null?u:"",session_id:I.sessionId,user_id:(f=(p=I.hostUserInfo)==null?void 0:p.uid)!=null?f:""}),o?{mp_name:o}:{}),a?{mp_info_version:a}:{}),c=(m=n.eventType)!=null?m:$.Other;j("trackAsync",{event:(g=t.tag)!=null?g:e,data:s,webviewId:r,eventType:c})},{track:G,trackPerformance:dg}=Vh(zR,{type:Bl.AppSDK,platform:"native",jssdk_version:(ug=(lg=I.sdkInfo)==null?void 0:lg.jssdkVersion)!=null?ug:"1.0.0",mp_id:I.mpId,mp_version:I.mpVersion}),pg=ee();pg.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{dg(e,t,r)});pg.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{G(e,t)});Ji=new $t,Lt=new Ga(G,Ji)});function mg(){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,14 +18,14 @@ or `);this.errors.push(o)}return n}},Na=class extends Ee{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 y(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 fg=C(()=>{"use strict";B()});var mg=C(()=>{"use strict"});var hg=C(()=>{"use strict";R();jl()});var gg=C(()=>{"use strict";B()});var Fa,ou=C(()=>{"use strict";mg();hg();B();gg();R();Fa=new Jt});function cr(e,t){for(var r in t)e[r]=t[r];return e}function du(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function We(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?Ja.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 Ga(e,a,n,i,null)}function Ga(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?++_g:i,__i:-1,__u:0};return i==null&&N.vnode!=null&&N.vnode(o),o}function Fe(e){return e.children}function ht(e,t){this.props=e,this.context=t}function Nn(e,t){if(t==null)return e.__?Nn(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"?Nn(e):null}function Cg(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 Cg(e)}}function cu(e){(!e.__d&&(e.__d=!0)&&Zr.push(e)&&!Ba.__r++||vg!==N.debounceRendering)&&((vg=N.debounceRendering)||wg)(Ba)}function Ba(){for(var e,t,r,n,i,o,a,s=1;Zr.length;)Zr.length>s&&Zr.sort(Sg),e=Zr.shift(),s=Zr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=cr({},n)).__v=n.__v+1,N.vnode&&N.vnode(r),pu(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Nn(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Pg(o,r,a),r.__e!=i&&Cg(r)));Ba.__r=0}function Ag(e,t,r,n,i,o,a,s,c,l,d){var u,p,f,m,g,b,v=n&&n.__k||kg,w=t.length;for(c=WR(r,t,v,c,w),u=0;u<w;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?ji:v[f.__i]||ji,f.__i=u,b=pu(e,f,p,i,o,a,s,c,l,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&fu(p.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||p.__k===f.__k?c=xg(f,c,e):typeof f.type=="function"&&b!==void 0?c=b:m&&(c=m.nextSibling),f.__u&=-7);return r.__e=g,c}function WR(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?Ga(null,a,null,null,null):Gi(a)?Ga(Fe,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Ga(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=zR(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=Nn(s)),Rg(s,s));return n}function xg(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=xg(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Nn(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Bi(e,t){return t=t||[],e==null||typeof e=="boolean"||(Gi(e)?e.some(function(r){Bi(r,t)}):t.push(e)),t}function zR(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 yg(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||VR.test(t)?r:r+"px"}function ja(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||yg(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||yg(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Ig,"$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=uu,e.addEventListener(t,o?su:au,o)):e.removeEventListener(t,o?su:au,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 bg(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=uu++;else if(t.u<r.t)return;return r(N.event?N.event(t):t)}}}function pu(e,t,r,n,i,o,a,s,c,l){var d,u,p,f,m,g,b,v,w,E,A,P,T,k,G,fe,L,O=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=N.__b)&&d(t);e:if(typeof O=="function")try{if(v=t.props,w="prototype"in O&&O.prototype.render,E=(d=O.contextType)&&n[d.__c],A=d?E?E.props.value:d.__:n,r.__c?b=(u=t.__c=r.__c).__=u.__E:(w?t.__c=u=new O(v,A):(t.__c=u=new ht(v,A),u.constructor=O,u.render=YR),E&&E.sub(u),u.props=v,u.state||(u.state={}),u.context=A,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),w&&u.__s==null&&(u.__s=u.state),w&&O.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=cr({},u.__s)),cr(u.__s,O.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)w&&O.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),w&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(w&&O.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,A),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,A)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(be){be&&(be.__=t)}),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,A),w&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=A,u.props=v,u.__P=e,u.__e=!1,T=N.__r,k=0,w){for(u.state=u.__s,u.__d=!1,T&&T(t),d=u.render(u.props,u.state,u.context),G=0;G<u._sb.length;G++)u.__h.push(u._sb[G]);u._sb=[]}else do u.__d=!1,T&&T(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++k<25);u.state=u.__s,u.getChildContext!=null&&(n=cr(cr({},n),u.getChildContext())),w&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),fe=d,d!=null&&d.type===Fe&&d.key==null&&(fe=Tg(d.props.children)),s=Ag(e,Gi(fe)?fe:[fe],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(be){if(t.__v=null,c||o!=null)if(be.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(L=o.length;L--;)du(o[L]);else t.__e=r.__e,t.__k=r.__k;N.__e(be,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=KR(r.__e,t,r,n,i,o,a,c,l);return(d=N.diffed)&&d(t),128&t.__u?void 0:s}function Pg(e,t,r){for(var n=0;n<r.length;n++)fu(r[n],r[++n],r[++n]);N.__c&&N.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){N.__e(o,i.__v)}})}function Tg(e){return typeof e!="object"||e==null?e:Gi(e)?e.map(Tg):cr({},e)}function KR(e,t,r,n,i,o,a,s,c){var l,d,u,p,f,m,g,b=r.props,v=t.props,w=t.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="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==!!w&&(w?f.localName==w:f.nodeType==3)){e=f,o[l]=null;break}}if(e==null){if(w==null)return document.createTextNode(v);e=document.createElementNS(i,w,v.is&&v),s&&(N.__m&&N.__m(t,o),s=!1),o=null}if(w===null)b===v||s&&e.data===v||(e.data=v);else{if(o=o&&Ja.call(e.childNodes),b=r.props||ji,!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 v)){if(l=="value"&&"defaultValue"in v||l=="checked"&&"defaultChecked"in v)continue;ja(e,l,null,f,i)}}for(l in v)f=v[l],l=="children"?p=f:l=="dangerouslySetInnerHTML"?d=f:l=="value"?m=f:l=="checked"?g=f:s&&typeof f!="function"||b[l]===f||ja(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=""),Ag(t.type==="template"?e.content:e,Gi(p)?p:[p],t,r,n,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Nn(r,0),s,c),o!=null)for(l=o.length;l--;)du(o[l]);s||(l="value",w=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[l]||w=="progress"&&!m||w=="option"&&m!==b[l])&&ja(e,l,m,b[l],i),l="checked",g!==void 0&&g!==e[l]&&ja(e,l,g,b[l],i))}return e}function fu(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){N.__e(i,r)}}function Rg(e,t,r){var n,i;if(N.unmount&&N.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||fu(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){N.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Rg(n[i],t,r||typeof e.type!="function");r||du(e.__e),e.__c=e.__=e.__e=void 0}function YR(e,t,r){return this.constructor(e,r)}function Tr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),N.__&&N.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],pu(t,e=(!n&&r||t).__k=We(Fe,null,[e]),i||ji,ji,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Ja.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Pg(o,e,a)}function en(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,cu(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"+Eg++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Ja,N,_g,lu,Zr,vg,wg,Sg,Ig,uu,au,su,Eg,ji,kg,VR,Gi,Dn=C(()=>{ji={},kg=[],VR=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Gi=Array.isArray;Ja=kg.slice,N={__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}},_g=0,lu=function(e){return e!=null&&e.constructor==null},ht.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=cr({},this.state),typeof e=="function"&&(e=e(cr({},r),this.props)),e&&cr(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),cu(this))},ht.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),cu(this))},ht.prototype.render=Fe,Zr=[],wg=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Sg=function(e,t){return e.__v.__b-t.__v.__b},Ba.__r=0,Ig=/(PointerCapture)$|Capture$/i,uu=0,au=bg(!1),su=bg(!0),Eg=0});var ge=h((a6,Og)=>{"use strict";Og.exports=function(e){try{return!!e()}catch(t){return!0}}});var qn=h((s6,Ng)=>{"use strict";var QR=ge();Ng.exports=!QR(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var ke=h((c6,Lg)=>{"use strict";var Dg=qn(),qg=Function.prototype,mu=qg.call,XR=Dg&&qg.bind.bind(mu,mu);Lg.exports=Dg?XR:function(e){return function(){return mu.apply(e,arguments)}}});var et=h((l6,Mg)=>{"use strict";var ZR=ke();Mg.exports=ZR({}.isPrototypeOf)});var ve=h((hu,Ug)=>{"use strict";var Ji=function(e){return e&&e.Math===Math&&e};Ug.exports=Ji(typeof globalThis=="object"&&globalThis)||Ji(typeof window=="object"&&window)||Ji(typeof self=="object"&&self)||Ji(typeof global=="object"&&global)||Ji(typeof hu=="object"&&hu)||function(){return this}()||Function("return this")()});var gu=h((u6,Bg)=>{"use strict";var eO=qn(),Gg=Function.prototype,Fg=Gg.apply,jg=Gg.call;Bg.exports=typeof Reflect=="object"&&Reflect.apply||(eO?jg.bind(Fg):function(){return jg.apply(Fg,arguments)})});var lr=h((d6,Hg)=>{"use strict";var Jg=ke(),tO=Jg({}.toString),rO=Jg("".slice);Hg.exports=function(e){return rO(tO(e),8,-1)}});var Hi=h((p6,$g)=>{"use strict";var nO=lr(),iO=ke();$g.exports=function(e){if(nO(e)==="Function")return iO(e)}});var je=h((f6,Vg)=>{"use strict";var vu=typeof document=="object"&&document.all;Vg.exports=typeof vu=="undefined"&&vu!==void 0?function(e){return typeof e=="function"||e===vu}:function(e){return typeof e=="function"}});var tt=h((m6,Wg)=>{"use strict";var oO=ge();Wg.exports=!oO(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Nt=h((h6,zg)=>{"use strict";var aO=qn(),Ha=Function.prototype.call;zg.exports=aO?Ha.bind(Ha):function(){return Ha.apply(Ha,arguments)}});var yu=h(Qg=>{"use strict";var Kg={}.propertyIsEnumerable,Yg=Object.getOwnPropertyDescriptor,sO=Yg&&!Kg.call({1:2},1);Qg.f=sO?function(t){var r=Yg(this,t);return!!r&&r.enumerable}:Kg});var $i=h((v6,Xg)=>{"use strict";Xg.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var $a=h((y6,Zg)=>{"use strict";var cO=ke(),lO=ge(),uO=lr(),bu=Object,dO=cO("".split);Zg.exports=lO(function(){return!bu("z").propertyIsEnumerable(0)})?function(e){return uO(e)==="String"?dO(e,""):bu(e)}:bu});var tn=h((b6,ev)=>{"use strict";ev.exports=function(e){return e==null}});var rn=h((_6,tv)=>{"use strict";var pO=tn(),fO=TypeError;tv.exports=function(e){if(pO(e))throw new fO("Can't call method on "+e);return e}});var Rr=h((w6,rv)=>{"use strict";var mO=$a(),hO=rn();rv.exports=function(e){return mO(hO(e))}});var Oe=h((S6,nv)=>{"use strict";var gO=je();nv.exports=function(e){return typeof e=="object"?e!==null:gO(e)}});var Ht=h((I6,iv)=>{"use strict";iv.exports={}});var Ln=h((E6,av)=>{"use strict";var _u=Ht(),wu=ve(),vO=je(),ov=function(e){return vO(e)?e:void 0};av.exports=function(e,t){return arguments.length<2?ov(_u[e])||ov(wu[e]):_u[e]&&_u[e][t]||wu[e]&&wu[e][t]}});var Va=h((k6,lv)=>{"use strict";var yO=ve(),sv=yO.navigator,cv=sv&&sv.userAgent;lv.exports=cv?String(cv):""});var za=h((C6,hv)=>{"use strict";var mv=ve(),Su=Va(),uv=mv.process,dv=mv.Deno,pv=uv&&uv.versions||dv&&dv.version,fv=pv&&pv.v8,Dt,Wa;fv&&(Dt=fv.split("."),Wa=Dt[0]>0&&Dt[0]<4?1:+(Dt[0]+Dt[1]));!Wa&&Su&&(Dt=Su.match(/Edge\/(\d+)/),(!Dt||Dt[1]>=74)&&(Dt=Su.match(/Chrome\/(\d+)/),Dt&&(Wa=+Dt[1])));hv.exports=Wa});var Iu=h((A6,vv)=>{"use strict";var gv=za(),bO=ge(),_O=ve(),wO=_O.String;vv.exports=!!Object.getOwnPropertySymbols&&!bO(function(){var e=Symbol("symbol detection");return!wO(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gv&&gv<41})});var Eu=h((x6,yv)=>{"use strict";var SO=Iu();yv.exports=SO&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var ku=h((P6,bv)=>{"use strict";var IO=Ln(),EO=je(),kO=et(),CO=Eu(),AO=Object;bv.exports=CO?function(e){return typeof e=="symbol"}:function(e){var t=IO("Symbol");return EO(t)&&kO(t.prototype,AO(e))}});var Vi=h((T6,_v)=>{"use strict";var xO=String;_v.exports=function(e){try{return xO(e)}catch(t){return"Object"}}});var nn=h((R6,wv)=>{"use strict";var PO=je(),TO=Vi(),RO=TypeError;wv.exports=function(e){if(PO(e))return e;throw new RO(TO(e)+" is not a function")}});var Ka=h((O6,Sv)=>{"use strict";var OO=nn(),NO=tn();Sv.exports=function(e,t){var r=e[t];return NO(r)?void 0:OO(r)}});var Ev=h((N6,Iv)=>{"use strict";var Cu=Nt(),Au=je(),xu=Oe(),DO=TypeError;Iv.exports=function(e,t){var r,n;if(t==="string"&&Au(r=e.toString)&&!xu(n=Cu(r,e))||Au(r=e.valueOf)&&!xu(n=Cu(r,e))||t!=="string"&&Au(r=e.toString)&&!xu(n=Cu(r,e)))return n;throw new DO("Can't convert object to primitive value")}});var Mn=h((D6,kv)=>{"use strict";kv.exports=!0});var xv=h((q6,Av)=>{"use strict";var Cv=ve(),qO=Object.defineProperty;Av.exports=function(e,t){try{qO(Cv,e,{value:t,configurable:!0,writable:!0})}catch(r){Cv[e]=t}return t}});var Wi=h((L6,Rv)=>{"use strict";var LO=Mn(),MO=ve(),UO=xv(),Pv="__core-js_shared__",Tv=Rv.exports=MO[Pv]||UO(Pv,{});(Tv.versions||(Tv.versions=[])).push({version:"3.41.0",mode:LO?"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 Pu=h((M6,Nv)=>{"use strict";var Ov=Wi();Nv.exports=function(e,t){return Ov[e]||(Ov[e]=t||{})}});var Un=h((U6,Dv)=>{"use strict";var FO=rn(),jO=Object;Dv.exports=function(e){return jO(FO(e))}});var gt=h((F6,qv)=>{"use strict";var GO=ke(),BO=Un(),JO=GO({}.hasOwnProperty);qv.exports=Object.hasOwn||function(t,r){return JO(BO(t),r)}});var Ya=h((j6,Lv)=>{"use strict";var HO=ke(),$O=0,VO=Math.random(),WO=HO(1 .toString);Lv.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+WO(++$O+VO,36)}});var ze=h((G6,Uv)=>{"use strict";var zO=ve(),KO=Pu(),Mv=gt(),YO=Ya(),QO=Iu(),XO=Eu(),Fn=zO.Symbol,Tu=KO("wks"),ZO=XO?Fn.for||Fn:Fn&&Fn.withoutSetter||YO;Uv.exports=function(e){return Mv(Tu,e)||(Tu[e]=QO&&Mv(Fn,e)?Fn[e]:ZO("Symbol."+e)),Tu[e]}});var Bv=h((B6,Gv)=>{"use strict";var e1=Nt(),Fv=Oe(),jv=ku(),t1=Ka(),r1=Ev(),n1=ze(),i1=TypeError,o1=n1("toPrimitive");Gv.exports=function(e,t){if(!Fv(e)||jv(e))return e;var r=t1(e,o1),n;if(r){if(t===void 0&&(t="default"),n=e1(r,e,t),!Fv(n)||jv(n))return n;throw new i1("Can't convert object to primitive value")}return t===void 0&&(t="number"),r1(e,t)}});var Ru=h((J6,Jv)=>{"use strict";var a1=Bv(),s1=ku();Jv.exports=function(e){var t=a1(e,"string");return s1(t)?t:t+""}});var Nu=h((H6,$v)=>{"use strict";var c1=ve(),Hv=Oe(),Ou=c1.document,l1=Hv(Ou)&&Hv(Ou.createElement);$v.exports=function(e){return l1?Ou.createElement(e):{}}});var Du=h(($6,Vv)=>{"use strict";var u1=tt(),d1=ge(),p1=Nu();Vv.exports=!u1&&!d1(function(){return Object.defineProperty(p1("div"),"a",{get:function(){return 7}}).a!==7})});var qu=h(zv=>{"use strict";var f1=tt(),m1=Nt(),h1=yu(),g1=$i(),v1=Rr(),y1=Ru(),b1=gt(),_1=Du(),Wv=Object.getOwnPropertyDescriptor;zv.f=f1?Wv:function(t,r){if(t=v1(t),r=y1(r),_1)try{return Wv(t,r)}catch(n){}if(b1(t,r))return g1(!m1(h1.f,t,r),t[r])}});var Yv=h((W6,Kv)=>{"use strict";var w1=ge(),S1=je(),I1=/#|\.prototype\./,zi=function(e,t){var r=k1[E1(e)];return r===A1?!0:r===C1?!1:S1(t)?w1(t):!!t},E1=zi.normalize=function(e){return String(e).replace(I1,".").toLowerCase()},k1=zi.data={},C1=zi.NATIVE="N",A1=zi.POLYFILL="P";Kv.exports=zi});var Ki=h((z6,Xv)=>{"use strict";var Qv=Hi(),x1=nn(),P1=qn(),T1=Qv(Qv.bind);Xv.exports=function(e,t){return x1(e),t===void 0?e:P1?T1(e,t):function(){return e.apply(t,arguments)}}});var Lu=h((K6,Zv)=>{"use strict";var R1=tt(),O1=ge();Zv.exports=R1&&O1(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var ur=h((Y6,ey)=>{"use strict";var N1=Oe(),D1=String,q1=TypeError;ey.exports=function(e){if(N1(e))return e;throw new q1(D1(e)+" is not an object")}});var dr=h(ry=>{"use strict";var L1=tt(),M1=Du(),U1=Lu(),Qa=ur(),ty=Ru(),F1=TypeError,Mu=Object.defineProperty,j1=Object.getOwnPropertyDescriptor,Uu="enumerable",Fu="configurable",ju="writable";ry.f=L1?U1?function(t,r,n){if(Qa(t),r=ty(r),Qa(n),typeof t=="function"&&r==="prototype"&&"value"in n&&ju in n&&!n[ju]){var i=j1(t,r);i&&i[ju]&&(t[r]=n.value,n={configurable:Fu in n?n[Fu]:i[Fu],enumerable:Uu in n?n[Uu]:i[Uu],writable:!1})}return Mu(t,r,n)}:Mu:function(t,r,n){if(Qa(t),r=ty(r),Qa(n),M1)try{return Mu(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new F1("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var on=h((X6,ny)=>{"use strict";var G1=tt(),B1=dr(),J1=$i();ny.exports=G1?function(e,t,r){return B1.f(e,t,J1(1,r))}:function(e,t,r){return e[t]=r,e}});var ee=h((Z6,oy)=>{"use strict";var Yi=ve(),H1=gu(),$1=Hi(),V1=je(),W1=qu().f,z1=Yv(),jn=Ht(),K1=Ki(),Gn=on(),iy=gt();Wi();var Y1=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 H1(e,this,arguments)};return t.prototype=e.prototype,t};oy.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Yi:i?Yi[r]:Yi[r]&&Yi[r].prototype,s=n?jn:jn[r]||Gn(jn,r,{})[r],c=s.prototype,l,d,u,p,f,m,g,b,v;for(p in t)l=z1(n?p:r+(i?".":"#")+p,e.forced),d=!l&&a&&iy(a,p),m=s[p],d&&(e.dontCallGetSet?(v=W1(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!l&&!o&&typeof m==typeof f)&&(e.bind&&d?b=K1(f,Yi):e.wrap&&d?b=Y1(f):o&&V1(f)?b=$1(f):b=f,(e.sham||f&&f.sham||m&&m.sham)&&Gn(b,"sham",!0),Gn(s,p,b),o&&(u=r+"Prototype",iy(jn,u)||Gn(jn,u,{}),Gn(jn[u],p,f),e.real&&c&&(l||!c[p])&&Gn(c,p,f)))}});var sy=h((e8,ay)=>{"use strict";var Q1=Math.ceil,X1=Math.floor;ay.exports=Math.trunc||function(t){var r=+t;return(r>0?X1:Q1)(r)}});var Qi=h((t8,cy)=>{"use strict";var Z1=sy();cy.exports=function(e){var t=+e;return t!==t||t===0?0:Z1(t)}});var Gu=h((r8,ly)=>{"use strict";var eN=Qi(),tN=Math.min;ly.exports=function(e){var t=eN(e);return t>0?tN(t,9007199254740991):0}});var Bn=h((n8,uy)=>{"use strict";var rN=Gu();uy.exports=function(e){return rN(e.length)}});var Xi=h((i8,dy)=>{"use strict";var nN=lr();dy.exports=Array.isArray||function(t){return nN(t)==="Array"}});var Xa=h((o8,fy)=>{"use strict";var iN=ze(),oN=iN("toStringTag"),py={};py[oN]="z";fy.exports=String(py)==="[object z]"});var Jn=h((a8,my)=>{"use strict";var aN=Xa(),sN=je(),Za=lr(),cN=ze(),lN=cN("toStringTag"),uN=Object,dN=Za(function(){return arguments}())==="Arguments",pN=function(e,t){try{return e[t]}catch(r){}};my.exports=aN?Za:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=pN(t=uN(e),lN))=="string"?r:dN?Za(t):(n=Za(t))==="Object"&&sN(t.callee)?"Arguments":n}});var gy=h((s8,hy)=>{"use strict";var fN=ke(),mN=je(),Bu=Wi(),hN=fN(Function.toString);mN(Bu.inspectSource)||(Bu.inspectSource=function(e){return hN(e)});hy.exports=Bu.inspectSource});var Hu=h((c8,wy)=>{"use strict";var gN=ke(),vN=ge(),vy=je(),yN=Jn(),bN=Ln(),_N=gy(),yy=function(){},by=bN("Reflect","construct"),Ju=/^\s*(?:class|function)\b/,wN=gN(Ju.exec),SN=!Ju.test(yy),Zi=function(t){if(!vy(t))return!1;try{return by(yy,[],t),!0}catch(r){return!1}},_y=function(t){if(!vy(t))return!1;switch(yN(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return SN||!!wN(Ju,_N(t))}catch(r){return!0}};_y.sham=!0;wy.exports=!by||vN(function(){var e;return Zi(Zi.call)||!Zi(Object)||!Zi(function(){e=!0})||e})?_y:Zi});var ky=h((l8,Ey)=>{"use strict";var Sy=Xi(),IN=Hu(),EN=Oe(),kN=ze(),CN=kN("species"),Iy=Array;Ey.exports=function(e){var t;return Sy(e)&&(t=e.constructor,IN(t)&&(t===Iy||Sy(t.prototype))?t=void 0:EN(t)&&(t=t[CN],t===null&&(t=void 0))),t===void 0?Iy:t}});var $u=h((u8,Cy)=>{"use strict";var AN=ky();Cy.exports=function(e,t){return new(AN(e))(t===0?0:t)}});var Nr=h((d8,xy)=>{"use strict";var xN=Ki(),PN=ke(),TN=$a(),RN=Un(),ON=Bn(),NN=$u(),Ay=PN([].push),Or=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=RN(c),f=TN(p),m=ON(f),g=xN(l,d),b=0,v=u||NN,w=t?v(c,m):r||a?v(c,0):void 0,E,A;m>b;b++)if((s||b in f)&&(E=f[b],A=g(E,b,p),e))if(t)w[b]=A;else if(A)switch(e){case 3:return!0;case 5:return E;case 6:return b;case 2:Ay(w,E)}else switch(e){case 4:return!1;case 7:Ay(w,E)}return o?-1:n||i?i:w}};xy.exports={forEach:Or(0),map:Or(1),filter:Or(2),some:Or(3),every:Or(4),find:Or(5),findIndex:Or(6),filterReject:Or(7)}});var eo=h((p8,Py)=>{"use strict";var DN=ge(),qN=ze(),LN=za(),MN=qN("species");Py.exports=function(e){return LN>=51||!DN(function(){var t=[],r=t.constructor={};return r[MN]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Ty=h(()=>{"use strict";var UN=ee(),FN=Nr().filter,jN=eo(),GN=jN("filter");UN({target:"Array",proto:!0,forced:!GN},{filter:function(t){return FN(this,t,arguments.length>1?arguments[1]:void 0)}})});var Ct=h((h8,Ry)=>{"use strict";var BN=ve(),JN=Ht();Ry.exports=function(e,t){var r=JN[e+"Prototype"],n=r&&r[t];if(n)return n;var i=BN[e],o=i&&i.prototype;return o&&o[t]}});var Ny=h((g8,Oy)=>{"use strict";Ty();var HN=Ct();Oy.exports=HN("Array","filter")});var qy=h((v8,Dy)=>{"use strict";var $N=et(),VN=Ny(),Vu=Array.prototype;Dy.exports=function(e){var t=e.filter;return e===Vu||$N(Vu,e)&&t===Vu.filter?VN:t}});var My=h((y8,Ly)=>{"use strict";var WN=qy();Ly.exports=WN});var Fy=h((b8,Uy)=>{Uy.exports=My()});var to=h((_8,jy)=>{"use strict";var zN=ge();jy.exports=function(e,t){var r=[][e];return!!r&&zN(function(){r.call(null,t||function(){return 1},1)})}});var Gy=h(()=>{"use strict";var KN=ee(),YN=Nr().every,QN=to(),XN=QN("every");KN({target:"Array",proto:!0,forced:!XN},{every:function(t){return YN(this,t,arguments.length>1?arguments[1]:void 0)}})});var Jy=h((I8,By)=>{"use strict";Gy();var ZN=Ct();By.exports=ZN("Array","every")});var $y=h((E8,Hy)=>{"use strict";var eD=et(),tD=Jy(),Wu=Array.prototype;Hy.exports=function(e){var t=e.every;return e===Wu||eD(Wu,e)&&t===Wu.every?tD:t}});var Wy=h((k8,Vy)=>{"use strict";var rD=$y();Vy.exports=rD});var Ky=h((C8,zy)=>{zy.exports=Wy()});var Qy=h((A8,Yy)=>{"use strict";var nD=Nr().forEach,iD=to(),oD=iD("forEach");Yy.exports=oD?[].forEach:function(t){return nD(this,t,arguments.length>1?arguments[1]:void 0)}});var Zy=h(()=>{"use strict";var aD=ee(),Xy=Qy();aD({target:"Array",proto:!0,forced:[].forEach!==Xy},{forEach:Xy})});var tb=h((T8,eb)=>{"use strict";Zy();var sD=Ct();eb.exports=sD("Array","forEach")});var nb=h((R8,rb)=>{"use strict";var cD=tb();rb.exports=cD});var ib=h(()=>{});var ab=h((D8,ob)=>{"use strict";var lD=Jn(),uD=gt(),dD=et(),pD=nb();ib();var zu=Array.prototype,fD={DOMTokenList:!0,NodeList:!0};ob.exports=function(e){var t=e.forEach;return e===zu||dD(zu,e)&&t===zu.forEach||uD(fD,lD(e))?pD:t}});var cb=h((q8,sb)=>{sb.exports=ab()});var ub=h((L8,lb)=>{"use strict";var mD=TypeError,hD=9007199254740991;lb.exports=function(e){if(e>hD)throw mD("Maximum allowed index exceeded");return e}});var Ku=h((M8,db)=>{"use strict";var gD=tt(),vD=dr(),yD=$i();db.exports=function(e,t,r){gD?vD.f(e,t,yD(0,r)):e[t]=r}});var hb=h(()=>{"use strict";var bD=ee(),_D=ge(),wD=Xi(),SD=Oe(),ID=Un(),ED=Bn(),pb=ub(),fb=Ku(),kD=$u(),CD=eo(),AD=ze(),xD=za(),mb=AD("isConcatSpreadable"),PD=xD>=51||!_D(function(){var e=[];return e[mb]=!1,e.concat()[0]!==e}),TD=function(e){if(!SD(e))return!1;var t=e[mb];return t!==void 0?!!t:wD(e)},RD=!PD||!CD("concat");bD({target:"Array",proto:!0,arity:1,forced:RD},{concat:function(t){var r=ID(this),n=kD(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],TD(l))for(c=ED(l),pb(i+c),a=0;a<c;a++,i++)a in l&&fb(n,i,l[a]);else pb(i+1),fb(n,i++,l);return n.length=i,n}})});var vb=h((j8,gb)=>{"use strict";hb();var OD=Ct();gb.exports=OD("Array","concat")});var bb=h((G8,yb)=>{"use strict";var ND=et(),DD=vb(),Yu=Array.prototype;yb.exports=function(e){var t=e.concat;return e===Yu||ND(Yu,e)&&t===Yu.concat?DD:t}});var wb=h((B8,_b)=>{"use strict";var qD=bb();_b.exports=qD});var Ib=h((J8,Sb)=>{Sb.exports=wb()});var Eb=h(()=>{"use strict";var LD=ee(),MD=Nr().some,UD=to(),FD=UD("some");LD({target:"Array",proto:!0,forced:!FD},{some:function(t){return MD(this,t,arguments.length>1?arguments[1]:void 0)}})});var Cb=h((V8,kb)=>{"use strict";Eb();var jD=Ct();kb.exports=jD("Array","some")});var xb=h((W8,Ab)=>{"use strict";var GD=et(),BD=Cb(),Qu=Array.prototype;Ab.exports=function(e){var t=e.some;return e===Qu||GD(Qu,e)&&t===Qu.some?BD:t}});var Tb=h((z8,Pb)=>{"use strict";var JD=xb();Pb.exports=JD});var Ob=h((K8,Rb)=>{Rb.exports=Tb()});var Db=h((Y8,Nb)=>{"use strict";var ro=ve(),HD=Va(),$D=lr(),es=function(e){return HD.slice(0,e.length)===e};Nb.exports=function(){return es("Bun/")?"BUN":es("Cloudflare-Workers")?"CLOUDFLARE":es("Deno/")?"DENO":es("Node.js/")?"NODE":ro.Bun&&typeof Bun.version=="string"?"BUN":ro.Deno&&typeof Deno.version=="object"?"DENO":$D(ro.process)==="process"?"NODE":ro.window&&ro.document?"BROWSER":"REST"}()});var no=h((Q8,qb)=>{"use strict";var VD=ke();qb.exports=VD([].slice)});var Mb=h((X8,Lb)=>{"use strict";var WD=TypeError;Lb.exports=function(e,t){if(e<t)throw new WD("Not enough arguments");return e}});var Xu=h((Z8,Fb)=>{"use strict";var Ub=ve(),zD=gu(),KD=je(),YD=Db(),QD=Va(),XD=no(),ZD=Mb(),eq=Ub.Function,tq=/MSIE .\./.test(QD)||YD==="BUN"&&function(){var e=Ub.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();Fb.exports=function(e,t){var r=t?2:1;return tq?function(n,i){var o=ZD(arguments.length,1)>r,a=KD(n)?n:eq(n),s=o?XD(arguments,r):[],c=o?function(){zD(a,this,s)}:a;return t?e(c,i):e(c)}:e}});var Bb=h(()=>{"use strict";var rq=ee(),Gb=ve(),nq=Xu(),jb=nq(Gb.setInterval,!0);rq({global:!0,bind:!0,forced:Gb.setInterval!==jb},{setInterval:jb})});var $b=h(()=>{"use strict";var iq=ee(),Hb=ve(),oq=Xu(),Jb=oq(Hb.setTimeout,!0);iq({global:!0,bind:!0,forced:Hb.setTimeout!==Jb},{setTimeout:Jb})});var Vb=h(()=>{"use strict";Bb();$b()});var zb=h((aK,Wb)=>{"use strict";Vb();var aq=Ht();Wb.exports=aq.setTimeout});var Yb=h((sK,Kb)=>{Kb.exports=zb()});function oo(e,t){we.__h&&we.__h(oe,e,io||t),io=0;var r=oe.__H||(oe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function rs(e){return io=1,a_(s_,e)}function a_(e,t,r){var n=oo(an++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):s_(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=oe,!oe.__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};oe.__f=!0;var o=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.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)},oe.shouldComponentUpdate=i}return n.__N||n.__}function ao(e,t){var r=oo(an++,3);!we.__s&&td(r.__H,t)&&(r.__=e,r.u=t,oe.__H.__h.push(r))}function Hn(e,t){var r=oo(an++,4);!we.__s&&td(r.__H,t)&&(r.__=e,r.u=t,oe.__h.push(r))}function so(e){return io=5,co(function(){return{current:e}},[])}function co(e,t){var r=oo(an++,7);return td(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function $n(e,t){return io=8,co(function(){return e},t)}function Vn(e){var t=oe.context[e.__c],r=oo(an++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(oe)),t.props.value):e.__}function sq(){for(var e;e=o_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ts),e.__H.__h.forEach(ed),e.__H.__h=[]}catch(t){e.__H.__h=[],we.__e(t,e.__v)}}function cq(e){var t,r=function(){clearTimeout(n),i_&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);i_&&(t=requestAnimationFrame(r))}function ts(e){var t=oe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),oe=t}function ed(e){var t=oe;e.__c=e.__(),oe=t}function td(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function s_(e,t){return typeof t=="function"?t(e):t}var an,oe,Zu,Qb,io,o_,we,Xb,Zb,e_,t_,r_,n_,i_,rd=C(()=>{Dn();io=0,o_=[],we=N,Xb=we.__b,Zb=we.__r,e_=we.diffed,t_=we.__c,r_=we.unmount,n_=we.__;we.__b=function(e){oe=null,Xb&&Xb(e)},we.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),n_&&n_(e,t)},we.__r=function(e){Zb&&Zb(e),an=0;var t=(oe=e.__c).__H;t&&(Zu===oe?(t.__h=[],oe.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(ts),t.__h.forEach(ed),t.__h=[],an=0)),Zu=oe},we.diffed=function(e){e_&&e_(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(o_.push(t)!==1&&Qb===we.requestAnimationFrame||((Qb=we.requestAnimationFrame)||cq)(sq)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Zu=oe=null},we.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ts),r.__h=r.__h.filter(function(n){return!n.__||ed(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],we.__e(n,r.__v)}}),t_&&t_(e,t)},we.unmount=function(e){r_&&r_(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ts(n)}catch(i){t=i}}),r.__H=void 0,t&&we.__e(t,r.__v))};i_=typeof requestAnimationFrame=="function"});function v_(e,t){for(var r in t)e[r]=t[r];return e}function id(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 c_(e,t){this.props=e,this.context=t}function ad(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:id(this.props,i)}function n(i){return this.shouldComponentUpdate=r,We(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function sd(e){function t(r){var n=v_({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=lq,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function y_(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=v_({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return y_(n,t,r)})),e}function b_(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return b_(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 nd(){this.__u=0,this.o=null,this.__b=null}function __(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ns(){this.i=null,this.l=null}function cd(e,t,r){return t.__k==null&&(t.textContent=""),Tr(e,t),typeof r=="function"&&r(),e?e.__c:null}function vq(){}function yq(){return this.cancelBubble}function bq(){return this.defaultPrevented}var od,l_,lq,uq,u_,d_,dq,pq,fq,mq,hq,gq,p_,w_,_q,f_,m_,h_,is=C(()=>{Dn();Dn();rd();rd();od=Hn;(c_.prototype=new ht).isPureReactComponent=!0,c_.prototype.shouldComponentUpdate=function(e,t){return id(this.props,e)||id(this.state,t)};l_=N.__b;N.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),l_&&l_(e)};lq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;uq=N.__e;N.__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)}uq(e,t,r,n)};u_=N.unmount;N.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),u_&&u_(e)},(nd.prototype=new ht).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=__(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]=b_(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)},nd.prototype.componentWillUnmount=function(){this.o=[]},nd.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]=y_(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&We(Fe,null,e.fallback);return i&&(i.__u&=-33),[We(Fe,null,t.__a?null:e.children),i]};d_=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]}};(ns.prototype=new ht).__a=function(e){var t=this,r=__(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),d_(t,e,n)):i()};r?r(o):o()}},ns.prototype.render=function(e){this.i=null,this.l=new Map;var t=Bi(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},ns.prototype.componentDidUpdate=ns.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){d_(e,r,t)})};dq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,pq=/^(?: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]/,fq=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,mq=/[A-Z0-9]/g,hq=typeof document!="undefined",gq=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ht.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ht.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});p_=N.event;N.event=function(e){return p_&&(e=p_(e)),e.persist=vq,e.isPropagationStopped=yq,e.isDefaultPrevented=bq,e.nativeEvent=e};_q={enumerable:!1,configurable:!0,get:function(){return this.class}},f_=N.vnode;N.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||hq&&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"||gq(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":fq.test(a)&&(a=c):c=a="oninput":o&&pq.test(a)?a=a.replace(mq,"-$&").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=Bi(r.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Bi(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",_q)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=dq,f_&&f_(e)};m_=N.__r;N.__r=function(e){m_&&m_(e),w_=e.__c};h_=N.diffed;N.diffed=function(e){h_&&h_(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),w_=null}});var ud=h(()=>{"use strict";var Sq=ee(),ld=ve();Sq({global:!0,forced:ld.globalThis!==ld},{globalThis:ld})});var S_=h(()=>{"use strict";ud()});var E_=h((IK,I_)=>{"use strict";ud();I_.exports=ve()});var C_=h((EK,k_)=>{"use strict";var Iq=E_();k_.exports=Iq});var x_=h((kK,A_)=>{"use strict";var Eq=C_();A_.exports=Eq});var T_=h((CK,P_)=>{"use strict";S_();var kq=x_();P_.exports=kq});var O_=h((AK,R_)=>{"use strict";R_.exports=T_()});var D_=h((xK,N_)=>{N_.exports=O_()});var q_=h(()=>{"use strict";var Cq=ee(),Aq=Xi();Cq({target:"Array",stat:!0},{isArray:Aq})});var M_=h((RK,L_)=>{"use strict";q_();var xq=Ht();L_.exports=xq.Array.isArray});var F_=h((OK,U_)=>{"use strict";var Pq=M_();U_.exports=Pq});var G_=h((NK,j_)=>{j_.exports=F_()});var J_=h((DK,B_)=>{"use strict";B_.exports=function(){}});var sn=h((qK,H_)=>{"use strict";H_.exports={}});var dd=h((LK,V_)=>{"use strict";var Tq=ve(),Rq=je(),$_=Tq.WeakMap;V_.exports=Rq($_)&&/native code/.test(String($_))});var os=h((MK,z_)=>{"use strict";var Oq=Pu(),Nq=Ya(),W_=Oq("keys");z_.exports=function(e){return W_[e]||(W_[e]=Nq(e))}});var lo=h((UK,K_)=>{"use strict";K_.exports={}});var ln=h((FK,X_)=>{"use strict";var Dq=dd(),Q_=ve(),qq=Oe(),Lq=on(),pd=gt(),fd=Wi(),Mq=os(),Uq=lo(),Y_="Object already initialized",md=Q_.TypeError,Fq=Q_.WeakMap,as,uo,ss,jq=function(e){return ss(e)?uo(e):as(e,{})},Gq=function(e){return function(t){var r;if(!qq(t)||(r=uo(t)).type!==e)throw new md("Incompatible receiver, "+e+" required");return r}};Dq||fd.state?(qt=fd.state||(fd.state=new Fq),qt.get=qt.get,qt.has=qt.has,qt.set=qt.set,as=function(e,t){if(qt.has(e))throw new md(Y_);return t.facade=e,qt.set(e,t),t},uo=function(e){return qt.get(e)||{}},ss=function(e){return qt.has(e)}):(cn=Mq("state"),Uq[cn]=!0,as=function(e,t){if(pd(e,cn))throw new md(Y_);return t.facade=e,Lq(e,cn,t),t},uo=function(e){return pd(e,cn)?e[cn]:{}},ss=function(e){return pd(e,cn)});var qt,cn;X_.exports={set:as,get:uo,has:ss,enforce:jq,getterFor:Gq}});var vd=h((jK,ew)=>{"use strict";var hd=tt(),Bq=gt(),Z_=Function.prototype,Jq=hd&&Object.getOwnPropertyDescriptor,gd=Bq(Z_,"name"),Hq=gd&&(function(){}).name==="something",$q=gd&&(!hd||hd&&Jq(Z_,"name").configurable);ew.exports={EXISTS:gd,PROPER:Hq,CONFIGURABLE:$q}});var yd=h((GK,tw)=>{"use strict";var Vq=Qi(),Wq=Math.max,zq=Math.min;tw.exports=function(e,t){var r=Vq(e);return r<0?Wq(r+t,0):zq(r,t)}});var bd=h((BK,nw)=>{"use strict";var Kq=Rr(),Yq=yd(),Qq=Bn(),rw=function(e){return function(t,r,n){var i=Kq(t),o=Qq(i);if(o===0)return!e&&-1;var a=Yq(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}};nw.exports={includes:rw(!0),indexOf:rw(!1)}});var wd=h((JK,ow)=>{"use strict";var Xq=ke(),_d=gt(),Zq=Rr(),eL=bd().indexOf,tL=lo(),iw=Xq([].push);ow.exports=function(e,t){var r=Zq(e),n=0,i=[],o;for(o in r)!_d(tL,o)&&_d(r,o)&&iw(i,o);for(;t.length>n;)_d(r,o=t[n++])&&(~eL(i,o)||iw(i,o));return i}});var cs=h((HK,aw)=>{"use strict";aw.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Sd=h(($K,sw)=>{"use strict";var rL=wd(),nL=cs();sw.exports=Object.keys||function(t){return rL(t,nL)}});var lw=h(cw=>{"use strict";var iL=tt(),oL=Lu(),aL=dr(),sL=ur(),cL=Rr(),lL=Sd();cw.f=iL&&!oL?Object.defineProperties:function(t,r){sL(t);for(var n=cL(r),i=lL(r),o=i.length,a=0,s;o>a;)aL.f(t,s=i[a++],n[s]);return t}});var dw=h((WK,uw)=>{"use strict";var uL=Ln();uw.exports=uL("document","documentElement")});var po=h((zK,yw)=>{"use strict";var dL=ur(),pL=lw(),pw=cs(),fL=lo(),mL=dw(),hL=Nu(),gL=os(),fw=">",mw="<",Ed="prototype",kd="script",gw=gL("IE_PROTO"),Id=function(){},vw=function(e){return mw+kd+fw+e+mw+"/"+kd+fw},hw=function(e){e.write(vw("")),e.close();var t=e.parentWindow.Object;return e=null,t},vL=function(){var e=hL("iframe"),t="java"+kd+":",r;return e.style.display="none",mL.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(vw("document.F=Object")),r.close(),r.F},ls,us=function(){try{ls=new ActiveXObject("htmlfile")}catch(t){}us=typeof document!="undefined"?document.domain&&ls?hw(ls):vL():hw(ls);for(var e=pw.length;e--;)delete us[Ed][pw[e]];return us()};fL[gw]=!0;yw.exports=Object.create||function(t,r){var n;return t!==null?(Id[Ed]=dL(t),n=new Id,Id[Ed]=null,n[gw]=t):n=us(),r===void 0?n:pL.f(n,r)}});var _w=h((KK,bw)=>{"use strict";var yL=ge();bw.exports=!yL(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Ad=h((YK,Sw)=>{"use strict";var bL=gt(),_L=je(),wL=Un(),SL=os(),IL=_w(),ww=SL("IE_PROTO"),Cd=Object,EL=Cd.prototype;Sw.exports=IL?Cd.getPrototypeOf:function(e){var t=wL(e);if(bL(t,ww))return t[ww];var r=t.constructor;return _L(r)&&t instanceof r?r.prototype:t instanceof Cd?EL:null}});var ds=h((QK,Iw)=>{"use strict";var kL=on();Iw.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:kL(e,t,r),e}});var Rd=h((XK,Cw)=>{"use strict";var CL=ge(),AL=je(),xL=Oe(),PL=po(),Ew=Ad(),TL=ds(),RL=ze(),OL=Mn(),Td=RL("iterator"),kw=!1,pr,xd,Pd;[].keys&&(Pd=[].keys(),"next"in Pd?(xd=Ew(Ew(Pd)),xd!==Object.prototype&&(pr=xd)):kw=!0);var NL=!xL(pr)||CL(function(){var e={};return pr[Td].call(e)!==e});NL?pr={}:OL&&(pr=PL(pr));AL(pr[Td])||TL(pr,Td,function(){return this});Cw.exports={IteratorPrototype:pr,BUGGY_SAFARI_ITERATORS:kw}});var xw=h((ZK,Aw)=>{"use strict";var DL=Xa(),qL=Jn();Aw.exports=DL?{}.toString:function(){return"[object "+qL(this)+"]"}});var fo=h((e7,Tw)=>{"use strict";var LL=Xa(),ML=dr().f,UL=on(),FL=gt(),jL=xw(),GL=ze(),Pw=GL("toStringTag");Tw.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(FL(i,Pw)||ML(i,Pw,{configurable:!0,value:t}),n&&!LL&&UL(i,"toString",jL))}});var Ow=h((t7,Rw)=>{"use strict";var BL=Rd().IteratorPrototype,JL=po(),HL=$i(),$L=fo(),VL=sn(),WL=function(){return this};Rw.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=JL(BL,{next:HL(+!n,r)}),$L(e,i,!1,!0),VL[i]=WL,e}});var Dw=h((r7,Nw)=>{"use strict";var zL=ke(),KL=nn();Nw.exports=function(e,t,r){try{return zL(KL(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var Lw=h((n7,qw)=>{"use strict";var YL=Oe();qw.exports=function(e){return YL(e)||e===null}});var Uw=h((i7,Mw)=>{"use strict";var QL=Lw(),XL=String,ZL=TypeError;Mw.exports=function(e){if(QL(e))return e;throw new ZL("Can't set "+XL(e)+" as a prototype")}});var jw=h((o7,Fw)=>{"use strict";var eM=Dw(),tM=Oe(),rM=rn(),nM=Uw();Fw.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=eM(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return rM(i),nM(o),tM(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var ms=h((a7,Yw)=>{"use strict";var iM=ee(),oM=Nt(),ps=Mn(),zw=vd(),aM=je(),sM=Ow(),Gw=Ad(),Bw=jw(),cM=fo(),lM=on(),Od=ds(),uM=ze(),Jw=sn(),Kw=Rd(),dM=zw.PROPER,pM=zw.CONFIGURABLE,Hw=Kw.IteratorPrototype,fs=Kw.BUGGY_SAFARI_ITERATORS,mo=uM("iterator"),$w="keys",ho="values",Vw="entries",Ww=function(){return this};Yw.exports=function(e,t,r,n,i,o,a){sM(r,t,n);var s=function(v){if(v===i&&p)return p;if(!fs&&v&&v in d)return d[v];switch(v){case $w:return function(){return new r(this,v)};case ho:return function(){return new r(this,v)};case Vw:return function(){return new r(this,v)}}return function(){return new r(this)}},c=t+" Iterator",l=!1,d=e.prototype,u=d[mo]||d["@@iterator"]||i&&d[i],p=!fs&&u||s(i),f=t==="Array"&&d.entries||u,m,g,b;if(f&&(m=Gw(f.call(new e)),m!==Object.prototype&&m.next&&(!ps&&Gw(m)!==Hw&&(Bw?Bw(m,Hw):aM(m[mo])||Od(m,mo,Ww)),cM(m,c,!0,!0),ps&&(Jw[c]=Ww))),dM&&i===ho&&u&&u.name!==ho&&(!ps&&pM?lM(d,"name",ho):(l=!0,p=function(){return oM(u,this)})),i)if(g={values:s(ho),keys:o?p:s($w),entries:s(Vw)},a)for(b in g)(fs||l||!(b in d))&&Od(d,b,g[b]);else iM({target:t,proto:!0,forced:fs||l},g);return(!ps||a)&&d[mo]!==p&&Od(d,mo,p,{name:i}),Jw[t]=p,g}});var hs=h((s7,Qw)=>{"use strict";Qw.exports=function(e,t){return{value:e,done:t}}});var vs=h((c7,rS)=>{"use strict";var fM=Rr(),Nd=J_(),Xw=sn(),eS=ln(),mM=dr().f,hM=ms(),gs=hs(),gM=Mn(),vM=tt(),tS="Array Iterator",yM=eS.set,bM=eS.getterFor(tS);rS.exports=hM(Array,"Array",function(e,t){yM(this,{type:tS,target:fM(e),index:0,kind:t})},function(){var e=bM(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,gs(void 0,!0);switch(e.kind){case"keys":return gs(r,!1);case"values":return gs(t[r],!1)}return gs([r,t[r]],!1)},"values");var Zw=Xw.Arguments=Xw.Array;Nd("keys");Nd("values");Nd("entries");if(!gM&&vM&&Zw.name!=="values")try{mM(Zw,"name",{value:"values"})}catch(e){}});var Dd=h(()=>{});var qd=h((d7,nS)=>{"use strict";var _M=ge();nS.exports=!_M(function(){return Object.isExtensible(Object.preventExtensions({}))})});var ys=h((p7,iS)=>{"use strict";var wM=ds();iS.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:wM(e,n,t[n],r);return e}});var Ld=h(oS=>{"use strict";var SM=wd(),IM=cs(),EM=IM.concat("length","prototype");oS.f=Object.getOwnPropertyNames||function(t){return SM(t,EM)}});var lS=h((m7,cS)=>{"use strict";var kM=lr(),CM=Rr(),aS=Ld().f,AM=no(),sS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xM=function(e){try{return aS(e)}catch(t){return AM(sS)}};cS.exports.f=function(t){return sS&&kM(t)==="Window"?xM(t):aS(CM(t))}});var dS=h((h7,uS)=>{"use strict";var PM=ge();uS.exports=PM(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var mS=h((g7,fS)=>{"use strict";var TM=ge(),RM=Oe(),OM=lr(),pS=dS(),bs=Object.isExtensible,NM=TM(function(){bs(1)});fS.exports=NM||pS?function(t){return!RM(t)||pS&&OM(t)==="ArrayBuffer"?!1:bs?bs(t):!0}:bs});var go=h((v7,vS)=>{"use strict";var DM=ee(),qM=ke(),LM=lo(),MM=Oe(),Md=gt(),UM=dr().f,hS=Ld(),FM=lS(),Ud=mS(),jM=Ya(),GM=qd(),gS=!1,fr=jM("meta"),BM=0,Fd=function(e){UM(e,fr,{value:{objectID:"O"+BM++,weakData:{}}})},JM=function(e,t){if(!MM(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Md(e,fr)){if(!Ud(e))return"F";if(!t)return"E";Fd(e)}return e[fr].objectID},HM=function(e,t){if(!Md(e,fr)){if(!Ud(e))return!0;if(!t)return!1;Fd(e)}return e[fr].weakData},$M=function(e){return GM&&gS&&Ud(e)&&!Md(e,fr)&&Fd(e),e},VM=function(){WM.enable=function(){},gS=!0;var e=hS.f,t=qM([].splice),r={};r[fr]=1,e(r).length&&(hS.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===fr){t(i,o,1);break}return i},DM({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:FM.f}))},WM=vS.exports={enable:VM,fastKey:JM,getWeakData:HM,onFreeze:$M};LM[fr]=!0});var bS=h((y7,yS)=>{"use strict";var zM=ze(),KM=sn(),YM=zM("iterator"),QM=Array.prototype;yS.exports=function(e){return e!==void 0&&(KM.Array===e||QM[YM]===e)}});var jd=h((b7,wS)=>{"use strict";var XM=Jn(),_S=Ka(),ZM=tn(),eU=sn(),tU=ze(),rU=tU("iterator");wS.exports=function(e){if(!ZM(e))return _S(e,rU)||_S(e,"@@iterator")||eU[XM(e)]}});var IS=h((_7,SS)=>{"use strict";var nU=Nt(),iU=nn(),oU=ur(),aU=Vi(),sU=jd(),cU=TypeError;SS.exports=function(e,t){var r=arguments.length<2?sU(e):t;if(iU(r))return oU(nU(r,e));throw new cU(aU(e)+" is not iterable")}});var _s=h((w7,kS)=>{"use strict";var lU=Nt(),ES=ur(),uU=Ka();kS.exports=function(e,t,r){var n,i;ES(e);try{if(n=uU(e,"return"),!n){if(t==="throw")throw r;return r}n=lU(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return ES(n),r}});var Ss=h((S7,PS)=>{"use strict";var dU=Ki(),pU=Nt(),fU=ur(),mU=Vi(),hU=bS(),gU=Bn(),CS=et(),vU=IS(),yU=jd(),AS=_s(),bU=TypeError,ws=function(e,t){this.stopped=e,this.result=t},xS=ws.prototype;PS.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=dU(t,n),l,d,u,p,f,m,g,b=function(w){return l&&AS(l,"normal",w),new ws(!0,w)},v=function(w){return i?(fU(w),s?c(w[0],w[1],b):c(w[0],w[1])):s?c(w,b):c(w)};if(o)l=e.iterator;else if(a)l=e;else{if(d=yU(e),!d)throw new bU(mU(e)+" is not iterable");if(hU(d)){for(u=0,p=gU(e);p>u;u++)if(f=v(e[u]),f&&CS(xS,f))return f;return new ws(!1)}l=vU(e,d)}for(m=o?e.next:l.next;!(g=pU(m,l)).done;){try{f=v(g.value)}catch(w){AS(l,"throw",w)}if(typeof f=="object"&&f&&CS(xS,f))return f}return new ws(!1)}});var Is=h((I7,TS)=>{"use strict";var _U=et(),wU=TypeError;TS.exports=function(e,t){if(_U(t,e))return e;throw new wU("Incorrect invocation")}});var Gd=h((E7,OS)=>{"use strict";var SU=ee(),IU=ve(),EU=go(),kU=ge(),CU=on(),AU=Ss(),xU=Is(),PU=je(),TU=Oe(),RU=tn(),OU=fo(),NU=dr().f,DU=Nr().forEach,qU=tt(),RS=ln(),LU=RS.set,MU=RS.getterFor;OS.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=IU[e],s=a&&a.prototype,c={},l;if(!qU||!PU(a)||!(i||s.forEach&&!kU(function(){new a().entries().next()})))l=r.getConstructor(t,e,n,o),EU.enable();else{l=t(function(p,f){LU(xU(p,d),{type:e,collection:new a}),RU(f)||AU(f,p[o],{that:p,AS_ENTRIES:n})});var d=l.prototype,u=MU(e);DU(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&CU(d,p,function(m,g){var b=u(this).collection;if(!f&&i&&!TU(m))return p==="get"?void 0:!1;var v=b[p](m===0?0:m,g);return f?this:v})}),i||NU(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return OU(l,e,!1,!0),c[e]=l,SU({global:!0,forced:!0},c),i||r.setStrong(l,e,n),l}});var FS=h((k7,US)=>{"use strict";var UU=ke(),NS=ys(),Es=go().getWeakData,FU=Is(),jU=ur(),GU=tn(),Bd=Oe(),BU=Ss(),qS=Nr(),DS=gt(),LS=ln(),JU=LS.set,HU=LS.getterFor,$U=qS.find,VU=qS.findIndex,WU=UU([].splice),zU=0,ks=function(e){return e.frozen||(e.frozen=new MS)},MS=function(){this.entries=[]},Jd=function(e,t){return $U(e.entries,function(r){return r[0]===t})};MS.prototype={get:function(e){var t=Jd(this,e);if(t)return t[1]},has:function(e){return!!Jd(this,e)},set:function(e,t){var r=Jd(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=VU(this.entries,function(r){return r[0]===e});return~t&&WU(this.entries,t,1),!!~t}};US.exports={getConstructor:function(e,t,r,n){var i=e(function(c,l){FU(c,o),JU(c,{type:t,id:zU++,frozen:null}),GU(l)||BU(l,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=HU(t),s=function(c,l,d){var u=a(c),p=Es(jU(l),!0);return p===!0?ks(u).set(l,d):p[u.id]=d,c};return NS(o,{delete:function(c){var l=a(this);if(!Bd(c))return!1;var d=Es(c);return d===!0?ks(l).delete(c):d&&DS(d,l.id)&&delete d[l.id]},has:function(l){var d=a(this);if(!Bd(l))return!1;var u=Es(l);return u===!0?ks(d).has(l):u&&DS(u,d.id)}}),NS(o,r?{get:function(l){var d=a(this);if(Bd(l)){var u=Es(l);if(u===!0)return ks(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 WS=h(()=>{"use strict";var KU=qd(),jS=ve(),Ps=ke(),GS=ys(),YU=go(),QU=Gd(),BS=FS(),Cs=Oe(),As=ln().enforce,XU=ge(),ZU=dd(),bo=Object,eF=Array.isArray,xs=bo.isExtensible,JS=bo.isFrozen,tF=bo.isSealed,HS=bo.freeze,rF=bo.seal,nF=!jS.ActiveXObject&&"ActiveXObject"in jS,vo,$S=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},VS=QU("WeakMap",$S,BS),Wn=VS.prototype,Ts=Ps(Wn.set),iF=function(){return KU&&XU(function(){var e=HS([]);return Ts(new VS,e,1),!JS(e)})};ZU&&(nF?(vo=BS.getConstructor($S,"WeakMap",!0),YU.enable(),Hd=Ps(Wn.delete),yo=Ps(Wn.has),$d=Ps(Wn.get),GS(Wn,{delete:function(e){if(Cs(e)&&!xs(e)){var t=As(this);return t.frozen||(t.frozen=new vo),Hd(this,e)||t.frozen.delete(e)}return Hd(this,e)},has:function(t){if(Cs(t)&&!xs(t)){var r=As(this);return r.frozen||(r.frozen=new vo),yo(this,t)||r.frozen.has(t)}return yo(this,t)},get:function(t){if(Cs(t)&&!xs(t)){var r=As(this);return r.frozen||(r.frozen=new vo),yo(this,t)?$d(this,t):r.frozen.get(t)}return $d(this,t)},set:function(t,r){if(Cs(t)&&!xs(t)){var n=As(this);n.frozen||(n.frozen=new vo),yo(this,t)?Ts(this,t,r):n.frozen.set(t,r)}else Ts(this,t,r);return this}})):iF()&&GS(Wn,{set:function(t,r){var n;return eF(t)&&(JS(t)?n=HS:tF(t)&&(n=rF)),Ts(this,t,r),n&&n(t),this}}));var Hd,yo,$d});var zS=h(()=>{"use strict";WS()});var YS=h((T7,KS)=>{"use strict";vs();Dd();zS();var oF=Ht();KS.exports=oF.WeakMap});var XS=h((R7,QS)=>{"use strict";QS.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 Vd=h(()=>{"use strict";vs();var aF=XS(),sF=ve(),cF=fo(),ZS=sn();for(Rs in aF)cF(sF[Rs],Rs),ZS[Rs]=ZS.Array;var Rs});var tI=h((D7,eI)=>{"use strict";var lF=YS();Vd();eI.exports=lF});var nI=h((q7,rI)=>{rI.exports=tI()});var oI=h(()=>{"use strict";var uF=ee(),dF=Hi(),pF=bd().indexOf,fF=to(),Wd=dF([].indexOf),iI=!!Wd&&1/Wd([1],1,-0)<0,mF=iI||!fF("indexOf");uF({target:"Array",proto:!0,forced:mF},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return iI?Wd(this,t,r)||0:pF(this,t,r)}})});var sI=h((U7,aI)=>{"use strict";oI();var hF=Ct();aI.exports=hF("Array","indexOf")});var lI=h((F7,cI)=>{"use strict";var gF=et(),vF=sI(),zd=Array.prototype;cI.exports=function(e){var t=e.indexOf;return e===zd||gF(zd,e)&&t===zd.indexOf?vF:t}});var dI=h((j7,uI)=>{"use strict";var yF=lI();uI.exports=yF});var fI=h((G7,pI)=>{pI.exports=dI()});var mI=h(()=>{"use strict";var bF=ee(),_F=Nr().map,wF=eo(),SF=wF("map");bF({target:"Array",proto:!0,forced:!SF},{map:function(t){return _F(this,t,arguments.length>1?arguments[1]:void 0)}})});var gI=h((H7,hI)=>{"use strict";mI();var IF=Ct();hI.exports=IF("Array","map")});var yI=h(($7,vI)=>{"use strict";var EF=et(),kF=gI(),Kd=Array.prototype;vI.exports=function(e){var t=e.map;return e===Kd||EF(Kd,e)&&t===Kd.map?kF:t}});var _I=h((V7,bI)=>{"use strict";var CF=yI();bI.exports=CF});var SI=h((W7,wI)=>{wI.exports=_I()});var II=h(()=>{"use strict";var AF=ee(),xF=tt(),PF=po();AF({target:"Object",stat:!0,sham:!xF},{create:PF})});var kI=h((Y7,EI)=>{"use strict";II();var TF=Ht(),RF=TF.Object;EI.exports=function(t,r){return RF.create(t,r)}});var AI=h((Q7,CI)=>{"use strict";var OF=kI();CI.exports=OF});var PI=h((X7,xI)=>{xI.exports=AI()});var Yd=h((Z7,TI)=>{"use strict";var NF=dr();TI.exports=function(e,t,r){return NF.f(e,t,r)}});var NI=h((eY,OI)=>{"use strict";var DF=Ln(),qF=Yd(),LF=ze(),MF=tt(),RI=LF("species");OI.exports=function(e){var t=DF(e);MF&&t&&!t[RI]&&qF(t,RI,{configurable:!0,get:function(){return this}})}});var jI=h((tY,FI)=>{"use strict";var DI=po(),UF=Yd(),qI=ys(),FF=Ki(),jF=Is(),GF=tn(),BF=Ss(),JF=ms(),Os=hs(),HF=NI(),_o=tt(),LI=go().fastKey,UI=ln(),MI=UI.set,Qd=UI.getterFor;FI.exports={getConstructor:function(e,t,r,n){var i=e(function(l,d){jF(l,o),MI(l,{type:t,index:DI(null),first:null,last:null,size:0}),_o||(l.size=0),GF(d)||BF(d,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Qd(t),s=function(l,d,u){var p=a(l),f=c(l,d),m,g;return f?f.value=u:(p.last=f={index:g=LI(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),_o?p.size++:l.size++,g!=="F"&&(p.index[g]=f)),l},c=function(l,d){var u=a(l),p=LI(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return qI(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=DI(null),_o?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),_o?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=FF(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)}}),qI(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)}}),_o&&UF(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Qd(t),o=Qd(n);JF(e,t,function(a,s){MI(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,Os(void 0,!0)):Os(s==="keys"?c.key:s==="values"?c.value:[c.key,c.value],!1)},r?"entries":"values",!r,!0),HF(t)}}});var GI=h(()=>{"use strict";var $F=Gd(),VF=jI();$F("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},VF)});var BI=h(()=>{"use strict";GI()});var Dr=h((aY,JI)=>{"use strict";var WF=Vi(),zF=TypeError;JI.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 zF(WF(e)+" is not a set")}});var $I=h((sY,HI)=>{"use strict";HI.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var qr=h((cY,WI)=>{"use strict";var KF=Ln(),Xd=$I(),VI=KF("Set"),YF=VI.prototype;WI.exports={Set:VI,add:Xd("add",1),has:Xd("has",1),remove:Xd("delete",1),proto:YF}});var Lr=h((lY,zI)=>{"use strict";var QF=Nt();zI.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=QF(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var zn=h((uY,KI)=>{"use strict";var XF=Lr();KI.exports=function(e,t,r){return r?XF(e.keys(),t,!0):e.forEach(t)}});var Ns=h((dY,QI)=>{"use strict";var YI=qr(),ZF=zn(),ej=YI.Set,tj=YI.add;QI.exports=function(e){var t=new ej;return ZF(e,function(r){tj(t,r)}),t}});var Kn=h((pY,XI)=>{"use strict";XI.exports=function(e){return e.size}});var e0=h((fY,ZI)=>{"use strict";ZI.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Mr=h((mY,a0)=>{"use strict";var t0=nn(),i0=ur(),r0=Nt(),rj=Qi(),nj=e0(),n0="Invalid size",ij=RangeError,oj=TypeError,aj=Math.max,o0=function(e,t){this.set=e,this.size=aj(t,0),this.has=t0(e.has),this.keys=t0(e.keys)};o0.prototype={getIterator:function(){return nj(i0(r0(this.keys,this.set)))},includes:function(e){return r0(this.has,this.set,e)}};a0.exports=function(e){i0(e);var t=+e.size;if(t!==t)throw new oj(n0);var r=rj(t);if(r<0)throw new ij(n0);return new o0(e,r)}});var u0=h((hY,l0)=>{"use strict";var sj=Dr(),c0=qr(),cj=Ns(),lj=Kn(),uj=Mr(),dj=zn(),pj=Lr(),fj=c0.has,s0=c0.remove;l0.exports=function(t){var r=sj(this),n=uj(t),i=cj(r);return lj(r)<=n.size?dj(r,function(o){n.includes(o)&&s0(i,o)}):pj(n.getIterator(),function(o){fj(r,o)&&s0(i,o)}),i}});var Ur=h((gY,d0)=>{"use strict";d0.exports=function(){return!1}});var p0=h(()=>{"use strict";var mj=ee(),hj=u0(),gj=Ur(),vj=!gj("difference",function(e){return e.size===0});mj({target:"Set",proto:!0,real:!0,forced:vj},{difference:hj})});var h0=h((bY,m0)=>{"use strict";var yj=Dr(),Zd=qr(),bj=Kn(),_j=Mr(),wj=zn(),Sj=Lr(),Ij=Zd.Set,f0=Zd.add,Ej=Zd.has;m0.exports=function(t){var r=yj(this),n=_j(t),i=new Ij;return bj(r)>n.size?Sj(n.getIterator(),function(o){Ej(r,o)&&f0(i,o)}):wj(r,function(o){n.includes(o)&&f0(i,o)}),i}});var g0=h(()=>{"use strict";var kj=ee(),Cj=ge(),Aj=h0(),xj=Ur(),Pj=!xj("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||Cj(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});kj({target:"Set",proto:!0,real:!0,forced:Pj},{intersection:Aj})});var y0=h((SY,v0)=>{"use strict";var Tj=Dr(),Rj=qr().has,Oj=Kn(),Nj=Mr(),Dj=zn(),qj=Lr(),Lj=_s();v0.exports=function(t){var r=Tj(this),n=Nj(t);if(Oj(r)<=n.size)return Dj(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return qj(i,function(o){if(Rj(r,o))return Lj(i,"normal",!1)})!==!1}});var b0=h(()=>{"use strict";var Mj=ee(),Uj=y0(),Fj=Ur(),jj=!Fj("isDisjointFrom",function(e){return!e});Mj({target:"Set",proto:!0,real:!0,forced:jj},{isDisjointFrom:Uj})});var w0=h((kY,_0)=>{"use strict";var Gj=Dr(),Bj=Kn(),Jj=zn(),Hj=Mr();_0.exports=function(t){var r=Gj(this),n=Hj(t);return Bj(r)>n.size?!1:Jj(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var S0=h(()=>{"use strict";var $j=ee(),Vj=w0(),Wj=Ur(),zj=!Wj("isSubsetOf",function(e){return e});$j({target:"Set",proto:!0,real:!0,forced:zj},{isSubsetOf:Vj})});var E0=h((xY,I0)=>{"use strict";var Kj=Dr(),Yj=qr().has,Qj=Kn(),Xj=Mr(),Zj=Lr(),eG=_s();I0.exports=function(t){var r=Kj(this),n=Xj(t);if(Qj(r)<n.size)return!1;var i=n.getIterator();return Zj(i,function(o){if(!Yj(r,o))return eG(i,"normal",!1)})!==!1}});var k0=h(()=>{"use strict";var tG=ee(),rG=E0(),nG=Ur(),iG=!nG("isSupersetOf",function(e){return!e});tG({target:"Set",proto:!0,real:!0,forced:iG},{isSupersetOf:rG})});var A0=h((RY,C0)=>{"use strict";var oG=Dr(),ep=qr(),aG=Ns(),sG=Mr(),cG=Lr(),lG=ep.add,uG=ep.has,dG=ep.remove;C0.exports=function(t){var r=oG(this),n=sG(t).getIterator(),i=aG(r);return cG(n,function(o){uG(r,o)?dG(i,o):lG(i,o)}),i}});var x0=h(()=>{"use strict";var pG=ee(),fG=A0(),mG=Ur();pG({target:"Set",proto:!0,real:!0,forced:!mG("symmetricDifference")},{symmetricDifference:fG})});var T0=h((DY,P0)=>{"use strict";var hG=Dr(),gG=qr().add,vG=Ns(),yG=Mr(),bG=Lr();P0.exports=function(t){var r=hG(this),n=yG(t).getIterator(),i=vG(r);return bG(n,function(o){gG(i,o)}),i}});var R0=h(()=>{"use strict";var _G=ee(),wG=T0(),SG=Ur();_G({target:"Set",proto:!0,real:!0,forced:!SG("union")},{union:wG})});var wo=h((MY,O0)=>{"use strict";var IG=Jn(),EG=String;O0.exports=function(e){if(IG(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return EG(e)}});var L0=h((UY,q0)=>{"use strict";var tp=ke(),kG=Qi(),CG=wo(),AG=rn(),xG=tp("".charAt),N0=tp("".charCodeAt),PG=tp("".slice),D0=function(e){return function(t,r){var n=CG(AG(t)),i=kG(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=N0(n,i),a<55296||a>56319||i+1===o||(s=N0(n,i+1))<56320||s>57343?e?xG(n,i):a:e?PG(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};q0.exports={codeAt:D0(!1),charAt:D0(!0)}});var j0=h(()=>{"use strict";var TG=L0().charAt,RG=wo(),U0=ln(),OG=ms(),M0=hs(),F0="String Iterator",NG=U0.set,DG=U0.getterFor(F0);OG(String,"String",function(e){NG(this,{type:F0,string:RG(e),index:0})},function(){var t=DG(this),r=t.string,n=t.index,i;return n>=r.length?M0(void 0,!0):(i=TG(r,n),t.index+=i.length,M0(i,!1))})});var B0=h((GY,G0)=>{"use strict";vs();Dd();BI();p0();g0();b0();S0();k0();x0();R0();j0();var qG=Ht();G0.exports=qG.Set});var H0=h((BY,J0)=>{"use strict";var LG=B0();Vd();J0.exports=LG});var V0=h((JY,$0)=>{$0.exports=H0()});var z0=h(W0=>{"use strict";W0.f=Object.getOwnPropertySymbols});var X0=h(($Y,Q0)=>{"use strict";var K0=tt(),MG=ke(),UG=Nt(),FG=ge(),rp=Sd(),jG=z0(),GG=yu(),BG=Un(),JG=$a(),Yn=Object.assign,Y0=Object.defineProperty,HG=MG([].concat);Q0.exports=!Yn||FG(function(){if(K0&&Yn({b:1},Yn(Y0({},"a",{enumerable:!0,get:function(){Y0(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}),Yn({},e)[r]!==7||rp(Yn({},t)).join("")!==n})?function(t,r){for(var n=BG(t),i=arguments.length,o=1,a=jG.f,s=GG.f;i>o;)for(var c=JG(arguments[o++]),l=a?HG(rp(c),a(c)):rp(c),d=l.length,u=0,p;d>u;)p=l[u++],(!K0||UG(s,c,p))&&(n[p]=c[p]);return n}:Yn});var eE=h(()=>{"use strict";var $G=ee(),Z0=X0();$G({target:"Object",stat:!0,arity:2,forced:Object.assign!==Z0},{assign:Z0})});var rE=h((zY,tE)=>{"use strict";eE();var VG=Ht();tE.exports=VG.Object.assign});var iE=h((KY,nE)=>{"use strict";var WG=rE();nE.exports=WG});var aE=h((YY,oE)=>{oE.exports=iE()});var np=h((QY,sE)=>{"use strict";sE.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 uE=h((XY,lE)=>{"use strict";var zG=ke(),KG=rn(),YG=wo(),op=np(),cE=zG("".replace),QG=RegExp("^["+op+"]+"),XG=RegExp("(^|[^"+op+"])["+op+"]+$"),ip=function(e){return function(t){var r=YG(KG(t));return e&1&&(r=cE(r,QG,"")),e&2&&(r=cE(r,XG,"$1")),r}};lE.exports={start:ip(1),end:ip(2),trim:ip(3)}});var mE=h((ZY,fE)=>{"use strict";var ZG=vd().PROPER,eB=ge(),dE=np(),pE="\u200B\x85\u180E";fE.exports=function(e){return eB(function(){return!!dE[e]()||pE[e]()!==pE||ZG&&dE[e].name!==e})}});var hE=h(()=>{"use strict";var tB=ee(),rB=uE().trim,nB=mE();tB({target:"String",proto:!0,forced:nB("trim")},{trim:function(){return rB(this)}})});var vE=h((rQ,gE)=>{"use strict";hE();var iB=Ct();gE.exports=iB("String","trim")});var bE=h((nQ,yE)=>{"use strict";var oB=et(),aB=vE(),ap=String.prototype;yE.exports=function(e){var t=e.trim;return typeof e=="string"||e===ap||oB(ap,e)&&t===ap.trim?aB:t}});var wE=h((iQ,_E)=>{"use strict";var sB=bE();_E.exports=sB});var IE=h((oQ,SE)=>{SE.exports=wE()});var CE=h(()=>{"use strict";var cB=ee(),EE=Xi(),lB=Hu(),uB=Oe(),kE=yd(),dB=Bn(),pB=Rr(),fB=Ku(),mB=ze(),hB=eo(),gB=no(),vB=hB("slice"),yB=mB("species"),sp=Array,bB=Math.max;cB({target:"Array",proto:!0,forced:!vB},{slice:function(t,r){var n=pB(this),i=dB(n),o=kE(t,i),a=kE(r===void 0?i:r,i),s,c,l;if(EE(n)&&(s=n.constructor,lB(s)&&(s===sp||EE(s.prototype))?s=void 0:uB(s)&&(s=s[yB],s===null&&(s=void 0)),s===sp||s===void 0))return gB(n,o,a);for(c=new(s===void 0?sp:s)(bB(a-o,0)),l=0;o<a;o++,l++)o in n&&fB(c,l,n[o]);return c.length=l,c}})});var xE=h((cQ,AE)=>{"use strict";CE();var _B=Ct();AE.exports=_B("Array","slice")});var TE=h((lQ,PE)=>{"use strict";var wB=et(),SB=xE(),cp=Array.prototype;PE.exports=function(e){var t=e.slice;return e===cp||wB(cp,e)&&t===cp.slice?SB:t}});var OE=h((uQ,RE)=>{"use strict";var IB=TE();RE.exports=IB});var DE=h((dQ,NE)=>{NE.exports=OE()});var lp=C(()=>{});var LE=h((fQ,qE)=>{"use strict";var EB=Oe(),kB=lr(),CB=ze(),AB=CB("match");qE.exports=function(e){var t;return EB(e)&&((t=e[AB])!==void 0?!!t:kB(e)==="RegExp")}});var UE=h((mQ,ME)=>{"use strict";var xB=LE(),PB=TypeError;ME.exports=function(e){if(xB(e))throw new PB("The method doesn't accept regular expressions");return e}});var jE=h((hQ,FE)=>{"use strict";var TB=ze(),RB=TB("match");FE.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[RB]=!1,"/./"[e](t)}catch(n){}}return!1}});var JE=h(()=>{"use strict";var OB=ee(),NB=Hi(),DB=qu().f,qB=Gu(),GE=wo(),LB=UE(),MB=rn(),UB=jE(),FB=Mn(),jB=NB("".slice),GB=Math.min,BE=UB("startsWith"),BB=!FB&&!BE&&!!function(){var e=DB(String.prototype,"startsWith");return e&&!e.writable}();OB({target:"String",proto:!0,forced:!BB&&!BE},{startsWith:function(t){var r=GE(MB(this));LB(t);var n=qB(GB(arguments.length>1?arguments[1]:void 0,r.length)),i=GE(t);return jB(r,n,n+i.length)===i}})});var $E=h((yQ,HE)=>{"use strict";JE();var JB=Ct();HE.exports=JB("String","startsWith")});var WE=h((bQ,VE)=>{"use strict";var HB=et(),$B=$E(),up=String.prototype;VE.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===up||HB(up,e)&&t===up.startsWith?$B:t}});var KE=h((_Q,zE)=>{"use strict";var VB=WE();zE.exports=VB});var QE=h((wQ,YE)=>{YE.exports=KE()});var rk=h((SQ,tk)=>{"use strict";var ZE=ke(),WB=nn(),zB=Oe(),KB=gt(),XE=no(),YB=qn(),ek=Function,QB=ZE([].concat),XB=ZE([].join),dp={},ZB=function(e,t,r){if(!KB(dp,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";dp[t]=ek("C,a","return new C("+XB(n,",")+")")}return dp[t](e,r)};tk.exports=YB?ek.bind:function(t){var r=WB(this),n=r.prototype,i=XE(arguments,1),o=function(){var s=QB(i,XE(arguments));return this instanceof o?ZB(r,s.length,s):r.apply(t,s)};return zB(n)&&(o.prototype=n),o}});var ik=h(()=>{"use strict";var eJ=ee(),nk=rk();eJ({target:"Function",proto:!0,forced:Function.bind!==nk},{bind:nk})});var ak=h((kQ,ok)=>{"use strict";ik();var tJ=Ct();ok.exports=tJ("Function","bind")});var ck=h((CQ,sk)=>{"use strict";var rJ=et(),nJ=ak(),pp=Function.prototype;sk.exports=function(e){var t=e.bind;return e===pp||rJ(pp,e)&&t===pp.bind?nJ:t}});var uk=h((AQ,lk)=>{"use strict";var iJ=ck();lk.exports=iJ});var pk=h((xQ,dk)=>{dk.exports=uk()});function Xs(e,t){Ce.__h&&Ce.__h(de,e,xo||t),xo=0;var r=de.__H||(de.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Qt(e){return xo=1,oJ(eC,e)}function oJ(e,t,r){var n=Xs(ei++,2);if(n.t=e,!n.__c&&(n.__=[eC(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=de,!de.__f)){var i=function(s,c,l){var d;if(!n.__c.__H)return!0;var u=(0,Np.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,Kk.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,Ne.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};de.__f=!0;var o=de.shouldComponentUpdate,a=de.componentWillUpdate;de.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)},de.shouldComponentUpdate=i}return n.__N||n.__}function dn(e,t){var r=Xs(ei++,3);!Ce.__s&&Zk(r.__H,t)&&(r.__=e,r.u=t,de.__H.__h.push(r))}function Eo(e){return xo=5,hr(function(){return{current:e}},[])}function hr(e,t){var r=Xs(ei++,7);return Zk(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function At(e,t){return xo=8,hr(function(){return e},t)}function aJ(e){var t=de.context[e.__c],r=Xs(ei++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(de)),t.props.value):e.__}function sJ(){for(var e;e=Xk.shift();)if(e.__P&&e.__H)try{var t,r;(0,Ne.default)(t=e.__H.__h).call(t,Us),(0,Ne.default)(r=e.__H.__h).call(r,wp),e.__H.__h=[]}catch(n){e.__H.__h=[],Ce.__e(n,e.__v)}}function cJ(e){var t,r=function(){clearTimeout(n),_k&&cancelAnimationFrame(t),(0,Yt.default)(e)},n=(0,Yt.default)(r,100);_k&&(t=requestAnimationFrame(r))}function Us(e){var t=de,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),de=t}function wp(e){var t=de;e.__c=e.__(),de=t}function Zk(e,t){return!e||e.length!==t.length||(0,Vs.default)(t).call(t,function(r,n){return r!==e[n]})}function eC(e,t){return typeof t=="function"?t(e):t}function lJ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Sp(){throw new Error("setTimeout has not been defined")}function Ip(){throw new Error("clearTimeout has not been defined")}function rC(e){if($t===Yt.default)return(0,Yt.default)(e,0);if(($t===Sp||!$t)&&Yt.default)return $t=Yt.default,(0,Yt.default)(e,0);try{return $t(e,0)}catch(t){try{return $t.call(null,e,0)}catch(r){return $t.call(this,e,0)}}}function uJ(e){if(Vt===clearTimeout)return clearTimeout(e);if((Vt===Ip||!Vt)&&clearTimeout)return Vt=clearTimeout,clearTimeout(e);try{return Vt(e)}catch(t){try{return Vt.call(null,e)}catch(r){return Vt.call(this,e)}}}function dJ(){!Qn||!jr||(Qn=!1,jr.length?mr=(0,Qs.default)(jr).call(jr,mr):Fs=-1,mr.length&&nC())}function nC(){if(!Qn){var e=rC(dJ);Qn=!0;for(var t=mr.length;t;){for(jr=mr,mr=[];++Fs<t;)jr&&jr[Fs].run();Fs=-1,t=mr.length}jr=null,Qn=!1,uJ(e)}}function iC(e,t){this.fun=e,this.array=t}function vr(){}function mJ(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 hJ(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 bJ(e,t){return Ge(e,0)^45?(((t<<2^Ge(e,0))<<2^Ge(e,1))<<2^Ge(e,2))<<2^Ge(e,3):0}function sC(e){return(0,Lp.default)(e).call(e)}function _J(e,t){return(e=t.exec(e))?e[0]:e}function Q(e,t,r){return e.replace(t,r)}function Ep(e,t){return(0,gr.default)(e).call(e,t)}function Ge(e,t){return e.charCodeAt(t)|0}function Po(e,t,r){return(0,Mp.default)(e).call(e,t,r)}function Wt(e){return e.length}function Gp(e){return e.length}function Ds(e,t){return t.push(e),e}function wJ(e,t){return(0,Ao.default)(e).call(e,t).join("")}function tc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:ec,column:ti,length:a,return:""}}function So(e,t){return yJ(tc("",null,null,"",null,null,0),e,{length:-e.length},t)}function SJ(){return Ae}function IJ(){return Ae=it>0?Ge(ni,--it):0,ti--,Ae===10&&(ti=1,ec--),Ae}function vt(){return Ae=it<cC?Ge(ni,it++):0,ti++,Ae===10&&(ti=1,ec++),Ae}function Xt(){return Ge(ni,it)}function js(){return it}function qo(e,t){return Po(ni,e,t)}function To(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 lC(e){return ec=ti=1,cC=Wt(ni=e),it=0,[]}function uC(e){return ni="",e}function Gs(e){return sC(qo(it-1,kp(e===91?e+2:e===40?e+1:e)))}function EJ(e){for(;(Ae=Xt())&&Ae<33;)vt();return To(e)>2||To(Ae)>3?"":" "}function kJ(e,t){for(;--t&&vt()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return qo(e,js()+(t<6&&Xt()==32&&vt()==32))}function kp(e){for(;vt();)switch(Ae){case e:return it;case 34:case 39:e!==34&&e!==39&&kp(Ae);break;case 40:e===41&&kp(e);break;case 92:vt();break}return it}function CJ(e,t){for(;vt()&&e+Ae!==57&&!(e+Ae===84&&Xt()===47););return"/*"+qo(t,it-1)+"*"+Zs(e===47?e:vt())}function AJ(e){for(;!To(Xt());)vt();return qo(e,it)}function xJ(e){return uC(Bs("",null,null,null,[""],e=lC(e),0,[0],e))}function Bs(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,g=1,b=1,v=1,w=0,E="",A=i,P=o,T=n,k=E;b;)switch(m=w,w=vt()){case 40:if(m!=108&&Ge(k,u-1)==58){Ep(k+=Q(Gs(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Gs(w);break;case 9:case 10:case 13:case 32:k+=EJ(m);break;case 92:k+=kJ(js()-1,7);continue;case 47:switch(Xt()){case 42:case 47:Ds(PJ(CJ(vt(),js()),t,r),c);break;default:k+="/"}break;case 123*g:s[l++]=Wt(k)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:f>0&&Wt(k)-u&&Ds(f>32?Sk(k+";",n,r,u-1):Sk(Q(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(Ds(T=wk(k,t,r,l,d,i,s,E,A=[],P=[],u),o),w===123)if(d===0)Bs(k,t,T,T,A,o,u,s,P);else switch(p===99&&Ge(k,3)===110?100:p){case 100:case 109:case 115:Bs(e,T,T,n&&Ds(wk(e,T,T,0,0,i,s,E,i,A=[],u),P),i,P,u,s,n?A:P);break;default:Bs(k,T,T,T,[""],P,0,s,P)}}l=d=f=0,g=v=1,E=k="",u=a;break;case 58:u=1+Wt(k),f=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&IJ()==125)continue}switch(k+=Zs(w),w*g){case 38:v=d>0?1:(k+="\f",-1);break;case 44:s[l++]=(Wt(k)-1)*v,v=1;break;case 64:Xt()===45&&(k+=Gs(vt())),p=Xt(),d=u=Wt(E=k+=AJ(js())),w++;break;case 45:m===45&&Wt(k)==2&&(g=0)}}return o}function wk(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Gp(p),m=0,g=0,b=0;m<n;++m)for(var v=0,w=Po(e,u+1,u=vJ(g=a[m])),E=e;v<f;++v)(E=sC(g>0?p[v]+" "+w:Q(w,/&\f/g,p[v])))&&(c[b++]=E);return tc(e,t,r,i===0?Fp:s,c,l,d)}function PJ(e,t,r){return tc(e,t,r,Up,Zs(SJ()),Po(e,2,-2),0)}function Sk(e,t,r,n){return tc(e,t,r,jp,Po(e,0,n),Po(e,n+1,-1),n)}function Xn(e,t){for(var r="",n=Gp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function TJ(e,t,r,n){switch(e.type){case gJ:case jp:return e.return=e.return||e.value;case Up:return"";case aC:return e.return=e.value+"{"+Xn(e.children,n)+"}";case Fp:e.value=e.props.join(",")}return Wt(r=Xn(e.children,n))?e.return=e.value+"{"+r+"}":""}function RJ(e){var t=Gp(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 OJ(e){return function(t){t.root||(t=t.return)&&e(t)}}function pC(e,t){switch(bJ(e,t)){case 5103:return $+"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 $+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $+e+zs+e+Ke+e+e;case 6828:case 4268:return $+e+Ke+e+e;case 6165:return $+e+Ke+"flex-"+e+e;case 5187:return $+e+Q(e,/(\w+).+(:[^]+)/,$+"box-$1$2"+Ke+"flex-$1$2")+e;case 5443:return $+e+Ke+"flex-item-"+Q(e,/flex-|-self/,"")+e;case 4675:return $+e+Ke+"flex-line-pack"+Q(e,/align-content|flex-|-self/,"")+e;case 5548:return $+e+Ke+Q(e,"shrink","negative")+e;case 5292:return $+e+Ke+Q(e,"basis","preferred-size")+e;case 6060:return $+"box-"+Q(e,"-grow","")+$+e+Ke+Q(e,"grow","positive")+e;case 4554:return $+Q(e,/([^-])(transform)/g,"$1"+$+"$2")+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),e,"")+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+Ke+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+e+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,$+"$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(Wt(e)-1-t>6)switch(Ge(e,t+1)){case 109:if(Ge(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+zs+(Ge(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ep(e,"stretch")?pC(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ge(e,t+1)!==115)break;case 6444:switch(Ge(e,Wt(e)-3-(~Ep(e,"!important")&&10))){case 107:return Q(e,":",":"+$)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$+(Ge(e,14)===45?"inline-":"")+"box$3$1"+$+"$2$3$1"+Ke+"$2box$3")+e}break;case 5936:switch(Ge(e,t+11)){case 114:return $+e+Ke+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $+e+Ke+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $+e+Ke+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $+e+Ke+e+e}return e}function mC(){if(kk)return qs.exports;kk=1;let e=mC();return qs.exports={default:e},qs.exports.default=e,qs.exports}function Ro(e,t,r){var n,i="";return(0,Ne.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function VJ(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 zJ(e){var t=(0,Yk.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Oo(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 zt={name:i.name,styles:i.styles,next:zt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)zt={name:a.name,styles:a.styles,next:zt},a=a.next;var s=o.styles+";";return s}return QJ(e,t,r)}case"function":{if(e!==void 0){var c=zt,l=r(e);return zt=c,Oo(e,t,l)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function QJ(e,t,r){var n="";if((0,Co.default)(r))for(var i=0;i<r.length;i++)n+=Oo(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]+"}":Ck(s)&&(n+=mp(o)+":"+Ak(o,s)+";")}else if((0,Co.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)Ck(a[c])&&(n+=mp(o)+":"+Ak(o,a[c])+";");else{var l=Oo(e,t,a);switch(o){case"animation":case"animationName":{n+=mp(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function Gr(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="";zt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Oo(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Oo(r,t,e[s]),n){var c=o;i+=c[s]}xk.lastIndex=0;for(var l="",d;(d=xk.exec(i))!==null;)l+="-"+d[1];var u=VJ(i)+l;return{name:u,styles:i,next:zt}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Gr(t)}function c2(e,t,r){var n=[],i=Ro(e,n,r);return n.length<2?r:i+t(n)}function _(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:--d2,__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 N.vnode&&N.vnode(l),l}function Lo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Qt(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 PH(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 kC(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=PH(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function TH(e){let t=()=>kC(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function NH(s){var c=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=c,a=$e(c,["elementTag","src","children","handleExposure","className","imgStyle"]);let l=OH(()=>{t&&n()});return e==="Image"?_("div",{className:i,style:{borderRadius:"8px"},children:We("img",U(x({},a),{ref:l,src:t!=null?t:"",style:x({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):_("div",U(x({},a),{ref:l,className:i,children:r}))}function DH(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?We(i.type,U(x({},i.props),{style:U(x({},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?We(e.type,U(x({},e.props),{style:U(x({},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 FH(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 jk(e,t,r){return nc.call(t,"css")?_($p,bC(e,t),r):_(e,t,r)}function $H(e,t,r){return nc.call(t,"css")?_($p,bC(e,t),r):_(e,t,r)}function Tp({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return _("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?_(Fe,{children:t[s]},o):null}return _(Fe,{children:i},o)})})}function zH({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Qt(!1);return a?null:_("div",{style:x({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:_("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function QH({children:e,style:t}){return _("div",{style:`${KH.styles} ${t}`,children:[e,_("svg",{style:`${YH.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[_("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),_("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function p5(e,t){return Be(e,0)^45?(((t<<2^Be(e,0))<<2^Be(e,1))<<2^Be(e,2))<<2^Be(e,3):0}function FC(e){return(0,Lp.default)(e).call(e)}function f5(e,t){return(e=t.exec(e))?e[0]:e}function W(e,t,r){return e.replace(t,r)}function Rp(e,t){return(0,gr.default)(e).call(e,t)}function Be(e,t){return e.charCodeAt(t)|0}function No(e,t,r){return(0,Mp.default)(e).call(e,t,r)}function Kt(e){return e.length}function Yp(e){return e.length}function Ms(e,t){return t.push(e),e}function m5(e,t){return(0,Ao.default)(e).call(e,t).join("")}function lc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:cc,column:ri,length:a,return:""}}function Io(e,t){return d5(lc("",null,null,"",null,null,0),e,{length:-e.length},t)}function h5(){return xe}function g5(){return xe=ot>0?Be(oi,--ot):0,ri--,xe===10&&(ri=1,cc--),xe}function yt(){return xe=ot<jC?Be(oi,ot++):0,ri++,xe===10&&(ri=1,cc++),xe}function Zt(){return Be(oi,ot)}function Js(){return ot}function Mo(e,t){return No(oi,e,t)}function Do(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 GC(e){return cc=ri=1,jC=Kt(oi=e),ot=0,[]}function BC(e){return oi="",e}function Hs(e){return FC(Mo(ot-1,Op(e===91?e+2:e===40?e+1:e)))}function v5(e){for(;(xe=Zt())&&xe<33;)yt();return Do(e)>2||Do(xe)>3?"":" "}function y5(e,t){for(;--t&&yt()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Mo(e,Js()+(t<6&&Zt()==32&&yt()==32))}function Op(e){for(;yt();)switch(xe){case e:return ot;case 34:case 39:e!==34&&e!==39&&Op(xe);break;case 40:e===41&&Op(e);break;case 92:yt();break}return ot}function b5(e,t){for(;yt()&&e+xe!==57&&!(e+xe===84&&Zt()===47););return"/*"+Mo(t,ot-1)+"*"+sc(e===47?e:yt())}function _5(e){for(;!Do(Zt());)yt();return Mo(e,ot)}function w5(e){return BC($s("",null,null,null,[""],e=GC(e),0,[0],e))}function $s(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,g=1,b=1,v=1,w=0,E="",A=i,P=o,T=n,k=E;b;)switch(m=w,w=yt()){case 40:if(m!=108&&Be(k,u-1)==58){Rp(k+=W(Hs(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Hs(w);break;case 9:case 10:case 13:case 32:k+=v5(m);break;case 92:k+=y5(Js()-1,7);continue;case 47:switch(Zt()){case 42:case 47:Ms(S5(b5(yt(),Js()),t,r),c);break;default:k+="/"}break;case 123*g:s[l++]=Kt(k)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:v==-1&&(k=W(k,/\f/g,"")),f>0&&Kt(k)-u&&Ms(f>32?Bk(k+";",n,r,u-1):Bk(W(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(Ms(T=Gk(k,t,r,l,d,i,s,E,A=[],P=[],u),o),w===123)if(d===0)$s(k,t,T,T,A,o,u,s,P);else switch(p===99&&Be(k,3)===110?100:p){case 100:case 108:case 109:case 115:$s(e,T,T,n&&Ms(Gk(e,T,T,0,0,i,s,E,i,A=[],u),P),i,P,u,s,n?A:P);break;default:$s(k,T,T,T,[""],P,0,s,P)}}l=d=f=0,g=v=1,E=k="",u=a;break;case 58:u=1+Kt(k),f=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&g5()==125)continue}switch(k+=sc(w),w*g){case 38:v=d>0?1:(k+="\f",-1);break;case 44:s[l++]=(Kt(k)-1)*v,v=1;break;case 64:Zt()===45&&(k+=Hs(yt())),p=Zt(),d=u=Kt(E=k+=_5(Js())),w++;break;case 45:m===45&&Kt(k)==2&&(g=0)}}return o}function Gk(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Yp(p),m=0,g=0,b=0;m<n;++m)for(var v=0,w=No(e,u+1,u=u5(g=a[m])),E=e;v<f;++v)(E=FC(g>0?p[v]+" "+w:W(w,/&\f/g,p[v])))&&(c[b++]=E);return lc(e,t,r,i===0?zp:s,c,l,d)}function S5(e,t,r){return lc(e,t,r,MC,sc(h5()),No(e,2,-2),0)}function Bk(e,t,r,n){return lc(e,t,r,Kp,No(e,0,n),No(e,n+1,-1),n)}function Zn(e,t){for(var r="",n=Yp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function I5(e,t,r,n){switch(e.type){case l5:if(e.children.length)break;case c5:case Kp:return e.return=e.return||e.value;case MC:return"";case UC:return e.return=e.value+"{"+Zn(e.children,n)+"}";case zp:e.value=e.props.join(",")}return Kt(r=Zn(e.children,n))?e.return=e.value+"{"+r+"}":""}function E5(e){var t=Yp(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 k5(e){return function(t){t.root||(t=t.return)&&e(t)}}function JC(e,t){switch(p5(e,t)){case 5103:return V+"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 V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+Ys+e+Ye+e+e;case 6828:case 4268:return V+e+Ye+e+e;case 6165:return V+e+Ye+"flex-"+e+e;case 5187:return V+e+W(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+Ye+"flex-$1$2")+e;case 5443:return V+e+Ye+"flex-item-"+W(e,/flex-|-self/,"")+e;case 4675:return V+e+Ye+"flex-line-pack"+W(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+Ye+W(e,"shrink","negative")+e;case 5292:return V+e+Ye+W(e,"basis","preferred-size")+e;case 6060:return V+"box-"+W(e,"-grow","")+V+e+Ye+W(e,"grow","positive")+e;case 4554:return V+W(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return W(W(W(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return W(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return W(W(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+Ye+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return W(e,/(.+)-inline(.+)/,V+"$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(Kt(e)-1-t>6)switch(Be(e,t+1)){case 109:if(Be(e,t+4)!==45)break;case 102:return W(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+Ys+(Be(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Rp(e,"stretch")?JC(W(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Be(e,t+1)!==115)break;case 6444:switch(Be(e,Kt(e)-3-(~Rp(e,"!important")&&10))){case 107:return W(e,":",":"+V)+e;case 101:return W(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(Be(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+Ye+"$2box$3")+e}break;case 5936:switch(Be(e,t+11)){case 114:return V+e+Ye+W(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+Ye+W(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+Ye+W(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+Ye+e+e}return e}function Hk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function bp(e,t,r){var n=[],i=Ro(e,n,r);return n.length<2?r:i+t(n)}function Wk(e){if(e==="top"){let t=0;HC.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${$k}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${$k}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+Vk)})}else if(e==="center"){let t=0;$C.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+Vk)})}}function pn(){let e=!1,t=null,r=0,n=new Set,i=a=>y(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:c}=yield ko.acquire(),l=c.contentDocument;if(l)t=l.createElement("div"),t.id="loading-root",l.body.appendChild(t),Tr(_(B5,{}),t);else throw new Error("Iframe document is not available.")}catch(c){console.error("[LoadingManager] Failed to show loading:",c),r=0,e=!1,ko.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&&(Tr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),ko.release()))};return{show:i,hide:o,get isLoading(){return e}}}var Np,Kk,Ne,Qs,Vs,Yt,Ws,Co,Dp,gr,Ao,Yk,Qk,qp,Lp,Mp,NQ,_p,ei,de,fp,fk,xo,Xk,Ce,mk,hk,gk,vk,yk,bk,_k,tC,Se,$t,Vt,mr,Qn,jr,Fs,pJ,De,fJ,oC,Ke,zs,$,Up,Fp,jp,gJ,aC,vJ,Zs,yJ,ec,ti,cC,it,Ae,ni,NJ,DJ,qJ,Ik,LJ,MJ,UJ,FJ,jJ,dC,GJ,Ek,BJ,JJ,HJ,fC,qs,kk,$J,Bp,rc,WJ,KJ,YJ,hC,Ck,mp,Ak,xk,zt,XJ,gC,vC,Pk,nc,Jp,yC,Hp,ic,ZJ,e2,t2,r2,n2,Cp,Ap,bC,i2,$p,o2,Tk,a2,s2,l2,u2,hp,Rk,gp,vp,d2,yp,p2,f2,m2,h2,g2,v2,y2,Ok,b2,_2,w2,Nk,S2,I2,E2,Dk,k2,C2,A2,qk,x2,P2,T2,R2,O2,N2,D2,q2,L2,M2,U2,Lk,F2,j2,G2,B2,J2,H2,$2,V2,W2,z2,K2,Mk,Y2,Q2,X2,Z2,eH,tH,rH,nH,iH,oH,aH,sH,cH,lH,uH,dH,pH,fH,mH,hH,gH,vH,yH,bH,_H,wH,SH,IH,EH,kH,CH,AH,_C,wC,SC,xp,xH,IC,EC,Ks,ko,Uk,RH,oc,OH,CC,AC,xC,qH,LH,MH,Pp,UH,PC,TC,ac,Vp,ii,Fk,Fr,RC,un,jH,GH,BH,JH,HH,Ls,OC,Wp,ye,VH,WH,KH,YH,Lt,XH,ZH,NC,DC,qC,LC,Br,e5,t5,r5,n5,i5,o5,a5,s5,Ye,Ys,V,MC,zp,Kp,c5,UC,l5,u5,sc,d5,cc,ri,jC,ot,xe,oi,C5,A5,x5,Jk,P5,T5,R5,O5,N5,D5,q5,L5,M5,U5,F5,j5,$k,Vk,HC,$C,Jr,zk,G5,B5,DQ,er=C(()=>{"use strict";Dn();Np=re(Fy(),1),Kk=re(Ky(),1),Ne=re(cb(),1),Qs=re(Ib(),1),Vs=re(Ob(),1),Yt=re(Yb(),1);is();is();Ws=re(D_(),1),Co=re(G_(),1),Dp=re(nI(),1),gr=re(fI(),1),Ao=re(SI(),1),Yk=re(PI(),1),Qk=re(V0(),1),qp=re(aE(),1),Lp=re(IE(),1),Mp=re(DE(),1);lp();lp();NQ=re(QE(),1),_p=re(pk(),1),xo=0,Xk=[],Ce=N,mk=Ce.__b,hk=Ce.__r,gk=Ce.diffed,vk=Ce.__c,yk=Ce.unmount,bk=Ce.__;Ce.__b=function(e){de=null,mk&&mk(e)},Ce.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),bk&&bk(e,t)},Ce.__r=function(e){var t,r,n;hk&&hk(e),ei=0;var i=(de=e.__c).__H;i&&(fp===de?(i.__h=[],de.__h=[],(0,Ne.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Ne.default)(r=i.__h).call(r,Us),(0,Ne.default)(n=i.__h).call(n,wp),i.__h=[],ei=0)),fp=de},Ce.diffed=function(e){var t;gk&&gk(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(Xk.push(r)!==1&&fk===Ce.requestAnimationFrame||((fk=Ce.requestAnimationFrame)||cJ)(sJ)),(0,Ne.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),fp=de=null},Ce.__c=function(e,t){(0,Vs.default)(t).call(t,function(r){try{var n,i;(0,Ne.default)(n=r.__h).call(n,Us),r.__h=(0,Np.default)(i=r.__h).call(i,function(o){return!o.__||wp(o)})}catch(o){(0,Vs.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Ce.__e(o,r.__v)}}),vk&&vk(e,t)},Ce.unmount=function(e){var t;yk&&yk(e);var r,n=e.__c;n&&n.__H&&((0,Ne.default)(t=n.__H.__).call(t,function(i){try{Us(i)}catch(o){r=o}}),n.__H=void 0,r&&Ce.__e(r,n.__v))};_k=typeof requestAnimationFrame=="function";tC={exports:{}},Se=tC.exports={};(function(){try{typeof Yt.default=="function"?$t=Yt.default:$t=Sp}catch(e){$t=Sp}try{typeof clearTimeout=="function"?Vt=clearTimeout:Vt=Ip}catch(e){Vt=Ip}})();mr=[],Qn=!1,Fs=-1;Se.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];mr.push(new iC(e,t)),mr.length===1&&!Qn&&rC(nC)};iC.prototype.run=function(){this.fun.apply(null,this.array)};Se.title="browser";Se.browser=!0;Se.env={};Se.argv=[];Se.version="";Se.versions={};Se.on=vr;Se.addListener=vr;Se.once=vr;Se.off=vr;Se.removeListener=vr;Se.removeAllListeners=vr;Se.emit=vr;Se.prependListener=vr;Se.prependOnceListener=vr;Se.listeners=function(e){return[]};Se.binding=function(e){throw new Error("process.binding is not supported")};Se.cwd=function(){return"/"};Se.chdir=function(e){throw new Error("process.chdir is not supported")};Se.umask=function(){return 0};pJ=tC.exports,De=lJ(pJ),fJ=Ws.default||void 0||self;oC=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,Ne.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(hJ(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=mJ(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Ne.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}(),Ke="-ms-",zs="-moz-",$="-webkit-",Up="comm",Fp="rule",jp="decl",gJ="@import",aC="@keyframes",vJ=Math.abs,Zs=String.fromCharCode,yJ=qp.default;ec=1,ti=1,cC=0,it=0,Ae=0,ni="";NJ=function(e,t,r){for(var n=0,i=0;n=i,i=Xt(),n===38&&i===12&&(t[r]=1),!To(i);)vt();return qo(e,it)},DJ=function(e,t){var r=-1,n=44;do switch(To(n)){case 0:n===38&&Xt()===12&&(t[r]=1),e[r]+=NJ(it-1,t,r);break;case 2:e[r]+=Gs(n);break;case 4:if(n===44){e[++r]=Xt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Zs(n)}while(n=vt());return e},qJ=function(e,t){return uC(DJ(lC(e),t))},Ik=new Dp.default,LJ=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&&!Ik.get(r))&&!n){Ik.set(e,!0);for(var i=[],o=qJ(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]}}},MJ=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},UJ="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",FJ=function(e){var t;return e.type==="comm"&&(0,gr.default)(t=e.children).call(t,UJ)>-1},jJ=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(FJ(c))return;break}}(0,Ne.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".')})}}}},dC=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},GJ=function(e,t){for(var r=e-1;r>=0;r--)if(!dC(t[r]))return!0;return!1},Ek=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},BJ=function(e,t,r){dC(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."),Ek(e)):GJ(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ek(e)))};JJ=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case jp:e.return=pC(e.value,e.length);break;case aC:return Xn([So(e,{value:Q(e.value,"@","@"+$)})],n);case Fp:if(e.length)return wJ(e.props,function(i){switch(_J(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xn([So(e,{props:[Q(i,/:(read-\w+)/,":"+zs+"$1")]})],n);case"::placeholder":return Xn([So(e,{props:[Q(i,/:(plac\w+)/,":"+$+"input-$1")]}),So(e,{props:[Q(i,/:(plac\w+)/,":"+zs+"$1")]}),So(e,{props:[Q(i,/:(plac\w+)/,Ke+"input-$1")]})],n)}return""})}},HJ=[JJ],fC=function(e){var t=e.key;if(De.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,
|
|
24
|
-
`),r=0;r<t.length;r++){var n=
|
|
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}=I.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${c}px`)},o=()=>{function s(l){return y(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 hg=P(()=>{"use strict";J()});var gg=P(()=>{"use strict"});var vg=P(()=>{"use strict";O();Jl()});var yg=P(()=>{"use strict";J()});var Ba,cu=P(()=>{"use strict";gg();vg();J();yg();O();Ba=new $t});function dr(e,t){for(var r in t)e[r]=t[r];return e}function mu(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ye(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?Va.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 Ha(e,a,n,i,null)}function Ha(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?++Sg:i,__i:-1,__u:0};return i==null&&D.vnode!=null&&D.vnode(o),o}function Ge(e){return e.children}function yt(e,t){this.props=e,this.context=t}function Un(e,t){if(t==null)return e.__?Un(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"?Un(e):null}function xg(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 xg(e)}}function du(e){(!e.__d&&(e.__d=!0)&&on.push(e)&&!$a.__r++||bg!==D.debounceRendering)&&((bg=D.debounceRendering)||Ig)($a)}function $a(){for(var e,t,r,n,i,o,a,s=1;on.length;)on.length>s&&on.sort(Eg),e=on.shift(),s=on.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=dr({},n)).__v=n.__v+1,D.vnode&&D.vnode(r),hu(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Un(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Rg(o,r,a),r.__e!=i&&xg(r)));$a.__r=0}function Pg(e,t,r,n,i,o,a,s,c,l,d){var u,p,f,m,g,b,v=n&&n.__k||Ag,w=t.length;for(c=YR(r,t,v,c,w),u=0;u<w;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?Hi:v[f.__i]||Hi,f.__i=u,b=hu(e,f,p,i,o,a,s,c,l,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&gu(p.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||p.__k===f.__k?c=Tg(f,c,e):typeof f.type=="function"&&b!==void 0?c=b:m&&(c=m.nextSibling),f.__u&=-7);return r.__e=g,c}function YR(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?Ha(null,a,null,null,null):$i(a)?Ha(Ge,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Ha(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=QR(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=Un(s)),Ng(s,s));return n}function Tg(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=Tg(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Un(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Vi(e,t){return t=t||[],e==null||typeof e=="boolean"||($i(e)?e.some(function(r){Vi(r,t)}):t.push(e)),t}function QR(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 _g(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||KR.test(t)?r:r+"px"}function Ja(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||_g(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||_g(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(kg,"$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=fu,e.addEventListener(t,o?uu:lu,o)):e.removeEventListener(t,o?uu:lu,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 wg(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=fu++;else if(t.u<r.t)return;return r(D.event?D.event(t):t)}}}function hu(e,t,r,n,i,o,a,s,c,l){var d,u,p,f,m,g,b,v,w,S,x,A,C,k,B,le,N,R=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=D.__b)&&d(t);e:if(typeof R=="function")try{if(v=t.props,w="prototype"in R&&R.prototype.render,S=(d=R.contextType)&&n[d.__c],x=d?S?S.props.value:d.__:n,r.__c?b=(u=t.__c=r.__c).__=u.__E:(w?t.__c=u=new R(v,x):(t.__c=u=new yt(v,x),u.constructor=R,u.render=ZR),S&&S.sub(u),u.props=v,u.state||(u.state={}),u.context=x,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),w&&u.__s==null&&(u.__s=u.state),w&&R.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=dr({},u.__s)),dr(u.__s,R.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)w&&R.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),w&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(w&&R.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,x),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,x)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(U){U&&(U.__=t)}),A=0;A<u._sb.length;A++)u.__h.push(u._sb[A]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,x),w&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=x,u.props=v,u.__P=e,u.__e=!1,C=D.__r,k=0,w){for(u.state=u.__s,u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),B=0;B<u._sb.length;B++)u.__h.push(u._sb[B]);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&&++k<25);u.state=u.__s,u.getChildContext!=null&&(n=dr(dr({},n),u.getChildContext())),w&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),le=d,d!=null&&d.type===Ge&&d.key==null&&(le=Og(d.props.children)),s=Pg(e,$i(le)?le:[le],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(U){if(t.__v=null,c||o!=null)if(U.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--;)mu(o[N]);else t.__e=r.__e,t.__k=r.__k;D.__e(U,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=XR(r.__e,t,r,n,i,o,a,c,l);return(d=D.diffed)&&d(t),128&t.__u?void 0:s}function Rg(e,t,r){for(var n=0;n<r.length;n++)gu(r[n],r[++n],r[++n]);D.__c&&D.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){D.__e(o,i.__v)}})}function Og(e){return typeof e!="object"||e==null?e:$i(e)?e.map(Og):dr({},e)}function XR(e,t,r,n,i,o,a,s,c){var l,d,u,p,f,m,g,b=r.props,v=t.props,w=t.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="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==!!w&&(w?f.localName==w:f.nodeType==3)){e=f,o[l]=null;break}}if(e==null){if(w==null)return document.createTextNode(v);e=document.createElementNS(i,w,v.is&&v),s&&(D.__m&&D.__m(t,o),s=!1),o=null}if(w===null)b===v||s&&e.data===v||(e.data=v);else{if(o=o&&Va.call(e.childNodes),b=r.props||Hi,!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 v)){if(l=="value"&&"defaultValue"in v||l=="checked"&&"defaultChecked"in v)continue;Ja(e,l,null,f,i)}}for(l in v)f=v[l],l=="children"?p=f:l=="dangerouslySetInnerHTML"?d=f:l=="value"?m=f:l=="checked"?g=f:s&&typeof f!="function"||b[l]===f||Ja(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=""),Pg(t.type==="template"?e.content:e,$i(p)?p:[p],t,r,n,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Un(r,0),s,c),o!=null)for(l=o.length;l--;)mu(o[l]);s||(l="value",w=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[l]||w=="progress"&&!m||w=="option"&&m!==b[l])&&Ja(e,l,m,b[l],i),l="checked",g!==void 0&&g!==e[l]&&Ja(e,l,g,b[l],i))}return e}function gu(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){D.__e(i,r)}}function Ng(e,t,r){var n,i;if(D.unmount&&D.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||gu(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){D.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Ng(n[i],t,r||typeof e.type!="function");r||mu(e.__e),e.__c=e.__=e.__e=void 0}function ZR(e,t,r){return this.constructor(e,r)}function Lr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),D.__&&D.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],hu(t,e=(!n&&r||t).__k=Ye(Ge,null,[e]),i||Hi,Hi,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Va.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Rg(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,du(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"+Cg++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Va,D,Sg,pu,on,bg,Ig,Eg,kg,fu,lu,uu,Cg,Hi,Ag,KR,$i,Fn=P(()=>{Hi={},Ag=[],KR=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,$i=Array.isArray;Va=Ag.slice,D={__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}},Sg=0,pu=function(e){return e!=null&&e.constructor==null},yt.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=dr({},this.state),typeof e=="function"&&(e=e(dr({},r),this.props)),e&&dr(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),du(this))},yt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),du(this))},yt.prototype.render=Ge,on=[],Ig=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Eg=function(e,t){return e.__v.__b-t.__v.__b},$a.__r=0,kg=/(PointerCapture)$|Capture$/i,fu=0,lu=wg(!1),uu=wg(!0),Cg=0});var _e=h((S6,Dg)=>{"use strict";Dg.exports=function(e){try{return!!e()}catch(t){return!0}}});var jn=h((I6,Lg)=>{"use strict";var eO=_e();Lg.exports=!eO(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Ae=h((E6,Ug)=>{"use strict";var qg=jn(),Mg=Function.prototype,vu=Mg.call,tO=qg&&Mg.bind.bind(vu,vu);Ug.exports=qg?tO:function(e){return function(){return vu.apply(e,arguments)}}});var nt=h((k6,Fg)=>{"use strict";var rO=Ae();Fg.exports=rO({}.isPrototypeOf)});var we=h((yu,jg)=>{"use strict";var Wi=function(e){return e&&e.Math===Math&&e};jg.exports=Wi(typeof globalThis=="object"&&globalThis)||Wi(typeof window=="object"&&window)||Wi(typeof self=="object"&&self)||Wi(typeof global=="object"&&global)||Wi(typeof yu=="object"&&yu)||function(){return this}()||Function("return this")()});var bu=h((C6,Hg)=>{"use strict";var nO=jn(),Jg=Function.prototype,Gg=Jg.apply,Bg=Jg.call;Hg.exports=typeof Reflect=="object"&&Reflect.apply||(nO?Bg.bind(Gg):function(){return Bg.apply(Gg,arguments)})});var pr=h((A6,Vg)=>{"use strict";var $g=Ae(),iO=$g({}.toString),oO=$g("".slice);Vg.exports=function(e){return oO(iO(e),8,-1)}});var zi=h((x6,Wg)=>{"use strict";var aO=pr(),sO=Ae();Wg.exports=function(e){if(aO(e)==="Function")return sO(e)}});var Be=h((P6,zg)=>{"use strict";var _u=typeof document=="object"&&document.all;zg.exports=typeof _u=="undefined"&&_u!==void 0?function(e){return typeof e=="function"||e===_u}:function(e){return typeof e=="function"}});var it=h((T6,Kg)=>{"use strict";var cO=_e();Kg.exports=!cO(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var qt=h((R6,Yg)=>{"use strict";var lO=jn(),Wa=Function.prototype.call;Yg.exports=lO?Wa.bind(Wa):function(){return Wa.apply(Wa,arguments)}});var wu=h(Zg=>{"use strict";var Qg={}.propertyIsEnumerable,Xg=Object.getOwnPropertyDescriptor,uO=Xg&&!Qg.call({1:2},1);Zg.f=uO?function(t){var r=Xg(this,t);return!!r&&r.enumerable}:Qg});var Ki=h((N6,ev)=>{"use strict";ev.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var za=h((D6,tv)=>{"use strict";var dO=Ae(),pO=_e(),fO=pr(),Su=Object,mO=dO("".split);tv.exports=pO(function(){return!Su("z").propertyIsEnumerable(0)})?function(e){return fO(e)==="String"?mO(e,""):Su(e)}:Su});var sn=h((L6,rv)=>{"use strict";rv.exports=function(e){return e==null}});var cn=h((q6,nv)=>{"use strict";var hO=sn(),gO=TypeError;nv.exports=function(e){if(hO(e))throw new gO("Can't call method on "+e);return e}});var qr=h((M6,iv)=>{"use strict";var vO=za(),yO=cn();iv.exports=function(e){return vO(yO(e))}});var De=h((U6,ov)=>{"use strict";var bO=Be();ov.exports=function(e){return typeof e=="object"?e!==null:bO(e)}});var Vt=h((F6,av)=>{"use strict";av.exports={}});var Gn=h((j6,cv)=>{"use strict";var Iu=Vt(),Eu=we(),_O=Be(),sv=function(e){return _O(e)?e:void 0};cv.exports=function(e,t){return arguments.length<2?sv(Iu[e])||sv(Eu[e]):Iu[e]&&Iu[e][t]||Eu[e]&&Eu[e][t]}});var Ka=h((G6,dv)=>{"use strict";var wO=we(),lv=wO.navigator,uv=lv&&lv.userAgent;dv.exports=uv?String(uv):""});var Qa=h((B6,vv)=>{"use strict";var gv=we(),ku=Ka(),pv=gv.process,fv=gv.Deno,mv=pv&&pv.versions||fv&&fv.version,hv=mv&&mv.v8,Mt,Ya;hv&&(Mt=hv.split("."),Ya=Mt[0]>0&&Mt[0]<4?1:+(Mt[0]+Mt[1]));!Ya&&ku&&(Mt=ku.match(/Edge\/(\d+)/),(!Mt||Mt[1]>=74)&&(Mt=ku.match(/Chrome\/(\d+)/),Mt&&(Ya=+Mt[1])));vv.exports=Ya});var Cu=h((J6,bv)=>{"use strict";var yv=Qa(),SO=_e(),IO=we(),EO=IO.String;bv.exports=!!Object.getOwnPropertySymbols&&!SO(function(){var e=Symbol("symbol detection");return!EO(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yv&&yv<41})});var Au=h((H6,_v)=>{"use strict";var kO=Cu();_v.exports=kO&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var xu=h(($6,wv)=>{"use strict";var CO=Gn(),AO=Be(),xO=nt(),PO=Au(),TO=Object;wv.exports=PO?function(e){return typeof e=="symbol"}:function(e){var t=CO("Symbol");return AO(t)&&xO(t.prototype,TO(e))}});var Yi=h((V6,Sv)=>{"use strict";var RO=String;Sv.exports=function(e){try{return RO(e)}catch(t){return"Object"}}});var ln=h((W6,Iv)=>{"use strict";var OO=Be(),NO=Yi(),DO=TypeError;Iv.exports=function(e){if(OO(e))return e;throw new DO(NO(e)+" is not a function")}});var Xa=h((z6,Ev)=>{"use strict";var LO=ln(),qO=sn();Ev.exports=function(e,t){var r=e[t];return qO(r)?void 0:LO(r)}});var Cv=h((K6,kv)=>{"use strict";var Pu=qt(),Tu=Be(),Ru=De(),MO=TypeError;kv.exports=function(e,t){var r,n;if(t==="string"&&Tu(r=e.toString)&&!Ru(n=Pu(r,e))||Tu(r=e.valueOf)&&!Ru(n=Pu(r,e))||t!=="string"&&Tu(r=e.toString)&&!Ru(n=Pu(r,e)))return n;throw new MO("Can't convert object to primitive value")}});var Bn=h((Y6,Av)=>{"use strict";Av.exports=!0});var Tv=h((Q6,Pv)=>{"use strict";var xv=we(),UO=Object.defineProperty;Pv.exports=function(e,t){try{UO(xv,e,{value:t,configurable:!0,writable:!0})}catch(r){xv[e]=t}return t}});var Qi=h((X6,Nv)=>{"use strict";var FO=Bn(),jO=we(),GO=Tv(),Rv="__core-js_shared__",Ov=Nv.exports=jO[Rv]||GO(Rv,{});(Ov.versions||(Ov.versions=[])).push({version:"3.41.0",mode:FO?"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 Ou=h((Z6,Lv)=>{"use strict";var Dv=Qi();Lv.exports=function(e,t){return Dv[e]||(Dv[e]=t||{})}});var Jn=h((e8,qv)=>{"use strict";var BO=cn(),JO=Object;qv.exports=function(e){return JO(BO(e))}});var bt=h((t8,Mv)=>{"use strict";var HO=Ae(),$O=Jn(),VO=HO({}.hasOwnProperty);Mv.exports=Object.hasOwn||function(t,r){return VO($O(t),r)}});var Za=h((r8,Uv)=>{"use strict";var WO=Ae(),zO=0,KO=Math.random(),YO=WO(1 .toString);Uv.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+YO(++zO+KO,36)}});var Qe=h((n8,jv)=>{"use strict";var QO=we(),XO=Ou(),Fv=bt(),ZO=Za(),e1=Cu(),t1=Au(),Hn=QO.Symbol,Nu=XO("wks"),r1=t1?Hn.for||Hn:Hn&&Hn.withoutSetter||ZO;jv.exports=function(e){return Fv(Nu,e)||(Nu[e]=e1&&Fv(Hn,e)?Hn[e]:r1("Symbol."+e)),Nu[e]}});var Hv=h((i8,Jv)=>{"use strict";var n1=qt(),Gv=De(),Bv=xu(),i1=Xa(),o1=Cv(),a1=Qe(),s1=TypeError,c1=a1("toPrimitive");Jv.exports=function(e,t){if(!Gv(e)||Bv(e))return e;var r=i1(e,c1),n;if(r){if(t===void 0&&(t="default"),n=n1(r,e,t),!Gv(n)||Bv(n))return n;throw new s1("Can't convert object to primitive value")}return t===void 0&&(t="number"),o1(e,t)}});var Du=h((o8,$v)=>{"use strict";var l1=Hv(),u1=xu();$v.exports=function(e){var t=l1(e,"string");return u1(t)?t:t+""}});var qu=h((a8,Wv)=>{"use strict";var d1=we(),Vv=De(),Lu=d1.document,p1=Vv(Lu)&&Vv(Lu.createElement);Wv.exports=function(e){return p1?Lu.createElement(e):{}}});var Mu=h((s8,zv)=>{"use strict";var f1=it(),m1=_e(),h1=qu();zv.exports=!f1&&!m1(function(){return Object.defineProperty(h1("div"),"a",{get:function(){return 7}}).a!==7})});var Uu=h(Yv=>{"use strict";var g1=it(),v1=qt(),y1=wu(),b1=Ki(),_1=qr(),w1=Du(),S1=bt(),I1=Mu(),Kv=Object.getOwnPropertyDescriptor;Yv.f=g1?Kv:function(t,r){if(t=_1(t),r=w1(r),I1)try{return Kv(t,r)}catch(n){}if(S1(t,r))return b1(!v1(y1.f,t,r),t[r])}});var Xv=h((l8,Qv)=>{"use strict";var E1=_e(),k1=Be(),C1=/#|\.prototype\./,Xi=function(e,t){var r=x1[A1(e)];return r===T1?!0:r===P1?!1:k1(t)?E1(t):!!t},A1=Xi.normalize=function(e){return String(e).replace(C1,".").toLowerCase()},x1=Xi.data={},P1=Xi.NATIVE="N",T1=Xi.POLYFILL="P";Qv.exports=Xi});var Zi=h((u8,ey)=>{"use strict";var Zv=zi(),R1=ln(),O1=jn(),N1=Zv(Zv.bind);ey.exports=function(e,t){return R1(e),t===void 0?e:O1?N1(e,t):function(){return e.apply(t,arguments)}}});var Fu=h((d8,ty)=>{"use strict";var D1=it(),L1=_e();ty.exports=D1&&L1(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var fr=h((p8,ry)=>{"use strict";var q1=De(),M1=String,U1=TypeError;ry.exports=function(e){if(q1(e))return e;throw new U1(M1(e)+" is not an object")}});var mr=h(iy=>{"use strict";var F1=it(),j1=Mu(),G1=Fu(),es=fr(),ny=Du(),B1=TypeError,ju=Object.defineProperty,J1=Object.getOwnPropertyDescriptor,Gu="enumerable",Bu="configurable",Ju="writable";iy.f=F1?G1?function(t,r,n){if(es(t),r=ny(r),es(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Ju in n&&!n[Ju]){var i=J1(t,r);i&&i[Ju]&&(t[r]=n.value,n={configurable:Bu in n?n[Bu]:i[Bu],enumerable:Gu in n?n[Gu]:i[Gu],writable:!1})}return ju(t,r,n)}:ju:function(t,r,n){if(es(t),r=ny(r),es(n),j1)try{return ju(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new B1("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var un=h((m8,oy)=>{"use strict";var H1=it(),$1=mr(),V1=Ki();oy.exports=H1?function(e,t,r){return $1.f(e,t,V1(1,r))}:function(e,t,r){return e[t]=r,e}});var oe=h((h8,sy)=>{"use strict";var eo=we(),W1=bu(),z1=zi(),K1=Be(),Y1=Uu().f,Q1=Xv(),$n=Vt(),X1=Zi(),Vn=un(),ay=bt();Qi();var Z1=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 W1(e,this,arguments)};return t.prototype=e.prototype,t};sy.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?eo:i?eo[r]:eo[r]&&eo[r].prototype,s=n?$n:$n[r]||Vn($n,r,{})[r],c=s.prototype,l,d,u,p,f,m,g,b,v;for(p in t)l=Q1(n?p:r+(i?".":"#")+p,e.forced),d=!l&&a&&ay(a,p),m=s[p],d&&(e.dontCallGetSet?(v=Y1(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!l&&!o&&typeof m==typeof f)&&(e.bind&&d?b=X1(f,eo):e.wrap&&d?b=Z1(f):o&&K1(f)?b=z1(f):b=f,(e.sham||f&&f.sham||m&&m.sham)&&Vn(b,"sham",!0),Vn(s,p,b),o&&(u=r+"Prototype",ay($n,u)||Vn($n,u,{}),Vn($n[u],p,f),e.real&&c&&(l||!c[p])&&Vn(c,p,f)))}});var ly=h((g8,cy)=>{"use strict";var eN=Math.ceil,tN=Math.floor;cy.exports=Math.trunc||function(t){var r=+t;return(r>0?tN:eN)(r)}});var to=h((v8,uy)=>{"use strict";var rN=ly();uy.exports=function(e){var t=+e;return t!==t||t===0?0:rN(t)}});var Hu=h((y8,dy)=>{"use strict";var nN=to(),iN=Math.min;dy.exports=function(e){var t=nN(e);return t>0?iN(t,9007199254740991):0}});var Wn=h((b8,py)=>{"use strict";var oN=Hu();py.exports=function(e){return oN(e.length)}});var ro=h((_8,fy)=>{"use strict";var aN=pr();fy.exports=Array.isArray||function(t){return aN(t)==="Array"}});var ts=h((w8,hy)=>{"use strict";var sN=Qe(),cN=sN("toStringTag"),my={};my[cN]="z";hy.exports=String(my)==="[object z]"});var zn=h((S8,gy)=>{"use strict";var lN=ts(),uN=Be(),rs=pr(),dN=Qe(),pN=dN("toStringTag"),fN=Object,mN=rs(function(){return arguments}())==="Arguments",hN=function(e,t){try{return e[t]}catch(r){}};gy.exports=lN?rs:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=hN(t=fN(e),pN))=="string"?r:mN?rs(t):(n=rs(t))==="Object"&&uN(t.callee)?"Arguments":n}});var yy=h((I8,vy)=>{"use strict";var gN=Ae(),vN=Be(),$u=Qi(),yN=gN(Function.toString);vN($u.inspectSource)||($u.inspectSource=function(e){return yN(e)});vy.exports=$u.inspectSource});var Wu=h((E8,Iy)=>{"use strict";var bN=Ae(),_N=_e(),by=Be(),wN=zn(),SN=Gn(),IN=yy(),_y=function(){},wy=SN("Reflect","construct"),Vu=/^\s*(?:class|function)\b/,EN=bN(Vu.exec),kN=!Vu.test(_y),no=function(t){if(!by(t))return!1;try{return wy(_y,[],t),!0}catch(r){return!1}},Sy=function(t){if(!by(t))return!1;switch(wN(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return kN||!!EN(Vu,IN(t))}catch(r){return!0}};Sy.sham=!0;Iy.exports=!wy||_N(function(){var e;return no(no.call)||!no(Object)||!no(function(){e=!0})||e})?Sy:no});var Ay=h((k8,Cy)=>{"use strict";var Ey=ro(),CN=Wu(),AN=De(),xN=Qe(),PN=xN("species"),ky=Array;Cy.exports=function(e){var t;return Ey(e)&&(t=e.constructor,CN(t)&&(t===ky||Ey(t.prototype))?t=void 0:AN(t)&&(t=t[PN],t===null&&(t=void 0))),t===void 0?ky:t}});var zu=h((C8,xy)=>{"use strict";var TN=Ay();xy.exports=function(e,t){return new(TN(e))(t===0?0:t)}});var Ur=h((A8,Ty)=>{"use strict";var RN=Zi(),ON=Ae(),NN=za(),DN=Jn(),LN=Wn(),qN=zu(),Py=ON([].push),Mr=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=DN(c),f=NN(p),m=LN(f),g=RN(l,d),b=0,v=u||qN,w=t?v(c,m):r||a?v(c,0):void 0,S,x;m>b;b++)if((s||b in f)&&(S=f[b],x=g(S,b,p),e))if(t)w[b]=x;else if(x)switch(e){case 3:return!0;case 5:return S;case 6:return b;case 2:Py(w,S)}else switch(e){case 4:return!1;case 7:Py(w,S)}return o?-1:n||i?i:w}};Ty.exports={forEach:Mr(0),map:Mr(1),filter:Mr(2),some:Mr(3),every:Mr(4),find:Mr(5),findIndex:Mr(6),filterReject:Mr(7)}});var io=h((x8,Ry)=>{"use strict";var MN=_e(),UN=Qe(),FN=Qa(),jN=UN("species");Ry.exports=function(e){return FN>=51||!MN(function(){var t=[],r=t.constructor={};return r[jN]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Oy=h(()=>{"use strict";var GN=oe(),BN=Ur().filter,JN=io(),HN=JN("filter");GN({target:"Array",proto:!0,forced:!HN},{filter:function(t){return BN(this,t,arguments.length>1?arguments[1]:void 0)}})});var Pt=h((R8,Ny)=>{"use strict";var $N=we(),VN=Vt();Ny.exports=function(e,t){var r=VN[e+"Prototype"],n=r&&r[t];if(n)return n;var i=$N[e],o=i&&i.prototype;return o&&o[t]}});var Ly=h((O8,Dy)=>{"use strict";Oy();var WN=Pt();Dy.exports=WN("Array","filter")});var My=h((N8,qy)=>{"use strict";var zN=nt(),KN=Ly(),Ku=Array.prototype;qy.exports=function(e){var t=e.filter;return e===Ku||zN(Ku,e)&&t===Ku.filter?KN:t}});var Fy=h((D8,Uy)=>{"use strict";var YN=My();Uy.exports=YN});var Gy=h((L8,jy)=>{jy.exports=Fy()});var oo=h((q8,By)=>{"use strict";var QN=_e();By.exports=function(e,t){var r=[][e];return!!r&&QN(function(){r.call(null,t||function(){return 1},1)})}});var Jy=h(()=>{"use strict";var XN=oe(),ZN=Ur().every,eD=oo(),tD=eD("every");XN({target:"Array",proto:!0,forced:!tD},{every:function(t){return ZN(this,t,arguments.length>1?arguments[1]:void 0)}})});var $y=h((F8,Hy)=>{"use strict";Jy();var rD=Pt();Hy.exports=rD("Array","every")});var Wy=h((j8,Vy)=>{"use strict";var nD=nt(),iD=$y(),Yu=Array.prototype;Vy.exports=function(e){var t=e.every;return e===Yu||nD(Yu,e)&&t===Yu.every?iD:t}});var Ky=h((G8,zy)=>{"use strict";var oD=Wy();zy.exports=oD});var Qy=h((B8,Yy)=>{Yy.exports=Ky()});var Zy=h((J8,Xy)=>{"use strict";var aD=Ur().forEach,sD=oo(),cD=sD("forEach");Xy.exports=cD?[].forEach:function(t){return aD(this,t,arguments.length>1?arguments[1]:void 0)}});var tb=h(()=>{"use strict";var lD=oe(),eb=Zy();lD({target:"Array",proto:!0,forced:[].forEach!==eb},{forEach:eb})});var nb=h((V8,rb)=>{"use strict";tb();var uD=Pt();rb.exports=uD("Array","forEach")});var ob=h((W8,ib)=>{"use strict";var dD=nb();ib.exports=dD});var ab=h(()=>{});var cb=h((Y8,sb)=>{"use strict";var pD=zn(),fD=bt(),mD=nt(),hD=ob();ab();var Qu=Array.prototype,gD={DOMTokenList:!0,NodeList:!0};sb.exports=function(e){var t=e.forEach;return e===Qu||mD(Qu,e)&&t===Qu.forEach||fD(gD,pD(e))?hD:t}});var ub=h((Q8,lb)=>{lb.exports=cb()});var pb=h((X8,db)=>{"use strict";var vD=TypeError,yD=9007199254740991;db.exports=function(e){if(e>yD)throw vD("Maximum allowed index exceeded");return e}});var Xu=h((Z8,fb)=>{"use strict";var bD=it(),_D=mr(),wD=Ki();fb.exports=function(e,t,r){bD?_D.f(e,t,wD(0,r)):e[t]=r}});var vb=h(()=>{"use strict";var SD=oe(),ID=_e(),ED=ro(),kD=De(),CD=Jn(),AD=Wn(),mb=pb(),hb=Xu(),xD=zu(),PD=io(),TD=Qe(),RD=Qa(),gb=TD("isConcatSpreadable"),OD=RD>=51||!ID(function(){var e=[];return e[gb]=!1,e.concat()[0]!==e}),ND=function(e){if(!kD(e))return!1;var t=e[gb];return t!==void 0?!!t:ED(e)},DD=!OD||!PD("concat");SD({target:"Array",proto:!0,arity:1,forced:DD},{concat:function(t){var r=CD(this),n=xD(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],ND(l))for(c=AD(l),mb(i+c),a=0;a<c;a++,i++)a in l&&hb(n,i,l[a]);else mb(i+1),hb(n,i++,l);return n.length=i,n}})});var bb=h((rK,yb)=>{"use strict";vb();var LD=Pt();yb.exports=LD("Array","concat")});var wb=h((nK,_b)=>{"use strict";var qD=nt(),MD=bb(),Zu=Array.prototype;_b.exports=function(e){var t=e.concat;return e===Zu||qD(Zu,e)&&t===Zu.concat?MD:t}});var Ib=h((iK,Sb)=>{"use strict";var UD=wb();Sb.exports=UD});var kb=h((oK,Eb)=>{Eb.exports=Ib()});var Cb=h(()=>{"use strict";var FD=oe(),jD=Ur().some,GD=oo(),BD=GD("some");FD({target:"Array",proto:!0,forced:!BD},{some:function(t){return jD(this,t,arguments.length>1?arguments[1]:void 0)}})});var xb=h((cK,Ab)=>{"use strict";Cb();var JD=Pt();Ab.exports=JD("Array","some")});var Tb=h((lK,Pb)=>{"use strict";var HD=nt(),$D=xb(),ed=Array.prototype;Pb.exports=function(e){var t=e.some;return e===ed||HD(ed,e)&&t===ed.some?$D:t}});var Ob=h((uK,Rb)=>{"use strict";var VD=Tb();Rb.exports=VD});var Db=h((dK,Nb)=>{Nb.exports=Ob()});var qb=h((pK,Lb)=>{"use strict";var ao=we(),WD=Ka(),zD=pr(),ns=function(e){return WD.slice(0,e.length)===e};Lb.exports=function(){return ns("Bun/")?"BUN":ns("Cloudflare-Workers")?"CLOUDFLARE":ns("Deno/")?"DENO":ns("Node.js/")?"NODE":ao.Bun&&typeof Bun.version=="string"?"BUN":ao.Deno&&typeof Deno.version=="object"?"DENO":zD(ao.process)==="process"?"NODE":ao.window&&ao.document?"BROWSER":"REST"}()});var so=h((fK,Mb)=>{"use strict";var KD=Ae();Mb.exports=KD([].slice)});var Fb=h((mK,Ub)=>{"use strict";var YD=TypeError;Ub.exports=function(e,t){if(e<t)throw new YD("Not enough arguments");return e}});var td=h((hK,Gb)=>{"use strict";var jb=we(),QD=bu(),XD=Be(),ZD=qb(),eL=Ka(),tL=so(),rL=Fb(),nL=jb.Function,iL=/MSIE .\./.test(eL)||ZD==="BUN"&&function(){var e=jb.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();Gb.exports=function(e,t){var r=t?2:1;return iL?function(n,i){var o=rL(arguments.length,1)>r,a=XD(n)?n:nL(n),s=o?tL(arguments,r):[],c=o?function(){QD(a,this,s)}:a;return t?e(c,i):e(c)}:e}});var Hb=h(()=>{"use strict";var oL=oe(),Jb=we(),aL=td(),Bb=aL(Jb.setInterval,!0);oL({global:!0,bind:!0,forced:Jb.setInterval!==Bb},{setInterval:Bb})});var Wb=h(()=>{"use strict";var sL=oe(),Vb=we(),cL=td(),$b=cL(Vb.setTimeout,!0);sL({global:!0,bind:!0,forced:Vb.setTimeout!==$b},{setTimeout:$b})});var zb=h(()=>{"use strict";Hb();Wb()});var Yb=h((SK,Kb)=>{"use strict";zb();var lL=Vt();Kb.exports=lL.setTimeout});var Xb=h((IK,Qb)=>{Qb.exports=Yb()});function lo(e,t){Ee.__h&&Ee.__h(ue,e,co||t),co=0;var r=ue.__H||(ue.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function hr(e){return co=1,c_(l_,e)}function c_(e,t,r){var n=lo(dn++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):l_(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=ue,!ue.__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};ue.__f=!0;var o=ue.shouldComponentUpdate,a=ue.componentWillUpdate;ue.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)},ue.shouldComponentUpdate=i}return n.__N||n.__}function pn(e,t){var r=lo(dn++,3);!Ee.__s&&id(r.__H,t)&&(r.__=e,r.u=t,ue.__H.__h.push(r))}function Kn(e,t){var r=lo(dn++,4);!Ee.__s&&id(r.__H,t)&&(r.__=e,r.u=t,ue.__h.push(r))}function Yn(e){return co=5,uo(function(){return{current:e}},[])}function uo(e,t){var r=lo(dn++,7);return id(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Fr(e,t){return co=8,uo(function(){return e},t)}function Qn(e){var t=ue.context[e.__c],r=lo(dn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ue)),t.props.value):e.__}function uL(){for(var e;e=s_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(is),e.__H.__h.forEach(nd),e.__H.__h=[]}catch(t){e.__H.__h=[],Ee.__e(t,e.__v)}}function dL(e){var t,r=function(){clearTimeout(n),a_&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);a_&&(t=requestAnimationFrame(r))}function is(e){var t=ue,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ue=t}function nd(e){var t=ue;e.__c=e.__(),ue=t}function id(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function l_(e,t){return typeof t=="function"?t(e):t}var dn,ue,rd,Zb,co,s_,Ee,e_,t_,r_,n_,i_,o_,a_,od=P(()=>{Fn();co=0,s_=[],Ee=D,e_=Ee.__b,t_=Ee.__r,r_=Ee.diffed,n_=Ee.__c,i_=Ee.unmount,o_=Ee.__;Ee.__b=function(e){ue=null,e_&&e_(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),o_&&o_(e,t)},Ee.__r=function(e){t_&&t_(e),dn=0;var t=(ue=e.__c).__H;t&&(rd===ue?(t.__h=[],ue.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(is),t.__h.forEach(nd),t.__h=[],dn=0)),rd=ue},Ee.diffed=function(e){r_&&r_(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(s_.push(t)!==1&&Zb===Ee.requestAnimationFrame||((Zb=Ee.requestAnimationFrame)||dL)(uL)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),rd=ue=null},Ee.__c=function(e,t){t.some(function(r){try{r.__h.forEach(is),r.__h=r.__h.filter(function(n){return!n.__||nd(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ee.__e(n,r.__v)}}),n_&&n_(e,t)},Ee.unmount=function(e){i_&&i_(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{is(n)}catch(i){t=i}}),r.__H=void 0,t&&Ee.__e(t,r.__v))};a_=typeof requestAnimationFrame=="function"});function b_(e,t){for(var r in t)e[r]=t[r];return e}function sd(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 u_(e,t){this.props=e,this.context=t}function ld(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:sd(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Ye(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function ud(e){function t(r){var n=b_({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=pL,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function __(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=b_({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return __(n,t,r)})),e}function w_(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return w_(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 ad(){this.__u=0,this.o=null,this.__b=null}function S_(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function os(){this.i=null,this.l=null}function as(e,t,r){return t.__k==null&&(t.textContent=""),Lr(e,t),typeof r=="function"&&r(),e?e.__c:null}function _L(){}function wL(){return this.cancelBubble}function SL(){return this.defaultPrevented}var cd,d_,pL,fL,p_,f_,mL,hL,gL,vL,yL,bL,m_,I_,IL,h_,g_,v_,ss=P(()=>{Fn();Fn();od();od();cd=Kn;(u_.prototype=new yt).isPureReactComponent=!0,u_.prototype.shouldComponentUpdate=function(e,t){return sd(this.props,e)||sd(this.state,t)};d_=D.__b;D.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),d_&&d_(e)};pL=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;fL=D.__e;D.__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)}fL(e,t,r,n)};p_=D.unmount;D.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),p_&&p_(e)},(ad.prototype=new yt).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=S_(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]=w_(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)},ad.prototype.componentWillUnmount=function(){this.o=[]},ad.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]=__(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Ye(Ge,null,e.fallback);return i&&(i.__u&=-33),[Ye(Ge,null,t.__a?null:e.children),i]};f_=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]}};(os.prototype=new yt).__a=function(e){var t=this,r=S_(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),f_(t,e,n)):i()};r?r(o):o()}},os.prototype.render=function(e){this.i=null,this.l=new Map;var t=Vi(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},os.prototype.componentDidUpdate=os.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){f_(e,r,t)})};mL=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,hL=/^(?: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]/,gL=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,vL=/[A-Z0-9]/g,yL=typeof document!="undefined",bL=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};yt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(yt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});m_=D.event;D.event=function(e){return m_&&(e=m_(e)),e.persist=_L,e.isPropagationStopped=wL,e.isDefaultPrevented=SL,e.nativeEvent=e};IL={enumerable:!1,configurable:!0,get:function(){return this.class}},h_=D.vnode;D.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||yL&&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"||bL(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":gL.test(a)&&(a=c):c=a="oninput":o&&hL.test(a)?a=a.replace(vL,"-$&").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=Vi(r.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Vi(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",IL)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=mL,h_&&h_(e)};g_=D.__r;D.__r=function(e){g_&&g_(e),I_=e.__c};v_=D.diffed;D.diffed=function(e){v_&&v_(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),I_=null}});var pd=h(()=>{"use strict";var kL=oe(),dd=we();kL({global:!0,forced:dd.globalThis!==dd},{globalThis:dd})});var E_=h(()=>{"use strict";pd()});var C_=h((FK,k_)=>{"use strict";pd();k_.exports=we()});var x_=h((jK,A_)=>{"use strict";var CL=C_();A_.exports=CL});var T_=h((GK,P_)=>{"use strict";var AL=x_();P_.exports=AL});var O_=h((BK,R_)=>{"use strict";E_();var xL=T_();R_.exports=xL});var D_=h((JK,N_)=>{"use strict";N_.exports=O_()});var q_=h((HK,L_)=>{L_.exports=D_()});var M_=h(()=>{"use strict";var PL=oe(),TL=ro();PL({target:"Array",stat:!0},{isArray:TL})});var F_=h((WK,U_)=>{"use strict";M_();var RL=Vt();U_.exports=RL.Array.isArray});var G_=h((zK,j_)=>{"use strict";var OL=F_();j_.exports=OL});var J_=h((KK,B_)=>{B_.exports=G_()});var $_=h((YK,H_)=>{"use strict";H_.exports=function(){}});var fn=h((QK,V_)=>{"use strict";V_.exports={}});var fd=h((XK,z_)=>{"use strict";var NL=we(),DL=Be(),W_=NL.WeakMap;z_.exports=DL(W_)&&/native code/.test(String(W_))});var cs=h((ZK,Y_)=>{"use strict";var LL=Ou(),qL=Za(),K_=LL("keys");Y_.exports=function(e){return K_[e]||(K_[e]=qL(e))}});var po=h((e7,Q_)=>{"use strict";Q_.exports={}});var hn=h((t7,ew)=>{"use strict";var ML=fd(),Z_=we(),UL=De(),FL=un(),md=bt(),hd=Qi(),jL=cs(),GL=po(),X_="Object already initialized",gd=Z_.TypeError,BL=Z_.WeakMap,ls,fo,us,JL=function(e){return us(e)?fo(e):ls(e,{})},HL=function(e){return function(t){var r;if(!UL(t)||(r=fo(t)).type!==e)throw new gd("Incompatible receiver, "+e+" required");return r}};ML||hd.state?(Ut=hd.state||(hd.state=new BL),Ut.get=Ut.get,Ut.has=Ut.has,Ut.set=Ut.set,ls=function(e,t){if(Ut.has(e))throw new gd(X_);return t.facade=e,Ut.set(e,t),t},fo=function(e){return Ut.get(e)||{}},us=function(e){return Ut.has(e)}):(mn=jL("state"),GL[mn]=!0,ls=function(e,t){if(md(e,mn))throw new gd(X_);return t.facade=e,FL(e,mn,t),t},fo=function(e){return md(e,mn)?e[mn]:{}},us=function(e){return md(e,mn)});var Ut,mn;ew.exports={set:ls,get:fo,has:us,enforce:JL,getterFor:HL}});var bd=h((r7,rw)=>{"use strict";var vd=it(),$L=bt(),tw=Function.prototype,VL=vd&&Object.getOwnPropertyDescriptor,yd=$L(tw,"name"),WL=yd&&(function(){}).name==="something",zL=yd&&(!vd||vd&&VL(tw,"name").configurable);rw.exports={EXISTS:yd,PROPER:WL,CONFIGURABLE:zL}});var _d=h((n7,nw)=>{"use strict";var KL=to(),YL=Math.max,QL=Math.min;nw.exports=function(e,t){var r=KL(e);return r<0?YL(r+t,0):QL(r,t)}});var wd=h((i7,ow)=>{"use strict";var XL=qr(),ZL=_d(),eq=Wn(),iw=function(e){return function(t,r,n){var i=XL(t),o=eq(i);if(o===0)return!e&&-1;var a=ZL(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}};ow.exports={includes:iw(!0),indexOf:iw(!1)}});var Id=h((o7,sw)=>{"use strict";var tq=Ae(),Sd=bt(),rq=qr(),nq=wd().indexOf,iq=po(),aw=tq([].push);sw.exports=function(e,t){var r=rq(e),n=0,i=[],o;for(o in r)!Sd(iq,o)&&Sd(r,o)&&aw(i,o);for(;t.length>n;)Sd(r,o=t[n++])&&(~nq(i,o)||aw(i,o));return i}});var ds=h((a7,cw)=>{"use strict";cw.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Ed=h((s7,lw)=>{"use strict";var oq=Id(),aq=ds();lw.exports=Object.keys||function(t){return oq(t,aq)}});var dw=h(uw=>{"use strict";var sq=it(),cq=Fu(),lq=mr(),uq=fr(),dq=qr(),pq=Ed();uw.f=sq&&!cq?Object.defineProperties:function(t,r){uq(t);for(var n=dq(r),i=pq(r),o=i.length,a=0,s;o>a;)lq.f(t,s=i[a++],n[s]);return t}});var fw=h((l7,pw)=>{"use strict";var fq=Gn();pw.exports=fq("document","documentElement")});var mo=h((u7,_w)=>{"use strict";var mq=fr(),hq=dw(),mw=ds(),gq=po(),vq=fw(),yq=qu(),bq=cs(),hw=">",gw="<",Cd="prototype",Ad="script",yw=bq("IE_PROTO"),kd=function(){},bw=function(e){return gw+Ad+hw+e+gw+"/"+Ad+hw},vw=function(e){e.write(bw("")),e.close();var t=e.parentWindow.Object;return e=null,t},_q=function(){var e=yq("iframe"),t="java"+Ad+":",r;return e.style.display="none",vq.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(bw("document.F=Object")),r.close(),r.F},ps,fs=function(){try{ps=new ActiveXObject("htmlfile")}catch(t){}fs=typeof document!="undefined"?document.domain&&ps?vw(ps):_q():vw(ps);for(var e=mw.length;e--;)delete fs[Cd][mw[e]];return fs()};gq[yw]=!0;_w.exports=Object.create||function(t,r){var n;return t!==null?(kd[Cd]=mq(t),n=new kd,kd[Cd]=null,n[yw]=t):n=fs(),r===void 0?n:hq.f(n,r)}});var Sw=h((d7,ww)=>{"use strict";var wq=_e();ww.exports=!wq(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Pd=h((p7,Ew)=>{"use strict";var Sq=bt(),Iq=Be(),Eq=Jn(),kq=cs(),Cq=Sw(),Iw=kq("IE_PROTO"),xd=Object,Aq=xd.prototype;Ew.exports=Cq?xd.getPrototypeOf:function(e){var t=Eq(e);if(Sq(t,Iw))return t[Iw];var r=t.constructor;return Iq(r)&&t instanceof r?r.prototype:t instanceof xd?Aq:null}});var ms=h((f7,kw)=>{"use strict";var xq=un();kw.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:xq(e,t,r),e}});var Nd=h((m7,xw)=>{"use strict";var Pq=_e(),Tq=Be(),Rq=De(),Oq=mo(),Cw=Pd(),Nq=ms(),Dq=Qe(),Lq=Bn(),Od=Dq("iterator"),Aw=!1,gr,Td,Rd;[].keys&&(Rd=[].keys(),"next"in Rd?(Td=Cw(Cw(Rd)),Td!==Object.prototype&&(gr=Td)):Aw=!0);var qq=!Rq(gr)||Pq(function(){var e={};return gr[Od].call(e)!==e});qq?gr={}:Lq&&(gr=Oq(gr));Tq(gr[Od])||Nq(gr,Od,function(){return this});xw.exports={IteratorPrototype:gr,BUGGY_SAFARI_ITERATORS:Aw}});var Tw=h((h7,Pw)=>{"use strict";var Mq=ts(),Uq=zn();Pw.exports=Mq?{}.toString:function(){return"[object "+Uq(this)+"]"}});var ho=h((g7,Ow)=>{"use strict";var Fq=ts(),jq=mr().f,Gq=un(),Bq=bt(),Jq=Tw(),Hq=Qe(),Rw=Hq("toStringTag");Ow.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(Bq(i,Rw)||jq(i,Rw,{configurable:!0,value:t}),n&&!Fq&&Gq(i,"toString",Jq))}});var Dw=h((v7,Nw)=>{"use strict";var $q=Nd().IteratorPrototype,Vq=mo(),Wq=Ki(),zq=ho(),Kq=fn(),Yq=function(){return this};Nw.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=Vq($q,{next:Wq(+!n,r)}),zq(e,i,!1,!0),Kq[i]=Yq,e}});var qw=h((y7,Lw)=>{"use strict";var Qq=Ae(),Xq=ln();Lw.exports=function(e,t,r){try{return Qq(Xq(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var Uw=h((b7,Mw)=>{"use strict";var Zq=De();Mw.exports=function(e){return Zq(e)||e===null}});var jw=h((_7,Fw)=>{"use strict";var eM=Uw(),tM=String,rM=TypeError;Fw.exports=function(e){if(eM(e))return e;throw new rM("Can't set "+tM(e)+" as a prototype")}});var Bw=h((w7,Gw)=>{"use strict";var nM=qw(),iM=De(),oM=cn(),aM=jw();Gw.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 oM(i),aM(o),iM(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var vs=h((S7,Xw)=>{"use strict";var sM=oe(),cM=qt(),hs=Bn(),Yw=bd(),lM=Be(),uM=Dw(),Jw=Pd(),Hw=Bw(),dM=ho(),pM=un(),Dd=ms(),fM=Qe(),$w=fn(),Qw=Nd(),mM=Yw.PROPER,hM=Yw.CONFIGURABLE,Vw=Qw.IteratorPrototype,gs=Qw.BUGGY_SAFARI_ITERATORS,go=fM("iterator"),Ww="keys",vo="values",zw="entries",Kw=function(){return this};Xw.exports=function(e,t,r,n,i,o,a){uM(r,t,n);var s=function(v){if(v===i&&p)return p;if(!gs&&v&&v in d)return d[v];switch(v){case Ww:return function(){return new r(this,v)};case vo:return function(){return new r(this,v)};case zw:return function(){return new r(this,v)}}return function(){return new r(this)}},c=t+" Iterator",l=!1,d=e.prototype,u=d[go]||d["@@iterator"]||i&&d[i],p=!gs&&u||s(i),f=t==="Array"&&d.entries||u,m,g,b;if(f&&(m=Jw(f.call(new e)),m!==Object.prototype&&m.next&&(!hs&&Jw(m)!==Vw&&(Hw?Hw(m,Vw):lM(m[go])||Dd(m,go,Kw)),dM(m,c,!0,!0),hs&&($w[c]=Kw))),mM&&i===vo&&u&&u.name!==vo&&(!hs&&hM?pM(d,"name",vo):(l=!0,p=function(){return cM(u,this)})),i)if(g={values:s(vo),keys:o?p:s(Ww),entries:s(zw)},a)for(b in g)(gs||l||!(b in d))&&Dd(d,b,g[b]);else sM({target:t,proto:!0,forced:gs||l},g);return(!hs||a)&&d[go]!==p&&Dd(d,go,p,{name:i}),$w[t]=p,g}});var ys=h((I7,Zw)=>{"use strict";Zw.exports=function(e,t){return{value:e,done:t}}});var _s=h((E7,iS)=>{"use strict";var gM=qr(),Ld=$_(),eS=fn(),rS=hn(),vM=mr().f,yM=vs(),bs=ys(),bM=Bn(),_M=it(),nS="Array Iterator",wM=rS.set,SM=rS.getterFor(nS);iS.exports=yM(Array,"Array",function(e,t){wM(this,{type:nS,target:gM(e),index:0,kind:t})},function(){var e=SM(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,bs(void 0,!0);switch(e.kind){case"keys":return bs(r,!1);case"values":return bs(t[r],!1)}return bs([r,t[r]],!1)},"values");var tS=eS.Arguments=eS.Array;Ld("keys");Ld("values");Ld("entries");if(!bM&&_M&&tS.name!=="values")try{vM(tS,"name",{value:"values"})}catch(e){}});var qd=h(()=>{});var Md=h((A7,oS)=>{"use strict";var IM=_e();oS.exports=!IM(function(){return Object.isExtensible(Object.preventExtensions({}))})});var ws=h((x7,aS)=>{"use strict";var EM=ms();aS.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:EM(e,n,t[n],r);return e}});var Ud=h(sS=>{"use strict";var kM=Id(),CM=ds(),AM=CM.concat("length","prototype");sS.f=Object.getOwnPropertyNames||function(t){return kM(t,AM)}});var dS=h((T7,uS)=>{"use strict";var xM=pr(),PM=qr(),cS=Ud().f,TM=so(),lS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],RM=function(e){try{return cS(e)}catch(t){return TM(lS)}};uS.exports.f=function(t){return lS&&xM(t)==="Window"?RM(t):cS(PM(t))}});var fS=h((R7,pS)=>{"use strict";var OM=_e();pS.exports=OM(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var gS=h((O7,hS)=>{"use strict";var NM=_e(),DM=De(),LM=pr(),mS=fS(),Ss=Object.isExtensible,qM=NM(function(){Ss(1)});hS.exports=qM||mS?function(t){return!DM(t)||mS&&LM(t)==="ArrayBuffer"?!1:Ss?Ss(t):!0}:Ss});var yo=h((N7,bS)=>{"use strict";var MM=oe(),UM=Ae(),FM=po(),jM=De(),Fd=bt(),GM=mr().f,vS=Ud(),BM=dS(),jd=gS(),JM=Za(),HM=Md(),yS=!1,vr=JM("meta"),$M=0,Gd=function(e){GM(e,vr,{value:{objectID:"O"+$M++,weakData:{}}})},VM=function(e,t){if(!jM(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Fd(e,vr)){if(!jd(e))return"F";if(!t)return"E";Gd(e)}return e[vr].objectID},WM=function(e,t){if(!Fd(e,vr)){if(!jd(e))return!0;if(!t)return!1;Gd(e)}return e[vr].weakData},zM=function(e){return HM&&yS&&jd(e)&&!Fd(e,vr)&&Gd(e),e},KM=function(){YM.enable=function(){},yS=!0;var e=vS.f,t=UM([].splice),r={};r[vr]=1,e(r).length&&(vS.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===vr){t(i,o,1);break}return i},MM({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:BM.f}))},YM=bS.exports={enable:KM,fastKey:VM,getWeakData:WM,onFreeze:zM};FM[vr]=!0});var wS=h((D7,_S)=>{"use strict";var QM=Qe(),XM=fn(),ZM=QM("iterator"),eU=Array.prototype;_S.exports=function(e){return e!==void 0&&(XM.Array===e||eU[ZM]===e)}});var Bd=h((L7,IS)=>{"use strict";var tU=zn(),SS=Xa(),rU=sn(),nU=fn(),iU=Qe(),oU=iU("iterator");IS.exports=function(e){if(!rU(e))return SS(e,oU)||SS(e,"@@iterator")||nU[tU(e)]}});var kS=h((q7,ES)=>{"use strict";var aU=qt(),sU=ln(),cU=fr(),lU=Yi(),uU=Bd(),dU=TypeError;ES.exports=function(e,t){var r=arguments.length<2?uU(e):t;if(sU(r))return cU(aU(r,e));throw new dU(lU(e)+" is not iterable")}});var Is=h((M7,AS)=>{"use strict";var pU=qt(),CS=fr(),fU=Xa();AS.exports=function(e,t,r){var n,i;CS(e);try{if(n=fU(e,"return"),!n){if(t==="throw")throw r;return r}n=pU(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return CS(n),r}});var ks=h((U7,RS)=>{"use strict";var mU=Zi(),hU=qt(),gU=fr(),vU=Yi(),yU=wS(),bU=Wn(),xS=nt(),_U=kS(),wU=Bd(),PS=Is(),SU=TypeError,Es=function(e,t){this.stopped=e,this.result=t},TS=Es.prototype;RS.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=mU(t,n),l,d,u,p,f,m,g,b=function(w){return l&&PS(l,"normal",w),new Es(!0,w)},v=function(w){return i?(gU(w),s?c(w[0],w[1],b):c(w[0],w[1])):s?c(w,b):c(w)};if(o)l=e.iterator;else if(a)l=e;else{if(d=wU(e),!d)throw new SU(vU(e)+" is not iterable");if(yU(d)){for(u=0,p=bU(e);p>u;u++)if(f=v(e[u]),f&&xS(TS,f))return f;return new Es(!1)}l=_U(e,d)}for(m=o?e.next:l.next;!(g=hU(m,l)).done;){try{f=v(g.value)}catch(w){PS(l,"throw",w)}if(typeof f=="object"&&f&&xS(TS,f))return f}return new Es(!1)}});var Cs=h((F7,OS)=>{"use strict";var IU=nt(),EU=TypeError;OS.exports=function(e,t){if(IU(t,e))return e;throw new EU("Incorrect invocation")}});var Jd=h((j7,DS)=>{"use strict";var kU=oe(),CU=we(),AU=yo(),xU=_e(),PU=un(),TU=ks(),RU=Cs(),OU=Be(),NU=De(),DU=sn(),LU=ho(),qU=mr().f,MU=Ur().forEach,UU=it(),NS=hn(),FU=NS.set,jU=NS.getterFor;DS.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=CU[e],s=a&&a.prototype,c={},l;if(!UU||!OU(a)||!(i||s.forEach&&!xU(function(){new a().entries().next()})))l=r.getConstructor(t,e,n,o),AU.enable();else{l=t(function(p,f){FU(RU(p,d),{type:e,collection:new a}),DU(f)||TU(f,p[o],{that:p,AS_ENTRIES:n})});var d=l.prototype,u=jU(e);MU(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&PU(d,p,function(m,g){var b=u(this).collection;if(!f&&i&&!NU(m))return p==="get"?void 0:!1;var v=b[p](m===0?0:m,g);return f?this:v})}),i||qU(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return LU(l,e,!1,!0),c[e]=l,kU({global:!0,forced:!0},c),i||r.setStrong(l,e,n),l}});var GS=h((G7,jS)=>{"use strict";var GU=Ae(),LS=ws(),As=yo().getWeakData,BU=Cs(),JU=fr(),HU=sn(),Hd=De(),$U=ks(),MS=Ur(),qS=bt(),US=hn(),VU=US.set,WU=US.getterFor,zU=MS.find,KU=MS.findIndex,YU=GU([].splice),QU=0,xs=function(e){return e.frozen||(e.frozen=new FS)},FS=function(){this.entries=[]},$d=function(e,t){return zU(e.entries,function(r){return r[0]===t})};FS.prototype={get:function(e){var t=$d(this,e);if(t)return t[1]},has:function(e){return!!$d(this,e)},set:function(e,t){var r=$d(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=KU(this.entries,function(r){return r[0]===e});return~t&&YU(this.entries,t,1),!!~t}};jS.exports={getConstructor:function(e,t,r,n){var i=e(function(c,l){BU(c,o),VU(c,{type:t,id:QU++,frozen:null}),HU(l)||$U(l,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=WU(t),s=function(c,l,d){var u=a(c),p=As(JU(l),!0);return p===!0?xs(u).set(l,d):p[u.id]=d,c};return LS(o,{delete:function(c){var l=a(this);if(!Hd(c))return!1;var d=As(c);return d===!0?xs(l).delete(c):d&&qS(d,l.id)&&delete d[l.id]},has:function(l){var d=a(this);if(!Hd(l))return!1;var u=As(l);return u===!0?xs(d).has(l):u&&qS(u,d.id)}}),LS(o,r?{get:function(l){var d=a(this);if(Hd(l)){var u=As(l);if(u===!0)return xs(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 KS=h(()=>{"use strict";var XU=Md(),BS=we(),Os=Ae(),JS=ws(),ZU=yo(),eF=Jd(),HS=GS(),Ps=De(),Ts=hn().enforce,tF=_e(),rF=fd(),wo=Object,nF=Array.isArray,Rs=wo.isExtensible,$S=wo.isFrozen,iF=wo.isSealed,VS=wo.freeze,oF=wo.seal,aF=!BS.ActiveXObject&&"ActiveXObject"in BS,bo,WS=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},zS=eF("WeakMap",WS,HS),Xn=zS.prototype,Ns=Os(Xn.set),sF=function(){return XU&&tF(function(){var e=VS([]);return Ns(new zS,e,1),!$S(e)})};rF&&(aF?(bo=HS.getConstructor(WS,"WeakMap",!0),ZU.enable(),Vd=Os(Xn.delete),_o=Os(Xn.has),Wd=Os(Xn.get),JS(Xn,{delete:function(e){if(Ps(e)&&!Rs(e)){var t=Ts(this);return t.frozen||(t.frozen=new bo),Vd(this,e)||t.frozen.delete(e)}return Vd(this,e)},has:function(t){if(Ps(t)&&!Rs(t)){var r=Ts(this);return r.frozen||(r.frozen=new bo),_o(this,t)||r.frozen.has(t)}return _o(this,t)},get:function(t){if(Ps(t)&&!Rs(t)){var r=Ts(this);return r.frozen||(r.frozen=new bo),_o(this,t)?Wd(this,t):r.frozen.get(t)}return Wd(this,t)},set:function(t,r){if(Ps(t)&&!Rs(t)){var n=Ts(this);n.frozen||(n.frozen=new bo),_o(this,t)?Ns(this,t,r):n.frozen.set(t,r)}else Ns(this,t,r);return this}})):sF()&&JS(Xn,{set:function(t,r){var n;return nF(t)&&($S(t)?n=VS:iF(t)&&(n=oF)),Ns(this,t,r),n&&n(t),this}}));var Vd,_o,Wd});var YS=h(()=>{"use strict";KS()});var XS=h((V7,QS)=>{"use strict";_s();qd();YS();var cF=Vt();QS.exports=cF.WeakMap});var eI=h((W7,ZS)=>{"use strict";ZS.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 zd=h(()=>{"use strict";_s();var lF=eI(),uF=we(),dF=ho(),tI=fn();for(Ds in lF)dF(uF[Ds],Ds),tI[Ds]=tI.Array;var Ds});var nI=h((Y7,rI)=>{"use strict";var pF=XS();zd();rI.exports=pF});var oI=h((Q7,iI)=>{iI.exports=nI()});var sI=h(()=>{"use strict";var fF=oe(),mF=zi(),hF=wd().indexOf,gF=oo(),Kd=mF([].indexOf),aI=!!Kd&&1/Kd([1],1,-0)<0,vF=aI||!gF("indexOf");fF({target:"Array",proto:!0,forced:vF},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return aI?Kd(this,t,r)||0:hF(this,t,r)}})});var lI=h((eY,cI)=>{"use strict";sI();var yF=Pt();cI.exports=yF("Array","indexOf")});var dI=h((tY,uI)=>{"use strict";var bF=nt(),_F=lI(),Yd=Array.prototype;uI.exports=function(e){var t=e.indexOf;return e===Yd||bF(Yd,e)&&t===Yd.indexOf?_F:t}});var fI=h((rY,pI)=>{"use strict";var wF=dI();pI.exports=wF});var hI=h((nY,mI)=>{mI.exports=fI()});var gI=h(()=>{"use strict";var SF=oe(),IF=Ur().map,EF=io(),kF=EF("map");SF({target:"Array",proto:!0,forced:!kF},{map:function(t){return IF(this,t,arguments.length>1?arguments[1]:void 0)}})});var yI=h((aY,vI)=>{"use strict";gI();var CF=Pt();vI.exports=CF("Array","map")});var _I=h((sY,bI)=>{"use strict";var AF=nt(),xF=yI(),Qd=Array.prototype;bI.exports=function(e){var t=e.map;return e===Qd||AF(Qd,e)&&t===Qd.map?xF:t}});var SI=h((cY,wI)=>{"use strict";var PF=_I();wI.exports=PF});var EI=h((lY,II)=>{II.exports=SI()});var kI=h(()=>{"use strict";var TF=oe(),RF=it(),OF=mo();TF({target:"Object",stat:!0,sham:!RF},{create:OF})});var AI=h((pY,CI)=>{"use strict";kI();var NF=Vt(),DF=NF.Object;CI.exports=function(t,r){return DF.create(t,r)}});var PI=h((fY,xI)=>{"use strict";var LF=AI();xI.exports=LF});var RI=h((mY,TI)=>{TI.exports=PI()});var Xd=h((hY,OI)=>{"use strict";var qF=mr();OI.exports=function(e,t,r){return qF.f(e,t,r)}});var LI=h((gY,DI)=>{"use strict";var MF=Gn(),UF=Xd(),FF=Qe(),jF=it(),NI=FF("species");DI.exports=function(e){var t=MF(e);jF&&t&&!t[NI]&&UF(t,NI,{configurable:!0,get:function(){return this}})}});var BI=h((vY,GI)=>{"use strict";var qI=mo(),GF=Xd(),MI=ws(),BF=Zi(),JF=Cs(),HF=sn(),$F=ks(),VF=vs(),Ls=ys(),WF=LI(),So=it(),UI=yo().fastKey,jI=hn(),FI=jI.set,Zd=jI.getterFor;GI.exports={getConstructor:function(e,t,r,n){var i=e(function(l,d){JF(l,o),FI(l,{type:t,index:qI(null),first:null,last:null,size:0}),So||(l.size=0),HF(d)||$F(d,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Zd(t),s=function(l,d,u){var p=a(l),f=c(l,d),m,g;return f?f.value=u:(p.last=f={index:g=UI(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),So?p.size++:l.size++,g!=="F"&&(p.index[g]=f)),l},c=function(l,d){var u=a(l),p=UI(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return MI(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=qI(null),So?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),So?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=BF(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)}}),MI(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)}}),So&&GF(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Zd(t),o=Zd(n);VF(e,t,function(a,s){FI(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,Ls(void 0,!0)):Ls(s==="keys"?c.key:s==="values"?c.value:[c.key,c.value],!1)},r?"entries":"values",!r,!0),WF(t)}}});var JI=h(()=>{"use strict";var zF=Jd(),KF=BI();zF("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},KF)});var HI=h(()=>{"use strict";JI()});var jr=h((SY,$I)=>{"use strict";var YF=Yi(),QF=TypeError;$I.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 QF(YF(e)+" is not a set")}});var WI=h((IY,VI)=>{"use strict";VI.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var Gr=h((EY,KI)=>{"use strict";var XF=Gn(),ep=WI(),zI=XF("Set"),ZF=zI.prototype;KI.exports={Set:zI,add:ep("add",1),has:ep("has",1),remove:ep("delete",1),proto:ZF}});var Br=h((kY,YI)=>{"use strict";var ej=qt();YI.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=ej(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var Zn=h((CY,QI)=>{"use strict";var tj=Br();QI.exports=function(e,t,r){return r?tj(e.keys(),t,!0):e.forEach(t)}});var qs=h((AY,ZI)=>{"use strict";var XI=Gr(),rj=Zn(),nj=XI.Set,ij=XI.add;ZI.exports=function(e){var t=new nj;return rj(e,function(r){ij(t,r)}),t}});var ei=h((xY,e0)=>{"use strict";e0.exports=function(e){return e.size}});var r0=h((PY,t0)=>{"use strict";t0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Jr=h((TY,c0)=>{"use strict";var n0=ln(),a0=fr(),i0=qt(),oj=to(),aj=r0(),o0="Invalid size",sj=RangeError,cj=TypeError,lj=Math.max,s0=function(e,t){this.set=e,this.size=lj(t,0),this.has=n0(e.has),this.keys=n0(e.keys)};s0.prototype={getIterator:function(){return aj(a0(i0(this.keys,this.set)))},includes:function(e){return i0(this.has,this.set,e)}};c0.exports=function(e){a0(e);var t=+e.size;if(t!==t)throw new cj(o0);var r=oj(t);if(r<0)throw new sj(o0);return new s0(e,r)}});var p0=h((RY,d0)=>{"use strict";var uj=jr(),u0=Gr(),dj=qs(),pj=ei(),fj=Jr(),mj=Zn(),hj=Br(),gj=u0.has,l0=u0.remove;d0.exports=function(t){var r=uj(this),n=fj(t),i=dj(r);return pj(r)<=n.size?mj(r,function(o){n.includes(o)&&l0(i,o)}):hj(n.getIterator(),function(o){gj(r,o)&&l0(i,o)}),i}});var Hr=h((OY,f0)=>{"use strict";f0.exports=function(){return!1}});var m0=h(()=>{"use strict";var vj=oe(),yj=p0(),bj=Hr(),_j=!bj("difference",function(e){return e.size===0});vj({target:"Set",proto:!0,real:!0,forced:_j},{difference:yj})});var v0=h((LY,g0)=>{"use strict";var wj=jr(),tp=Gr(),Sj=ei(),Ij=Jr(),Ej=Zn(),kj=Br(),Cj=tp.Set,h0=tp.add,Aj=tp.has;g0.exports=function(t){var r=wj(this),n=Ij(t),i=new Cj;return Sj(r)>n.size?kj(n.getIterator(),function(o){Aj(r,o)&&h0(i,o)}):Ej(r,function(o){n.includes(o)&&h0(i,o)}),i}});var y0=h(()=>{"use strict";var xj=oe(),Pj=_e(),Tj=v0(),Rj=Hr(),Oj=!Rj("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||Pj(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});xj({target:"Set",proto:!0,real:!0,forced:Oj},{intersection:Tj})});var _0=h((UY,b0)=>{"use strict";var Nj=jr(),Dj=Gr().has,Lj=ei(),qj=Jr(),Mj=Zn(),Uj=Br(),Fj=Is();b0.exports=function(t){var r=Nj(this),n=qj(t);if(Lj(r)<=n.size)return Mj(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return Uj(i,function(o){if(Dj(r,o))return Fj(i,"normal",!1)})!==!1}});var w0=h(()=>{"use strict";var jj=oe(),Gj=_0(),Bj=Hr(),Jj=!Bj("isDisjointFrom",function(e){return!e});jj({target:"Set",proto:!0,real:!0,forced:Jj},{isDisjointFrom:Gj})});var I0=h((GY,S0)=>{"use strict";var Hj=jr(),$j=ei(),Vj=Zn(),Wj=Jr();S0.exports=function(t){var r=Hj(this),n=Wj(t);return $j(r)>n.size?!1:Vj(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var E0=h(()=>{"use strict";var zj=oe(),Kj=I0(),Yj=Hr(),Qj=!Yj("isSubsetOf",function(e){return e});zj({target:"Set",proto:!0,real:!0,forced:Qj},{isSubsetOf:Kj})});var C0=h((HY,k0)=>{"use strict";var Xj=jr(),Zj=Gr().has,eG=ei(),tG=Jr(),rG=Br(),nG=Is();k0.exports=function(t){var r=Xj(this),n=tG(t);if(eG(r)<n.size)return!1;var i=n.getIterator();return rG(i,function(o){if(!Zj(r,o))return nG(i,"normal",!1)})!==!1}});var A0=h(()=>{"use strict";var iG=oe(),oG=C0(),aG=Hr(),sG=!aG("isSupersetOf",function(e){return!e});iG({target:"Set",proto:!0,real:!0,forced:sG},{isSupersetOf:oG})});var P0=h((WY,x0)=>{"use strict";var cG=jr(),rp=Gr(),lG=qs(),uG=Jr(),dG=Br(),pG=rp.add,fG=rp.has,mG=rp.remove;x0.exports=function(t){var r=cG(this),n=uG(t).getIterator(),i=lG(r);return dG(n,function(o){fG(r,o)?mG(i,o):pG(i,o)}),i}});var T0=h(()=>{"use strict";var hG=oe(),gG=P0(),vG=Hr();hG({target:"Set",proto:!0,real:!0,forced:!vG("symmetricDifference")},{symmetricDifference:gG})});var O0=h((YY,R0)=>{"use strict";var yG=jr(),bG=Gr().add,_G=qs(),wG=Jr(),SG=Br();R0.exports=function(t){var r=yG(this),n=wG(t).getIterator(),i=_G(r);return SG(n,function(o){bG(i,o)}),i}});var N0=h(()=>{"use strict";var IG=oe(),EG=O0(),kG=Hr();IG({target:"Set",proto:!0,real:!0,forced:!kG("union")},{union:EG})});var Io=h((ZY,D0)=>{"use strict";var CG=zn(),AG=String;D0.exports=function(e){if(CG(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return AG(e)}});var U0=h((eQ,M0)=>{"use strict";var np=Ae(),xG=to(),PG=Io(),TG=cn(),RG=np("".charAt),L0=np("".charCodeAt),OG=np("".slice),q0=function(e){return function(t,r){var n=PG(TG(t)),i=xG(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=L0(n,i),a<55296||a>56319||i+1===o||(s=L0(n,i+1))<56320||s>57343?e?RG(n,i):a:e?OG(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};M0.exports={codeAt:q0(!1),charAt:q0(!0)}});var B0=h(()=>{"use strict";var NG=U0().charAt,DG=Io(),j0=hn(),LG=vs(),F0=ys(),G0="String Iterator",qG=j0.set,MG=j0.getterFor(G0);LG(String,"String",function(e){qG(this,{type:G0,string:DG(e),index:0})},function(){var t=MG(this),r=t.string,n=t.index,i;return n>=r.length?F0(void 0,!0):(i=NG(r,n),t.index+=i.length,F0(i,!1))})});var H0=h((nQ,J0)=>{"use strict";_s();qd();HI();m0();y0();w0();E0();A0();T0();N0();B0();var UG=Vt();J0.exports=UG.Set});var V0=h((iQ,$0)=>{"use strict";var FG=H0();zd();$0.exports=FG});var z0=h((oQ,W0)=>{W0.exports=V0()});var Y0=h(K0=>{"use strict";K0.f=Object.getOwnPropertySymbols});var eE=h((sQ,Z0)=>{"use strict";var Q0=it(),jG=Ae(),GG=qt(),BG=_e(),ip=Ed(),JG=Y0(),HG=wu(),$G=Jn(),VG=za(),ti=Object.assign,X0=Object.defineProperty,WG=jG([].concat);Z0.exports=!ti||BG(function(){if(Q0&&ti({b:1},ti(X0({},"a",{enumerable:!0,get:function(){X0(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}),ti({},e)[r]!==7||ip(ti({},t)).join("")!==n})?function(t,r){for(var n=$G(t),i=arguments.length,o=1,a=JG.f,s=HG.f;i>o;)for(var c=VG(arguments[o++]),l=a?WG(ip(c),a(c)):ip(c),d=l.length,u=0,p;d>u;)p=l[u++],(!Q0||GG(s,c,p))&&(n[p]=c[p]);return n}:ti});var rE=h(()=>{"use strict";var zG=oe(),tE=eE();zG({target:"Object",stat:!0,arity:2,forced:Object.assign!==tE},{assign:tE})});var iE=h((uQ,nE)=>{"use strict";rE();var KG=Vt();nE.exports=KG.Object.assign});var aE=h((dQ,oE)=>{"use strict";var YG=iE();oE.exports=YG});var cE=h((pQ,sE)=>{sE.exports=aE()});var op=h((fQ,lE)=>{"use strict";lE.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 pE=h((mQ,dE)=>{"use strict";var QG=Ae(),XG=cn(),ZG=Io(),sp=op(),uE=QG("".replace),eB=RegExp("^["+sp+"]+"),tB=RegExp("(^|[^"+sp+"])["+sp+"]+$"),ap=function(e){return function(t){var r=ZG(XG(t));return e&1&&(r=uE(r,eB,"")),e&2&&(r=uE(r,tB,"$1")),r}};dE.exports={start:ap(1),end:ap(2),trim:ap(3)}});var gE=h((hQ,hE)=>{"use strict";var rB=bd().PROPER,nB=_e(),fE=op(),mE="\u200B\x85\u180E";hE.exports=function(e){return nB(function(){return!!fE[e]()||mE[e]()!==mE||rB&&fE[e].name!==e})}});var vE=h(()=>{"use strict";var iB=oe(),oB=pE().trim,aB=gE();iB({target:"String",proto:!0,forced:aB("trim")},{trim:function(){return oB(this)}})});var bE=h((yQ,yE)=>{"use strict";vE();var sB=Pt();yE.exports=sB("String","trim")});var wE=h((bQ,_E)=>{"use strict";var cB=nt(),lB=bE(),cp=String.prototype;_E.exports=function(e){var t=e.trim;return typeof e=="string"||e===cp||cB(cp,e)&&t===cp.trim?lB:t}});var IE=h((_Q,SE)=>{"use strict";var uB=wE();SE.exports=uB});var kE=h((wQ,EE)=>{EE.exports=IE()});var xE=h(()=>{"use strict";var dB=oe(),CE=ro(),pB=Wu(),fB=De(),AE=_d(),mB=Wn(),hB=qr(),gB=Xu(),vB=Qe(),yB=io(),bB=so(),_B=yB("slice"),wB=vB("species"),lp=Array,SB=Math.max;dB({target:"Array",proto:!0,forced:!_B},{slice:function(t,r){var n=hB(this),i=mB(n),o=AE(t,i),a=AE(r===void 0?i:r,i),s,c,l;if(CE(n)&&(s=n.constructor,pB(s)&&(s===lp||CE(s.prototype))?s=void 0:fB(s)&&(s=s[wB],s===null&&(s=void 0)),s===lp||s===void 0))return bB(n,o,a);for(c=new(s===void 0?lp:s)(SB(a-o,0)),l=0;o<a;o++,l++)o in n&&gB(c,l,n[o]);return c.length=l,c}})});var TE=h((EQ,PE)=>{"use strict";xE();var IB=Pt();PE.exports=IB("Array","slice")});var OE=h((kQ,RE)=>{"use strict";var EB=nt(),kB=TE(),up=Array.prototype;RE.exports=function(e){var t=e.slice;return e===up||EB(up,e)&&t===up.slice?kB:t}});var DE=h((CQ,NE)=>{"use strict";var CB=OE();NE.exports=CB});var qE=h((AQ,LE)=>{LE.exports=DE()});var dp=P(()=>{});var UE=h((PQ,ME)=>{"use strict";var AB=De(),xB=pr(),PB=Qe(),TB=PB("match");ME.exports=function(e){var t;return AB(e)&&((t=e[TB])!==void 0?!!t:xB(e)==="RegExp")}});var jE=h((TQ,FE)=>{"use strict";var RB=UE(),OB=TypeError;FE.exports=function(e){if(RB(e))throw new OB("The method doesn't accept regular expressions");return e}});var BE=h((RQ,GE)=>{"use strict";var NB=Qe(),DB=NB("match");GE.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[DB]=!1,"/./"[e](t)}catch(n){}}return!1}});var $E=h(()=>{"use strict";var LB=oe(),qB=zi(),MB=Uu().f,UB=Hu(),JE=Io(),FB=jE(),jB=cn(),GB=BE(),BB=Bn(),JB=qB("".slice),HB=Math.min,HE=GB("startsWith"),$B=!BB&&!HE&&!!function(){var e=MB(String.prototype,"startsWith");return e&&!e.writable}();LB({target:"String",proto:!0,forced:!$B&&!HE},{startsWith:function(t){var r=JE(jB(this));FB(t);var n=UB(HB(arguments.length>1?arguments[1]:void 0,r.length)),i=JE(t);return JB(r,n,n+i.length)===i}})});var WE=h((DQ,VE)=>{"use strict";$E();var VB=Pt();VE.exports=VB("String","startsWith")});var KE=h((LQ,zE)=>{"use strict";var WB=nt(),zB=WE(),pp=String.prototype;zE.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===pp||WB(pp,e)&&t===pp.startsWith?zB:t}});var QE=h((qQ,YE)=>{"use strict";var KB=KE();YE.exports=KB});var ZE=h((MQ,XE)=>{XE.exports=QE()});var ik=h((UQ,nk)=>{"use strict";var tk=Ae(),YB=ln(),QB=De(),XB=bt(),ek=so(),ZB=jn(),rk=Function,eJ=tk([].concat),tJ=tk([].join),fp={},rJ=function(e,t,r){if(!XB(fp,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";fp[t]=rk("C,a","return new C("+tJ(n,",")+")")}return fp[t](e,r)};nk.exports=ZB?rk.bind:function(t){var r=YB(this),n=r.prototype,i=ek(arguments,1),o=function(){var s=eJ(i,ek(arguments));return this instanceof o?rJ(r,s.length,s):r.apply(t,s)};return QB(n)&&(o.prototype=n),o}});var ak=h(()=>{"use strict";var nJ=oe(),ok=ik();nJ({target:"Function",proto:!0,forced:Function.bind!==ok},{bind:ok})});var ck=h((GQ,sk)=>{"use strict";ak();var iJ=Pt();sk.exports=iJ("Function","bind")});var uk=h((BQ,lk)=>{"use strict";var oJ=nt(),aJ=ck(),mp=Function.prototype;lk.exports=function(e){var t=e.bind;return e===mp||oJ(mp,e)&&t===mp.bind?aJ:t}});var pk=h((JQ,dk)=>{"use strict";var sJ=uk();dk.exports=sJ});var mk=h((HQ,fk)=>{fk.exports=pk()});function tc(e,t){xe.__h&&xe.__h(ge,e,To||t),To=0;var r=ge.__H||(ge.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Zt(e){return To=1,cJ(rC,e)}function cJ(e,t,r){var n=tc(oi++,2);if(n.t=e,!n.__c&&(n.__=[rC(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=ge,!ge.__f)){var i=function(s,c,l){var d;if(!n.__c.__H)return!0;var u=(0,Lp.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,Qk.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,Le.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};ge.__f=!0;var o=ge.shouldComponentUpdate,a=ge.componentWillUpdate;ge.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)},ge.shouldComponentUpdate=i}return n.__N||n.__}function vn(e,t){var r=tc(oi++,3);!xe.__s&&tC(r.__H,t)&&(r.__=e,r.u=t,ge.__H.__h.push(r))}function Co(e){return To=5,br(function(){return{current:e}},[])}function br(e,t){var r=tc(oi++,7);return tC(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Tt(e,t){return To=8,br(function(){return e},t)}function lJ(e){var t=ge.context[e.__c],r=tc(oi++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ge)),t.props.value):e.__}function uJ(){for(var e;e=eC.shift();)if(e.__P&&e.__H)try{var t,r;(0,Le.default)(t=e.__H.__h).call(t,Gs),(0,Le.default)(r=e.__H.__h).call(r,Ip),e.__H.__h=[]}catch(n){e.__H.__h=[],xe.__e(n,e.__v)}}function dJ(e){var t,r=function(){clearTimeout(n),Sk&&cancelAnimationFrame(t),(0,Xt.default)(e)},n=(0,Xt.default)(r,100);Sk&&(t=requestAnimationFrame(r))}function Gs(e){var t=ge,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ge=t}function Ip(e){var t=ge;e.__c=e.__(),ge=t}function tC(e,t){return!e||e.length!==t.length||(0,Ks.default)(t).call(t,function(r,n){return r!==e[n]})}function rC(e,t){return typeof t=="function"?t(e):t}function pJ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ep(){throw new Error("setTimeout has not been defined")}function kp(){throw new Error("clearTimeout has not been defined")}function iC(e){if(Wt===Xt.default)return(0,Xt.default)(e,0);if((Wt===Ep||!Wt)&&Xt.default)return Wt=Xt.default,(0,Xt.default)(e,0);try{return Wt(e,0)}catch(t){try{return Wt.call(null,e,0)}catch(r){return Wt.call(this,e,0)}}}function fJ(e){if(zt===clearTimeout)return clearTimeout(e);if((zt===kp||!zt)&&clearTimeout)return zt=clearTimeout,clearTimeout(e);try{return zt(e)}catch(t){try{return zt.call(null,e)}catch(r){return zt.call(this,e)}}}function mJ(){!ri||!Vr||(ri=!1,Vr.length?yr=(0,ec.default)(Vr).call(Vr,yr):Bs=-1,yr.length&&oC())}function oC(){if(!ri){var e=iC(mJ);ri=!0;for(var t=yr.length;t;){for(Vr=yr,yr=[];++Bs<t;)Vr&&Vr[Bs].run();Bs=-1,t=yr.length}Vr=null,ri=!1,fJ(e)}}function aC(e,t){this.fun=e,this.array=t}function wr(){}function vJ(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 yJ(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 SJ(e,t){return Je(e,0)^45?(((t<<2^Je(e,0))<<2^Je(e,1))<<2^Je(e,2))<<2^Je(e,3):0}function lC(e){return(0,Up.default)(e).call(e)}function IJ(e,t){return(e=t.exec(e))?e[0]:e}function te(e,t,r){return e.replace(t,r)}function Cp(e,t){return(0,_r.default)(e).call(e,t)}function Je(e,t){return e.charCodeAt(t)|0}function Ro(e,t,r){return(0,Fp.default)(e).call(e,t,r)}function Kt(e){return e.length}function Jp(e){return e.length}function Ms(e,t){return t.push(e),e}function EJ(e,t){return(0,Po.default)(e).call(e,t).join("")}function ic(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:nc,column:ai,length:a,return:""}}function Eo(e,t){return wJ(ic("",null,null,"",null,null,0),e,{length:-e.length},t)}function kJ(){return Pe}function CJ(){return Pe=ct>0?Je(ci,--ct):0,ai--,Pe===10&&(ai=1,nc--),Pe}function _t(){return Pe=ct<uC?Je(ci,ct++):0,ai++,Pe===10&&(ai=1,nc++),Pe}function er(){return Je(ci,ct)}function Js(){return ct}function Mo(e,t){return Ro(ci,e,t)}function Oo(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 dC(e){return nc=ai=1,uC=Kt(ci=e),ct=0,[]}function pC(e){return ci="",e}function Hs(e){return lC(Mo(ct-1,Ap(e===91?e+2:e===40?e+1:e)))}function AJ(e){for(;(Pe=er())&&Pe<33;)_t();return Oo(e)>2||Oo(Pe)>3?"":" "}function xJ(e,t){for(;--t&&_t()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return Mo(e,Js()+(t<6&&er()==32&&_t()==32))}function Ap(e){for(;_t();)switch(Pe){case e:return ct;case 34:case 39:e!==34&&e!==39&&Ap(Pe);break;case 40:e===41&&Ap(e);break;case 92:_t();break}return ct}function PJ(e,t){for(;_t()&&e+Pe!==57&&!(e+Pe===84&&er()===47););return"/*"+Mo(t,ct-1)+"*"+rc(e===47?e:_t())}function TJ(e){for(;!Oo(er());)_t();return Mo(e,ct)}function RJ(e){return pC($s("",null,null,null,[""],e=dC(e),0,[0],e))}function $s(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,g=1,b=1,v=1,w=0,S="",x=i,A=o,C=n,k=S;b;)switch(m=w,w=_t()){case 40:if(m!=108&&Je(k,u-1)==58){Cp(k+=te(Hs(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Hs(w);break;case 9:case 10:case 13:case 32:k+=AJ(m);break;case 92:k+=xJ(Js()-1,7);continue;case 47:switch(er()){case 42:case 47:Ms(OJ(PJ(_t(),Js()),t,r),c);break;default:k+="/"}break;case 123*g:s[l++]=Kt(k)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:f>0&&Kt(k)-u&&Ms(f>32?Ek(k+";",n,r,u-1):Ek(te(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(Ms(C=Ik(k,t,r,l,d,i,s,S,x=[],A=[],u),o),w===123)if(d===0)$s(k,t,C,C,x,o,u,s,A);else switch(p===99&&Je(k,3)===110?100:p){case 100:case 109:case 115:$s(e,C,C,n&&Ms(Ik(e,C,C,0,0,i,s,S,i,x=[],u),A),i,A,u,s,n?x:A);break;default:$s(k,C,C,C,[""],A,0,s,A)}}l=d=f=0,g=v=1,S=k="",u=a;break;case 58:u=1+Kt(k),f=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&CJ()==125)continue}switch(k+=rc(w),w*g){case 38:v=d>0?1:(k+="\f",-1);break;case 44:s[l++]=(Kt(k)-1)*v,v=1;break;case 64:er()===45&&(k+=Hs(_t())),p=er(),d=u=Kt(S=k+=TJ(Js())),w++;break;case 45:m===45&&Kt(k)==2&&(g=0)}}return o}function Ik(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Jp(p),m=0,g=0,b=0;m<n;++m)for(var v=0,w=Ro(e,u+1,u=_J(g=a[m])),S=e;v<f;++v)(S=lC(g>0?p[v]+" "+w:te(w,/&\f/g,p[v])))&&(c[b++]=S);return ic(e,t,r,i===0?Gp:s,c,l,d)}function OJ(e,t,r){return ic(e,t,r,jp,rc(kJ()),Ro(e,2,-2),0)}function Ek(e,t,r,n){return ic(e,t,r,Bp,Ro(e,0,n),Ro(e,n+1,-1),n)}function ni(e,t){for(var r="",n=Jp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function NJ(e,t,r,n){switch(e.type){case bJ:case Bp:return e.return=e.return||e.value;case jp:return"";case cC:return e.return=e.value+"{"+ni(e.children,n)+"}";case Gp:e.value=e.props.join(",")}return Kt(r=ni(e.children,n))?e.return=e.value+"{"+r+"}":""}function DJ(e){var t=Jp(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 LJ(e){return function(t){t.root||(t=t.return)&&e(t)}}function mC(e,t){switch(SJ(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+Qs+e+Xe+e+e;case 6828:case 4268:return z+e+Xe+e+e;case 6165:return z+e+Xe+"flex-"+e+e;case 5187:return z+e+te(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+Xe+"flex-$1$2")+e;case 5443:return z+e+Xe+"flex-item-"+te(e,/flex-|-self/,"")+e;case 4675:return z+e+Xe+"flex-line-pack"+te(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+Xe+te(e,"shrink","negative")+e;case 5292:return z+e+Xe+te(e,"basis","preferred-size")+e;case 6060:return z+"box-"+te(e,"-grow","")+z+e+Xe+te(e,"grow","positive")+e;case 4554:return z+te(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return te(te(te(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return te(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return te(te(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+Xe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return te(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(Kt(e)-1-t>6)switch(Je(e,t+1)){case 109:if(Je(e,t+4)!==45)break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+Qs+(Je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cp(e,"stretch")?mC(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Je(e,t+1)!==115)break;case 6444:switch(Je(e,Kt(e)-3-(~Cp(e,"!important")&&10))){case 107:return te(e,":",":"+z)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(Je(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+Xe+"$2box$3")+e}break;case 5936:switch(Je(e,t+11)){case 114:return z+e+Xe+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+Xe+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+Xe+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+Xe+e+e}return e}function gC(){if(Ak)return Us.exports;Ak=1;let e=gC();return Us.exports={default:e},Us.exports.default=e,Us.exports}function No(e,t,r){var n,i="";return(0,Le.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function KJ(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 QJ(e){var t=(0,Xk.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Do(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 Yt={name:i.name,styles:i.styles,next:Yt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Yt={name:a.name,styles:a.styles,next:Yt},a=a.next;var s=o.styles+";";return s}return e2(e,t,r)}case"function":{if(e!==void 0){var c=Yt,l=r(e);return Yt=c,Do(e,t,l)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function e2(e,t,r){var n="";if((0,xo.default)(r))for(var i=0;i<r.length;i++)n+=Do(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]+"}":xk(s)&&(n+=gp(o)+":"+Pk(o,s)+";")}else if((0,xo.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)xk(a[c])&&(n+=gp(o)+":"+Pk(o,a[c])+";");else{var l=Do(e,t,a);switch(o){case"animation":case"animationName":{n+=gp(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function Wr(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="";Yt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Do(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Do(r,t,e[s]),n){var c=o;i+=c[s]}Tk.lastIndex=0;for(var l="",d;(d=Tk.exec(i))!==null;)l+="-"+d[1];var u=KJ(i)+l;return{name:u,styles:i,next:Yt}}function L(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Wr(t)}function d2(e,t,r){var n=[],i=No(e,n,r);return n.length<2?r:i+t(n)}function _(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:--m2,__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 D.vnode&&D.vnode(l),l}function Uo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Zt(e());return vn(()=>{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 O5(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 AC(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=O5(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function N5(e){let t=()=>AC(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function q5(s){var c=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=c,a=ze(c,["elementTag","src","children","handleExposure","className","imgStyle"]);let l=L5(()=>{t&&n()});return e==="Image"?_("div",{className:i,style:{borderRadius:"8px"},children:Ye("img",F(T({},a),{ref:l,src:t!=null?t:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):_("div",F(T({},a),{ref:l,className:i,children:r}))}function M5(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?Ye(i.type,F(T({},i.props),{style:F(T({},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?Ye(e.type,F(T({},e.props),{style:F(T({},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 B5(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 Bk(e,t,r){return ac.call(t,"css")?_(Wp,wC(e,t),r):_(e,t,r)}function z5(e,t,r){return ac.call(t,"css")?_(Wp,wC(e,t),r):_(e,t,r)}function Op({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return _("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?_(Ge,{children:t[s]},o):null}return _(Ge,{children:i},o)})})}function Q5({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Zt(!1);return a?null:_("div",{style:T({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:_("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function eH({children:e,style:t}){return _("div",{style:`${X5.styles} ${t}`,children:[e,_("svg",{style:`${Z5.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[_("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),_("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function hH(e,t){return He(e,0)^45?(((t<<2^He(e,0))<<2^He(e,1))<<2^He(e,2))<<2^He(e,3):0}function GC(e){return(0,Up.default)(e).call(e)}function gH(e,t){return(e=t.exec(e))?e[0]:e}function Y(e,t,r){return e.replace(t,r)}function Np(e,t){return(0,_r.default)(e).call(e,t)}function He(e,t){return e.charCodeAt(t)|0}function Lo(e,t,r){return(0,Fp.default)(e).call(e,t,r)}function Qt(e){return e.length}function Xp(e){return e.length}function js(e,t){return t.push(e),e}function vH(e,t){return(0,Po.default)(e).call(e,t).join("")}function pc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:dc,column:si,length:a,return:""}}function ko(e,t){return mH(pc("",null,null,"",null,null,0),e,{length:-e.length},t)}function yH(){return Te}function bH(){return Te=lt>0?He(ui,--lt):0,si--,Te===10&&(si=1,dc--),Te}function wt(){return Te=lt<BC?He(ui,lt++):0,si++,Te===10&&(si=1,dc++),Te}function tr(){return He(ui,lt)}function Vs(){return lt}function Fo(e,t){return Lo(ui,e,t)}function qo(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 JC(e){return dc=si=1,BC=Qt(ui=e),lt=0,[]}function HC(e){return ui="",e}function Ws(e){return GC(Fo(lt-1,Dp(e===91?e+2:e===40?e+1:e)))}function _H(e){for(;(Te=tr())&&Te<33;)wt();return qo(e)>2||qo(Te)>3?"":" "}function wH(e,t){for(;--t&&wt()&&!(Te<48||Te>102||Te>57&&Te<65||Te>70&&Te<97););return Fo(e,Vs()+(t<6&&tr()==32&&wt()==32))}function Dp(e){for(;wt();)switch(Te){case e:return lt;case 34:case 39:e!==34&&e!==39&&Dp(Te);break;case 40:e===41&&Dp(e);break;case 92:wt();break}return lt}function SH(e,t){for(;wt()&&e+Te!==57&&!(e+Te===84&&tr()===47););return"/*"+Fo(t,lt-1)+"*"+uc(e===47?e:wt())}function IH(e){for(;!qo(tr());)wt();return Fo(e,lt)}function EH(e){return HC(zs("",null,null,null,[""],e=JC(e),0,[0],e))}function zs(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,g=1,b=1,v=1,w=0,S="",x=i,A=o,C=n,k=S;b;)switch(m=w,w=wt()){case 40:if(m!=108&&He(k,u-1)==58){Np(k+=Y(Ws(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Ws(w);break;case 9:case 10:case 13:case 32:k+=_H(m);break;case 92:k+=wH(Vs()-1,7);continue;case 47:switch(tr()){case 42:case 47:js(kH(SH(wt(),Vs()),t,r),c);break;default:k+="/"}break;case 123*g:s[l++]=Qt(k)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:v==-1&&(k=Y(k,/\f/g,"")),f>0&&Qt(k)-u&&js(f>32?Hk(k+";",n,r,u-1):Hk(Y(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(js(C=Jk(k,t,r,l,d,i,s,S,x=[],A=[],u),o),w===123)if(d===0)zs(k,t,C,C,x,o,u,s,A);else switch(p===99&&He(k,3)===110?100:p){case 100:case 108:case 109:case 115:zs(e,C,C,n&&js(Jk(e,C,C,0,0,i,s,S,i,x=[],u),A),i,A,u,s,n?x:A);break;default:zs(k,C,C,C,[""],A,0,s,A)}}l=d=f=0,g=v=1,S=k="",u=a;break;case 58:u=1+Qt(k),f=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&bH()==125)continue}switch(k+=uc(w),w*g){case 38:v=d>0?1:(k+="\f",-1);break;case 44:s[l++]=(Qt(k)-1)*v,v=1;break;case 64:tr()===45&&(k+=Ws(wt())),p=tr(),d=u=Qt(S=k+=IH(Vs())),w++;break;case 45:m===45&&Qt(k)==2&&(g=0)}}return o}function Jk(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Xp(p),m=0,g=0,b=0;m<n;++m)for(var v=0,w=Lo(e,u+1,u=fH(g=a[m])),S=e;v<f;++v)(S=GC(g>0?p[v]+" "+w:Y(w,/&\f/g,p[v])))&&(c[b++]=S);return pc(e,t,r,i===0?Yp:s,c,l,d)}function kH(e,t,r){return pc(e,t,r,FC,uc(yH()),Lo(e,2,-2),0)}function Hk(e,t,r,n){return pc(e,t,r,Qp,Lo(e,0,n),Lo(e,n+1,-1),n)}function ii(e,t){for(var r="",n=Xp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function CH(e,t,r,n){switch(e.type){case pH:if(e.children.length)break;case dH:case Qp:return e.return=e.return||e.value;case FC:return"";case jC:return e.return=e.value+"{"+ii(e.children,n)+"}";case Yp:e.value=e.props.join(",")}return Qt(r=ii(e.children,n))?e.return=e.value+"{"+r+"}":""}function AH(e){var t=Xp(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 xH(e){return function(t){t.root||(t=t.return)&&e(t)}}function $C(e,t){switch(hH(e,t)){case 5103:return K+"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 K+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return K+e+Zs+e+Ze+e+e;case 6828:case 4268:return K+e+Ze+e+e;case 6165:return K+e+Ze+"flex-"+e+e;case 5187:return K+e+Y(e,/(\w+).+(:[^]+)/,K+"box-$1$2"+Ze+"flex-$1$2")+e;case 5443:return K+e+Ze+"flex-item-"+Y(e,/flex-|-self/,"")+e;case 4675:return K+e+Ze+"flex-line-pack"+Y(e,/align-content|flex-|-self/,"")+e;case 5548:return K+e+Ze+Y(e,"shrink","negative")+e;case 5292:return K+e+Ze+Y(e,"basis","preferred-size")+e;case 6060:return K+"box-"+Y(e,"-grow","")+K+e+Ze+Y(e,"grow","positive")+e;case 4554:return K+Y(e,/([^-])(transform)/g,"$1"+K+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,K+"$1"),/(image-set)/,K+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,K+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,K+"box-pack:$3"+Ze+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+K+e+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,K+"$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(Qt(e)-1-t>6)switch(He(e,t+1)){case 109:if(He(e,t+4)!==45)break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+K+"$2-$3$1"+Zs+(He(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Np(e,"stretch")?$C(Y(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(He(e,t+1)!==115)break;case 6444:switch(He(e,Qt(e)-3-(~Np(e,"!important")&&10))){case 107:return Y(e,":",":"+K)+e;case 101:return Y(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+K+(He(e,14)===45?"inline-":"")+"box$3$1"+K+"$2$3$1"+Ze+"$2box$3")+e}break;case 5936:switch(He(e,t+11)){case 114:return K+e+Ze+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return K+e+Ze+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return K+e+Ze+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return K+e+Ze+e+e}return e}function Vk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function wp(e,t,r){var n=[],i=No(e,n,r);return n.length<2?r:i+t(n)}function Kk(e){if(e==="top"){let t=0;VC.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${Wk}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${Wk}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+zk)})}else if(e==="center"){let t=0;WC.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+zk)})}}function yn(){let e=!1,t=null,r=0,n=new Set,i=a=>y(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:c}=yield Ao.acquire(),l=c.contentDocument;if(l)t=l.createElement("div"),t.id="loading-root",l.body.appendChild(t),Lr(_($H,{}),t);else throw new Error("Iframe document is not available.")}catch(c){console.error("[LoadingManager] Failed to show loading:",c),r=0,e=!1,Ao.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&&(Lr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Ao.release()))};return{show:i,hide:o,get isLoading(){return e}}}var Lp,Qk,Le,ec,Ks,Xt,Ys,xo,qp,_r,Po,Xk,Zk,Mp,Up,Fp,KQ,Sp,oi,ge,hp,hk,To,eC,xe,gk,vk,yk,bk,_k,wk,Sk,nC,ke,Wt,zt,yr,ri,Vr,Bs,hJ,qe,gJ,sC,Xe,Qs,z,jp,Gp,Bp,bJ,cC,_J,rc,wJ,nc,ai,uC,ct,Pe,ci,qJ,MJ,UJ,kk,FJ,jJ,GJ,BJ,JJ,fC,HJ,Ck,$J,VJ,WJ,hC,Us,Ak,zJ,Hp,oc,YJ,XJ,ZJ,vC,xk,gp,Pk,Tk,Yt,t2,yC,bC,Rk,ac,$p,_C,Vp,sc,r2,n2,i2,o2,a2,xp,Pp,wC,s2,Wp,c2,Ok,l2,u2,p2,f2,vp,Nk,yp,bp,m2,_p,h2,g2,v2,y2,b2,_2,w2,Dk,S2,I2,E2,Lk,k2,C2,A2,qk,x2,P2,T2,Mk,R2,O2,N2,D2,L2,q2,M2,U2,F2,j2,G2,Uk,B2,J2,H2,$2,V2,W2,z2,K2,Y2,Q2,X2,Fk,Z2,e5,t5,r5,n5,i5,o5,a5,s5,c5,l5,u5,d5,p5,f5,m5,h5,g5,v5,y5,b5,_5,w5,S5,I5,E5,k5,C5,A5,x5,P5,T5,SC,IC,EC,Tp,R5,kC,CC,Xs,Ao,jk,D5,cc,L5,xC,PC,TC,U5,F5,j5,Rp,G5,RC,OC,lc,zp,li,Gk,$r,NC,gn,J5,H5,$5,V5,W5,Fs,DC,Kp,Se,K5,Y5,X5,Z5,Ft,tH,rH,LC,qC,MC,UC,zr,nH,iH,oH,aH,sH,cH,lH,uH,Ze,Zs,K,FC,Yp,Qp,dH,jC,pH,fH,uc,mH,dc,si,BC,lt,Te,ui,PH,TH,RH,$k,OH,NH,DH,LH,qH,MH,UH,FH,jH,GH,BH,JH,Wk,zk,VC,WC,Sr,Yk,HH,$H,YQ,rr=P(()=>{"use strict";Fn();Lp=se(Gy(),1),Qk=se(Qy(),1),Le=se(ub(),1),ec=se(kb(),1),Ks=se(Db(),1),Xt=se(Xb(),1);ss();ss();Ys=se(q_(),1),xo=se(J_(),1),qp=se(oI(),1),_r=se(hI(),1),Po=se(EI(),1),Xk=se(RI(),1),Zk=se(z0(),1),Mp=se(cE(),1),Up=se(kE(),1),Fp=se(qE(),1);dp();dp();KQ=se(ZE(),1),Sp=se(mk(),1),To=0,eC=[],xe=D,gk=xe.__b,vk=xe.__r,yk=xe.diffed,bk=xe.__c,_k=xe.unmount,wk=xe.__;xe.__b=function(e){ge=null,gk&&gk(e)},xe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),wk&&wk(e,t)},xe.__r=function(e){var t,r,n;vk&&vk(e),oi=0;var i=(ge=e.__c).__H;i&&(hp===ge?(i.__h=[],ge.__h=[],(0,Le.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Le.default)(r=i.__h).call(r,Gs),(0,Le.default)(n=i.__h).call(n,Ip),i.__h=[],oi=0)),hp=ge},xe.diffed=function(e){var t;yk&&yk(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(eC.push(r)!==1&&hk===xe.requestAnimationFrame||((hk=xe.requestAnimationFrame)||dJ)(uJ)),(0,Le.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),hp=ge=null},xe.__c=function(e,t){(0,Ks.default)(t).call(t,function(r){try{var n,i;(0,Le.default)(n=r.__h).call(n,Gs),r.__h=(0,Lp.default)(i=r.__h).call(i,function(o){return!o.__||Ip(o)})}catch(o){(0,Ks.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],xe.__e(o,r.__v)}}),bk&&bk(e,t)},xe.unmount=function(e){var t;_k&&_k(e);var r,n=e.__c;n&&n.__H&&((0,Le.default)(t=n.__H.__).call(t,function(i){try{Gs(i)}catch(o){r=o}}),n.__H=void 0,r&&xe.__e(r,n.__v))};Sk=typeof requestAnimationFrame=="function";nC={exports:{}},ke=nC.exports={};(function(){try{typeof Xt.default=="function"?Wt=Xt.default:Wt=Ep}catch(e){Wt=Ep}try{typeof clearTimeout=="function"?zt=clearTimeout:zt=kp}catch(e){zt=kp}})();yr=[],ri=!1,Bs=-1;ke.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];yr.push(new aC(e,t)),yr.length===1&&!ri&&iC(oC)};aC.prototype.run=function(){this.fun.apply(null,this.array)};ke.title="browser";ke.browser=!0;ke.env={};ke.argv=[];ke.version="";ke.versions={};ke.on=wr;ke.addListener=wr;ke.once=wr;ke.off=wr;ke.removeListener=wr;ke.removeAllListeners=wr;ke.emit=wr;ke.prependListener=wr;ke.prependOnceListener=wr;ke.listeners=function(e){return[]};ke.binding=function(e){throw new Error("process.binding is not supported")};ke.cwd=function(){return"/"};ke.chdir=function(e){throw new Error("process.chdir is not supported")};ke.umask=function(){return 0};hJ=nC.exports,qe=pJ(hJ),gJ=Ys.default||void 0||self;sC=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,Le.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(yJ(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=vJ(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Le.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}(),Xe="-ms-",Qs="-moz-",z="-webkit-",jp="comm",Gp="rule",Bp="decl",bJ="@import",cC="@keyframes",_J=Math.abs,rc=String.fromCharCode,wJ=Mp.default;nc=1,ai=1,uC=0,ct=0,Pe=0,ci="";qJ=function(e,t,r){for(var n=0,i=0;n=i,i=er(),n===38&&i===12&&(t[r]=1),!Oo(i);)_t();return Mo(e,ct)},MJ=function(e,t){var r=-1,n=44;do switch(Oo(n)){case 0:n===38&&er()===12&&(t[r]=1),e[r]+=qJ(ct-1,t,r);break;case 2:e[r]+=Hs(n);break;case 4:if(n===44){e[++r]=er()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=rc(n)}while(n=_t());return e},UJ=function(e,t){return pC(MJ(dC(e),t))},kk=new qp.default,FJ=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&&!kk.get(r))&&!n){kk.set(e,!0);for(var i=[],o=UJ(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]}}},jJ=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},GJ="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",BJ=function(e){var t;return e.type==="comm"&&(0,_r.default)(t=e.children).call(t,GJ)>-1},JJ=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(BJ(c))return;break}}(0,Le.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".')})}}}},fC=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},HJ=function(e,t){for(var r=e-1;r>=0;r--)if(!fC(t[r]))return!0;return!1},Ck=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},$J=function(e,t,r){fC(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."),Ck(e)):HJ(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ck(e)))};VJ=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Bp:e.return=mC(e.value,e.length);break;case cC:return ni([Eo(e,{value:te(e.value,"@","@"+z)})],n);case Gp:if(e.length)return EJ(e.props,function(i){switch(IJ(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ni([Eo(e,{props:[te(i,/:(read-\w+)/,":"+Qs+"$1")]})],n);case"::placeholder":return ni([Eo(e,{props:[te(i,/:(plac\w+)/,":"+z+"input-$1")]}),Eo(e,{props:[te(i,/:(plac\w+)/,":"+Qs+"$1")]}),Eo(e,{props:[te(i,/:(plac\w+)/,Xe+"input-$1")]})],n)}return""})}},WJ=[VJ],hC=function(e){var t=e.key;if(qe.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,Le.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,_r.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||WJ;if(qe.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,Le.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(m)});var s,c=[FJ,jJ];qe.env.NODE_ENV!=="production"&&c.push(JJ({get compat(){return f.compat}}),$J);{var l,d=[NJ,qe.env.NODE_ENV!=="production"?function(m){m.root||(m.return?l.insert(m.return):m.value&&m.type!==jp&&l.insert(m.value+"{}"))}:LJ(function(m){l.insert(m)})],u=DJ((0,ec.default)(c).call(c,n,d)),p=function(m){return ni(RJ(m),u)};s=function(m,g,b,v){l=b,qe.env.NODE_ENV!=="production"&&(0,Po.default)(g)!==void 0&&(l={insert:function(w){b.insert(w+(0,Po.default)(g))}}),p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new sC({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},Us={exports:{}};gC();zJ=!0;Hp=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||zJ===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},oc=function(e,t,r){Hp(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)}};YJ={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};XJ=/[A-Z]|^ms/g,ZJ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vC=function(e){return e.charCodeAt(1)===45},xk=function(e){return e!=null&&typeof e!="boolean"},gp=QJ(function(e){return vC(e)?e:e.replace(XJ,"-$&").toLowerCase()}),Pk=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(ZJ,function(r,n,i){return Yt={name:n,styles:i,next:Yt},n})}return YJ[e]!==1&&!vC(e)&&typeof t=="number"&&t!==0?t+"px":t};Tk=/label:\s*([^\s;{]+)\s*(;|$)/g;t2=function(e){return e()},yC=cd?cd:!1,bC=yC||t2,Rk=yC||Kn,ac={}.hasOwnProperty,$p=an(typeof HTMLElement<"u"?hC({key:"css"}):null);qe.env.NODE_ENV!=="production"&&($p.displayName="EmotionCacheContext");_C=$p.Provider,Vp=function(e){return ud(function(t,r){var n=Qn($p);return e(t,n,r)})},sc=an({});qe.env.NODE_ENV!=="production"&&(sc.displayName="EmotionThemeContext");r2=function(e){var t=e.split(".");return t[t.length-1]},n2=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 r2(t[1])},i2=new Zk.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),o2=function(e){return e.replace(/\$/g,"-")},a2=function(e){if(e)for(var t=e.split(`
|
|
24
|
+
`),r=0;r<t.length;r++){var n=n2(t[r]);if(n){if(i2.has(n))break;if(/^[A-Z]/.test(n))return o2(n)}}},xp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Pp="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",wC=function(e,t){var r,n;if(qe.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,_r.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)ac.call(t,o)&&(i[o]=t[o]);if(i[xp]=e,qe.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,_r.default)(n=t.css.name).call(n,"-")===-1)){var a=a2(new Error().stack);a&&(i[Pp]=a)}return i},s2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Hp(t,r,n),bC(function(){return oc(t,r,n)}),null},Wp=Vp(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[xp],a=[i],s="";typeof e.className=="string"?s=No(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var c=Wr(a,void 0,Qn(sc));if(qe.env.NODE_ENV!=="production"&&(0,_r.default)(n=c.name).call(n,"-")===-1){var l=e[Pp];l&&(c=Wr([c,"label:"+l+";"]))}s+=t.key+"-"+c.name;var d={};for(var u in e)ac.call(e,u)&&u!=="css"&&u!==xp&&(qe.env.NODE_ENV==="production"||u!==Pp)&&(d[u]=e[u]);return d.ref=r,d.className=s,Ye(Ge,null,Ye(s2,{cache:t,serialized:c,isStringTag:typeof o=="string"}),Ye(o,d))});qe.env.NODE_ENV!=="production"&&(Wp.displayName="EmotionCssPropInternal");c2={version:"11.10.5"},Ok=!1,l2=Vp(function(e,t){qe.env.NODE_ENV!=="production"&&!Ok&&(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?"),Ok=!0);var r=e.styles,n=Wr([r],void 0,Qn(sc)),i=Yn();return Rk(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]),Rk(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&oc(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});qe.env.NODE_ENV!=="production"&&(l2.displayName="EmotionGlobal");u2=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,xo.default)(o))a=e(o);else{qe.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};p2=function(e){var t=e.cache,r=e.serializedArr;return bC(function(){for(var n=0;n<r.length;n++)oc(t,r[n],!1)}),null},f2=Vp(function(e,t){var r=!1,n=[],i=function(){if(r&&qe.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=Wr(l,t.registered);return n.push(u),Hp(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&qe.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 d2(t.registered,i,u2(l))},a={css:i,cx:o,theme:Qn(sc)},s=e.children(a);return r=!0,Ye(Ge,null,Ye(p2,{cache:t,serializedArr:n}),s)});qe.env.NODE_ENV!=="production"&&(f2.displayName="EmotionClassNames");qe.env.NODE_ENV!=="production"&&(vp=!0,Nk=typeof jest<"u"||typeof vi<"u",vp&&!Nk&&(yp=typeof Ys.default<"u"?Ys.default:vp?window:gJ,bp="__EMOTION_REACT_"+c2.version.split(".")[0]+"__",yp[bp]&&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."),yp[bp]=!0));m2=0;_p={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"}},h2=L`
|
|
25
25
|
width: 100%;
|
|
26
26
|
overflow: auto;
|
|
27
27
|
margin: 0 auto;
|
|
28
|
-
`,
|
|
28
|
+
`,g2=`
|
|
29
29
|
@keyframes fadeIn {
|
|
30
30
|
from { opacity: 0; }
|
|
31
31
|
to { opacity: 1; }
|
|
@@ -69,44 +69,44 @@ 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
|
-
`,m2=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,c]=Qt(!1),[l,d]=Qt(null),[u,p]=Qt(!1),f=Eo(null),m=Eo(null),g=Eo(!1);dn(()=>{if(s&&f.current){let O=f.current.ownerDocument,be=O.createElement("style");be.innerHTML=f2,O.head.appendChild(be);let Ue={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(be)&&O.head.removeChild(be),O.body.style.overflow=Ue.overflow,O.body.style.position=Ue.position,O.body.style.width=Ue.width}}},[s]),dn(()=>{t?!s&&!g.current&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(g.current=!0,d("leave"),p(!1))},[t]);let b=At(O=>{O.target===m.current&&(l==="leave"?(d(null),c(!1),g.current=!1,n&&n()):l==="enter"&&(d(null),p(!0)))},[l,n]),v=At(()=>{s&&!g.current&&(g.current=!0,d("leave"),p(!1))},[s]),w=At(O=>{r||(O.preventDefault(),O.stopPropagation(),v())},[v]),E=At(()=>{!g.current&&!s&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),A=At(()=>s&&!g.current,[s]);if(dn(()=>{if(a){let O={show:E,hide:v,isOpen:A};typeof a=="function"?a(O):a&&(a.current=O)}},[E,v,A,a]),!s)return null;let P=o==="center",T=U(x({},yp.drawerBackdrop),{alignItems:P?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),k={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"},G=P?U(x({},yp.centerDrawer),{pointerEvents:"auto"}):U(x({},yp.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!l&&!P&&(G.transform="translateY(100%)");let fe=l?P?l==="leave"?"fadeOut":l==="enter"?"fadeIn":"":`drawer-${l}`:"",L=l?`backdrop-${l}`:"";return _("div",{ref:f,style:T,children:[_("div",{style:k,className:L,onClick:w}),_("div",{ref:m,style:U(x({},G),{opacity:P&&l===null&&!u?0:1}),className:`${P&&l==="leave"?"fadeOut":fe} ${i}`,onAnimationEnd:b,onClick:O=>O.stopPropagation(),children:_("div",{style:p2.styles,children:e})})]})},h2=sd(m2);g2={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"},v2={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},y2={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!"},Ok={jolicoin:g2,joligem:v2,loginGuide:y2},b2={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"},_2={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"},w2={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"},Nk={jolicoin:b2,joligem:_2,loginGuide:w2},S2={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"},I2={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"},E2={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!"},Dk={jolicoin:S2,joligem:I2,loginGuide:E2},k2={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"},C2={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"},A2={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!"},qk={jolicoin:k2,joligem:C2,loginGuide:A2},x2={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"},P2={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"},T2={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!"},R2={jolicoin:x2,joligem:P2,loginGuide:T2},O2={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"},N2={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"},D2={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!"},q2={jolicoin:O2,joligem:N2,loginGuide:D2},L2={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"},M2={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"},U2={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!"},Lk={jolicoin:L2,joligem:M2,loginGuide:U2},F2={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"},j2={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},G2={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!"},B2={jolicoin:F2,joligem:j2,loginGuide:G2},J2={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"},H2={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"},$2={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"},V2={jolicoin:J2,joligem:H2,loginGuide:$2},W2={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"},z2={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},K2={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!"},Mk={jolicoin:W2,joligem:z2,loginGuide:K2},Y2={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"},Q2={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"},X2={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!"},Z2={jolicoin:Y2,joligem:Q2,loginGuide:X2},eH={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"},tH={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"},rH={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"},nH={jolicoin:eH,joligem:tH,loginGuide:rH},iH={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"},oH={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},aH={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!"},sH={jolicoin:iH,joligem:oH,loginGuide:aH},cH={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"},lH={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},uH={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 !"},dH={jolicoin:cH,joligem:lH,loginGuide:uH},pH={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"},fH={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"},mH={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!"},hH={jolicoin:pH,joligem:fH,loginGuide:mH},gH={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"},vH={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"},yH={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!"},bH={jolicoin:gH,joligem:vH,loginGuide:yH},_H={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"},wH={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"},SH={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!"},IH={jolicoin:_H,joligem:wH,loginGuide:SH},EH={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"},kH={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"},CH={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!"},AH={jolicoin:EH,joligem:kH,loginGuide:CH},_C={en:{translations:Ok},en_GB:{translations:Ok},zh:{translations:Nk},"zh-Hans":{translations:Nk},"zh-Hant":{translations:nH},id:{translations:Dk},in:{translations:Dk},ms:{translations:qk},my:{translations:qk},th:{translations:R2},vi:{translations:q2},fil:{translations:Lk},tl:{translations:Lk},es:{translations:B2},ja:{translations:V2},pt:{translations:Mk},pt_PT:{translations:Mk},ko:{translations:Z2},de:{translations:sH},fr:{translations:dH},hi:{translations:hH},ru:{translations:bH},bn:{translations:IH},tr:{translations:AH}},wC=en(void 0),SC=({definition:e,children:t})=>{let r={translations:e};return _(wC.Provider,{value:r,children:t})},xp=null,xH={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"},IC=e=>{xp=e},EC=()=>{var e;if(typeof xp!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=xp();return(e=xH[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Ks=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=fC({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=TH(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 y(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"&&(kC(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"))}},ko=new Ks(99999998,"auto"),Uk=new Ks(99999999,"none"),RH=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=Lo(),c={container:D`
|
|
72
|
+
`,v2=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,c]=Zt(!1),[l,d]=Zt(null),[u,p]=Zt(!1),f=Co(null),m=Co(null),g=Co(!1);vn(()=>{if(s&&f.current){let R=f.current.ownerDocument,U=R.createElement("style");U.innerHTML=g2,R.head.appendChild(U);let Z={overflow:R.body.style.overflow,position:R.body.style.position,width:R.body.style.width};return R.body.style.overflow="hidden",R.body.style.position="fixed",R.body.style.width="100%",()=>{R.head.contains(U)&&R.head.removeChild(U),R.body.style.overflow=Z.overflow,R.body.style.position=Z.position,R.body.style.width=Z.width}}},[s]),vn(()=>{t?!s&&!g.current&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(g.current=!0,d("leave"),p(!1))},[t]);let b=Tt(R=>{R.target===m.current&&(l==="leave"?(d(null),c(!1),g.current=!1,n&&n()):l==="enter"&&(d(null),p(!0)))},[l,n]),v=Tt(()=>{s&&!g.current&&(g.current=!0,d("leave"),p(!1))},[s]),w=Tt(R=>{r||(R.preventDefault(),R.stopPropagation(),v())},[v]),S=Tt(()=>{!g.current&&!s&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),x=Tt(()=>s&&!g.current,[s]);if(vn(()=>{if(a){let R={show:S,hide:v,isOpen:x};typeof a=="function"?a(R):a&&(a.current=R)}},[S,v,x,a]),!s)return null;let A=o==="center",C=F(T({},_p.drawerBackdrop),{alignItems:A?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),k={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"},B=A?F(T({},_p.centerDrawer),{pointerEvents:"auto"}):F(T({},_p.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!l&&!A&&(B.transform="translateY(100%)");let le=l?A?l==="leave"?"fadeOut":l==="enter"?"fadeIn":"":`drawer-${l}`:"",N=l?`backdrop-${l}`:"";return _("div",{ref:f,style:C,children:[_("div",{style:k,className:N,onClick:w}),_("div",{ref:m,style:F(T({},B),{opacity:A&&l===null&&!u?0:1}),className:`${A&&l==="leave"?"fadeOut":le} ${i}`,onAnimationEnd:b,onClick:R=>R.stopPropagation(),children:_("div",{style:h2.styles,children:e})})]})},y2=ud(v2);b2={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"},_2={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},w2={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!"},Dk={jolicoin:b2,joligem:_2,loginGuide:w2},S2={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"},I2={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"},E2={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"},Lk={jolicoin:S2,joligem:I2,loginGuide:E2},k2={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"},C2={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"},A2={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!"},qk={jolicoin:k2,joligem:C2,loginGuide:A2},x2={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"},P2={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"},T2={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!"},Mk={jolicoin:x2,joligem:P2,loginGuide:T2},R2={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"},O2={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"},N2={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!"},D2={jolicoin:R2,joligem:O2,loginGuide:N2},L2={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"},q2={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"},M2={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!"},U2={jolicoin:L2,joligem:q2,loginGuide:M2},F2={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"},j2={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"},G2={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!"},Uk={jolicoin:F2,joligem:j2,loginGuide:G2},B2={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"},J2={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},H2={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!"},$2={jolicoin:B2,joligem:J2,loginGuide:H2},V2={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"},W2={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"},z2={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"},K2={jolicoin:V2,joligem:W2,loginGuide:z2},Y2={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"},Q2={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},X2={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!"},Fk={jolicoin:Y2,joligem:Q2,loginGuide:X2},Z2={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"},e5={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"},t5={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!"},r5={jolicoin:Z2,joligem:e5,loginGuide:t5},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"},i5={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"},o5={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"},a5={jolicoin:n5,joligem:i5,loginGuide:o5},s5={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"},c5={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},l5={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!"},u5={jolicoin:s5,joligem:c5,loginGuide:l5},d5={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"},p5={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},f5={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 !"},m5={jolicoin:d5,joligem:p5,loginGuide:f5},h5={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"},g5={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"},v5={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!"},y5={jolicoin:h5,joligem:g5,loginGuide:v5},b5={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"},_5={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"},w5={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!"},S5={jolicoin:b5,joligem:_5,loginGuide:w5},I5={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"},E5={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"},k5={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!"},C5={jolicoin:I5,joligem:E5,loginGuide:k5},A5={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"},x5={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"},P5={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!"},T5={jolicoin:A5,joligem:x5,loginGuide:P5},SC={en:{translations:Dk},en_GB:{translations:Dk},zh:{translations:Lk},"zh-Hans":{translations:Lk},"zh-Hant":{translations:a5},id:{translations:qk},in:{translations:qk},ms:{translations:Mk},my:{translations:Mk},th:{translations:D2},vi:{translations:U2},fil:{translations:Uk},tl:{translations:Uk},es:{translations:$2},ja:{translations:K2},pt:{translations:Fk},pt_PT:{translations:Fk},ko:{translations:r5},de:{translations:u5},fr:{translations:m5},hi:{translations:y5},ru:{translations:S5},bn:{translations:C5},tr:{translations:T5}},IC=an(void 0),EC=({definition:e,children:t})=>{let r={translations:e};return _(IC.Provider,{value:r,children:t})},Tp=null,R5={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"},kC=e=>{Tp=e},CC=()=>{var e;if(typeof Tp!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Tp();return(e=R5[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Xs=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=hC({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=N5(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 y(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"&&(AC(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"))}},Ao=new Xs(99999998,"auto"),jk=new Xs(99999999,"none"),D5=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=Uo(),c={container:L`
|
|
73
73
|
display: flex;
|
|
74
74
|
flex-direction: column;
|
|
75
75
|
height: 100%;
|
|
76
76
|
width: 100%;
|
|
77
77
|
max-width: ${s==="portrait"?"440px":"75%"};
|
|
78
78
|
margin: 0 auto;
|
|
79
|
-
`,header:
|
|
79
|
+
`,header:L`
|
|
80
80
|
padding: 16px;
|
|
81
81
|
border-bottom: 1px solid #eee;
|
|
82
82
|
display: flex;
|
|
83
83
|
justify-content: space-between;
|
|
84
84
|
align-items: center;
|
|
85
|
-
`,content:
|
|
85
|
+
`,content:L`
|
|
86
86
|
padding: ${i};
|
|
87
87
|
flex: 1;
|
|
88
88
|
overflow: auto;
|
|
89
|
-
`,footer:
|
|
89
|
+
`,footer:L`
|
|
90
90
|
padding: 16px;
|
|
91
91
|
border-top: 1px solid #eee;
|
|
92
92
|
display: flex;
|
|
93
93
|
justify-content: flex-end;
|
|
94
94
|
gap: 8px;
|
|
95
|
-
`,closeButton:
|
|
95
|
+
`,closeButton:L`
|
|
96
96
|
background: none;
|
|
97
97
|
border: none;
|
|
98
98
|
cursor: pointer;
|
|
99
99
|
font-size: 20px;
|
|
100
|
-
`,button:
|
|
100
|
+
`,button:L`
|
|
101
101
|
padding: 8px 16px;
|
|
102
102
|
border-radius: 4px;
|
|
103
103
|
border: 1px solid #ddd;
|
|
104
104
|
cursor: pointer;
|
|
105
|
-
`};return _("div",{className:c.container.name,children:[!r&&_("div",{className:c.header.name,children:[_("h3",{children:e}),_("button",{className:c.closeButton.name,onClick:a,children:"\xD7"})]}),_("div",{className:c.content.name,children:t}),o&&o.length>0&&_("div",{className:c.footer.name,children:o.map((l,d)=>_("button",{className:
|
|
105
|
+
`};return _("div",{className:c.container.name,children:[!r&&_("div",{className:c.header.name,children:[_("h3",{children:e}),_("button",{className:c.closeButton.name,onClick:a,children:"\xD7"})]}),_("div",{className:c.content.name,children:t}),o&&o.length>0&&_("div",{className:c.footer.name,children:o.map((l,d)=>_("button",{className:L`
|
|
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))})]})},
|
|
109
|
+
`.name,onClick:u=>{var p;return(p=l.onClick)==null?void 0:p.call(l,u,{hide:a})},children:l.text},d))})]})},cc=e=>{let t=!1,r=CC(),n=SC[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)),Lr(_(_C,{value:a,children:_(EC,{definition:n,children:_(y2,{ref:g=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:l,preventCloseOnBackdropClick:(m=e.preventCloseOnBackdropClick)!=null?m:!1,backdropColor:e.backdropColor,children:_(D5,F(T({},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))}Ao.release(),(f=e.onClose)==null||f.call(e)}}function d(){return y(this,null,function*(){let p=yield Ao.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.")}}},L5=(e,t={threshold:.6})=>{let r=Co(null),n=Co(!1),i=Tt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return vn(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};xC=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=ze(a,["children","fluid","className","style"]);let s=T({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return _("div",F(T({className:r,style:s},i),{children:e}))},PC=s=>{var c=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=c,a=ze(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=T({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?M5(e,t):e;return _("div",F(T({className:i,style:u},a),{children:p}))};TC=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=ze(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=T({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}%`),_("div",F(T({className:c,style:f},d),{children:e}))},U5=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,c;let o=Fr(l=>{l.preventDefault(),i==null||i(e)},[i,e]),a=Fr(()=>{},[e,t]);return _(TC,{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:[_("div",{className:"relative w-full mb-[2px] ion-no-margin",children:_(q5,{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})}),_("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)},F5=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=ze(s,["list","routeMode","layerName","onGameClick","orientation"]);return _(xC,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:_(PC,{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=>_(U5,{orientation:i,game:c,routeMode:t,layerName:r,onGameClick:n},c.gameId))})})},j5=ld(F5),Rp=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(Rp||{}),G5=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=Zt(null),s=Tt(u=>{i==null||i({type:u.type===Rp.Quit?"quit":"dismiss"})},[i]),c=Tt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),l=Uo();if(!t.length)return _(Ge,{});let d=Tt(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,19 +228,19 @@ 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 m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return
|
|
231
|
+
`;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return vn(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&Lr(_("div",{className:"recommend-panel",children:_("div",{className:"container",children:[_("p",{className:"title",children:r}),_("div",{className:"games-container",children:_(j5,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:c,orientation:l})}),_("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>_("div",{className:"button-wrapper",children:_("button",{className:`button ${p.type===Rp.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:_("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,c]),_("div",{ref:d})},RC=e=>{let t=cc({title:e.title,content:_(G5,{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},OC="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=",lc="https://fe-oss.jolibox.com/static/coin/jolicoin.png",zp="https://fe-oss.jolibox.com/static/coin/gem.png";li=()=>{let e=lJ(IC);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=B5(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}},Gk=({text:e,initialFontSize:t,styles:r})=>_("span",{style:r,children:_("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})}),$r={coinInfo:L`
|
|
232
232
|
display: flex;
|
|
233
233
|
width: calc(100% - 40px);
|
|
234
234
|
max-width: 720px;
|
|
235
235
|
justify-content: space-between;
|
|
236
|
-
`,coinAmount:
|
|
236
|
+
`,coinAmount:L`
|
|
237
237
|
display: flex;
|
|
238
238
|
flex-direction: row;
|
|
239
239
|
gap: 4px;
|
|
240
240
|
align-items: center;
|
|
241
241
|
flex: 1;
|
|
242
242
|
min-width: 0;
|
|
243
|
-
`,coinAmountBalance:
|
|
243
|
+
`,coinAmountBalance:L`
|
|
244
244
|
display: flex;
|
|
245
245
|
flex-direction: row;
|
|
246
246
|
gap: 4px;
|
|
@@ -248,7 +248,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
248
248
|
justify-content: flex-end;
|
|
249
249
|
flex: 1;
|
|
250
250
|
min-width: 0;
|
|
251
|
-
`,coinLabelContainer:
|
|
251
|
+
`,coinLabelContainer:L`
|
|
252
252
|
font-weight: 600;
|
|
253
253
|
text-align: center;
|
|
254
254
|
flex-shrink: 1;
|
|
@@ -256,20 +256,20 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
256
256
|
min-width: 30px;
|
|
257
257
|
overflow: hidden;
|
|
258
258
|
color: #fff;
|
|
259
|
-
`,coinValue:
|
|
259
|
+
`,coinValue:L`
|
|
260
260
|
display: flex;
|
|
261
261
|
align-items: center;
|
|
262
262
|
gap: 3px;
|
|
263
263
|
font-size: 22px;
|
|
264
264
|
font-weight: 900;
|
|
265
265
|
color: #fdde9d;
|
|
266
|
-
`,coinIcon:
|
|
266
|
+
`,coinIcon:L`
|
|
267
267
|
width: 16px;
|
|
268
268
|
height: 16px;
|
|
269
|
-
`,gemIcon:
|
|
269
|
+
`,gemIcon:L`
|
|
270
270
|
width: 25px;
|
|
271
271
|
height: 25px;
|
|
272
|
-
`,autoExpandLabel:
|
|
272
|
+
`,autoExpandLabel:L`
|
|
273
273
|
font-weight: 700;
|
|
274
274
|
text-align: center;
|
|
275
275
|
flex-shrink: 1;
|
|
@@ -280,7 +280,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
280
280
|
max-width: 70vw;
|
|
281
281
|
display: inline-block;
|
|
282
282
|
vertical-align: middle;
|
|
283
|
-
`,coinValueText:
|
|
283
|
+
`,coinValueText:L`
|
|
284
284
|
font-weight: 600;
|
|
285
285
|
text-align: center;
|
|
286
286
|
flex-shrink: 1;
|
|
@@ -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
|
-
`},
|
|
291
|
+
`},NC=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=lc,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:c}=li(),l=14,d=br(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return _("div",{style:$r.coinInfo.styles,children:[!i&&_("div",{style:$r.coinAmount.styles,children:[_(Gk,{text:c("jolicoin.price"),initialFontSize:l,styles:$r.coinLabelContainer.styles}),_("div",{style:$r.coinValue.styles,children:[_("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?$r.gemIcon.styles:$r.coinIcon.styles}),_("span",{children:e})]})]}),!o&&_("div",{style:$r.coinAmountBalance.styles,children:_(Gk,{text:c(d)+":\xA0"+s,initialFontSize:l,styles:$r.coinValueText.styles})})]})},gn={card:L`
|
|
292
292
|
display: flex;
|
|
293
293
|
flex-direction: column;
|
|
294
294
|
align-items: center;
|
|
@@ -300,50 +300,50 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
300
300
|
transition: all 0.2s ease;
|
|
301
301
|
border: 1px solid transparent;
|
|
302
302
|
-webkit-tap-highlight-color: transparent;
|
|
303
|
-
`,selectedCard:
|
|
303
|
+
`,selectedCard:L`
|
|
304
304
|
background: -webkit-linear-gradient(39.03deg, rgba(255, 255, 255, 0.24) 15.04%, rgba(192, 147, 255, 0.3) 73.25%) !important;
|
|
305
305
|
border-color: #7e41ff !important;
|
|
306
306
|
-webkit-tap-highlight-color: transparent;
|
|
307
|
-
`,coinContainer:
|
|
307
|
+
`,coinContainer:L`
|
|
308
308
|
display: flex;
|
|
309
309
|
align-items: center;
|
|
310
310
|
margin-bottom: 8px;
|
|
311
|
-
`,coinIcon:
|
|
311
|
+
`,coinIcon:L`
|
|
312
312
|
width: 21px;
|
|
313
313
|
height: 21px;
|
|
314
314
|
margin-right: 4px;
|
|
315
|
-
`,gemIcon:
|
|
315
|
+
`,gemIcon:L`
|
|
316
316
|
width: 25px;
|
|
317
317
|
height: 25px;
|
|
318
318
|
margin-right: 4px;
|
|
319
|
-
`,coinValue:
|
|
319
|
+
`,coinValue:L`
|
|
320
320
|
font-size: 20px;
|
|
321
321
|
font-weight: bold;
|
|
322
322
|
color: white;
|
|
323
|
-
`,price:
|
|
323
|
+
`,price:L`
|
|
324
324
|
font-size: 16px;
|
|
325
325
|
color: #C093FF;
|
|
326
326
|
font-weight: bold;
|
|
327
|
-
`},
|
|
327
|
+
`},J5=L`
|
|
328
328
|
box-sizing: border-box;
|
|
329
329
|
width: 100%;
|
|
330
330
|
aspect-ratio: 1/1;
|
|
331
|
-
`,
|
|
331
|
+
`,H5=L`
|
|
332
332
|
aspect-ratio: 1/1; // 强制 1:1 的宽高比
|
|
333
333
|
display: flex;
|
|
334
334
|
flex-direction: column;
|
|
335
335
|
justify-content: center;
|
|
336
336
|
-webkit-tap-highlight-color: transparent;
|
|
337
|
-
|
|
337
|
+
`,$5=e=>_("div",{style:J5.styles,children:_("div",{style:H5.styles,children:_("div",{style:`${gn.card.styles} ${e.option.id===e.selectedId?gn.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[_("div",{style:gn.coinContainer.styles,children:[_("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?gn.gemIcon.styles:gn.coinIcon.styles}),_("span",{style:gn.coinValue.styles,children:e.option.coins.toLocaleString()})]}),_("div",{style:gn.price.styles,children:e.option.price})]})})}),V5=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=lc})=>{let o=Uo(),a=s=>{r==null||r(s)};return _(xC,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:_(PC,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>_(TC,{span:o==="landscape"?4:8,children:_($5,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},W5=ld(V5);Fs={toggleSwitch:L`
|
|
338
338
|
position: relative;
|
|
339
339
|
display: inline-block;
|
|
340
340
|
width: 33px;
|
|
341
341
|
height: 18px;
|
|
342
|
-
`,toggleInput:
|
|
342
|
+
`,toggleInput:L`
|
|
343
343
|
opacity: 0;
|
|
344
344
|
width: 15px;
|
|
345
345
|
height: 15px;
|
|
346
|
-
`,toggleSlider:
|
|
346
|
+
`,toggleSlider:L`
|
|
347
347
|
position: absolute;
|
|
348
348
|
cursor: pointer;
|
|
349
349
|
top: 0;
|
|
@@ -365,13 +365,13 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
365
365
|
transition: 0.4s;
|
|
366
366
|
border-radius: 50%;
|
|
367
367
|
}
|
|
368
|
-
`,toggleSliderActive:
|
|
368
|
+
`,toggleSliderActive:L`
|
|
369
369
|
background-color: #6a3de8;
|
|
370
370
|
|
|
371
371
|
&:before {
|
|
372
372
|
transform: translateX(18px);
|
|
373
373
|
}
|
|
374
|
-
`},
|
|
374
|
+
`},DC=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>z5("label",{css:Fs.toggleSwitch,children:[Bk("input",{css:Fs.toggleInput,type:"checkbox",checked:e,onChange:t}),Bk("span",{css:[Fs.toggleSlider,e&&Fs.toggleSliderActive]})]}),Kp=()=>_("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_("g",{"clip-path":"url(#clip0_2716_2719)",children:_("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"})}),_("defs",{children:_("clipPath",{id:"clip0_2716_2719",children:_("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),Se={modal:L`
|
|
375
375
|
font-family: PingFangSC-Regular;
|
|
376
376
|
background-color: #1a1a1a;
|
|
377
377
|
color: white;
|
|
@@ -383,22 +383,22 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
383
383
|
margin: 0 auto;
|
|
384
384
|
display: flex;
|
|
385
385
|
flex-direction: column;
|
|
386
|
-
`,header:
|
|
386
|
+
`,header:L`
|
|
387
387
|
display: flex;
|
|
388
388
|
justify-content: space-between;
|
|
389
389
|
align-items: center;
|
|
390
|
-
`,closeButton:
|
|
390
|
+
`,closeButton:L`
|
|
391
391
|
background: none;
|
|
392
392
|
border: none;
|
|
393
393
|
cursor: pointer;
|
|
394
394
|
color: white;
|
|
395
395
|
padding: 0px;
|
|
396
|
-
`,content:
|
|
396
|
+
`,content:L`
|
|
397
397
|
display: flex;
|
|
398
398
|
flex-direction: column;
|
|
399
399
|
gap: 8px;
|
|
400
400
|
padding-right: 8px;
|
|
401
|
-
`,title:
|
|
401
|
+
`,title:L`
|
|
402
402
|
font-size: 14px;
|
|
403
403
|
font-weight: 600;
|
|
404
404
|
line-height: 24px;
|
|
@@ -406,12 +406,12 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
406
406
|
color: #fff;
|
|
407
407
|
padding: 8px 0;
|
|
408
408
|
text-align: center;
|
|
409
|
-
`,autoDeductOption:
|
|
409
|
+
`,autoDeductOption:L`
|
|
410
410
|
display: flex;
|
|
411
411
|
justify-content: space-between;
|
|
412
412
|
align-items: center;
|
|
413
413
|
-webkit-tap-highlight-color: transparent;
|
|
414
|
-
`,buttonContainer:
|
|
414
|
+
`,buttonContainer:L`
|
|
415
415
|
display: flex;
|
|
416
416
|
width: 100%;
|
|
417
417
|
gap: 16px;
|
|
@@ -422,7 +422,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
422
422
|
flex-direction: row;
|
|
423
423
|
gap: 16px;
|
|
424
424
|
}
|
|
425
|
-
`,buttonFlex:
|
|
425
|
+
`,buttonFlex:L`
|
|
426
426
|
width: 100%;
|
|
427
427
|
flex: 1 1 100%;
|
|
428
428
|
|
|
@@ -430,7 +430,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
430
430
|
width: 50%;
|
|
431
431
|
flex: 1 1 50%;
|
|
432
432
|
}
|
|
433
|
-
`,confirmButton:
|
|
433
|
+
`,confirmButton:L`
|
|
434
434
|
background-color: #6a3de8;
|
|
435
435
|
color: white;
|
|
436
436
|
border: none;
|
|
@@ -441,7 +441,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
441
441
|
cursor: pointer;
|
|
442
442
|
transition: background-color 0.3s;
|
|
443
443
|
-webkit-tap-highlight-color: transparent;
|
|
444
|
-
`,cancelButton:
|
|
444
|
+
`,cancelButton:L`
|
|
445
445
|
background-color: transparent;
|
|
446
446
|
color: #d9d9d9;
|
|
447
447
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
@@ -452,26 +452,26 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
452
452
|
cursor: pointer;
|
|
453
453
|
transition: background-color 0.3s;
|
|
454
454
|
-webkit-tap-highlight-color: transparent;
|
|
455
|
-
`,bottomIndicator:
|
|
455
|
+
`,bottomIndicator:L`
|
|
456
456
|
width: 40px;
|
|
457
457
|
height: 4px;
|
|
458
458
|
background-color: rgba(255, 255, 255, 0.3);
|
|
459
459
|
border-radius: 2px;
|
|
460
460
|
margin: 0 auto;
|
|
461
461
|
-webkit-tap-highlight-color: transparent;
|
|
462
|
-
`},
|
|
462
|
+
`},K5=({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]=Zt(r),u=Uo(),{t:p}=li(),f=()=>{i(l)},m=br(()=>n==="JOLI_GEM"?zp:lc,[n]),g=br(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),b=br(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),v=Tt(()=>{d(!l),a(!l)},[l]);return _("div",{style:`${Se.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[_("div",{style:Se.header.styles,children:[_(NC,{unlockNeedsAmount:e,balanceAmount:t,coinImage:m,currency:n}),_("button",{style:Se.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:_(Kp,{})})]}),_("div",{style:Se.content.styles,children:[_("h2",{style:Se.title.styles,children:p(g)}),!r&&_("div",{style:Se.autoDeductOption.styles,children:[_("span",{style:L`
|
|
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)}),_(
|
|
467
|
+
`.styles,children:p(b)}),_(DC,{enableAutoDeduct:l,toggleEnableAutoDeduct:v})]}),_("section",{style:`${Se.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${Se.confirmButton.styles} ${Se.buttonFlex.styles}`,onClick:f,children:p(s)}),_("button",{style:`${Se.cancelButton.styles} ${Se.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(c)})]})]})]})},Y5=({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]=Zt(r),{t:f}=li(),[m,g]=Zt(()=>{var C,k;return((C=n.find(B=>B.defaultSelected))==null?void 0:C.productId)||((k=n==null?void 0:n[0])==null?void 0:k.productId)}),b=Uo(),v=()=>{o(m)},w=Tt(C=>{console.log(C),g(C),c(C)},[]),S=Tt(()=>{p(!u),s(!u)},[u]),x=br(()=>i==="JOLI_GEM"?zp:lc,[i]),A=br(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),_("div",{style:Se.modal.styles,children:[_("div",{style:Se.header.styles,children:[_(NC,{unlockNeedsAmount:e,balanceAmount:t,coinImage:x,currency:i}),_("button",{style:Se.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:_(Kp,{})})]}),_("div",{style:Se.content.styles,children:[_("div",{style:L`
|
|
468
468
|
padding: 16px 0px;
|
|
469
|
-
`.styles,children:_(
|
|
469
|
+
`.styles,children:_(W5,{options:n.map(C=>({id:C.productId,coins:C.quantity,price:C.totalAmountStr})),coinImageSrc:x,selectedId:m,currency:i,onSelect:C=>w(C.id)})}),!r&&_("div",{style:Se.autoDeductOption.styles,children:[_("span",{style:L`
|
|
470
470
|
font-size: 12px;
|
|
471
471
|
font-weight: 400;
|
|
472
472
|
line-height: 1.2;
|
|
473
473
|
color: #979797;
|
|
474
|
-
`.styles,children:f(
|
|
474
|
+
`.styles,children:f(A)}),_(DC,{enableAutoDeduct:u,toggleEnableAutoDeduct:S})]}),_("section",{style:`${Se.buttonContainer.styles} ${b==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${Se.confirmButton.styles} ${Se.buttonFlex.styles}`,onClick:v,children:f(l)}),_("button",{style:`${Se.cancelButton.styles} ${Se.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};X5=L`
|
|
475
475
|
display: inline-flex;
|
|
476
476
|
align-items: center;
|
|
477
477
|
justify-content: center;
|
|
@@ -488,18 +488,18 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
488
488
|
white-space: nowrap;
|
|
489
489
|
text-overflow: ellipsis;
|
|
490
490
|
border: 1px solid rgba(255, 255, 255, 0.52);
|
|
491
|
-
`,
|
|
491
|
+
`,Z5=L`
|
|
492
492
|
position: absolute;
|
|
493
493
|
left: 20%;
|
|
494
494
|
bottom: -9px;
|
|
495
495
|
transform: translateX(-50%);
|
|
496
496
|
z-index: 2;
|
|
497
497
|
pointer-events: none;
|
|
498
|
-
`;
|
|
498
|
+
`;Ft=F(T({},Se),{header:L`
|
|
499
499
|
display: flex;
|
|
500
500
|
justify-content: flex-end;
|
|
501
501
|
align-items: center;
|
|
502
|
-
`,introduct:
|
|
502
|
+
`,introduct:L`
|
|
503
503
|
display: flex;
|
|
504
504
|
flex-direction: column;
|
|
505
505
|
align-items: center;
|
|
@@ -507,20 +507,20 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
507
507
|
margin-top: 24px;
|
|
508
508
|
gap: 8px;
|
|
509
509
|
padding: 0 20px;
|
|
510
|
-
`,introductSubTitle:
|
|
510
|
+
`,introductSubTitle:L`
|
|
511
511
|
font-size: 14px;
|
|
512
512
|
color: rgb(255, 255, 255);
|
|
513
513
|
opacity: 0.5;
|
|
514
514
|
line-height: 21px;
|
|
515
515
|
text-align: center;
|
|
516
516
|
font-weight: 600;
|
|
517
|
-
`,introductTitle:
|
|
517
|
+
`,introductTitle:L`
|
|
518
518
|
font-size: 16px;
|
|
519
519
|
color: #ffffff;
|
|
520
520
|
line-height: 24px;
|
|
521
521
|
text-align: center;
|
|
522
522
|
font-weight: 600;
|
|
523
|
-
`,tipsBubble:
|
|
523
|
+
`,tipsBubble:L`
|
|
524
524
|
display: inline-flex;
|
|
525
525
|
align-items: center;
|
|
526
526
|
justify-content: 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
|
-
`}),XH={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()},ZH=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:c}=ii(),l=XH[t];return _("div",{style:{paddingTop:"80px"},children:_("section",{style:`${Lt.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[_(zH,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),_("div",{style:Lt.header.styles,children:_("button",{style:`${Lt.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:_(Wp,{})})}),_("div",{style:Lt.introduct.styles,children:[s?_("span",{style:Lt.introductSubTitle.styles,children:c("loginGuide.instead")}):null,_("span",{style:Lt.introductTitle.styles,children:_(Tp,{children:c("loginGuide.introduct"),values:{coin:_("img",{src:l,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),_("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:_("section",{style:`${Lt.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[_("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[_("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:_(QH,{children:_(Tp,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:c("loginGuide.tips"),values:{coin:_(Fe,{children:[_("img",{src:l,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),_("button",{style:`${Lt.confirmButton.styles} ${Lt.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:_("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:c(n)})})]}),_("button",{style:`${Lt.cancelButton.styles} ${Lt.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:c(i)})]})})]})})},NC=e=>{let t=oc({title:"",content:_(VH,{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},DC=e=>{let t=oc({title:"",content:_(WH,{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},qC=e=>{let t=oc({title:"",content:_(ZH,{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},LC=new Map,Br=(e,t)=>{LC.set(e,t)};Br(/^\{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 _("div",{style:r,children:_("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[_("g",{clipPath:"url(#clip0_2247_16523)",children:_("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"})}),_("defs",{children:_("clipPath",{id:"clip0_2247_16523",children:_("rect",{width:"24",height:"24",fill:"white"})})})]})})});Br(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:TC;return _("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});Br(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:Vp,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return _("img",{src:r,alt:"\u{1FA99}",style:U(x({},n),{verticalAlign:"middle"})})});e5=/^\{slot-i18n-(.+?)\}/,t5=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=ii(),i=n(e,t);return _("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};Br(e5,(e,t)=>{var n;let r=e[1];return r?_(t5,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),_("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});r5=/^\{slot-i18ntran-(.+?)\}/,n5=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=ii(),o=i(e),a=Object.entries(r).reduce((s,[c,l])=>(s[c]=l(t[c]),s),{});return _(Tp,{children:o||n,values:x(x({},t),a)})},i5={coin:e=>_(Fe,{children:[_("img",{src:TC,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};Br(r5,(e,t)=>{var n,i;let r=e[1];return r?_(n5,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:i5,fallbackText:`[${r}]`}):_("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});o5="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Br(/^\{slot-success\}/,(e,t)=>_("img",{src:o5,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));a5="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Br(/^\{slot-error\}/,(e,t)=>_("img",{src:a5,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));s5="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=";Br(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=s5,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return _("img",{src:r,alt:"\u{1FA99}",style:U(x({},n),{verticalAlign:"middle"})})});Ye="-ms-",Ys="-moz-",V="-webkit-",MC="comm",zp="rule",Kp="decl",c5="@import",UC="@keyframes",l5="@layer",u5=Math.abs,sc=String.fromCharCode,d5=qp.default;cc=1,ri=1,jC=0,ot=0,xe=0,oi="";C5=function(e,t,r){for(var n=0,i=0;n=i,i=Zt(),n===38&&i===12&&(t[r]=1),!Do(i);)yt();return Mo(e,ot)},A5=function(e,t){var r=-1,n=44;do switch(Do(n)){case 0:n===38&&Zt()===12&&(t[r]=1),e[r]+=C5(ot-1,t,r);break;case 2:e[r]+=Hs(n);break;case 4:if(n===44){e[++r]=Zt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=sc(n)}while(n=yt());return e},x5=function(e,t){return BC(A5(GC(e),t))},Jk=new Dp.default,P5=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&&!Jk.get(r))&&!n){Jk.set(e,!0);for(var i=[],o=x5(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]}}},T5=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};R5=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Kp:e.return=JC(e.value,e.length);break;case UC:return Zn([Io(e,{value:W(e.value,"@","@"+V)})],n);case zp:if(e.length)return m5(e.props,function(i){switch(f5(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zn([Io(e,{props:[W(i,/:(read-\w+)/,":"+Ys+"$1")]})],n);case"::placeholder":return Zn([Io(e,{props:[W(i,/:(plac\w+)/,":"+V+"input-$1")]}),Io(e,{props:[W(i,/:(plac\w+)/,":"+Ys+"$1")]}),Io(e,{props:[W(i,/:(plac\w+)/,Ye+"input-$1")]})],n)}return""})}},O5=[R5],N5=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Ne.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,gr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||O5,i={},o,a=[];o=e.container||document.head,(0,Ne.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(m)});var s,c=[P5,T5];{var l,d=[I5,k5(function(m){l.insert(m)})],u=E5((0,Qs.default)(c).call(c,n,d)),p=function(m){return Zn(w5(m),u)};s=function(m,g,b,v){l=b,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new oC({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};D5=function(e){var t=N5(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=Gr(s,t.registered,void 0);return rc(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=Gr(s,t.registered),d="animation-"+l.name;return Hk(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=Gr(s,t.registered);Hk(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return bp(t.registered,r,q5(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Ne.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,_p.default)(Ro).call(Ro,null,t.registered),merge:(0,_p.default)(bp).call(bp,null,t.registered,r)}},q5=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,Co.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},L5=D5({key:"css"}),M5=L5.css,U5=(e,t)=>{var a;let r=x({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 _("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 LC.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(_("span",{style:r,children:d}))}n.push(l(s,t)),i=c+s[0].length}else{let d=e.substring(i);n.push(_("span",{style:r,children:d}));break}}let o=M5`
|
|
552
|
+
`}),tH={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()},rH=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:c}=li(),l=tH[t];return _("div",{style:{paddingTop:"80px"},children:_("section",{style:`${Ft.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[_(Q5,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),_("div",{style:Ft.header.styles,children:_("button",{style:`${Ft.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:_(Kp,{})})}),_("div",{style:Ft.introduct.styles,children:[s?_("span",{style:Ft.introductSubTitle.styles,children:c("loginGuide.instead")}):null,_("span",{style:Ft.introductTitle.styles,children:_(Op,{children:c("loginGuide.introduct"),values:{coin:_("img",{src:l,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),_("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:_("section",{style:`${Ft.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[_("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[_("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:_(eH,{children:_(Op,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:c("loginGuide.tips"),values:{coin:_(Ge,{children:[_("img",{src:l,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),_("button",{style:`${Ft.confirmButton.styles} ${Ft.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:_("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:c(n)})})]}),_("button",{style:`${Ft.cancelButton.styles} ${Ft.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:c(i)})]})})]})})},LC=e=>{let t=cc({title:"",content:_(K5,{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},qC=e=>{let t=cc({title:"",content:_(Y5,{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},MC=e=>{let t=cc({title:"",content:_(rH,{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},UC=new Map,zr=(e,t)=>{UC.set(e,t)};zr(/^\{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 _("div",{style:r,children:_("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[_("g",{clipPath:"url(#clip0_2247_16523)",children:_("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"})}),_("defs",{children:_("clipPath",{id:"clip0_2247_16523",children:_("rect",{width:"24",height:"24",fill:"white"})})})]})})});zr(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:OC;return _("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});zr(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:zp,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return _("img",{src:r,alt:"\u{1FA99}",style:F(T({},n),{verticalAlign:"middle"})})});nH=/^\{slot-i18n-(.+?)\}/,iH=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=li(),i=n(e,t);return _("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};zr(nH,(e,t)=>{var n;let r=e[1];return r?_(iH,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),_("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});oH=/^\{slot-i18ntran-(.+?)\}/,aH=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=li(),o=i(e),a=Object.entries(r).reduce((s,[c,l])=>(s[c]=l(t[c]),s),{});return _(Op,{children:o||n,values:T(T({},t),a)})},sH={coin:e=>_(Ge,{children:[_("img",{src:OC,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};zr(oH,(e,t)=>{var n,i;let r=e[1];return r?_(aH,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:sH,fallbackText:`[${r}]`}):_("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});cH="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";zr(/^\{slot-success\}/,(e,t)=>_("img",{src:cH,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));lH="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";zr(/^\{slot-error\}/,(e,t)=>_("img",{src:lH,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));uH="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=";zr(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=uH,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return _("img",{src:r,alt:"\u{1FA99}",style:F(T({},n),{verticalAlign:"middle"})})});Ze="-ms-",Zs="-moz-",K="-webkit-",FC="comm",Yp="rule",Qp="decl",dH="@import",jC="@keyframes",pH="@layer",fH=Math.abs,uc=String.fromCharCode,mH=Mp.default;dc=1,si=1,BC=0,lt=0,Te=0,ui="";PH=function(e,t,r){for(var n=0,i=0;n=i,i=tr(),n===38&&i===12&&(t[r]=1),!qo(i);)wt();return Fo(e,lt)},TH=function(e,t){var r=-1,n=44;do switch(qo(n)){case 0:n===38&&tr()===12&&(t[r]=1),e[r]+=PH(lt-1,t,r);break;case 2:e[r]+=Ws(n);break;case 4:if(n===44){e[++r]=tr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=uc(n)}while(n=wt());return e},RH=function(e,t){return HC(TH(JC(e),t))},$k=new qp.default,OH=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&&!$k.get(r))&&!n){$k.set(e,!0);for(var i=[],o=RH(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]}}},NH=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};DH=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Qp:e.return=$C(e.value,e.length);break;case jC:return ii([ko(e,{value:Y(e.value,"@","@"+K)})],n);case Yp:if(e.length)return vH(e.props,function(i){switch(gH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ii([ko(e,{props:[Y(i,/:(read-\w+)/,":"+Zs+"$1")]})],n);case"::placeholder":return ii([ko(e,{props:[Y(i,/:(plac\w+)/,":"+K+"input-$1")]}),ko(e,{props:[Y(i,/:(plac\w+)/,":"+Zs+"$1")]}),ko(e,{props:[Y(i,/:(plac\w+)/,Ze+"input-$1")]})],n)}return""})}},LH=[DH],qH=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Le.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,_r.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||LH,i={},o,a=[];o=e.container||document.head,(0,Le.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(m)});var s,c=[OH,NH];{var l,d=[CH,xH(function(m){l.insert(m)})],u=AH((0,ec.default)(c).call(c,n,d)),p=function(m){return ii(EH(m),u)};s=function(m,g,b,v){l=b,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new sC({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};MH=function(e){var t=qH(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=Wr(s,t.registered,void 0);return oc(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=Wr(s,t.registered),d="animation-"+l.name;return Vk(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=Wr(s,t.registered);Vk(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return wp(t.registered,r,UH(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Le.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,Sp.default)(No).call(No,null,t.registered),merge:(0,Sp.default)(wp).call(wp,null,t.registered,r)}},UH=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,xo.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},FH=MH({key:"css"}),jH=FH.css,GH=(e,t)=>{var a;let r=T({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 _("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 UC.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(_("span",{style:r,children:d}))}n.push(l(s,t)),i=c+s[0].length}else{let d=e.substring(i);n.push(_("span",{style:r,children:d}));break}}let o=jH`
|
|
553
553
|
display: 'flex',
|
|
554
554
|
alignItems: 'flex-start',
|
|
555
555
|
gap: '4px',
|
|
@@ -560,7 +560,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
560
560
|
fontWeight: 600,
|
|
561
561
|
lineHeight: '18px',
|
|
562
562
|
width: 'max-content'
|
|
563
|
-
`;return n.length===1?n[0]:_("div",{className:o,children:n})},
|
|
563
|
+
`;return n.length===1?n[0]:_("div",{className:o,children:n})},BH=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=Zt(!0);vn(()=>{let d=setTimeout(()=>{s(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(d)},[r,n]);let c=br(()=>{let d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,d)},[]),l=L`
|
|
564
564
|
position: fixed;
|
|
565
565
|
left: 50%;
|
|
566
566
|
padding: 10px 16px;
|
|
@@ -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 _("div",{className:`toast toast-${t}`,style:l.styles,children:e})},
|
|
613
|
+
`;return _("div",{className:`toast toast-${t}`,style:l.styles,children:e})},JH=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),Wk=Math.max(20,JH),zk=12,VC=[],WC=[];Sr=(e,t)=>y(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield jk.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"?VC:WC;s.push(o);let c=GH(e,t),l=CC(),d=SC[l].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),Kk(a),jk.release()}setTimeout(()=>Kk(a),0),Lr(_(_C,{value:n,children:_(EC,{definition:d,children:_(BH,{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)}),Yk={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"}},HH=`
|
|
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
|
-
`,B5=()=>_("div",{style:zk.container,children:[_("style",{children:G5}),_("div",{style:zk.spinner})]});DQ=pn()});function VC(){return y(this,null,function*(){if(Qp)return Qp;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 Z(t);return Qp=r,r})}function WC(){return y(this,null,function*(){let e=new nt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(Xp)return e.resolve(!0),e.promise;let t=yield VC();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Xp=!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",x({eventType:J.View},o));let a=PC({games:r.games,title:n,buttons:i,onClose:s=>{var c;switch(Xp=!1,s.type){case"quit":j("RecommendedGuide",{eventType:J.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":j("RecommendedGuide",x({eventType:J.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((c=s.data)!=null&&c.game){let l=s.data.game;J5(l),j("GameItem",{eventType:J.Click,gameId:l.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:j("RecommendedGuide",x({eventType:J.Hide},o)),e.resolve(!0);break}}});return e.promise})}var Qp,J5,Xp,zC=C(()=>{"use strict";B();ce();R();er();pt();kt();Qp=null;VC();J5=e=>{var a;let{data:t}=F("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()}`;F("openSchemaSync",{schema:o})},Xp=!1});function $5(e){let t=x(x({},H5),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:w,containerTransition:E,iframeTransition:A}=p();ae=document.createElement("div"),ae.id="jolibox-modal-overlay",ae.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:${w}; opacity:0; visibility:hidden;`,X=document.createElement("div"),X.id="jolibox-modal-container",X.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:${E};`;let P=document.createElement("div");P.id="jolibox-modal-loading",P.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 T=document.createElement("style");T.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(T);let k=document.createElement("div");if(k.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",xt=document.createElement("iframe"),xt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${A};`,xt.src=r,xt.onload=()=>{P.parentNode&&P.parentNode.removeChild(P),xt.style.opacity="1",g(),c==null||c(),he.emit("onModalIframeLoaded",{url:r})},k.appendChild(xt),k.appendChild(P),X.appendChild(k),i){let G=document.createElement("div");G.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;",G.innerHTML="\u2715",G.onclick=v,X.appendChild(G)}ae.appendChild(X),document.body.appendChild(ae),ae.addEventListener("click",function(G){G.target===ae&&v()}),o&&b()}function g(){!ae||!X||u||(ae.style.visibility="visible",a?requestAnimationFrame(()=>{ae&&(ae.style.opacity="1"),X&&(X.style.transform="translateY(0)"),u=!0}):(ae&&(ae.style.opacity="1"),X&&(X.style.transform="translateY(0)"),u=!0),F("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function b(){if(!X)return;let w=P=>{l=P.touches[0].clientY},E=P=>{if(!u)return;d=P.touches[0].clientY;let T=d-l;T>0&&(X&&(X.style.transition="none",X.style.transform=`translateY(${T}px)`),P.preventDefault())},A=()=>{!u||!X||(X.style.transition=a?"transform 0.3s ease":"none",d-l>80?v():X.style.transform="translateY(0)")};X.addEventListener("touchstart",w),X.addEventListener("touchmove",E),X.addEventListener("touchend",A)}function v(){!ae||!X||!u||(a?(X.style.transform="translateY(100%)",ae.style.opacity="0"):ae.style.visibility="hidden",u=!1,F("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{ae&&(ae.remove(),ae=null,X=null,xt=null,s==null||s(),he.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function KC(){return window.joliboxUI=U(x({},window.joliboxUI),{createIframeModal:$5}),()=>{window.joliboxUI=void 0,ae&&ae.parentNode&&ae.parentNode.removeChild(ae),X&&X.parentNode&&X.parentNode.removeChild(X),xt&&xt.parentNode&&xt.parentNode.removeChild(xt),ae=null,X=null,xt=null}}var H5,ae,X,xt,YC=C(()=>{"use strict";ce();B();R();H5={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ae=null,X=null,xt=null});var eA={};Fm(eA,{config:()=>r3});function W5(){Fa.on("isAdShowing",e=>{pc=e,xr(pc)&&F("updateContainerConfigSync",{displayCapsuleButton:!pc,webviewId:S.webviewId})})}function z5(){he.on("onInterceptSystemExit",({intercept:e})=>{QC=e})}function K5(){he.on("onInterceptBackPress",({intercept:e})=>{V5=e}),Re("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;ZC(t),he.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function Y5(){he.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),j("onDocumentReady",{start_timestamp:mc,timestamp:Date.now()})})}function Q5(){Re("onI18nChanged",({language:e})=>{he.emit("onI18nChanged",{i18n:e})})}function X5(e){S.mpType==="game"&&Ot.start(e)}function Z5(){Re("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),he.emit("LifecycleEvent.onReady",x({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),j("joliboxServiceReady",{start_timestamp:mc,timestamp:Date.now()}),X5(t),IC(()=>S.language)}),Re("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;ZC(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function e3(){let e=()=>{j("onBeforeExit",{timestamp:Date.now()}),uc==null||uc(),dc==null||dc(),Ot.close(Date.now()-mc)},t=()=>pc||QC;It.onDoExit(()=>y(this,null,function*(){return t()?!0:xr(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):fc!=null&&fc.canShowRecommended&&!XC&&(yield WC())?!0:(e(),!1)})),It.onDoBackPress(()=>y(this,null,function*(){return!!t()}))}function t3(){return y(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield Z(e);t&&(fc=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function r3(){mc=Date.now(),Z5(),W5(),z5(),K5(),e3(),Y5(),Q5(),t3(),dc=KC(),uc=pg()}var uc,dc,mc,pc,fc,QC,V5,XC,ZC,tA=C(()=>{"use strict";ce();B();R();kt();fg();ou();zC();pt();er();YC();pc=!1,fc=null,QC=!1,V5=!1,XC=!1,ZC=e=>{xr(e)&&(XC=e)};It.onReady(()=>{})});var rA,n3,i3,o3,a3,nA=C(()=>{"use strict";R();Ve();ce();B();rA=Y(),n3="env",i3="getSystemInfoSync",o3=H(i3,{implement:()=>{var r;let e=F("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}}}}),a3=H(n3,{implement:()=>{var t;let e=F("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});rA.registerCommand("API.getSystemInfoSync",o3);rA.registerCommand("API.env",a3);M("env",{version:"1.0.0"});M("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var iA=h(Zp=>{"use strict";R();Ve();dt();ce();kt();B();var s3="exitGame",c3="onReady",l3="onJoliboxShow",u3="onJoliboxHide",hc=Y(),gc=ga(_e),d3=ne(s3,{paramsSchema:I.tuple(I.function(),I.boolean().optional().default(!1)),implement:(e,t=!1)=>y(Zp,null,function*(){gc(e).call(Zp),xr(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&ch("onRetentionResult",{shouldStay:t},S.from,!0),t||S.setDoExitDirectly(),yield me("exitAppAsync")})}),p3=H(l3,{paramsSchema:I.tuple(I.function()),implement(e){let t=gc(e);Re("onJoliboxEnterForeground",()=>{t.call(this),Fi.emit("visible",!0)})}}),f3=H(u3,{paramsSchema:I.tuple(I.function()),implement(e){let t=gc(e);Re("onJoliboxEnterBackground",()=>{t.call(this),Fi.emit("visible",!1)})}}),m3=H(c3,{paramsSchema:I.tuple(I.function()),implement(e){let t=gc(e);he.on("LifecycleEvent.onReady",r=>{t(r)})}});hc.registerCommand("LifecycleSDK.exit",d3);hc.registerCommand("LifecycleSDK.onReady",m3);hc.registerCommand("LifecycleSDK.onJoliboxShow",p3);hc.registerCommand("LifecycleSDK.onJoliboxHide",f3);M("lifeCycle.exit",{version:"1.0.0"});M("lifeCycle.onReady",{version:"1.0.0"});M("lifeCycle.onJoliboxShow",{version:"1.0.0"});M("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function oA(e){let t={};if(!Yr(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 aA(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 sA(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function cA(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!Yr(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 lA=C(()=>{"use strict";R()});var h3,g3,ef,tf,uA,v3,y3,b3,dA=C(()=>{"use strict";Xr();Yl();Ve();lA();R();dt();B();h3=15,g3=ya("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),ef=0,tf=[],uA=ga(_e),v3=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},y3=e=>{let t=new nt,r=()=>{};return H("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=()=>y(this,null,function*(){var s,c,l;let a=uA(i.fail);try{if(ef+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=oA((s=i.headers)!=null?s:{}),b=aA(i.method),v=sA(i.timeout),w=cA(i.url,b,d),E=uA(i.success),A=Object.assign({},i,{method:b,header:m?void 0:g,data:b==="GET"||b==="HEAD"?void 0:d,enableCache:f,query:(c=i.query)!=null?c:{},dataType:u,responseType:p,appendHostCookie:m});v&&(A.timeout=v);let P=g3(w,A);{let{response:T}=yield P,{code:k,data:G,message:fe}=T;if(G&&typeof G=="object"&&"status"in G&&G.status!==200)throw Et({code:G.status||-1,msg:`request:fail status ${G.status}`});t.resolve({code:k!=null?k:"SUCCESS",data:G,message:fe!=null?fe:"request:ok"}),E({code:"SUCCESS",message:"request:ok",data:G})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{ef-=1,(l=tf.shift())==null||l()}});return ef>=h3?(r=()=>{v3(tf,a=>a===o)},tf.push(o)):o(),t.promise}})(e),{abort(){t.reject(Et({code:-1,msg:"request:fail abort"})),r()}}},b3=Y();b3.registerCommand("HttpSDK.request",y3);M("request",{version:"1.0.0"})});var _3,w3,S3,rf,pA=C(()=>{"use strict";R();ce();Ve();_3=H("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)),F("showKeyboardSync",U(x({},e),{defaultValue:r,maxLength:t}))}});M("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"}});w3=H("updateKeyboard",{paramsSchema:I.tuple(I.object({value:I.string()})),implement(e){F("updateKeyboardSync",e)}});M("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});S3=H("hideKeyboard",{implement(){F("hideKeyboardSync")}});M("keyboard.hideKeyboard",{version:"1.0.0"});rf=Y();rf.registerCommand("KeyboardSDK.showKeyboard",_3);rf.registerCommand("KeyboardSDK.updateKeyboard",w3);rf.registerCommand("KeyboardSDK.hideKeyboard",S3)});var fA=h(vc=>{"use strict";R();Ve();kt();var nf=Y(),I3=ne("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=>y(vc,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(Ot.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(Ot.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),E3=ne("gamePlayEnded",{paramsSchema:I.tuple(I.object({duration:I.number().optional(),rating:I.number().optional(),score:I.number(),variation:I.string().optional()})),implement:e=>y(vc,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(Ot.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(Ot.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),k3=ne("levelUpgrade",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),name:I.string().optional()})),implement:r=>y(vc,[r],function*({levelId:e,name:t}){let n=[];n.push(Ot.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(Ot.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});nf.registerCommand("TaskTrackerSDK.levelFinished",I3);nf.registerCommand("TaskTrackerSDK.gamePlayEnded",E3);nf.registerCommand("TaskTrackerSDK.levelUpgrade",k3);M("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"}}});M("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});M("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var of,af,sf,C3,mA,yc=C(()=>{"use strict";B();ce();Ve();R();Xr();M("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"}});M("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0",isLogin:"1.0.0",isSubUser:"1.2.9"}});of=new Map;Re("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i,appAccountToken:o})=>{let a=of.get(r);a&&(a.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i,appAccountToken:o}),of.delete(r))});af=(e,t=!1)=>y(void 0,null,function*(){var m,g,b;let{data:{isLogin:r}}=yield me("checkLoginAsync");if(r)return{isLogin:!0,token:(m=S.hostUserInfo)==null?void 0:m.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=F("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw Et({code:-1,msg:"login failed"});let s=new nt;of.set(a,s);let c=yield s.promise,l=F("envSync"),d=(b=(g=l==null?void 0:l.data)==null?void 0:g.hostUserInfo)==null?void 0:b.isSubUser;S.onEnvConfigChanged({hostUserInfo:U(x({},c),{isSubUser:d})});let v=c,{extra:u,appAccountToken:p}=v,f=$e(v,["extra","appAccountToken"]);return he.emit("onLoginComplete",f),t?c:f}),sf=ne("login",{paramsSchema:I.tuple(I.object({skipLogin:I.boolean().optional(),triggerFrom:I.string().optional()}).optional()),implement(e){return y(this,null,function*(){return yield af(e!=null?e:{})})}}),C3=ne("checkSession",{implement(){return y(this,null,function*(){var r;let{data:{isLogin:e}}=yield me("checkLoginAsync"),t=(r=S.hostUserInfo)==null?void 0:r.isSubUser;return{isLogin:e,isSubUser:t}})}}),mA=Y();mA.registerCommand("API.login",sf);mA.registerCommand("API.checkSession",C3)});var hA,gA=C(()=>{"use strict";hA=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 fn(e){return t=>y(this,null,function*(){var c;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield Pr(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=vA(i.data),a=hA(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 mn(e){return()=>y(this,null,function*(){var i;let t=Date.now(),r=yield Pr(e),n=vA((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield mt(e,JSON.stringify(n))})}var vA,yA,bA,_A,wA,SA,IA,EA,kA,CA,AA,xA,PA,TA,RA,Uo=C(()=>{"use strict";Ui();gA();vA=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};yA=fn("joli_coin_use_modal_frequency"),bA=fn("joli_coin_payment_frequency"),_A=fn("joli_coin_unlogin_modal_frequency"),wA=fn("joli_gem_use_modal_frequency"),SA=fn("joli_gem_payment_frequency"),IA=fn("joli_gem_unlogin_modal_frequency"),EA=fn("subscription_frequency");kA=mn("joli_coin_use_modal_frequency"),CA=mn("joli_coin_payment_frequency"),AA=mn("joli_coin_unlogin_modal_frequency"),xA=mn("joli_gem_use_modal_frequency"),PA=mn("joli_gem_payment_frequency"),TA=mn("joli_gem_unlogin_modal_frequency"),RA=mn("subscription_frequency")});var cf,bc,lf=C(()=>{"use strict";pt();cf=Promise.resolve(),bc=(e,t)=>y(void 0,null,function*(){cf=cf.then(()=>y(void 0,null,function*(){yield Z(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield cf})});var _c,wc,Mt,Sc,hn,Ut,yr,Ic,Ec,gn,ai,A3,q,br,_r,Le=C(()=>{"use strict";R();_c="UNLOCK_OPTIONS_CHANGED",wc="INVOKE_PAYMENT",Mt="ON_PAYMENT_RESULT",Sc="ON_USE_MODAL_EVENT",hn="ON_USE_MODAL_RESULT",Ut="ON_USE_MODAL_FREQUENCY",yr="ON_USE_UNLOGIN_MODAL_EVENT",Ic="INVOKE_UNLOGIN_MODAL_EVENT",Ec="INVOKE_SUBSCRIPTION_EVENT",gn="ON_USE_SUBSCRIPTION_RESULT",ai=new Jt,A3=()=>({on:ai.on.bind(ai),off:ai.off.bind(ai),emit:ai.emit.bind(ai)}),q=A3(),br={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},joinMember:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},_r={show:!0,minInterval:8*60*60*1e3}});function Me(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=x(x({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var tr=C(()=>{"use strict"});var DA=h(uf=>{"use strict";Uo();lf();Le();Le();er();kt();R();tr();var x3={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:yA,frequencyUpdater:kA,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:wA,frequencyUpdater:xA,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},OA=pn(),NA=Me(q,Ut);NA.getData();q.on(Sc,(e,t)=>y(uf,null,function*(){let r=t.currency,n=x3[r];if(e.includes("ADS-")){yield OA.show({duration:3e3});let c=yield NA.getData(),{canShow:l,isFirst:d}=yield n.frequencyChecker(c.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,l,d),OA.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){q.emit(hn,{useModalResult:"CONFIRM"});return}if(!l){q.emit(hn,{useModalResult:"FAILED"});return}}j(n.trackEvents.popupShow,{eventType:J.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=NC({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{j(n.trackEvents.coinUnlock,{targetType:"game",eventType:J.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),q.emit(hn,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:c})=>{c==="FAILED"&&j(n.trackEvents.adUnlock,{targetType:"game",eventType:J.Click,currency:r}),q.emit(hn,{useModalResult:(c!=null?c:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:c=>y(uf,null,function*(){yield bc(c,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function qA(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return y(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 _e(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var LA=C(()=>{"use strict";dt()});var Fo=C(()=>{"use strict"});var P3,si,bt,T3,vn,kc=C(()=>{"use strict";Fo();R();B();pt();P3=()=>{let[e,t]=[ma,ha].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:si,createPaymentInternalError:bt}=P3(),T3=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",vn=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>y(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw si(n,1001);return yield this.pay()});this.cancelOrder=t=>y(this,null,function*(){var n,i;let{response:r}=yield Z(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw si((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(x({},this.generatePaymentContext()))),`${T3}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var pf,MA,UA=C(()=>{"use strict";pt();kc();Fo();pf=class extends vn{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>y(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return y(this,null,function*(){var n,i,o,a;try{let{response:s}=yield Z("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw si((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),bt((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},MA=()=>{let e=new Map;return t=>y(void 0,null,function*(){let r=e.get(t);return r||(r=new pf(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var FA,jA=C(()=>{"use strict";FA={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 ff,GA,mf,hf,R3,gf,BA=C(()=>{"use strict";pt();kc();Fo();ce();R();B();er();jA();ff=new Map;Re("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=ff.get(t);if(o){if(r==="SUCCESS")Jr("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&fa(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw bt(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=FA[r];a&&Jr(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}ff.delete(t)}});GA=e=>y(void 0,null,function*(){var n,i;let t=new nt,r;try{let o=yield me("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw bt("orderUUID is null",1002);ff.set(r,t)}catch(o){throw bt((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),mf=class extends vn{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=()=>y(this,null,function*(){return yield GA({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return y(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},hf=class extends vn{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=()=>y(this,null,function*(){return yield GA({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return y(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield Z("/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 bt("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"}})}},R3={android:mf,ios:hf},gf=()=>{let e=new Map;return t=>y(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=R3[S.platform];if(!s)throw bt("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 si(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var yn,vf=C(()=>{"use strict";LA();UA();BA();yn=qA();yn.registerPaymentHandler("JOLI_COIN",MA());yn.registerPaymentHandler("JOLI_COIN_IAP",gf());yn.registerPaymentHandler("JOLI_GEM_IAP",gf())});function JA(n,i){return y(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 mt(a,c),yield mt(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 Cc(n,i){return y(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 Pr(s),{data:u}=yield Pr(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(()=>y(this,null,function*(){try{console.log("[Cache] Background updating cache for key:",e);let m=yield t(),g=Date.now();yield mt(s,m),yield mt(c,g.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 mt(s,null),yield mt(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 mt(s,d),yield mt(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 yf=C(()=>{"use strict";Ui()});function O3(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=>!Ni(r.totalAmountStr))}var Hr,bf,rr,Pc,_f,wf,Ac,xc,HA,Tc,Sf=C(()=>{"use strict";vf();R();ce();pt();R();yf();Hr=class Hr{execute(t,r){return y(this,null,function*(){var a,s,c;let{response:n}=yield Z(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&&O3(i,l)}if(i.paymentChoices.length===0)throw new Error("paymentChoices is empty");return i})}getNativePriceData(t){return y(this,null,function*(){let r=t.sort().join(",");return Cc(r,()=>y(this,null,function*(){try{let{data:n}=yield me("requestProductDetailsAsync",{appStoreProductIds:t});return n&&(Hr.nativePriceCache.set(r,n),Hr.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[PaymentService] Failed to fetch native product details:",n),n}}),{cacheDuration:Hr.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")}};Hr.nativePriceCache=new Map,Hr.NATIVE_PRICE_CACHE_DURATION=10*60*1e3,Hr.nativePriceCacheTimestamp=new Map;bf=Hr,rr=class rr extends Rt{constructor(r,n){super(new bf,{duration:10*60*1e3,timeout:1e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return y(this,null,function*(){let r=rr.failureCounters.get(this.apiEndpoint)||0;if(r>=rr.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${rr.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return rr.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw rr.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${rr.MAX_FAILURE_COUNT+1}) for ${this.apiEndpoint}:`,n),n}})}purchase(r){return y(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 yn.invokePayment(this.paymentType==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}getProductsInfoWithBalance(){return y(this,null,function*(){return this.request(this.apiEndpoint)})}refreshProductsInfo(){return y(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}static resetFailureCounters(){this.failureCounters.clear()}static getFailureCount(r){return this.failureCounters.get(r)||0}};rr.failureCounters=new Map,rr.MAX_FAILURE_COUNT=2;Pc=rr,_f=class extends Pc{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},wf=class extends Pc{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},Ac=null,xc=null,HA=()=>Ac||(Ac=new _f,Ac),Tc=()=>xc||(xc=new wf,xc)});var WA=h(Rc=>{"use strict";Le();er();B();yc();R();Uo();vf();er();Ve();kt();lf();tr();Sf();var N3={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:bA,frequencyUpdater:CA,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:SA,frequencyUpdater:PA,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},ci=pn(),$A=HA(),VA=Tc(),D3=Me(q,Ut);q.on(wc,(e,t)=>y(Rc,null,function*(){var r,n,i;try{let o=t.currency,a=N3[o];if(!ft("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{q.emit(Mt,{paymentResult:"FAILED",currency:o})},0);return}if(e.includes("ADS-")){yield ci.show({duration:3e3});let d=yield D3.getData(),{canShow:u}=yield a.frequencyChecker(d.joliCoinUseAndCharge[a.frequencyConfigKey]);if(console.log(`${o} payment show by frequency`,u),ci.hide(),!u){q.emit(Mt,{paymentResult:"FAILED",currency:o});return}console.log("show by frequency")}yield ci.show({duration:3e3});let s=o==="JOLI_COIN"?$A:VA,c=yield s.getProductsInfo();if(ci.hide(),!c||!((r=c.paymentChoices)!=null&&r.length)){q.emit(Mt,{paymentResult:"FAILED",currency:o});return}j(a.trackEvents.modalShow,{targetType:"game",eventType:J.View,currency:o});let l=DC({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:o,paymentChoices:(i=(n=c.paymentChoices)==null?void 0:n.map(d=>{var u;return U(x({},d),{totalAmountStr:(u=d.totalAmountStr)!=null?u:""})}))!=null?i:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:d=>y(Rc,null,function*(){var f,m,g,b,v,w,E,A;if(j(a.trackEvents.payEnsure,{targetType:"game",eventType:J.Click,payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(m=(f=c.paymentChoices.find(P=>P.productId===d))==null?void 0:f.totalAmountStr)!=null?m:""}),!((g=S.hostUserInfo)!=null&&g.isLogin)){let{data:P}=yield sf({skipLogin:!0});if(!(P!=null&&P.isLogin)){console.log("login failed");return}let T=yield s.refreshProductsInfo();if(((b=T==null?void 0:T.balance)!=null?b:0)>=t.quantity){q.emit(Mt,{paymentResult:"SUCCESS",currency:o}),l.destroy();return}}console.log("invokeNativePayment",d);let u=(w=(v=c==null?void 0:c.paymentChoices)==null?void 0:v.find(P=>P.productId===d))==null?void 0:w.appStoreProductId;if(!u){q.emit(Mt,{paymentResult:"FAILED",currency:o}),l.destroy();return}yield ci.show({duration:3e3});let{code:p}=yield yn.invokePayment(a.paymentType,{productId:d,appStoreProductId:u});if(ci.hide(),j(a.trackEvents.payResult,{eventType:J.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(A=(E=c.paymentChoices.find(P=>P.productId===d))==null?void 0:E.totalAmountStr)!=null?A:"",payResult:p}),console.log("payment result",p),p!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}q.emit(Mt,{paymentResult:"SUCCESS",currency:o}),l.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:d})=>{q.emit(Mt,{paymentResult:(d!=null?d:"")==="CANCEL"?"CANCEL":"FAILED",currency:o}),j(a.trackEvents.adUnlock,{targetType:"game",eventType:J.Click,currency:o}),l.destroy()}},onEnableDeductChanged:d=>y(Rc,null,function*(){yield bc(d,a.apiEndpointAutoDeduct)})},onSelect:d=>{var u,p;j(a.trackEvents.orderClick,{targetType:"game",eventType:J.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),q.emit(Mt,{paymentResult:"FAILED",currency:t.currency})}}));$A.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});VA.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var KA=h(Oc=>{"use strict";Le();tr();Uo();pt();dt();R();yc();er();kt();var q3={JOLI_COIN:{frequencyChecker:_A,frequencyUpdater:AA,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:IA,frequencyUpdater:TA,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},zA=Me(q,Ut);zA.getData();q.on(Ic,(e,t)=>y(Oc,null,function*(){var r;try{let n=t.currency,i=q3[n];if(e.includes("ADS-")){let s=yield zA.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){q.emit(yr,{result:"NOT_SUPPORT"});return}let{canShow:c}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,c),!c){q.emit(yr,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield L3())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),q.emit(yr,{result:"NOT_SUPPORT"});return}j(i.trackEvents.modalExpose,{eventType:J.Expose,currency:n},J.Expose);let a=qC({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>y(Oc,null,function*(){var d,u,p,f;j(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:J.Click,currency:n},J.Click);let{isLogin:s,extra:c,isFirstLogin:l}=yield af({},!0);if(!s){console.log("login failed");return}if(j(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:l,eventType:J.Click,currency:n},J.Click),l&&((d=c==null?void 0:c.firstLogin)!=null&&d.reward)){let{rewardValue:m}=c.firstLogin.reward;Jr(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}q.emit(yr,{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:J.Hide,currency:n},J.Hide);let c=s==="CANCEL"?"click_close":"click_watch_ads",l=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;j(l,{type:c,eventType:J.Click,currency:n},J.Click),q.emit(yr,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){_e(new Ih(n)),q.emit(yr,{result:"FAILED"})}}));var L3=()=>y(Oc,null,function*(){var t;let{response:e}=yield Z("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function M3(){let e=new Map;return{registerSubscriptionHandler(r,n){e.set(r,n)},invokeSubscription(r,...n){return y(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 _e(o),{code:"FAILED",message:`[joliboxSDK]: subscription error ${o}`}}})}}}var jo,If=C(()=>{"use strict";dt();jo=M3()});var bn,Nc=C(()=>{"use strict";bn={PlaceOrderFailed:1001,CancelOrderFailed:1002,SubscriptionFailed:1003,InvalidPlan:1004}});var U3,YA,Dc,F3,Go,Ef=C(()=>{"use strict";Nc();R();B();U3=()=>{let[e,t]=[ma,ha].map(r=>(n,i,o)=>new r(n,i,o));return{createSubscriptionError:e,createSubscriptionInternalError:t}},{createSubscriptionError:YA,createSubscriptionInternalError:Dc}=U3(),F3=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Go=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startSubscription=t=>y(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw YA(n,bn.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(x({},this.generateSubscriptionContext()))),`${F3}/subscription/callback?${t.toString()}`};this.createSubscriptionError=YA;this.createSubscriptionInternalError=Dc}setOrderId(t){this._orderId=t}setOrderStatus(t){this._orderStatus=t}get orderId(){return this._orderId}get status(){return this._orderStatus}}});function j3(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=>!Ni(r.amountStr))}var _n,Lc,kf,Cf,qc,QA,Af=C(()=>{"use strict";R();ce();pt();R();yf();If();ce();Ef();Nc();_n=class _n{static getNativePriceCache(t){var n;let r=t.sort().join(",");return(n=this.nativePriceCache.get(r))!=null?n:{}}execute(t,r){return y(this,null,function*(){var a,s;let{response:n}=yield Z(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&&j3(i,c)}if(i.length===0)throw new Error("subscription tiers is empty");return i})}requestNativeSubscriptionPlans(t,r){return y(this,null,function*(){try{let{data:n}=yield me("requestSubscriptionPlansAsync",{appStoreProductIds:t,type:"game"});return n&&(_n.nativePriceCache.set(r,n),_n.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 y(this,null,function*(){let n=t.sort().join(",");return(r?JA:Cc)(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 y(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")}};_n.nativePriceCache=new Map,_n.NATIVE_PRICE_CACHE_DURATION=1*24*60*60*1e3,_n.nativePriceCacheTimestamp=new Map;Lc=_n,kf=class extends Rt{constructor(r){super(new Lc,{duration:30*60*1e3,timeout:3e3});this.apiEndpoint=r;this.pendingSubscriptions=new Map;this.subInfoCacheKeys=[];this.listenSubscriptionPanelStateChange()}getSubInfo(){return y(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 y(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}updateNativePriceCache(r){return y(this,null,function*(){yield this.requestAdapter.updateNativePriceCache(r)})}updateAllNativePriceCache(){return y(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 y(this,null,function*(){var i;console.log("[SubscriptionService] subscribe params",jo);let n=yield jo.invokeSubscription("SUB_APP",{productId:r.nativeProductId,appStoreProductId:r.appStoreProductId,planId:r.basePlanId});return{result:n.code,subPlanId:(i=n.data)==null?void 0:i.subPlanId,message:n.message}})}invokeSubscriptionPanel(){return y(this,null,function*(){var i,o;let r=new nt,n;try{if(console.log("[invokeSubscriptionPanel] requestSubscriptionSync params"),n=(i=F("invokeSubscriptionPanelSync",{type:"game"}).data)==null?void 0:i.subUUID,!n)throw Dc("orderUUID is null",bn.SubscriptionFailed);this.pendingSubscriptions.set(n,r)}catch(a){throw Dc((o=JSON.stringify(a))!=null?o:"subscription panel failed",bn.SubscriptionFailed)}return r.promise})}getTierByProductId(r){return y(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=Lc.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(){Re("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"}}))})}},Cf=class extends kf{constructor(){super("/api/subs/pricing")}},qc=null,QA=()=>qc||(qc=new Cf,qc)});var XA=C(()=>{"use strict"});function ex(){let e=new Map;return t=>y(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=G3[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 xf,ZA,Pf,Tf,G3,tx=C(()=>{"use strict";B();Ef();Fo();kc();R();ce();R();Nc();Re("onGlobalSubscriptionStateChange",e=>{let{status:t,orderResponse:r}=e;console.log("[onGlobalSubscriptionStateChange] data",e),t==="SUCCESS"&&(r!=null&&r.subPlanId||r!=null&&r.tickedId)&&S.onEnvConfigChanged({hostUserInfo:{isLogin:!0,isSubUser:!0}})});xf=new Map;Re("onSubscritptionStateChange",e=>{var o,a;let{subUUID:t,status:r,orderResponse:n}=e;console.log("[onSubscritptionStateChange] data",e);let i=xf.get(t);if(i){if(r==="SUCCESS")i.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{subPlanId:(o=n==null?void 0:n.subPlanId)!=null?o:n.tickedId}});else{if(r==="FAILED"&&fa(n==null?void 0:n.errNo)&&(n==null?void 0:n.errNo)!==0)throw bt(`subscription failed: ${n==null?void 0:n.errMsg}`,bn.SubscriptionFailed);i.resolve({code:r,message:(a=n==null?void 0:n.errMsg)!=null?a:"UNKNOWN_ERROR"})}xf.delete(t)}});ZA=e=>y(void 0,null,function*(){var n,i;let t=new nt,r;try{if(console.log("[internalSubscribe] requestSubscriptionSync params",e),r=(n=F("requestSubscriptionSync",x({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 bt("subUUID is null",1002);xf.set(r,t)}catch(o){throw bt((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Pf=class extends Go{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return y(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 y(this,null,function*(){return yield ZA(r)})}},Tf=class extends Go{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return y(this,null,function*(){var o,a;console.log("----start place order for iOS subscription----");let n=F("envSync"),i=(a=(o=n==null?void 0:n.data)==null?void 0:o.hostUserInfo)==null?void 0:a.appAccountToken;if(!i)throw bt("appAccountToken is null",1002);return this.subscriptionToken=i,{code:"SUCCESS",message:"placeorder sub-app success in native"}})}cancelOrder(r){return y(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 y(this,null,function*(){return yield ZA(U(x({},r),{appAccountToken:this.subscriptionToken}))})}},G3={android:Pf,ios:Tf}});var wn,Rf=C(()=>{"use strict";Af();XA();If();tx();Af();wn=QA();jo.registerSubscriptionHandler("SUB_APP",ex())});var ox=h(ix=>{"use strict";Uo();Le();tr();Ve();Rf();er();var B3={SUBSCRIPTION:{frequencyConfigKey:"joinMember",frequencyChecker:EA,frequencyUpdater:RA}},rx=pn(),nx=Me(q,Ut);nx.getData();q.on(Ec,e=>y(ix,null,function*(){let t=B3.SUBSCRIPTION;if(!ft("invokeSubscriptionPanelSync")){console.info("invokeSubscriptionPanelSync not supported"),setTimeout(()=>{q.emit(gn,{result:"FAILED"})},0);return}yield rx.show({duration:3e3});let r=yield nx.getData(),{canShow:n,isFirst:i}=yield t.frequencyChecker(r.joliCoinUseAndCharge[t.frequencyConfigKey]);if(rx.hide(),!n){q.emit(gn,{result:"FAILED"});return}let{data:o,code:a}=yield wn.invokeSubscriptionPanel();a=="SUCCESS"&&(o!=null&&o.subPlanId)?q.emit(gn,{result:"SUCCESS"}):q.emit(gn,{result:"FAILED"}),yield t.frequencyUpdater()}))});var Lte,Mte,Ute,Fte,ax=C(()=>{"use strict";Lte=re(DA()),Mte=re(WA()),Ute=re(KA()),Fte=re(ox())});function e4(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function t4(e){return typeof e=="string"}function r4(e){return typeof e=="undefined"}function n4(e){return r4(e)||e===null}function i4(e){return typeof e=="function"}function Lx(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 Bo(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function jc(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 d4(e){let t=e.location?jc(e.location,px):null,r=e.target?jc(e.target,px):null;return jc(Q3(Y3({},e),{location:t,target:r}),l4)}function p4(e){let t=e.events.map(n=>d4(n)),r=jc(e.device,u4);return[e.protocolVersion,t,r,e.project]}function f4(){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 y4(e){return new Promise(t=>jx(e)(t))}function jx(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 b4(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Wo(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 w4(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)S4(e[n],t[n])}function S4(e,t){if(t4(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(i4(t)){try{if(e instanceof t)return}catch(r){}if(!n4(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 at(e,t,r){return(t=I4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I4(e){var t=E4(e,"string");return typeof t=="symbol"?t:t+""}function E4(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 Mc(e,t,r){return(t=k4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k4(e){var t=C4(e,"string");return typeof t=="symbol"?t:t+""}function C4(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 Uc(e,t,r){return(t=A4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A4(e){var t=x4(e,"string");return typeof t=="symbol"?t:t+""}function x4(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 wr(e,t,r){return(t=P4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P4(e){var t=T4(e,"string");return typeof t=="symbol"?t:t+""}function T4(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 R4(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 O4(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 U4(e,t){return Je(e,0)^45?(((t<<2^Je(e,0))<<2^Je(e,1))<<2^Je(e,2))<<2^Je(e,3):0}function Jx(e){return e.trim()}function F4(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function Vf(e,t){return e.indexOf(t)}function Je(e,t){return e.charCodeAt(t)|0}function zo(e,t,r){return e.slice(t,r)}function nr(e){return e.length}function cm(e){return e.length}function Fc(e,t){return t.push(e),e}function j4(e,t){return e.map(t).join("")}function tl(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:el,column:mi,length:a,return:""}}function Ho(e,t){return M4(tl("",null,null,"",null,null,0),e,{length:-e.length},t)}function G4(){return Pe}function B4(){return Pe=lt>0?Je(hi,--lt):0,mi--,Pe===10&&(mi=1,el--),Pe}function wt(){return Pe=lt<Hx?Je(hi,lt++):0,mi++,Pe===10&&(mi=1,el++),Pe}function ir(){return Je(hi,lt)}function Gc(){return lt}function Yo(e,t){return zo(hi,e,t)}function Ko(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 $x(e){return el=mi=1,Hx=nr(hi=e),lt=0,[]}function Vx(e){return hi="",e}function Bc(e){return Jx(Yo(lt-1,Wf(e===91?e+2:e===40?e+1:e)))}function J4(e){for(;(Pe=ir())&&Pe<33;)wt();return Ko(e)>2||Ko(Pe)>3?"":" "}function H4(e,t){for(;--t&&wt()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return Yo(e,Gc()+(t<6&&ir()==32&&wt()==32))}function Wf(e){for(;wt();)switch(Pe){case e:return lt;case 34:case 39:e!==34&&e!==39&&Wf(Pe);break;case 40:e===41&&Wf(e);break;case 92:wt();break}return lt}function $4(e,t){for(;wt()&&e+Pe!==57&&!(e+Pe===84&&ir()===47););return"/*"+Yo(t,lt-1)+"*"+Zc(e===47?e:wt())}function V4(e){for(;!Ko(ir());)wt();return Yo(e,lt)}function W4(e){return Vx(Jc("",null,null,null,[""],e=$x(e),0,[0],e))}function Jc(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,g=1,b=1,v=1,w=0,E="",A=i,P=o,T=n,k=E;b;)switch(m=w,w=wt()){case 40:if(m!=108&&Je(k,u-1)==58){Vf(k+=K(Bc(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Bc(w);break;case 9:case 10:case 13:case 32:k+=J4(m);break;case 92:k+=H4(Gc()-1,7);continue;case 47:switch(ir()){case 42:case 47:Fc(z4($4(wt(),Gc()),t,r),c);break;default:k+="/"}break;case 123*g:s[l++]=nr(k)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:v==-1&&(k=K(k,/\f/g,"")),f>0&&nr(k)-u&&Fc(f>32?gx(k+";",n,r,u-1):gx(K(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(Fc(T=hx(k,t,r,l,d,i,s,E,A=[],P=[],u),o),w===123)if(d===0)Jc(k,t,T,T,A,o,u,s,P);else switch(p===99&&Je(k,3)===110?100:p){case 100:case 108:case 109:case 115:Jc(e,T,T,n&&Fc(hx(e,T,T,0,0,i,s,E,i,A=[],u),P),i,P,u,s,n?A:P);break;default:Jc(k,T,T,T,[""],P,0,s,P)}}l=d=f=0,g=v=1,E=k="",u=a;break;case 58:u=1+nr(k),f=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&B4()==125)continue}switch(k+=Zc(w),w*g){case 38:v=d>0?1:(k+="\f",-1);break;case 44:s[l++]=(nr(k)-1)*v,v=1;break;case 64:ir()===45&&(k+=Bc(wt())),p=ir(),d=u=nr(E=k+=V4(Gc())),w++;break;case 45:m===45&&nr(k)==2&&(g=0)}}return o}function hx(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=cm(p),m=0,g=0,b=0;m<n;++m)for(var v=0,w=zo(e,u+1,u=L4(g=a[m])),E=e;v<f;++v)(E=Jx(g>0?p[v]+" "+w:K(w,/&\f/g,p[v])))&&(c[b++]=E);return tl(e,t,r,i===0?am:s,c,l,d)}function z4(e,t,r){return tl(e,t,r,Gx,Zc(G4()),zo(e,2,-2),0)}function gx(e,t,r,n){return tl(e,t,r,sm,zo(e,0,n),zo(e,n+1,-1),n)}function fi(e,t){for(var r="",n=cm(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function K4(e,t,r,n){switch(e.type){case q4:if(e.children.length)break;case D4:case sm:return e.return=e.return||e.value;case Gx:return"";case Bx:return e.return=e.value+"{"+fi(e.children,n)+"}";case am:e.value=e.props.join(",")}return nr(r=fi(e.children,n))?e.return=e.value+"{"+r+"}":""}function Y4(e){var t=cm(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 Q4(e){return function(t){t.root||(t=t.return)&&e(t)}}function X4(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Wx(e,t){switch(U4(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+Wc+e+Xe+e+e;case 6828:case 4268:return z+e+Xe+e+e;case 6165:return z+e+Xe+"flex-"+e+e;case 5187:return z+e+K(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+Xe+"flex-$1$2")+e;case 5443:return z+e+Xe+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return z+e+Xe+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+Xe+K(e,"shrink","negative")+e;case 5292:return z+e+Xe+K(e,"basis","preferred-size")+e;case 6060:return z+"box-"+K(e,"-grow","")+z+e+Xe+K(e,"grow","positive")+e;case 4554:return z+K(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+Xe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return K(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(nr(e)-1-t>6)switch(Je(e,t+1)){case 109:if(Je(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+Wc+(Je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Vf(e,"stretch")?Wx(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Je(e,t+1)!==115)break;case 6444:switch(Je(e,nr(e)-3-(~Vf(e,"!important")&&10))){case 107:return K(e,":",":"+z)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(Je(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+Xe+"$2box$3")+e}break;case 5936:switch(Je(e,t+11)){case 114:return z+e+Xe+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+Xe+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+Xe+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+Xe+e+e}return e}function s$(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 zc(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 $r={name:i.name,styles:i.styles,next:$r},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)$r={name:a.name,styles:a.styles,next:$r},a=a.next;var s=o.styles+";";return s}return d$(e,t,r)}}var c=r;if(t==null)return c;var l=t[c];return l!==void 0?l:c}function d$(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=zc(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]+"}":yx(s)&&(n+=Nf(o)+":"+bx(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++)yx(a[c])&&(n+=Nf(o)+":"+bx(o,a[c])+";");else{var l=zc(e,t,a);switch(o){case"animation":case"animationName":{n+=Nf(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function Df(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="";$r=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=zc(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=zc(r,t,e[s]),n){var c=o;i+=c[s]}_x.lastIndex=0;for(var l="",d;(d=_x.exec(i))!==null;)l+="-"+d[1];var u=s$(i)+l;return{name:u,styles:i,next:$r}}function Kx(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function wx(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Sx(e,t,r){var n=[],i=Kx(e,n,r);return n.length<2?r:i+t(n)}function v$(e,t){qe.__h&&qe.__h(_t,e,Ex||t),Ex=0;var r=_t.__H||(_t.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Qx(e,t){var r=v$(zf++,7);return _$(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function y$(){for(var e;e=Yx.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Hc),e.__H.__h.forEach(Kf),e.__H.__h=[]}catch(t){e.__H.__h=[],qe.__e(t,e.__v)}}function b$(e){var t,r=function(){clearTimeout(n),Rx&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Rx&&(t=requestAnimationFrame(r))}function Hc(e){var t=_t,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),_t=t}function Kf(e){var t=_t;e.__c=e.__(),_t=t}function _$(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function rl(){if(Vr>1)Vr--;else{for(var e,t=!1;$o!==void 0;){var r=$o;for($o=void 0,Yf++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Zx(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Yf=0,Vr--,t)throw e}}function ct(e){if(Vr>0)return e();Vr++;try{return e()}finally{rl()}}function Xx(e){if(te!==void 0){var t=e.n;if(t===void 0||t.t!==te)return t={i:0,S:e,p:te.s,n:void 0,t:te,e:void 0,x:void 0,r:t},te.s!==void 0&&(te.s.n=t),te.s=t,e.n=t,32&te.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=te.s,t.n=void 0,te.s.n=t,te.s=t),t}}function He(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function ie(e){return new He(e)}function Zx(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 eP(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 tP(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 yi(e){He.call(this,void 0),this.x=e,this.s=void 0,this.g=Kc-1,this.f=4}function Vo(e){return new yi(e)}function rP(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Vr++;var r=te;te=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,lm(e),n}finally{te=r,rl()}}}function lm(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,rP(e)}function S$(e){if(te!==this)throw new Error("Out-of-order effect");tP(this),te=e,this.f&=-2,8&this.f&&lm(this),rl()}function Qo(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Xo(e){var t=new Qo(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function bi(e,t){N[e]=t.bind(null,N[e]||function(){})}function Yc(e){Lf&&Lf(),Lf=e&&e.S()}function oP(e){var t=this,r=e.data,n=aP(r);n.value=r;var i=Qx(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=Vo(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=Vo(function(){return!Array.isArray(l.value)&&!lu(l.value)}),u=Xo(function(){if(this.N=sP,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 I$(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=ie(r);return{o:function(a,s){o.value=a,n=s},d:Xo(function(){this.N=sP;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function aP(e){return Qx(function(){return ie(e)},[])}function k$(){ct(function(){for(var e;e=iP.shift();)nP.call(e)})}function sP(){iP.push(this)===1&&(N.requestAnimationFrame||E$)(k$)}function C$(e,t){let r=so(e);Hn(()=>{r.current=e},[e]),ao(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function Ie(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:--A$,__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 N.vnode&&N.vnode(l),l}function Sr(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=j$(e,"string");return typeof t=="symbol"?t:t+""}function j$(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 Ir(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=$$(e,"string");return typeof t=="symbol"?t:t+""}function $$(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 Qe(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=W$(e,"string");return typeof t=="symbol"?t:t+""}function W$(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=z$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z$(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 Sn(e,t,r){return(t=Y$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y$(e){var t=Q$(e,"string");return typeof t=="symbol"?t:t+""}function Q$(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 Mf(e,t,r){return(t=X$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X$(e){var t=Z$(e,"string");return typeof t=="symbol"?t:t+""}function Z$(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 rt(e,t,r){return(t=eV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eV(e){var t=tV(e,"string");return typeof t=="symbol"?t:t+""}function tV(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 Ft(e,t,r){return(t=rV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rV(e){var t=nV(e,"string");return typeof t=="symbol"?t:t+""}function nV(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 J3,Vc,Ox,Nx,sx,H3,$3,Dx,V3,W3,cx,z3,K3,lx,Y3,Q3,X3,qx,Z3,o4,a4,ux,s4,dx,c4,Mx,Ux,Fx,px,l4,u4,di,fx,Uf,pe,m4,h4,Jo,Wo,g4,jf,v4,Of,_4,Gf,mx,li,Bf,Jf,Hf,$f,N4,Xe,Wc,z,Gx,am,sm,D4,Bx,q4,L4,Zc,M4,el,mi,Hx,lt,Pe,hi,Z4,e$,t$,vx,r$,n$,i$,o$,a$,c$,l$,u$,zx,yx,Nf,bx,_x,$r,p$,f$,m$,h$,g$,gi,zf,_t,qf,Ix,Ex,Yx,qe,kx,Cx,Ax,xx,Px,Tx,Rx,w$,te,$o,Vr,Yf,Kc,nP,Lf,iP,E$,Ze,A$,x$,Er,Qf,Xf,$c,P$,T$,R$,O$,N$,D$,q$,L$,M$,U$,Zf,pi,ui,G$,B$,J$,em,cP,tm,rm,nm,im,Qc,om,Xc,Bte,lP=C(()=>{"use strict";Dn();is();J3=Object.defineProperty,Vc=Object.getOwnPropertySymbols,Ox=Object.prototype.hasOwnProperty,Nx=Object.prototype.propertyIsEnumerable,sx=(e,t,r)=>t in e?J3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,H3=(e,t)=>{for(var r in t||(t={}))Ox.call(t,r)&&sx(e,r,t[r]);if(Vc)for(var r of Vc(t))Nx.call(t,r)&&sx(e,r,t[r]);return e},$3=(e,t)=>{var r={};for(var n in e)Ox.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Vc)for(var n of Vc(e))t.indexOf(n)<0&&Nx.call(e,n)&&(r[n]=e[n]);return r},Dx=Object.defineProperty,V3=Object.defineProperties,W3=Object.getOwnPropertyDescriptors,cx=Object.getOwnPropertySymbols,z3=Object.prototype.hasOwnProperty,K3=Object.prototype.propertyIsEnumerable,lx=(e,t,r)=>t in e?Dx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y3=(e,t)=>{for(var r in t||(t={}))z3.call(t,r)&&lx(e,r,t[r]);if(cx)for(var r of cx(t))K3.call(t,r)&&lx(e,r,t[r]);return e},Q3=(e,t)=>V3(e,W3(t)),X3=(e,t)=>{for(var r in t)Dx(e,r,{get:t[r],enumerable:!0})},qx=(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},Z3=(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}o4=(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))(o4||{});a4={log:Bo("log"),warn:Bo("warn"),info:Bo("info"),error:Bo("error"),debug:Bo("debug")};Object.assign(globalThis,{logger:a4});ux=Symbol.for("Jolibox.canIUseMap"),s4={};globalThis[ux]||(globalThis[ux]=s4);dx=Symbol.for("Jolibox.canIUseMap.native"),c4={};globalThis[dx]||(globalThis[dx]=c4);Mx=(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))(Mx||{}),Ux=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Ux||{}),Fx=(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))(Fx||{}),px=["name","params"],l4=["name","type","location","target","extra","timestamp","userId"],u4=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];f4();di=typeof window=="undefined",fx=()=>!di&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!di&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!di&&navigator.userAgent.includes("Android"),!di&&navigator.userAgent.includes("Mac"),!di&&navigator.userAgent.includes("FB_IAB"),!di&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Uf=class Ff{constructor(t){this.element=t,this.next=Ff.Undefined,this.prev=Ff.Undefined}};Uf.Undefined=new Uf(void 0);pe=Uf,m4=class{constructor(){this._first=pe.Undefined,this._last=pe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===pe.Undefined}clear(){let e=this._first;for(;e!==pe.Undefined;){let t=e.next;e.prev=pe.Undefined,e.next=pe.Undefined,e=t}this._first=pe.Undefined,this._last=pe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new pe(e);if(this._first===pe.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!==pe.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==pe.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==pe.Undefined&&e.next!==pe.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===pe.Undefined&&e.next===pe.Undefined?(this._first=pe.Undefined,this._last=pe.Undefined):e.next===pe.Undefined?(this._last=this._last.prev,this._last.next=pe.Undefined):e.prev===pe.Undefined&&(this._first=this._first.next,this._first.prev=pe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==pe.Undefined;)yield e.element,e=e.next}},h4=0,Jo=class{constructor(e){this.value=e,this.id=h4++}},Wo=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 Jo&&(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 Jo(e);return this._listeners?this._listeners instanceof Jo?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 Jo)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 Jo?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},g4=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 Wo,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 m4,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)}},jf={};X3(jf,{None:()=>v4,filter:()=>b4,once:()=>jx,toPromise:()=>y4});v4=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Of=Symbol.for("Jolibox.hostEmitter"),_4=()=>{let e=new g4;return globalThis[Of]||(globalThis[Of]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Of]};_4();Gf=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Wo,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 w4(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}};Gf=qx([Lx],Gf);mx=class{constructor(){this._onWillExecuteCommand=new Wo,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Wo,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Gf,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=e4(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 Z3(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),jf.toPromise(jf.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{}}};mx=qx([Lx],mx);li=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")},Bf=class{constructor(t){at(this,"context",void 0),at(this,"continueCallback",void 0),at(this,"adIsShowingCallback",void 0),at(this,"isBeforeAdCalled",!1),at(this,"isBeforeRewardCalled",!1),at(this,"isAdDismissedCalled",!1),at(this,"isAdViewedCalled",!1),at(this,"isAfterAdCalled",!1),at(this,"currentProvider",void 0),at(this,"currentClientParams",void 0),at(this,"adsHasResponse",!1),at(this,"videoChecker",window.document.createElement("video")),at(this,"contextInfo",void 0),at(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",H3({userEvent:a},this.paramsToTrack)),fx()&&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=li(r);s==null||s()}),this.context=t,this.contextInfo=t.getContextInfo()}notifyIframeAdsEvent(t,r){window.parent&&window.parent.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=li(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),fx()&&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=li(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=li(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=li(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=li(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 y(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")})})}};Jf=class{constructor(t){Mc(this,"context",void 0),Mc(this,"adBreakIsShowing",!1),Mc(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),Mc(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()})}};Hf=class{constructor(t){Uc(this,"configs",null),Uc(this,"firstRun",!0),Uc(this,"context",void 0),Uc(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return y(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}};$f=class{constructor(t,r){wr(this,"name","ADSENSE"),wr(this,"context",void 0),wr(this,"contextInfo",void 0),wr(this,"configured",!1),wr(this,"initParams",void 0),wr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),wr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=$3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),wr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),wr(this,"adUnit",n=>y(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 g=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),g&&b.setAttribute("data-ad-format",g),u&&b.setAttribute("data-full-width-responsive",u),p&&b.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",b.style.position="relative",f.appendChild(b),b.appendChild(v)}else f.appendChild(b),new MutationObserver(v=>{v.forEach(w=>{if(w.type==="attributes"&&w.attributeName==="data-ad-status"){let E=b.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:E!=null?E:"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 y(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)}})}};N4=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(O4(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=R4(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}(),Xe="-ms-",Wc="-moz-",z="-webkit-",Gx="comm",am="rule",sm="decl",D4="@import",Bx="@keyframes",q4="@layer",L4=Math.abs,Zc=String.fromCharCode,M4=Object.assign;el=1,mi=1,Hx=0,lt=0,Pe=0,hi="";Z4=function(e,t,r){for(var n=0,i=0;n=i,i=ir(),n===38&&i===12&&(t[r]=1),!Ko(i);)wt();return Yo(e,lt)},e$=function(e,t){var r=-1,n=44;do switch(Ko(n)){case 0:n===38&&ir()===12&&(t[r]=1),e[r]+=Z4(lt-1,t,r);break;case 2:e[r]+=Bc(n);break;case 4:if(n===44){e[++r]=ir()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Zc(n)}while(n=wt());return e},t$=function(e,t){return Vx(e$($x(e),t))},vx=new WeakMap,r$=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&&!vx.get(r))&&!n){vx.set(e,!0);for(var i=[],o=t$(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]}}},n$=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};i$=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case sm:e.return=Wx(e.value,e.length);break;case Bx:return fi([Ho(e,{value:K(e.value,"@","@"+z)})],n);case am:if(e.length)return j4(e.props,function(i){switch(F4(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fi([Ho(e,{props:[K(i,/:(read-\w+)/,":"+Wc+"$1")]})],n);case"::placeholder":return fi([Ho(e,{props:[K(i,/:(plac\w+)/,":"+z+"input-$1")]}),Ho(e,{props:[K(i,/:(plac\w+)/,":"+Wc+"$1")]}),Ho(e,{props:[K(i,/:(plac\w+)/,Xe+"input-$1")]})],n)}return""})}},o$=[i$],a$=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 g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||o$,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(m)});var s,c=[r$,n$];{var l,d=[K4,Q4(function(m){l.insert(m)})],u=Y4(c.concat(n,d)),p=function(m){return fi(W4(m),u)};s=function(m,g,b,v){l=b,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new N4({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};c$={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},l$=/[A-Z]|^ms/g,u$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zx=function(e){return e.charCodeAt(1)===45},yx=function(e){return e!=null&&typeof e!="boolean"},Nf=X4(function(e){return zx(e)?e:e.replace(l$,"-$&").toLowerCase()}),bx=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(u$,function(r,n,i){return $r={name:n,styles:i,next:$r},n})}return c$[e]!==1&&!zx(e)&&typeof t=="number"&&t!==0?t+"px":t};_x=/label:\s*([^\s;{]+)\s*(;|$)/g;p$=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},f$=function(e,t,r){p$(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)}};m$=function(e){var t=a$(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=Df(s,t.registered,void 0);return f$(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=Df(s,t.registered),d="animation-"+l.name;return wx(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=Df(s,t.registered);wx(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return Sx(t.registered,r,h$(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:Kx.bind(null,t.registered),merge:Sx.bind(null,t.registered,r)}},h$=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},g$=m$({key:"css"}),gi=g$.css,Ex=0,Yx=[],qe=N,kx=qe.__b,Cx=qe.__r,Ax=qe.diffed,xx=qe.__c,Px=qe.unmount,Tx=qe.__;qe.__b=function(e){_t=null,kx&&kx(e)},qe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Tx&&Tx(e,t)},qe.__r=function(e){Cx&&Cx(e),zf=0;var t=(_t=e.__c).__H;t&&(qf===_t?(t.__h=[],_t.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Hc),t.__h.forEach(Kf),t.__h=[],zf=0)),qf=_t},qe.diffed=function(e){Ax&&Ax(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Yx.push(t)!==1&&Ix===qe.requestAnimationFrame||((Ix=qe.requestAnimationFrame)||b$)(y$)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),qf=_t=null},qe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Hc),r.__h=r.__h.filter(function(n){return!n.__||Kf(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],qe.__e(n,r.__v)}}),xx&&xx(e,t)},qe.unmount=function(e){Px&&Px(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Hc(n)}catch(i){t=i}}),r.__H=void 0,t&&qe.__e(t,r.__v))};Rx=typeof requestAnimationFrame=="function";w$=Symbol.for("preact-signals");te=void 0,$o=void 0,Vr=0,Yf=0,Kc=0;He.prototype.brand=w$;He.prototype.h=function(){return!0};He.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)};He.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)}};He.prototype.subscribe=function(e){var t=this;return Xo(function(){var r=t.value,n=te;te=void 0;try{e(r)}finally{te=n}})};He.prototype.valueOf=function(){return this.value};He.prototype.toString=function(){return this.value+""};He.prototype.toJSON=function(){return this.value};He.prototype.peek=function(){var e=te;te=void 0;try{return this.value}finally{te=e}};Object.defineProperty(He.prototype,"value",{get:function(){var e=Xx(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Yf>100)throw new Error("Cycle detected");this.v=e,this.i++,Kc++,Vr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{rl()}}}});(yi.prototype=new He).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Kc))return!0;if(this.g=Kc,this.f|=1,this.i>0&&!Zx(this))return this.f&=-2,!0;var e=te;try{eP(this),te=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 te=e,tP(this),this.f&=-2,!0};yi.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)}He.prototype.S.call(this,e)};yi.prototype.U=function(e){if(this.t!==void 0&&(He.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)}};yi.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(yi.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Xx(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Qo.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()}};Qo.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,rP(this),eP(this),Vr++;var e=te;return te=this,S$.bind(this,e)};Qo.prototype.N=function(){2&this.f||(this.f|=2,this.o=$o,$o=this)};Qo.prototype.d=function(){this.f|=8,1&this.f||lm(this)};iP=[];Xo(function(){nP=this.N})();oP.displayName="_st";Object.defineProperties(He.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}});bi("__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 He&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});bi("__r",function(e,t){Yc();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return Xo(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Yc(r),e(t)});bi("__e",function(e,t,r,n){Yc(),e(t,r,n)});bi("diffed",function(e,t){Yc();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=I$(r,c,d,i),o[c]=l):l.o(d,i)}}}e(t)});bi("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)});bi("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ht.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};E$=function(e){queueMicrotask(function(){queueMicrotask(e)})};Ze=gi`
|
|
622
|
+
`,$H=()=>_("div",{style:Yk.container,children:[_("style",{children:HH}),_("div",{style:Yk.spinner})]});YQ=yn()});function zC(){return y(this,null,function*(){if(Zp)return Zp;let t=`${I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${I.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield re(t);return Zp=r,r})}function KC(){return y(this,null,function*(){let e=new st;if(I.mpType!=="game")return e.resolve(!1),e.promise;if(ef)return e.resolve(!0),e.promise;let t=yield zC();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;ef=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};G("RecommendedGuide",T({eventType:$.View},o));let a=RC({games:r.games,title:n,buttons:i,onClose:s=>{var c;switch(ef=!1,s.type){case"quit":G("RecommendedGuide",{eventType:$.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":G("RecommendedGuide",T({eventType:$.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((c=s.data)!=null&&c.game){let l=s.data.game;VH(l),G("GameItem",{eventType:$.Click,gameId:l.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:G("RecommendedGuide",T({eventType:$.Hide},o)),e.resolve(!0);break}}});return e.promise})}var Zp,VH,ef,YC=P(()=>{"use strict";J();fe();O();rr();ht();xt();Zp=null;zC();VH=e=>{var a;let{data:t}=j("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",I.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;j("openSchemaSync",{schema:o})},ef=!1});function zH(e){let t=T(T({},WH),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:w,containerTransition:S,iframeTransition:x}=p();de=document.createElement("div"),de.id="jolibox-modal-overlay",de.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:${w}; opacity:0; visibility:hidden;`,ne=document.createElement("div"),ne.id="jolibox-modal-container",ne.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:${S};`;let A=document.createElement("div");A.id="jolibox-modal-loading",A.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 k=document.createElement("div");if(k.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",Rt=document.createElement("iframe"),Rt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${x};`,Rt.src=r,Rt.onload=()=>{A.parentNode&&A.parentNode.removeChild(A),Rt.style.opacity="1",g(),c==null||c(),be.emit("onModalIframeLoaded",{url:r})},k.appendChild(Rt),k.appendChild(A),ne.appendChild(k),i){let B=document.createElement("div");B.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;",B.innerHTML="\u2715",B.onclick=v,ne.appendChild(B)}de.appendChild(ne),document.body.appendChild(de),de.addEventListener("click",function(B){B.target===de&&v()}),o&&b()}function g(){!de||!ne||u||(de.style.visibility="visible",a?requestAnimationFrame(()=>{de&&(de.style.opacity="1"),ne&&(ne.style.transform="translateY(0)"),u=!0}):(de&&(de.style.opacity="1"),ne&&(ne.style.transform="translateY(0)"),u=!0),j("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:I.webviewId}))}function b(){if(!ne)return;let w=A=>{l=A.touches[0].clientY},S=A=>{if(!u)return;d=A.touches[0].clientY;let C=d-l;C>0&&(ne&&(ne.style.transition="none",ne.style.transform=`translateY(${C}px)`),A.preventDefault())},x=()=>{!u||!ne||(ne.style.transition=a?"transform 0.3s ease":"none",d-l>80?v():ne.style.transform="translateY(0)")};ne.addEventListener("touchstart",w),ne.addEventListener("touchmove",S),ne.addEventListener("touchend",x)}function v(){!de||!ne||!u||(a?(ne.style.transform="translateY(100%)",de.style.opacity="0"):de.style.visibility="hidden",u=!1,j("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:I.webviewId}),setTimeout(()=>{de&&(de.remove(),de=null,ne=null,Rt=null,s==null||s(),be.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function QC(){return window.joliboxUI=F(T({},window.joliboxUI),{createIframeModal:zH}),()=>{window.joliboxUI=void 0,de&&de.parentNode&&de.parentNode.removeChild(de),ne&&ne.parentNode&&ne.parentNode.removeChild(ne),Rt&&Rt.parentNode&&Rt.parentNode.removeChild(Rt),de=null,ne=null,Rt=null}}var WH,de,ne,Rt,XC=P(()=>{"use strict";fe();J();O();WH={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},de=null,ne=null,Rt=null});var rA={};Bm(rA,{config:()=>o3});function YH(){Ba.on("isAdShowing",e=>{hc=e,Nr(hc)&&j("updateContainerConfigSync",{displayCapsuleButton:!hc,webviewId:I.webviewId})})}function QH(){be.on("onInterceptSystemExit",({intercept:e})=>{ZC=e})}function XH(){be.on("onInterceptBackPress",({intercept:e})=>{KH=e}),Ne("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;tA(t),be.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function ZH(){be.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),G("onDocumentReady",{start_timestamp:vc,timestamp:Date.now()})})}function e3(){Ne("onI18nChanged",({language:e})=>{be.emit("onI18nChanged",{i18n:e})})}function t3(e){I.mpType==="game"&&Lt.start(e)}function r3(){Ne("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&I.onEnvConfigChanged({hostUserInfo:e}),be.emit("LifecycleEvent.onReady",T({},I.hostUserInfo?I.hostUserInfo:{isLogin:!1})),G("joliboxServiceReady",{start_timestamp:vc,timestamp:Date.now()}),t3(t),kC(()=>I.language)}),Ne("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;tA(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function n3(){let e=()=>{G("onBeforeExit",{timestamp:Date.now()}),fc==null||fc(),mc==null||mc(),Lt.close(Date.now()-vc)},t=()=>hc||ZC;Ct.onDoExit(()=>y(this,null,function*(){return t()?!0:Nr(I.shouldInterupt)?(I.shouldInterupt||e(),I.shouldInterupt):gc!=null&&gc.canShowRecommended&&!eA&&(yield KC())?!0:(e(),!1)})),Ct.onDoBackPress(()=>y(this,null,function*(){return!!t()}))}function i3(){return y(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield re(e);t&&(gc=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function o3(){vc=Date.now(),r3(),YH(),QH(),XH(),n3(),ZH(),e3(),i3(),mc=QC(),fc=mg()}var fc,mc,vc,hc,gc,ZC,KH,eA,tA,nA=P(()=>{"use strict";fe();J();O();xt();hg();cu();YC();ht();rr();XC();hc=!1,gc=null,ZC=!1,KH=!1,eA=!1,tA=e=>{Nr(e)&&(eA=e)};Ct.onReady(()=>{})});var iA,a3,s3,c3,l3,oA=P(()=>{"use strict";O();Ke();fe();J();iA=ee(),a3="env",s3="getSystemInfoSync",c3=W(s3,{implement:()=>{var r;let e=j("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:I.viewport.statusBarHeight,navigationBarHeight:I.viewport.navigationBarHeight}}}}),l3=W(a3,{implement:()=>{var t;let e=j("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});iA.registerCommand("API.getSystemInfoSync",c3);iA.registerCommand("API.env",l3);M("env",{version:"1.0.0"});M("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var aA=h(tf=>{"use strict";O();Ke();mt();fe();xt();J();var u3="exitGame",d3="onReady",p3="onJoliboxShow",f3="onJoliboxHide",yc=ee(),bc=ba(Ie),m3=ce(u3,{paramsSchema:E.tuple(E.function(),E.boolean().optional().default(!1)),implement:(e,t=!1)=>y(tf,null,function*(){bc(e).call(tf),Nr(I.shouldInterupt)&&!I.shouldInterupt&&I.from&&dh("onRetentionResult",{shouldStay:t},I.from,!0),t||I.setDoExitDirectly(),yield ye("exitAppAsync")})}),h3=W(p3,{paramsSchema:E.tuple(E.function()),implement(e){let t=bc(e);Ne("onJoliboxEnterForeground",()=>{t.call(this),Ji.emit("visible",!0)})}}),g3=W(f3,{paramsSchema:E.tuple(E.function()),implement(e){let t=bc(e);Ne("onJoliboxEnterBackground",()=>{t.call(this),Ji.emit("visible",!1)})}}),v3=W(d3,{paramsSchema:E.tuple(E.function()),implement(e){let t=bc(e);be.on("LifecycleEvent.onReady",r=>{t(r)})}});yc.registerCommand("LifecycleSDK.exit",m3);yc.registerCommand("LifecycleSDK.onReady",v3);yc.registerCommand("LifecycleSDK.onJoliboxShow",h3);yc.registerCommand("LifecycleSDK.onJoliboxHide",g3);M("lifeCycle.exit",{version:"1.0.0"});M("lifeCycle.onReady",{version:"1.0.0"});M("lifeCycle.onJoliboxShow",{version:"1.0.0"});M("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function sA(e){let t={};if(!tn(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 cA(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 lA(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function uA(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!tn(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 dA=P(()=>{"use strict";O()});var y3,b3,rf,nf,pA,_3,w3,S3,fA=P(()=>{"use strict";nn();Zl();Ke();dA();O();mt();J();y3=15,b3=wa("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:I.baseApiHost}),rf=0,nf=[],pA=ba(Ie),_3=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},w3=e=>{let t=new st,r=()=>{};return W("request",{paramsSchema:E.tuple(E.object({url:E.string(),method:E.string(),headers:E.object().optional(),data:E.or(E.object(),E.array()).optional(),query:E.object().optional(),dataType:E.string().default("json"),responseType:E.string().default("text"),enableCache:E.boolean().default(!1),appendHostCookie:E.boolean().default(!0),timeout:E.number().default(3e4),success:E.function(),fail:E.function()})),implement(i){let o=()=>y(this,null,function*(){var s,c,l;let a=pA(i.fail);try{if(rf+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=sA((s=i.headers)!=null?s:{}),b=cA(i.method),v=lA(i.timeout),w=uA(i.url,b,d),S=pA(i.success),x=Object.assign({},i,{method:b,header:m?void 0:g,data:b==="GET"||b==="HEAD"?void 0:d,enableCache:f,query:(c=i.query)!=null?c:{},dataType:u,responseType:p,appendHostCookie:m});v&&(x.timeout=v);let A=b3(w,x);{let{response:C}=yield A,{code:k,data:B,message:le}=C;if(B&&typeof B=="object"&&"status"in B&&B.status!==200)throw At({code:B.status||-1,msg:`request:fail status ${B.status}`});t.resolve({code:k!=null?k:"SUCCESS",data:B,message:le!=null?le:"request:ok"}),S({code:"SUCCESS",message:"request:ok",data:B})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{rf-=1,(l=nf.shift())==null||l()}});return rf>=y3?(r=()=>{_3(nf,a=>a===o)},nf.push(o)):o(),t.promise}})(e),{abort(){t.reject(At({code:-1,msg:"request:fail abort"})),r()}}},S3=ee();S3.registerCommand("HttpSDK.request",w3);M("request",{version:"1.0.0"})});var I3,E3,k3,of,mA=P(()=>{"use strict";O();fe();Ke();I3=W("showKeyboard",{paramsSchema:E.tuple(E.object({defaultValue:E.string().optional().default(""),multiple:E.boolean().optional().default(!1),maxLength:E.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)),j("showKeyboardSync",F(T({},e),{defaultValue:r,maxLength:t}))}});M("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"}});E3=W("updateKeyboard",{paramsSchema:E.tuple(E.object({value:E.string()})),implement(e){j("updateKeyboardSync",e)}});M("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});k3=W("hideKeyboard",{implement(){j("hideKeyboardSync")}});M("keyboard.hideKeyboard",{version:"1.0.0"});of=ee();of.registerCommand("KeyboardSDK.showKeyboard",I3);of.registerCommand("KeyboardSDK.updateKeyboard",E3);of.registerCommand("KeyboardSDK.hideKeyboard",k3)});var hA=h(_c=>{"use strict";O();Ke();xt();var af=ee(),C3=ce("levelFinished",{paramsSchema:E.tuple(E.object({levelId:E.or(E.string(),E.number()),duration:E.number().optional(),rating:E.number().optional(),score:E.number().optional(),variation:E.string().optional()})),implement:e=>y(_c,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(Lt.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(Lt.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),A3=ce("gamePlayEnded",{paramsSchema:E.tuple(E.object({duration:E.number().optional(),rating:E.number().optional(),score:E.number(),variation:E.string().optional()})),implement:e=>y(_c,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(Lt.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(Lt.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),x3=ce("levelUpgrade",{paramsSchema:E.tuple(E.object({levelId:E.or(E.string(),E.number()),name:E.string().optional()})),implement:r=>y(_c,[r],function*({levelId:e,name:t}){let n=[];n.push(Lt.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(Lt.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});af.registerCommand("TaskTrackerSDK.levelFinished",C3);af.registerCommand("TaskTrackerSDK.gamePlayEnded",A3);af.registerCommand("TaskTrackerSDK.levelUpgrade",x3);M("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"}}});M("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});M("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var sf,cf,lf,P3,gA,wc=P(()=>{"use strict";J();fe();Ke();O();nn();M("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"}});M("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0",isLogin:"1.0.0",isSubUser:"1.2.9"}});sf=new Map;Ne("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i,appAccountToken:o})=>{let a=sf.get(r);a&&(a.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i,appAccountToken:o}),sf.delete(r))});cf=(e,t=!1)=>y(void 0,null,function*(){var m,g,b;let{data:{isLogin:r}}=yield ye("checkLoginAsync");if(r)return{isLogin:!0,token:(m=I.hostUserInfo)==null?void 0:m.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=j("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw At({code:-1,msg:"login failed"});let s=new st;sf.set(a,s);let c=yield s.promise,l=j("envSync"),d=(b=(g=l==null?void 0:l.data)==null?void 0:g.hostUserInfo)==null?void 0:b.isSubUser;I.onEnvConfigChanged({hostUserInfo:F(T({},c),{isSubUser:d})});let v=c,{extra:u,appAccountToken:p}=v,f=ze(v,["extra","appAccountToken"]);return be.emit("onLoginComplete",f),t?c:f}),lf=ce("login",{paramsSchema:E.tuple(E.object({skipLogin:E.boolean().optional(),triggerFrom:E.string().optional()}).optional()),implement(e){return y(this,null,function*(){return yield cf(e!=null?e:{})})}}),P3=ce("checkSession",{implement(){return y(this,null,function*(){var r;let{data:{isLogin:e}}=yield ye("checkLoginAsync"),t=(r=I.hostUserInfo)==null?void 0:r.isSubUser;return{isLogin:e,isSubUser:t}})}}),gA=ee();gA.registerCommand("API.login",lf);gA.registerCommand("API.checkSession",P3)});var vA,yA=P(()=>{"use strict";vA=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 bn(e){return t=>y(this,null,function*(){var c;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield Dr(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=bA(i.data),a=vA(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 _n(e){return()=>y(this,null,function*(){var i;let t=Date.now(),r=yield Dr(e),n=bA((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield vt(e,JSON.stringify(n))})}var bA,_A,wA,SA,IA,EA,kA,CA,AA,xA,PA,TA,RA,OA,NA,jo=P(()=>{"use strict";Bi();yA();bA=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};_A=bn("joli_coin_use_modal_frequency"),wA=bn("joli_coin_payment_frequency"),SA=bn("joli_coin_unlogin_modal_frequency"),IA=bn("joli_gem_use_modal_frequency"),EA=bn("joli_gem_payment_frequency"),kA=bn("joli_gem_unlogin_modal_frequency"),CA=bn("subscription_frequency");AA=_n("joli_coin_use_modal_frequency"),xA=_n("joli_coin_payment_frequency"),PA=_n("joli_coin_unlogin_modal_frequency"),TA=_n("joli_gem_use_modal_frequency"),RA=_n("joli_gem_payment_frequency"),OA=_n("joli_gem_unlogin_modal_frequency"),NA=_n("subscription_frequency")});var uf,Sc,df=P(()=>{"use strict";ht();uf=Promise.resolve(),Sc=(e,t)=>y(void 0,null,function*(){uf=uf.then(()=>y(void 0,null,function*(){yield re(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield uf})});var Ic,Ec,jt,kc,wn,Gt,Ir,Cc,Ac,Sn,di,T3,q,Er,kr,Fe=P(()=>{"use strict";O();Ic="UNLOCK_OPTIONS_CHANGED",Ec="INVOKE_PAYMENT",jt="ON_PAYMENT_RESULT",kc="ON_USE_MODAL_EVENT",wn="ON_USE_MODAL_RESULT",Gt="ON_USE_MODAL_FREQUENCY",Ir="ON_USE_UNLOGIN_MODAL_EVENT",Cc="INVOKE_UNLOGIN_MODAL_EVENT",Ac="INVOKE_SUBSCRIPTION_EVENT",Sn="ON_USE_SUBSCRIPTION_RESULT",di=new $t,T3=()=>({on:di.on.bind(di),off:di.off.bind(di),emit:di.emit.bind(di)}),q=T3(),Er={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},joinMember:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},kr={show:!0,minInterval:8*60*60*1e3}});function je(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=T(T({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var nr=P(()=>{"use strict"});var qA=h(pf=>{"use strict";jo();df();Fe();Fe();rr();xt();O();nr();var R3={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:_A,frequencyUpdater:AA,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:IA,frequencyUpdater:TA,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},DA=yn(),LA=je(q,Gt);LA.getData();q.on(kc,(e,t)=>y(pf,null,function*(){let r=t.currency,n=R3[r];if(e.includes("ADS-")){yield DA.show({duration:3e3});let c=yield LA.getData(),{canShow:l,isFirst:d}=yield n.frequencyChecker(c.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,l,d),DA.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){q.emit(wn,{useModalResult:"CONFIRM"});return}if(!l){q.emit(wn,{useModalResult:"FAILED"});return}}G(n.trackEvents.popupShow,{eventType:$.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=LC({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{G(n.trackEvents.coinUnlock,{targetType:"game",eventType:$.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),q.emit(wn,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:c})=>{c==="FAILED"&&G(n.trackEvents.adUnlock,{targetType:"game",eventType:$.Click,currency:r}),q.emit(wn,{useModalResult:(c!=null?c:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:c=>y(pf,null,function*(){yield Sc(c,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function MA(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return y(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 Ie(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var UA=P(()=>{"use strict";mt()});var Go=P(()=>{"use strict"});var O3,pi,St,N3,In,xc=P(()=>{"use strict";Go();O();J();ht();O3=()=>{let[e,t]=[va,ya].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:pi,createPaymentInternalError:St}=O3(),N3=I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",In=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>y(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw pi(n,1001);return yield this.pay()});this.cancelOrder=t=>y(this,null,function*(){var n,i;let{response:r}=yield re(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw pi((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",I.deviceInfo.platform),t.set("joliSource",I.encodeJoliSourceQuery(T({},this.generatePaymentContext()))),`${N3}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var mf,FA,jA=P(()=>{"use strict";ht();xc();Go();mf=class extends In{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>y(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return y(this,null,function*(){var n,i,o,a;try{let{response:s}=yield re("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw pi((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),St((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},FA=()=>{let e=new Map;return t=>y(void 0,null,function*(){let r=e.get(t);return r||(r=new mf(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var GA,BA=P(()=>{"use strict";GA={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 hf,JA,gf,vf,D3,yf,HA=P(()=>{"use strict";ht();xc();Go();fe();O();J();rr();BA();hf=new Map;Ne("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=hf.get(t);if(o){if(r==="SUCCESS")o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&ga(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw St(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=GA[r];a&&Sr(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}hf.delete(t)}});JA=e=>y(void 0,null,function*(){var n,i;let t=new st,r;try{let o=yield ye("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw St("orderUUID is null",1002);hf.set(r,t)}catch(o){throw St((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),gf=class extends In{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=()=>y(this,null,function*(){return yield JA({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return y(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},vf=class extends In{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=()=>y(this,null,function*(){return yield JA({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return y(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield re("/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 St("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"}})}},D3={android:gf,ios:vf},yf=()=>{let e=new Map;return t=>y(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=D3[I.platform];if(!s)throw St("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 pi(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var En,bf=P(()=>{"use strict";UA();jA();HA();En=MA();En.registerPaymentHandler("JOLI_COIN",FA());En.registerPaymentHandler("JOLI_COIN_IAP",yf());En.registerPaymentHandler("JOLI_GEM_IAP",yf())});function $A(n,i){return y(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 vt(a,c),yield vt(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 Pc(n,i){return y(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 Dr(s),{data:u}=yield Dr(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(()=>y(this,null,function*(){try{console.log("[Cache] Background updating cache for key:",e);let m=yield t(),g=Date.now();yield vt(s,m),yield vt(c,g.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 vt(s,null),yield vt(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 vt(s,d),yield vt(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 _f=P(()=>{"use strict";Bi()});function L3(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=>!Mi(r.totalAmountStr))}var Kr,wf,ir,Oc,Sf,If,Tc,Rc,VA,Nc,Ef=P(()=>{"use strict";bf();O();fe();ht();O();_f();Kr=class Kr{execute(t,r){return y(this,null,function*(){var a,s,c;let{response:n}=yield re(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&&L3(i,l)}if(i.paymentChoices.length===0)throw new Error("paymentChoices is empty");return i})}getNativePriceData(t){return y(this,null,function*(){let r=t.sort().join(",");return Pc(r,()=>y(this,null,function*(){try{let{data:n}=yield ye("requestProductDetailsAsync",{appStoreProductIds:t});return n&&(Kr.nativePriceCache.set(r,n),Kr.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[PaymentService] Failed to fetch native product details:",n),n}}),{cacheDuration:Kr.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")}};Kr.nativePriceCache=new Map,Kr.NATIVE_PRICE_CACHE_DURATION=10*60*1e3,Kr.nativePriceCacheTimestamp=new Map;wf=Kr,ir=class ir extends Dt{constructor(r,n){super(new wf,{duration:10*60*1e3,timeout:3e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return y(this,null,function*(){let r=ir.failureCounters.get(this.apiEndpoint)||0;if(r>=ir.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${ir.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return ir.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw ir.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${ir.MAX_FAILURE_COUNT+1}) for ${this.apiEndpoint}:`,n),n}})}purchase(r){return y(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 En.invokePayment(this.paymentType==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}getProductsInfoWithBalance(){return y(this,null,function*(){return this.request(this.apiEndpoint)})}refreshProductsInfo(){return y(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}static resetFailureCounters(){this.failureCounters.clear()}static getFailureCount(r){return this.failureCounters.get(r)||0}};ir.failureCounters=new Map,ir.MAX_FAILURE_COUNT=2;Oc=ir,Sf=class extends Oc{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},If=class extends Oc{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},Tc=null,Rc=null,VA=()=>Tc||(Tc=new Sf,Tc),Nc=()=>Rc||(Rc=new If,Rc)});var KA=h(Dc=>{"use strict";Fe();rr();J();wc();O();jo();bf();rr();Ke();xt();df();nr();Ef();var q3={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:wA,frequencyUpdater:xA,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:EA,frequencyUpdater:RA,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},fi=yn(),WA=VA(),zA=Nc(),M3=je(q,Gt);q.on(Ec,(e,t)=>y(Dc,null,function*(){var r,n,i;try{let o=t.currency,a=q3[o];if(!gt("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{q.emit(jt,{paymentResult:"FAILED",currency:o})},0);return}if(e.includes("ADS-")){yield fi.show({duration:3e3});let d=yield M3.getData(),{canShow:u}=yield a.frequencyChecker(d.joliCoinUseAndCharge[a.frequencyConfigKey]);if(console.log(`${o} payment show by frequency`,u),fi.hide(),!u){q.emit(jt,{paymentResult:"FAILED",currency:o});return}console.log("show by frequency")}yield fi.show({duration:3e3});let s=o==="JOLI_COIN"?WA:zA,c=yield s.getProductsInfo();if(fi.hide(),!c||!((r=c.paymentChoices)!=null&&r.length)){q.emit(jt,{paymentResult:"FAILED",currency:o});return}G(a.trackEvents.modalShow,{targetType:"game",eventType:$.View,currency:o});let l=qC({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:o,paymentChoices:(i=(n=c.paymentChoices)==null?void 0:n.map(d=>{var u;return F(T({},d),{totalAmountStr:(u=d.totalAmountStr)!=null?u:""})}))!=null?i:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:d=>y(Dc,null,function*(){var f,m,g,b,v,w,S,x;if(G(a.trackEvents.payEnsure,{targetType:"game",eventType:$.Click,payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(m=(f=c.paymentChoices.find(A=>A.productId===d))==null?void 0:f.totalAmountStr)!=null?m:""}),!((g=I.hostUserInfo)!=null&&g.isLogin)){let{data:A}=yield lf({skipLogin:!0});if(!(A!=null&&A.isLogin)){console.log("login failed");return}let C=yield s.refreshProductsInfo();if(((b=C==null?void 0:C.balance)!=null?b:0)>=t.quantity){q.emit(jt,{paymentResult:"SUCCESS",currency:o}),l.destroy();return}}console.log("invokeNativePayment",d);let u=(w=(v=c==null?void 0:c.paymentChoices)==null?void 0:v.find(A=>A.productId===d))==null?void 0:w.appStoreProductId;if(!u){q.emit(jt,{paymentResult:"FAILED",currency:o}),l.destroy();return}yield fi.show({duration:3e3});let{code:p}=yield En.invokePayment(a.paymentType,{productId:d,appStoreProductId:u});if(fi.hide(),G(a.trackEvents.payResult,{eventType:$.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(x=(S=c.paymentChoices.find(A=>A.productId===d))==null?void 0:S.totalAmountStr)!=null?x:"",payResult:p}),p!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}Sr("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),q.emit(jt,{paymentResult:"SUCCESS",currency:o}),l.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:d})=>{q.emit(jt,{paymentResult:(d!=null?d:"")==="CANCEL"?"CANCEL":"FAILED",currency:o}),G(a.trackEvents.adUnlock,{targetType:"game",eventType:$.Click,currency:o}),l.destroy()}},onEnableDeductChanged:d=>y(Dc,null,function*(){yield Sc(d,a.apiEndpointAutoDeduct)})},onSelect:d=>{var u,p;G(a.trackEvents.orderClick,{targetType:"game",eventType:$.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),q.emit(jt,{paymentResult:"FAILED",currency:t.currency})}}));WA.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});zA.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var QA=h(Lc=>{"use strict";Fe();nr();jo();ht();mt();O();wc();rr();xt();var U3={JOLI_COIN:{frequencyChecker:SA,frequencyUpdater:PA,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:kA,frequencyUpdater:OA,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},YA=je(q,Gt);YA.getData();q.on(Cc,(e,t)=>y(Lc,null,function*(){var r;try{let n=t.currency,i=U3[n];if(e.includes("ADS-")){let s=yield YA.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){q.emit(Ir,{result:"NOT_SUPPORT"});return}let{canShow:c}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,c),!c){q.emit(Ir,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield F3())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),q.emit(Ir,{result:"NOT_SUPPORT"});return}G(i.trackEvents.modalExpose,{eventType:$.Expose,currency:n},$.Expose);let a=MC({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>y(Lc,null,function*(){var d,u,p,f;G(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:$.Click,currency:n},$.Click);let{isLogin:s,extra:c,isFirstLogin:l}=yield cf({},!0);if(!s){console.log("login failed");return}if(G(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:l,eventType:$.Click,currency:n},$.Click),l&&((d=c==null?void 0:c.firstLogin)!=null&&d.reward)){let{rewardValue:m}=c.firstLogin.reward;Sr(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}q.emit(Ir,{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})=>{G(i.trackEvents.modalHide,{eventType:$.Hide,currency:n},$.Hide);let c=s==="CANCEL"?"click_close":"click_watch_ads",l=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;G(l,{type:c,eventType:$.Click,currency:n},$.Click),q.emit(Ir,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){Ie(new kh(n)),q.emit(Ir,{result:"FAILED"})}}));var F3=()=>y(Lc,null,function*(){var t;let{response:e}=yield re("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function j3(){let e=new Map;return{registerSubscriptionHandler(r,n){e.set(r,n)},invokeSubscription(r,...n){return y(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 Ie(o),{code:"FAILED",message:`[joliboxSDK]: subscription error ${o}`}}})}}}var Bo,kf=P(()=>{"use strict";mt();Bo=j3()});var kn,qc=P(()=>{"use strict";kn={PlaceOrderFailed:1001,CancelOrderFailed:1002,SubscriptionFailed:1003,InvalidPlan:1004}});var G3,XA,Mc,B3,Jo,Cf=P(()=>{"use strict";qc();O();J();G3=()=>{let[e,t]=[va,ya].map(r=>(n,i,o)=>new r(n,i,o));return{createSubscriptionError:e,createSubscriptionInternalError:t}},{createSubscriptionError:XA,createSubscriptionInternalError:Mc}=G3(),B3=I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Jo=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startSubscription=t=>y(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw XA(n,kn.PlaceOrderFailed);return yield this.subscribe(t)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",I.deviceInfo.platform),t.set("joliSource",I.encodeJoliSourceQuery(T({},this.generateSubscriptionContext()))),`${B3}/subscription/callback?${t.toString()}`};this.createSubscriptionError=XA;this.createSubscriptionInternalError=Mc}setOrderId(t){this._orderId=t}setOrderStatus(t){this._orderStatus=t}get orderId(){return this._orderId}get status(){return this._orderStatus}}});function J3(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=>!Mi(r.amountStr))}var Cn,Fc,Af,xf,Uc,ZA,Pf=P(()=>{"use strict";O();fe();ht();O();_f();kf();fe();Cf();qc();Cn=class Cn{static getNativePriceCache(t){var n;let r=t.sort().join(",");return(n=this.nativePriceCache.get(r))!=null?n:{}}execute(t,r){return y(this,null,function*(){var a,s;let{response:n}=yield re(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&&J3(i,c)}if(i.length===0)throw new Error("subscription tiers is empty");return i})}requestNativeSubscriptionPlans(t,r){return y(this,null,function*(){try{let{data:n}=yield ye("requestSubscriptionPlansAsync",{appStoreProductIds:t,type:"game"});return n&&(Cn.nativePriceCache.set(r,n),Cn.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 y(this,null,function*(){let n=t.sort().join(",");return(r?$A:Pc)(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 y(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")}};Cn.nativePriceCache=new Map,Cn.NATIVE_PRICE_CACHE_DURATION=1*24*60*60*1e3,Cn.nativePriceCacheTimestamp=new Map;Fc=Cn,Af=class extends Dt{constructor(r){super(new Fc,{duration:30*60*1e3,timeout:3e3});this.apiEndpoint=r;this.pendingSubscriptions=new Map;this.subInfoCacheKeys=[];this.listenSubscriptionPanelStateChange()}getSubInfo(){return y(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 y(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}updateNativePriceCache(r){return y(this,null,function*(){yield this.requestAdapter.updateNativePriceCache(r)})}updateAllNativePriceCache(){return y(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 y(this,null,function*(){var s;console.log("[SubscriptionService] subscribe params",Bo);let n=new AbortController,i=Bo.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 y(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 re("/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 ha(5e3))}})}invokeSubscriptionPanel(){return y(this,null,function*(){var i,o;let r=new st,n;try{if(console.log("[invokeSubscriptionPanel] requestSubscriptionSync params"),n=(i=j("invokeSubscriptionPanelSync",{type:"game"}).data)==null?void 0:i.subUUID,!n)throw Mc("orderUUID is null",kn.SubscriptionFailed);this.pendingSubscriptions.set(n,r)}catch(a){throw Mc((o=JSON.stringify(a))!=null?o:"subscription panel failed",kn.SubscriptionFailed)}return r.promise})}getTierByProductId(r){return y(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=Fc.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(){Ne("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"}}))})}},xf=class extends Af{constructor(){super("/api/subs/pricing")}},Uc=null,ZA=()=>Uc||(Uc=new xf,Uc)});var ex=P(()=>{"use strict"});function rx(){let e=new Map;return t=>y(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=H3[I.platform];if(!a)throw new Error(`Platform ${I.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 Tf,tx,Rf,Of,H3,nx=P(()=>{"use strict";J();Cf();Go();xc();O();fe();O();qc();Ne("onGlobalSubscriptionStateChange",e=>{let{status:t,orderResponse:r}=e;console.log("[onGlobalSubscriptionStateChange] data",e),t==="SUCCESS"&&(r!=null&&r.subPlanId||r!=null&&r.tickedId)&&I.onEnvConfigChanged({hostUserInfo:{isLogin:!0,isSubUser:!0}})});Tf=new Map;Ne("onSubscritptionStateChange",e=>{var o,a;let{subUUID:t,status:r,orderResponse:n}=e;console.log("[onSubscritptionStateChange] data",e);let i=Tf.get(t);if(i){if(r==="SUCCESS")i.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{subPlanId:(o=n==null?void 0:n.subPlanId)!=null?o:n.tickedId}});else{if(r==="FAILED"&&ga(n==null?void 0:n.errNo)&&(n==null?void 0:n.errNo)!==0)throw St(`subscription failed: ${n==null?void 0:n.errMsg}`,kn.SubscriptionFailed);i.resolve({code:r,message:(a=n==null?void 0:n.errMsg)!=null?a:"UNKNOWN_ERROR"})}Tf.delete(t)}});tx=e=>y(void 0,null,function*(){var n,i;let t=new st,r;try{if(console.log("[internalSubscribe] requestSubscriptionSync params",e),r=(n=j("requestSubscriptionSync",T({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 St("subUUID is null",1002);Tf.set(r,t)}catch(o){throw St((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Rf=class extends Jo{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return y(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:I.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return y(this,null,function*(){return yield tx(r)})}},Of=class extends Jo{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return y(this,null,function*(){var o,a;console.log("----start place order for iOS subscription----");let n=j("envSync"),i=(a=(o=n==null?void 0:n.data)==null?void 0:o.hostUserInfo)==null?void 0:a.appAccountToken;if(!i)throw St("appAccountToken is null",1002);return this.subscriptionToken=i,{code:"SUCCESS",message:"placeorder sub-app success in native"}})}cancelOrder(r){return y(this,null,function*(){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})})}generateSubscriptionContext(){return{gameId:I.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return y(this,null,function*(){return yield tx(F(T({},r),{appAccountToken:this.subscriptionToken}))})}},H3={android:Rf,ios:Of}});var An,Nf=P(()=>{"use strict";Pf();ex();kf();nx();Pf();An=ZA();Bo.registerSubscriptionHandler("SUB_APP",rx())});var sx=h(ax=>{"use strict";jo();Fe();nr();Ke();Nf();rr();var $3={SUBSCRIPTION:{frequencyConfigKey:"joinMember",frequencyChecker:CA,frequencyUpdater:NA}},ix=yn(),ox=je(q,Gt);ox.getData();q.on(Ac,e=>y(ax,null,function*(){let t=$3.SUBSCRIPTION;if(!gt("invokeSubscriptionPanelSync")){console.info("invokeSubscriptionPanelSync not supported"),setTimeout(()=>{q.emit(Sn,{result:"FAILED"})},0);return}yield ix.show({duration:3e3});let r=yield ox.getData(),{canShow:n,isFirst:i}=yield t.frequencyChecker(r.joliCoinUseAndCharge[t.frequencyConfigKey]);if(ix.hide(),!n){q.emit(Sn,{result:"FAILED"});return}let{data:o,code:a}=yield An.invokeSubscriptionPanel();a=="SUCCESS"&&(o!=null&&o.subPlanId)?q.emit(Sn,{result:"SUCCESS"}):q.emit(Sn,{result:"FAILED"}),yield t.frequencyUpdater()}))});var Xte,Zte,ere,tre,cx=P(()=>{"use strict";Xte=se(qA()),Zte=se(KA()),ere=se(QA()),tre=se(sx())});function n4(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function i4(e){return typeof e=="string"}function o4(e){return typeof e=="undefined"}function a4(e){return o4(e)||e===null}function s4(e){return typeof e=="function"}function Fx(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 Ho(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function Jc(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 m4(e){let t=e.location?Jc(e.location,mx):null,r=e.target?Jc(e.target,mx):null;return Jc(e4(Z3({},e),{location:t,target:r}),p4)}function h4(e){let t=e.events.map(n=>m4(n)),r=Jc(e.device,f4);return[e.protocolVersion,t,r,e.project]}function g4(){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 w4(e){return new Promise(t=>Jx(e)(t))}function Jx(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 S4(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Ko(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 E4(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)k4(e[n],t[n])}function k4(e,t){if(i4(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(s4(t)){try{if(e instanceof t)return}catch(r){}if(!a4(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 ut(e,t,r){return(t=C4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C4(e){var t=A4(e,"string");return typeof t=="symbol"?t:t+""}function A4(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 jc(e,t,r){return(t=x4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x4(e){var t=P4(e,"string");return typeof t=="symbol"?t:t+""}function P4(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 Gc(e,t,r){return(t=T4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T4(e){var t=R4(e,"string");return typeof t=="symbol"?t:t+""}function R4(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 Cr(e,t,r){return(t=O4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O4(e){var t=N4(e,"string");return typeof t=="symbol"?t:t+""}function N4(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 D4(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 L4(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 G4(e,t){return $e(e,0)^45?(((t<<2^$e(e,0))<<2^$e(e,1))<<2^$e(e,2))<<2^$e(e,3):0}function Vx(e){return e.trim()}function B4(e,t){return(e=t.exec(e))?e[0]:e}function X(e,t,r){return e.replace(t,r)}function zf(e,t){return e.indexOf(t)}function $e(e,t){return e.charCodeAt(t)|0}function Yo(e,t,r){return e.slice(t,r)}function or(e){return e.length}function dm(e){return e.length}function Bc(e,t){return t.push(e),e}function J4(e,t){return e.map(t).join("")}function il(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:nl,column:_i,length:a,return:""}}function Vo(e,t){return j4(il("",null,null,"",null,null,0),e,{length:-e.length},t)}function H4(){return Re}function $4(){return Re=pt>0?$e(wi,--pt):0,_i--,Re===10&&(_i=1,nl--),Re}function Et(){return Re=pt<Wx?$e(wi,pt++):0,_i++,Re===10&&(_i=1,nl++),Re}function ar(){return $e(wi,pt)}function Hc(){return pt}function Xo(e,t){return Yo(wi,e,t)}function Qo(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 zx(e){return nl=_i=1,Wx=or(wi=e),pt=0,[]}function Kx(e){return wi="",e}function $c(e){return Vx(Xo(pt-1,Kf(e===91?e+2:e===40?e+1:e)))}function V4(e){for(;(Re=ar())&&Re<33;)Et();return Qo(e)>2||Qo(Re)>3?"":" "}function W4(e,t){for(;--t&&Et()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return Xo(e,Hc()+(t<6&&ar()==32&&Et()==32))}function Kf(e){for(;Et();)switch(Re){case e:return pt;case 34:case 39:e!==34&&e!==39&&Kf(Re);break;case 40:e===41&&Kf(e);break;case 92:Et();break}return pt}function z4(e,t){for(;Et()&&e+Re!==57&&!(e+Re===84&&ar()===47););return"/*"+Xo(t,pt-1)+"*"+rl(e===47?e:Et())}function K4(e){for(;!Qo(ar());)Et();return Xo(e,pt)}function Y4(e){return Kx(Vc("",null,null,null,[""],e=zx(e),0,[0],e))}function Vc(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,g=1,b=1,v=1,w=0,S="",x=i,A=o,C=n,k=S;b;)switch(m=w,w=Et()){case 40:if(m!=108&&$e(k,u-1)==58){zf(k+=X($c(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=$c(w);break;case 9:case 10:case 13:case 32:k+=V4(m);break;case 92:k+=W4(Hc()-1,7);continue;case 47:switch(ar()){case 42:case 47:Bc(Q4(z4(Et(),Hc()),t,r),c);break;default:k+="/"}break;case 123*g:s[l++]=or(k)*v;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:v==-1&&(k=X(k,/\f/g,"")),f>0&&or(k)-u&&Bc(f>32?yx(k+";",n,r,u-1):yx(X(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(Bc(C=vx(k,t,r,l,d,i,s,S,x=[],A=[],u),o),w===123)if(d===0)Vc(k,t,C,C,x,o,u,s,A);else switch(p===99&&$e(k,3)===110?100:p){case 100:case 108:case 109:case 115:Vc(e,C,C,n&&Bc(vx(e,C,C,0,0,i,s,S,i,x=[],u),A),i,A,u,s,n?x:A);break;default:Vc(k,C,C,C,[""],A,0,s,A)}}l=d=f=0,g=v=1,S=k="",u=a;break;case 58:u=1+or(k),f=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&$4()==125)continue}switch(k+=rl(w),w*g){case 38:v=d>0?1:(k+="\f",-1);break;case 44:s[l++]=(or(k)-1)*v,v=1;break;case 64:ar()===45&&(k+=$c(Et())),p=ar(),d=u=or(S=k+=K4(Hc())),w++;break;case 45:m===45&&or(k)==2&&(g=0)}}return o}function vx(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=dm(p),m=0,g=0,b=0;m<n;++m)for(var v=0,w=Yo(e,u+1,u=F4(g=a[m])),S=e;v<f;++v)(S=Vx(g>0?p[v]+" "+w:X(w,/&\f/g,p[v])))&&(c[b++]=S);return il(e,t,r,i===0?lm:s,c,l,d)}function Q4(e,t,r){return il(e,t,r,Hx,rl(H4()),Yo(e,2,-2),0)}function yx(e,t,r,n){return il(e,t,r,um,Yo(e,0,n),Yo(e,n+1,-1),n)}function bi(e,t){for(var r="",n=dm(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function X4(e,t,r,n){switch(e.type){case U4:if(e.children.length)break;case M4:case um:return e.return=e.return||e.value;case Hx:return"";case $x:return e.return=e.value+"{"+bi(e.children,n)+"}";case lm:e.value=e.props.join(",")}return or(r=bi(e.children,n))?e.return=e.value+"{"+r+"}":""}function Z4(e){var t=dm(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 e$(e){return function(t){t.root||(t=t.return)&&e(t)}}function t$(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Yx(e,t){switch(G4(e,t)){case 5103:return Q+"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 Q+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Q+e+Yc+e+tt+e+e;case 6828:case 4268:return Q+e+tt+e+e;case 6165:return Q+e+tt+"flex-"+e+e;case 5187:return Q+e+X(e,/(\w+).+(:[^]+)/,Q+"box-$1$2"+tt+"flex-$1$2")+e;case 5443:return Q+e+tt+"flex-item-"+X(e,/flex-|-self/,"")+e;case 4675:return Q+e+tt+"flex-line-pack"+X(e,/align-content|flex-|-self/,"")+e;case 5548:return Q+e+tt+X(e,"shrink","negative")+e;case 5292:return Q+e+tt+X(e,"basis","preferred-size")+e;case 6060:return Q+"box-"+X(e,"-grow","")+Q+e+tt+X(e,"grow","positive")+e;case 4554:return Q+X(e,/([^-])(transform)/g,"$1"+Q+"$2")+e;case 6187:return X(X(X(e,/(zoom-|grab)/,Q+"$1"),/(image-set)/,Q+"$1"),e,"")+e;case 5495:case 3959:return X(e,/(image-set\([^]*)/,Q+"$1$`$1");case 4968:return X(X(e,/(.+:)(flex-)?(.*)/,Q+"box-pack:$3"+tt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Q+e+e;case 4095:case 3583:case 4068:case 2532:return X(e,/(.+)-inline(.+)/,Q+"$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(or(e)-1-t>6)switch($e(e,t+1)){case 109:if($e(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+Q+"$2-$3$1"+Yc+($e(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zf(e,"stretch")?Yx(X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($e(e,t+1)!==115)break;case 6444:switch($e(e,or(e)-3-(~zf(e,"!important")&&10))){case 107:return X(e,":",":"+Q)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Q+($e(e,14)===45?"inline-":"")+"box$3$1"+Q+"$2$3$1"+tt+"$2box$3")+e}break;case 5936:switch($e(e,t+11)){case 114:return Q+e+tt+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Q+e+tt+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Q+e+tt+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Q+e+tt+e+e}return e}function u$(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 Qc(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 Yr={name:i.name,styles:i.styles,next:Yr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Yr={name:a.name,styles:a.styles,next:Yr},a=a.next;var s=o.styles+";";return s}return m$(e,t,r)}}var c=r;if(t==null)return c;var l=t[c];return l!==void 0?l:c}function m$(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Qc(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]+"}":_x(s)&&(n+=Lf(o)+":"+wx(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++)_x(a[c])&&(n+=Lf(o)+":"+wx(o,a[c])+";");else{var l=Qc(e,t,a);switch(o){case"animation":case"animationName":{n+=Lf(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function qf(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="";Yr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Qc(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Qc(r,t,e[s]),n){var c=o;i+=c[s]}Sx.lastIndex=0;for(var l="",d;(d=Sx.exec(i))!==null;)l+="-"+d[1];var u=u$(i)+l;return{name:u,styles:i,next:Yr}}function Xx(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function Ix(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Ex(e,t,r){var n=[],i=Xx(e,n,r);return n.length<2?r:i+t(n)}function _$(e,t){Me.__h&&Me.__h(It,e,Cx||t),Cx=0;var r=It.__H||(It.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function eP(e,t){var r=_$(Yf++,7);return I$(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function w$(){for(var e;e=Zx.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Wc),e.__H.__h.forEach(Qf),e.__H.__h=[]}catch(t){e.__H.__h=[],Me.__e(t,e.__v)}}function S$(e){var t,r=function(){clearTimeout(n),Nx&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Nx&&(t=requestAnimationFrame(r))}function Wc(e){var t=It,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),It=t}function Qf(e){var t=It;e.__c=e.__(),It=t}function I$(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ol(){if(Qr>1)Qr--;else{for(var e,t=!1;Wo!==void 0;){var r=Wo;for(Wo=void 0,Xf++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&rP(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Xf=0,Qr--,t)throw e}}function Ve(e){if(Qr>0)return e();Qr++;try{return e()}finally{ol()}}function tP(e){if(ae!==void 0){var t=e.n;if(t===void 0||t.t!==ae)return t={i:0,S:e,p:ae.s,n:void 0,t:ae,e:void 0,x:void 0,r:t},ae.s!==void 0&&(ae.s.n=t),ae.s=t,e.n=t,32&ae.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=ae.s,t.n=void 0,ae.s.n=t,ae.s=t),t}}function We(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function H(e){return new We(e)}function rP(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 nP(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 iP(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 Si(e){We.call(this,void 0),this.x=e,this.s=void 0,this.g=Xc-1,this.f=4}function zo(e){return new Si(e)}function oP(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Qr++;var r=ae;ae=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,pm(e),n}finally{ae=r,ol()}}}function pm(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,oP(e)}function k$(e){if(ae!==this)throw new Error("Out-of-order effect");iP(this),ae=e,this.f&=-2,8&this.f&&pm(this),ol()}function Zo(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function ea(e){var t=new Zo(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Ii(e,t){D[e]=t.bind(null,D[e]||function(){})}function Zc(e){Uf&&Uf(),Uf=e&&e.S()}function cP(e){var t=this,r=e.data,n=lP(r);n.value=r;var i=eP(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=zo(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=zo(function(){return!Array.isArray(l.value)&&!pu(l.value)}),u=ea(function(){if(this.N=uP,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 C$(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=H(r);return{o:function(a,s){o.value=a,n=s},d:ea(function(){this.N=uP;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function lP(e){return eP(function(){return H(e)},[])}function x$(){Ve(function(){for(var e;e=sP.shift();)aP.call(e)})}function uP(){sP.push(this)===1&&(D.requestAnimationFrame||A$)(x$)}function P$(e,t){let r=Yn(e);Kn(()=>{r.current=e},[e]),pn(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function V(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:--T$,__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 D.vnode&&D.vnode(l),l}function Ar(e,t,r){return(t=B$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B$(e){var t=J$(e,"string");return typeof t=="symbol"?t:t+""}function J$(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 ot(e,t,r){return(t=tV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tV(e){var t=rV(e,"string");return typeof t=="symbol"?t:t+""}function rV(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 xr(e,t,r){return(t=aV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aV(e){var t=sV(e,"string");return typeof t=="symbol"?t:t+""}function sV(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 et(e,t,r){return(t=cV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cV(e){var t=lV(e,"string");return typeof t=="symbol"?t:t+""}function lV(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 dt(e,t,r){return(t=uV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uV(e){var t=dV(e,"string");return typeof t=="symbol"?t:t+""}function dV(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 xn(e,t,r){return(t=pV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pV(e){var t=fV(e,"string");return typeof t=="symbol"?t:t+""}function fV(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 Ff(e,t,r){return(t=mV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mV(e){var t=hV(e,"string");return typeof t=="symbol"?t:t+""}function hV(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 at(e,t,r){return(t=gV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gV(e){var t=vV(e,"string");return typeof t=="symbol"?t:t+""}function vV(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 Bt(e,t,r){return(t=yV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yV(e){var t=bV(e,"string");return typeof t=="symbol"?t:t+""}function bV(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 V3,Kc,Lx,qx,lx,W3,z3,Mx,K3,Y3,ux,Q3,X3,dx,Z3,e4,t4,Ux,r4,c4,l4,px,u4,fx,d4,jx,Gx,Bx,mx,p4,f4,gi,hx,jf,ve,v4,y4,$o,Ko,b4,Bf,_4,Df,I4,Jf,gx,mi,Hf,$f,Vf,Wf,q4,tt,Yc,Q,Hx,lm,um,M4,$x,U4,F4,rl,j4,nl,_i,Wx,pt,Re,wi,r$,n$,i$,bx,o$,a$,s$,c$,l$,d$,p$,f$,Qx,_x,Lf,wx,Sx,Yr,h$,g$,v$,y$,b$,rt,Yf,It,Mf,kx,Cx,Zx,Me,Ax,xx,Px,Tx,Rx,Ox,Nx,E$,ae,Wo,Qr,Xf,Xc,aP,Uf,sP,A$,Ue,T$,R$,Pr,Zf,em,zc,O$,N$,D$,L$,q$,M$,U$,F$,j$,G$,tm,H$,$$,V$,W$,z$,K$,Y$,Dx,Q$,X$,Z$,eV,rm,yi,hi,nV,iV,oV,nm,dP,im,om,am,sm,el,cm,tl,ire,pP=P(()=>{"use strict";Fn();ss();V3=Object.defineProperty,Kc=Object.getOwnPropertySymbols,Lx=Object.prototype.hasOwnProperty,qx=Object.prototype.propertyIsEnumerable,lx=(e,t,r)=>t in e?V3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,W3=(e,t)=>{for(var r in t||(t={}))Lx.call(t,r)&&lx(e,r,t[r]);if(Kc)for(var r of Kc(t))qx.call(t,r)&&lx(e,r,t[r]);return e},z3=(e,t)=>{var r={};for(var n in e)Lx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Kc)for(var n of Kc(e))t.indexOf(n)<0&&qx.call(e,n)&&(r[n]=e[n]);return r},Mx=Object.defineProperty,K3=Object.defineProperties,Y3=Object.getOwnPropertyDescriptors,ux=Object.getOwnPropertySymbols,Q3=Object.prototype.hasOwnProperty,X3=Object.prototype.propertyIsEnumerable,dx=(e,t,r)=>t in e?Mx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Z3=(e,t)=>{for(var r in t||(t={}))Q3.call(t,r)&&dx(e,r,t[r]);if(ux)for(var r of ux(t))X3.call(t,r)&&dx(e,r,t[r]);return e},e4=(e,t)=>K3(e,Y3(t)),t4=(e,t)=>{for(var r in t)Mx(e,r,{get:t[r],enumerable:!0})},Ux=(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},r4=(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}c4=(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))(c4||{});l4={log:Ho("log"),warn:Ho("warn"),info:Ho("info"),error:Ho("error"),debug:Ho("debug")};Object.assign(globalThis,{logger:l4});px=Symbol.for("Jolibox.canIUseMap"),u4={};globalThis[px]||(globalThis[px]=u4);fx=Symbol.for("Jolibox.canIUseMap.native"),d4={};globalThis[fx]||(globalThis[fx]=d4);jx=(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))(jx||{}),Gx=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Gx||{}),Bx=(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))(Bx||{}),mx=["name","params"],p4=["name","type","location","target","extra","timestamp","userId"],f4=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];g4();gi=typeof window=="undefined",hx=()=>!gi&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!gi&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!gi&&navigator.userAgent.includes("Android"),!gi&&navigator.userAgent.includes("Mac"),!gi&&navigator.userAgent.includes("FB_IAB"),!gi&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");jf=class Gf{constructor(t){this.element=t,this.next=Gf.Undefined,this.prev=Gf.Undefined}};jf.Undefined=new jf(void 0);ve=jf,v4=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}},y4=0,$o=class{constructor(e){this.value=e,this.id=y4++}},Ko=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 $o&&(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 $o(e);return this._listeners?this._listeners instanceof $o?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 $o)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 $o?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},b4=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 Ko,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 v4,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)}},Bf={};t4(Bf,{None:()=>_4,filter:()=>S4,once:()=>Jx,toPromise:()=>w4});_4=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Df=Symbol.for("Jolibox.hostEmitter"),I4=()=>{let e=new b4;return globalThis[Df]||(globalThis[Df]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Df]};I4();Jf=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Ko,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 E4(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}};Jf=Ux([Fx],Jf);gx=class{constructor(){this._onWillExecuteCommand=new Ko,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Ko,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Jf,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=n4(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 r4(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Bf.toPromise(Bf.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{}}};gx=Ux([Fx],gx);mi=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")},Hf=class{constructor(t){ut(this,"context",void 0),ut(this,"continueCallback",void 0),ut(this,"adIsShowingCallback",void 0),ut(this,"isBeforeAdCalled",!1),ut(this,"isBeforeRewardCalled",!1),ut(this,"isAdDismissedCalled",!1),ut(this,"isAdViewedCalled",!1),ut(this,"isAfterAdCalled",!1),ut(this,"currentProvider",void 0),ut(this,"currentClientParams",void 0),ut(this,"adsHasResponse",!1),ut(this,"videoChecker",window.document.createElement("video")),ut(this,"contextInfo",void 0),ut(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",W3({userEvent:a},this.paramsToTrack)),hx()&&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=mi(r);s==null||s()}),this.context=t,this.contextInfo=t.getContextInfo()}notifyIframeAdsEvent(t,r){window.parent&&window.parent.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=mi(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),hx()&&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=mi(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=mi(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=mi(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=mi(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 y(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")})})}};$f=class{constructor(t){jc(this,"context",void 0),jc(this,"adBreakIsShowing",!1),jc(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),jc(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()})}};Vf=class{constructor(t){Gc(this,"configs",null),Gc(this,"firstRun",!0),Gc(this,"context",void 0),Gc(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return y(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}};Wf=class{constructor(t,r){Cr(this,"name","ADSENSE"),Cr(this,"context",void 0),Cr(this,"contextInfo",void 0),Cr(this,"configured",!1),Cr(this,"initParams",void 0),Cr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),Cr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=z3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),Cr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),Cr(this,"adUnit",n=>y(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 g=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),g&&b.setAttribute("data-ad-format",g),u&&b.setAttribute("data-full-width-responsive",u),p&&b.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",b.style.position="relative",f.appendChild(b),b.appendChild(v)}else f.appendChild(b),new MutationObserver(v=>{v.forEach(w=>{if(w.type==="attributes"&&w.attributeName==="data-ad-status"){let S=b.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:S!=null?S:"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 y(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)}})}};q4=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(L4(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=D4(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}(),tt="-ms-",Yc="-moz-",Q="-webkit-",Hx="comm",lm="rule",um="decl",M4="@import",$x="@keyframes",U4="@layer",F4=Math.abs,rl=String.fromCharCode,j4=Object.assign;nl=1,_i=1,Wx=0,pt=0,Re=0,wi="";r$=function(e,t,r){for(var n=0,i=0;n=i,i=ar(),n===38&&i===12&&(t[r]=1),!Qo(i);)Et();return Xo(e,pt)},n$=function(e,t){var r=-1,n=44;do switch(Qo(n)){case 0:n===38&&ar()===12&&(t[r]=1),e[r]+=r$(pt-1,t,r);break;case 2:e[r]+=$c(n);break;case 4:if(n===44){e[++r]=ar()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=rl(n)}while(n=Et());return e},i$=function(e,t){return Kx(n$(zx(e),t))},bx=new WeakMap,o$=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&&!bx.get(r))&&!n){bx.set(e,!0);for(var i=[],o=i$(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]}}},a$=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};s$=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case um:e.return=Yx(e.value,e.length);break;case $x:return bi([Vo(e,{value:X(e.value,"@","@"+Q)})],n);case lm:if(e.length)return J4(e.props,function(i){switch(B4(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bi([Vo(e,{props:[X(i,/:(read-\w+)/,":"+Yc+"$1")]})],n);case"::placeholder":return bi([Vo(e,{props:[X(i,/:(plac\w+)/,":"+Q+"input-$1")]}),Vo(e,{props:[X(i,/:(plac\w+)/,":"+Yc+"$1")]}),Vo(e,{props:[X(i,/:(plac\w+)/,tt+"input-$1")]})],n)}return""})}},c$=[s$],l$=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 g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||c$,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(m)});var s,c=[o$,a$];{var l,d=[X4,e$(function(m){l.insert(m)})],u=Z4(c.concat(n,d)),p=function(m){return bi(Y4(m),u)};s=function(m,g,b,v){l=b,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new q4({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};d$={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},p$=/[A-Z]|^ms/g,f$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qx=function(e){return e.charCodeAt(1)===45},_x=function(e){return e!=null&&typeof e!="boolean"},Lf=t$(function(e){return Qx(e)?e:e.replace(p$,"-$&").toLowerCase()}),wx=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(f$,function(r,n,i){return Yr={name:n,styles:i,next:Yr},n})}return d$[e]!==1&&!Qx(e)&&typeof t=="number"&&t!==0?t+"px":t};Sx=/label:\s*([^\s;{]+)\s*(;|$)/g;h$=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},g$=function(e,t,r){h$(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)}};v$=function(e){var t=l$(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=qf(s,t.registered,void 0);return g$(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=qf(s,t.registered),d="animation-"+l.name;return Ix(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=qf(s,t.registered);Ix(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return Ex(t.registered,r,y$(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:Xx.bind(null,t.registered),merge:Ex.bind(null,t.registered,r)}},y$=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},b$=v$({key:"css"}),rt=b$.css,Cx=0,Zx=[],Me=D,Ax=Me.__b,xx=Me.__r,Px=Me.diffed,Tx=Me.__c,Rx=Me.unmount,Ox=Me.__;Me.__b=function(e){It=null,Ax&&Ax(e)},Me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ox&&Ox(e,t)},Me.__r=function(e){xx&&xx(e),Yf=0;var t=(It=e.__c).__H;t&&(Mf===It?(t.__h=[],It.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Wc),t.__h.forEach(Qf),t.__h=[],Yf=0)),Mf=It},Me.diffed=function(e){Px&&Px(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Zx.push(t)!==1&&kx===Me.requestAnimationFrame||((kx=Me.requestAnimationFrame)||S$)(w$)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Mf=It=null},Me.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Wc),r.__h=r.__h.filter(function(n){return!n.__||Qf(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Me.__e(n,r.__v)}}),Tx&&Tx(e,t)},Me.unmount=function(e){Rx&&Rx(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Wc(n)}catch(i){t=i}}),r.__H=void 0,t&&Me.__e(t,r.__v))};Nx=typeof requestAnimationFrame=="function";E$=Symbol.for("preact-signals");ae=void 0,Wo=void 0,Qr=0,Xf=0,Xc=0;We.prototype.brand=E$;We.prototype.h=function(){return!0};We.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)};We.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)}};We.prototype.subscribe=function(e){var t=this;return ea(function(){var r=t.value,n=ae;ae=void 0;try{e(r)}finally{ae=n}})};We.prototype.valueOf=function(){return this.value};We.prototype.toString=function(){return this.value+""};We.prototype.toJSON=function(){return this.value};We.prototype.peek=function(){var e=ae;ae=void 0;try{return this.value}finally{ae=e}};Object.defineProperty(We.prototype,"value",{get:function(){var e=tP(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Xf>100)throw new Error("Cycle detected");this.v=e,this.i++,Xc++,Qr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{ol()}}}});(Si.prototype=new We).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Xc))return!0;if(this.g=Xc,this.f|=1,this.i>0&&!rP(this))return this.f&=-2,!0;var e=ae;try{nP(this),ae=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 ae=e,iP(this),this.f&=-2,!0};Si.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)}We.prototype.S.call(this,e)};Si.prototype.U=function(e){if(this.t!==void 0&&(We.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)}};Si.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(Si.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=tP(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Zo.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()}};Zo.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,oP(this),nP(this),Qr++;var e=ae;return ae=this,k$.bind(this,e)};Zo.prototype.N=function(){2&this.f||(this.f|=2,this.o=Wo,Wo=this)};Zo.prototype.d=function(){this.f|=8,1&this.f||pm(this)};sP=[];ea(function(){aP=this.N})();cP.displayName="_st";Object.defineProperties(We.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:cP},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Ii("__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 We&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Ii("__r",function(e,t){Zc();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return ea(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Zc(r),e(t)});Ii("__e",function(e,t,r,n){Zc(),e(t,r,n)});Ii("diffed",function(e,t){Zc();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=C$(r,c,d,i),o[c]=l):l.o(d,i)}}}e(t)});Ii("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)});Ii("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});yt.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};A$=function(e){queueMicrotask(function(){queueMicrotask(e)})};Ue=rt`
|
|
623
623
|
inset: 0;
|
|
624
624
|
clear: none;
|
|
625
625
|
float: none;
|
|
@@ -637,8 +637,8 @@ 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
|
-
`;
|
|
641
|
-
${
|
|
640
|
+
`;T$=0;R$=rt`
|
|
641
|
+
${Ue}
|
|
642
642
|
position: fixed;
|
|
643
643
|
top: 0;
|
|
644
644
|
left: 0;
|
|
@@ -651,7 +651,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
651
651
|
height: 100vh;
|
|
652
652
|
|
|
653
653
|
.card-wrapper {
|
|
654
|
-
${
|
|
654
|
+
${Ue}
|
|
655
655
|
position: relative;
|
|
656
656
|
display: flex;
|
|
657
657
|
flex-direction: column;
|
|
@@ -665,7 +665,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
665
665
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
666
666
|
|
|
667
667
|
.body {
|
|
668
|
-
${
|
|
668
|
+
${Ue}
|
|
669
669
|
display: flex;
|
|
670
670
|
flex-direction: column;
|
|
671
671
|
width: 100%;
|
|
@@ -674,7 +674,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
674
674
|
box-sizing: border-box;
|
|
675
675
|
justify-content: center;
|
|
676
676
|
.title {
|
|
677
|
-
${
|
|
677
|
+
${Ue}
|
|
678
678
|
text-align: center;
|
|
679
679
|
font-size: 16px;
|
|
680
680
|
font-weight: bold;
|
|
@@ -682,7 +682,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
682
682
|
}
|
|
683
683
|
|
|
684
684
|
.content {
|
|
685
|
-
${
|
|
685
|
+
${Ue}
|
|
686
686
|
font-size: 14px;
|
|
687
687
|
color: #888;
|
|
688
688
|
margin-bottom: 16px;
|
|
@@ -690,13 +690,13 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
690
690
|
}
|
|
691
691
|
|
|
692
692
|
.footer {
|
|
693
|
-
${
|
|
693
|
+
${Ue}
|
|
694
694
|
display: flex;
|
|
695
695
|
align-items: center;
|
|
696
696
|
width: 100%;
|
|
697
697
|
height: 40px;
|
|
698
698
|
button {
|
|
699
|
-
${
|
|
699
|
+
${Ue}
|
|
700
700
|
border: none;
|
|
701
701
|
outline: none;
|
|
702
702
|
height: 100%;
|
|
@@ -712,8 +712,8 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
}
|
|
715
|
-
`,
|
|
716
|
-
${
|
|
715
|
+
`,Pr=H(null),Zf=H(""),em=H(""),zc=H(!1),O$=()=>{var e;(e=Pr.value)==null||e.call(Pr,!1)},N$=()=>{var e;(e=Pr.value)==null||e.call(Pr,!0)},D$=e=>y(void 0,null,function*(){let{title:t,content:r}=e;return Pr.value&&(Pr.value(!1),Ve(()=>{Pr.value=null,zc.value=!1})),Ve(()=>{Zf.value=t||"",em.value=r||"",zc.value=!0}),new Promise(n=>{Pr.value=i=>{Ve(()=>{Pr.value=null,zc.value=!1,Zf.value="",em.value=""}),n(i)}})}),L$=()=>zc.value?V("div",{className:R$,children:V("div",{className:"card-wrapper",children:[V("div",{className:"body",children:[V("div",{className:"title",children:Zf.value}),V("div",{className:"content",children:em.value})]}),V("div",{className:"footer",children:[V("button",{onClick:O$,className:"cancel-btn",children:"Cancel"}),V("button",{onClick:N$,className:"confirm-btm",children:"Confirm"})]})]})}):null,q$=rt`
|
|
716
|
+
${Ue}
|
|
717
717
|
position: relative;
|
|
718
718
|
display: flex;
|
|
719
719
|
align-items: center;
|
|
@@ -731,7 +731,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
731
731
|
}
|
|
732
732
|
|
|
733
733
|
button {
|
|
734
|
-
${
|
|
734
|
+
${Ue}
|
|
735
735
|
padding: 0 20px;
|
|
736
736
|
height: 30px;
|
|
737
737
|
line-height: 30px;
|
|
@@ -745,8 +745,8 @@ 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
|
-
`,
|
|
749
|
-
${
|
|
748
|
+
`,M$=()=>{let e=H(!1),t=H(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{Ve(()=>{t.value=Date.now(),e.value=!1})}}},U$=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=lP(t);P$(()=>{s.value>0?s.value-=1:Ve(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let c=zo(()=>{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=zo(()=>{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=zo(()=>r==="interstitial"?!1:!c.value&&!l.value),u=()=>y(void 0,null,function*(){if(a.value=!0,!(yield D$({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),Ve(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),Ve(()=>{a.value=!0,s.value=0,o.value=null})};return V("div",{className:q$,children:[s.value>0&&r!=="interstitial"&&V("div",{className:"timer",children:[s.value,"s"]}),V("button",{onClick:c.value?u:l.value?p:void 0,disabled:d.value,children:V("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:V("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"})})})]})},F$=()=>{let e=H(),t=H(),r=H(),n=H(),i=H(),o=H(!1),a=H(15),s=H(""),c=H("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:c}},j$=rt`
|
|
749
|
+
${Ue}
|
|
750
750
|
position: fixed;
|
|
751
751
|
z-index: 2147483647;
|
|
752
752
|
background: white;
|
|
@@ -756,7 +756,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
756
756
|
flex-direction: column;
|
|
757
757
|
|
|
758
758
|
iframe {
|
|
759
|
-
${
|
|
759
|
+
${Ue}
|
|
760
760
|
flex: 1;
|
|
761
761
|
position: relative;
|
|
762
762
|
display: block;
|
|
@@ -764,8 +764,91 @@ 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
|
-
`,
|
|
768
|
-
${
|
|
767
|
+
`,G$=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(()=>M$(),[]),[p,f]=hr(!1),m=b=>{var v,w,S,x;s.value=!1,b==="dismiss"?(v=n.value)==null||v.call(n):b==="viewed"&&((w=i.value)==null||w.call(i)),(S=r.value)==null||S.call(r),(x=o.value)==null||x.call(o),f(!1)},g=Fr(()=>{var b;p||(f(!0),(b=a.value)==null||b.call(a))},[p]);return pn(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?V("div",{className:j$,children:[V(U$,{mode:d.value,onClose:m,countdown:c.value,state:u}),s.value&&V("iframe",{src:l.value,onLoad:g,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"}),V(L$,{})]}):null};tm=class{constructor(t,r){Ar(this,"name","OKSPIN"),Ar(this,"initialized",!1),Ar(this,"initCompleter",null),Ar(this,"context",void 0),Ar(this,"initParams",void 0),Ar(this,"adsOverlay",null),Ar(this,"adsIsShowing",!1),Ar(this,"lastUnDisplayedAdBreak",null),Ar(this,"state",F$()),this.context=t,this.initParams=r}init(){return y(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),as(V(G$,{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 y(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"})};Ve(()=>{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 v;this.adsIsShowing=!1,(v=t.afterAd)==null||v.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var v;this.adsIsShowing=!1,p.breakStatus="dismissed",(v=t.adDismissed)==null||v.call(t)},m=()=>{var v;this.adsIsShowing=!1,p.breakStatus="viewed",(v=t.adViewed)==null||v.call(t)},g=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,p)};Ve(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=m,this.state.adBreakDone.value=g});let b=()=>{var v;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,Ve(()=>{var w;this.state.countdown.value=(w=r.params.countdown)!=null?w: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}}})}},H$=()=>{let e=H(null),t=H(null),r=H(null),n=H(null),i=H(null),o=H(null),a=H(!1),s=H(null);return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adError:o,visible:a,payload:s}},$$=rt`
|
|
768
|
+
${Ue}
|
|
769
|
+
position: fixed;
|
|
770
|
+
inset: 0;
|
|
771
|
+
z-index: 2147483647;
|
|
772
|
+
display: flex;
|
|
773
|
+
background: #000000;
|
|
774
|
+
`,V$=rt`
|
|
775
|
+
${Ue}
|
|
776
|
+
position: relative;
|
|
777
|
+
width: 100%;
|
|
778
|
+
height: 100%;
|
|
779
|
+
display: flex;
|
|
780
|
+
flex-direction: column;
|
|
781
|
+
color: #f7f9fc;
|
|
782
|
+
`,W$=rt`
|
|
783
|
+
position: absolute;
|
|
784
|
+
top: 24px;
|
|
785
|
+
left: 24px;
|
|
786
|
+
display: flex;
|
|
787
|
+
flex-direction: column;
|
|
788
|
+
gap: 6px;
|
|
789
|
+
padding: 12px 16px;
|
|
790
|
+
border-radius: 999px;
|
|
791
|
+
background: rgba(0, 0, 0, 0.65);
|
|
792
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
793
|
+
`,z$=rt`
|
|
794
|
+
font-size: 11px;
|
|
795
|
+
letter-spacing: 0.08em;
|
|
796
|
+
text-transform: uppercase;
|
|
797
|
+
color: #c7d4ef;
|
|
798
|
+
`,K$=rt`
|
|
799
|
+
font-size: 14px;
|
|
800
|
+
font-weight: 500;
|
|
801
|
+
`,Y$=rt`
|
|
802
|
+
${Ue}
|
|
803
|
+
flex: 1;
|
|
804
|
+
background: #050505;
|
|
805
|
+
display: flex;
|
|
806
|
+
align-items: center;
|
|
807
|
+
justify-content: center;
|
|
808
|
+
padding: 0;
|
|
809
|
+
`,Dx=rt`
|
|
810
|
+
width: 100%;
|
|
811
|
+
height: 100%;
|
|
812
|
+
border: 2px dashed rgba(255, 255, 255, 0.08);
|
|
813
|
+
display: flex;
|
|
814
|
+
align-items: center;
|
|
815
|
+
justify-content: center;
|
|
816
|
+
color: #6e7da1;
|
|
817
|
+
font-size: 14px;
|
|
818
|
+
`,Q$=rt`
|
|
819
|
+
position: absolute;
|
|
820
|
+
bottom: 32px;
|
|
821
|
+
right: 32px;
|
|
822
|
+
display: flex;
|
|
823
|
+
gap: 12px;
|
|
824
|
+
`,X$=rt`
|
|
825
|
+
min-width: 160px;
|
|
826
|
+
min-height: 48px;
|
|
827
|
+
border-radius: 999px;
|
|
828
|
+
border: none;
|
|
829
|
+
padding: 0 32px;
|
|
830
|
+
font-size: 15px;
|
|
831
|
+
font-weight: 600;
|
|
832
|
+
background: rgba(255, 255, 255, 0.08);
|
|
833
|
+
color: #f1f5ff;
|
|
834
|
+
cursor: pointer;
|
|
835
|
+
|
|
836
|
+
&:disabled {
|
|
837
|
+
opacity: 0.4;
|
|
838
|
+
cursor: not-allowed;
|
|
839
|
+
}
|
|
840
|
+
`,Z$=rt`
|
|
841
|
+
min-width: 120px;
|
|
842
|
+
min-height: 44px;
|
|
843
|
+
border-radius: 999px;
|
|
844
|
+
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
845
|
+
background: rgba(0, 0, 0, 0.5);
|
|
846
|
+
color: white;
|
|
847
|
+
font-size: 14px;
|
|
848
|
+
font-weight: 500;
|
|
849
|
+
cursor: pointer;
|
|
850
|
+
`,eV=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adError:s,visible:c,payload:l}=t,[d,u]=hr(!1),[p,f]=hr(0),[m,g]=hr(!1),[b,v]=hr(!1),[w,S]=hr("Loading next content..."),x=Yn(null),A=l.value,C=Fr(N=>{var R,U,Z,ie;u(!1),c.value=!1,N==="dismiss"?(R=n.value)==null||R.call(n):(U=i.value)==null||U.call(i),(Z=r.value)==null||Z.call(r),(ie=o.value)==null||ie.call(o)},[c,n,i,r,o]),k=Fr(()=>{var N;u(!1),c.value=!1,(N=s.value)==null||N.call(s)},[c,s]);if(pn(()=>{var N;if(!c.value||!A){f(0),g(!1),v(!1),S("Loading next content...");return}let R=A.mode==="reward"?15:0,U=Math.max(Math.floor((N=A.countdown)!=null?N:R),0);if(f(U),v(A.mode==="reward"?U===0:!0),g(A.mode==="interstitial"?U===0:!1),U===0)return;let Z=U,ie=window.setInterval(()=>{Z-=1,f(Math.max(Z,0)),Z<=0&&(window.clearInterval(ie),A.mode==="reward"?v(!0):g(!0))},1e3);return()=>{window.clearInterval(ie)}},[c.value,A,C]),pn(()=>{var N;if(!c.value||!A)return;let R=x.current;if(!R)return;if(R.innerHTML="",S("Loading next content..."),u(!1),A.testMode){let ie=document.createElement("div");ie.className=Dx,ie.innerText="Preview slot placeholder",R.appendChild(ie),u(!0),(N=a.value)==null||N.call(a);return}if(typeof window=="undefined"){k();return}let U=document.createElement("ins");U.className="adsbygoogle",U.style.display="block",U.style.width="100%",U.style.height="100%",U.setAttribute("data-ad-client",A.clientId),U.setAttribute("data-ad-slot",A.unitId),U.setAttribute("data-ad-format","auto"),U.setAttribute("data-full-width-responsive","true"),A.channelId&&U.setAttribute("data-ad-channel",A.channelId),R.appendChild(U);let Z=new MutationObserver(()=>{var ie;let cr=U.getAttribute("data-ad-status");cr==="filled"?(u(!0),S(""),(ie=a.value)==null||ie.call(a),Z.disconnect()):cr==="unfilled"&&(S("Slot currently unavailable."),u(!1),Z.disconnect())});Z.observe(U,{attributes:!0,attributeFilter:["data-ad-status"]});try{let ie=window;ie.adsbygoogle=ie.adsbygoogle||[],ie.adsbygoogle.push({})}catch(ie){Z.disconnect(),k()}return()=>{Z.disconnect(),R.innerHTML=""}},[c.value,A,a,k]),!c.value||!A)return null;let B=A.mode==="reward"?"Next content unlocking":"Content paused",le=p>0?`Content resumes in ${p}s`:"Content ready";return V("div",{className:$$,children:V("div",{className:V$,children:[V("div",{className:W$,children:[V("div",{className:z$,children:B}),V("div",{className:K$,children:le})]}),V("div",{className:Y$,ref:x,children:!d&&V("div",{className:Dx,children:w})}),V("div",{className:Q$,children:A.mode==="reward"?V("button",{className:X$,type:"button",onClick:()=>C("viewed"),disabled:!b,children:b?"Continue":`Continue in ${p}s`}):m&&V("button",{className:Z$,type:"button",onClick:()=>C("viewed"),children:"Continue"})})]})})};rm=class{constructor(t,r){if(ot(this,"name","ADSENSE_BANNER_AS_AFG"),ot(this,"initialized",!1),ot(this,"initCompleter",null),ot(this,"context",void 0),ot(this,"contextInfo",void 0),ot(this,"initParams",void 0),ot(this,"defaultCountdown",5),ot(this,"adsOverlay",null),ot(this,"adsIsShowing",!1),ot(this,"lastUnDisplayedAdBreak",null),ot(this,"requestCounter",0),ot(this,"scriptPromise",null),ot(this,"scriptReady",!1),ot(this,"scriptFailed",!1),ot(this,"state",H$()),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,typeof window!="undefined"){let n=window;n.adsbygoogle=n.adsbygoogle||[]}}init(){return y(this,null,function*(){var t;if(typeof document!="undefined"){this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-banner-as-afg"),as(V(eV,{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 g={breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"},b=()=>{var S;this.adsIsShowing=!1,(S=t.afterAd)==null||S.call(t)},v=()=>{var S;this.adsIsShowing=!1,(S=t.adBreakDone)==null||S.call(t,g)},w=()=>{var S,x;this.adsIsShowing=!1,g.breakStatus="noAdPreloaded",(S=t.afterAd)==null||S.call(t),(x=t.adBreakDone)==null||x.call(t,g)};Ve(()=>{this.adsIsShowing=!0,this.state.afterAd.value=b,this.state.adBreakDone.value=v,this.state.adDismissed.value=null,this.state.adViewed.value=null,this.state.adError.value=w,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 g={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},b=()=>{var C;this.adsIsShowing=!1,(C=t.afterAd)==null||C.call(t)},v=()=>{var C;this.adsIsShowing=!1,g.breakStatus="dismissed",(C=t.adDismissed)==null||C.call(t)},w=()=>{var C;this.adsIsShowing=!1,g.breakStatus="viewed",(C=t.adViewed)==null||C.call(t)},S=()=>{var C;this.adsIsShowing=!1,(C=t.adBreakDone)==null||C.call(t,g)},x=()=>{var C,k;this.adsIsShowing=!1,g.breakStatus="noAdPreloaded",(C=t.afterAd)==null||C.call(t),(k=t.adBreakDone)==null||k.call(t,g)};Ve(()=>{this.state.afterAd.value=b,this.state.adDismissed.value=v,this.state.adViewed.value=w,this.state.adBreakDone.value=S,this.state.adError.value=x});let A=()=>{var C,k;if(!this.canDisplay(m.rewardUnitId)){this.lastUnDisplayedAdBreak=null,(C=t.afterAd)==null||C.call(t),(k=t.adBreakDone)==null||k.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.lastUnDisplayedAdBreak=null,this.adsIsShowing=!0,Ve(()=>{this.showBannerOverlay("reward",m)})};this.lastUnDisplayedAdBreak=t,(u=t.beforeReward)==null||u.call(t,A);break}}}},yi={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||yi[e.data.type]&&yi[e.data.type].forEach(t=>{t(e.data.data)})});hi=(e,t)=>{pn(()=>(yi[e]||(yi[e]=new Set),yi[e].add(t),()=>{yi[e].delete(t)}),[e,t])},nV=()=>{let e=H(),t=H(),r=H(),n=H(),i=H(),o=H(),a=H(),s=H(!1),c=H("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:c}},iV=rt`
|
|
851
|
+
${Ue}
|
|
769
852
|
position: fixed;
|
|
770
853
|
z-index: 2147483647;
|
|
771
854
|
background: white;
|
|
@@ -775,7 +858,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
775
858
|
flex-direction: column;
|
|
776
859
|
|
|
777
860
|
iframe {
|
|
778
|
-
${
|
|
861
|
+
${Ue}
|
|
779
862
|
flex: 1;
|
|
780
863
|
position: relative;
|
|
781
864
|
display: block;
|
|
@@ -783,8 +866,8 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
783
866
|
width: 100%;
|
|
784
867
|
height: 100%;
|
|
785
868
|
}
|
|
786
|
-
`,J$=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:c,src:l}=t,[d,u]=rs(!1),p=m=>{var g,b,v,w;u(!1),c.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((b=i.value)==null||b.call(i)),(v=r.value)==null||v.call(r),(w=o.value)==null||w.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return ui("appsrockets_ad_dismissed",()=>p("dismiss")),ui("appsrockets_ad_rewarded",()=>p("viewed")),ui("appsrockets_ad_completed",()=>p("viewed")),ui("appsrockets_ad_skipped",()=>p("viewed")),ui("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),ui("appsrockets_ad_loaded",()=>u(!0)),c.value?Ie("div",{className:B$,style:{display:d?"flex":"none"},children:c.value&&Ie("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};em=class{constructor(t,r){Ir(this,"name","APPSROCKETS"),Ir(this,"initialized",!1),Ir(this,"initCompleter",null),Ir(this,"context",void 0),Ir(this,"adsOverlay",null),Ir(this,"adsIsShowing",!1),Ir(this,"lastUnDisplayedAdBreak",null),Ir(this,"state",G$()),Ir(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return y(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),cd(Ie(J$,{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=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)};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 p=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},f=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},m=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};ct(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=m,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 p=()=>{var E;this.adsIsShowing=!1,(E=t.afterAd)==null||E.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var E;this.adsIsShowing=!1,f.breakStatus="dismissed",(E=t.adDismissed)==null||E.call(t)},g=()=>{var E;this.adsIsShowing=!1,f.breakStatus="viewed",(E=t.adViewed)==null||E.call(t)},b=()=>{var E;this.adsIsShowing=!1,(E=t.adBreakDone)==null||E.call(t,f)},v=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};ct(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=m,this.state.adViewed.value=g,this.state.adBreakDone.value=b,this.state.adLinkClicked.value=u,this.state.adError.value=v});let w=()=>{var E;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(E=t.adBreakDone)==null||E.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,ct(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,w);break}}}},cP=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};tm=class{constructor(t,r,n){Qe(this,"adUnit",void 0),Qe(this,"project",void 0),Qe(this,"keyValue",void 0),Qe(this,"adsContext",null),Qe(this,"rewardedSlot",null),Qe(this,"rewardedPayload",null),Qe(this,"readyEvent",null),Qe(this,"withCommand",function(){googletag.cmd.push(...arguments)}),Qe(this,"init",()=>{var i;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(o=>{var a;(a=this.rewardedSlot)==null||a.setTargeting(o,this.keyValue[o])}),Object.keys(this.keyValue).includes("project")||(i=this.rewardedSlot)==null||i.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),Qe(this,"destroy",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,i),this.adsContext=null}),Qe(this,"reinit",i=>{this.destroy(i),this.init()}),Qe(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),Qe(this,"handleSlotClosed",i=>{var o,a;if(this.adsContext&&i.slot===this.rewardedSlot){let s=this.rewardedPayload?"viewed":"dismissed";s==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(a=(o=this.adsContext).afterAd)==null||a.call(o),this.withCommand(()=>{this.reinit(s)})}}),Qe(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),Qe(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),Qe(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext&&this.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,c,l;(c=(s=this.adsContext)==null?void 0:s.beforeAd)==null||c.call(s),(l=this.readyEvent)==null||l.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",o),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",o))},500)}})}),this.adUnit=t,this.project=r,this.keyValue=n,cP(),this.withCommand(()=>{this.init()})}};rm=class{constructor(t,r,n){var i=this;st(this,"adUnit",void 0),st(this,"project",void 0),st(this,"keyValue",void 0),st(this,"adsContext",null),st(this,"gamingInterstitialSlot",null),st(this,"readyEvent",null),st(this,"isRetrying",!1),st(this,"withCommand",function(){googletag.cmd.push(...arguments)}),st(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))}),st(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),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)}),st(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),st(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),st(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")}))}),st(this,"requestAds",o=>{this.withCommand(()=>{var a,s,c;if(this.adsContext&&this.reinit("ignored"),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)))})}),cP(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};nm=class{constructor(t,r){Sn(this,"name","GOOGLE_GPT"),Sn(this,"context",void 0),Sn(this,"contextInfo",void 0),Sn(this,"initParams",void 0),Sn(this,"rewardAdManager",void 0),Sn(this,"interstitialManager",void 0),Sn(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 y(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 tm(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new rm(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}}}};im=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Mf(this,"context",void 0),Mf(this,"placement","GAME"),Mf(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:Fx.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:Mx.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:Ux.WebSDK};return p4(i)}};Qc=class{constructor(t){rt(this,"context",void 0),rt(this,"adsTrackSerializer",void 0),rt(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new im(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}}},om=class{constructor(t,r){var n=this;rt(this,"context",void 0),rt(this,"contextInfo",void 0),rt(this,"requestContext",void 0),rt(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),rt(this,"pendingAFVAdsInfo",Promise.resolve(null)),rt(this,"doFetchAdsInfo",i=>y(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:c,code:l}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return l==="SUCCESS"||l==="BYPASS_ADS"?{code:l,data:c}:null})),rt(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),rt(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),rt(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),rt(this,"cacheNextAFGAdsInfo",i=>y(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),rt(this,"getAFGAdsInfo",i=>y(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),rt(this,"getAFVAdsInfo",function(){return y(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 Qc(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};Xc=class{constructor(t){if(Ft(this,"context",void 0),Ft(this,"contextInfo",void 0),Ft(this,"providers",{}),Ft(this,"channelPolicy",void 0),Ft(this,"adsActionDetection",void 0),Ft(this,"requestContext",void 0),Ft(this,"adsRequest",void 0),Ft(this,"initialized",!1),Ft(this,"adsIsShowing",!1),Ft(this,"lastAdBreak",void 0),Ft(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Hf(this.context),this.adsActionDetection=new Jf(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new om(t),this.requestContext=new Qc(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return y(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new nm(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new $f(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new Zf(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new em(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;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 y(this,null,function*(){var r,n,i,o,a,s,c,l,d,u,p,f,m,g;let b=Date.now();if(b-this.initializedTimeStamp<3e3){(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&&b-this.lastAdBreak<500){console.warn("[Jolibox SDK Ads] You can't call adBreak too frequently"),(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=b,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(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||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(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{let v=yield this.adsRequest.getAFGAdsInfo(t.type),w=v==null?void 0:v.data,E=v==null?void 0:v.code;if(E==="BYPASS_ADS"){switch(t.type){case"preroll":{(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var A,P,T,k;(A=t.beforeAd)==null||A.call(t),(P=t.adViewed)==null||P.call(t),(T=t.afterAd)==null||T.call(t),(k=t.adBreakDone)==null||k.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(c=t.beforeAd)==null||c.call(t),(l=t.afterAd)==null||l.call(t),(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!w||E!=="SUCCESS"){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let A=w.sort((G,fe)=>G.seq-fe.seq);if(A.length===0){(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let P=!0,T=null,k=new Bf(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;A.length>0;){let G=A.shift(),fe=this.providers[G.provider];if(fe){let[L,O]=yield k.callAdBreakAndContinue(fe,t,G,be=>{var Ue;this.adsIsShowing=be,(Ue=this.context.eventEmitter)==null||Ue.emit("isAdShowing",be)});P=L,T=O}else P=!0,T={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!P)break}P&&T&&((f=t.adBreakDone)==null||f.call(t,T))}}catch(v){(m=t.adBreakDone)==null||m.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(g=this.context.eventEmitter)==null||g.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.")}},Bte=gi`
|
|
787
|
-
${
|
|
869
|
+
`,oV=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:c,src:l}=t,[d,u]=hr(!1),p=m=>{var g,b,v,w;u(!1),c.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((b=i.value)==null||b.call(i)),(v=r.value)==null||v.call(r),(w=o.value)==null||w.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return hi("appsrockets_ad_dismissed",()=>p("dismiss")),hi("appsrockets_ad_rewarded",()=>p("viewed")),hi("appsrockets_ad_completed",()=>p("viewed")),hi("appsrockets_ad_skipped",()=>p("viewed")),hi("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),hi("appsrockets_ad_loaded",()=>u(!0)),c.value?V("div",{className:iV,style:{display:d?"flex":"none"},children:c.value&&V("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};nm=class{constructor(t,r){xr(this,"name","APPSROCKETS"),xr(this,"initialized",!1),xr(this,"initCompleter",null),xr(this,"context",void 0),xr(this,"adsOverlay",null),xr(this,"adsIsShowing",!1),xr(this,"lastUnDisplayedAdBreak",null),xr(this,"state",nV()),xr(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return y(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),as(V(oV,{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=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)};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 p=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},f=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},m=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};Ve(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=m,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 p=()=>{var S;this.adsIsShowing=!1,(S=t.afterAd)==null||S.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var S;this.adsIsShowing=!1,f.breakStatus="dismissed",(S=t.adDismissed)==null||S.call(t)},g=()=>{var S;this.adsIsShowing=!1,f.breakStatus="viewed",(S=t.adViewed)==null||S.call(t)},b=()=>{var S;this.adsIsShowing=!1,(S=t.adBreakDone)==null||S.call(t,f)},v=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};Ve(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=m,this.state.adViewed.value=g,this.state.adBreakDone.value=b,this.state.adLinkClicked.value=u,this.state.adError.value=v});let w=()=>{var S;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(S=t.adBreakDone)==null||S.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,Ve(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,w);break}}}},dP=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};im=class{constructor(t,r,n){et(this,"adUnit",void 0),et(this,"project",void 0),et(this,"keyValue",void 0),et(this,"adsContext",null),et(this,"rewardedSlot",null),et(this,"rewardedPayload",null),et(this,"readyEvent",null),et(this,"withCommand",function(){googletag.cmd.push(...arguments)}),et(this,"init",()=>{var i;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(o=>{var a;(a=this.rewardedSlot)==null||a.setTargeting(o,this.keyValue[o])}),Object.keys(this.keyValue).includes("project")||(i=this.rewardedSlot)==null||i.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),et(this,"destroy",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,i),this.adsContext=null}),et(this,"reinit",i=>{this.destroy(i),this.init()}),et(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),et(this,"handleSlotClosed",i=>{var o,a;if(this.adsContext&&i.slot===this.rewardedSlot){let s=this.rewardedPayload?"viewed":"dismissed";s==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(a=(o=this.adsContext).afterAd)==null||a.call(o),this.withCommand(()=>{this.reinit(s)})}}),et(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),et(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),et(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext&&this.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,c,l;(c=(s=this.adsContext)==null?void 0:s.beforeAd)==null||c.call(s),(l=this.readyEvent)==null||l.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",o),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",o))},500)}})}),this.adUnit=t,this.project=r,this.keyValue=n,dP(),this.withCommand(()=>{this.init()})}};om=class{constructor(t,r,n){var i=this;dt(this,"adUnit",void 0),dt(this,"project",void 0),dt(this,"keyValue",void 0),dt(this,"adsContext",null),dt(this,"gamingInterstitialSlot",null),dt(this,"readyEvent",null),dt(this,"isRetrying",!1),dt(this,"withCommand",function(){googletag.cmd.push(...arguments)}),dt(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))}),dt(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),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)}),dt(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),dt(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),dt(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")}))}),dt(this,"requestAds",o=>{this.withCommand(()=>{var a,s,c;if(this.adsContext&&this.reinit("ignored"),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)))})}),dP(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};am=class{constructor(t,r){xn(this,"name","GOOGLE_GPT"),xn(this,"context",void 0),xn(this,"contextInfo",void 0),xn(this,"initParams",void 0),xn(this,"rewardAdManager",void 0),xn(this,"interstitialManager",void 0),xn(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 y(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 im(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new om(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}}}};sm=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Ff(this,"context",void 0),Ff(this,"placement","GAME"),Ff(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:Bx.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:jx.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:Gx.WebSDK};return h4(i)}};el=class{constructor(t){at(this,"context",void 0),at(this,"adsTrackSerializer",void 0),at(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new sm(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}}},cm=class{constructor(t,r){var n=this;at(this,"context",void 0),at(this,"contextInfo",void 0),at(this,"requestContext",void 0),at(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),at(this,"pendingAFVAdsInfo",Promise.resolve(null)),at(this,"doFetchAdsInfo",i=>y(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:c,code:l}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return l==="SUCCESS"||l==="BYPASS_ADS"?{code:l,data:c}:null})),at(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),at(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),at(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),at(this,"cacheNextAFGAdsInfo",i=>y(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),at(this,"getAFGAdsInfo",i=>y(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),at(this,"getAFVAdsInfo",function(){return y(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 el(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};tl=class{constructor(t){if(Bt(this,"context",void 0),Bt(this,"contextInfo",void 0),Bt(this,"providers",{}),Bt(this,"channelPolicy",void 0),Bt(this,"adsActionDetection",void 0),Bt(this,"requestContext",void 0),Bt(this,"adsRequest",void 0),Bt(this,"initialized",!1),Bt(this,"adsIsShowing",!1),Bt(this,"lastAdBreak",void 0),Bt(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Vf(this.context),this.adsActionDetection=new $f(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new cm(t),this.requestContext=new el(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return y(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new am(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new Wf(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new tm(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new nm(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}case"ADSENSE_BANNER_AS_AFG":{let i=new rm(this.context,n.params);yield i.init(),this.providers.ADSENSE_BANNER_AS_AFG=i;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 y(this,null,function*(){var r,n,i,o,a,s,c,l,d,u,p,f,m,g;let b=Date.now();if(b-this.initializedTimeStamp<3e3){(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&&b-this.lastAdBreak<500){console.warn("[Jolibox SDK Ads] You can't call adBreak too frequently"),(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=b,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(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||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(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{let v=yield this.adsRequest.getAFGAdsInfo(t.type),w=v==null?void 0:v.data,S=v==null?void 0:v.code;if(S==="BYPASS_ADS"){switch(t.type){case"preroll":{(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var x,A,C,k;(x=t.beforeAd)==null||x.call(t),(A=t.adViewed)==null||A.call(t),(C=t.afterAd)==null||C.call(t),(k=t.adBreakDone)==null||k.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(c=t.beforeAd)==null||c.call(t),(l=t.afterAd)==null||l.call(t),(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!w||S!=="SUCCESS"){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let x=w.sort((B,le)=>B.seq-le.seq);if(x.length===0){(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let A=!0,C=null,k=new Hf(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;x.length>0;){let B=x.shift(),le=this.providers[B.provider];if(le){let[N,R]=yield k.callAdBreakAndContinue(le,t,B,U=>{var Z;this.adsIsShowing=U,(Z=this.context.eventEmitter)==null||Z.emit("isAdShowing",U)});A=N,C=R}else A=!0,C={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!A)break}A&&C&&((f=t.adBreakDone)==null||f.call(t,C))}}catch(v){(m=t.adBreakDone)==null||m.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(g=this.context.eventEmitter)==null||g.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.")}},ire=rt`
|
|
870
|
+
${Ue}
|
|
788
871
|
position: fixed;
|
|
789
872
|
left: 0;
|
|
790
873
|
top: 0;
|
|
@@ -795,7 +878,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
795
878
|
height: 100vh;
|
|
796
879
|
|
|
797
880
|
.ads-wrapper {
|
|
798
|
-
${
|
|
881
|
+
${Ue}
|
|
799
882
|
position: relative;
|
|
800
883
|
width: 100%;
|
|
801
884
|
height: 100%;
|
|
@@ -818,7 +901,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
818
901
|
}
|
|
819
902
|
|
|
820
903
|
.retry-button {
|
|
821
|
-
${
|
|
904
|
+
${Ue}
|
|
822
905
|
position: absolute;
|
|
823
906
|
width: 100%;
|
|
824
907
|
height: 100%;
|
|
@@ -828,4 +911,4 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
828
911
|
cursor: pointer;
|
|
829
912
|
}
|
|
830
913
|
}
|
|
831
|
-
`});function dP(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return y(this,null,function*(){return yield i.reduce((s,c)=>y(this,null,function*(){let l=yield s;if(l===!0)return!0;uP&&console.log(`handleReward ${c}`);let d=e.get(c),u=d?yield d(...o):l;return uP&&console.log(`handleReward ${c} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return y(this,null,function*(){t=(...o)=>y(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return y(this,null,function*(){r=(...o)=>y(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:br,loginGuide:_r}}})})},getRewardsTypes(...i){return y(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return y(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:br,loginGuide:_r}})}}}var uP,pP=C(()=>{"use strict";B();Le();uP=S.testMode});var um,dm,nl,fP=C(()=>{"use strict";R();um=class{constructor(t){this.httpClient=t}execute(t,r){return y(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}}}},dm=class{constructor(t){this.httpClient=t}execute(t,r){return y(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 x({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}}},nl=class{constructor(t){this.unlockOptionsService=new Rt(new um(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 Rt(new dm(t),{duration:60*60*1e3,timeout:1e3,keyGenerator:r=>r})}getUnlockOptions(){return y(this,arguments,function*(t={}){return yield this.unlockOptionsService.request("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}getGlobalConfig(){return y(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 y(this,arguments,function*(t={}){return yield this.unlockOptionsService.forceRequest("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}refreshGlobalConfig(){return y(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 y(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 fm(e){return pm||(pm=new nl(e)),pm}var iV,oV,aV,pm,mm,hm,gm,vm=C(()=>{"use strict";fP();Le();R();iV=()=>(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]},oV=["openJolicoinGuide",{method:"getABTest",platforms:["android"],nativeVersionCode:1050100},"userTrackAsync",{method:"openMiniapp",nativeVersionCode:1050100}],aV=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(iV())},pm=null;mm=e=>{e.registerRewardsFetcher(t=>y(void 0,null,function*(){var i,o,a,s,c;let r=["ADS"],n=fm(t);try{let l=yield n.getUnlockOptions({});if(l.code!=="SUCCESS")return r;q.emit(_c,{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 aV(d)}catch(l){return console.error("getRewardOptions error (cached):",l),r}}))},hm=e=>{e.registerRewardFrequencyConfigFetcher(t=>y(void 0,null,function*(){var n,i,o,a;let r=fm(t);try{let s=yield r.getGlobalConfig();return q.emit(Ut,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||br,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||_r}),s.data&&he.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||br,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||_r}}catch(s){return console.error("getGlobalConfig error (cached):",s),q.emit(Ut,{joliCoinUseAndCharge:br,loginGuide:_r}),he.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:br,loginGuide:_r,supportedHostMethods:oV}}),{joliCoinUseAndCharge:br,loginGuide:_r}}}))},gm=e=>y(void 0,null,function*(){yield fm(e).warmupCache(),console.log("Reward cache warmed up")})});var ym=C(()=>{"use strict";vm();vm()});var mP,hP=C(()=>{"use strict";mP=e=>t=>y(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 Te,_i,St=C(()=>{"use strict";Le();tr();Le();Te=Me(q,_c),_i=(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 il,bm=C(()=>{"use strict";il={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 ut,Wr=C(()=>{"use strict";R();ut=Y()});function gP(e){return _m||(_m=new Sm(e)),_m}var wm,Sm,_m,Im,In,wi=C(()=>{"use strict";R();wm=class{constructor(t){this.httpClient=t}execute(t,r){return y(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}}}},Sm=class{constructor(t){this.balanceService=new Rt(new wm(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 y(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 y(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 y(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()}},_m=null;Im=(e,t="JOLI_COIN")=>y(void 0,null,function*(){return yield gP(e).getBalance(t)}),In=(e,t="JOLI_COIN")=>y(void 0,null,function*(){let n=yield gP(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var vP=C(()=>{"use strict";wi()});function Am(e){return Em||(Em=new Cm(e)),Em}var km,Cm,Em,xm,En,ol,Si=C(()=>{"use strict";R();km=class{constructor(t){this.httpClient=t}execute(t,r){return y(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}}}},Cm=class{constructor(t){this.gemBalanceService=new Rt(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 y(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 y(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 y(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()}},Em=null;xm=(e,t="GEM")=>y(void 0,null,function*(){return yield Am(e).getGemBalance(t)}),En=(e,t="GEM")=>y(void 0,null,function*(){let n=yield Am(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),ol=(e,t="GEM")=>y(void 0,null,function*(){yield Am(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var yP=C(()=>{"use strict";Si()});var Pt,kn=C(()=>{"use strict";vP();yP();Pt={JOLI_COIN:{fetchBalance:Im,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:xm,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 Zo,kr,Pm=C(()=>{"use strict";Wr();St();tr();Le();Le();kn();Zo=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;ut.registerCommand(`Rewards.${e}.useJolicoin`,()=>y(void 0,null,function*(){let i=yield Te.getData(),o=Pt[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"}}))},kr=(e,t)=>r=>y(void 0,null,function*(){let n=Me(q,hn);return q.emit(Sc,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var ea,Cr,bP=C(()=>{"use strict";Wr();St();Le();tr();Le();kn();Si();wi();ea=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;ut.registerCommand(`Rewards.${e}.usePayment`,()=>y(void 0,null,function*(){var p;let o=yield Te.getData(),a=Pt[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(Te.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"?En(n):In(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},Cr=(e,t)=>r=>y(void 0,null,function*(){let n=Me(q,Mt);return q.emit(wc,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 Tm,Ar,_P=C(()=>{"use strict";B();Wr();tr();Le();Le();R();St();kn();Tm=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;ut.registerCommand(`Rewards.${e}.useUnloginModal`,()=>y(void 0,null,function*(){var s,c,l;let o=(s=S.hostUserInfo)==null?void 0:s.isLogin,a=yield Te.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 hh(3e3));let f=Pt[t],m=yield f.fetchBalance(i),g=f.getQuantity(a),b=f.getCurrentUser(a),v=f.createUpdatedUser((l=m==null?void 0:m.balance)!=null?l:0,b.enableAutoDeduct),w=f.getUpdateKey();if(Te.updateData({[w]:v}),v.balance>=g)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Ar=(e,t)=>r=>y(void 0,null,function*(){let n=Me(q,yr);return q.emit(Ic,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var Cn=C(()=>{"use strict";Pm();bP();_P()});var cV,al,Rm=C(()=>{"use strict";B();R();bm();Cn();Wr();wi();kn();St();cV=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:c,hasSubscription:l}})=>{ea(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),Zo(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let d=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return u=>y(void 0,null,function*(){var p,f,m,g;try{let b=yield o.getData();if(_i(b,l)){let A=Pt.JOLI_COIN,P=yield A.fetchBalance(t),T=A.getCurrentUser(b),k=A.createUpdatedUser((p=P==null?void 0:P.balance)!=null?p:0,T.enableAutoDeduct);if(!A.isEnough(b,k))return i==null||i(u),!1}else{let A=!0;for(let P of d){let T=yield ut.executeCommand(P);if(A=A&&T.result!=="FAILED",T.result!=="CONTINUE")break}if(!A)return i==null||i(u),!1}let w=il[r],E=yield t.post(w.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Tn()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});if(console.log("-----unlockWithCurrency request result-----",E),E.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&&((g=u.adViewed)==null||g.call(u)),In(t)}catch(A){console.error("-----unlockWithJolicoin adBreakDone error-----",A)}return n==null||n({quantity:E.data.quantity,balance:E.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()}})},al=(e,t,r)=>cV(e,t,"JOLI_COIN",r)});var wP,SP=C(()=>{"use strict";St();Rm();Cn();wP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=kr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Cr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Ar("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return al("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Te,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var IP,EP=C(()=>{"use strict";Rm();St();Cn();IP=(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=kr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Cr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Ar("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return al("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Te,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var sl,Om=C(()=>{"use strict";B();R();bm();Cn();Pm();Wr();Si();kn();St();sl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s,hasSubscription:c}})=>{Tm(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),ea(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),Zo(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>y(void 0,null,function*(){var u,p,f,m;try{let g=yield i.getData(),b=_i(g,c);if(console.log("[GemHandler] supportSubscription",b,g),b){let E=Pt.JOLI_GEM,A=yield E.fetchBalance(t),P=E.getCurrentUser(g),T=E.createUpdatedUser((u=A==null?void 0:A.balance)!=null?u:0,P.enableAutoDeduct);if(!E.isEnough(g,T))return n==null||n(d),!1}else{let E=!0;for(let A of l){let P=yield ut.executeCommand(A);if(console.log("[GemHandler] command result",P,A),E=E&&P.result!=="FAILED",P.result!=="CONTINUE")break}if(!E)return n==null||n(d),!1}let v=il.GEM,w=yield t.post(v.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Tn()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});if(console.log("-----unlockWithGem request result-----",w),w.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)),En(t)}catch(E){console.error("-----unlockWithGem adBreakDone error-----",E)}return r==null||r({quantity:w.data.quantity,balance:w.data.balance}),!0}return n==null||n(d),!1}catch(g){if(console.info("GemRewardHandler error:",g),g instanceof Error&&g.message=="CANCEL")throw g;return n==null||n(d),!1}finally{i.clearCache()}})}});var kP,CP=C(()=>{"use strict";St();Om();Cn();kP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=kr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Cr("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Ar("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return sl("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Te,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var AP,xP=C(()=>{"use strict";Om();St();Cn();AP=(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=kr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Cr("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Ar("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return sl("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Te,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var PP,TP,Nm=C(()=>{"use strict";kn();Wr();St();tr();Le();Le();PP=e=>{let{showSubscriptionModal:t}=e;ut.registerCommand("Rewards.subscription",()=>y(void 0,null,function*(){var s,c;let r=yield Te.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=Pt[n?"JOLI_GEM":"JOLI_COIN"],o=i.getCurrentUser(r);return i.isEnough(r,o)?{result:"FAILED"}:{result:(yield t())==="SUCCESS"?"SUCCESS":"FAILED"}}))},TP=e=>()=>y(void 0,null,function*(){let t=Me(q,gn);return q.emit(Ec,e),(yield t.getFreshData()).result})});var RP=C(()=>{"use strict";Nm()});var OP,NP=C(()=>{"use strict";Wr();RP();B();St();wi();Si();OP=(e,t,{handlers:{handleSubSuccess:r,handleSubFailed:n,unlockOptionsHandler:i,showSubscriptionModal:o,hasSubscription:a}})=>{PP({showSubscriptionModal:o});let s=["Rewards.subscription"];return c=>y(void 0,null,function*(){var l,d,u,p,f,m;try{let g=yield i.getData();if(!_i(g,a))return!1;let v=!0;for(let w of s){let E=yield ut.executeCommand(w);if(v=v&&E.result!=="FAILED",E.result!=="CONTINUE")break}if(In(t),En(t),console.log("-----unlockWithSubscription result-----",v),v){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:U(x({},(p=S.hostUserInfo)!=null?p:{isLogin:!1}),{isSubUser:!0})})}catch(w){console.error("-----unlockWithSubscription adBreakDone error-----",w)}return r==null||r(),!0}return n==null||n(c),!1}catch(g){if(console.info("SubscriptionRewardHandler error:",g),g instanceof Error&&g.message=="CANCEL")throw g;return n==null||n(c),!1}finally{}})}});var DP,qP=C(()=>{"use strict";St();NP();Nm();DP=(e,{onSubSuccess:t,onSubFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=TP("SUBSCRIPTION");return OP("SUBSCRIPTION",e,{handlers:{handleSubSuccess:t,handleSubFailed:i,unlockOptionsHandler:Te,showSubscriptionModal:o,hasSubscription:n}})}});var Tt,LP=C(()=>{"use strict";pP();ym();hP();SP();EP();CP();xP();qP();wi();Si();Tt=dP();mm(Tt);hm(Tt)});var cl,lV,or,uV,ta,dV,MP,UP,pV,fV,Dm,mV,hV,gV,FP=C(()=>{"use strict";R();Ve();er();ax();lP();kt();B();pt();ce();LP();ou();ym();cl=Y(),lV=()=>{let{data:e}=F("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},or={get:(e,t)=>Z(e,x({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>Z(e,x({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},uV={httpClient:or,checkNetwork:lV,track:j,eventEmitter:Fa,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;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:""}}},ta=new Xc(uV);Tt.getRewardFrequencyConfig(or).then(e=>{console.log("getRewardFrequencyConfig",e)});Tt.registerRewardHandler("ADS",mP(ta));Tt.registerRewardHandler("JOLI_COIN",wP(or,{onUnlockSuccess:e=>{MP(e),j("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>ft("invokeSubscriptionPanelSync")}));Tt.registerRewardHandler("JOLI_COIN_ONLY",IP(or,{onUnlockSuccess:e=>{MP(e),j("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>ft("invokeSubscriptionPanelSync")}));Tt.registerRewardHandler("JOLI_GEM",kP(or,{onUnlockSuccess:e=>{UP(e),j("gem_unlock_success",{quantity:e.quantity})},hasSubscription:()=>ft("invokeSubscriptionPanelSync")}));Tt.registerRewardHandler("JOLI_GEM_ONLY",AP(or,{onUnlockSuccess:e=>{UP(e),j("gem_unlock_success",{quantity:e.quantity,isOnly:!0})},hasSubscription:()=>ft("invokeSubscriptionPanelSync")}));dV=()=>{j("subscription_unlock_success",{})};Tt.registerRewardHandler("SUBSCRIPTION",DP(or,{onSubSuccess:dV.bind(void 0),hasSubscription:()=>ft("invokeSubscriptionPanelSync")}));MP=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Jr(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})};gm(or);ol(or);UP=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Jr(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"}}})},pV=H("adInit",{implement:e=>{ta.init(e)}}),fV=H("adConfig",{implement:e=>{ta.adConfig(e)}}),Dm=!1,mV=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))},hV=H("adBreak",{implement:e=>{var r;if((r=S.hostUserInfo)==null?void 0:r.isSubUser){mV(e);return}if(e.type==="reward"){if(Dm)return;Dm=!0,Tt.getRewardsTypes(or).then(n=>{Tt.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(()=>{Dm=!1})})}else ta.adBreak(e)}}),gV=H("adUnit",{implement:e=>{ta.adUnit(e)}});cl.registerCommand("AdsSDK.init",pV);cl.registerCommand("AdsSDK.adConfig",fV);cl.registerCommand("AdsSDK.adBreak",hV);cl.registerCommand("AdsSDK.adUnit",gV);M("AdsSDK.init",{version:"1.0.0"});M("AdsSDK.adConfig",{version:"1.0.0"});M("AdsSDK.adBreak",{version:"1.0.0"});M("AdsSDK.adUnit",{version:"1.0.0"})});var ra,vV,yV,bV,_V,wV,jP=C(()=>{"use strict";R();ce();Ve();B();ra=Y(),vV=H("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=F("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Gt(r.errMsg,r.errNo)}}),yV=H("openPageSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=F("openPageSync",{url:e});if(t!==0||!n)throw new Gt(r,t);return{webviewId:n.webviewId}}}),bV=H("closePageSync",{paramsSchema:I.tuple(I.number()),implement:e=>{let{errNo:t,errMsg:r}=F("closePageSync",{webviewId:e});if(t!==0)throw new Gt(r,t)}}),_V=H("interceptSystemExitSync",{paramsSchema:I.tuple(I.boolean()),implement:e=>{he.emit("onInterceptSystemExit",{intercept:e}),he.emit("onInterceptBackPress",{intercept:e})}}),wV=H("navigateToNativePage",{paramsSchema:I.tuple(I.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),I.object()),implement:(e,t)=>{F("callHostMethodAsync",{method:e,params:x({},t)})}});ra.registerCommand("RouterSDK.openSchema",vV);ra.registerCommand("RouterSDK.openPage",yV);ra.registerCommand("RouterSDK.closePage",bV);ra.registerCommand("RouterSDK.interceptSystemExit",_V);ra.registerCommand("RouterSDK.navigateToNativePage",wV);M("router.openSchema",{version:"1.1.10"});M("router.openPage",{version:"1.1.10"});M("router.closePage",{version:"1.1.10"});M("router.interceptSystemExit",{version:"1.1.18"});M("router.navigateToNativePage",{version:"1.1.19"})});function EV(e){Al("cpLoadProgressEvent",{progress:e},S.webviewId,!0)}var BP,SV,ll,qm,GP,IV,kV,JP=C(()=>{"use strict";R();Ve();ce();B();kt();BP=Y(),SV=H("onLoadFinished",{implement:()=>{Al("cpLoadFinishEvent",{},S.webviewId,!0),j("loadFinished",{duration:performance.now()})}}),ll=null,qm=!1,GP=0,IV=200;kV=H("onLoadProgress",{paramsSchema:I.tuple(I.number()),implement:e=>{ll=e,qm||(qm=!0,requestAnimationFrame(function t(){let r=Date.now();r-GP>=IV?(ll!==null&&(EV(ll),GP=r,ll=null),qm=!1):requestAnimationFrame(t)}))}});BP.registerCommand("RuntimeSDK.loadFinishedEvent",SV);BP.registerCommand("RuntimeSDK.loadProgressEvent",kV)});var CV,AV,xV,HP=C(()=>{"use strict";R();Ve();B();CV=Y(),AV="isNativeSupport",xV=H(AV,{paramsSchema:I.tuple(I.object({version:I.string()})),implement:e=>{let t=S.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:kh(iu(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});CV.registerCommand("API.isNativeSupport",xV);M("isNativeSupport",{version:"1.1.46"})});var VP=h(Lm=>{"use strict";Ve();ce();R();R();B();var $P=Y(),PV=ne("callHostMethod",{paramsSchema:I.tuple(I.object({method:I.string(),params:I.object().optional().default({})})),implement:r=>y(Lm,[r],function*({method:e,params:t}){if(!ft(e))throw new Gt("Method not supported",10001);let{errNo:n,errMsg:i,data:o}=yield F("callHostMethodAsync",{method:e,params:x({},t)});if(n!==0)throw new Gt(i,n);let c=o,{callHostMethodId:a}=c,s=$e(c,["callHostMethodId"]);return x({},s)})});$P.registerCommand("API.callHostMethod",PV);M("callHostMethod",{version:"1.1.49"});var TV=ne("userTrackAsync",{paramsSchema:I.tuple(I.object({event:I.string(),eventType:I.number(),params:I.object().optional().default({})})),implement:n=>y(Lm,[n],function*({event:e,eventType:t,params:r}){if(!ft("userTrackAsync"))throw new Gt("Method not supported",10001);let{errNo:i,errMsg:o}=yield F("trackAsync",{event:e,eventType:t,data:x({},r),webviewId:S.webviewId});if(i!==0)throw new Gt(o,i)})});$P.registerCommand("API.track",TV);M("track",{version:"1.1.53"})});var zP=h(Ii=>{"use strict";R();Ve();Sf();Xr();Rf();var na=Y(),WP=Tc(),RV=ne("purchaseGem",{paramsSchema:I.tuple(I.object({productId:I.string()})),implement:e=>y(Ii,null,function*(){var r,n;let t=yield WP.purchase(e.productId);if(t.code!=="SUCCESS")throw Et({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=(r=t.data)==null?void 0:r.totalAmount)!=null?n:""}})}),OV=ne("getGemProducts",{paramsSchema:I.tuple(),implement:()=>y(Ii,null,function*(){var t,r;let e=(r=(t=yield WP.getProductsInfo())==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}})}})}),NV=ne("getSubscriptionPlans",{paramsSchema:I.tuple(),implement:()=>y(Ii,null,function*(){let e=yield wn.getSubInfo();if(console.log("[PaymentAPI] getSubscriptionPlans result",e),!e)throw Et({code:-1,msg:"[JoliboxSDK]: get subscription plans failed"});return{plans:e}})}),DV=ne("flushSubInfoCache",{paramsSchema:I.tuple(),implement:()=>y(Ii,null,function*(){yield wn.updateAllNativePriceCache()})}),qV=ne("subscribe",{paramsSchema:I.tuple(I.object({productId:I.string()})),implement:e=>y(Ii,null,function*(){var a;let t=yield wn.getTierByProductId(e.productId);if(!t)throw Et({code:-1,msg:"[JoliboxSDK]: product not found"});let{basePlanId:r,appStoreProductId:n,nativeProductId:i}=t,o=yield wn.subscribe({basePlanId:r,nativeProductId:i,appStoreProductId:n});return{result:o.result,subPlanId:o.subPlanId,errMsg:(a=o.message)!=null?a:""}})});na.registerCommand("PaymentSDK.purchaseGem",RV);na.registerCommand("PaymentSDK.getGemProducts",OV);na.registerCommand("PaymentSDK.getSubscriptionPlans",NV);na.registerCommand("PaymentSDK.subscribe",qV);na.registerCommand("PaymentSDK.flushSubInfoCache",DV);M("payment.purchaseGem",{version:"1.2.9"});M("payment.getGemProducts",{version:"1.2.9"});M("payment.getSubscriptionPlans",{version:"1.2.9"});M("payment.subscribe",{version:"1.2.9"});M("payment.flushSubInfoCache",{version:"1.2.9"})});var LV={};var tae,oae,dae,pae,KP=C(()=>{"use strict";nA();tae=re(iA());dA();Ui();pA();oae=re(fA());yc();FP();jP();JP();HP();dae=re(VP()),pae=re(zP())});var YP=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[YP])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[YP]=!0;y(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(tA(),eA)),Promise.resolve().then(()=>(KP(),LV)),Promise.resolve().then(()=>(kt(),dg))]);e()});
|
|
914
|
+
`});function mP(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return y(this,null,function*(){return yield i.reduce((s,c)=>y(this,null,function*(){let l=yield s;if(l===!0)return!0;fP&&console.log(`handleReward ${c}`);let d=e.get(c),u=d?yield d(...o):l;return fP&&console.log(`handleReward ${c} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return y(this,null,function*(){t=(...o)=>y(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return y(this,null,function*(){r=(...o)=>y(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Er,loginGuide:kr}}})})},getRewardsTypes(...i){return y(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return y(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:Er,loginGuide:kr}})}}}var fP,hP=P(()=>{"use strict";J();Fe();fP=I.testMode});var fm,mm,al,gP=P(()=>{"use strict";O();fm=class{constructor(t){this.httpClient=t}execute(t,r){return y(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}}}},mm=class{constructor(t){this.httpClient=t}execute(t,r){return y(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 T({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}}},al=class{constructor(t){this.unlockOptionsService=new Dt(new fm(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 Dt(new mm(t),{duration:60*60*1e3,timeout:1e3,keyGenerator:r=>r})}getUnlockOptions(){return y(this,arguments,function*(t={}){return yield this.unlockOptionsService.request("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}getGlobalConfig(){return y(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 y(this,arguments,function*(t={}){return yield this.unlockOptionsService.forceRequest("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}refreshGlobalConfig(){return y(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 y(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 gm(e){return hm||(hm=new al(e)),hm}var _V,wV,SV,hm,vm,ym,bm,_m=P(()=>{"use strict";gP();Fe();O();_V=()=>(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]},wV=["openJolicoinGuide",{method:"getABTest",platforms:["android"],nativeVersionCode:1050100},"userTrackAsync",{method:"openMiniapp",nativeVersionCode:1050100}],SV=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(_V())},hm=null;vm=e=>{e.registerRewardsFetcher(t=>y(void 0,null,function*(){var i,o,a,s,c;let r=["ADS"],n=gm(t);try{let l=yield n.getUnlockOptions({});if(l.code!=="SUCCESS")return r;q.emit(Ic,{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 SV(d)}catch(l){return console.error("getRewardOptions error (cached):",l),r}}))},ym=e=>{e.registerRewardFrequencyConfigFetcher(t=>y(void 0,null,function*(){var n,i,o,a;let r=gm(t);try{let s=yield r.getGlobalConfig();return q.emit(Gt,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||Er,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||kr}),s.data&&be.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||Er,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||kr}}catch(s){return console.error("getGlobalConfig error (cached):",s),q.emit(Gt,{joliCoinUseAndCharge:Er,loginGuide:kr}),be.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:Er,loginGuide:kr,supportedHostMethods:wV}}),{joliCoinUseAndCharge:Er,loginGuide:kr}}}))},bm=e=>y(void 0,null,function*(){yield gm(e).warmupCache(),console.log("Reward cache warmed up")})});var wm=P(()=>{"use strict";_m();_m()});var vP,yP=P(()=>{"use strict";vP=e=>t=>y(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 Oe,Ei,kt=P(()=>{"use strict";Fe();nr();Fe();Oe=je(q,Ic),Ei=(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 sl,Sm=P(()=>{"use strict";sl={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 ft,Xr=P(()=>{"use strict";O();ft=ee()});function bP(e){return Im||(Im=new km(e)),Im}var Em,km,Im,Cm,Pn,ki=P(()=>{"use strict";O();Em=class{constructor(t){this.httpClient=t}execute(t,r){return y(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}}}},km=class{constructor(t){this.balanceService=new Dt(new Em(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 y(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 y(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 y(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()}},Im=null;Cm=(e,t="JOLI_COIN")=>y(void 0,null,function*(){return yield bP(e).getBalance(t)}),Pn=(e,t="JOLI_COIN")=>y(void 0,null,function*(){let n=yield bP(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var _P=P(()=>{"use strict";ki()});function Tm(e){return Am||(Am=new Pm(e)),Am}var xm,Pm,Am,Rm,Tn,cl,Ci=P(()=>{"use strict";O();xm=class{constructor(t){this.httpClient=t}execute(t,r){return y(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}}}},Pm=class{constructor(t){this.gemBalanceService=new Dt(new xm(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 y(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 y(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 y(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()}},Am=null;Rm=(e,t="GEM")=>y(void 0,null,function*(){return yield Tm(e).getGemBalance(t)}),Tn=(e,t="GEM")=>y(void 0,null,function*(){let n=yield Tm(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),cl=(e,t="GEM")=>y(void 0,null,function*(){yield Tm(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var wP=P(()=>{"use strict";Ci()});var Ot,Rn=P(()=>{"use strict";_P();wP();Ot={JOLI_COIN:{fetchBalance:Cm,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:Rm,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 ta,Tr,Om=P(()=>{"use strict";Xr();kt();nr();Fe();Fe();Rn();ta=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;ft.registerCommand(`Rewards.${e}.useJolicoin`,()=>y(void 0,null,function*(){let i=yield Oe.getData(),o=Ot[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"}}))},Tr=(e,t)=>r=>y(void 0,null,function*(){let n=je(q,wn);return q.emit(kc,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,Rr,SP=P(()=>{"use strict";Xr();kt();Fe();nr();Fe();Rn();Ci();ki();ra=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;ft.registerCommand(`Rewards.${e}.usePayment`,()=>y(void 0,null,function*(){var p;let o=yield Oe.getData(),a=Ot[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(Oe.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"?Tn(n):Pn(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},Rr=(e,t)=>r=>y(void 0,null,function*(){let n=je(q,jt);return q.emit(Ec,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 Nm,Or,IP=P(()=>{"use strict";J();Xr();nr();Fe();Fe();O();kt();Rn();Nm=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;ft.registerCommand(`Rewards.${e}.useUnloginModal`,()=>y(void 0,null,function*(){var s,c,l;let o=(s=I.hostUserInfo)==null?void 0:s.isLogin,a=yield Oe.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 ha(3e3));let f=Ot[t],m=yield f.fetchBalance(i),g=f.getQuantity(a),b=f.getCurrentUser(a),v=f.createUpdatedUser((l=m==null?void 0:m.balance)!=null?l:0,b.enableAutoDeduct),w=f.getUpdateKey();if(Oe.updateData({[w]:v}),v.balance>=g)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Or=(e,t)=>r=>y(void 0,null,function*(){let n=je(q,Ir);return q.emit(Cc,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var On=P(()=>{"use strict";Om();SP();IP()});var EV,ll,Dm=P(()=>{"use strict";J();O();Sm();On();Xr();ki();Rn();kt();EV=(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}),ta(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let d=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return u=>y(void 0,null,function*(){var p,f,m,g;try{let b=yield o.getData();if(Ei(b,l)){let x=Ot.JOLI_COIN,A=yield x.fetchBalance(t),C=x.getCurrentUser(b),k=x.createUpdatedUser((p=A==null?void 0:A.balance)!=null?p:0,C.enableAutoDeduct);if(!x.isEnough(b,k))return i==null||i(u),!1}else{let x=!0;for(let A of d){let C=yield ft.executeCommand(A);if(x=x&&C.result!=="FAILED",C.result!=="CONTINUE")break}if(!x)return i==null||i(u),!1}let w=sl[r],S=yield t.post(w.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Ln()}-${I.mpType}-${Date.now()}`,gameInfo:{gameId:I.mpId}}});if(console.log("-----unlockWithCurrency request result-----",S),S.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&&((g=u.adViewed)==null||g.call(u)),Pn(t)}catch(x){console.error("-----unlockWithJolicoin adBreakDone error-----",x)}return n==null||n({quantity:S.data.quantity,balance:S.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()}})},ll=(e,t,r)=>EV(e,t,"JOLI_COIN",r)});var EP,kP=P(()=>{"use strict";kt();Dm();On();EP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Tr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Rr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Or("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return ll("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Oe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var CP,AP=P(()=>{"use strict";Dm();kt();On();CP=(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=Tr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Rr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Or("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return ll("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Oe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var ul,Lm=P(()=>{"use strict";J();O();Sm();On();Om();Xr();Ci();Rn();kt();ul=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s,hasSubscription:c}})=>{Nm(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),ra(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),ta(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>y(void 0,null,function*(){var u,p,f,m;try{let g=yield i.getData(),b=Ei(g,c);if(console.log("[GemHandler] supportSubscription",b,g),b){let S=Ot.JOLI_GEM,x=yield S.fetchBalance(t),A=S.getCurrentUser(g),C=S.createUpdatedUser((u=x==null?void 0:x.balance)!=null?u:0,A.enableAutoDeduct);if(!S.isEnough(g,C))return n==null||n(d),!1}else{let S=!0;for(let x of l){let A=yield ft.executeCommand(x);if(console.log("[GemHandler] command result",A,x),S=S&&A.result!=="FAILED",A.result!=="CONTINUE")break}if(!S)return n==null||n(d),!1}let v=sl.GEM,w=yield t.post(v.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Ln()}-${I.mpType}-${Date.now()}`,gameInfo:{gameId:I.mpId}}});if(console.log("-----unlockWithGem request result-----",w),w.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)),Tn(t)}catch(S){console.error("-----unlockWithGem adBreakDone error-----",S)}return r==null||r({quantity:w.data.quantity,balance:w.data.balance}),!0}return n==null||n(d),!1}catch(g){if(console.info("GemRewardHandler error:",g),g instanceof Error&&g.message=="CANCEL")throw g;return n==null||n(d),!1}finally{i.clearCache()}})}});var xP,PP=P(()=>{"use strict";kt();Lm();On();xP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Tr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Rr("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Or("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return ul("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Oe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var TP,RP=P(()=>{"use strict";Lm();kt();On();TP=(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=Tr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Rr("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Or("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return ul("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Oe,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var OP,NP,qm=P(()=>{"use strict";Rn();Xr();kt();nr();Fe();Fe();OP=e=>{let{showSubscriptionModal:t}=e;ft.registerCommand("Rewards.subscription",()=>y(void 0,null,function*(){var s,c;let r=yield Oe.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=Ot[n?"JOLI_GEM":"JOLI_COIN"],o=i.getCurrentUser(r);return i.isEnough(r,o)?{result:"FAILED"}:{result:(yield t())==="SUCCESS"?"SUCCESS":"FAILED"}}))},NP=e=>()=>y(void 0,null,function*(){let t=je(q,Sn);return q.emit(Ac,e),(yield t.getFreshData()).result})});var DP=P(()=>{"use strict";qm()});var LP,qP=P(()=>{"use strict";Xr();DP();J();kt();ki();Ci();LP=(e,t,{handlers:{handleSubSuccess:r,handleSubFailed:n,unlockOptionsHandler:i,showSubscriptionModal:o,hasSubscription:a}})=>{OP({showSubscriptionModal:o});let s=["Rewards.subscription"];return c=>y(void 0,null,function*(){var l,d,u,p,f,m;try{let g=yield i.getData();if(!Ei(g,a))return!1;let v=!0;for(let w of s){let S=yield ft.executeCommand(w);if(v=v&&S.result!=="FAILED",S.result!=="CONTINUE")break}if(Pn(t),Tn(t),console.log("-----unlockWithSubscription result-----",v),v){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=I).onEnvConfigChanged)==null||m.call(f,{hostUserInfo:F(T({},(p=I.hostUserInfo)!=null?p:{isLogin:!1}),{isSubUser:!0})})}catch(w){console.error("-----unlockWithSubscription adBreakDone error-----",w)}return r==null||r(),!0}return n==null||n(c),!1}catch(g){if(console.info("SubscriptionRewardHandler error:",g),g instanceof Error&&g.message=="CANCEL")throw g;return n==null||n(c),!1}finally{}})}});var MP,UP=P(()=>{"use strict";kt();qP();qm();MP=(e,{onSubSuccess:t,onSubFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=NP("SUBSCRIPTION");return LP("SUBSCRIPTION",e,{handlers:{handleSubSuccess:t,handleSubFailed:i,unlockOptionsHandler:Oe,showSubscriptionModal:o,hasSubscription:n}})}});var Nt,FP=P(()=>{"use strict";hP();wm();yP();kP();AP();PP();RP();UP();ki();Ci();Nt=mP();vm(Nt);ym(Nt)});var dl,kV,sr,CV,na,AV,jP,GP,xV,PV,Mm,TV,RV,OV,BP=P(()=>{"use strict";O();Ke();rr();cx();pP();xt();J();ht();fe();FP();cu();wm();dl=ee(),kV=()=>{let{data:e}=j("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},sr={get:(e,t)=>re(e,T({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>re(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},CV={httpClient:sr,checkNetwork:kV,track:G,eventEmitter:Ba,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;return{hostAppId:(t=(e=I.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=I.deviceInfo.did)!=null?r:"",adId:(n=I.deviceInfo.adId)!=null?n:"",sessionId:(i=I.sessionId)!=null?i:"",userId:(a=(o=I.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:I.mpId,testAdsMode:I.testAdsMode,channel:(s=I.joliSource)!=null?s:"",deviceBrand:I.deviceInfo.brand,deviceModel:I.deviceInfo.model,osType:I.platform==="android"?"ANDROID":I.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=I.joliSource)!=null?c:""}}},na=new tl(CV);Nt.getRewardFrequencyConfig(sr).then(e=>{console.log("getRewardFrequencyConfig",e)});Nt.registerRewardHandler("ADS",vP(na));Nt.registerRewardHandler("JOLI_COIN",EP(sr,{onUnlockSuccess:e=>{jP(e),G("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>gt("invokeSubscriptionPanelSync")}));Nt.registerRewardHandler("JOLI_COIN_ONLY",CP(sr,{onUnlockSuccess:e=>{jP(e),G("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>gt("invokeSubscriptionPanelSync")}));Nt.registerRewardHandler("JOLI_GEM",xP(sr,{onUnlockSuccess:e=>{GP(e),G("gem_unlock_success",{quantity:e.quantity})},hasSubscription:()=>gt("invokeSubscriptionPanelSync")}));Nt.registerRewardHandler("JOLI_GEM_ONLY",TP(sr,{onUnlockSuccess:e=>{GP(e),G("gem_unlock_success",{quantity:e.quantity,isOnly:!0})},hasSubscription:()=>gt("invokeSubscriptionPanelSync")}));AV=()=>{G("subscription_unlock_success",{})};Nt.registerRewardHandler("SUBSCRIPTION",MP(sr,{onSubSuccess:AV.bind(void 0),hasSubscription:()=>gt("invokeSubscriptionPanelSync")}));jP=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Sr(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})};bm(sr);cl(sr);GP=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Sr(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"}}})},xV=W("adInit",{implement:e=>{na.init(e)}}),PV=W("adConfig",{implement:e=>{na.adConfig(e)}}),Mm=!1,TV=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))},RV=W("adBreak",{implement:e=>{var r;if((r=I.hostUserInfo)==null?void 0:r.isSubUser){TV(e);return}if(e.type==="reward"){if(Mm)return;Mm=!0,Nt.getRewardsTypes(sr).then(n=>{Nt.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(()=>{Mm=!1})})}else na.adBreak(e)}}),OV=W("adUnit",{implement:e=>{na.adUnit(e)}});dl.registerCommand("AdsSDK.init",xV);dl.registerCommand("AdsSDK.adConfig",PV);dl.registerCommand("AdsSDK.adBreak",RV);dl.registerCommand("AdsSDK.adUnit",OV);M("AdsSDK.init",{version:"1.0.0"});M("AdsSDK.adConfig",{version:"1.0.0"});M("AdsSDK.adBreak",{version:"1.0.0"});M("AdsSDK.adUnit",{version:"1.0.0"})});var ia,NV,DV,LV,qV,MV,JP=P(()=>{"use strict";O();fe();Ke();J();ia=ee(),NV=W("openSchemaSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${I.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=j("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Jt(r.errMsg,r.errNo)}}),DV=W("openPageSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=j("openPageSync",{url:e});if(t!==0||!n)throw new Jt(r,t);return{webviewId:n.webviewId}}}),LV=W("closePageSync",{paramsSchema:E.tuple(E.number()),implement:e=>{let{errNo:t,errMsg:r}=j("closePageSync",{webviewId:e});if(t!==0)throw new Jt(r,t)}}),qV=W("interceptSystemExitSync",{paramsSchema:E.tuple(E.boolean()),implement:e=>{be.emit("onInterceptSystemExit",{intercept:e}),be.emit("onInterceptBackPress",{intercept:e})}}),MV=W("navigateToNativePage",{paramsSchema:E.tuple(E.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),E.object()),implement:(e,t)=>{j("callHostMethodAsync",{method:e,params:T({},t)})}});ia.registerCommand("RouterSDK.openSchema",NV);ia.registerCommand("RouterSDK.openPage",DV);ia.registerCommand("RouterSDK.closePage",LV);ia.registerCommand("RouterSDK.interceptSystemExit",qV);ia.registerCommand("RouterSDK.navigateToNativePage",MV);M("router.openSchema",{version:"1.1.10"});M("router.openPage",{version:"1.1.10"});M("router.closePage",{version:"1.1.10"});M("router.interceptSystemExit",{version:"1.1.18"});M("router.navigateToNativePage",{version:"1.1.19"})});function jV(e){Tl("cpLoadProgressEvent",{progress:e},I.webviewId,!0)}var $P,UV,pl,Um,HP,FV,GV,VP=P(()=>{"use strict";O();Ke();fe();J();xt();$P=ee(),UV=W("onLoadFinished",{implement:()=>{Tl("cpLoadFinishEvent",{},I.webviewId,!0),G("loadFinished",{duration:performance.now()})}}),pl=null,Um=!1,HP=0,FV=200;GV=W("onLoadProgress",{paramsSchema:E.tuple(E.number()),implement:e=>{pl=e,Um||(Um=!0,requestAnimationFrame(function t(){let r=Date.now();r-HP>=FV?(pl!==null&&(jV(pl),HP=r,pl=null),Um=!1):requestAnimationFrame(t)}))}});$P.registerCommand("RuntimeSDK.loadFinishedEvent",UV);$P.registerCommand("RuntimeSDK.loadProgressEvent",GV)});var BV,JV,HV,WP=P(()=>{"use strict";O();Ke();J();BV=ee(),JV="isNativeSupport",HV=W(JV,{paramsSchema:E.tuple(E.object({version:E.string()})),implement:e=>{let t=I.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:Ah(su(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});BV.registerCommand("API.isNativeSupport",HV);M("isNativeSupport",{version:"1.1.46"})});var KP=h(Fm=>{"use strict";Ke();fe();O();O();J();var zP=ee(),$V=ce("callHostMethod",{paramsSchema:E.tuple(E.object({method:E.string(),params:E.object().optional().default({})})),implement:r=>y(Fm,[r],function*({method:e,params:t}){if(!gt(e))throw new Jt("Method not supported",10001);let{errNo:n,errMsg:i,data:o}=yield j("callHostMethodAsync",{method:e,params:T({},t)});if(n!==0)throw new Jt(i,n);let c=o,{callHostMethodId:a}=c,s=ze(c,["callHostMethodId"]);return T({},s)})});zP.registerCommand("API.callHostMethod",$V);M("callHostMethod",{version:"1.1.49"});var VV=ce("userTrackAsync",{paramsSchema:E.tuple(E.object({event:E.string(),eventType:E.number(),params:E.object().optional().default({})})),implement:n=>y(Fm,[n],function*({event:e,eventType:t,params:r}){if(!gt("userTrackAsync"))throw new Jt("Method not supported",10001);let{errNo:i,errMsg:o}=yield j("trackAsync",{event:e,eventType:t,data:T({},r),webviewId:I.webviewId});if(i!==0)throw new Jt(o,i)})});zP.registerCommand("API.track",VV);M("track",{version:"1.1.53"})});var QP=h(Ai=>{"use strict";O();Ke();Ef();nn();Nf();var oa=ee(),YP=Nc(),WV=ce("purchaseGem",{paramsSchema:E.tuple(E.object({productId:E.string()})),implement:e=>y(Ai,null,function*(){var r,n;let t=yield YP.purchase(e.productId);if(t.code!=="SUCCESS")throw At({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=(r=t.data)==null?void 0:r.totalAmount)!=null?n:""}})}),zV=ce("getGemProducts",{paramsSchema:E.tuple(),implement:()=>y(Ai,null,function*(){var t,r;let e=(r=(t=yield YP.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}})}})}),KV=ce("getSubscriptionPlans",{paramsSchema:E.tuple(),implement:()=>y(Ai,null,function*(){let e=yield An.getSubInfo();if(console.log("[PaymentAPI] getSubscriptionPlans result",e),!e)throw At({code:-1,msg:"[JoliboxSDK]: get subscription plans failed"});return{plans:e}})}),YV=ce("flushSubInfoCache",{paramsSchema:E.tuple(),implement:()=>y(Ai,null,function*(){yield An.updateAllNativePriceCache()})}),QV=ce("subscribe",{paramsSchema:E.tuple(E.object({productId:E.string()})),implement:e=>y(Ai,null,function*(){var a;let t=yield An.getTierByProductId(e.productId);if(!t)throw At({code:-1,msg:"[JoliboxSDK]: product not found"});let{basePlanId:r,appStoreProductId:n,nativeProductId:i}=t,o=yield An.subscribe({basePlanId:r,nativeProductId:i,appStoreProductId:n});return{result:o.result,subPlanId:o.subPlanId,errMsg:(a=o.message)!=null?a:""}})});oa.registerCommand("PaymentSDK.purchaseGem",WV);oa.registerCommand("PaymentSDK.getGemProducts",zV);oa.registerCommand("PaymentSDK.getSubscriptionPlans",KV);oa.registerCommand("PaymentSDK.subscribe",QV);oa.registerCommand("PaymentSDK.flushSubInfoCache",YV);M("payment.purchaseGem",{version:"1.2.9"});M("payment.getGemProducts",{version:"1.2.9"});M("payment.getSubscriptionPlans",{version:"1.2.9"});M("payment.subscribe",{version:"1.2.9"});M("payment.flushSubInfoCache",{version:"1.2.9"})});var XV={};var vae,wae,Aae,xae,XP=P(()=>{"use strict";oA();vae=se(aA());fA();Bi();mA();wae=se(hA());wc();BP();JP();VP();WP();Aae=se(KP()),xae=se(QP())});var ZP=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[ZP])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[ZP]=!0;y(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(nA(),rA)),Promise.resolve().then(()=>(XP(),XV)),Promise.resolve().then(()=>(xt(),fg))]);e()});
|