@jolibox/implement 1.4.2 → 1.4.6
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 +4 -3
- package/dist/index.js +20 -20
- package/dist/index.native.js +79 -79
- package/dist/native/api/__tests__/getSpinSubscriptionPrice.test.d.ts +1 -0
- package/implement.build.log +2 -2
- package/package.json +6 -6
- package/src/native/api/__tests__/getSpinSubscriptionPrice.test.ts +155 -0
- package/src/native/api/payment.ts +43 -1
- package/src/native/api/task.ts +23 -29
package/dist/index.native.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var KP=Object.create;var Sa=Object.defineProperty,YP=Object.defineProperties,QP=Object.getOwnPropertyDescriptor,XP=Object.getOwnPropertyDescriptors,ZP=Object.getOwnPropertyNames,wa=Object.getOwnPropertySymbols,eO=Object.getPrototypeOf,Dl=Object.prototype.hasOwnProperty,vh=Object.prototype.propertyIsEnumerable;var gh=(e,t,r)=>t in e?Sa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))Dl.call(t,r)&&gh(e,r,t[r]);if(wa)for(var r of wa(t))vh.call(t,r)&&gh(e,r,t[r]);return e},B=(e,t)=>YP(e,XP(t));var Qe=(e,t)=>{var r={};for(var n in e)Dl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&wa)for(var n of wa(e))t.indexOf(n)<0&&vh.call(e,n)&&(r[n]=e[n]);return r};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yh=(e,t)=>{for(var r in t)Sa(e,r,{get:t[r],enumerable:!0})},tO=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ZP(t))!Dl.call(e,i)&&i!==r&&Sa(e,i,{get:()=>t[i],enumerable:!(n=QP(t,i))||n.enumerable});return e};var se=(e,t,r)=>(r=e!=null?KP(eO(e)):{},tO(t||!e||!e.__esModule?Sa(r,"default",{value:e,enumerable:!0}):r,e));var g=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});function sO(e){return!!(e!=null&&e.__nativeBuffers__)}function Bl(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!sO(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=cO(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function uO(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:lO(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function mO(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Oh(e){return typeof e=="string"}function jn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function _h(e){return typeof e=="number"&&!isNaN(e)}function gO(e){return typeof e=="undefined"}function vO(e){return gO(e)||e===null}function Rh(e){return typeof e=="function"}function yO(e){return jn(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 Bi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function AO(e,t,r){let n=e;for(let i of t)if(n&&typeof n=="object")n=n[i];else return r;return n===void 0?r:n}function PO(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function LO(e){return new Promise(t=>Dh(e)(t))}function Dh(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function qO(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Hi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function MO(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)FO(e[n],t[n])}function FO(e,t){if(Oh(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(!vO(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 ot(e,t){if(Jl.config[e]){xa.warn(`[can i use] ${e} already registered`);return}Jl.config[e]=ur({},t)}function Ih(e,t){return`[${e}]:${t}`}function $O(e,t){Eh||(Ul=new Ea({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 Ea({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Fl=new Ea({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Ul.flush(),Ml.flush(),Fl.flush()}),Eh=!0);function r(i){var o,a;let{method:s,args:c,startTime:l,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:v}=f,b=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Ul.report({status:b,method:n(s,c),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-l}),l&&m&&v&&(Ml.report({status:b,method:s,isForeground:d,duration:Number((m-l).toFixed(3))}),Fl.report({status:b,method:s,isForeground:d,duration:Number((Date.now()-v).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function YO(e,t){let r=0,n=!0,i=KO.resolveMap,o=$O(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,jl.forEach(c=>Ca(this,[c],function*({method:l,args:d,resolve:u}){let p=yield s(l,d);u(p)})),jl.length=0});let a=(c,l)=>{let d=i.get(Number(c));if(!d)return;let u=Bl(l);d(u),i.delete(Number(c))},s=(c,l)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new hO;if(i.set(r,m.resolve),!n&&GO.includes(c))return new Promise(C=>{jl.push({method:c,args:l,resolve:C})});let v=oO(ur({},{method:c,startTime:p,args:l,isForeground:f}),{invokeType:"js-bridge"}),b=!WO&&BO.includes(c),y=uO(l,b),w=b?y:JSON.stringify(y),E;if(c.endsWith("Sync")||JO.includes(c)?E=(d=e.call)==null?void 0:d.call(e,c,y,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=Bl(E)}catch(C){xa.error(C)}return i.delete(r),E.errorCode&&(E.errorCode=Ih(c,E.errorCode)),o(ur(ur({},v),E)),E}return c.endsWith("Sync")&&i.delete(r),m.promise.then(C=>(C.errorCode&&(C.errorCode=Ih(c,C.errorCode)),o(ur(ur({},v),C)),C))};return{invokeNative:s,applyNative:(c,l)=>{let d=s(c,l);return yO(d)?d.then(u=>Ah(c,u)):Ah(c,d)},invokeHandler:a}}function Ah(e,t){if(!jn(t)){xa.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=aO(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new SO(n,i,o,a);return s}function QO(e){if(globalThis[Ia])return globalThis[Ia];let t=new $l,r=new $l,n=new Ea({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[Ia]={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=Bl(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===Lh){c.forEach(l=>{let[d,u]=l;try{r.emit(d.slice(Ji.length),u,a)}catch(p){}});return}if(i.startsWith(Ji)){r.emit(i.slice(Ji.length),c,a);return}t.emit(i,c,a)}},globalThis[Ia]}function XO(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(`${Ji}${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(Lh,d,p)}catch(p){}}),n=void 0,t.clear()}));let l=t.get(s);l||(l=[],t.set(s,l)),l.push([`${Ji}${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(HO,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 ZO(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=QO(e),{invokeNative:a,invokeHandler:s,applyNative:c}=YO(e,r),{publish:l,emitNative:d}=XO(e);return{invokeHandler:s,subscribeHandler:t,applyNative:c,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:l,subscribe:i,unsubscribe:o}}function qh(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var rO,nO,iO,Aa,kh,xh,bh,ur,oO,aO,Ca,cO,lO,Th,dO,pO,Ph,fO,hO,bO,_O,ka,wO,SO,IO,Ll,xa,wh,EO,Gl,CO,Jl,kO,xO,TO,Fn,OO,wW,Hl,fe,RO,NO,Gi,Hi,$l,Wl,DO,ql,UO,SW,zl,Sh,IW,Ta,jO,Ji,BO,GO,JO,Lh,HO,VO,Ea,Eh,Ul,Ml,Fl,jl,WO,Kl,zO,KO,Ia,Yl,Pt,Uh,Mh,eR,Fh,Ch,me,M,be,jh,tR,Bh,on,EW,AW,ue=x(()=>{"use strict";rO=Object.defineProperty,nO=Object.defineProperties,iO=Object.getOwnPropertyDescriptors,Aa=Object.getOwnPropertySymbols,kh=Object.prototype.hasOwnProperty,xh=Object.prototype.propertyIsEnumerable,bh=(e,t,r)=>t in e?rO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ur=(e,t)=>{for(var r in t||(t={}))kh.call(t,r)&&bh(e,r,t[r]);if(Aa)for(var r of Aa(t))xh.call(t,r)&&bh(e,r,t[r]);return e},oO=(e,t)=>nO(e,iO(t)),aO=(e,t)=>{var r={};for(var n in e)kh.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&&xh.call(e,n)&&(r[n]=e[n]);return r},Ca=(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())});cO=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};lO=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)};Th=Object.defineProperty,dO=Object.getOwnPropertyDescriptor,pO=(e,t)=>{for(var r in t)Th(e,r,{get:t[r],enumerable:!0})},Ph=(e,t,r,n)=>{for(var i=n>1?void 0:n?dO(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&&Th(t,r,i),i},fO=(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}hO=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))}})}};bO=(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))(bO||{}),_O=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}},ka=class extends _O{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},wO=class extends ka{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},SO=class extends ka{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},IO=class extends ka{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Ll=class extends ka{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};xa={log:Bi("log"),warn:Bi("warn"),info:Bi("info"),error:Bi("error"),debug:Bi("debug")};Object.assign(globalThis,{logger:xa});wh=Symbol.for("Jolibox.canIUseMap"),EO={};globalThis[wh]||(globalThis[wh]=EO);Gl=Symbol.for("Jolibox.canIUseMap.native"),CO={};globalThis[Gl]||(globalThis[Gl]=CO);Jl={get config(){return globalThis[Gl]}},kO=(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))(kO||{}),xO=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(xO||{}),TO=(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))(TO||{});PO();Fn=typeof window=="undefined",OO=()=>!Fn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),wW={isiOS:!Fn&&(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:!Fn&&navigator.userAgent.includes("Android"),isMac:!Fn&&navigator.userAgent.includes("Mac"),isFacebook:!Fn&&navigator.userAgent.includes("FB_IAB"),isPC:!Fn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Hl=class Vl{constructor(t){this.element=t,this.next=Vl.Undefined,this.prev=Vl.Undefined}};Hl.Undefined=new Hl(void 0);fe=Hl,RO=class{constructor(){this._first=fe.Undefined,this._last=fe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===fe.Undefined}clear(){let e=this._first;for(;e!==fe.Undefined;){let t=e.next;e.prev=fe.Undefined,e.next=fe.Undefined,e=t}this._first=fe.Undefined,this._last=fe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new fe(e);if(this._first===fe.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!==fe.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==fe.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==fe.Undefined&&e.next!==fe.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===fe.Undefined&&e.next===fe.Undefined?(this._first=fe.Undefined,this._last=fe.Undefined):e.next===fe.Undefined?(this._last=this._last.prev,this._last.next=fe.Undefined):e.prev===fe.Undefined&&(this._first=this._first.next,this._first.prev=fe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==fe.Undefined;)yield e.element,e=e.next}},NO=0,Gi=class{constructor(e){this.value=e,this.id=NO++}},Hi=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 Gi&&(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 Gi(t);return this._listeners?this._listeners instanceof Gi?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 Gi)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 Gi?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},$l=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 Hi,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 RO,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)}},Wl={};pO(Wl,{None:()=>DO,filter:()=>qO,once:()=>Dh,toPromise:()=>LO});DO=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});ql=Symbol.for("Jolibox.hostEmitter"),UO=()=>{let e=new $l;return globalThis[ql]||(globalThis[ql]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[ql]},SW=UO();zl=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Hi,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 MO(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}};zl=Ph([Nh],zl);Sh=class{constructor(){this._onWillExecuteCommand=new Hi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Hi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new zl,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=mO(3e4)),this._starActivation}executeCommand(e,...t){return fO(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Wl.toPromise(Wl.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}}};Sh=Ph([Nh],Sh);IW=Symbol.for("Jolibox.commands");ot("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});ot("requestProductDetailsAsync",{version:102e4});ot("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});ot("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});ot("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});ot("userTrackAsync",{version:1e6});ot("openMiniapp",{version:1050100});ot("requestCoinDetailsSync",{version:1070100});ot("requestCoinDetailsAsync",{version:1070100});ot("sendServerEventAsync",{version:1070100});ot("requestGameLeaderboardSync",{version:108e4});ot("requestGameLeaderboardAsync",{version:108e4});ot("loadAdsAsync",{version:1070200});ot("showAdAsync",{version:1070200});ot("onJoliboxHideLoading",{version:1070300});Ta=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let c=Jl.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=AO(i,o);if(!s)return!1;if(jn(s)){let c=s.version;return _h(c)?typeof a=="number"&&a>=c:!0}return _h(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};jO=()=>OO(),Ji="custom_event_",BO=[],GO=[],JO=["env","createRequestTask","login"],Lh="__batch_event__",HO="__native_batch_event__",VO=e=>e==="pv"?e:"default",Ea=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=VO(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&&jn(a))throw new Ll(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let c=[];if(jn(a))c.push(...Object.keys(a));else if(Oh(a)){if(i.length>0)throw new Ll(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);c.push(a)}else throw new Ll(`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=jn(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={}}},Eh=!1;jl=[],WO=!1,Kl=Symbol.for("Jolibox.invokeResolverInstance"),zO=new Map;globalThis[Kl]||(globalThis[Kl]=zO);KO={get resolveMap(){return globalThis[Kl]}};Ia=Symbol.for("Jolibox.subscribeInstance");Pt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){Pt.trigger=e},onDoExit(e){Pt.exit=e},onDoBackPress(e){Pt.backPress=e}},Uh=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new wO("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="")=>{Pt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>Ca(void 0,null,function*(){let o=yield Pt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Yl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=qh(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:Uh,doExit:r};globalThis.joliboxJSCore=ur({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{Pt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>Ca(void 0,null,function*(){let a=yield Pt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Yl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let c=qh(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 Ca(this,null,function*(){let a=yield Pt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Uh,doExit:n};globalThis.joliboxJSCore=ur({},i)}Mh=Yl;if(!Mh&&jO())throw new IO("No joliboxJScore is found, native bridge not found.");eR=ur({},Mh),Fh=ZO(eR),{invokeHandler:Ch}=Fh,{applyNative:me,invokeNative:M,onNative:be,offNative:jh,subscribeHandler:tR,publish:Bh,emitNative:on,subscribe:EW,unsubscribe:AW}=Fh;globalThis.joliboxJSBridge={callHandler:Ch,invokeHandler:Ch,subscribeHandler:tR}});function aR(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Oa(e){return new Promise(t=>setTimeout(t,e))}function Ki(e){return typeof e=="string"}function sn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function zh(e){return typeof e=="object"&&Array.isArray(e)}function Ra(e){return typeof e=="number"&&!isNaN(e)}function qr(e){return e===!0||e===!1}function Kh(e){return typeof e=="undefined"}function Yi(e){return Kh(e)||e===null}function sR(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 Qh(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:Hh(c)&&Hh(s)?i[a]=n($h({},s),c):Array.isArray(c)&&Array.isArray(s)?i[a]=[...s,...c]:i[a]=c}return i}return n(e,t)}function Hh(e){return e&&typeof e=="object"&&e.constructor===Object}function Xh(e,t){if(Array.isArray(e))return e.concat(t)}function Qi(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 lR(e,t){return(...r)=>t(e,...r)}function Bn(e){return t=>lR(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Vt(`${i}`))}})}function Vi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function ng(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 lu(){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 hR(e,t,r){let n=window.location.hostname,i=n.split("."),o=r?t:e;if(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n))return`${o}.jolibox.com`;if(i.length>=2){let a=i.slice(-2).join(".");if(a==="jolibox.com"||a==="pico-game.com"||a==="joyslite.com"||a==="mporia.com"||a==="pingplus.ai")return`${o}.${a}`}return`${o}.jolibox.com`}function uu(e){return hR("app","stg-app",e)}function Jn(e){return`https://${uu(e)}`}function bR(e){return new Promise(t=>sg(e)(t))}function sg(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function _R(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new zi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function SR(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)IR(e[n],t[n])}function IR(e,t){if(Ki(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(sR(t)){try{if(e instanceof t)return}catch(r){}if(!Yi(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 ER(){return typeof globalThis!="undefined"?globalThis[cg]:void 0}function AR(e){typeof globalThis!="undefined"&&(globalThis[cg]=e)}function K(e=!1){let t=ER();if(!e&&t)return t;let r=new Pa,n=new ru,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 AR(i),i}var nu,rR,Gh,nR,iR,Jh,$h,oR,Wh,an,dt,cR,iu,Xi,ou,Zh,Vt,Na,eg,Da,tg,rg,Zi,au,$t,Xl,uR,su,Vh,dR,z,cu,pR,Gn,$i,eo,fR,mR,ig,og,ag,Ut,Zl,he,gR,vR,Wi,zi,Wt,tu,yR,Ql,wR,_e,Pa,ru,cg,R=x(()=>{"use strict";nu=Object.defineProperty,rR=Object.getOwnPropertyDescriptor,Gh=Object.getOwnPropertySymbols,nR=Object.prototype.hasOwnProperty,iR=Object.prototype.propertyIsEnumerable,Jh=(e,t,r)=>t in e?nu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$h=(e,t)=>{for(var r in t||(t={}))nR.call(t,r)&&Jh(e,r,t[r]);if(Gh)for(var r of Gh(t))iR.call(t,r)&&Jh(e,r,t[r]);return e},oR=(e,t)=>{for(var r in t)nu(e,r,{get:t[r],enumerable:!0})},Wh=(e,t,r,n)=>{for(var i=n>1?void 0:n?rR(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&&nu(t,r,i),i},an=(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}dt=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))}})}};cR=(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))(cR||{}),iu=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}},Xi=class extends iu{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},ou=class extends iu{constructor(){super(...arguments),this.kind="USER_ERROR"}},Zh=class extends ou{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Vt=class extends ou{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))}},Na=class extends ou{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))}},eg=class extends Xi{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Da=class extends Xi{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="INTERNAL_PAYMENT_ERROR",this.priority="P0",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},tg=class extends Xi{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},rg=class extends Xi{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Zi=class extends iu{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}}},au=class extends Xi{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};$t={log:Vi("log"),warn:Vi("warn"),info:Vi("info"),error:Vi("error"),debug:Vi("debug")};Object.assign(globalThis,{logger:$t});Xl=Symbol.for("Jolibox.canIUseMap"),uR={};globalThis[Xl]||(globalThis[Xl]=uR);su={get config(){return globalThis[Xl]}},Vh=Symbol.for("Jolibox.canIUseMap.native"),dR={};globalThis[Vh]||(globalThis[Vh]=dR);z=(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))(z||{}),cu=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(cu||{}),pR=(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))(pR||{}),Gn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});lu();$i=typeof window=="undefined",eo={isiOS:!$i&&(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:!$i&&navigator.userAgent.includes("Android"),isMac:!$i&&navigator.userAgent.includes("Mac"),isFacebook:!$i&&navigator.userAgent.includes("FB_IAB"),isPC:!$i&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},fR="device_id",mR="advertising_id",ig=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,Gn()),window.__joliboxLocalStorage__.getItem(e)),og=()=>new URLSearchParams(window.location.search).get("deviceId")||ig(fR),ag=()=>new URLSearchParams(window.location.search).get("advertisingId")||ig(mR);Ut=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=$h({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return an(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=>an(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 an(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 an(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return an(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 an(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)}},Zl=class eu{constructor(t){this.element=t,this.next=eu.Undefined,this.prev=eu.Undefined}};Zl.Undefined=new Zl(void 0);he=Zl,gR=class{constructor(){this._first=he.Undefined,this._last=he.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===he.Undefined}clear(){let e=this._first;for(;e!==he.Undefined;){let t=e.next;e.prev=he.Undefined,e.next=he.Undefined,e=t}this._first=he.Undefined,this._last=he.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new he(e);if(this._first===he.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!==he.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==he.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==he.Undefined&&e.next!==he.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===he.Undefined&&e.next===he.Undefined?(this._first=he.Undefined,this._last=he.Undefined):e.next===he.Undefined?(this._last=this._last.prev,this._last.next=he.Undefined):e.prev===he.Undefined&&(this._first=this._first.next,this._first.prev=he.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==he.Undefined;)yield e.element,e=e.next}},vR=0,Wi=class{constructor(e){this.value=e,this.id=vR++}},zi=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 Wi&&(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 Wi(t);return this._listeners?this._listeners instanceof Wi?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 Wi)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 Wi?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Wt=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 zi,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 gR,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)}},tu={};oR(tu,{None:()=>yR,filter:()=>_R,once:()=>sg,toPromise:()=>bR});yR=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ql=Symbol.for("Jolibox.hostEmitter"),wR=()=>{let e=new Wt;return globalThis[Ql]||(globalThis[Ql]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ql]},_e=wR();Pa=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new zi,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 SR(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=Wh([Yh],Pa);ru=class{constructor(){this._onWillExecuteCommand=new zi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new zi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Pa,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=aR(3e4)),this._starActivation}executeCommand(e,...t){return an(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),tu.toPromise(tu.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}}};ru=Wh([Yh],ru);cg=Symbol.for("Jolibox.commands")});function Ee(e,t={}){du.emit("ERROR_REPORT",{error:e,options:t})}var du,cn,bt=x(()=>{"use strict";R();R();du=new Wt,cn=new Wt;Ee.debounce=Qi(Ee,50,{leading:!0})});var pu,CR,lg,ug,dg=x(()=>{"use strict";R();bt();pu=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{}}},CR=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},lg=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:pu(o),payloadJson:pu(a),signature:pu(s)}}else throw"joli_source is missing"}catch(r){return Ee(new eg(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},ug=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=CR(e),o=r[2];return`${n}.${i}.${o}`}return t}});var kR,fu,pg=x(()=>{"use strict";R();kR="1.4.2",fu=()=>kR});function hu(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var xR,fg,mu,mg,ge,TR,S,V=x(()=>{"use strict";R();dg();pg();R();xR={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:og(),adId:ag(),pixelRatio:window.devicePixelRatio||1,platform:eo.isAndroid?"android":eo.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:fu()},schema:window.location.href,platform:eo.isAndroid?"android":eo.isiOS?"ios":"h5"},mu=(fg=globalThis.joliboxJSCore)==null?void 0:fg.env,ge=Object.assign({},(mg=mu==null?void 0:mu())!=null?mg:xR);TR=()=>{var v,b,y,w,E,C,T,k,A,J,le;let{payloadJson:e,headerJson:t,signature:r}=ge.schema.length?lg(ge.schema):{},n=`${ge.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ge.schema.length?ge.schema:window.location.href).searchParams,a=(y=(b=(v=o.get("mpId"))!=null?v:o.get("appId"))!=null?b:o.get("gameId"))!=null?y:"",s=(C=(E=(w=ge.clientSessionId)!=null?w:e==null?void 0:e.sessionId)!=null?E:o.get("sessionId"))!=null?C:n,c=!!((k=(T=e==null?void 0:e.testAdsMode)!=null?T:e==null?void 0:e.__testAdsMode)!=null?k:o.get("testAdsMode")==="true"),l=(le=(J=(A=e==null?void 0:e.joliboxEnv)!=null?A:e==null?void 0:e.__joliboxEnv)!=null?J: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,O;return(O=(N=f.get("joliSource"))!=null?N:o.get("joliSource"))!=null?O:null},get mpId(){var N;return(N=a!=null?a:e==null?void 0:e.id)!=null?N:""},get mpVersion(){var N;return(N=t==null?void 0:t.ver)!=null?N:fu()},get mpType(){var N,O;return(O=(N=t==null?void 0:t.__mpType)!=null?N:e==null?void 0:e.__mpType)!=null?O:"game"},get platform(){var N;return((N=ge.platform)!=null?N:ge.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ge.deviceInfo},get sdkInfo(){return ge.sdkInfo},get hostInfo(){return ge.hostInfo},get hostUserInfo(){return ge.hostUserInfo},get sessionId(){var N,O;return(O=(N=ge.clientSessionId)!=null?N:s)!=null?O:n},get channel(){return u},get webviewId(){var N;return(N=ge.webviewId)!=null?N:-1},get shouldInterupt(){return m},get from(){return e==null?void 0:e.__from},get baseApiHost(){return uu(d)},get adId(){var N;return(N=ge.deviceInfo.adId)!=null?N:ge.deviceInfo.did},get language(){return ge.deviceInfo.lang},get sdkEnvironment(){return hu("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":hu("gamedistribution","jolibox")?"gamedistribution":hu("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var G,H,qt;let N=(G=ge.deviceInfo.pixelRatio)!=null?G:1,O=(H=ge.deviceInfo.statusBarHeight)!=null?H:e==null?void 0:e.__androidStatusBarHeight,F=(qt=ge.deviceInfo.navigationBarHeight)!=null?qt:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:O!==void 0?O/N:20,navigationBarHeight:F!==void 0?F/N:10}},get abTests(){var N,O;return(O=(N=ge.abValues)==null?void 0:N.split(","))!=null?O:[]},get mpInfo(){var N;return(N=ge.mpInfo)!=null?N:{mpName:"unknown"}},onEnvConfigChanged:N=>{Qh(ge,N,Xh)},encodeJoliSourceQuery:N=>{var O,F;return t&&r?ug(P(P({},e),N),(O=o.get("joliSource"))!=null?O:""):(F=o.get("joliSource"))!=null?F:""},setDoExitDirectly:()=>{m=!1}}},S=TR()});var gu,gg,PR,OR,hg,RR,vg=x(()=>{"use strict";R();bt();V();R();gu=!1,gg=(e,t)=>e==null?!1:t in e,PR=e=>gg(e,"kind"),OR=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},hg=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=S.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:OR(e.name)},i=B(P({},n),{env:t.environment,isFromUser:r});r?cn.emit("GLOBAL_USER_ERROR",e,i):cn.emit("GLOBAL_ERROR",e,i)},RR=e=>gg(e,"kind")&&e.kind==="USER_ERROR";du.on("ERROR_REPORT",({error:e,options:t})=>{if(gu)return;gu=!0;let r=PR(e)&&e.raw?e.raw:e;try{let n=RR(e);hg(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new au(`${i}, origin error: ${r.message}`);$t.error(o),hg(new au(o.message),{environment:t.environment},!1)}finally{gu=!1}})});var xe,vu,Ur=x(()=>{"use strict";bt();R();bt();xe=(e,t)=>{var r,n;return new Zi((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},vu=e=>new Zh(e)});var yg=x(()=>{"use strict";vg();Ur();R();ue();cn.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};M("trackAsync",{event:"reportJsError",data:r})});cn.on("GLOBAL_USER_ERROR",(e,t)=>{$t.log("UserError",e,t)})});var yu=x(()=>{"use strict"});function bg(e,t){let r=(n,i,o)=>{let l=i!=null?i:{},{eventType:a}=l,s=Qe(l,["eventType"]),c=B(P({tag:n,eventType:o!=null?o:a!=null?a:z.Other},t),{extra:P({},s)});n=="globalJsError"?Ee(new rg(JSON.stringify(c))):e("systemLog",c,S.webviewId)};return r.debounce=Qi(r,500,{leading:!0}),r}function _g(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=Qi(t,500,{leading:!0}),t}var wg=x(()=>{"use strict";R();R();bt();V()});function Sg(e,t){let r=bg(e,t),n=_g(r);return{track:r,trackPerformance:n}}var Ig=x(()=>{"use strict";wg()});var Eg=x(()=>{"use strict";V();R();R()});var Ag=x(()=>{"use strict";Ig();yu();Eg()});var La,Cg=x(()=>{"use strict";La=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 qa(e,t,r){var c,l,d;let n=new Map,i=(c=r==null?void 0:r.baseUrl)!=null?c:Jn(S.testMode),o=(l=r==null?void 0:r.type)!=null?l:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return be("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:v,state:b}=f,y=Qe(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(y):p.reject(y),n.delete(v)}else if(u.state==="fail"){let m=u,{requestTaskId:v,state:b}=m,y=Qe(m,["requestTaskId","state"]);p.reject(y),n.delete(v)}else $t.warn("onRequestTaskStateChange unknown event",u)}),_e.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>g(this,[f,...m],function*(u,p={}){let v=Date.now(),b=NR(u,B(P({},p),{baseUrl:i})),{method:y="GET",responseType:w="text",dataType:E="json",timeout:C,enableCache:T=!1,appendHostCookie:k=!0}=p,A=Object.assign({"content-type":"application/json"},a,p.header),J={url:b,method:y,header:A,enableCache:T,responseType:w,appendHostCookie:k};if(y=="POST"||y=="PUT"){let G=LR(p.data,A["content-type"]);J.data=G}C&&Object.assign(J,{timeout:C});let{data:{requestTaskId:le}}=M(e,J);if(typeof le!="string")throw xe({code:-1,msg:"requestTaskId is not a string"});let{resolve:N,reject:O,promise:F}=new dt;n.set(le,{resolve:N,reject:O});try{let G=yield F,{data:H}=G;return E==="json"&&typeof H=="string"&&(H=DR(H)),{url:b,timeout:C,method:y,response:B(P({},G),{data:H})}}catch(G){let H=G;if(sn(H)){let{errMsg:qt,prefetchDetail:hh,isPrefetch:Nl,errNo:_a}=H;Ki(qt)&&Ee(xe({code:-1,msg:qt},{errNo:_a,errMsg:qt}))}throw G}})}function DR(e){try{return JSON.parse(e.trim())}catch(t){return e}}function LR(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 NR,bu=x(()=>{"use strict";R();ue();bt();Ur();V();NR=(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 _u,kg,Y,pt=x(()=>{"use strict";bu();V();R();_u={};(kg=S.hostUserInfo)!=null&&kg.token&&(_u["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(_u["x-joli-source"]=S.joliSource);Y=qa("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:Jn(S.testMode),defaultHeaders:_u})});function xg(e){let t=su.config[e];return t||(t={},su.config[e]=t),(r,n)=>{if(t[r]){$t.warn(`[can i use] ${r} already registered`);return}t[r]=P({},n)}}var Tg=x(()=>{"use strict";R()});function wu(e){Pg=e}function Ua(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Ua(t)):Object.keys(e).reduce((t,r)=>(t[r]=Ua(e[r]),t),{})}function dr(e){return typeof e=="number"}function Su(e){let t=Iu(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Iu(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var Pg,Te,Ma,Fa,ja,Ba,Hn,Ga,Ja,Ha,Va,$a,Wa,za,Ka,Ya,Qa,Xa,Za,Eu=x(()=>{"use strict";Pg=!1;Te=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(Pg)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 ${Su(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Ua(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Ua(this._default)}optional(){return this._optional=!0,this}};Ma=class extends Te{validate(t){return this._optional&&t===void 0?!0:dr(t)?dr(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):dr(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):dr(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}},Fa=class extends Te{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},ja=class extends Te{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(dr(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(dr(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}},Ba=class extends Te{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},Hn=class extends Te{validate(t){return!0}},Ga=class extends Te{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},Ja=class extends Te{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Ha=class extends Te{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Va=class extends Te{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 ${Su(t)}`)}return!0}},$a=class extends Te{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(dr(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(dr(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(dr(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}},Wa=class extends Te{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Iu(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}},za=class extends Te{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Iu(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}},Ka=class extends Te{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Su(this.value),actual:r}):!0}},Ya=class extends Te{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 nO=Object.create;var Ia=Object.defineProperty,iO=Object.defineProperties,oO=Object.getOwnPropertyDescriptor,aO=Object.getOwnPropertyDescriptors,sO=Object.getOwnPropertyNames,Sa=Object.getOwnPropertySymbols,cO=Object.getPrototypeOf,Ll=Object.prototype.hasOwnProperty,Sh=Object.prototype.propertyIsEnumerable;var wh=(e,t,r)=>t in e?Ia(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))Ll.call(t,r)&&wh(e,r,t[r]);if(Sa)for(var r of Sa(t))Sh.call(t,r)&&wh(e,r,t[r]);return e},B=(e,t)=>iO(e,aO(t));var Qe=(e,t)=>{var r={};for(var n in e)Ll.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Sa)for(var n of Sa(e))t.indexOf(n)<0&&Sh.call(e,n)&&(r[n]=e[n]);return r};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ih=(e,t)=>{for(var r in t)Ia(e,r,{get:t[r],enumerable:!0})},lO=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of sO(t))!Ll.call(e,i)&&i!==r&&Ia(e,i,{get:()=>t[i],enumerable:!(n=oO(t,i))||n.enumerable});return e};var se=(e,t,r)=>(r=e!=null?nO(cO(e)):{},lO(t||!e||!e.__esModule?Ia(r,"default",{value:e,enumerable:!0}):r,e));var g=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{s(r.next(c))}catch(l){i(l)}},a=c=>{try{s(r.throw(c))}catch(l){i(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);s((r=r.apply(e,t)).next())});function hO(e){return!!(e!=null&&e.__nativeBuffers__)}function Gl(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!hO(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=gO(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function yO(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:vO(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function SO(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function qh(e){return typeof e=="string"}function Gn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Ah(e){return typeof e=="number"&&!isNaN(e)}function EO(e){return typeof e=="undefined"}function AO(e){return EO(e)||e===null}function Uh(e){return typeof e=="function"}function CO(e){return Gn(e)&&Uh(e.then)}function Mh(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Gi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function NO(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 MO(){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 JO(e){return new Promise(t=>Fh(e)(t))}function Fh(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function HO(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Vi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function $O(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)WO(e[n],t[n])}function WO(e,t){if(qh(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Uh(t)){try{if(e instanceof t)return}catch(r){}if(!AO(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 Xe(e,t){if(Hl.config[e]){Ta.warn(`[can i use] ${e} already registered`);return}Hl.config[e]=ur({},t)}function xh(e,t){return`[${e}]:${t}`}function eR(e,t){Th||(Ml=new Aa({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Fl=new Aa({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),jl=new Aa({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Ml.flush(),Fl.flush(),jl.flush()}),Th=!0);function r(i){var o,a;let{method:s,args:c,startTime:l,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:v}=f,b=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Ml.report({status:b,method:n(s,c),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-l}),l&&m&&v&&(Fl.report({status:b,method:s,isForeground:d,duration:Number((m-l).toFixed(3))}),jl.report({status:b,method:s,isForeground:d,duration:Number((Date.now()-v).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function iR(e,t){let r=0,n=!0,i=nR.resolveMap,o=eR(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Bl.forEach(c=>ka(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=Gl(l);d(u),i.delete(Number(c))},s=(c,l)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new IO;if(i.set(r,m.resolve),!n&&YO.includes(c))return new Promise(C=>{Bl.push({method:c,args:l,resolve:C})});let v=fO(ur({},{method:c,startTime:p,args:l,isForeground:f}),{invokeType:"js-bridge"}),b=!tR&&KO.includes(c),y=yO(l,b),w=b?y:JSON.stringify(y),E;if(c.endsWith("Sync")||QO.includes(c)?E=(d=e.call)==null?void 0:d.call(e,c,y,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=Gl(E)}catch(C){Ta.error(C)}return i.delete(r),E.errorCode&&(E.errorCode=xh(c,E.errorCode)),o(ur(ur({},v),E)),E}return c.endsWith("Sync")&&i.delete(r),m.promise.then(C=>(C.errorCode&&(C.errorCode=xh(c,C.errorCode)),o(ur(ur({},v),C)),C))};return{invokeNative:s,applyNative:(c,l)=>{let d=s(c,l);return CO(d)?d.then(u=>Ph(c,u)):Ph(c,d)},invokeHandler:a}}function Ph(e,t){if(!Gn(t)){Ta.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=mO(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new PO(n,i,o,a);return s}function oR(e){if(globalThis[Ea])return globalThis[Ea];let t=new Wl,r=new Wl,n=new Aa({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[Ea]={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=Gl(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===jh){c.forEach(l=>{let[d,u]=l;try{r.emit(d.slice(Hi.length),u,a)}catch(p){}});return}if(i.startsWith(Hi)){r.emit(i.slice(Hi.length),c,a);return}t.emit(i,c,a)}},globalThis[Ea]}function aR(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(`${Hi}${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(jh,d,p)}catch(p){}}),n=void 0,t.clear()}));let l=t.get(s);l||(l=[],t.set(s,l)),l.push([`${Hi}${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(XO,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 sR(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=oR(e),{invokeNative:a,invokeHandler:s,applyNative:c}=iR(e,r),{publish:l,emitNative:d}=aR(e);return{invokeHandler:s,subscribeHandler:t,applyNative:c,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:l,subscribe:i,unsubscribe:o}}function Bh(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var uO,dO,pO,Ca,Rh,Nh,Eh,ur,fO,mO,ka,gO,vO,Dh,bO,_O,Lh,wO,IO,kO,xO,xa,TO,PO,OO,ql,Ta,Ch,RO,Jl,DO,Hl,LO,qO,UO,Bn,FO,UW,Vl,me,jO,BO,Ji,Vi,Wl,zl,GO,Ul,VO,MW,Kl,kh,FW,Pa,zO,Hi,KO,YO,QO,jh,XO,ZO,Aa,Th,Ml,Fl,jl,Bl,tR,Yl,rR,nR,Ea,Ql,Pt,Gh,Jh,cR,Hh,Oh,de,L,_e,Vh,lR,$h,sn,jW,BW,ce=x(()=>{"use strict";uO=Object.defineProperty,dO=Object.defineProperties,pO=Object.getOwnPropertyDescriptors,Ca=Object.getOwnPropertySymbols,Rh=Object.prototype.hasOwnProperty,Nh=Object.prototype.propertyIsEnumerable,Eh=(e,t,r)=>t in e?uO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ur=(e,t)=>{for(var r in t||(t={}))Rh.call(t,r)&&Eh(e,r,t[r]);if(Ca)for(var r of Ca(t))Nh.call(t,r)&&Eh(e,r,t[r]);return e},fO=(e,t)=>dO(e,pO(t)),mO=(e,t)=>{var r={};for(var n in e)Rh.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&&Nh.call(e,n)&&(r[n]=e[n]);return r},ka=(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())});gO=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};vO=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)};Dh=Object.defineProperty,bO=Object.getOwnPropertyDescriptor,_O=(e,t)=>{for(var r in t)Dh(e,r,{get:t[r],enumerable:!0})},Lh=(e,t,r,n)=>{for(var i=n>1?void 0:n?bO(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&&Dh(t,r,i),i},wO=(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}IO=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))}})}};kO=(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))(kO||{}),xO=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}},xa=class extends xO{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},TO=class extends xa{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},PO=class extends xa{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},OO=class extends xa{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},ql=class extends xa{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Ta={log:Gi("log"),warn:Gi("warn"),info:Gi("info"),error:Gi("error"),debug:Gi("debug")};Object.assign(globalThis,{logger:Ta});Ch=Symbol.for("Jolibox.canIUseMap"),RO={};globalThis[Ch]||(globalThis[Ch]=RO);Jl=Symbol.for("Jolibox.canIUseMap.native"),DO={};globalThis[Jl]||(globalThis[Jl]=DO);Hl={get config(){return globalThis[Jl]}},LO=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(LO||{}),qO=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(qO||{}),UO=(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))(UO||{});MO();Bn=typeof window=="undefined",FO=()=>!Bn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),UW={isiOS:!Bn&&(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:!Bn&&navigator.userAgent.includes("Android"),isMac:!Bn&&navigator.userAgent.includes("Mac"),isFacebook:!Bn&&navigator.userAgent.includes("FB_IAB"),isPC:!Bn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Vl=class $l{constructor(t){this.element=t,this.next=$l.Undefined,this.prev=$l.Undefined}};Vl.Undefined=new Vl(void 0);me=Vl,jO=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}},BO=0,Ji=class{constructor(e){this.value=e,this.id=BO++}},Vi=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 Ji&&(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 Ji(t);return this._listeners?this._listeners instanceof Ji?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 Ji)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 Ji?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Wl=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 Vi,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 jO,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)}},zl={};_O(zl,{None:()=>GO,filter:()=>HO,once:()=>Fh,toPromise:()=>JO});GO=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ul=Symbol.for("Jolibox.hostEmitter"),VO=()=>{let e=new Wl;return globalThis[Ul]||(globalThis[Ul]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ul]},MW=VO();Kl=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Vi,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return $O(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};Kl=Lh([Mh],Kl);kh=class{constructor(){this._onWillExecuteCommand=new Vi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Vi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Kl,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=SO(3e4)),this._starActivation}executeCommand(e,...t){return wO(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),zl.toPromise(zl.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}}};kh=Lh([Mh],kh);FW=Symbol.for("Jolibox.commands");Xe("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Xe("requestProductDetailsAsync",{version:102e4});Xe("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});Xe("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Xe("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});Xe("userTrackAsync",{version:1e6});Xe("openMiniapp",{version:1050100});Xe("requestCoinDetailsSync",{version:1070100});Xe("requestCoinDetailsAsync",{version:1070100});Xe("sendServerEventAsync",{version:1070100});Xe("requestGameLeaderboardSync",{version:108e4});Xe("requestGameLeaderboardAsync",{version:108e4});Xe("notifyTaskGameInfoAsync",{version:1080100});Xe("loadAdsAsync",{version:1070200});Xe("showAdAsync",{version:1070200});Xe("onJoliboxHideLoading",{version:1070300});Pa=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let c=Hl.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=NO(i,o);if(!s)return!1;if(Gn(s)){let c=s.version;return Ah(c)?typeof a=="number"&&a>=c:!0}return Ah(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};zO=()=>FO(),Hi="custom_event_",KO=[],YO=[],QO=["env","createRequestTask","login"],jh="__batch_event__",XO="__native_batch_event__",ZO=e=>e==="pv"?e:"default",Aa=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=ZO(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&&Gn(a))throw new ql(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let c=[];if(Gn(a))c.push(...Object.keys(a));else if(qh(a)){if(i.length>0)throw new ql(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);c.push(a)}else throw new ql(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);c.forEach(l=>{n[l]||(n[l]={});let d=Gn(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={}}},Th=!1;Bl=[],tR=!1,Yl=Symbol.for("Jolibox.invokeResolverInstance"),rR=new Map;globalThis[Yl]||(globalThis[Yl]=rR);nR={get resolveMap(){return globalThis[Yl]}};Ea=Symbol.for("Jolibox.subscribeInstance");Pt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){Pt.trigger=e},onDoExit(e){Pt.exit=e},onDoBackPress(e){Pt.backPress=e}},Gh=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new TO("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="")=>{Pt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>ka(void 0,null,function*(){let o=yield Pt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Ql={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Bh(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:Gh,doExit:r};globalThis.joliboxJSCore=ur({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{Pt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>ka(void 0,null,function*(){let a=yield Pt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Ql={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let c=Bh(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 ka(this,null,function*(){let a=yield Pt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Gh,doExit:n};globalThis.joliboxJSCore=ur({},i)}Jh=Ql;if(!Jh&&zO())throw new OO("No joliboxJScore is found, native bridge not found.");cR=ur({},Jh),Hh=sR(cR),{invokeHandler:Oh}=Hh,{applyNative:de,invokeNative:L,onNative:_e,offNative:Vh,subscribeHandler:lR,publish:$h,emitNative:sn,subscribe:jW,unsubscribe:BW}=Hh;globalThis.joliboxJSBridge={callHandler:Oh,invokeHandler:Oh,subscribeHandler:lR}});function mR(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Ra(e){return new Promise(t=>setTimeout(t,e))}function Yi(e){return typeof e=="string"}function ln(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Zh(e){return typeof e=="object"&&Array.isArray(e)}function Na(e){return typeof e=="number"&&!isNaN(e)}function qr(e){return e===!0||e===!1}function eg(e){return typeof e=="undefined"}function Qi(e){return eg(e)||e===null}function hR(e){return typeof e=="function"}function tg(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function rg(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:Kh(c)&&Kh(s)?i[a]=n(Qh({},s),c):Array.isArray(c)&&Array.isArray(s)?i[a]=[...s,...c]:i[a]=c}return i}return n(e,t)}function Kh(e){return e&&typeof e=="object"&&e.constructor===Object}function ng(e,t){if(Array.isArray(e))return e.concat(t)}function Xi(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 vR(e,t){return(...r)=>t(e,...r)}function Jn(e){return t=>vR(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Vt(`${i}`))}})}function $i(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function cg(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 uu(){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 IR(e,t,r){let n=window.location.hostname,i=n.split("."),o=r?t:e;if(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n))return`${o}.jolibox.com`;if(i.length>=2){let a=i.slice(-2).join(".");if(a==="jolibox.com"||a==="pico-game.com"||a==="joyslite.com"||a==="mporia.com"||a==="pingplus.ai")return`${o}.${a}`}return`${o}.jolibox.com`}function du(e){return IR("app","stg-app",e)}function Vn(e){return`https://${du(e)}`}function kR(e){return new Promise(t=>pg(e)(t))}function pg(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function xR(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Ki(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function PR(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)OR(e[n],t[n])}function OR(e,t){if(Yi(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(hR(t)){try{if(e instanceof t)return}catch(r){}if(!Qi(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 RR(){return typeof globalThis!="undefined"?globalThis[fg]:void 0}function NR(e){typeof globalThis!="undefined"&&(globalThis[fg]=e)}function K(e=!1){let t=RR();if(!e&&t)return t;let r=new Oa,n=new nu,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 NR(i),i}var iu,uR,Wh,dR,pR,zh,Qh,fR,Xh,cn,ut,gR,ou,Zi,au,ig,Vt,Da,og,La,ag,sg,eo,su,$t,Zl,yR,cu,Yh,bR,z,lu,_R,Hn,Wi,to,wR,SR,lg,ug,dg,Ut,eu,he,ER,AR,zi,Ki,Wt,ru,CR,Xl,TR,we,Oa,nu,fg,R=x(()=>{"use strict";iu=Object.defineProperty,uR=Object.getOwnPropertyDescriptor,Wh=Object.getOwnPropertySymbols,dR=Object.prototype.hasOwnProperty,pR=Object.prototype.propertyIsEnumerable,zh=(e,t,r)=>t in e?iu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qh=(e,t)=>{for(var r in t||(t={}))dR.call(t,r)&&zh(e,r,t[r]);if(Wh)for(var r of Wh(t))pR.call(t,r)&&zh(e,r,t[r]);return e},fR=(e,t)=>{for(var r in t)iu(e,r,{get:t[r],enumerable:!0})},Xh=(e,t,r,n)=>{for(var i=n>1?void 0:n?uR(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&&iu(t,r,i),i},cn=(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}ut=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))}})}};gR=(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))(gR||{}),ou=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}},Zi=class extends ou{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},au=class extends ou{constructor(){super(...arguments),this.kind="USER_ERROR"}},ig=class extends au{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Vt=class extends au{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))}},Da=class extends au{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))}},og=class extends Zi{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},La=class extends Zi{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))}},ag=class extends Zi{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},sg=class extends Zi{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},eo=class extends ou{constructor(e,t,r,n,i){super(e),this.message=e,this.code=t,this.kind="API_ERROR",this.name="API_ERROR",r&&(this.errorType=r),n!==void 0&&(this.stack=n),i&&(this.priority=i)}toJSON(){return{message:this.message,stack:this.stack,name:this.name,code:this.code,errorType:this.errorType}}},su=class extends Zi{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};$t={log:$i("log"),warn:$i("warn"),info:$i("info"),error:$i("error"),debug:$i("debug")};Object.assign(globalThis,{logger:$t});Zl=Symbol.for("Jolibox.canIUseMap"),yR={};globalThis[Zl]||(globalThis[Zl]=yR);cu={get config(){return globalThis[Zl]}},Yh=Symbol.for("Jolibox.canIUseMap.native"),bR={};globalThis[Yh]||(globalThis[Yh]=bR);z=(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))(z||{}),lu=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(lu||{}),_R=(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))(_R||{}),Hn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});uu();Wi=typeof window=="undefined",to={isiOS:!Wi&&(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:!Wi&&navigator.userAgent.includes("Android"),isMac:!Wi&&navigator.userAgent.includes("Mac"),isFacebook:!Wi&&navigator.userAgent.includes("FB_IAB"),isPC:!Wi&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},wR="device_id",SR="advertising_id",lg=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,Hn()),window.__joliboxLocalStorage__.getItem(e)),ug=()=>new URLSearchParams(window.location.search).get("deviceId")||lg(wR),dg=()=>new URLSearchParams(window.location.search).get("advertisingId")||lg(SR);Ut=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=Qh({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return cn(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=>cn(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 cn(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 cn(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return cn(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 cn(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)}},eu=class tu{constructor(t){this.element=t,this.next=tu.Undefined,this.prev=tu.Undefined}};eu.Undefined=new eu(void 0);he=eu,ER=class{constructor(){this._first=he.Undefined,this._last=he.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===he.Undefined}clear(){let e=this._first;for(;e!==he.Undefined;){let t=e.next;e.prev=he.Undefined,e.next=he.Undefined,e=t}this._first=he.Undefined,this._last=he.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new he(e);if(this._first===he.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!==he.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==he.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==he.Undefined&&e.next!==he.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===he.Undefined&&e.next===he.Undefined?(this._first=he.Undefined,this._last=he.Undefined):e.next===he.Undefined?(this._last=this._last.prev,this._last.next=he.Undefined):e.prev===he.Undefined&&(this._first=this._first.next,this._first.prev=he.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==he.Undefined;)yield e.element,e=e.next}},AR=0,zi=class{constructor(e){this.value=e,this.id=AR++}},Ki=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 zi&&(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 zi(t);return this._listeners?this._listeners instanceof zi?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 zi)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 zi?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Wt=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 Ki,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 ER,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)}},ru={};fR(ru,{None:()=>CR,filter:()=>xR,once:()=>pg,toPromise:()=>kR});CR=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Xl=Symbol.for("Jolibox.hostEmitter"),TR=()=>{let e=new Wt;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]},we=TR();Oa=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Ki,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 PR(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}};Oa=Xh([tg],Oa);nu=class{constructor(){this._onWillExecuteCommand=new Ki,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Ki,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Oa,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=mR(3e4)),this._starActivation}executeCommand(e,...t){return cn(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),ru.toPromise(ru.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}}};nu=Xh([tg],nu);fg=Symbol.for("Jolibox.commands")});function Ae(e,t={}){pu.emit("ERROR_REPORT",{error:e,options:t})}var pu,un,yt=x(()=>{"use strict";R();R();pu=new Wt,un=new Wt;Ae.debounce=Xi(Ae,50,{leading:!0})});var fu,DR,mg,hg,gg=x(()=>{"use strict";R();yt();fu=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{}}},DR=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},mg=e=>{var t;try{let i=(t=new URL(e).searchParams.get("joliSource"))==null?void 0:t.split(".");if(i!=null&&i.length){let[o,a,s]=i;return{headerJson:fu(o),payloadJson:fu(a),signature:fu(s)}}else throw"joli_source is missing"}catch(r){return Ae(new og(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},hg=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=DR(e),o=r[2];return`${n}.${i}.${o}`}return t}});var LR,mu,vg=x(()=>{"use strict";R();LR="1.4.6",mu=()=>LR});function gu(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var qR,yg,hu,bg,ge,UR,I,V=x(()=>{"use strict";R();gg();vg();R();qR={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:ug(),adId:dg(),pixelRatio:window.devicePixelRatio||1,platform:to.isAndroid?"android":to.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:mu()},schema:window.location.href,platform:to.isAndroid?"android":to.isiOS?"ios":"h5"},hu=(yg=globalThis.joliboxJSCore)==null?void 0:yg.env,ge=Object.assign({},(bg=hu==null?void 0:hu())!=null?bg:qR);UR=()=>{var v,b,y,w,E,C,T,k,A,J,ue;let{payloadJson:e,headerJson:t,signature:r}=ge.schema.length?mg(ge.schema):{},n=`${ge.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ge.schema.length?ge.schema:window.location.href).searchParams,a=(y=(b=(v=o.get("mpId"))!=null?v:o.get("appId"))!=null?b:o.get("gameId"))!=null?y:"",s=(C=(E=(w=ge.clientSessionId)!=null?w:e==null?void 0:e.sessionId)!=null?E:o.get("sessionId"))!=null?C:n,c=!!((k=(T=e==null?void 0:e.testAdsMode)!=null?T:e==null?void 0:e.__testAdsMode)!=null?k:o.get("testAdsMode")==="true"),l=(ue=(J=(A=e==null?void 0:e.joliboxEnv)!=null?A:e==null?void 0:e.__joliboxEnv)!=null?J:o.get("joliboxEnv"))!=null?ue:"production",d=l==="staging",u=t==null?void 0:t.channel,f=new URL(window.location.href).searchParams,m=e==null?void 0:e.__shouldInterupt;return{get startTime(){var N;return(N=performance.timeOrigin)!=null?N:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return c},get joliboxEnv(){return l},get joliSource(){var N,O;return(O=(N=f.get("joliSource"))!=null?N:o.get("joliSource"))!=null?O:null},get mpId(){var N;return(N=a!=null?a:e==null?void 0:e.id)!=null?N:""},get mpVersion(){var N;return(N=t==null?void 0:t.ver)!=null?N:mu()},get mpType(){var N,O;return(O=(N=t==null?void 0:t.__mpType)!=null?N:e==null?void 0:e.__mpType)!=null?O:"game"},get platform(){var N;return((N=ge.platform)!=null?N:ge.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ge.deviceInfo},get sdkInfo(){return ge.sdkInfo},get hostInfo(){return ge.hostInfo},get hostUserInfo(){return ge.hostUserInfo},get sessionId(){var N,O;return(O=(N=ge.clientSessionId)!=null?N:s)!=null?O:n},get channel(){return u},get webviewId(){var N;return(N=ge.webviewId)!=null?N:-1},get shouldInterupt(){return m},get from(){return e==null?void 0:e.__from},get baseApiHost(){return du(d)},get adId(){var N;return(N=ge.deviceInfo.adId)!=null?N:ge.deviceInfo.did},get language(){return ge.deviceInfo.lang},get sdkEnvironment(){return gu("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":gu("gamedistribution","jolibox")?"gamedistribution":gu("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var G,H,qt;let N=(G=ge.deviceInfo.pixelRatio)!=null?G:1,O=(H=ge.deviceInfo.statusBarHeight)!=null?H:e==null?void 0:e.__androidStatusBarHeight,F=(qt=ge.deviceInfo.navigationBarHeight)!=null?qt:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:O!==void 0?O/N:20,navigationBarHeight:F!==void 0?F/N:10}},get abTests(){var N,O;return(O=(N=ge.abValues)==null?void 0:N.split(","))!=null?O:[]},get mpInfo(){var N;return(N=ge.mpInfo)!=null?N:{mpName:"unknown"}},onEnvConfigChanged:N=>{rg(ge,N,ng)},encodeJoliSourceQuery:N=>{var O,F;return t&&r?hg(P(P({},e),N),(O=o.get("joliSource"))!=null?O:""):(F=o.get("joliSource"))!=null?F:""},setDoExitDirectly:()=>{m=!1}}},I=UR()});var vu,wg,MR,FR,_g,jR,Sg=x(()=>{"use strict";R();yt();V();R();vu=!1,wg=(e,t)=>e==null?!1:t in e,MR=e=>wg(e,"kind"),FR=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},_g=(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:FR(e.name)},i=B(P({},n),{env:t.environment,isFromUser:r});r?un.emit("GLOBAL_USER_ERROR",e,i):un.emit("GLOBAL_ERROR",e,i)},jR=e=>wg(e,"kind")&&e.kind==="USER_ERROR";pu.on("ERROR_REPORT",({error:e,options:t})=>{if(vu)return;vu=!0;let r=MR(e)&&e.raw?e.raw:e;try{let n=jR(e);_g(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new su(`${i}, origin error: ${r.message}`);$t.error(o),_g(new su(o.message),{environment:t.environment},!1)}finally{vu=!1}})});var Ce,yu,Ur=x(()=>{"use strict";yt();R();yt();Ce=(e,t)=>{var r,n;return new eo((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},yu=e=>new ig(e)});var Ig=x(()=>{"use strict";Sg();Ur();R();ce();un.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};L("trackAsync",{event:"reportJsError",data:r})});un.on("GLOBAL_USER_ERROR",(e,t)=>{$t.log("UserError",e,t)})});var bu=x(()=>{"use strict"});function Eg(e,t){let r=(n,i,o)=>{let l=i!=null?i:{},{eventType:a}=l,s=Qe(l,["eventType"]),c=B(P({tag:n,eventType:o!=null?o:a!=null?a:z.Other},t),{extra:P({},s)});n=="globalJsError"?Ae(new sg(JSON.stringify(c))):e("systemLog",c,I.webviewId)};return r.debounce=Xi(r,500,{leading:!0}),r}function Ag(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=Xi(t,500,{leading:!0}),t}var Cg=x(()=>{"use strict";R();R();yt();V()});function kg(e,t){let r=Eg(e,t),n=Ag(r);return{track:r,trackPerformance:n}}var xg=x(()=>{"use strict";Cg()});var Tg=x(()=>{"use strict";V();R();R()});var Pg=x(()=>{"use strict";xg();bu();Tg()});var qa,Og=x(()=>{"use strict";qa=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 Ua(e,t,r){var c,l,d;let n=new Map,i=(c=r==null?void 0:r.baseUrl)!=null?c:Vn(I.testMode),o=(l=r==null?void 0:r.type)!=null?l:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return _e("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:v,state:b}=f,y=Qe(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(y):p.reject(y),n.delete(v)}else if(u.state==="fail"){let m=u,{requestTaskId:v,state:b}=m,y=Qe(m,["requestTaskId","state"]);p.reject(y),n.delete(v)}else $t.warn("onRequestTaskStateChange unknown event",u)}),we.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>g(this,[f,...m],function*(u,p={}){let v=Date.now(),b=BR(u,B(P({},p),{baseUrl:i})),{method:y="GET",responseType:w="text",dataType:E="json",timeout:C,enableCache:T=!1,appendHostCookie:k=!0}=p,A=Object.assign({"content-type":"application/json"},a,p.header),J={url:b,method:y,header:A,enableCache:T,responseType:w,appendHostCookie:k};if(y=="POST"||y=="PUT"){let G=JR(p.data,A["content-type"]);J.data=G}C&&Object.assign(J,{timeout:C});let{data:{requestTaskId:ue}}=L(e,J);if(typeof ue!="string")throw Ce({code:-1,msg:"requestTaskId is not a string"});let{resolve:N,reject:O,promise:F}=new ut;n.set(ue,{resolve:N,reject:O});try{let G=yield F,{data:H}=G;return E==="json"&&typeof H=="string"&&(H=GR(H)),{url:b,timeout:C,method:y,response:B(P({},G),{data:H})}}catch(G){let H=G;if(ln(H)){let{errMsg:qt,prefetchDetail:_h,isPrefetch:Dl,errNo:wa}=H;Yi(qt)&&Ae(Ce({code:-1,msg:qt},{errNo:wa,errMsg:qt}))}throw G}})}function GR(e){try{return JSON.parse(e.trim())}catch(t){return e}}function JR(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 BR,_u=x(()=>{"use strict";R();ce();yt();Ur();V();BR=(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 wu,Rg,Y,dt=x(()=>{"use strict";_u();V();R();wu={};(Rg=I.hostUserInfo)!=null&&Rg.token&&(wu["x-joli-token"]=I.hostUserInfo.token);I.joliSource&&(wu["x-joli-source"]=I.joliSource);Y=Ua("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:Vn(I.testMode),defaultHeaders:wu})});function Ng(e){let t=cu.config[e];return t||(t={},cu.config[e]=t),(r,n)=>{if(t[r]){$t.warn(`[can i use] ${r} already registered`);return}t[r]=P({},n)}}var Dg=x(()=>{"use strict";R()});function Su(e){Lg=e}function Ma(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Ma(t)):Object.keys(e).reduce((t,r)=>(t[r]=Ma(e[r]),t),{})}function dr(e){return typeof e=="number"}function Iu(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 Lg,Te,Fa,ja,Ba,Ga,$n,Ja,Ha,Va,$a,Wa,za,Ka,Ya,Qa,Xa,Za,es,Au=x(()=>{"use strict";Lg=!1;Te=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(Lg)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 ${Iu(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Ma(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Ma(this._default)}optional(){return this._optional=!0,this}};Fa=class extends Te{validate(t){return this._optional&&t===void 0?!0:dr(t)?dr(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):dr(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):dr(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}},ja=class extends Te{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Ba=class extends Te{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(dr(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(dr(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}},Ga=class extends Te{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},$n=class extends Te{validate(t){return!0}},Ja=class extends Te{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},Ha=class extends Te{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Va=class extends Te{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},$a=class extends Te{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 ${Iu(t)}`)}return!0}},Wa=class extends Te{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(dr(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(dr(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(dr(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}},za=class extends Te{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}},Ka=class extends Te{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}},Ya=class extends Te{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Iu(this.value),actual:r}):!0}},Qa=class extends Te{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}},Xa=class extends Te{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}},Za=class extends Te{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},es=class extends Te{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 Cu(e,t,r="param"){if(e.errors=[],e.path=r,Su(!0),!e.validate(t)){let n=e.errors.join(`
|
|
3
|
+
`);throw e.errors.length=0,Su(!1),new TypeError(n)}}var S,ku=x(()=>{"use strict";Au();Au();S={object(e){return new Ka(e)},array(e){return new Wa(e)},tuple(...e){return new Xa(...e)},literal(e){return new Ya(e)},or(...e){return new Qa(...e)},symbol(){return new Ga},record(e){return new za(e)},function(){return new Va},boolean(){return new ja},string(){return new Ba},number(){return new Fa},undefined(){return new Ja},null(){return new Ha},unknown(){return new $n},any(){return new $n},as(){return new $n},arraybuffer(){return new Za},enum(...e){return new $a(...e)},typedarray(e){return new es(e)}}});var ts,qg,Ug=x(()=>{"use strict";R();yt();ku();Ur();ts=1,qg=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:ts};ts+=1;let c="SUCCESS",l=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Cu(i.paramsSchema,o,"params")}catch(w){throw yu(`${n}:fail ${w.message}`)}let v=i.implement(...o),b=v,y=`${n}:ok`;if(v&&"code"in v){let{code:w,data:E,message:C}=v;c=w,b=E,y=C}return{code:c,message:y,data:b}}catch(v){let b=v;d=(p=(u=b.code)!=null?u:b.errNo)!=null?p:2e3,c="FAILURE";let y=(m=(f=b.message)!=null?f:b.errMsg)!=null?m:`${v}`;return l=`${n}:${c} ${y.replace(/^\S+:(fail|cancel)\s?/,"")}`,Ae(new eo(l,d)),{code:c,message:l}}finally{let v=Date.now()-a}}}function r(n,i){return(...o)=>g(this,null,function*(){var p,f,m,v;let a=Zh(o)?o:[o],s=Date.now(),c={method:n,trace_id:ts};ts+=1;let l=`${n}:ok`,d="SUCCESS",u={code:d,message:l};try{if(i.paramsSchema)try{Cu(i.paramsSchema,a,"params")}catch(w){throw yu(w.message)}let y=yield i.implement(...a);if(y&&"code"in y){let{code:w,data:E,message:C}=y;d=w,l=C,y=E}return Object.assign(u,{code:d,message:l,data:y}),u}catch(b){let y=b,w=(f=(p=y.code)!=null?p:y.errNo)!=null?f:2e3;d="FAILURE";let E=(v=(m=y.message)!=null?m:y.errMsg)!=null?v:`${b}`,C=`${n}:${d} ${E.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:C}),Ae(new eo(C,w)),u}finally{let b=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});var ve,rs=x(()=>{"use strict";V();ce();({canIUseNative:ve}=Pa(()=>I.sdkInfo.nativeSDKVersionCode,()=>I.platform))});function xu(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 Mg=x(()=>{"use strict"});var $,Q,D,Je=x(()=>{"use strict";Dg();bt();Ug();ku();rs();Mg();({createAPI:$,createSyncAPI:Q}=qg(j)),D=Ng("native")});function Fg(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),KR.includes(t)?t:""}function jg(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 Bg(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 ns,VR,$R,WR,zR,hK,gK,KR,Mr,_t,ro=x(()=>{"use strict";Je();ce();R();dt();V();ns=K(),VR=$("getLocalStorage",{paramsSchema:S.tuple(S.string()),implement(e){return g(this,null,function*(){let{response:t}=yield Y(`/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 de("getLocalStorageAsync",{key:e}),s=jg(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}}})}});ns.registerCommand("StorageSDK.getItem",VR);D("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});$R=$("setStorage",{paramsSchema:S.tuple(S.string(),S.or(S.string(),S.boolean(),S.number())),implement(e,t){return g(this,null,function*(){let r=I.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield Y(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=Fg(t),c=Bg(t,s);return yield de("setLocalStorageAsync",{key:e,data:c,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});ns.registerCommand("StorageSDK.setItem",$R);D("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});WR=$("removeStorage",{paramsSchema:S.tuple(S.string()),implement(e){return g(this,null,function*(){let t=I.mpId,{response:r}=yield Y(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield de("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});ns.registerCommand("StorageSDK.removeItem",WR);D("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});zR=$("clearStorage",{implement(){return g(this,null,function*(){let e=I.mpId,{response:t}=yield Y(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});de("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});ns.registerCommand("StorageSDK.clear",zR);D("storage.clear",{version:"1.0.0"});hK=$("getStorageInfo",{implement(){return g(this,null,function*(){let{data:e}=yield de("getStorageInfoAsync");return e})}});D("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});gK=Q("getStorageInfoSync",{implement(){return L("getStorageInfoSync")}}),KR=["string","number","boolean","object",""];Mr=$("getGlobalStorage",{paramsSchema:S.tuple(S.string()),implement(e){return g(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield de("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:jg(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),_t=$("setGlobalStorage",{paramsSchema:S.tuple(S.string(),S.or(S.string(),S.boolean(),S.number(),S.array())),implement(e,t){return g(this,null,function*(){try{let r=Fg(t),n=Bg(t,r);return yield de("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 Gg,is,Jg=x(()=>{"use strict";V();Og();R();dt();ce();ro();rs();Gg="REPORT_FIRST_OPEN_GAME",is=class extends qa{constructor(r,n,i){super(n,i);this.started=!1;this.gameId=I.mpId,this.sessionId=I.sessionId,this.track=r,this.taskUrl=Vn(I.testMode)+"/api/base/app-event"}reporter(r){return g(this,null,function*(){let{event:n,params:i,extraParams:o}=r,a={eventType:n,gameInfo:P({gameId:this.gameId,sessionId:this.sessionId},i)};o&&Object.assign(a,o),yield this.createTask(a)})}reportToNative(r){return g(this,null,function*(){let{event:n,params:i}=r;yield de("userTrackAsync",{event:n,params:P({},i),gameId:this.gameId})})}tracker(r,n=null){this.track(r,n)}start(r){if(this.started){console.info("[JoliboxSDK] taskTrakcer has started");return}super.start(r),this.tryReportOpenGamePlus(),this.started=!0}tryReportOpenGamePlus(){Mr(Gg).then(r=>{qr(r.data)&&r.data&&this.tracker("OpenGame_2Plus"),_t(Gg,!0)})}createTask(r){return ve("sendServerEventAsync")?de("sendServerEventAsync",{payload:r}):I.platform==="android"?Y("/api/base/app-event",{method:"POST",data:r}):de("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(r)})}}});var zg={};Ih(zg,{nativeTaskEmitter:()=>no,taskTracker:()=>wt,track:()=>j,trackPerformance:()=>$g});var YR,Hg,Vg,j,$g,Wg,no,wt,bt=x(()=>{"use strict";Ig();R();bu();Pg();V();Jg();ce();YR=(e,t,r)=>{var l,d,u,p,f,m,v;let n=t,i=ln(n.extra)?n.extra:Yi(n.extra)?JSON.parse(n.extra):{},{mpName:o,mpVersion:a}=(l=I.mpInfo)!=null?l:{},s=P(P(B(P({},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:z.Other;L("trackAsync",{event:(v=t.tag)!=null?v:e,data:s,webviewId:r,eventType:c})},{track:j,trackPerformance:$g}=kg(YR,{type:lu.AppSDK,platform:"native",jssdk_version:(Vg=(Hg=I.sdkInfo)==null?void 0:Hg.jssdkVersion)!=null?Vg:"1.0.0",mp_id:I.mpId,mp_version:I.mpVersion}),Wg=K();Wg.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{$g(e,t,r)});Wg.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{j(e,t)});no=new Wt,wt=new is(j,no)});function Kg(){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}},Qa=class extends Te{constructor(...t){super
|
|
|
18
18
|
min-height: 100dvh;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
`;e.textContent=s;let c=document.head||document.getElementsByTagName("head")[0];c.insertBefore(t,c.firstChild),c.insertBefore(e,c.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:c}=S.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${c}px`)},o=()=>{function s(l){return g(this,null,function*(){let d=l instanceof URL?l.href:l,u=new Promise((p,f)=>{let 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 Vg=x(()=>{"use strict";V()});var $g=x(()=>{"use strict"});var Wg=x(()=>{"use strict";R();lu()});var zg=x(()=>{"use strict";V()});var ln,is=x(()=>{"use strict";$g();Wg();V();zg();R();ln=new Wt});function pr(e,t){for(var r in t)e[r]=t[r];return e}function Nu(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Xe(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?cs.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 as(e,a,n,i,null)}function as(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?++Xg:i,__i:-1,__u:0};return i==null&&L.vnode!=null&&L.vnode(o),o}function He(e){return e.children}function St(e,t){this.props=e,this.context=t}function Vn(e,t){if(t==null)return e.__?Vn(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"?Vn(e):null}function iv(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 iv(e)}}function Pu(e){(!e.__d&&(e.__d=!0)&&un.push(e)&&!ss.__r++||Kg!==L.debounceRendering)&&((Kg=L.debounceRendering)||Zg)(ss)}function ss(){for(var e,t,r,n,i,o,a,s=1;un.length;)un.length>s&&un.sort(ev),e=un.shift(),s=un.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=pr({},n)).__v=n.__v+1,L.vnode&&L.vnode(r),Du(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Vn(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,sv(o,r,a),r.__e!=i&&iv(r)));ss.__r=0}function ov(e,t,r,n,i,o,a,s,c,l,d){var u,p,f,m,v,b,y=n&&n.__k||nv,w=t.length;for(c=HR(r,t,y,c,w),u=0;u<w;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?no:y[f.__i]||no,f.__i=u,b=Du(e,f,p,i,o,a,s,c,l,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Lu(p.ref,null,f),d.push(f.ref,f.__c||m,f)),v==null&&m!=null&&(v=m),4&f.__u||p.__k===f.__k?c=av(f,c,e):typeof f.type=="function"&&b!==void 0?c=b:m&&(c=m.nextSibling),f.__u&=-7);return r.__e=v,c}function HR(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?as(null,a,null,null,null):io(a)?as(He,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?as(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=VR(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=Vn(s)),lv(s,s));return n}function av(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=av(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Vn(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function oo(e,t){return t=t||[],e==null||typeof e=="boolean"||(io(e)?e.some(function(r){oo(r,t)}):t.push(e)),t}function VR(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"||JR.test(t)?r:r+"px"}function os(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(tv,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.t=n.t:(r.t=Ru,e.addEventListener(t,o?Tu:xu,o)):e.removeEventListener(t,o?Tu:xu,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 Qg(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Ru++;else if(t.u<r.t)return;return r(L.event?L.event(t):t)}}}function Du(e,t,r,n,i,o,a,s,c,l){var d,u,p,f,m,v,b,y,w,E,C,T,k,A,J,le,N,O=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=L.__b)&&d(t);e:if(typeof O=="function")try{if(y=t.props,w="prototype"in O&&O.prototype.render,E=(d=O.contextType)&&n[d.__c],C=d?E?E.props.value:d.__:n,r.__c?b=(u=t.__c=r.__c).__=u.__E:(w?t.__c=u=new O(y,C):(t.__c=u=new St(y,C),u.constructor=O,u.render=WR),E&&E.sub(u),u.props=y,u.state||(u.state={}),u.context=C,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=pr({},u.__s)),pr(u.__s,O.getDerivedStateFromProps(y,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&&y!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,C),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,C)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(F){F&&(F.__=t)}),T=0;T<u._sb.length;T++)u.__h.push(u._sb[T]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,C),w&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,v)})}if(u.context=C,u.props=y,u.__P=e,u.__e=!1,k=L.__r,A=0,w){for(u.state=u.__s,u.__d=!1,k&&k(t),d=u.render(u.props,u.state,u.context),J=0;J<u._sb.length;J++)u.__h.push(u._sb[J]);u._sb=[]}else do u.__d=!1,k&&k(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++A<25);u.state=u.__s,u.getChildContext!=null&&(n=pr(pr({},n),u.getChildContext())),w&&!p&&u.getSnapshotBeforeUpdate!=null&&(v=u.getSnapshotBeforeUpdate(f,m)),le=d,d!=null&&d.type===He&&d.key==null&&(le=cv(d.props.children)),s=ov(e,io(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(F){if(t.__v=null,c||o!=null)if(F.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--;)Nu(o[N]);else t.__e=r.__e,t.__k=r.__k;L.__e(F,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=$R(r.__e,t,r,n,i,o,a,c,l);return(d=L.diffed)&&d(t),128&t.__u?void 0:s}function sv(e,t,r){for(var n=0;n<r.length;n++)Lu(r[n],r[++n],r[++n]);L.__c&&L.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){L.__e(o,i.__v)}})}function cv(e){return typeof e!="object"||e==null?e:io(e)?e.map(cv):pr({},e)}function $R(e,t,r,n,i,o,a,s,c){var l,d,u,p,f,m,v,b=r.props,y=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(y);e=document.createElementNS(i,w,y.is&&y),s&&(L.__m&&L.__m(t,o),s=!1),o=null}if(w===null)b===y||s&&e.data===y||(e.data=y);else{if(o=o&&cs.call(e.childNodes),b=r.props||no,!s&&o!=null)for(b={},l=0;l<e.attributes.length;l++)b[(f=e.attributes[l]).name]=f.value;for(l in b)if(f=b[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=f;else if(!(l in y)){if(l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y)continue;os(e,l,null,f,i)}}for(l in y)f=y[l],l=="children"?p=f:l=="dangerouslySetInnerHTML"?d=f:l=="value"?m=f:l=="checked"?v=f:s&&typeof f!="function"||b[l]===f||os(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=""),ov(t.type==="template"?e.content:e,io(p)?p:[p],t,r,n,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Vn(r,0),s,c),o!=null)for(l=o.length;l--;)Nu(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])&&os(e,l,m,b[l],i),l="checked",v!==void 0&&v!==e[l]&&os(e,l,v,b[l],i))}return e}function Lu(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){L.__e(i,r)}}function lv(e,t,r){var n,i;if(L.unmount&&L.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Lu(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){L.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&lv(n[i],t,r||typeof e.type!="function");r||Nu(e.__e),e.__c=e.__=e.__e=void 0}function WR(e,t,r){return this.constructor(e,r)}function Fr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),L.__&&L.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Du(t,e=(!n&&r||t).__k=Xe(He,null,[e]),i||no,no,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?cs.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),sv(o,e,a)}function dn(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,Pu(a)})},this.sub=function(o){n.add(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){n&&n.delete(o),a&&a.call(o)}}),r.children}return t.__c="__cC"+rv++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var cs,L,Xg,Ou,un,Kg,Zg,ev,tv,Ru,xu,Tu,rv,no,nv,JR,io,$n=x(()=>{no={},nv=[],JR=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,io=Array.isArray;cs=nv.slice,L={__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}},Xg=0,Ou=function(e){return e!=null&&e.constructor==null},St.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=pr({},this.state),typeof e=="function"&&(e=e(pr({},r),this.props)),e&&pr(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Pu(this))},St.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Pu(this))},St.prototype.render=He,un=[],Zg=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ev=function(e,t){return e.__v.__b-t.__v.__b},ss.__r=0,tv=/(PointerCapture)$|Capture$/i,Ru=0,xu=Qg(!1),Tu=Qg(!0),rv=0});var we=h((JK,uv)=>{"use strict";uv.exports=function(e){try{return!!e()}catch(t){return!0}}});var Wn=h((HK,dv)=>{"use strict";var zR=we();dv.exports=!zR(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Pe=h((VK,mv)=>{"use strict";var pv=Wn(),fv=Function.prototype,qu=fv.call,KR=pv&&fv.bind.bind(qu,qu);mv.exports=pv?KR:function(e){return function(){return qu.apply(e,arguments)}}});var st=h(($K,hv)=>{"use strict";var YR=Pe();hv.exports=YR({}.isPrototypeOf)});var Se=h((Uu,gv)=>{"use strict";var ao=function(e){return e&&e.Math===Math&&e};gv.exports=ao(typeof globalThis=="object"&&globalThis)||ao(typeof window=="object"&&window)||ao(typeof self=="object"&&self)||ao(typeof global=="object"&&global)||ao(typeof Uu=="object"&&Uu)||function(){return this}()||Function("return this")()});var Mu=h((WK,_v)=>{"use strict";var QR=Wn(),bv=Function.prototype,vv=bv.apply,yv=bv.call;_v.exports=typeof Reflect=="object"&&Reflect.apply||(QR?yv.bind(vv):function(){return yv.apply(vv,arguments)})});var fr=h((zK,Sv)=>{"use strict";var wv=Pe(),XR=wv({}.toString),ZR=wv("".slice);Sv.exports=function(e){return ZR(XR(e),8,-1)}});var so=h((KK,Iv)=>{"use strict";var e1=fr(),t1=Pe();Iv.exports=function(e){if(e1(e)==="Function")return t1(e)}});var Ve=h((YK,Ev)=>{"use strict";var Fu=typeof document=="object"&&document.all;Ev.exports=typeof Fu=="undefined"&&Fu!==void 0?function(e){return typeof e=="function"||e===Fu}:function(e){return typeof e=="function"}});var ct=h((QK,Av)=>{"use strict";var r1=we();Av.exports=!r1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Mt=h((XK,Cv)=>{"use strict";var n1=Wn(),ls=Function.prototype.call;Cv.exports=n1?ls.bind(ls):function(){return ls.apply(ls,arguments)}});var ju=h(Tv=>{"use strict";var kv={}.propertyIsEnumerable,xv=Object.getOwnPropertyDescriptor,i1=xv&&!kv.call({1:2},1);Tv.f=i1?function(t){var r=xv(this,t);return!!r&&r.enumerable}:kv});var co=h((e8,Pv)=>{"use strict";Pv.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var us=h((t8,Ov)=>{"use strict";var o1=Pe(),a1=we(),s1=fr(),Bu=Object,c1=o1("".split);Ov.exports=a1(function(){return!Bu("z").propertyIsEnumerable(0)})?function(e){return s1(e)==="String"?c1(e,""):Bu(e)}:Bu});var pn=h((r8,Rv)=>{"use strict";Rv.exports=function(e){return e==null}});var fn=h((n8,Nv)=>{"use strict";var l1=pn(),u1=TypeError;Nv.exports=function(e){if(l1(e))throw new u1("Can't call method on "+e);return e}});var jr=h((i8,Dv)=>{"use strict";var d1=us(),p1=fn();Dv.exports=function(e){return d1(p1(e))}});var qe=h((o8,Lv)=>{"use strict";var f1=Ve();Lv.exports=function(e){return typeof e=="object"?e!==null:f1(e)}});var zt=h((a8,qv)=>{"use strict";qv.exports={}});var zn=h((s8,Mv)=>{"use strict";var Gu=zt(),Ju=Se(),m1=Ve(),Uv=function(e){return m1(e)?e:void 0};Mv.exports=function(e,t){return arguments.length<2?Uv(Gu[e])||Uv(Ju[e]):Gu[e]&&Gu[e][t]||Ju[e]&&Ju[e][t]}});var ds=h((c8,Bv)=>{"use strict";var h1=Se(),Fv=h1.navigator,jv=Fv&&Fv.userAgent;Bv.exports=jv?String(jv):""});var fs=h((l8,Wv)=>{"use strict";var $v=Se(),Hu=ds(),Gv=$v.process,Jv=$v.Deno,Hv=Gv&&Gv.versions||Jv&&Jv.version,Vv=Hv&&Hv.v8,Ft,ps;Vv&&(Ft=Vv.split("."),ps=Ft[0]>0&&Ft[0]<4?1:+(Ft[0]+Ft[1]));!ps&&Hu&&(Ft=Hu.match(/Edge\/(\d+)/),(!Ft||Ft[1]>=74)&&(Ft=Hu.match(/Chrome\/(\d+)/),Ft&&(ps=+Ft[1])));Wv.exports=ps});var Vu=h((u8,Kv)=>{"use strict";var zv=fs(),g1=we(),v1=Se(),y1=v1.String;Kv.exports=!!Object.getOwnPropertySymbols&&!g1(function(){var e=Symbol("symbol detection");return!y1(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&zv&&zv<41})});var $u=h((d8,Yv)=>{"use strict";var b1=Vu();Yv.exports=b1&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Wu=h((p8,Qv)=>{"use strict";var _1=zn(),w1=Ve(),S1=st(),I1=$u(),E1=Object;Qv.exports=I1?function(e){return typeof e=="symbol"}:function(e){var t=_1("Symbol");return w1(t)&&S1(t.prototype,E1(e))}});var lo=h((f8,Xv)=>{"use strict";var A1=String;Xv.exports=function(e){try{return A1(e)}catch(t){return"Object"}}});var mn=h((m8,Zv)=>{"use strict";var C1=Ve(),k1=lo(),x1=TypeError;Zv.exports=function(e){if(C1(e))return e;throw new x1(k1(e)+" is not a function")}});var ms=h((h8,ey)=>{"use strict";var T1=mn(),P1=pn();ey.exports=function(e,t){var r=e[t];return P1(r)?void 0:T1(r)}});var ry=h((g8,ty)=>{"use strict";var zu=Mt(),Ku=Ve(),Yu=qe(),O1=TypeError;ty.exports=function(e,t){var r,n;if(t==="string"&&Ku(r=e.toString)&&!Yu(n=zu(r,e))||Ku(r=e.valueOf)&&!Yu(n=zu(r,e))||t!=="string"&&Ku(r=e.toString)&&!Yu(n=zu(r,e)))return n;throw new O1("Can't convert object to primitive value")}});var Kn=h((v8,ny)=>{"use strict";ny.exports=!0});var ay=h((y8,oy)=>{"use strict";var iy=Se(),R1=Object.defineProperty;oy.exports=function(e,t){try{R1(iy,e,{value:t,configurable:!0,writable:!0})}catch(r){iy[e]=t}return t}});var uo=h((b8,ly)=>{"use strict";var N1=Kn(),D1=Se(),L1=ay(),sy="__core-js_shared__",cy=ly.exports=D1[sy]||L1(sy,{});(cy.versions||(cy.versions=[])).push({version:"3.41.0",mode:N1?"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 Qu=h((_8,dy)=>{"use strict";var uy=uo();dy.exports=function(e,t){return uy[e]||(uy[e]=t||{})}});var Yn=h((w8,py)=>{"use strict";var q1=fn(),U1=Object;py.exports=function(e){return U1(q1(e))}});var It=h((S8,fy)=>{"use strict";var M1=Pe(),F1=Yn(),j1=M1({}.hasOwnProperty);fy.exports=Object.hasOwn||function(t,r){return j1(F1(t),r)}});var hs=h((I8,my)=>{"use strict";var B1=Pe(),G1=0,J1=Math.random(),H1=B1(1 .toString);my.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+H1(++G1+J1,36)}});var Ze=h((E8,gy)=>{"use strict";var V1=Se(),$1=Qu(),hy=It(),W1=hs(),z1=Vu(),K1=$u(),Qn=V1.Symbol,Xu=$1("wks"),Y1=K1?Qn.for||Qn:Qn&&Qn.withoutSetter||W1;gy.exports=function(e){return hy(Xu,e)||(Xu[e]=z1&&hy(Qn,e)?Qn[e]:Y1("Symbol."+e)),Xu[e]}});var _y=h((A8,by)=>{"use strict";var Q1=Mt(),vy=qe(),yy=Wu(),X1=ms(),Z1=ry(),eN=Ze(),tN=TypeError,rN=eN("toPrimitive");by.exports=function(e,t){if(!vy(e)||yy(e))return e;var r=X1(e,rN),n;if(r){if(t===void 0&&(t="default"),n=Q1(r,e,t),!vy(n)||yy(n))return n;throw new tN("Can't convert object to primitive value")}return t===void 0&&(t="number"),Z1(e,t)}});var Zu=h((C8,wy)=>{"use strict";var nN=_y(),iN=Wu();wy.exports=function(e){var t=nN(e,"string");return iN(t)?t:t+""}});var td=h((k8,Iy)=>{"use strict";var oN=Se(),Sy=qe(),ed=oN.document,aN=Sy(ed)&&Sy(ed.createElement);Iy.exports=function(e){return aN?ed.createElement(e):{}}});var rd=h((x8,Ey)=>{"use strict";var sN=ct(),cN=we(),lN=td();Ey.exports=!sN&&!cN(function(){return Object.defineProperty(lN("div"),"a",{get:function(){return 7}}).a!==7})});var nd=h(Cy=>{"use strict";var uN=ct(),dN=Mt(),pN=ju(),fN=co(),mN=jr(),hN=Zu(),gN=It(),vN=rd(),Ay=Object.getOwnPropertyDescriptor;Cy.f=uN?Ay:function(t,r){if(t=mN(t),r=hN(r),vN)try{return Ay(t,r)}catch(n){}if(gN(t,r))return fN(!dN(pN.f,t,r),t[r])}});var xy=h((P8,ky)=>{"use strict";var yN=we(),bN=Ve(),_N=/#|\.prototype\./,po=function(e,t){var r=SN[wN(e)];return r===EN?!0:r===IN?!1:bN(t)?yN(t):!!t},wN=po.normalize=function(e){return String(e).replace(_N,".").toLowerCase()},SN=po.data={},IN=po.NATIVE="N",EN=po.POLYFILL="P";ky.exports=po});var fo=h((O8,Py)=>{"use strict";var Ty=so(),AN=mn(),CN=Wn(),kN=Ty(Ty.bind);Py.exports=function(e,t){return AN(e),t===void 0?e:CN?kN(e,t):function(){return e.apply(t,arguments)}}});var id=h((R8,Oy)=>{"use strict";var xN=ct(),TN=we();Oy.exports=xN&&TN(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var mr=h((N8,Ry)=>{"use strict";var PN=qe(),ON=String,RN=TypeError;Ry.exports=function(e){if(PN(e))return e;throw new RN(ON(e)+" is not an object")}});var hr=h(Dy=>{"use strict";var NN=ct(),DN=rd(),LN=id(),gs=mr(),Ny=Zu(),qN=TypeError,od=Object.defineProperty,UN=Object.getOwnPropertyDescriptor,ad="enumerable",sd="configurable",cd="writable";Dy.f=NN?LN?function(t,r,n){if(gs(t),r=Ny(r),gs(n),typeof t=="function"&&r==="prototype"&&"value"in n&&cd in n&&!n[cd]){var i=UN(t,r);i&&i[cd]&&(t[r]=n.value,n={configurable:sd in n?n[sd]:i[sd],enumerable:ad in n?n[ad]:i[ad],writable:!1})}return od(t,r,n)}:od:function(t,r,n){if(gs(t),r=Ny(r),gs(n),DN)try{return od(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new qN("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var hn=h((L8,Ly)=>{"use strict";var MN=ct(),FN=hr(),jN=co();Ly.exports=MN?function(e,t,r){return FN.f(e,t,jN(1,r))}:function(e,t,r){return e[t]=r,e}});var ae=h((q8,Uy)=>{"use strict";var mo=Se(),BN=Mu(),GN=so(),JN=Ve(),HN=nd().f,VN=xy(),Xn=zt(),$N=fo(),Zn=hn(),qy=It();uo();var WN=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 BN(e,this,arguments)};return t.prototype=e.prototype,t};Uy.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?mo:i?mo[r]:mo[r]&&mo[r].prototype,s=n?Xn:Xn[r]||Zn(Xn,r,{})[r],c=s.prototype,l,d,u,p,f,m,v,b,y;for(p in t)l=VN(n?p:r+(i?".":"#")+p,e.forced),d=!l&&a&&qy(a,p),m=s[p],d&&(e.dontCallGetSet?(y=HN(a,p),v=y&&y.value):v=a[p]),f=d&&v?v:t[p],!(!l&&!o&&typeof m==typeof f)&&(e.bind&&d?b=$N(f,mo):e.wrap&&d?b=WN(f):o&&JN(f)?b=GN(f):b=f,(e.sham||f&&f.sham||m&&m.sham)&&Zn(b,"sham",!0),Zn(s,p,b),o&&(u=r+"Prototype",qy(Xn,u)||Zn(Xn,u,{}),Zn(Xn[u],p,f),e.real&&c&&(l||!c[p])&&Zn(c,p,f)))}});var Fy=h((U8,My)=>{"use strict";var zN=Math.ceil,KN=Math.floor;My.exports=Math.trunc||function(t){var r=+t;return(r>0?KN:zN)(r)}});var ho=h((M8,jy)=>{"use strict";var YN=Fy();jy.exports=function(e){var t=+e;return t!==t||t===0?0:YN(t)}});var ld=h((F8,By)=>{"use strict";var QN=ho(),XN=Math.min;By.exports=function(e){var t=QN(e);return t>0?XN(t,9007199254740991):0}});var ei=h((j8,Gy)=>{"use strict";var ZN=ld();Gy.exports=function(e){return ZN(e.length)}});var go=h((B8,Jy)=>{"use strict";var eD=fr();Jy.exports=Array.isArray||function(t){return eD(t)==="Array"}});var vs=h((G8,Vy)=>{"use strict";var tD=Ze(),rD=tD("toStringTag"),Hy={};Hy[rD]="z";Vy.exports=String(Hy)==="[object z]"});var ti=h((J8,$y)=>{"use strict";var nD=vs(),iD=Ve(),ys=fr(),oD=Ze(),aD=oD("toStringTag"),sD=Object,cD=ys(function(){return arguments}())==="Arguments",lD=function(e,t){try{return e[t]}catch(r){}};$y.exports=nD?ys:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=lD(t=sD(e),aD))=="string"?r:cD?ys(t):(n=ys(t))==="Object"&&iD(t.callee)?"Arguments":n}});var zy=h((H8,Wy)=>{"use strict";var uD=Pe(),dD=Ve(),ud=uo(),pD=uD(Function.toString);dD(ud.inspectSource)||(ud.inspectSource=function(e){return pD(e)});Wy.exports=ud.inspectSource});var pd=h((V8,Zy)=>{"use strict";var fD=Pe(),mD=we(),Ky=Ve(),hD=ti(),gD=zn(),vD=zy(),Yy=function(){},Qy=gD("Reflect","construct"),dd=/^\s*(?:class|function)\b/,yD=fD(dd.exec),bD=!dd.test(Yy),vo=function(t){if(!Ky(t))return!1;try{return Qy(Yy,[],t),!0}catch(r){return!1}},Xy=function(t){if(!Ky(t))return!1;switch(hD(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bD||!!yD(dd,vD(t))}catch(r){return!0}};Xy.sham=!0;Zy.exports=!Qy||mD(function(){var e;return vo(vo.call)||!vo(Object)||!vo(function(){e=!0})||e})?Xy:vo});var nb=h(($8,rb)=>{"use strict";var eb=go(),_D=pd(),wD=qe(),SD=Ze(),ID=SD("species"),tb=Array;rb.exports=function(e){var t;return eb(e)&&(t=e.constructor,_D(t)&&(t===tb||eb(t.prototype))?t=void 0:wD(t)&&(t=t[ID],t===null&&(t=void 0))),t===void 0?tb:t}});var fd=h((W8,ib)=>{"use strict";var ED=nb();ib.exports=function(e,t){return new(ED(e))(t===0?0:t)}});var Gr=h((z8,ab)=>{"use strict";var AD=fo(),CD=Pe(),kD=us(),xD=Yn(),TD=ei(),PD=fd(),ob=CD([].push),Br=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=xD(c),f=kD(p),m=TD(f),v=AD(l,d),b=0,y=u||PD,w=t?y(c,m):r||a?y(c,0):void 0,E,C;m>b;b++)if((s||b in f)&&(E=f[b],C=v(E,b,p),e))if(t)w[b]=C;else if(C)switch(e){case 3:return!0;case 5:return E;case 6:return b;case 2:ob(w,E)}else switch(e){case 4:return!1;case 7:ob(w,E)}return o?-1:n||i?i:w}};ab.exports={forEach:Br(0),map:Br(1),filter:Br(2),some:Br(3),every:Br(4),find:Br(5),findIndex:Br(6),filterReject:Br(7)}});var yo=h((K8,sb)=>{"use strict";var OD=we(),RD=Ze(),ND=fs(),DD=RD("species");sb.exports=function(e){return ND>=51||!OD(function(){var t=[],r=t.constructor={};return r[DD]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var cb=h(()=>{"use strict";var LD=ae(),qD=Gr().filter,UD=yo(),MD=UD("filter");LD({target:"Array",proto:!0,forced:!MD},{filter:function(t){return qD(this,t,arguments.length>1?arguments[1]:void 0)}})});var Ot=h((X8,lb)=>{"use strict";var FD=Se(),jD=zt();lb.exports=function(e,t){var r=jD[e+"Prototype"],n=r&&r[t];if(n)return n;var i=FD[e],o=i&&i.prototype;return o&&o[t]}});var db=h((Z8,ub)=>{"use strict";cb();var BD=Ot();ub.exports=BD("Array","filter")});var fb=h((e7,pb)=>{"use strict";var GD=st(),JD=db(),md=Array.prototype;pb.exports=function(e){var t=e.filter;return e===md||GD(md,e)&&t===md.filter?JD:t}});var hb=h((t7,mb)=>{"use strict";var HD=fb();mb.exports=HD});var vb=h((r7,gb)=>{gb.exports=hb()});var bo=h((n7,yb)=>{"use strict";var VD=we();yb.exports=function(e,t){var r=[][e];return!!r&&VD(function(){r.call(null,t||function(){return 1},1)})}});var bb=h(()=>{"use strict";var $D=ae(),WD=Gr().every,zD=bo(),KD=zD("every");$D({target:"Array",proto:!0,forced:!KD},{every:function(t){return WD(this,t,arguments.length>1?arguments[1]:void 0)}})});var wb=h((a7,_b)=>{"use strict";bb();var YD=Ot();_b.exports=YD("Array","every")});var Ib=h((s7,Sb)=>{"use strict";var QD=st(),XD=wb(),hd=Array.prototype;Sb.exports=function(e){var t=e.every;return e===hd||QD(hd,e)&&t===hd.every?XD:t}});var Ab=h((c7,Eb)=>{"use strict";var ZD=Ib();Eb.exports=ZD});var kb=h((l7,Cb)=>{Cb.exports=Ab()});var Tb=h((u7,xb)=>{"use strict";var eL=Gr().forEach,tL=bo(),rL=tL("forEach");xb.exports=rL?[].forEach:function(t){return eL(this,t,arguments.length>1?arguments[1]:void 0)}});var Ob=h(()=>{"use strict";var nL=ae(),Pb=Tb();nL({target:"Array",proto:!0,forced:[].forEach!==Pb},{forEach:Pb})});var Nb=h((f7,Rb)=>{"use strict";Ob();var iL=Ot();Rb.exports=iL("Array","forEach")});var Lb=h((m7,Db)=>{"use strict";var oL=Nb();Db.exports=oL});var qb=h(()=>{});var Mb=h((v7,Ub)=>{"use strict";var aL=ti(),sL=It(),cL=st(),lL=Lb();qb();var gd=Array.prototype,uL={DOMTokenList:!0,NodeList:!0};Ub.exports=function(e){var t=e.forEach;return e===gd||cL(gd,e)&&t===gd.forEach||sL(uL,aL(e))?lL:t}});var jb=h((y7,Fb)=>{Fb.exports=Mb()});var Gb=h((b7,Bb)=>{"use strict";var dL=TypeError,pL=9007199254740991;Bb.exports=function(e){if(e>pL)throw dL("Maximum allowed index exceeded");return e}});var vd=h((_7,Jb)=>{"use strict";var fL=ct(),mL=hr(),hL=co();Jb.exports=function(e,t,r){fL?mL.f(e,t,hL(0,r)):e[t]=r}});var Wb=h(()=>{"use strict";var gL=ae(),vL=we(),yL=go(),bL=qe(),_L=Yn(),wL=ei(),Hb=Gb(),Vb=vd(),SL=fd(),IL=yo(),EL=Ze(),AL=fs(),$b=EL("isConcatSpreadable"),CL=AL>=51||!vL(function(){var e=[];return e[$b]=!1,e.concat()[0]!==e}),kL=function(e){if(!bL(e))return!1;var t=e[$b];return t!==void 0?!!t:yL(e)},xL=!CL||!IL("concat");gL({target:"Array",proto:!0,arity:1,forced:xL},{concat:function(t){var r=_L(this),n=SL(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],kL(l))for(c=wL(l),Hb(i+c),a=0;a<c;a++,i++)a in l&&Vb(n,i,l[a]);else Hb(i+1),Vb(n,i++,l);return n.length=i,n}})});var Kb=h((I7,zb)=>{"use strict";Wb();var TL=Ot();zb.exports=TL("Array","concat")});var Qb=h((E7,Yb)=>{"use strict";var PL=st(),OL=Kb(),yd=Array.prototype;Yb.exports=function(e){var t=e.concat;return e===yd||PL(yd,e)&&t===yd.concat?OL:t}});var Zb=h((A7,Xb)=>{"use strict";var RL=Qb();Xb.exports=RL});var t_=h((C7,e_)=>{e_.exports=Zb()});var r_=h(()=>{"use strict";var NL=ae(),DL=Gr().some,LL=bo(),qL=LL("some");NL({target:"Array",proto:!0,forced:!qL},{some:function(t){return DL(this,t,arguments.length>1?arguments[1]:void 0)}})});var i_=h((T7,n_)=>{"use strict";r_();var UL=Ot();n_.exports=UL("Array","some")});var a_=h((P7,o_)=>{"use strict";var ML=st(),FL=i_(),bd=Array.prototype;o_.exports=function(e){var t=e.some;return e===bd||ML(bd,e)&&t===bd.some?FL:t}});var c_=h((O7,s_)=>{"use strict";var jL=a_();s_.exports=jL});var u_=h((R7,l_)=>{l_.exports=c_()});var p_=h((N7,d_)=>{"use strict";var _o=Se(),BL=ds(),GL=fr(),bs=function(e){return BL.slice(0,e.length)===e};d_.exports=function(){return bs("Bun/")?"BUN":bs("Cloudflare-Workers")?"CLOUDFLARE":bs("Deno/")?"DENO":bs("Node.js/")?"NODE":_o.Bun&&typeof Bun.version=="string"?"BUN":_o.Deno&&typeof Deno.version=="object"?"DENO":GL(_o.process)==="process"?"NODE":_o.window&&_o.document?"BROWSER":"REST"}()});var wo=h((D7,f_)=>{"use strict";var JL=Pe();f_.exports=JL([].slice)});var h_=h((L7,m_)=>{"use strict";var HL=TypeError;m_.exports=function(e,t){if(e<t)throw new HL("Not enough arguments");return e}});var _d=h((q7,v_)=>{"use strict";var g_=Se(),VL=Mu(),$L=Ve(),WL=p_(),zL=ds(),KL=wo(),YL=h_(),QL=g_.Function,XL=/MSIE .\./.test(zL)||WL==="BUN"&&function(){var e=g_.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();v_.exports=function(e,t){var r=t?2:1;return XL?function(n,i){var o=YL(arguments.length,1)>r,a=$L(n)?n:QL(n),s=o?KL(arguments,r):[],c=o?function(){VL(a,this,s)}:a;return t?e(c,i):e(c)}:e}});var __=h(()=>{"use strict";var ZL=ae(),b_=Se(),eq=_d(),y_=eq(b_.setInterval,!0);ZL({global:!0,bind:!0,forced:b_.setInterval!==y_},{setInterval:y_})});var I_=h(()=>{"use strict";var tq=ae(),S_=Se(),rq=_d(),w_=rq(S_.setTimeout,!0);tq({global:!0,bind:!0,forced:S_.setTimeout!==w_},{setTimeout:w_})});var E_=h(()=>{"use strict";__();I_()});var C_=h((J7,A_)=>{"use strict";E_();var nq=zt();A_.exports=nq.setTimeout});var x_=h((H7,k_)=>{k_.exports=C_()});function Io(e,t){Ce.__h&&Ce.__h(de,e,So||t),So=0;var r=de.__H||(de.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function gr(e){return So=1,M_(F_,e)}function M_(e,t,r){var n=Io(gn++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):F_(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){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};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 vn(e,t){var r=Io(gn++,3);!Ce.__s&&Id(r.__H,t)&&(r.__=e,r.u=t,de.__H.__h.push(r))}function ri(e,t){var r=Io(gn++,4);!Ce.__s&&Id(r.__H,t)&&(r.__=e,r.u=t,de.__h.push(r))}function ni(e){return So=5,Eo(function(){return{current:e}},[])}function Eo(e,t){var r=Io(gn++,7);return Id(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Jr(e,t){return So=8,Eo(function(){return e},t)}function ii(e){var t=de.context[e.__c],r=Io(gn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(de)),t.props.value):e.__}function iq(){for(var e;e=U_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(_s),e.__H.__h.forEach(Sd),e.__H.__h=[]}catch(t){e.__H.__h=[],Ce.__e(t,e.__v)}}function oq(e){var t,r=function(){clearTimeout(n),q_&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);q_&&(t=requestAnimationFrame(r))}function _s(e){var t=de,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),de=t}function Sd(e){var t=de;e.__c=e.__(),de=t}function Id(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function F_(e,t){return typeof t=="function"?t(e):t}var gn,de,wd,T_,So,U_,Ce,P_,O_,R_,N_,D_,L_,q_,Ed=x(()=>{$n();So=0,U_=[],Ce=L,P_=Ce.__b,O_=Ce.__r,R_=Ce.diffed,N_=Ce.__c,D_=Ce.unmount,L_=Ce.__;Ce.__b=function(e){de=null,P_&&P_(e)},Ce.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),L_&&L_(e,t)},Ce.__r=function(e){O_&&O_(e),gn=0;var t=(de=e.__c).__H;t&&(wd===de?(t.__h=[],de.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(_s),t.__h.forEach(Sd),t.__h=[],gn=0)),wd=de},Ce.diffed=function(e){R_&&R_(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(U_.push(t)!==1&&T_===Ce.requestAnimationFrame||((T_=Ce.requestAnimationFrame)||oq)(iq)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),wd=de=null},Ce.__c=function(e,t){t.some(function(r){try{r.__h.forEach(_s),r.__h=r.__h.filter(function(n){return!n.__||Sd(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ce.__e(n,r.__v)}}),N_&&N_(e,t)},Ce.unmount=function(e){D_&&D_(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{_s(n)}catch(i){t=i}}),r.__H=void 0,t&&Ce.__e(t,r.__v))};q_=typeof requestAnimationFrame=="function"});function K_(e,t){for(var r in t)e[r]=t[r];return e}function Cd(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 j_(e,t){this.props=e,this.context=t}function xd(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:Cd(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Xe(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Td(e){function t(r){var n=K_({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=aq,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=K_({},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 Q_(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Q_(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 X_(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ws(){this.i=null,this.l=null}function Ss(e,t,r){return t.__k==null&&(t.textContent=""),Fr(e,t),typeof r=="function"&&r(),e?e.__c:null}function mq(){}function hq(){return this.cancelBubble}function gq(){return this.defaultPrevented}var kd,B_,aq,sq,G_,J_,cq,lq,uq,dq,pq,fq,H_,Z_,vq,V_,$_,W_,Is=x(()=>{$n();$n();Ed();Ed();kd=ri;(j_.prototype=new St).isPureReactComponent=!0,j_.prototype.shouldComponentUpdate=function(e,t){return Cd(this.props,e)||Cd(this.state,t)};B_=L.__b;L.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),B_&&B_(e)};aq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;sq=L.__e;L.__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)}sq(e,t,r,n)};G_=L.unmount;L.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),G_&&G_(e)},(Ad.prototype=new St).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=X_(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]=Q_(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]=Y_(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Xe(He,null,e.fallback);return i&&(i.__u&=-33),[Xe(He,null,t.__a?null:e.children),i]};J_=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]}};(ws.prototype=new St).__a=function(e){var t=this,r=X_(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),J_(t,e,n)):i()};r?r(o):o()}},ws.prototype.render=function(e){this.i=null,this.l=new Map;var t=oo(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},ws.prototype.componentDidUpdate=ws.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){J_(e,r,t)})};cq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,lq=/^(?: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]/,uq=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,dq=/[A-Z0-9]/g,pq=typeof document!="undefined",fq=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};St.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(St.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});H_=L.event;L.event=function(e){return H_&&(e=H_(e)),e.persist=mq,e.isPropagationStopped=hq,e.isDefaultPrevented=gq,e.nativeEvent=e};vq={enumerable:!1,configurable:!0,get:function(){return this.class}},V_=L.vnode;L.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||pq&&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"||fq(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":uq.test(a)&&(a=c):c=a="oninput":o&&lq.test(a)?a=a.replace(dq,"-$&").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=oo(r.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=oo(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",vq)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=cq,V_&&V_(e)};$_=L.__r;L.__r=function(e){$_&&$_(e),Z_=e.__c};W_=L.diffed;L.diffed=function(e){W_&&W_(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),Z_=null}});var Od=h(()=>{"use strict";var bq=ae(),Pd=Se();bq({global:!0,forced:Pd.globalThis!==Pd},{globalThis:Pd})});var ew=h(()=>{"use strict";Od()});var rw=h((aY,tw)=>{"use strict";Od();tw.exports=Se()});var iw=h((sY,nw)=>{"use strict";var _q=rw();nw.exports=_q});var aw=h((cY,ow)=>{"use strict";var wq=iw();ow.exports=wq});var cw=h((lY,sw)=>{"use strict";ew();var Sq=aw();sw.exports=Sq});var uw=h((uY,lw)=>{"use strict";lw.exports=cw()});var pw=h((dY,dw)=>{dw.exports=uw()});var fw=h(()=>{"use strict";var Iq=ae(),Eq=go();Iq({target:"Array",stat:!0},{isArray:Eq})});var hw=h((mY,mw)=>{"use strict";fw();var Aq=zt();mw.exports=Aq.Array.isArray});var vw=h((hY,gw)=>{"use strict";var Cq=hw();gw.exports=Cq});var bw=h((gY,yw)=>{yw.exports=vw()});var ww=h((vY,_w)=>{"use strict";_w.exports=function(){}});var yn=h((yY,Sw)=>{"use strict";Sw.exports={}});var Rd=h((bY,Ew)=>{"use strict";var kq=Se(),xq=Ve(),Iw=kq.WeakMap;Ew.exports=xq(Iw)&&/native code/.test(String(Iw))});var Es=h((_Y,Cw)=>{"use strict";var Tq=Qu(),Pq=hs(),Aw=Tq("keys");Cw.exports=function(e){return Aw[e]||(Aw[e]=Pq(e))}});var Ao=h((wY,kw)=>{"use strict";kw.exports={}});var _n=h((SY,Pw)=>{"use strict";var Oq=Rd(),Tw=Se(),Rq=qe(),Nq=hn(),Nd=It(),Dd=uo(),Dq=Es(),Lq=Ao(),xw="Object already initialized",Ld=Tw.TypeError,qq=Tw.WeakMap,As,Co,Cs,Uq=function(e){return Cs(e)?Co(e):As(e,{})},Mq=function(e){return function(t){var r;if(!Rq(t)||(r=Co(t)).type!==e)throw new Ld("Incompatible receiver, "+e+" required");return r}};Oq||Dd.state?(jt=Dd.state||(Dd.state=new qq),jt.get=jt.get,jt.has=jt.has,jt.set=jt.set,As=function(e,t){if(jt.has(e))throw new Ld(xw);return t.facade=e,jt.set(e,t),t},Co=function(e){return jt.get(e)||{}},Cs=function(e){return jt.has(e)}):(bn=Dq("state"),Lq[bn]=!0,As=function(e,t){if(Nd(e,bn))throw new Ld(xw);return t.facade=e,Nq(e,bn,t),t},Co=function(e){return Nd(e,bn)?e[bn]:{}},Cs=function(e){return Nd(e,bn)});var jt,bn;Pw.exports={set:As,get:Co,has:Cs,enforce:Uq,getterFor:Mq}});var Md=h((IY,Rw)=>{"use strict";var qd=ct(),Fq=It(),Ow=Function.prototype,jq=qd&&Object.getOwnPropertyDescriptor,Ud=Fq(Ow,"name"),Bq=Ud&&(function(){}).name==="something",Gq=Ud&&(!qd||qd&&jq(Ow,"name").configurable);Rw.exports={EXISTS:Ud,PROPER:Bq,CONFIGURABLE:Gq}});var Fd=h((EY,Nw)=>{"use strict";var Jq=ho(),Hq=Math.max,Vq=Math.min;Nw.exports=function(e,t){var r=Jq(e);return r<0?Hq(r+t,0):Vq(r,t)}});var jd=h((AY,Lw)=>{"use strict";var $q=jr(),Wq=Fd(),zq=ei(),Dw=function(e){return function(t,r,n){var i=$q(t),o=zq(i);if(o===0)return!e&&-1;var a=Wq(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}};Lw.exports={includes:Dw(!0),indexOf:Dw(!1)}});var Gd=h((CY,Uw)=>{"use strict";var Kq=Pe(),Bd=It(),Yq=jr(),Qq=jd().indexOf,Xq=Ao(),qw=Kq([].push);Uw.exports=function(e,t){var r=Yq(e),n=0,i=[],o;for(o in r)!Bd(Xq,o)&&Bd(r,o)&&qw(i,o);for(;t.length>n;)Bd(r,o=t[n++])&&(~Qq(i,o)||qw(i,o));return i}});var ks=h((kY,Mw)=>{"use strict";Mw.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Jd=h((xY,Fw)=>{"use strict";var Zq=Gd(),eU=ks();Fw.exports=Object.keys||function(t){return Zq(t,eU)}});var Bw=h(jw=>{"use strict";var tU=ct(),rU=id(),nU=hr(),iU=mr(),oU=jr(),aU=Jd();jw.f=tU&&!rU?Object.defineProperties:function(t,r){iU(t);for(var n=oU(r),i=aU(r),o=i.length,a=0,s;o>a;)nU.f(t,s=i[a++],n[s]);return t}});var Jw=h((PY,Gw)=>{"use strict";var sU=zn();Gw.exports=sU("document","documentElement")});var ko=h((OY,Yw)=>{"use strict";var cU=mr(),lU=Bw(),Hw=ks(),uU=Ao(),dU=Jw(),pU=td(),fU=Es(),Vw=">",$w="<",Vd="prototype",$d="script",zw=fU("IE_PROTO"),Hd=function(){},Kw=function(e){return $w+$d+Vw+e+$w+"/"+$d+Vw},Ww=function(e){e.write(Kw("")),e.close();var t=e.parentWindow.Object;return e=null,t},mU=function(){var e=pU("iframe"),t="java"+$d+":",r;return e.style.display="none",dU.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(Kw("document.F=Object")),r.close(),r.F},xs,Ts=function(){try{xs=new ActiveXObject("htmlfile")}catch(t){}Ts=typeof document!="undefined"?document.domain&&xs?Ww(xs):mU():Ww(xs);for(var e=Hw.length;e--;)delete Ts[Vd][Hw[e]];return Ts()};uU[zw]=!0;Yw.exports=Object.create||function(t,r){var n;return t!==null?(Hd[Vd]=cU(t),n=new Hd,Hd[Vd]=null,n[zw]=t):n=Ts(),r===void 0?n:lU.f(n,r)}});var Xw=h((RY,Qw)=>{"use strict";var hU=we();Qw.exports=!hU(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var zd=h((NY,eS)=>{"use strict";var gU=It(),vU=Ve(),yU=Yn(),bU=Es(),_U=Xw(),Zw=bU("IE_PROTO"),Wd=Object,wU=Wd.prototype;eS.exports=_U?Wd.getPrototypeOf:function(e){var t=yU(e);if(gU(t,Zw))return t[Zw];var r=t.constructor;return vU(r)&&t instanceof r?r.prototype:t instanceof Wd?wU:null}});var Ps=h((DY,tS)=>{"use strict";var SU=hn();tS.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:SU(e,t,r),e}});var Xd=h((LY,iS)=>{"use strict";var IU=we(),EU=Ve(),AU=qe(),CU=ko(),rS=zd(),kU=Ps(),xU=Ze(),TU=Kn(),Qd=xU("iterator"),nS=!1,vr,Kd,Yd;[].keys&&(Yd=[].keys(),"next"in Yd?(Kd=rS(rS(Yd)),Kd!==Object.prototype&&(vr=Kd)):nS=!0);var PU=!AU(vr)||IU(function(){var e={};return vr[Qd].call(e)!==e});PU?vr={}:TU&&(vr=CU(vr));EU(vr[Qd])||kU(vr,Qd,function(){return this});iS.exports={IteratorPrototype:vr,BUGGY_SAFARI_ITERATORS:nS}});var aS=h((qY,oS)=>{"use strict";var OU=vs(),RU=ti();oS.exports=OU?{}.toString:function(){return"[object "+RU(this)+"]"}});var xo=h((UY,cS)=>{"use strict";var NU=vs(),DU=hr().f,LU=hn(),qU=It(),UU=aS(),MU=Ze(),sS=MU("toStringTag");cS.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(qU(i,sS)||DU(i,sS,{configurable:!0,value:t}),n&&!NU&&LU(i,"toString",UU))}});var uS=h((MY,lS)=>{"use strict";var FU=Xd().IteratorPrototype,jU=ko(),BU=co(),GU=xo(),JU=yn(),HU=function(){return this};lS.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=jU(FU,{next:BU(+!n,r)}),GU(e,i,!1,!0),JU[i]=HU,e}});var pS=h((FY,dS)=>{"use strict";var VU=Pe(),$U=mn();dS.exports=function(e,t,r){try{return VU($U(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var mS=h((jY,fS)=>{"use strict";var WU=qe();fS.exports=function(e){return WU(e)||e===null}});var gS=h((BY,hS)=>{"use strict";var zU=mS(),KU=String,YU=TypeError;hS.exports=function(e){if(zU(e))return e;throw new YU("Can't set "+KU(e)+" as a prototype")}});var yS=h((GY,vS)=>{"use strict";var QU=pS(),XU=qe(),ZU=fn(),eM=gS();vS.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=QU(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return ZU(i),eM(o),XU(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Ns=h((JY,xS)=>{"use strict";var tM=ae(),rM=Mt(),Os=Kn(),CS=Md(),nM=Ve(),iM=uS(),bS=zd(),_S=yS(),oM=xo(),aM=hn(),Zd=Ps(),sM=Ze(),wS=yn(),kS=Xd(),cM=CS.PROPER,lM=CS.CONFIGURABLE,SS=kS.IteratorPrototype,Rs=kS.BUGGY_SAFARI_ITERATORS,To=sM("iterator"),IS="keys",Po="values",ES="entries",AS=function(){return this};xS.exports=function(e,t,r,n,i,o,a){iM(r,t,n);var s=function(y){if(y===i&&p)return p;if(!Rs&&y&&y in d)return d[y];switch(y){case IS:return function(){return new r(this,y)};case Po:return function(){return new r(this,y)};case ES:return function(){return new r(this,y)}}return function(){return new r(this)}},c=t+" Iterator",l=!1,d=e.prototype,u=d[To]||d["@@iterator"]||i&&d[i],p=!Rs&&u||s(i),f=t==="Array"&&d.entries||u,m,v,b;if(f&&(m=bS(f.call(new e)),m!==Object.prototype&&m.next&&(!Os&&bS(m)!==SS&&(_S?_S(m,SS):nM(m[To])||Zd(m,To,AS)),oM(m,c,!0,!0),Os&&(wS[c]=AS))),cM&&i===Po&&u&&u.name!==Po&&(!Os&&lM?aM(d,"name",Po):(l=!0,p=function(){return rM(u,this)})),i)if(v={values:s(Po),keys:o?p:s(IS),entries:s(ES)},a)for(b in v)(Rs||l||!(b in d))&&Zd(d,b,v[b]);else tM({target:t,proto:!0,forced:Rs||l},v);return(!Os||a)&&d[To]!==p&&Zd(d,To,p,{name:i}),wS[t]=p,v}});var Ds=h((HY,TS)=>{"use strict";TS.exports=function(e,t){return{value:e,done:t}}});var qs=h((VY,DS)=>{"use strict";var uM=jr(),ep=ww(),PS=yn(),RS=_n(),dM=hr().f,pM=Ns(),Ls=Ds(),fM=Kn(),mM=ct(),NS="Array Iterator",hM=RS.set,gM=RS.getterFor(NS);DS.exports=pM(Array,"Array",function(e,t){hM(this,{type:NS,target:uM(e),index:0,kind:t})},function(){var e=gM(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Ls(void 0,!0);switch(e.kind){case"keys":return Ls(r,!1);case"values":return Ls(t[r],!1)}return Ls([r,t[r]],!1)},"values");var OS=PS.Arguments=PS.Array;ep("keys");ep("values");ep("entries");if(!fM&&mM&&OS.name!=="values")try{dM(OS,"name",{value:"values"})}catch(e){}});var tp=h(()=>{});var rp=h((zY,LS)=>{"use strict";var vM=we();LS.exports=!vM(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Us=h((KY,qS)=>{"use strict";var yM=Ps();qS.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:yM(e,n,t[n],r);return e}});var np=h(US=>{"use strict";var bM=Gd(),_M=ks(),wM=_M.concat("length","prototype");US.f=Object.getOwnPropertyNames||function(t){return bM(t,wM)}});var BS=h((QY,jS)=>{"use strict";var SM=fr(),IM=jr(),MS=np().f,EM=wo(),FS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],AM=function(e){try{return MS(e)}catch(t){return EM(FS)}};jS.exports.f=function(t){return FS&&SM(t)==="Window"?AM(t):MS(IM(t))}});var JS=h((XY,GS)=>{"use strict";var CM=we();GS.exports=CM(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var $S=h((ZY,VS)=>{"use strict";var kM=we(),xM=qe(),TM=fr(),HS=JS(),Ms=Object.isExtensible,PM=kM(function(){Ms(1)});VS.exports=PM||HS?function(t){return!xM(t)||HS&&TM(t)==="ArrayBuffer"?!1:Ms?Ms(t):!0}:Ms});var Oo=h((eQ,KS)=>{"use strict";var OM=ae(),RM=Pe(),NM=Ao(),DM=qe(),ip=It(),LM=hr().f,WS=np(),qM=BS(),op=$S(),UM=hs(),MM=rp(),zS=!1,yr=UM("meta"),FM=0,ap=function(e){LM(e,yr,{value:{objectID:"O"+FM++,weakData:{}}})},jM=function(e,t){if(!DM(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!ip(e,yr)){if(!op(e))return"F";if(!t)return"E";ap(e)}return e[yr].objectID},BM=function(e,t){if(!ip(e,yr)){if(!op(e))return!0;if(!t)return!1;ap(e)}return e[yr].weakData},GM=function(e){return MM&&zS&&op(e)&&!ip(e,yr)&&ap(e),e},JM=function(){HM.enable=function(){},zS=!0;var e=WS.f,t=RM([].splice),r={};r[yr]=1,e(r).length&&(WS.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===yr){t(i,o,1);break}return i},OM({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:qM.f}))},HM=KS.exports={enable:JM,fastKey:jM,getWeakData:BM,onFreeze:GM};NM[yr]=!0});var QS=h((tQ,YS)=>{"use strict";var VM=Ze(),$M=yn(),WM=VM("iterator"),zM=Array.prototype;YS.exports=function(e){return e!==void 0&&($M.Array===e||zM[WM]===e)}});var sp=h((rQ,ZS)=>{"use strict";var KM=ti(),XS=ms(),YM=pn(),QM=yn(),XM=Ze(),ZM=XM("iterator");ZS.exports=function(e){if(!YM(e))return XS(e,ZM)||XS(e,"@@iterator")||QM[KM(e)]}});var tI=h((nQ,eI)=>{"use strict";var eF=Mt(),tF=mn(),rF=mr(),nF=lo(),iF=sp(),oF=TypeError;eI.exports=function(e,t){var r=arguments.length<2?iF(e):t;if(tF(r))return rF(eF(r,e));throw new oF(nF(e)+" is not iterable")}});var Fs=h((iQ,nI)=>{"use strict";var aF=Mt(),rI=mr(),sF=ms();nI.exports=function(e,t,r){var n,i;rI(e);try{if(n=sF(e,"return"),!n){if(t==="throw")throw r;return r}n=aF(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return rI(n),r}});var Bs=h((oQ,sI)=>{"use strict";var cF=fo(),lF=Mt(),uF=mr(),dF=lo(),pF=QS(),fF=ei(),iI=st(),mF=tI(),hF=sp(),oI=Fs(),gF=TypeError,js=function(e,t){this.stopped=e,this.result=t},aI=js.prototype;sI.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=cF(t,n),l,d,u,p,f,m,v,b=function(w){return l&&oI(l,"normal",w),new js(!0,w)},y=function(w){return i?(uF(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=hF(e),!d)throw new gF(dF(e)+" is not iterable");if(pF(d)){for(u=0,p=fF(e);p>u;u++)if(f=y(e[u]),f&&iI(aI,f))return f;return new js(!1)}l=mF(e,d)}for(m=o?e.next:l.next;!(v=lF(m,l)).done;){try{f=y(v.value)}catch(w){oI(l,"throw",w)}if(typeof f=="object"&&f&&iI(aI,f))return f}return new js(!1)}});var Gs=h((aQ,cI)=>{"use strict";var vF=st(),yF=TypeError;cI.exports=function(e,t){if(vF(t,e))return e;throw new yF("Incorrect invocation")}});var cp=h((sQ,uI)=>{"use strict";var bF=ae(),_F=Se(),wF=Oo(),SF=we(),IF=hn(),EF=Bs(),AF=Gs(),CF=Ve(),kF=qe(),xF=pn(),TF=xo(),PF=hr().f,OF=Gr().forEach,RF=ct(),lI=_n(),NF=lI.set,DF=lI.getterFor;uI.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=_F[e],s=a&&a.prototype,c={},l;if(!RF||!CF(a)||!(i||s.forEach&&!SF(function(){new a().entries().next()})))l=r.getConstructor(t,e,n,o),wF.enable();else{l=t(function(p,f){NF(AF(p,d),{type:e,collection:new a}),xF(f)||EF(f,p[o],{that:p,AS_ENTRIES:n})});var d=l.prototype,u=DF(e);OF(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&IF(d,p,function(m,v){var b=u(this).collection;if(!f&&i&&!kF(m))return p==="get"?void 0:!1;var y=b[p](m===0?0:m,v);return f?this:y})}),i||PF(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return TF(l,e,!1,!0),c[e]=l,bF({global:!0,forced:!0},c),i||r.setStrong(l,e,n),l}});var vI=h((cQ,gI)=>{"use strict";var LF=Pe(),dI=Us(),Js=Oo().getWeakData,qF=Gs(),UF=mr(),MF=pn(),lp=qe(),FF=Bs(),fI=Gr(),pI=It(),mI=_n(),jF=mI.set,BF=mI.getterFor,GF=fI.find,JF=fI.findIndex,HF=LF([].splice),VF=0,Hs=function(e){return e.frozen||(e.frozen=new hI)},hI=function(){this.entries=[]},up=function(e,t){return GF(e.entries,function(r){return r[0]===t})};hI.prototype={get:function(e){var t=up(this,e);if(t)return t[1]},has:function(e){return!!up(this,e)},set:function(e,t){var r=up(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=JF(this.entries,function(r){return r[0]===e});return~t&&HF(this.entries,t,1),!!~t}};gI.exports={getConstructor:function(e,t,r,n){var i=e(function(c,l){qF(c,o),jF(c,{type:t,id:VF++,frozen:null}),MF(l)||FF(l,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=BF(t),s=function(c,l,d){var u=a(c),p=Js(UF(l),!0);return p===!0?Hs(u).set(l,d):p[u.id]=d,c};return dI(o,{delete:function(c){var l=a(this);if(!lp(c))return!1;var d=Js(c);return d===!0?Hs(l).delete(c):d&&pI(d,l.id)&&delete d[l.id]},has:function(l){var d=a(this);if(!lp(l))return!1;var u=Js(l);return u===!0?Hs(d).has(l):u&&pI(u,d.id)}}),dI(o,r?{get:function(l){var d=a(this);if(lp(l)){var u=Js(l);if(u===!0)return Hs(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 AI=h(()=>{"use strict";var $F=rp(),yI=Se(),zs=Pe(),bI=Us(),WF=Oo(),zF=cp(),_I=vI(),Vs=qe(),$s=_n().enforce,KF=we(),YF=Rd(),Do=Object,QF=Array.isArray,Ws=Do.isExtensible,wI=Do.isFrozen,XF=Do.isSealed,SI=Do.freeze,ZF=Do.seal,ej=!yI.ActiveXObject&&"ActiveXObject"in yI,Ro,II=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},EI=zF("WeakMap",II,_I),oi=EI.prototype,Ks=zs(oi.set),tj=function(){return $F&&KF(function(){var e=SI([]);return Ks(new EI,e,1),!wI(e)})};YF&&(ej?(Ro=_I.getConstructor(II,"WeakMap",!0),WF.enable(),dp=zs(oi.delete),No=zs(oi.has),pp=zs(oi.get),bI(oi,{delete:function(e){if(Vs(e)&&!Ws(e)){var t=$s(this);return t.frozen||(t.frozen=new Ro),dp(this,e)||t.frozen.delete(e)}return dp(this,e)},has:function(t){if(Vs(t)&&!Ws(t)){var r=$s(this);return r.frozen||(r.frozen=new Ro),No(this,t)||r.frozen.has(t)}return No(this,t)},get:function(t){if(Vs(t)&&!Ws(t)){var r=$s(this);return r.frozen||(r.frozen=new Ro),No(this,t)?pp(this,t):r.frozen.get(t)}return pp(this,t)},set:function(t,r){if(Vs(t)&&!Ws(t)){var n=$s(this);n.frozen||(n.frozen=new Ro),No(this,t)?Ks(this,t,r):n.frozen.set(t,r)}else Ks(this,t,r);return this}})):tj()&&bI(oi,{set:function(t,r){var n;return QF(t)&&(wI(t)?n=SI:XF(t)&&(n=ZF)),Ks(this,t,r),n&&n(t),this}}));var dp,No,pp});var CI=h(()=>{"use strict";AI()});var xI=h((fQ,kI)=>{"use strict";qs();tp();CI();var rj=zt();kI.exports=rj.WeakMap});var PI=h((mQ,TI)=>{"use strict";TI.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 fp=h(()=>{"use strict";qs();var nj=PI(),ij=Se(),oj=xo(),OI=yn();for(Ys in nj)oj(ij[Ys],Ys),OI[Ys]=OI.Array;var Ys});var NI=h((vQ,RI)=>{"use strict";var aj=xI();fp();RI.exports=aj});var LI=h((yQ,DI)=>{DI.exports=NI()});var UI=h(()=>{"use strict";var sj=ae(),cj=so(),lj=jd().indexOf,uj=bo(),mp=cj([].indexOf),qI=!!mp&&1/mp([1],1,-0)<0,dj=qI||!uj("indexOf");sj({target:"Array",proto:!0,forced:dj},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return qI?mp(this,t,r)||0:lj(this,t,r)}})});var FI=h((wQ,MI)=>{"use strict";UI();var pj=Ot();MI.exports=pj("Array","indexOf")});var BI=h((SQ,jI)=>{"use strict";var fj=st(),mj=FI(),hp=Array.prototype;jI.exports=function(e){var t=e.indexOf;return e===hp||fj(hp,e)&&t===hp.indexOf?mj:t}});var JI=h((IQ,GI)=>{"use strict";var hj=BI();GI.exports=hj});var VI=h((EQ,HI)=>{HI.exports=JI()});var $I=h(()=>{"use strict";var gj=ae(),vj=Gr().map,yj=yo(),bj=yj("map");gj({target:"Array",proto:!0,forced:!bj},{map:function(t){return vj(this,t,arguments.length>1?arguments[1]:void 0)}})});var zI=h((kQ,WI)=>{"use strict";$I();var _j=Ot();WI.exports=_j("Array","map")});var YI=h((xQ,KI)=>{"use strict";var wj=st(),Sj=zI(),gp=Array.prototype;KI.exports=function(e){var t=e.map;return e===gp||wj(gp,e)&&t===gp.map?Sj:t}});var XI=h((TQ,QI)=>{"use strict";var Ij=YI();QI.exports=Ij});var e0=h((PQ,ZI)=>{ZI.exports=XI()});var t0=h(()=>{"use strict";var Ej=ae(),Aj=ct(),Cj=ko();Ej({target:"Object",stat:!0,sham:!Aj},{create:Cj})});var n0=h((NQ,r0)=>{"use strict";t0();var kj=zt(),xj=kj.Object;r0.exports=function(t,r){return xj.create(t,r)}});var o0=h((DQ,i0)=>{"use strict";var Tj=n0();i0.exports=Tj});var s0=h((LQ,a0)=>{a0.exports=o0()});var vp=h((qQ,c0)=>{"use strict";var Pj=hr();c0.exports=function(e,t,r){return Pj.f(e,t,r)}});var d0=h((UQ,u0)=>{"use strict";var Oj=zn(),Rj=vp(),Nj=Ze(),Dj=ct(),l0=Nj("species");u0.exports=function(e){var t=Oj(e);Dj&&t&&!t[l0]&&Rj(t,l0,{configurable:!0,get:function(){return this}})}});var y0=h((MQ,v0)=>{"use strict";var p0=ko(),Lj=vp(),f0=Us(),qj=fo(),Uj=Gs(),Mj=pn(),Fj=Bs(),jj=Ns(),Qs=Ds(),Bj=d0(),Lo=ct(),m0=Oo().fastKey,g0=_n(),h0=g0.set,yp=g0.getterFor;v0.exports={getConstructor:function(e,t,r,n){var i=e(function(l,d){Uj(l,o),h0(l,{type:t,index:p0(null),first:null,last:null,size:0}),Lo||(l.size=0),Mj(d)||Fj(d,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=yp(t),s=function(l,d,u){var p=a(l),f=c(l,d),m,v;return f?f.value=u:(p.last=f={index:v=m0(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Lo?p.size++:l.size++,v!=="F"&&(p.index[v]=f)),l},c=function(l,d){var u=a(l),p=m0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return f0(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=p0(null),Lo?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),Lo?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=qj(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)}}),f0(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)}}),Lo&&Lj(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=yp(t),o=yp(n);jj(e,t,function(a,s){h0(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,Qs(void 0,!0)):Qs(s==="keys"?c.key:s==="values"?c.value:[c.key,c.value],!1)},r?"entries":"values",!r,!0),Bj(t)}}});var b0=h(()=>{"use strict";var Gj=cp(),Jj=y0();Gj("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Jj)});var _0=h(()=>{"use strict";b0()});var Hr=h((JQ,w0)=>{"use strict";var Hj=lo(),Vj=TypeError;w0.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 Vj(Hj(e)+" is not a set")}});var I0=h((HQ,S0)=>{"use strict";S0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var Vr=h((VQ,A0)=>{"use strict";var $j=zn(),bp=I0(),E0=$j("Set"),Wj=E0.prototype;A0.exports={Set:E0,add:bp("add",1),has:bp("has",1),remove:bp("delete",1),proto:Wj}});var $r=h(($Q,C0)=>{"use strict";var zj=Mt();C0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=zj(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var ai=h((WQ,k0)=>{"use strict";var Kj=$r();k0.exports=function(e,t,r){return r?Kj(e.keys(),t,!0):e.forEach(t)}});var Xs=h((zQ,T0)=>{"use strict";var x0=Vr(),Yj=ai(),Qj=x0.Set,Xj=x0.add;T0.exports=function(e){var t=new Qj;return Yj(e,function(r){Xj(t,r)}),t}});var si=h((KQ,P0)=>{"use strict";P0.exports=function(e){return e.size}});var R0=h((YQ,O0)=>{"use strict";O0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Wr=h((QQ,M0)=>{"use strict";var N0=mn(),q0=mr(),D0=Mt(),Zj=ho(),eB=R0(),L0="Invalid size",tB=RangeError,rB=TypeError,nB=Math.max,U0=function(e,t){this.set=e,this.size=nB(t,0),this.has=N0(e.has),this.keys=N0(e.keys)};U0.prototype={getIterator:function(){return eB(q0(D0(this.keys,this.set)))},includes:function(e){return D0(this.has,this.set,e)}};M0.exports=function(e){q0(e);var t=+e.size;if(t!==t)throw new rB(L0);var r=Zj(t);if(r<0)throw new tB(L0);return new U0(e,r)}});var G0=h((XQ,B0)=>{"use strict";var iB=Hr(),j0=Vr(),oB=Xs(),aB=si(),sB=Wr(),cB=ai(),lB=$r(),uB=j0.has,F0=j0.remove;B0.exports=function(t){var r=iB(this),n=sB(t),i=oB(r);return aB(r)<=n.size?cB(r,function(o){n.includes(o)&&F0(i,o)}):lB(n.getIterator(),function(o){uB(r,o)&&F0(i,o)}),i}});var zr=h((ZQ,J0)=>{"use strict";J0.exports=function(){return!1}});var H0=h(()=>{"use strict";var dB=ae(),pB=G0(),fB=zr(),mB=!fB("difference",function(e){return e.size===0});dB({target:"Set",proto:!0,real:!0,forced:mB},{difference:pB})});var W0=h((rX,$0)=>{"use strict";var hB=Hr(),_p=Vr(),gB=si(),vB=Wr(),yB=ai(),bB=$r(),_B=_p.Set,V0=_p.add,wB=_p.has;$0.exports=function(t){var r=hB(this),n=vB(t),i=new _B;return gB(r)>n.size?bB(n.getIterator(),function(o){wB(r,o)&&V0(i,o)}):yB(r,function(o){n.includes(o)&&V0(i,o)}),i}});var z0=h(()=>{"use strict";var SB=ae(),IB=we(),EB=W0(),AB=zr(),CB=!AB("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||IB(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});SB({target:"Set",proto:!0,real:!0,forced:CB},{intersection:EB})});var Y0=h((oX,K0)=>{"use strict";var kB=Hr(),xB=Vr().has,TB=si(),PB=Wr(),OB=ai(),RB=$r(),NB=Fs();K0.exports=function(t){var r=kB(this),n=PB(t);if(TB(r)<=n.size)return OB(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return RB(i,function(o){if(xB(r,o))return NB(i,"normal",!1)})!==!1}});var Q0=h(()=>{"use strict";var DB=ae(),LB=Y0(),qB=zr(),UB=!qB("isDisjointFrom",function(e){return!e});DB({target:"Set",proto:!0,real:!0,forced:UB},{isDisjointFrom:LB})});var Z0=h((cX,X0)=>{"use strict";var MB=Hr(),FB=si(),jB=ai(),BB=Wr();X0.exports=function(t){var r=MB(this),n=BB(t);return FB(r)>n.size?!1:jB(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var eE=h(()=>{"use strict";var GB=ae(),JB=Z0(),HB=zr(),VB=!HB("isSubsetOf",function(e){return e});GB({target:"Set",proto:!0,real:!0,forced:VB},{isSubsetOf:JB})});var rE=h((dX,tE)=>{"use strict";var $B=Hr(),WB=Vr().has,zB=si(),KB=Wr(),YB=$r(),QB=Fs();tE.exports=function(t){var r=$B(this),n=KB(t);if(zB(r)<n.size)return!1;var i=n.getIterator();return YB(i,function(o){if(!WB(r,o))return QB(i,"normal",!1)})!==!1}});var nE=h(()=>{"use strict";var XB=ae(),ZB=rE(),eG=zr(),tG=!eG("isSupersetOf",function(e){return!e});XB({target:"Set",proto:!0,real:!0,forced:tG},{isSupersetOf:ZB})});var oE=h((mX,iE)=>{"use strict";var rG=Hr(),wp=Vr(),nG=Xs(),iG=Wr(),oG=$r(),aG=wp.add,sG=wp.has,cG=wp.remove;iE.exports=function(t){var r=rG(this),n=iG(t).getIterator(),i=nG(r);return oG(n,function(o){sG(r,o)?cG(i,o):aG(i,o)}),i}});var aE=h(()=>{"use strict";var lG=ae(),uG=oE(),dG=zr();lG({target:"Set",proto:!0,real:!0,forced:!dG("symmetricDifference")},{symmetricDifference:uG})});var cE=h((vX,sE)=>{"use strict";var pG=Hr(),fG=Vr().add,mG=Xs(),hG=Wr(),gG=$r();sE.exports=function(t){var r=pG(this),n=hG(t).getIterator(),i=mG(r);return gG(n,function(o){fG(i,o)}),i}});var lE=h(()=>{"use strict";var vG=ae(),yG=cE(),bG=zr();vG({target:"Set",proto:!0,real:!0,forced:!bG("union")},{union:yG})});var qo=h((_X,uE)=>{"use strict";var _G=ti(),wG=String;uE.exports=function(e){if(_G(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return wG(e)}});var mE=h((wX,fE)=>{"use strict";var Sp=Pe(),SG=ho(),IG=qo(),EG=fn(),AG=Sp("".charAt),dE=Sp("".charCodeAt),CG=Sp("".slice),pE=function(e){return function(t,r){var n=IG(EG(t)),i=SG(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=dE(n,i),a<55296||a>56319||i+1===o||(s=dE(n,i+1))<56320||s>57343?e?AG(n,i):a:e?CG(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};fE.exports={codeAt:pE(!1),charAt:pE(!0)}});var yE=h(()=>{"use strict";var kG=mE().charAt,xG=qo(),gE=_n(),TG=Ns(),hE=Ds(),vE="String Iterator",PG=gE.set,OG=gE.getterFor(vE);TG(String,"String",function(e){PG(this,{type:vE,string:xG(e),index:0})},function(){var t=OG(this),r=t.string,n=t.index,i;return n>=r.length?hE(void 0,!0):(i=kG(r,n),t.index+=i.length,hE(i,!1))})});var _E=h((EX,bE)=>{"use strict";qs();tp();_0();H0();z0();Q0();eE();nE();aE();lE();yE();var RG=zt();bE.exports=RG.Set});var SE=h((AX,wE)=>{"use strict";var NG=_E();fp();wE.exports=NG});var EE=h((CX,IE)=>{IE.exports=SE()});var CE=h(AE=>{"use strict";AE.f=Object.getOwnPropertySymbols});var PE=h((xX,TE)=>{"use strict";var kE=ct(),DG=Pe(),LG=Mt(),qG=we(),Ip=Jd(),UG=CE(),MG=ju(),FG=Yn(),jG=us(),ci=Object.assign,xE=Object.defineProperty,BG=DG([].concat);TE.exports=!ci||qG(function(){if(kE&&ci({b:1},ci(xE({},"a",{enumerable:!0,get:function(){xE(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}),ci({},e)[r]!==7||Ip(ci({},t)).join("")!==n})?function(t,r){for(var n=FG(t),i=arguments.length,o=1,a=UG.f,s=MG.f;i>o;)for(var c=jG(arguments[o++]),l=a?BG(Ip(c),a(c)):Ip(c),d=l.length,u=0,p;d>u;)p=l[u++],(!kE||LG(s,c,p))&&(n[p]=c[p]);return n}:ci});var RE=h(()=>{"use strict";var GG=ae(),OE=PE();GG({target:"Object",stat:!0,arity:2,forced:Object.assign!==OE},{assign:OE})});var DE=h((OX,NE)=>{"use strict";RE();var JG=zt();NE.exports=JG.Object.assign});var qE=h((RX,LE)=>{"use strict";var HG=DE();LE.exports=HG});var ME=h((NX,UE)=>{UE.exports=qE()});var Ep=h((DX,FE)=>{"use strict";FE.exports=`
|
|
22
|
-
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var GE=h((LX,BE)=>{"use strict";var VG=Pe(),$G=fn(),WG=qo(),Cp=Ep(),jE=VG("".replace),zG=RegExp("^["+Cp+"]+"),KG=RegExp("(^|[^"+Cp+"])["+Cp+"]+$"),Ap=function(e){return function(t){var r=WG($G(t));return e&1&&(r=jE(r,zG,"")),e&2&&(r=jE(r,KG,"$1")),r}};BE.exports={start:Ap(1),end:Ap(2),trim:Ap(3)}});var $E=h((qX,VE)=>{"use strict";var YG=Md().PROPER,QG=we(),JE=Ep(),HE="\u200B\x85\u180E";VE.exports=function(e){return QG(function(){return!!JE[e]()||HE[e]()!==HE||YG&&JE[e].name!==e})}});var WE=h(()=>{"use strict";var XG=ae(),ZG=GE().trim,eJ=$E();XG({target:"String",proto:!0,forced:eJ("trim")},{trim:function(){return ZG(this)}})});var KE=h((FX,zE)=>{"use strict";WE();var tJ=Ot();zE.exports=tJ("String","trim")});var QE=h((jX,YE)=>{"use strict";var rJ=st(),nJ=KE(),kp=String.prototype;YE.exports=function(e){var t=e.trim;return typeof e=="string"||e===kp||rJ(kp,e)&&t===kp.trim?nJ:t}});var ZE=h((BX,XE)=>{"use strict";var iJ=QE();XE.exports=iJ});var tA=h((GX,eA)=>{eA.exports=ZE()});var iA=h(()=>{"use strict";var oJ=ae(),rA=go(),aJ=pd(),sJ=qe(),nA=Fd(),cJ=ei(),lJ=jr(),uJ=vd(),dJ=Ze(),pJ=yo(),fJ=wo(),mJ=pJ("slice"),hJ=dJ("species"),xp=Array,gJ=Math.max;oJ({target:"Array",proto:!0,forced:!mJ},{slice:function(t,r){var n=lJ(this),i=cJ(n),o=nA(t,i),a=nA(r===void 0?i:r,i),s,c,l;if(rA(n)&&(s=n.constructor,aJ(s)&&(s===xp||rA(s.prototype))?s=void 0:sJ(s)&&(s=s[hJ],s===null&&(s=void 0)),s===xp||s===void 0))return fJ(n,o,a);for(c=new(s===void 0?xp:s)(gJ(a-o,0)),l=0;o<a;o++,l++)o in n&&uJ(c,l,n[o]);return c.length=l,c}})});var aA=h((VX,oA)=>{"use strict";iA();var vJ=Ot();oA.exports=vJ("Array","slice")});var cA=h(($X,sA)=>{"use strict";var yJ=st(),bJ=aA(),Tp=Array.prototype;sA.exports=function(e){var t=e.slice;return e===Tp||yJ(Tp,e)&&t===Tp.slice?bJ:t}});var uA=h((WX,lA)=>{"use strict";var _J=cA();lA.exports=_J});var pA=h((zX,dA)=>{dA.exports=uA()});var Pp=x(()=>{});var mA=h((YX,fA)=>{"use strict";var wJ=qe(),SJ=fr(),IJ=Ze(),EJ=IJ("match");fA.exports=function(e){var t;return wJ(e)&&((t=e[EJ])!==void 0?!!t:SJ(e)==="RegExp")}});var gA=h((QX,hA)=>{"use strict";var AJ=mA(),CJ=TypeError;hA.exports=function(e){if(AJ(e))throw new CJ("The method doesn't accept regular expressions");return e}});var yA=h((XX,vA)=>{"use strict";var kJ=Ze(),xJ=kJ("match");vA.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[xJ]=!1,"/./"[e](t)}catch(n){}}return!1}});var wA=h(()=>{"use strict";var TJ=ae(),PJ=so(),OJ=nd().f,RJ=ld(),bA=qo(),NJ=gA(),DJ=fn(),LJ=yA(),qJ=Kn(),UJ=PJ("".slice),MJ=Math.min,_A=LJ("startsWith"),FJ=!qJ&&!_A&&!!function(){var e=OJ(String.prototype,"startsWith");return e&&!e.writable}();TJ({target:"String",proto:!0,forced:!FJ&&!_A},{startsWith:function(t){var r=bA(DJ(this));NJ(t);var n=RJ(MJ(arguments.length>1?arguments[1]:void 0,r.length)),i=bA(t);return UJ(r,n,n+i.length)===i}})});var IA=h((tZ,SA)=>{"use strict";wA();var jJ=Ot();SA.exports=jJ("String","startsWith")});var AA=h((rZ,EA)=>{"use strict";var BJ=st(),GJ=IA(),Op=String.prototype;EA.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Op||BJ(Op,e)&&t===Op.startsWith?GJ:t}});var kA=h((nZ,CA)=>{"use strict";var JJ=AA();CA.exports=JJ});var TA=h((iZ,xA)=>{xA.exports=kA()});var DA=h((oZ,NA)=>{"use strict";var OA=Pe(),HJ=mn(),VJ=qe(),$J=It(),PA=wo(),WJ=Wn(),RA=Function,zJ=OA([].concat),KJ=OA([].join),Rp={},YJ=function(e,t,r){if(!$J(Rp,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Rp[t]=RA("C,a","return new C("+KJ(n,",")+")")}return Rp[t](e,r)};NA.exports=WJ?RA.bind:function(t){var r=HJ(this),n=r.prototype,i=PA(arguments,1),o=function(){var s=zJ(i,PA(arguments));return this instanceof o?YJ(r,s.length,s):r.apply(t,s)};return VJ(n)&&(o.prototype=n),o}});var qA=h(()=>{"use strict";var QJ=ae(),LA=DA();QJ({target:"Function",proto:!0,forced:Function.bind!==LA},{bind:LA})});var MA=h((cZ,UA)=>{"use strict";qA();var XJ=Ot();UA.exports=XJ("Function","bind")});var jA=h((lZ,FA)=>{"use strict";var ZJ=st(),e2=MA(),Np=Function.prototype;FA.exports=function(e){var t=e.bind;return e===Np||ZJ(Np,e)&&t===Np.bind?e2:t}});var GA=h((uZ,BA)=>{"use strict";var t2=jA();BA.exports=t2});var HA=h((dZ,JA)=>{JA.exports=GA()});function vc(e,t){Oe.__h&&Oe.__h(ve,e,Jo||t),Jo=0;var r=ve.__H||(ve.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function tr(e){return Jo=1,r2(RC,e)}function r2(e,t,r){var n=vc(pi++,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=ve,!ve.__f)){var i=function(s,c,l){var d;if(!n.__c.__H)return!0;var u=(0,ef.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,kC.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,Ue.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};ve.__f=!0;var o=ve.shouldComponentUpdate,a=ve.componentWillUpdate;ve.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)},ve.shouldComponentUpdate=i}return n.__N||n.__}function Sn(e,t){var r=vc(pi++,3);!Oe.__s&&OC(r.__H,t)&&(r.__=e,r.u=t,ve.__H.__h.push(r))}function Fo(e){return Jo=5,_r(function(){return{current:e}},[])}function _r(e,t){var r=vc(pi++,7);return OC(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Rt(e,t){return Jo=8,_r(function(){return e},t)}function n2(e){var t=ve.context[e.__c],r=vc(pi++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ve)),t.props.value):e.__}function i2(){for(var e;e=PC.shift();)if(e.__P&&e.__H)try{var t,r;(0,Ue.default)(t=e.__H.__h).call(t,nc),(0,Ue.default)(r=e.__H.__h).call(r,Gp),e.__H.__h=[]}catch(n){e.__H.__h=[],Oe.__e(n,e.__v)}}function o2(e){var t,r=function(){clearTimeout(n),XA&&cancelAnimationFrame(t),(0,er.default)(e)},n=(0,er.default)(r,100);XA&&(t=requestAnimationFrame(r))}function nc(e){var t=ve,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ve=t}function Gp(e){var t=ve;e.__c=e.__(),ve=t}function OC(e,t){return!e||e.length!==t.length||(0,dc.default)(t).call(t,function(r,n){return r!==e[n]})}function RC(e,t){return typeof t=="function"?t(e):t}function a2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jp(){throw new Error("setTimeout has not been defined")}function Hp(){throw new Error("clearTimeout has not been defined")}function DC(e){if(Kt===er.default)return(0,er.default)(e,0);if((Kt===Jp||!Kt)&&er.default)return Kt=er.default,(0,er.default)(e,0);try{return Kt(e,0)}catch(t){try{return Kt.call(null,e,0)}catch(r){return Kt.call(this,e,0)}}}function s2(e){if(Yt===clearTimeout)return clearTimeout(e);if((Yt===Hp||!Yt)&&clearTimeout)return Yt=clearTimeout,clearTimeout(e);try{return Yt(e)}catch(t){try{return Yt.call(null,e)}catch(r){return Yt.call(this,e)}}}function c2(){!li||!Yr||(li=!1,Yr.length?br=(0,gc.default)(Yr).call(Yr,br):ic=-1,br.length&&LC())}function LC(){if(!li){var e=DC(c2);li=!0;for(var t=br.length;t;){for(Yr=br,br=[];++ic<t;)Yr&&Yr[ic].run();ic=-1,t=br.length}Yr=null,li=!1,s2(e)}}function qC(e,t){this.fun=e,this.array=t}function Sr(){}function d2(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 p2(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 g2(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 FC(e){return(0,nf.default)(e).call(e)}function v2(e,t){return(e=t.exec(e))?e[0]:e}function ie(e,t,r){return e.replace(t,r)}function Vp(e,t){return(0,wr.default)(e).call(e,t)}function $e(e,t){return e.charCodeAt(t)|0}function Ho(e,t,r){return(0,of.default)(e).call(e,t,r)}function Qt(e){return e.length}function lf(e){return e.length}function Zs(e,t){return t.push(e),e}function y2(e,t){return(0,Go.default)(e).call(e,t).join("")}function _c(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:bc,column:fi,length:a,return:""}}function Uo(e,t){return h2(_c("",null,null,"",null,null,0),e,{length:-e.length},t)}function b2(){return Re}function _2(){return Re=ft>0?$e(hi,--ft):0,fi--,Re===10&&(fi=1,bc--),Re}function Et(){return Re=ft<jC?$e(hi,ft++):0,fi++,Re===10&&(fi=1,bc++),Re}function rr(){return $e(hi,ft)}function oc(){return ft}function Yo(e,t){return Ho(hi,e,t)}function Vo(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 BC(e){return bc=fi=1,jC=Qt(hi=e),ft=0,[]}function GC(e){return hi="",e}function ac(e){return FC(Yo(ft-1,$p(e===91?e+2:e===40?e+1:e)))}function w2(e){for(;(Re=rr())&&Re<33;)Et();return Vo(e)>2||Vo(Re)>3?"":" "}function S2(e,t){for(;--t&&Et()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return Yo(e,oc()+(t<6&&rr()==32&&Et()==32))}function $p(e){for(;Et();)switch(Re){case e:return ft;case 34:case 39:e!==34&&e!==39&&$p(Re);break;case 40:e===41&&$p(e);break;case 92:Et();break}return ft}function I2(e,t){for(;Et()&&e+Re!==57&&!(e+Re===84&&rr()===47););return"/*"+Yo(t,ft-1)+"*"+yc(e===47?e:Et())}function E2(e){for(;!Vo(rr());)Et();return Yo(e,ft)}function A2(e){return GC(sc("",null,null,null,[""],e=BC(e),0,[0],e))}function sc(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,v=1,b=1,y=1,w=0,E="",C=i,T=o,k=n,A=E;b;)switch(m=w,w=Et()){case 40:if(m!=108&&$e(A,u-1)==58){Vp(A+=ie(ac(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=ac(w);break;case 9:case 10:case 13:case 32:A+=w2(m);break;case 92:A+=S2(oc()-1,7);continue;case 47:switch(rr()){case 42:case 47:Zs(C2(I2(Et(),oc()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=Qt(A)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:f>0&&Qt(A)-u&&Zs(f>32?eC(A+";",n,r,u-1):eC(ie(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(Zs(k=ZA(A,t,r,l,d,i,s,E,C=[],T=[],u),o),w===123)if(d===0)sc(A,t,k,k,C,o,u,s,T);else switch(p===99&&$e(A,3)===110?100:p){case 100:case 109:case 115:sc(e,k,k,n&&Zs(ZA(e,k,k,0,0,i,s,E,i,C=[],u),T),i,T,u,s,n?C:T);break;default:sc(A,k,k,k,[""],T,0,s,T)}}l=d=f=0,v=y=1,E=A="",u=a;break;case 58:u=1+Qt(A),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&_2()==125)continue}switch(A+=yc(w),w*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(Qt(A)-1)*y,y=1;break;case 64:rr()===45&&(A+=ac(Et())),p=rr(),d=u=Qt(E=A+=E2(oc())),w++;break;case 45:m===45&&Qt(A)==2&&(v=0)}}return o}function ZA(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=lf(p),m=0,v=0,b=0;m<n;++m)for(var y=0,w=Ho(e,u+1,u=m2(v=a[m])),E=e;y<f;++y)(E=FC(v>0?p[y]+" "+w:ie(w,/&\f/g,p[y])))&&(c[b++]=E);return _c(e,t,r,i===0?sf:s,c,l,d)}function C2(e,t,r){return _c(e,t,r,af,yc(b2()),Ho(e,2,-2),0)}function eC(e,t,r,n){return _c(e,t,r,cf,Ho(e,0,n),Ho(e,n+1,-1),n)}function ui(e,t){for(var r="",n=lf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function k2(e,t,r,n){switch(e.type){case f2:case cf:return e.return=e.return||e.value;case af:return"";case MC:return e.return=e.value+"{"+ui(e.children,n)+"}";case sf:e.value=e.props.join(",")}return Qt(r=ui(e.children,n))?e.return=e.value+"{"+r+"}":""}function x2(e){var t=lf(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function T2(e){return function(t){t.root||(t=t.return)&&e(t)}}function HC(e,t){switch(g2(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+fc+e+et+e+e;case 6828:case 4268:return Z+e+et+e+e;case 6165:return Z+e+et+"flex-"+e+e;case 5187:return Z+e+ie(e,/(\w+).+(:[^]+)/,Z+"box-$1$2"+et+"flex-$1$2")+e;case 5443:return Z+e+et+"flex-item-"+ie(e,/flex-|-self/,"")+e;case 4675:return Z+e+et+"flex-line-pack"+ie(e,/align-content|flex-|-self/,"")+e;case 5548:return Z+e+et+ie(e,"shrink","negative")+e;case 5292:return Z+e+et+ie(e,"basis","preferred-size")+e;case 6060:return Z+"box-"+ie(e,"-grow","")+Z+e+et+ie(e,"grow","positive")+e;case 4554:return Z+ie(e,/([^-])(transform)/g,"$1"+Z+"$2")+e;case 6187:return ie(ie(ie(e,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),e,"")+e;case 5495:case 3959:return ie(e,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return ie(ie(e,/(.+:)(flex-)?(.*)/,Z+"box-pack:$3"+et+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+e+e;case 4095:case 3583:case 4068:case 2532:return ie(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(Qt(e)-1-t>6)switch($e(e,t+1)){case 109:if($e(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+fc+($e(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Vp(e,"stretch")?HC(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($e(e,t+1)!==115)break;case 6444:switch($e(e,Qt(e)-3-(~Vp(e,"!important")&&10))){case 107:return ie(e,":",":"+Z)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+($e(e,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+et+"$2box$3")+e}break;case 5936:switch($e(e,t+11)){case 114:return Z+e+et+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+et+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+et+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+et+e+e}return e}function $C(){if(nC)return ec.exports;nC=1;let e=$C();return ec.exports={default:e},ec.exports.default=e,ec.exports}function $o(e,t,r){var n,i="";return(0,Ue.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function J2(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 V2(e){var t=(0,xC.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Wo(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 Xt={name:i.name,styles:i.styles,next:Xt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Xt={name:a.name,styles:a.styles,next:Xt},a=a.next;var s=o.styles+";";return s}return z2(e,t,r)}case"function":{if(e!==void 0){var c=Xt,l=r(e);return Xt=c,Wo(e,t,l)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function z2(e,t,r){var n="";if((0,Bo.default)(r))for(var i=0;i<r.length;i++)n+=Wo(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]+"}":iC(s)&&(n+=Lp(o)+":"+oC(o,s)+";")}else if((0,Bo.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)iC(a[c])&&(n+=Lp(o)+":"+oC(o,a[c])+";");else{var l=Wo(e,t,a);switch(o){case"animation":case"animationName":{n+=Lp(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function Qr(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="";Xt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Wo(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Wo(r,t,e[s]),n){var c=o;i+=c[s]}aC.lastIndex=0;for(var l="",d;(d=aC.exec(i))!==null;)l+="-"+d[1];var u=J2(i)+l;return{name:u,styles:i,next:Xt}}function q(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Qr(t)}function oH(e,t,r){var n=[],i=$o(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:--cH,__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 L.vnode&&L.vnode(l),l}function Qo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=tr(e());return Sn(()=>{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 C5(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 nk(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=C5(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function k5(e){let t=()=>nk(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function P5(s){var c=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=c,a=Qe(c,["elementTag","src","children","handleExposure","className","imgStyle"]);let l=T5(()=>{t&&n()});return e==="Image"?_("div",{className:i,style:{borderRadius:"8px"},children:Xe("img",B(P({},a),{ref:l,src:t!=null?t:"",style:P({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):_("div",B(P({},a),{ref:l,className:i,children:r}))}function O5(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?Xe(i.type,B(P({},i.props),{style:B(P({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Xe(e.type,B(P({},e.props),{style:B(P({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function q5(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 yC(e,t,r){return Sc.call(t,"css")?_(ff,QC(e,t),r):_(e,t,r)}function G5(e,t,r){return Sc.call(t,"css")?_(ff,QC(e,t),r):_(e,t,r)}function Qp({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?_(He,{children:t[s]},o):null}return _(He,{children:i},o)})})}function V5({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=tr(!1);return a?null:_("div",{style:P({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 z5({children:e,style:t}){return _("div",{style:`${$5.styles} ${t}`,children:[e,_("svg",{style:`${W5.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 l3(e,t){return We(e,0)^45?(((t<<2^We(e,0))<<2^We(e,1))<<2^We(e,2))<<2^We(e,3):0}function vk(e){return(0,nf.default)(e).call(e)}function u3(e,t){return(e=t.exec(e))?e[0]:e}function te(e,t,r){return e.replace(t,r)}function Xp(e,t){return(0,wr.default)(e).call(e,t)}function We(e,t){return e.charCodeAt(t)|0}function zo(e,t,r){return(0,of.default)(e).call(e,t,r)}function Zt(e){return e.length}function yf(e){return e.length}function rc(e,t){return t.push(e),e}function d3(e,t){return(0,Go.default)(e).call(e,t).join("")}function xc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:kc,column:mi,length:a,return:""}}function Mo(e,t){return c3(xc("",null,null,"",null,null,0),e,{length:-e.length},t)}function p3(){return Ne}function f3(){return Ne=mt>0?We(yi,--mt):0,mi--,Ne===10&&(mi=1,kc--),Ne}function At(){return Ne=mt<yk?We(yi,mt++):0,mi++,Ne===10&&(mi=1,kc++),Ne}function nr(){return We(yi,mt)}function cc(){return mt}function Xo(e,t){return zo(yi,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 bk(e){return kc=mi=1,yk=Zt(yi=e),mt=0,[]}function _k(e){return yi="",e}function lc(e){return vk(Xo(mt-1,Zp(e===91?e+2:e===40?e+1:e)))}function m3(e){for(;(Ne=nr())&&Ne<33;)At();return Ko(e)>2||Ko(Ne)>3?"":" "}function h3(e,t){for(;--t&&At()&&!(Ne<48||Ne>102||Ne>57&&Ne<65||Ne>70&&Ne<97););return Xo(e,cc()+(t<6&&nr()==32&&At()==32))}function Zp(e){for(;At();)switch(Ne){case e:return mt;case 34:case 39:e!==34&&e!==39&&Zp(Ne);break;case 40:e===41&&Zp(e);break;case 92:At();break}return mt}function g3(e,t){for(;At()&&e+Ne!==57&&!(e+Ne===84&&nr()===47););return"/*"+Xo(t,mt-1)+"*"+Cc(e===47?e:At())}function v3(e){for(;!Ko(nr());)At();return Xo(e,mt)}function y3(e){return _k(uc("",null,null,null,[""],e=bk(e),0,[0],e))}function uc(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,v=1,b=1,y=1,w=0,E="",C=i,T=o,k=n,A=E;b;)switch(m=w,w=At()){case 40:if(m!=108&&We(A,u-1)==58){Xp(A+=te(lc(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=lc(w);break;case 9:case 10:case 13:case 32:A+=m3(m);break;case 92:A+=h3(cc()-1,7);continue;case 47:switch(nr()){case 42:case 47:rc(b3(g3(At(),cc()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=Zt(A)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:y==-1&&(A=te(A,/\f/g,"")),f>0&&Zt(A)-u&&rc(f>32?_C(A+";",n,r,u-1):_C(te(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(rc(k=bC(A,t,r,l,d,i,s,E,C=[],T=[],u),o),w===123)if(d===0)uc(A,t,k,k,C,o,u,s,T);else switch(p===99&&We(A,3)===110?100:p){case 100:case 108:case 109:case 115:uc(e,k,k,n&&rc(bC(e,k,k,0,0,i,s,E,i,C=[],u),T),i,T,u,s,n?C:T);break;default:uc(A,k,k,k,[""],T,0,s,T)}}l=d=f=0,v=y=1,E=A="",u=a;break;case 58:u=1+Zt(A),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&f3()==125)continue}switch(A+=Cc(w),w*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(Zt(A)-1)*y,y=1;break;case 64:nr()===45&&(A+=lc(At())),p=nr(),d=u=Zt(E=A+=v3(cc())),w++;break;case 45:m===45&&Zt(A)==2&&(v=0)}}return o}function bC(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=yf(p),m=0,v=0,b=0;m<n;++m)for(var y=0,w=zo(e,u+1,u=s3(v=a[m])),E=e;y<f;++y)(E=vk(v>0?p[y]+" "+w:te(w,/&\f/g,p[y])))&&(c[b++]=E);return xc(e,t,r,i===0?gf:s,c,l,d)}function b3(e,t,r){return xc(e,t,r,hk,Cc(p3()),zo(e,2,-2),0)}function _C(e,t,r,n){return xc(e,t,r,vf,zo(e,0,n),zo(e,n+1,-1),n)}function di(e,t){for(var r="",n=yf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function _3(e,t,r,n){switch(e.type){case a3:if(e.children.length)break;case o3:case vf:return e.return=e.return||e.value;case hk:return"";case gk:return e.return=e.value+"{"+di(e.children,n)+"}";case gf:e.value=e.props.join(",")}return Zt(r=di(e.children,n))?e.return=e.value+"{"+r+"}":""}function w3(e){var t=yf(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 S3(e){return function(t){t.root||(t=t.return)&&e(t)}}function wk(e,t){switch(l3(e,t)){case 5103:return ee+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+hc+e+tt+e+e;case 6828:case 4268:return ee+e+tt+e+e;case 6165:return ee+e+tt+"flex-"+e+e;case 5187:return ee+e+te(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+tt+"flex-$1$2")+e;case 5443:return ee+e+tt+"flex-item-"+te(e,/flex-|-self/,"")+e;case 4675:return ee+e+tt+"flex-line-pack"+te(e,/align-content|flex-|-self/,"")+e;case 5548:return ee+e+tt+te(e,"shrink","negative")+e;case 5292:return ee+e+tt+te(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+te(e,"-grow","")+ee+e+tt+te(e,"grow","positive")+e;case 4554:return ee+te(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return te(te(te(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return te(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return te(te(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+tt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4095:case 3583:case 4068:case 2532:return te(e,/(.+)-inline(.+)/,ee+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Zt(e)-1-t>6)switch(We(e,t+1)){case 109:if(We(e,t+4)!==45)break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+hc+(We(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xp(e,"stretch")?wk(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(We(e,t+1)!==115)break;case 6444:switch(We(e,Zt(e)-3-(~Xp(e,"!important")&&10))){case 107:return te(e,":",":"+ee)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(We(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+tt+"$2box$3")+e}break;case 5936:switch(We(e,t+11)){case 114:return ee+e+tt+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+tt+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+tt+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+tt+e+e}return e}function SC(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function jp(e,t,r){var n=[],i=$o(e,n,r);return n.length<2?r:i+t(n)}function AC(e){if(e==="top"){let t=0;Sk.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${IC}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${IC}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+EC)})}else if(e==="center"){let t=0;Ik.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+EC)})}}function In(){let e=!1,t=null,r=0,n=new Set,i=a=>g(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:c}=yield jo.acquire(),l=c.contentDocument;if(l)t=l.createElement("div"),t.id="loading-root",l.body.appendChild(t),Fr(_(F3,{}),t);else throw new Error("Iframe document is not available.")}catch(c){console.error("[LoadingManager] Failed to show loading:",c),r=0,e=!1,jo.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&&(Fr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),jo.release()))};return{show:i,hide:o,get isLoading(){return e}}}var ef,kC,Ue,gc,dc,er,pc,Bo,tf,wr,Go,xC,TC,rf,nf,of,gZ,Bp,pi,ve,Dp,VA,Jo,PC,Oe,$A,WA,zA,KA,YA,QA,XA,NC,ke,Kt,Yt,br,li,Yr,ic,l2,Me,u2,UC,et,fc,Z,af,sf,cf,f2,MC,m2,yc,h2,bc,fi,jC,ft,Re,hi,P2,O2,R2,tC,N2,D2,L2,q2,U2,JC,M2,rC,F2,j2,B2,VC,ec,nC,G2,uf,wc,H2,$2,W2,WC,iC,Lp,oC,aC,Xt,K2,zC,KC,sC,Sc,df,YC,pf,Ic,Y2,Q2,X2,Z2,eH,Wp,zp,QC,tH,ff,rH,cC,nH,iH,aH,sH,qp,lC,Up,Mp,cH,Fp,lH,uH,dH,pH,fH,mH,hH,uC,gH,vH,yH,dC,bH,_H,wH,pC,SH,IH,EH,fC,AH,CH,kH,xH,TH,PH,OH,RH,NH,DH,LH,mC,qH,UH,MH,FH,jH,BH,GH,JH,HH,VH,$H,hC,WH,zH,KH,YH,QH,XH,ZH,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,XC,ZC,ek,Kp,A5,tk,rk,mc,jo,gC,x5,Ec,T5,ik,ok,ak,R5,N5,D5,Yp,L5,sk,ck,Ac,mf,gi,vC,Kr,lk,wn,U5,M5,F5,j5,B5,tc,uk,hf,Ie,J5,H5,$5,W5,Bt,K5,Y5,dk,pk,fk,mk,Xr,Q5,X5,Z5,e3,t3,r3,n3,i3,tt,hc,ee,hk,gf,vf,o3,gk,a3,s3,Cc,c3,kc,mi,yk,mt,Ne,yi,I3,E3,A3,wC,C3,k3,x3,T3,P3,O3,R3,N3,D3,L3,q3,U3,IC,EC,Sk,Ik,Ir,CC,M3,F3,vZ,ir=x(()=>{"use strict";$n();ef=se(vb(),1),kC=se(kb(),1),Ue=se(jb(),1),gc=se(t_(),1),dc=se(u_(),1),er=se(x_(),1);Is();Is();pc=se(pw(),1),Bo=se(bw(),1),tf=se(LI(),1),wr=se(VI(),1),Go=se(e0(),1),xC=se(s0(),1),TC=se(EE(),1),rf=se(ME(),1),nf=se(tA(),1),of=se(pA(),1);Pp();Pp();gZ=se(TA(),1),Bp=se(HA(),1),Jo=0,PC=[],Oe=L,$A=Oe.__b,WA=Oe.__r,zA=Oe.diffed,KA=Oe.__c,YA=Oe.unmount,QA=Oe.__;Oe.__b=function(e){ve=null,$A&&$A(e)},Oe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),QA&&QA(e,t)},Oe.__r=function(e){var t,r,n;WA&&WA(e),pi=0;var i=(ve=e.__c).__H;i&&(Dp===ve?(i.__h=[],ve.__h=[],(0,Ue.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Ue.default)(r=i.__h).call(r,nc),(0,Ue.default)(n=i.__h).call(n,Gp),i.__h=[],pi=0)),Dp=ve},Oe.diffed=function(e){var t;zA&&zA(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(PC.push(r)!==1&&VA===Oe.requestAnimationFrame||((VA=Oe.requestAnimationFrame)||o2)(i2)),(0,Ue.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Dp=ve=null},Oe.__c=function(e,t){(0,dc.default)(t).call(t,function(r){try{var n,i;(0,Ue.default)(n=r.__h).call(n,nc),r.__h=(0,ef.default)(i=r.__h).call(i,function(o){return!o.__||Gp(o)})}catch(o){(0,dc.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Oe.__e(o,r.__v)}}),KA&&KA(e,t)},Oe.unmount=function(e){var t;YA&&YA(e);var r,n=e.__c;n&&n.__H&&((0,Ue.default)(t=n.__H.__).call(t,function(i){try{nc(i)}catch(o){r=o}}),n.__H=void 0,r&&Oe.__e(r,n.__v))};XA=typeof requestAnimationFrame=="function";NC={exports:{}},ke=NC.exports={};(function(){try{typeof er.default=="function"?Kt=er.default:Kt=Jp}catch(e){Kt=Jp}try{typeof clearTimeout=="function"?Yt=clearTimeout:Yt=Hp}catch(e){Yt=Hp}})();br=[],li=!1,ic=-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];br.push(new qC(e,t)),br.length===1&&!li&&DC(LC)};qC.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=Sr;ke.addListener=Sr;ke.once=Sr;ke.off=Sr;ke.removeListener=Sr;ke.removeAllListeners=Sr;ke.emit=Sr;ke.prependListener=Sr;ke.prependOnceListener=Sr;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};l2=NC.exports,Me=a2(l2),u2=pc.default||void 0||self;UC=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,Ue.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(p2(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=d2(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Ue.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}(),et="-ms-",fc="-moz-",Z="-webkit-",af="comm",sf="rule",cf="decl",f2="@import",MC="@keyframes",m2=Math.abs,yc=String.fromCharCode,h2=rf.default;bc=1,fi=1,jC=0,ft=0,Re=0,hi="";P2=function(e,t,r){for(var n=0,i=0;n=i,i=rr(),n===38&&i===12&&(t[r]=1),!Vo(i);)Et();return Yo(e,ft)},O2=function(e,t){var r=-1,n=44;do switch(Vo(n)){case 0:n===38&&rr()===12&&(t[r]=1),e[r]+=P2(ft-1,t,r);break;case 2:e[r]+=ac(n);break;case 4:if(n===44){e[++r]=rr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=yc(n)}while(n=Et());return e},R2=function(e,t){return GC(O2(BC(e),t))},tC=new tf.default,N2=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&&!tC.get(r))&&!n){tC.set(e,!0);for(var i=[],o=R2(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]}}},D2=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},L2="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",q2=function(e){var t;return e.type==="comm"&&(0,wr.default)(t=e.children).call(t,L2)>-1},U2=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(q2(c))return;break}}(0,Ue.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".')})}}}},JC=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},M2=function(e,t){for(var r=e-1;r>=0;r--)if(!JC(t[r]))return!0;return!1},rC=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},F2=function(e,t,r){JC(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."),rC(e)):M2(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),rC(e)))};j2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case cf:e.return=HC(e.value,e.length);break;case MC:return ui([Uo(e,{value:ie(e.value,"@","@"+Z)})],n);case sf:if(e.length)return y2(e.props,function(i){switch(v2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ui([Uo(e,{props:[ie(i,/:(read-\w+)/,":"+fc+"$1")]})],n);case"::placeholder":return ui([Uo(e,{props:[ie(i,/:(plac\w+)/,":"+Z+"input-$1")]}),Uo(e,{props:[ie(i,/:(plac\w+)/,":"+fc+"$1")]}),Uo(e,{props:[ie(i,/:(plac\w+)/,et+"input-$1")]})],n)}return""})}},B2=[j2],VC=function(e){var t=e.key;if(Me.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,Ue.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,wr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||
|
|
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 g(this,null,function*(){let d=l instanceof URL?l.href:l,u=new Promise((p,f)=>{let m=new XMLHttpRequest;m.open("GET",d),m.responseType="arraybuffer",m.addEventListener("load",()=>p(m.response)),m.addEventListener("error",f),m.send()});try{let p=yield u;return new Response(p,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(p){throw console.error("Failed to load wasm:",p),p}})}let c=window.fetch;window.fetch=(l,d)=>{let u=l instanceof URL?l.href:l.toString();return u.endsWith(".wasm")?s(u):c(l,d)}},a=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),t!=null&&t.parentNode&&(t.parentNode.removeChild(t),t=null),document.documentElement.removeAttribute("data-jolibox-root"),document.documentElement.style.removeProperty("--status-bar-height"),window.fetch=r};return n(),o(),i(),a}var Yg=x(()=>{"use strict";V()});var Qg=x(()=>{"use strict"});var Xg=x(()=>{"use strict";R();uu()});var Zg=x(()=>{"use strict";V()});var dn,os=x(()=>{"use strict";Qg();Xg();V();Zg();R();dn=new Wt});function pr(e,t){for(var r in t)e[r]=t[r];return e}function Du(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ze(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?ls.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 ss(e,a,n,i,null)}function ss(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?++nv:i,__i:-1,__u:0};return i==null&&q.vnode!=null&&q.vnode(o),o}function He(e){return e.children}function St(e,t){this.props=e,this.context=t}function Wn(e,t){if(t==null)return e.__?Wn(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"?Wn(e):null}function lv(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 lv(e)}}function Ou(e){(!e.__d&&(e.__d=!0)&&pn.push(e)&&!cs.__r++||ev!==q.debounceRendering)&&((ev=q.debounceRendering)||iv)(cs)}function cs(){for(var e,t,r,n,i,o,a,s=1;pn.length;)pn.length>s&&pn.sort(ov),e=pn.shift(),s=pn.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=pr({},n)).__v=n.__v+1,q.vnode&&q.vnode(r),Lu(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Wn(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,pv(o,r,a),r.__e!=i&&lv(r)));cs.__r=0}function uv(e,t,r,n,i,o,a,s,c,l,d){var u,p,f,m,v,b,y=n&&n.__k||cv,w=t.length;for(c=XR(r,t,y,c,w),u=0;u<w;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?io:y[f.__i]||io,f.__i=u,b=Lu(e,f,p,i,o,a,s,c,l,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&qu(p.ref,null,f),d.push(f.ref,f.__c||m,f)),v==null&&m!=null&&(v=m),4&f.__u||p.__k===f.__k?c=dv(f,c,e):typeof f.type=="function"&&b!==void 0?c=b:m&&(c=m.nextSibling),f.__u&=-7);return r.__e=v,c}function XR(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?ss(null,a,null,null,null):oo(a)?ss(He,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?ss(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=Wn(s)),mv(s,s));return n}function dv(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=dv(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Wn(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ao(e,t){return t=t||[],e==null||typeof e=="boolean"||(oo(e)?e.some(function(r){ao(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 tv(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||QR.test(t)?r:r+"px"}function as(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||tv(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||tv(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(av,"$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=Nu,e.addEventListener(t,o?Pu:Tu,o)):e.removeEventListener(t,o?Pu:Tu,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 rv(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Nu++;else if(t.u<r.t)return;return r(q.event?q.event(t):t)}}}function Lu(e,t,r,n,i,o,a,s,c,l){var d,u,p,f,m,v,b,y,w,E,C,T,k,A,J,ue,N,O=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=q.__b)&&d(t);e:if(typeof O=="function")try{if(y=t.props,w="prototype"in O&&O.prototype.render,E=(d=O.contextType)&&n[d.__c],C=d?E?E.props.value:d.__:n,r.__c?b=(u=t.__c=r.__c).__=u.__E:(w?t.__c=u=new O(y,C):(t.__c=u=new St(y,C),u.constructor=O,u.render=t1),E&&E.sub(u),u.props=y,u.state||(u.state={}),u.context=C,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=pr({},u.__s)),pr(u.__s,O.getDerivedStateFromProps(y,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&&y!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,C),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,C)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(F){F&&(F.__=t)}),T=0;T<u._sb.length;T++)u.__h.push(u._sb[T]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,C),w&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,v)})}if(u.context=C,u.props=y,u.__P=e,u.__e=!1,k=q.__r,A=0,w){for(u.state=u.__s,u.__d=!1,k&&k(t),d=u.render(u.props,u.state,u.context),J=0;J<u._sb.length;J++)u.__h.push(u._sb[J]);u._sb=[]}else do u.__d=!1,k&&k(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++A<25);u.state=u.__s,u.getChildContext!=null&&(n=pr(pr({},n),u.getChildContext())),w&&!p&&u.getSnapshotBeforeUpdate!=null&&(v=u.getSnapshotBeforeUpdate(f,m)),ue=d,d!=null&&d.type===He&&d.key==null&&(ue=fv(d.props.children)),s=uv(e,oo(ue)?ue:[ue],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(F){if(t.__v=null,c||o!=null)if(F.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--;)Du(o[N]);else t.__e=r.__e,t.__k=r.__k;q.__e(F,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=e1(r.__e,t,r,n,i,o,a,c,l);return(d=q.diffed)&&d(t),128&t.__u?void 0:s}function pv(e,t,r){for(var n=0;n<r.length;n++)qu(r[n],r[++n],r[++n]);q.__c&&q.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){q.__e(o,i.__v)}})}function fv(e){return typeof e!="object"||e==null?e:oo(e)?e.map(fv):pr({},e)}function e1(e,t,r,n,i,o,a,s,c){var l,d,u,p,f,m,v,b=r.props,y=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(y);e=document.createElementNS(i,w,y.is&&y),s&&(q.__m&&q.__m(t,o),s=!1),o=null}if(w===null)b===y||s&&e.data===y||(e.data=y);else{if(o=o&&ls.call(e.childNodes),b=r.props||io,!s&&o!=null)for(b={},l=0;l<e.attributes.length;l++)b[(f=e.attributes[l]).name]=f.value;for(l in b)if(f=b[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=f;else if(!(l in y)){if(l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y)continue;as(e,l,null,f,i)}}for(l in y)f=y[l],l=="children"?p=f:l=="dangerouslySetInnerHTML"?d=f:l=="value"?m=f:l=="checked"?v=f:s&&typeof f!="function"||b[l]===f||as(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=""),uv(t.type==="template"?e.content:e,oo(p)?p:[p],t,r,n,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Wn(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])&&as(e,l,m,b[l],i),l="checked",v!==void 0&&v!==e[l]&&as(e,l,v,b[l],i))}return e}function qu(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){q.__e(i,r)}}function mv(e,t,r){var n,i;if(q.unmount&&q.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||qu(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){q.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&mv(n[i],t,r||typeof e.type!="function");r||Du(e.__e),e.__c=e.__=e.__e=void 0}function t1(e,t,r){return this.constructor(e,r)}function Fr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),q.__&&q.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Lu(t,e=(!n&&r||t).__k=Ze(He,null,[e]),i||io,io,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?ls.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),pv(o,e,a)}function fn(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,Ou(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"+sv++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var ls,q,nv,Ru,pn,ev,iv,ov,av,Nu,Tu,Pu,sv,io,cv,QR,oo,zn=x(()=>{io={},cv=[],QR=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,oo=Array.isArray;ls=cv.slice,q={__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}},nv=0,Ru=function(e){return e!=null&&e.constructor==null},St.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=pr({},this.state),typeof e=="function"&&(e=e(pr({},r),this.props)),e&&pr(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ou(this))},St.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ou(this))},St.prototype.render=He,pn=[],iv=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ov=function(e,t){return e.__v.__b-t.__v.__b},cs.__r=0,av=/(PointerCapture)$|Capture$/i,Nu=0,Tu=rv(!1),Pu=rv(!0),sv=0});var Se=h((o8,hv)=>{"use strict";hv.exports=function(e){try{return!!e()}catch(t){return!0}}});var Kn=h((a8,gv)=>{"use strict";var r1=Se();gv.exports=!r1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Pe=h((s8,bv)=>{"use strict";var vv=Kn(),yv=Function.prototype,Uu=yv.call,n1=vv&&yv.bind.bind(Uu,Uu);bv.exports=vv?n1:function(e){return function(){return Uu.apply(e,arguments)}}});var at=h((c8,_v)=>{"use strict";var i1=Pe();_v.exports=i1({}.isPrototypeOf)});var Ie=h((Mu,wv)=>{"use strict";var so=function(e){return e&&e.Math===Math&&e};wv.exports=so(typeof globalThis=="object"&&globalThis)||so(typeof window=="object"&&window)||so(typeof self=="object"&&self)||so(typeof global=="object"&&global)||so(typeof Mu=="object"&&Mu)||function(){return this}()||Function("return this")()});var Fu=h((l8,Av)=>{"use strict";var o1=Kn(),Ev=Function.prototype,Sv=Ev.apply,Iv=Ev.call;Av.exports=typeof Reflect=="object"&&Reflect.apply||(o1?Iv.bind(Sv):function(){return Iv.apply(Sv,arguments)})});var fr=h((u8,kv)=>{"use strict";var Cv=Pe(),a1=Cv({}.toString),s1=Cv("".slice);kv.exports=function(e){return s1(a1(e),8,-1)}});var co=h((d8,xv)=>{"use strict";var c1=fr(),l1=Pe();xv.exports=function(e){if(c1(e)==="Function")return l1(e)}});var Ve=h((p8,Tv)=>{"use strict";var ju=typeof document=="object"&&document.all;Tv.exports=typeof ju=="undefined"&&ju!==void 0?function(e){return typeof e=="function"||e===ju}:function(e){return typeof e=="function"}});var st=h((f8,Pv)=>{"use strict";var u1=Se();Pv.exports=!u1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Mt=h((m8,Ov)=>{"use strict";var d1=Kn(),us=Function.prototype.call;Ov.exports=d1?us.bind(us):function(){return us.apply(us,arguments)}});var Bu=h(Dv=>{"use strict";var Rv={}.propertyIsEnumerable,Nv=Object.getOwnPropertyDescriptor,p1=Nv&&!Rv.call({1:2},1);Dv.f=p1?function(t){var r=Nv(this,t);return!!r&&r.enumerable}:Rv});var lo=h((g8,Lv)=>{"use strict";Lv.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var ds=h((v8,qv)=>{"use strict";var f1=Pe(),m1=Se(),h1=fr(),Gu=Object,g1=f1("".split);qv.exports=m1(function(){return!Gu("z").propertyIsEnumerable(0)})?function(e){return h1(e)==="String"?g1(e,""):Gu(e)}:Gu});var mn=h((y8,Uv)=>{"use strict";Uv.exports=function(e){return e==null}});var hn=h((b8,Mv)=>{"use strict";var v1=mn(),y1=TypeError;Mv.exports=function(e){if(v1(e))throw new y1("Can't call method on "+e);return e}});var jr=h((_8,Fv)=>{"use strict";var b1=ds(),_1=hn();Fv.exports=function(e){return b1(_1(e))}});var qe=h((w8,jv)=>{"use strict";var w1=Ve();jv.exports=function(e){return typeof e=="object"?e!==null:w1(e)}});var zt=h((S8,Bv)=>{"use strict";Bv.exports={}});var Yn=h((I8,Jv)=>{"use strict";var Ju=zt(),Hu=Ie(),S1=Ve(),Gv=function(e){return S1(e)?e:void 0};Jv.exports=function(e,t){return arguments.length<2?Gv(Ju[e])||Gv(Hu[e]):Ju[e]&&Ju[e][t]||Hu[e]&&Hu[e][t]}});var ps=h((E8,$v)=>{"use strict";var I1=Ie(),Hv=I1.navigator,Vv=Hv&&Hv.userAgent;$v.exports=Vv?String(Vv):""});var ms=h((A8,Xv)=>{"use strict";var Qv=Ie(),Vu=ps(),Wv=Qv.process,zv=Qv.Deno,Kv=Wv&&Wv.versions||zv&&zv.version,Yv=Kv&&Kv.v8,Ft,fs;Yv&&(Ft=Yv.split("."),fs=Ft[0]>0&&Ft[0]<4?1:+(Ft[0]+Ft[1]));!fs&&Vu&&(Ft=Vu.match(/Edge\/(\d+)/),(!Ft||Ft[1]>=74)&&(Ft=Vu.match(/Chrome\/(\d+)/),Ft&&(fs=+Ft[1])));Xv.exports=fs});var $u=h((C8,ey)=>{"use strict";var Zv=ms(),E1=Se(),A1=Ie(),C1=A1.String;ey.exports=!!Object.getOwnPropertySymbols&&!E1(function(){var e=Symbol("symbol detection");return!C1(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Zv&&Zv<41})});var Wu=h((k8,ty)=>{"use strict";var k1=$u();ty.exports=k1&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var zu=h((x8,ry)=>{"use strict";var x1=Yn(),T1=Ve(),P1=at(),O1=Wu(),R1=Object;ry.exports=O1?function(e){return typeof e=="symbol"}:function(e){var t=x1("Symbol");return T1(t)&&P1(t.prototype,R1(e))}});var uo=h((T8,ny)=>{"use strict";var N1=String;ny.exports=function(e){try{return N1(e)}catch(t){return"Object"}}});var gn=h((P8,iy)=>{"use strict";var D1=Ve(),L1=uo(),q1=TypeError;iy.exports=function(e){if(D1(e))return e;throw new q1(L1(e)+" is not a function")}});var hs=h((O8,oy)=>{"use strict";var U1=gn(),M1=mn();oy.exports=function(e,t){var r=e[t];return M1(r)?void 0:U1(r)}});var sy=h((R8,ay)=>{"use strict";var Ku=Mt(),Yu=Ve(),Qu=qe(),F1=TypeError;ay.exports=function(e,t){var r,n;if(t==="string"&&Yu(r=e.toString)&&!Qu(n=Ku(r,e))||Yu(r=e.valueOf)&&!Qu(n=Ku(r,e))||t!=="string"&&Yu(r=e.toString)&&!Qu(n=Ku(r,e)))return n;throw new F1("Can't convert object to primitive value")}});var Qn=h((N8,cy)=>{"use strict";cy.exports=!0});var dy=h((D8,uy)=>{"use strict";var ly=Ie(),j1=Object.defineProperty;uy.exports=function(e,t){try{j1(ly,e,{value:t,configurable:!0,writable:!0})}catch(r){ly[e]=t}return t}});var po=h((L8,my)=>{"use strict";var B1=Qn(),G1=Ie(),J1=dy(),py="__core-js_shared__",fy=my.exports=G1[py]||J1(py,{});(fy.versions||(fy.versions=[])).push({version:"3.41.0",mode:B1?"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 Xu=h((q8,gy)=>{"use strict";var hy=po();gy.exports=function(e,t){return hy[e]||(hy[e]=t||{})}});var Xn=h((U8,vy)=>{"use strict";var H1=hn(),V1=Object;vy.exports=function(e){return V1(H1(e))}});var It=h((M8,yy)=>{"use strict";var $1=Pe(),W1=Xn(),z1=$1({}.hasOwnProperty);yy.exports=Object.hasOwn||function(t,r){return z1(W1(t),r)}});var gs=h((F8,by)=>{"use strict";var K1=Pe(),Y1=0,Q1=Math.random(),X1=K1(1 .toString);by.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+X1(++Y1+Q1,36)}});var et=h((j8,wy)=>{"use strict";var Z1=Ie(),eN=Xu(),_y=It(),tN=gs(),rN=$u(),nN=Wu(),Zn=Z1.Symbol,Zu=eN("wks"),iN=nN?Zn.for||Zn:Zn&&Zn.withoutSetter||tN;wy.exports=function(e){return _y(Zu,e)||(Zu[e]=rN&&_y(Zn,e)?Zn[e]:iN("Symbol."+e)),Zu[e]}});var Ay=h((B8,Ey)=>{"use strict";var oN=Mt(),Sy=qe(),Iy=zu(),aN=hs(),sN=sy(),cN=et(),lN=TypeError,uN=cN("toPrimitive");Ey.exports=function(e,t){if(!Sy(e)||Iy(e))return e;var r=aN(e,uN),n;if(r){if(t===void 0&&(t="default"),n=oN(r,e,t),!Sy(n)||Iy(n))return n;throw new lN("Can't convert object to primitive value")}return t===void 0&&(t="number"),sN(e,t)}});var ed=h((G8,Cy)=>{"use strict";var dN=Ay(),pN=zu();Cy.exports=function(e){var t=dN(e,"string");return pN(t)?t:t+""}});var rd=h((J8,xy)=>{"use strict";var fN=Ie(),ky=qe(),td=fN.document,mN=ky(td)&&ky(td.createElement);xy.exports=function(e){return mN?td.createElement(e):{}}});var nd=h((H8,Ty)=>{"use strict";var hN=st(),gN=Se(),vN=rd();Ty.exports=!hN&&!gN(function(){return Object.defineProperty(vN("div"),"a",{get:function(){return 7}}).a!==7})});var id=h(Oy=>{"use strict";var yN=st(),bN=Mt(),_N=Bu(),wN=lo(),SN=jr(),IN=ed(),EN=It(),AN=nd(),Py=Object.getOwnPropertyDescriptor;Oy.f=yN?Py:function(t,r){if(t=SN(t),r=IN(r),AN)try{return Py(t,r)}catch(n){}if(EN(t,r))return wN(!bN(_N.f,t,r),t[r])}});var Ny=h(($8,Ry)=>{"use strict";var CN=Se(),kN=Ve(),xN=/#|\.prototype\./,fo=function(e,t){var r=PN[TN(e)];return r===RN?!0:r===ON?!1:kN(t)?CN(t):!!t},TN=fo.normalize=function(e){return String(e).replace(xN,".").toLowerCase()},PN=fo.data={},ON=fo.NATIVE="N",RN=fo.POLYFILL="P";Ry.exports=fo});var mo=h((W8,Ly)=>{"use strict";var Dy=co(),NN=gn(),DN=Kn(),LN=Dy(Dy.bind);Ly.exports=function(e,t){return NN(e),t===void 0?e:DN?LN(e,t):function(){return e.apply(t,arguments)}}});var od=h((z8,qy)=>{"use strict";var qN=st(),UN=Se();qy.exports=qN&&UN(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var mr=h((K8,Uy)=>{"use strict";var MN=qe(),FN=String,jN=TypeError;Uy.exports=function(e){if(MN(e))return e;throw new jN(FN(e)+" is not an object")}});var hr=h(Fy=>{"use strict";var BN=st(),GN=nd(),JN=od(),vs=mr(),My=ed(),HN=TypeError,ad=Object.defineProperty,VN=Object.getOwnPropertyDescriptor,sd="enumerable",cd="configurable",ld="writable";Fy.f=BN?JN?function(t,r,n){if(vs(t),r=My(r),vs(n),typeof t=="function"&&r==="prototype"&&"value"in n&&ld in n&&!n[ld]){var i=VN(t,r);i&&i[ld]&&(t[r]=n.value,n={configurable:cd in n?n[cd]:i[cd],enumerable:sd in n?n[sd]:i[sd],writable:!1})}return ad(t,r,n)}:ad:function(t,r,n){if(vs(t),r=My(r),vs(n),GN)try{return ad(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new HN("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var vn=h((Q8,jy)=>{"use strict";var $N=st(),WN=hr(),zN=lo();jy.exports=$N?function(e,t,r){return WN.f(e,t,zN(1,r))}:function(e,t,r){return e[t]=r,e}});var ae=h((X8,Gy)=>{"use strict";var ho=Ie(),KN=Fu(),YN=co(),QN=Ve(),XN=id().f,ZN=Ny(),ei=zt(),eD=mo(),ti=vn(),By=It();po();var tD=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return KN(e,this,arguments)};return t.prototype=e.prototype,t};Gy.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?ho:i?ho[r]:ho[r]&&ho[r].prototype,s=n?ei:ei[r]||ti(ei,r,{})[r],c=s.prototype,l,d,u,p,f,m,v,b,y;for(p in t)l=ZN(n?p:r+(i?".":"#")+p,e.forced),d=!l&&a&&By(a,p),m=s[p],d&&(e.dontCallGetSet?(y=XN(a,p),v=y&&y.value):v=a[p]),f=d&&v?v:t[p],!(!l&&!o&&typeof m==typeof f)&&(e.bind&&d?b=eD(f,ho):e.wrap&&d?b=tD(f):o&&QN(f)?b=YN(f):b=f,(e.sham||f&&f.sham||m&&m.sham)&&ti(b,"sham",!0),ti(s,p,b),o&&(u=r+"Prototype",By(ei,u)||ti(ei,u,{}),ti(ei[u],p,f),e.real&&c&&(l||!c[p])&&ti(c,p,f)))}});var Hy=h((Z8,Jy)=>{"use strict";var rD=Math.ceil,nD=Math.floor;Jy.exports=Math.trunc||function(t){var r=+t;return(r>0?nD:rD)(r)}});var go=h((e7,Vy)=>{"use strict";var iD=Hy();Vy.exports=function(e){var t=+e;return t!==t||t===0?0:iD(t)}});var ud=h((t7,$y)=>{"use strict";var oD=go(),aD=Math.min;$y.exports=function(e){var t=oD(e);return t>0?aD(t,9007199254740991):0}});var ri=h((r7,Wy)=>{"use strict";var sD=ud();Wy.exports=function(e){return sD(e.length)}});var vo=h((n7,zy)=>{"use strict";var cD=fr();zy.exports=Array.isArray||function(t){return cD(t)==="Array"}});var ys=h((i7,Yy)=>{"use strict";var lD=et(),uD=lD("toStringTag"),Ky={};Ky[uD]="z";Yy.exports=String(Ky)==="[object z]"});var ni=h((o7,Qy)=>{"use strict";var dD=ys(),pD=Ve(),bs=fr(),fD=et(),mD=fD("toStringTag"),hD=Object,gD=bs(function(){return arguments}())==="Arguments",vD=function(e,t){try{return e[t]}catch(r){}};Qy.exports=dD?bs:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=vD(t=hD(e),mD))=="string"?r:gD?bs(t):(n=bs(t))==="Object"&&pD(t.callee)?"Arguments":n}});var Zy=h((a7,Xy)=>{"use strict";var yD=Pe(),bD=Ve(),dd=po(),_D=yD(Function.toString);bD(dd.inspectSource)||(dd.inspectSource=function(e){return _D(e)});Xy.exports=dd.inspectSource});var fd=h((s7,ib)=>{"use strict";var wD=Pe(),SD=Se(),eb=Ve(),ID=ni(),ED=Yn(),AD=Zy(),tb=function(){},rb=ED("Reflect","construct"),pd=/^\s*(?:class|function)\b/,CD=wD(pd.exec),kD=!pd.test(tb),yo=function(t){if(!eb(t))return!1;try{return rb(tb,[],t),!0}catch(r){return!1}},nb=function(t){if(!eb(t))return!1;switch(ID(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return kD||!!CD(pd,AD(t))}catch(r){return!0}};nb.sham=!0;ib.exports=!rb||SD(function(){var e;return yo(yo.call)||!yo(Object)||!yo(function(){e=!0})||e})?nb:yo});var cb=h((c7,sb)=>{"use strict";var ob=vo(),xD=fd(),TD=qe(),PD=et(),OD=PD("species"),ab=Array;sb.exports=function(e){var t;return ob(e)&&(t=e.constructor,xD(t)&&(t===ab||ob(t.prototype))?t=void 0:TD(t)&&(t=t[OD],t===null&&(t=void 0))),t===void 0?ab:t}});var md=h((l7,lb)=>{"use strict";var RD=cb();lb.exports=function(e,t){return new(RD(e))(t===0?0:t)}});var Gr=h((u7,db)=>{"use strict";var ND=mo(),DD=Pe(),LD=ds(),qD=Xn(),UD=ri(),MD=md(),ub=DD([].push),Br=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=qD(c),f=LD(p),m=UD(f),v=ND(l,d),b=0,y=u||MD,w=t?y(c,m):r||a?y(c,0):void 0,E,C;m>b;b++)if((s||b in f)&&(E=f[b],C=v(E,b,p),e))if(t)w[b]=C;else if(C)switch(e){case 3:return!0;case 5:return E;case 6:return b;case 2:ub(w,E)}else switch(e){case 4:return!1;case 7:ub(w,E)}return o?-1:n||i?i:w}};db.exports={forEach:Br(0),map:Br(1),filter:Br(2),some:Br(3),every:Br(4),find:Br(5),findIndex:Br(6),filterReject:Br(7)}});var bo=h((d7,pb)=>{"use strict";var FD=Se(),jD=et(),BD=ms(),GD=jD("species");pb.exports=function(e){return BD>=51||!FD(function(){var t=[],r=t.constructor={};return r[GD]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var fb=h(()=>{"use strict";var JD=ae(),HD=Gr().filter,VD=bo(),$D=VD("filter");JD({target:"Array",proto:!0,forced:!$D},{filter:function(t){return HD(this,t,arguments.length>1?arguments[1]:void 0)}})});var Ot=h((m7,mb)=>{"use strict";var WD=Ie(),zD=zt();mb.exports=function(e,t){var r=zD[e+"Prototype"],n=r&&r[t];if(n)return n;var i=WD[e],o=i&&i.prototype;return o&&o[t]}});var gb=h((h7,hb)=>{"use strict";fb();var KD=Ot();hb.exports=KD("Array","filter")});var yb=h((g7,vb)=>{"use strict";var YD=at(),QD=gb(),hd=Array.prototype;vb.exports=function(e){var t=e.filter;return e===hd||YD(hd,e)&&t===hd.filter?QD:t}});var _b=h((v7,bb)=>{"use strict";var XD=yb();bb.exports=XD});var Sb=h((y7,wb)=>{wb.exports=_b()});var _o=h((b7,Ib)=>{"use strict";var ZD=Se();Ib.exports=function(e,t){var r=[][e];return!!r&&ZD(function(){r.call(null,t||function(){return 1},1)})}});var Eb=h(()=>{"use strict";var eL=ae(),tL=Gr().every,rL=_o(),nL=rL("every");eL({target:"Array",proto:!0,forced:!nL},{every:function(t){return tL(this,t,arguments.length>1?arguments[1]:void 0)}})});var Cb=h((S7,Ab)=>{"use strict";Eb();var iL=Ot();Ab.exports=iL("Array","every")});var xb=h((I7,kb)=>{"use strict";var oL=at(),aL=Cb(),gd=Array.prototype;kb.exports=function(e){var t=e.every;return e===gd||oL(gd,e)&&t===gd.every?aL:t}});var Pb=h((E7,Tb)=>{"use strict";var sL=xb();Tb.exports=sL});var Rb=h((A7,Ob)=>{Ob.exports=Pb()});var Db=h((C7,Nb)=>{"use strict";var cL=Gr().forEach,lL=_o(),uL=lL("forEach");Nb.exports=uL?[].forEach:function(t){return cL(this,t,arguments.length>1?arguments[1]:void 0)}});var qb=h(()=>{"use strict";var dL=ae(),Lb=Db();dL({target:"Array",proto:!0,forced:[].forEach!==Lb},{forEach:Lb})});var Mb=h((T7,Ub)=>{"use strict";qb();var pL=Ot();Ub.exports=pL("Array","forEach")});var jb=h((P7,Fb)=>{"use strict";var fL=Mb();Fb.exports=fL});var Bb=h(()=>{});var Jb=h((N7,Gb)=>{"use strict";var mL=ni(),hL=It(),gL=at(),vL=jb();Bb();var vd=Array.prototype,yL={DOMTokenList:!0,NodeList:!0};Gb.exports=function(e){var t=e.forEach;return e===vd||gL(vd,e)&&t===vd.forEach||hL(yL,mL(e))?vL:t}});var Vb=h((D7,Hb)=>{Hb.exports=Jb()});var Wb=h((L7,$b)=>{"use strict";var bL=TypeError,_L=9007199254740991;$b.exports=function(e){if(e>_L)throw bL("Maximum allowed index exceeded");return e}});var yd=h((q7,zb)=>{"use strict";var wL=st(),SL=hr(),IL=lo();zb.exports=function(e,t,r){wL?SL.f(e,t,IL(0,r)):e[t]=r}});var Xb=h(()=>{"use strict";var EL=ae(),AL=Se(),CL=vo(),kL=qe(),xL=Xn(),TL=ri(),Kb=Wb(),Yb=yd(),PL=md(),OL=bo(),RL=et(),NL=ms(),Qb=RL("isConcatSpreadable"),DL=NL>=51||!AL(function(){var e=[];return e[Qb]=!1,e.concat()[0]!==e}),LL=function(e){if(!kL(e))return!1;var t=e[Qb];return t!==void 0?!!t:CL(e)},qL=!DL||!OL("concat");EL({target:"Array",proto:!0,arity:1,forced:qL},{concat:function(t){var r=xL(this),n=PL(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],LL(l))for(c=TL(l),Kb(i+c),a=0;a<c;a++,i++)a in l&&Yb(n,i,l[a]);else Kb(i+1),Yb(n,i++,l);return n.length=i,n}})});var e_=h((F7,Zb)=>{"use strict";Xb();var UL=Ot();Zb.exports=UL("Array","concat")});var r_=h((j7,t_)=>{"use strict";var ML=at(),FL=e_(),bd=Array.prototype;t_.exports=function(e){var t=e.concat;return e===bd||ML(bd,e)&&t===bd.concat?FL:t}});var i_=h((B7,n_)=>{"use strict";var jL=r_();n_.exports=jL});var a_=h((G7,o_)=>{o_.exports=i_()});var s_=h(()=>{"use strict";var BL=ae(),GL=Gr().some,JL=_o(),HL=JL("some");BL({target:"Array",proto:!0,forced:!HL},{some:function(t){return GL(this,t,arguments.length>1?arguments[1]:void 0)}})});var l_=h((V7,c_)=>{"use strict";s_();var VL=Ot();c_.exports=VL("Array","some")});var d_=h(($7,u_)=>{"use strict";var $L=at(),WL=l_(),_d=Array.prototype;u_.exports=function(e){var t=e.some;return e===_d||$L(_d,e)&&t===_d.some?WL:t}});var f_=h((W7,p_)=>{"use strict";var zL=d_();p_.exports=zL});var h_=h((z7,m_)=>{m_.exports=f_()});var v_=h((K7,g_)=>{"use strict";var wo=Ie(),KL=ps(),YL=fr(),_s=function(e){return KL.slice(0,e.length)===e};g_.exports=function(){return _s("Bun/")?"BUN":_s("Cloudflare-Workers")?"CLOUDFLARE":_s("Deno/")?"DENO":_s("Node.js/")?"NODE":wo.Bun&&typeof Bun.version=="string"?"BUN":wo.Deno&&typeof Deno.version=="object"?"DENO":YL(wo.process)==="process"?"NODE":wo.window&&wo.document?"BROWSER":"REST"}()});var So=h((Y7,y_)=>{"use strict";var QL=Pe();y_.exports=QL([].slice)});var __=h((Q7,b_)=>{"use strict";var XL=TypeError;b_.exports=function(e,t){if(e<t)throw new XL("Not enough arguments");return e}});var wd=h((X7,S_)=>{"use strict";var w_=Ie(),ZL=Fu(),eq=Ve(),tq=v_(),rq=ps(),nq=So(),iq=__(),oq=w_.Function,aq=/MSIE .\./.test(rq)||tq==="BUN"&&function(){var e=w_.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();S_.exports=function(e,t){var r=t?2:1;return aq?function(n,i){var o=iq(arguments.length,1)>r,a=eq(n)?n:oq(n),s=o?nq(arguments,r):[],c=o?function(){ZL(a,this,s)}:a;return t?e(c,i):e(c)}:e}});var A_=h(()=>{"use strict";var sq=ae(),E_=Ie(),cq=wd(),I_=cq(E_.setInterval,!0);sq({global:!0,bind:!0,forced:E_.setInterval!==I_},{setInterval:I_})});var x_=h(()=>{"use strict";var lq=ae(),k_=Ie(),uq=wd(),C_=uq(k_.setTimeout,!0);lq({global:!0,bind:!0,forced:k_.setTimeout!==C_},{setTimeout:C_})});var T_=h(()=>{"use strict";A_();x_()});var O_=h((oY,P_)=>{"use strict";T_();var dq=zt();P_.exports=dq.setTimeout});var N_=h((aY,R_)=>{R_.exports=O_()});function Eo(e,t){ke.__h&&ke.__h(pe,e,Io||t),Io=0;var r=pe.__H||(pe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function gr(e){return Io=1,J_(H_,e)}function J_(e,t,r){var n=Eo(yn++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):H_(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=pe,!pe.__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};pe.__f=!0;var o=pe.shouldComponentUpdate,a=pe.componentWillUpdate;pe.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)},pe.shouldComponentUpdate=i}return n.__N||n.__}function bn(e,t){var r=Eo(yn++,3);!ke.__s&&Ed(r.__H,t)&&(r.__=e,r.u=t,pe.__H.__h.push(r))}function ii(e,t){var r=Eo(yn++,4);!ke.__s&&Ed(r.__H,t)&&(r.__=e,r.u=t,pe.__h.push(r))}function oi(e){return Io=5,Ao(function(){return{current:e}},[])}function Ao(e,t){var r=Eo(yn++,7);return Ed(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Jr(e,t){return Io=8,Ao(function(){return e},t)}function ai(e){var t=pe.context[e.__c],r=Eo(yn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(pe)),t.props.value):e.__}function pq(){for(var e;e=G_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ws),e.__H.__h.forEach(Id),e.__H.__h=[]}catch(t){e.__H.__h=[],ke.__e(t,e.__v)}}function fq(e){var t,r=function(){clearTimeout(n),B_&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);B_&&(t=requestAnimationFrame(r))}function ws(e){var t=pe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),pe=t}function Id(e){var t=pe;e.__c=e.__(),pe=t}function Ed(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function H_(e,t){return typeof t=="function"?t(e):t}var yn,pe,Sd,D_,Io,G_,ke,L_,q_,U_,M_,F_,j_,B_,Ad=x(()=>{zn();Io=0,G_=[],ke=q,L_=ke.__b,q_=ke.__r,U_=ke.diffed,M_=ke.__c,F_=ke.unmount,j_=ke.__;ke.__b=function(e){pe=null,L_&&L_(e)},ke.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),j_&&j_(e,t)},ke.__r=function(e){q_&&q_(e),yn=0;var t=(pe=e.__c).__H;t&&(Sd===pe?(t.__h=[],pe.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(ws),t.__h.forEach(Id),t.__h=[],yn=0)),Sd=pe},ke.diffed=function(e){U_&&U_(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(G_.push(t)!==1&&D_===ke.requestAnimationFrame||((D_=ke.requestAnimationFrame)||fq)(pq)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Sd=pe=null},ke.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ws),r.__h=r.__h.filter(function(n){return!n.__||Id(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],ke.__e(n,r.__v)}}),M_&&M_(e,t)},ke.unmount=function(e){F_&&F_(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ws(n)}catch(i){t=i}}),r.__H=void 0,t&&ke.__e(t,r.__v))};B_=typeof requestAnimationFrame=="function"});function ew(e,t){for(var r in t)e[r]=t[r];return e}function kd(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 V_(e,t){this.props=e,this.context=t}function Td(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:kd(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Ze(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Pd(e){function t(r){var n=ew({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=mq,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function tw(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=ew({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return tw(n,t,r)})),e}function rw(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return rw(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 Cd(){this.__u=0,this.o=null,this.__b=null}function nw(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ss(){this.i=null,this.l=null}function Is(e,t,r){return t.__k==null&&(t.textContent=""),Fr(e,t),typeof r=="function"&&r(),e?e.__c:null}function Sq(){}function Iq(){return this.cancelBubble}function Eq(){return this.defaultPrevented}var xd,$_,mq,hq,W_,z_,gq,vq,yq,bq,_q,wq,K_,iw,Aq,Y_,Q_,X_,Es=x(()=>{zn();zn();Ad();Ad();xd=ii;(V_.prototype=new St).isPureReactComponent=!0,V_.prototype.shouldComponentUpdate=function(e,t){return kd(this.props,e)||kd(this.state,t)};$_=q.__b;q.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),$_&&$_(e)};mq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;hq=q.__e;q.__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)}hq(e,t,r,n)};W_=q.unmount;q.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),W_&&W_(e)},(Cd.prototype=new St).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=nw(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]=rw(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)},Cd.prototype.componentWillUnmount=function(){this.o=[]},Cd.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]=tw(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Ze(He,null,e.fallback);return i&&(i.__u&=-33),[Ze(He,null,t.__a?null:e.children),i]};z_=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]}};(Ss.prototype=new St).__a=function(e){var t=this,r=nw(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),z_(t,e,n)):i()};r?r(o):o()}},Ss.prototype.render=function(e){this.i=null,this.l=new Map;var t=ao(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},Ss.prototype.componentDidUpdate=Ss.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){z_(e,r,t)})};gq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,vq=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,yq=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,bq=/[A-Z0-9]/g,_q=typeof document!="undefined",wq=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};St.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(St.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});K_=q.event;q.event=function(e){return K_&&(e=K_(e)),e.persist=Sq,e.isPropagationStopped=Iq,e.isDefaultPrevented=Eq,e.nativeEvent=e};Aq={enumerable:!1,configurable:!0,get:function(){return this.class}},Y_=q.vnode;q.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||_q&&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"||wq(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":yq.test(a)&&(a=c):c=a="oninput":o&&vq.test(a)?a=a.replace(bq,"-$&").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=ao(r.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=ao(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",Aq)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=gq,Y_&&Y_(e)};Q_=q.__r;q.__r=function(e){Q_&&Q_(e),iw=e.__c};X_=q.diffed;q.diffed=function(e){X_&&X_(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),iw=null}});var Rd=h(()=>{"use strict";var kq=ae(),Od=Ie();kq({global:!0,forced:Od.globalThis!==Od},{globalThis:Od})});var ow=h(()=>{"use strict";Rd()});var sw=h((SY,aw)=>{"use strict";Rd();aw.exports=Ie()});var lw=h((IY,cw)=>{"use strict";var xq=sw();cw.exports=xq});var dw=h((EY,uw)=>{"use strict";var Tq=lw();uw.exports=Tq});var fw=h((AY,pw)=>{"use strict";ow();var Pq=dw();pw.exports=Pq});var hw=h((CY,mw)=>{"use strict";mw.exports=fw()});var vw=h((kY,gw)=>{gw.exports=hw()});var yw=h(()=>{"use strict";var Oq=ae(),Rq=vo();Oq({target:"Array",stat:!0},{isArray:Rq})});var _w=h((PY,bw)=>{"use strict";yw();var Nq=zt();bw.exports=Nq.Array.isArray});var Sw=h((OY,ww)=>{"use strict";var Dq=_w();ww.exports=Dq});var Ew=h((RY,Iw)=>{Iw.exports=Sw()});var Cw=h((NY,Aw)=>{"use strict";Aw.exports=function(){}});var _n=h((DY,kw)=>{"use strict";kw.exports={}});var Nd=h((LY,Tw)=>{"use strict";var Lq=Ie(),qq=Ve(),xw=Lq.WeakMap;Tw.exports=qq(xw)&&/native code/.test(String(xw))});var As=h((qY,Ow)=>{"use strict";var Uq=Xu(),Mq=gs(),Pw=Uq("keys");Ow.exports=function(e){return Pw[e]||(Pw[e]=Mq(e))}});var Co=h((UY,Rw)=>{"use strict";Rw.exports={}});var Sn=h((MY,Lw)=>{"use strict";var Fq=Nd(),Dw=Ie(),jq=qe(),Bq=vn(),Dd=It(),Ld=po(),Gq=As(),Jq=Co(),Nw="Object already initialized",qd=Dw.TypeError,Hq=Dw.WeakMap,Cs,ko,ks,Vq=function(e){return ks(e)?ko(e):Cs(e,{})},$q=function(e){return function(t){var r;if(!jq(t)||(r=ko(t)).type!==e)throw new qd("Incompatible receiver, "+e+" required");return r}};Fq||Ld.state?(jt=Ld.state||(Ld.state=new Hq),jt.get=jt.get,jt.has=jt.has,jt.set=jt.set,Cs=function(e,t){if(jt.has(e))throw new qd(Nw);return t.facade=e,jt.set(e,t),t},ko=function(e){return jt.get(e)||{}},ks=function(e){return jt.has(e)}):(wn=Gq("state"),Jq[wn]=!0,Cs=function(e,t){if(Dd(e,wn))throw new qd(Nw);return t.facade=e,Bq(e,wn,t),t},ko=function(e){return Dd(e,wn)?e[wn]:{}},ks=function(e){return Dd(e,wn)});var jt,wn;Lw.exports={set:Cs,get:ko,has:ks,enforce:Vq,getterFor:$q}});var Fd=h((FY,Uw)=>{"use strict";var Ud=st(),Wq=It(),qw=Function.prototype,zq=Ud&&Object.getOwnPropertyDescriptor,Md=Wq(qw,"name"),Kq=Md&&(function(){}).name==="something",Yq=Md&&(!Ud||Ud&&zq(qw,"name").configurable);Uw.exports={EXISTS:Md,PROPER:Kq,CONFIGURABLE:Yq}});var jd=h((jY,Mw)=>{"use strict";var Qq=go(),Xq=Math.max,Zq=Math.min;Mw.exports=function(e,t){var r=Qq(e);return r<0?Xq(r+t,0):Zq(r,t)}});var Bd=h((BY,jw)=>{"use strict";var eU=jr(),tU=jd(),rU=ri(),Fw=function(e){return function(t,r,n){var i=eU(t),o=rU(i);if(o===0)return!e&&-1;var a=tU(n,o),s;if(e&&r!==r){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}};jw.exports={includes:Fw(!0),indexOf:Fw(!1)}});var Jd=h((GY,Gw)=>{"use strict";var nU=Pe(),Gd=It(),iU=jr(),oU=Bd().indexOf,aU=Co(),Bw=nU([].push);Gw.exports=function(e,t){var r=iU(e),n=0,i=[],o;for(o in r)!Gd(aU,o)&&Gd(r,o)&&Bw(i,o);for(;t.length>n;)Gd(r,o=t[n++])&&(~oU(i,o)||Bw(i,o));return i}});var xs=h((JY,Jw)=>{"use strict";Jw.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Hd=h((HY,Hw)=>{"use strict";var sU=Jd(),cU=xs();Hw.exports=Object.keys||function(t){return sU(t,cU)}});var $w=h(Vw=>{"use strict";var lU=st(),uU=od(),dU=hr(),pU=mr(),fU=jr(),mU=Hd();Vw.f=lU&&!uU?Object.defineProperties:function(t,r){pU(t);for(var n=fU(r),i=mU(r),o=i.length,a=0,s;o>a;)dU.f(t,s=i[a++],n[s]);return t}});var zw=h(($Y,Ww)=>{"use strict";var hU=Yn();Ww.exports=hU("document","documentElement")});var xo=h((WY,tS)=>{"use strict";var gU=mr(),vU=$w(),Kw=xs(),yU=Co(),bU=zw(),_U=rd(),wU=As(),Yw=">",Qw="<",$d="prototype",Wd="script",Zw=wU("IE_PROTO"),Vd=function(){},eS=function(e){return Qw+Wd+Yw+e+Qw+"/"+Wd+Yw},Xw=function(e){e.write(eS("")),e.close();var t=e.parentWindow.Object;return e=null,t},SU=function(){var e=_U("iframe"),t="java"+Wd+":",r;return e.style.display="none",bU.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(eS("document.F=Object")),r.close(),r.F},Ts,Ps=function(){try{Ts=new ActiveXObject("htmlfile")}catch(t){}Ps=typeof document!="undefined"?document.domain&&Ts?Xw(Ts):SU():Xw(Ts);for(var e=Kw.length;e--;)delete Ps[$d][Kw[e]];return Ps()};yU[Zw]=!0;tS.exports=Object.create||function(t,r){var n;return t!==null?(Vd[$d]=gU(t),n=new Vd,Vd[$d]=null,n[Zw]=t):n=Ps(),r===void 0?n:vU.f(n,r)}});var nS=h((zY,rS)=>{"use strict";var IU=Se();rS.exports=!IU(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Kd=h((KY,oS)=>{"use strict";var EU=It(),AU=Ve(),CU=Xn(),kU=As(),xU=nS(),iS=kU("IE_PROTO"),zd=Object,TU=zd.prototype;oS.exports=xU?zd.getPrototypeOf:function(e){var t=CU(e);if(EU(t,iS))return t[iS];var r=t.constructor;return AU(r)&&t instanceof r?r.prototype:t instanceof zd?TU:null}});var Os=h((YY,aS)=>{"use strict";var PU=vn();aS.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:PU(e,t,r),e}});var Zd=h((QY,lS)=>{"use strict";var OU=Se(),RU=Ve(),NU=qe(),DU=xo(),sS=Kd(),LU=Os(),qU=et(),UU=Qn(),Xd=qU("iterator"),cS=!1,vr,Yd,Qd;[].keys&&(Qd=[].keys(),"next"in Qd?(Yd=sS(sS(Qd)),Yd!==Object.prototype&&(vr=Yd)):cS=!0);var MU=!NU(vr)||OU(function(){var e={};return vr[Xd].call(e)!==e});MU?vr={}:UU&&(vr=DU(vr));RU(vr[Xd])||LU(vr,Xd,function(){return this});lS.exports={IteratorPrototype:vr,BUGGY_SAFARI_ITERATORS:cS}});var dS=h((XY,uS)=>{"use strict";var FU=ys(),jU=ni();uS.exports=FU?{}.toString:function(){return"[object "+jU(this)+"]"}});var To=h((ZY,fS)=>{"use strict";var BU=ys(),GU=hr().f,JU=vn(),HU=It(),VU=dS(),$U=et(),pS=$U("toStringTag");fS.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(HU(i,pS)||GU(i,pS,{configurable:!0,value:t}),n&&!BU&&JU(i,"toString",VU))}});var hS=h((eQ,mS)=>{"use strict";var WU=Zd().IteratorPrototype,zU=xo(),KU=lo(),YU=To(),QU=_n(),XU=function(){return this};mS.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=zU(WU,{next:KU(+!n,r)}),YU(e,i,!1,!0),QU[i]=XU,e}});var vS=h((tQ,gS)=>{"use strict";var ZU=Pe(),eM=gn();gS.exports=function(e,t,r){try{return ZU(eM(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var bS=h((rQ,yS)=>{"use strict";var tM=qe();yS.exports=function(e){return tM(e)||e===null}});var wS=h((nQ,_S)=>{"use strict";var rM=bS(),nM=String,iM=TypeError;_S.exports=function(e){if(rM(e))return e;throw new iM("Can't set "+nM(e)+" as a prototype")}});var IS=h((iQ,SS)=>{"use strict";var oM=vS(),aM=qe(),sM=hn(),cM=wS();SS.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=oM(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return sM(i),cM(o),aM(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Ds=h((oQ,NS)=>{"use strict";var lM=ae(),uM=Mt(),Rs=Qn(),OS=Fd(),dM=Ve(),pM=hS(),ES=Kd(),AS=IS(),fM=To(),mM=vn(),ep=Os(),hM=et(),CS=_n(),RS=Zd(),gM=OS.PROPER,vM=OS.CONFIGURABLE,kS=RS.IteratorPrototype,Ns=RS.BUGGY_SAFARI_ITERATORS,Po=hM("iterator"),xS="keys",Oo="values",TS="entries",PS=function(){return this};NS.exports=function(e,t,r,n,i,o,a){pM(r,t,n);var s=function(y){if(y===i&&p)return p;if(!Ns&&y&&y in d)return d[y];switch(y){case xS:return function(){return new r(this,y)};case Oo:return function(){return new r(this,y)};case TS:return function(){return new r(this,y)}}return function(){return new r(this)}},c=t+" Iterator",l=!1,d=e.prototype,u=d[Po]||d["@@iterator"]||i&&d[i],p=!Ns&&u||s(i),f=t==="Array"&&d.entries||u,m,v,b;if(f&&(m=ES(f.call(new e)),m!==Object.prototype&&m.next&&(!Rs&&ES(m)!==kS&&(AS?AS(m,kS):dM(m[Po])||ep(m,Po,PS)),fM(m,c,!0,!0),Rs&&(CS[c]=PS))),gM&&i===Oo&&u&&u.name!==Oo&&(!Rs&&vM?mM(d,"name",Oo):(l=!0,p=function(){return uM(u,this)})),i)if(v={values:s(Oo),keys:o?p:s(xS),entries:s(TS)},a)for(b in v)(Ns||l||!(b in d))&&ep(d,b,v[b]);else lM({target:t,proto:!0,forced:Ns||l},v);return(!Rs||a)&&d[Po]!==p&&ep(d,Po,p,{name:i}),CS[t]=p,v}});var Ls=h((aQ,DS)=>{"use strict";DS.exports=function(e,t){return{value:e,done:t}}});var Us=h((sQ,FS)=>{"use strict";var yM=jr(),tp=Cw(),LS=_n(),US=Sn(),bM=hr().f,_M=Ds(),qs=Ls(),wM=Qn(),SM=st(),MS="Array Iterator",IM=US.set,EM=US.getterFor(MS);FS.exports=_M(Array,"Array",function(e,t){IM(this,{type:MS,target:yM(e),index:0,kind:t})},function(){var e=EM(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,qs(void 0,!0);switch(e.kind){case"keys":return qs(r,!1);case"values":return qs(t[r],!1)}return qs([r,t[r]],!1)},"values");var qS=LS.Arguments=LS.Array;tp("keys");tp("values");tp("entries");if(!wM&&SM&&qS.name!=="values")try{bM(qS,"name",{value:"values"})}catch(e){}});var rp=h(()=>{});var np=h((uQ,jS)=>{"use strict";var AM=Se();jS.exports=!AM(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Ms=h((dQ,BS)=>{"use strict";var CM=Os();BS.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:CM(e,n,t[n],r);return e}});var ip=h(GS=>{"use strict";var kM=Jd(),xM=xs(),TM=xM.concat("length","prototype");GS.f=Object.getOwnPropertyNames||function(t){return kM(t,TM)}});var $S=h((fQ,VS)=>{"use strict";var PM=fr(),OM=jr(),JS=ip().f,RM=So(),HS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],NM=function(e){try{return JS(e)}catch(t){return RM(HS)}};VS.exports.f=function(t){return HS&&PM(t)==="Window"?NM(t):JS(OM(t))}});var zS=h((mQ,WS)=>{"use strict";var DM=Se();WS.exports=DM(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var QS=h((hQ,YS)=>{"use strict";var LM=Se(),qM=qe(),UM=fr(),KS=zS(),Fs=Object.isExtensible,MM=LM(function(){Fs(1)});YS.exports=MM||KS?function(t){return!qM(t)||KS&&UM(t)==="ArrayBuffer"?!1:Fs?Fs(t):!0}:Fs});var Ro=h((gQ,eI)=>{"use strict";var FM=ae(),jM=Pe(),BM=Co(),GM=qe(),op=It(),JM=hr().f,XS=ip(),HM=$S(),ap=QS(),VM=gs(),$M=np(),ZS=!1,yr=VM("meta"),WM=0,sp=function(e){JM(e,yr,{value:{objectID:"O"+WM++,weakData:{}}})},zM=function(e,t){if(!GM(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!op(e,yr)){if(!ap(e))return"F";if(!t)return"E";sp(e)}return e[yr].objectID},KM=function(e,t){if(!op(e,yr)){if(!ap(e))return!0;if(!t)return!1;sp(e)}return e[yr].weakData},YM=function(e){return $M&&ZS&&ap(e)&&!op(e,yr)&&sp(e),e},QM=function(){XM.enable=function(){},ZS=!0;var e=XS.f,t=jM([].splice),r={};r[yr]=1,e(r).length&&(XS.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===yr){t(i,o,1);break}return i},FM({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:HM.f}))},XM=eI.exports={enable:QM,fastKey:zM,getWeakData:KM,onFreeze:YM};BM[yr]=!0});var rI=h((vQ,tI)=>{"use strict";var ZM=et(),eF=_n(),tF=ZM("iterator"),rF=Array.prototype;tI.exports=function(e){return e!==void 0&&(eF.Array===e||rF[tF]===e)}});var cp=h((yQ,iI)=>{"use strict";var nF=ni(),nI=hs(),iF=mn(),oF=_n(),aF=et(),sF=aF("iterator");iI.exports=function(e){if(!iF(e))return nI(e,sF)||nI(e,"@@iterator")||oF[nF(e)]}});var aI=h((bQ,oI)=>{"use strict";var cF=Mt(),lF=gn(),uF=mr(),dF=uo(),pF=cp(),fF=TypeError;oI.exports=function(e,t){var r=arguments.length<2?pF(e):t;if(lF(r))return uF(cF(r,e));throw new fF(dF(e)+" is not iterable")}});var js=h((_Q,cI)=>{"use strict";var mF=Mt(),sI=mr(),hF=hs();cI.exports=function(e,t,r){var n,i;sI(e);try{if(n=hF(e,"return"),!n){if(t==="throw")throw r;return r}n=mF(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return sI(n),r}});var Gs=h((wQ,pI)=>{"use strict";var gF=mo(),vF=Mt(),yF=mr(),bF=uo(),_F=rI(),wF=ri(),lI=at(),SF=aI(),IF=cp(),uI=js(),EF=TypeError,Bs=function(e,t){this.stopped=e,this.result=t},dI=Bs.prototype;pI.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=gF(t,n),l,d,u,p,f,m,v,b=function(w){return l&&uI(l,"normal",w),new Bs(!0,w)},y=function(w){return i?(yF(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=IF(e),!d)throw new EF(bF(e)+" is not iterable");if(_F(d)){for(u=0,p=wF(e);p>u;u++)if(f=y(e[u]),f&&lI(dI,f))return f;return new Bs(!1)}l=SF(e,d)}for(m=o?e.next:l.next;!(v=vF(m,l)).done;){try{f=y(v.value)}catch(w){uI(l,"throw",w)}if(typeof f=="object"&&f&&lI(dI,f))return f}return new Bs(!1)}});var Js=h((SQ,fI)=>{"use strict";var AF=at(),CF=TypeError;fI.exports=function(e,t){if(AF(t,e))return e;throw new CF("Incorrect invocation")}});var lp=h((IQ,hI)=>{"use strict";var kF=ae(),xF=Ie(),TF=Ro(),PF=Se(),OF=vn(),RF=Gs(),NF=Js(),DF=Ve(),LF=qe(),qF=mn(),UF=To(),MF=hr().f,FF=Gr().forEach,jF=st(),mI=Sn(),BF=mI.set,GF=mI.getterFor;hI.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=xF[e],s=a&&a.prototype,c={},l;if(!jF||!DF(a)||!(i||s.forEach&&!PF(function(){new a().entries().next()})))l=r.getConstructor(t,e,n,o),TF.enable();else{l=t(function(p,f){BF(NF(p,d),{type:e,collection:new a}),qF(f)||RF(f,p[o],{that:p,AS_ENTRIES:n})});var d=l.prototype,u=GF(e);FF(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&OF(d,p,function(m,v){var b=u(this).collection;if(!f&&i&&!LF(m))return p==="get"?void 0:!1;var y=b[p](m===0?0:m,v);return f?this:y})}),i||MF(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return UF(l,e,!1,!0),c[e]=l,kF({global:!0,forced:!0},c),i||r.setStrong(l,e,n),l}});var SI=h((EQ,wI)=>{"use strict";var JF=Pe(),gI=Ms(),Hs=Ro().getWeakData,HF=Js(),VF=mr(),$F=mn(),up=qe(),WF=Gs(),yI=Gr(),vI=It(),bI=Sn(),zF=bI.set,KF=bI.getterFor,YF=yI.find,QF=yI.findIndex,XF=JF([].splice),ZF=0,Vs=function(e){return e.frozen||(e.frozen=new _I)},_I=function(){this.entries=[]},dp=function(e,t){return YF(e.entries,function(r){return r[0]===t})};_I.prototype={get:function(e){var t=dp(this,e);if(t)return t[1]},has:function(e){return!!dp(this,e)},set:function(e,t){var r=dp(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=QF(this.entries,function(r){return r[0]===e});return~t&&XF(this.entries,t,1),!!~t}};wI.exports={getConstructor:function(e,t,r,n){var i=e(function(c,l){HF(c,o),zF(c,{type:t,id:ZF++,frozen:null}),$F(l)||WF(l,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=KF(t),s=function(c,l,d){var u=a(c),p=Hs(VF(l),!0);return p===!0?Vs(u).set(l,d):p[u.id]=d,c};return gI(o,{delete:function(c){var l=a(this);if(!up(c))return!1;var d=Hs(c);return d===!0?Vs(l).delete(c):d&&vI(d,l.id)&&delete d[l.id]},has:function(l){var d=a(this);if(!up(l))return!1;var u=Hs(l);return u===!0?Vs(d).has(l):u&&vI(u,d.id)}}),gI(o,r?{get:function(l){var d=a(this);if(up(l)){var u=Hs(l);if(u===!0)return Vs(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 PI=h(()=>{"use strict";var ej=np(),II=Ie(),Ks=Pe(),EI=Ms(),tj=Ro(),rj=lp(),AI=SI(),$s=qe(),Ws=Sn().enforce,nj=Se(),ij=Nd(),Lo=Object,oj=Array.isArray,zs=Lo.isExtensible,CI=Lo.isFrozen,aj=Lo.isSealed,kI=Lo.freeze,sj=Lo.seal,cj=!II.ActiveXObject&&"ActiveXObject"in II,No,xI=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},TI=rj("WeakMap",xI,AI),si=TI.prototype,Ys=Ks(si.set),lj=function(){return ej&&nj(function(){var e=kI([]);return Ys(new TI,e,1),!CI(e)})};ij&&(cj?(No=AI.getConstructor(xI,"WeakMap",!0),tj.enable(),pp=Ks(si.delete),Do=Ks(si.has),fp=Ks(si.get),EI(si,{delete:function(e){if($s(e)&&!zs(e)){var t=Ws(this);return t.frozen||(t.frozen=new No),pp(this,e)||t.frozen.delete(e)}return pp(this,e)},has:function(t){if($s(t)&&!zs(t)){var r=Ws(this);return r.frozen||(r.frozen=new No),Do(this,t)||r.frozen.has(t)}return Do(this,t)},get:function(t){if($s(t)&&!zs(t)){var r=Ws(this);return r.frozen||(r.frozen=new No),Do(this,t)?fp(this,t):r.frozen.get(t)}return fp(this,t)},set:function(t,r){if($s(t)&&!zs(t)){var n=Ws(this);n.frozen||(n.frozen=new No),Do(this,t)?Ys(this,t,r):n.frozen.set(t,r)}else Ys(this,t,r);return this}})):lj()&&EI(si,{set:function(t,r){var n;return oj(t)&&(CI(t)?n=kI:aj(t)&&(n=sj)),Ys(this,t,r),n&&n(t),this}}));var pp,Do,fp});var OI=h(()=>{"use strict";PI()});var NI=h((TQ,RI)=>{"use strict";Us();rp();OI();var uj=zt();RI.exports=uj.WeakMap});var LI=h((PQ,DI)=>{"use strict";DI.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 mp=h(()=>{"use strict";Us();var dj=LI(),pj=Ie(),fj=To(),qI=_n();for(Qs in dj)fj(pj[Qs],Qs),qI[Qs]=qI.Array;var Qs});var MI=h((NQ,UI)=>{"use strict";var mj=NI();mp();UI.exports=mj});var jI=h((DQ,FI)=>{FI.exports=MI()});var GI=h(()=>{"use strict";var hj=ae(),gj=co(),vj=Bd().indexOf,yj=_o(),hp=gj([].indexOf),BI=!!hp&&1/hp([1],1,-0)<0,bj=BI||!yj("indexOf");hj({target:"Array",proto:!0,forced:bj},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return BI?hp(this,t,r)||0:vj(this,t,r)}})});var HI=h((UQ,JI)=>{"use strict";GI();var _j=Ot();JI.exports=_j("Array","indexOf")});var $I=h((MQ,VI)=>{"use strict";var wj=at(),Sj=HI(),gp=Array.prototype;VI.exports=function(e){var t=e.indexOf;return e===gp||wj(gp,e)&&t===gp.indexOf?Sj:t}});var zI=h((FQ,WI)=>{"use strict";var Ij=$I();WI.exports=Ij});var YI=h((jQ,KI)=>{KI.exports=zI()});var QI=h(()=>{"use strict";var Ej=ae(),Aj=Gr().map,Cj=bo(),kj=Cj("map");Ej({target:"Array",proto:!0,forced:!kj},{map:function(t){return Aj(this,t,arguments.length>1?arguments[1]:void 0)}})});var ZI=h((JQ,XI)=>{"use strict";QI();var xj=Ot();XI.exports=xj("Array","map")});var t0=h((HQ,e0)=>{"use strict";var Tj=at(),Pj=ZI(),vp=Array.prototype;e0.exports=function(e){var t=e.map;return e===vp||Tj(vp,e)&&t===vp.map?Pj:t}});var n0=h((VQ,r0)=>{"use strict";var Oj=t0();r0.exports=Oj});var o0=h(($Q,i0)=>{i0.exports=n0()});var a0=h(()=>{"use strict";var Rj=ae(),Nj=st(),Dj=xo();Rj({target:"Object",stat:!0,sham:!Nj},{create:Dj})});var c0=h((KQ,s0)=>{"use strict";a0();var Lj=zt(),qj=Lj.Object;s0.exports=function(t,r){return qj.create(t,r)}});var u0=h((YQ,l0)=>{"use strict";var Uj=c0();l0.exports=Uj});var p0=h((QQ,d0)=>{d0.exports=u0()});var yp=h((XQ,f0)=>{"use strict";var Mj=hr();f0.exports=function(e,t,r){return Mj.f(e,t,r)}});var g0=h((ZQ,h0)=>{"use strict";var Fj=Yn(),jj=yp(),Bj=et(),Gj=st(),m0=Bj("species");h0.exports=function(e){var t=Fj(e);Gj&&t&&!t[m0]&&jj(t,m0,{configurable:!0,get:function(){return this}})}});var I0=h((eX,S0)=>{"use strict";var v0=xo(),Jj=yp(),y0=Ms(),Hj=mo(),Vj=Js(),$j=mn(),Wj=Gs(),zj=Ds(),Xs=Ls(),Kj=g0(),qo=st(),b0=Ro().fastKey,w0=Sn(),_0=w0.set,bp=w0.getterFor;S0.exports={getConstructor:function(e,t,r,n){var i=e(function(l,d){Vj(l,o),_0(l,{type:t,index:v0(null),first:null,last:null,size:0}),qo||(l.size=0),$j(d)||Wj(d,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=bp(t),s=function(l,d,u){var p=a(l),f=c(l,d),m,v;return f?f.value=u:(p.last=f={index:v=b0(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),qo?p.size++:l.size++,v!=="F"&&(p.index[v]=f)),l},c=function(l,d){var u=a(l),p=b0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return y0(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=v0(null),qo?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),qo?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=Hj(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)}}),y0(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)}}),qo&&Jj(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=bp(t),o=bp(n);zj(e,t,function(a,s){_0(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,Xs(void 0,!0)):Xs(s==="keys"?c.key:s==="values"?c.value:[c.key,c.value],!1)},r?"entries":"values",!r,!0),Kj(t)}}});var E0=h(()=>{"use strict";var Yj=lp(),Qj=I0();Yj("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Qj)});var A0=h(()=>{"use strict";E0()});var Hr=h((oX,C0)=>{"use strict";var Xj=uo(),Zj=TypeError;C0.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 Zj(Xj(e)+" is not a set")}});var x0=h((aX,k0)=>{"use strict";k0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var Vr=h((sX,P0)=>{"use strict";var eB=Yn(),_p=x0(),T0=eB("Set"),tB=T0.prototype;P0.exports={Set:T0,add:_p("add",1),has:_p("has",1),remove:_p("delete",1),proto:tB}});var $r=h((cX,O0)=>{"use strict";var rB=Mt();O0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=rB(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var ci=h((lX,R0)=>{"use strict";var nB=$r();R0.exports=function(e,t,r){return r?nB(e.keys(),t,!0):e.forEach(t)}});var Zs=h((uX,D0)=>{"use strict";var N0=Vr(),iB=ci(),oB=N0.Set,aB=N0.add;D0.exports=function(e){var t=new oB;return iB(e,function(r){aB(t,r)}),t}});var li=h((dX,L0)=>{"use strict";L0.exports=function(e){return e.size}});var U0=h((pX,q0)=>{"use strict";q0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Wr=h((fX,J0)=>{"use strict";var M0=gn(),B0=mr(),F0=Mt(),sB=go(),cB=U0(),j0="Invalid size",lB=RangeError,uB=TypeError,dB=Math.max,G0=function(e,t){this.set=e,this.size=dB(t,0),this.has=M0(e.has),this.keys=M0(e.keys)};G0.prototype={getIterator:function(){return cB(B0(F0(this.keys,this.set)))},includes:function(e){return F0(this.has,this.set,e)}};J0.exports=function(e){B0(e);var t=+e.size;if(t!==t)throw new uB(j0);var r=sB(t);if(r<0)throw new lB(j0);return new G0(e,r)}});var W0=h((mX,$0)=>{"use strict";var pB=Hr(),V0=Vr(),fB=Zs(),mB=li(),hB=Wr(),gB=ci(),vB=$r(),yB=V0.has,H0=V0.remove;$0.exports=function(t){var r=pB(this),n=hB(t),i=fB(r);return mB(r)<=n.size?gB(r,function(o){n.includes(o)&&H0(i,o)}):vB(n.getIterator(),function(o){yB(r,o)&&H0(i,o)}),i}});var zr=h((hX,z0)=>{"use strict";z0.exports=function(){return!1}});var K0=h(()=>{"use strict";var bB=ae(),_B=W0(),wB=zr(),SB=!wB("difference",function(e){return e.size===0});bB({target:"Set",proto:!0,real:!0,forced:SB},{difference:_B})});var X0=h((yX,Q0)=>{"use strict";var IB=Hr(),wp=Vr(),EB=li(),AB=Wr(),CB=ci(),kB=$r(),xB=wp.Set,Y0=wp.add,TB=wp.has;Q0.exports=function(t){var r=IB(this),n=AB(t),i=new xB;return EB(r)>n.size?kB(n.getIterator(),function(o){TB(r,o)&&Y0(i,o)}):CB(r,function(o){n.includes(o)&&Y0(i,o)}),i}});var Z0=h(()=>{"use strict";var PB=ae(),OB=Se(),RB=X0(),NB=zr(),DB=!NB("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||OB(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});PB({target:"Set",proto:!0,real:!0,forced:DB},{intersection:RB})});var tE=h((wX,eE)=>{"use strict";var LB=Hr(),qB=Vr().has,UB=li(),MB=Wr(),FB=ci(),jB=$r(),BB=js();eE.exports=function(t){var r=LB(this),n=MB(t);if(UB(r)<=n.size)return FB(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return jB(i,function(o){if(qB(r,o))return BB(i,"normal",!1)})!==!1}});var rE=h(()=>{"use strict";var GB=ae(),JB=tE(),HB=zr(),VB=!HB("isDisjointFrom",function(e){return!e});GB({target:"Set",proto:!0,real:!0,forced:VB},{isDisjointFrom:JB})});var iE=h((EX,nE)=>{"use strict";var $B=Hr(),WB=li(),zB=ci(),KB=Wr();nE.exports=function(t){var r=$B(this),n=KB(t);return WB(r)>n.size?!1:zB(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var oE=h(()=>{"use strict";var YB=ae(),QB=iE(),XB=zr(),ZB=!XB("isSubsetOf",function(e){return e});YB({target:"Set",proto:!0,real:!0,forced:ZB},{isSubsetOf:QB})});var sE=h((kX,aE)=>{"use strict";var eG=Hr(),tG=Vr().has,rG=li(),nG=Wr(),iG=$r(),oG=js();aE.exports=function(t){var r=eG(this),n=nG(t);if(rG(r)<n.size)return!1;var i=n.getIterator();return iG(i,function(o){if(!tG(r,o))return oG(i,"normal",!1)})!==!1}});var cE=h(()=>{"use strict";var aG=ae(),sG=sE(),cG=zr(),lG=!cG("isSupersetOf",function(e){return!e});aG({target:"Set",proto:!0,real:!0,forced:lG},{isSupersetOf:sG})});var uE=h((PX,lE)=>{"use strict";var uG=Hr(),Sp=Vr(),dG=Zs(),pG=Wr(),fG=$r(),mG=Sp.add,hG=Sp.has,gG=Sp.remove;lE.exports=function(t){var r=uG(this),n=pG(t).getIterator(),i=dG(r);return fG(n,function(o){hG(r,o)?gG(i,o):mG(i,o)}),i}});var dE=h(()=>{"use strict";var vG=ae(),yG=uE(),bG=zr();vG({target:"Set",proto:!0,real:!0,forced:!bG("symmetricDifference")},{symmetricDifference:yG})});var fE=h((NX,pE)=>{"use strict";var _G=Hr(),wG=Vr().add,SG=Zs(),IG=Wr(),EG=$r();pE.exports=function(t){var r=_G(this),n=IG(t).getIterator(),i=SG(r);return EG(n,function(o){wG(i,o)}),i}});var mE=h(()=>{"use strict";var AG=ae(),CG=fE(),kG=zr();AG({target:"Set",proto:!0,real:!0,forced:!kG("union")},{union:CG})});var Uo=h((qX,hE)=>{"use strict";var xG=ni(),TG=String;hE.exports=function(e){if(xG(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return TG(e)}});var bE=h((UX,yE)=>{"use strict";var Ip=Pe(),PG=go(),OG=Uo(),RG=hn(),NG=Ip("".charAt),gE=Ip("".charCodeAt),DG=Ip("".slice),vE=function(e){return function(t,r){var n=OG(RG(t)),i=PG(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=gE(n,i),a<55296||a>56319||i+1===o||(s=gE(n,i+1))<56320||s>57343?e?NG(n,i):a:e?DG(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};yE.exports={codeAt:vE(!1),charAt:vE(!0)}});var IE=h(()=>{"use strict";var LG=bE().charAt,qG=Uo(),wE=Sn(),UG=Ds(),_E=Ls(),SE="String Iterator",MG=wE.set,FG=wE.getterFor(SE);UG(String,"String",function(e){MG(this,{type:SE,string:qG(e),index:0})},function(){var t=FG(this),r=t.string,n=t.index,i;return n>=r.length?_E(void 0,!0):(i=LG(r,n),t.index+=i.length,_E(i,!1))})});var AE=h((jX,EE)=>{"use strict";Us();rp();A0();K0();Z0();rE();oE();cE();dE();mE();IE();var jG=zt();EE.exports=jG.Set});var kE=h((BX,CE)=>{"use strict";var BG=AE();mp();CE.exports=BG});var TE=h((GX,xE)=>{xE.exports=kE()});var OE=h(PE=>{"use strict";PE.f=Object.getOwnPropertySymbols});var LE=h((HX,DE)=>{"use strict";var RE=st(),GG=Pe(),JG=Mt(),HG=Se(),Ep=Hd(),VG=OE(),$G=Bu(),WG=Xn(),zG=ds(),ui=Object.assign,NE=Object.defineProperty,KG=GG([].concat);DE.exports=!ui||HG(function(){if(RE&&ui({b:1},ui(NE({},"a",{enumerable:!0,get:function(){NE(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}),ui({},e)[r]!==7||Ep(ui({},t)).join("")!==n})?function(t,r){for(var n=WG(t),i=arguments.length,o=1,a=VG.f,s=$G.f;i>o;)for(var c=zG(arguments[o++]),l=a?KG(Ep(c),a(c)):Ep(c),d=l.length,u=0,p;d>u;)p=l[u++],(!RE||JG(s,c,p))&&(n[p]=c[p]);return n}:ui});var UE=h(()=>{"use strict";var YG=ae(),qE=LE();YG({target:"Object",stat:!0,arity:2,forced:Object.assign!==qE},{assign:qE})});var FE=h((WX,ME)=>{"use strict";UE();var QG=zt();ME.exports=QG.Object.assign});var BE=h((zX,jE)=>{"use strict";var XG=FE();jE.exports=XG});var JE=h((KX,GE)=>{GE.exports=BE()});var Ap=h((YX,HE)=>{"use strict";HE.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 WE=h((QX,$E)=>{"use strict";var ZG=Pe(),eJ=hn(),tJ=Uo(),kp=Ap(),VE=ZG("".replace),rJ=RegExp("^["+kp+"]+"),nJ=RegExp("(^|[^"+kp+"])["+kp+"]+$"),Cp=function(e){return function(t){var r=tJ(eJ(t));return e&1&&(r=VE(r,rJ,"")),e&2&&(r=VE(r,nJ,"$1")),r}};$E.exports={start:Cp(1),end:Cp(2),trim:Cp(3)}});var QE=h((XX,YE)=>{"use strict";var iJ=Fd().PROPER,oJ=Se(),zE=Ap(),KE="\u200B\x85\u180E";YE.exports=function(e){return oJ(function(){return!!zE[e]()||KE[e]()!==KE||iJ&&zE[e].name!==e})}});var XE=h(()=>{"use strict";var aJ=ae(),sJ=WE().trim,cJ=QE();aJ({target:"String",proto:!0,forced:cJ("trim")},{trim:function(){return sJ(this)}})});var eA=h((tZ,ZE)=>{"use strict";XE();var lJ=Ot();ZE.exports=lJ("String","trim")});var rA=h((rZ,tA)=>{"use strict";var uJ=at(),dJ=eA(),xp=String.prototype;tA.exports=function(e){var t=e.trim;return typeof e=="string"||e===xp||uJ(xp,e)&&t===xp.trim?dJ:t}});var iA=h((nZ,nA)=>{"use strict";var pJ=rA();nA.exports=pJ});var aA=h((iZ,oA)=>{oA.exports=iA()});var lA=h(()=>{"use strict";var fJ=ae(),sA=vo(),mJ=fd(),hJ=qe(),cA=jd(),gJ=ri(),vJ=jr(),yJ=yd(),bJ=et(),_J=bo(),wJ=So(),SJ=_J("slice"),IJ=bJ("species"),Tp=Array,EJ=Math.max;fJ({target:"Array",proto:!0,forced:!SJ},{slice:function(t,r){var n=vJ(this),i=gJ(n),o=cA(t,i),a=cA(r===void 0?i:r,i),s,c,l;if(sA(n)&&(s=n.constructor,mJ(s)&&(s===Tp||sA(s.prototype))?s=void 0:hJ(s)&&(s=s[IJ],s===null&&(s=void 0)),s===Tp||s===void 0))return wJ(n,o,a);for(c=new(s===void 0?Tp:s)(EJ(a-o,0)),l=0;o<a;o++,l++)o in n&&yJ(c,l,n[o]);return c.length=l,c}})});var dA=h((sZ,uA)=>{"use strict";lA();var AJ=Ot();uA.exports=AJ("Array","slice")});var fA=h((cZ,pA)=>{"use strict";var CJ=at(),kJ=dA(),Pp=Array.prototype;pA.exports=function(e){var t=e.slice;return e===Pp||CJ(Pp,e)&&t===Pp.slice?kJ:t}});var hA=h((lZ,mA)=>{"use strict";var xJ=fA();mA.exports=xJ});var vA=h((uZ,gA)=>{gA.exports=hA()});var Op=x(()=>{});var bA=h((pZ,yA)=>{"use strict";var TJ=qe(),PJ=fr(),OJ=et(),RJ=OJ("match");yA.exports=function(e){var t;return TJ(e)&&((t=e[RJ])!==void 0?!!t:PJ(e)==="RegExp")}});var wA=h((fZ,_A)=>{"use strict";var NJ=bA(),DJ=TypeError;_A.exports=function(e){if(NJ(e))throw new DJ("The method doesn't accept regular expressions");return e}});var IA=h((mZ,SA)=>{"use strict";var LJ=et(),qJ=LJ("match");SA.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[qJ]=!1,"/./"[e](t)}catch(n){}}return!1}});var CA=h(()=>{"use strict";var UJ=ae(),MJ=co(),FJ=id().f,jJ=ud(),EA=Uo(),BJ=wA(),GJ=hn(),JJ=IA(),HJ=Qn(),VJ=MJ("".slice),$J=Math.min,AA=JJ("startsWith"),WJ=!HJ&&!AA&&!!function(){var e=FJ(String.prototype,"startsWith");return e&&!e.writable}();UJ({target:"String",proto:!0,forced:!WJ&&!AA},{startsWith:function(t){var r=EA(GJ(this));BJ(t);var n=jJ($J(arguments.length>1?arguments[1]:void 0,r.length)),i=EA(t);return VJ(r,n,n+i.length)===i}})});var xA=h((vZ,kA)=>{"use strict";CA();var zJ=Ot();kA.exports=zJ("String","startsWith")});var PA=h((yZ,TA)=>{"use strict";var KJ=at(),YJ=xA(),Rp=String.prototype;TA.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Rp||KJ(Rp,e)&&t===Rp.startsWith?YJ:t}});var RA=h((bZ,OA)=>{"use strict";var QJ=PA();OA.exports=QJ});var DA=h((_Z,NA)=>{NA.exports=RA()});var FA=h((wZ,MA)=>{"use strict";var qA=Pe(),XJ=gn(),ZJ=qe(),e2=It(),LA=So(),t2=Kn(),UA=Function,r2=qA([].concat),n2=qA([].join),Np={},i2=function(e,t,r){if(!e2(Np,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Np[t]=UA("C,a","return new C("+n2(n,",")+")")}return Np[t](e,r)};MA.exports=t2?UA.bind:function(t){var r=XJ(this),n=r.prototype,i=LA(arguments,1),o=function(){var s=r2(i,LA(arguments));return this instanceof o?i2(r,s.length,s):r.apply(t,s)};return ZJ(n)&&(o.prototype=n),o}});var BA=h(()=>{"use strict";var o2=ae(),jA=FA();o2({target:"Function",proto:!0,forced:Function.bind!==jA},{bind:jA})});var JA=h((EZ,GA)=>{"use strict";BA();var a2=Ot();GA.exports=a2("Function","bind")});var VA=h((AZ,HA)=>{"use strict";var s2=at(),c2=JA(),Dp=Function.prototype;HA.exports=function(e){var t=e.bind;return e===Dp||s2(Dp,e)&&t===Dp.bind?c2:t}});var WA=h((CZ,$A)=>{"use strict";var l2=VA();$A.exports=l2});var KA=h((kZ,zA)=>{zA.exports=WA()});function yc(e,t){Oe.__h&&Oe.__h(ye,e,Ho||t),Ho=0;var r=ye.__H||(ye.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function tr(e){return Ho=1,u2(UC,e)}function u2(e,t,r){var n=yc(mi++,2);if(n.t=e,!n.__c&&(n.__=[UC(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=ye,!ye.__f)){var i=function(s,c,l){var d;if(!n.__c.__H)return!0;var u=(0,tf.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,RC.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,Ue.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};ye.__f=!0;var o=ye.shouldComponentUpdate,a=ye.componentWillUpdate;ye.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)},ye.shouldComponentUpdate=i}return n.__N||n.__}function En(e,t){var r=yc(mi++,3);!Oe.__s&&qC(r.__H,t)&&(r.__=e,r.u=t,ye.__H.__h.push(r))}function jo(e){return Ho=5,_r(function(){return{current:e}},[])}function _r(e,t){var r=yc(mi++,7);return qC(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Rt(e,t){return Ho=8,_r(function(){return e},t)}function d2(e){var t=ye.context[e.__c],r=yc(mi++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ye)),t.props.value):e.__}function p2(){for(var e;e=LC.shift();)if(e.__P&&e.__H)try{var t,r;(0,Ue.default)(t=e.__H.__h).call(t,ic),(0,Ue.default)(r=e.__H.__h).call(r,Jp),e.__H.__h=[]}catch(n){e.__H.__h=[],Oe.__e(n,e.__v)}}function f2(e){var t,r=function(){clearTimeout(n),nC&&cancelAnimationFrame(t),(0,er.default)(e)},n=(0,er.default)(r,100);nC&&(t=requestAnimationFrame(r))}function ic(e){var t=ye,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ye=t}function Jp(e){var t=ye;e.__c=e.__(),ye=t}function qC(e,t){return!e||e.length!==t.length||(0,pc.default)(t).call(t,function(r,n){return r!==e[n]})}function UC(e,t){return typeof t=="function"?t(e):t}function m2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hp(){throw new Error("setTimeout has not been defined")}function Vp(){throw new Error("clearTimeout has not been defined")}function FC(e){if(Kt===er.default)return(0,er.default)(e,0);if((Kt===Hp||!Kt)&&er.default)return Kt=er.default,(0,er.default)(e,0);try{return Kt(e,0)}catch(t){try{return Kt.call(null,e,0)}catch(r){return Kt.call(this,e,0)}}}function h2(e){if(Yt===clearTimeout)return clearTimeout(e);if((Yt===Vp||!Yt)&&clearTimeout)return Yt=clearTimeout,clearTimeout(e);try{return Yt(e)}catch(t){try{return Yt.call(null,e)}catch(r){return Yt.call(this,e)}}}function g2(){!di||!Yr||(di=!1,Yr.length?br=(0,vc.default)(Yr).call(Yr,br):oc=-1,br.length&&jC())}function jC(){if(!di){var e=FC(g2);di=!0;for(var t=br.length;t;){for(Yr=br,br=[];++oc<t;)Yr&&Yr[oc].run();oc=-1,t=br.length}Yr=null,di=!1,h2(e)}}function BC(e,t){this.fun=e,this.array=t}function Sr(){}function b2(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 _2(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 E2(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 HC(e){return(0,of.default)(e).call(e)}function A2(e,t){return(e=t.exec(e))?e[0]:e}function ie(e,t,r){return e.replace(t,r)}function $p(e,t){return(0,wr.default)(e).call(e,t)}function $e(e,t){return e.charCodeAt(t)|0}function Vo(e,t,r){return(0,af.default)(e).call(e,t,r)}function Qt(e){return e.length}function uf(e){return e.length}function ec(e,t){return t.push(e),e}function C2(e,t){return(0,Jo.default)(e).call(e,t).join("")}function wc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:_c,column:hi,length:a,return:""}}function Mo(e,t){return I2(wc("",null,null,"",null,null,0),e,{length:-e.length},t)}function k2(){return Re}function x2(){return Re=pt>0?$e(yi,--pt):0,hi--,Re===10&&(hi=1,_c--),Re}function Et(){return Re=pt<VC?$e(yi,pt++):0,hi++,Re===10&&(hi=1,_c++),Re}function rr(){return $e(yi,pt)}function ac(){return pt}function Qo(e,t){return Vo(yi,e,t)}function $o(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 $C(e){return _c=hi=1,VC=Qt(yi=e),pt=0,[]}function WC(e){return yi="",e}function sc(e){return HC(Qo(pt-1,Wp(e===91?e+2:e===40?e+1:e)))}function T2(e){for(;(Re=rr())&&Re<33;)Et();return $o(e)>2||$o(Re)>3?"":" "}function P2(e,t){for(;--t&&Et()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return Qo(e,ac()+(t<6&&rr()==32&&Et()==32))}function Wp(e){for(;Et();)switch(Re){case e:return pt;case 34:case 39:e!==34&&e!==39&&Wp(Re);break;case 40:e===41&&Wp(e);break;case 92:Et();break}return pt}function O2(e,t){for(;Et()&&e+Re!==57&&!(e+Re===84&&rr()===47););return"/*"+Qo(t,pt-1)+"*"+bc(e===47?e:Et())}function R2(e){for(;!$o(rr());)Et();return Qo(e,pt)}function N2(e){return WC(cc("",null,null,null,[""],e=$C(e),0,[0],e))}function cc(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,v=1,b=1,y=1,w=0,E="",C=i,T=o,k=n,A=E;b;)switch(m=w,w=Et()){case 40:if(m!=108&&$e(A,u-1)==58){$p(A+=ie(sc(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=sc(w);break;case 9:case 10:case 13:case 32:A+=T2(m);break;case 92:A+=P2(ac()-1,7);continue;case 47:switch(rr()){case 42:case 47:ec(D2(O2(Et(),ac()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=Qt(A)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:f>0&&Qt(A)-u&&ec(f>32?oC(A+";",n,r,u-1):oC(ie(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(ec(k=iC(A,t,r,l,d,i,s,E,C=[],T=[],u),o),w===123)if(d===0)cc(A,t,k,k,C,o,u,s,T);else switch(p===99&&$e(A,3)===110?100:p){case 100:case 109:case 115:cc(e,k,k,n&&ec(iC(e,k,k,0,0,i,s,E,i,C=[],u),T),i,T,u,s,n?C:T);break;default:cc(A,k,k,k,[""],T,0,s,T)}}l=d=f=0,v=y=1,E=A="",u=a;break;case 58:u=1+Qt(A),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&x2()==125)continue}switch(A+=bc(w),w*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(Qt(A)-1)*y,y=1;break;case 64:rr()===45&&(A+=sc(Et())),p=rr(),d=u=Qt(E=A+=R2(ac())),w++;break;case 45:m===45&&Qt(A)==2&&(v=0)}}return o}function iC(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=uf(p),m=0,v=0,b=0;m<n;++m)for(var y=0,w=Vo(e,u+1,u=S2(v=a[m])),E=e;y<f;++y)(E=HC(v>0?p[y]+" "+w:ie(w,/&\f/g,p[y])))&&(c[b++]=E);return wc(e,t,r,i===0?cf:s,c,l,d)}function D2(e,t,r){return wc(e,t,r,sf,bc(k2()),Vo(e,2,-2),0)}function oC(e,t,r,n){return wc(e,t,r,lf,Vo(e,0,n),Vo(e,n+1,-1),n)}function pi(e,t){for(var r="",n=uf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function L2(e,t,r,n){switch(e.type){case w2:case lf:return e.return=e.return||e.value;case sf:return"";case JC:return e.return=e.value+"{"+pi(e.children,n)+"}";case cf:e.value=e.props.join(",")}return Qt(r=pi(e.children,n))?e.return=e.value+"{"+r+"}":""}function q2(e){var t=uf(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 U2(e){return function(t){t.root||(t=t.return)&&e(t)}}function KC(e,t){switch(E2(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+mc+e+tt+e+e;case 6828:case 4268:return Z+e+tt+e+e;case 6165:return Z+e+tt+"flex-"+e+e;case 5187:return Z+e+ie(e,/(\w+).+(:[^]+)/,Z+"box-$1$2"+tt+"flex-$1$2")+e;case 5443:return Z+e+tt+"flex-item-"+ie(e,/flex-|-self/,"")+e;case 4675:return Z+e+tt+"flex-line-pack"+ie(e,/align-content|flex-|-self/,"")+e;case 5548:return Z+e+tt+ie(e,"shrink","negative")+e;case 5292:return Z+e+tt+ie(e,"basis","preferred-size")+e;case 6060:return Z+"box-"+ie(e,"-grow","")+Z+e+tt+ie(e,"grow","positive")+e;case 4554:return Z+ie(e,/([^-])(transform)/g,"$1"+Z+"$2")+e;case 6187:return ie(ie(ie(e,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),e,"")+e;case 5495:case 3959:return ie(e,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return ie(ie(e,/(.+:)(flex-)?(.*)/,Z+"box-pack:$3"+tt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+e+e;case 4095:case 3583:case 4068:case 2532:return ie(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(Qt(e)-1-t>6)switch($e(e,t+1)){case 109:if($e(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+mc+($e(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$p(e,"stretch")?KC(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($e(e,t+1)!==115)break;case 6444:switch($e(e,Qt(e)-3-(~$p(e,"!important")&&10))){case 107:return ie(e,":",":"+Z)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+($e(e,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+tt+"$2box$3")+e}break;case 5936:switch($e(e,t+11)){case 114:return Z+e+tt+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+tt+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+tt+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+tt+e+e}return e}function QC(){if(cC)return tc.exports;cC=1;let e=QC();return tc.exports={default:e},tc.exports.default=e,tc.exports}function Wo(e,t,r){var n,i="";return(0,Ue.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function Q2(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 Z2(e){var t=(0,NC.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function zo(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 Xt={name:i.name,styles:i.styles,next:Xt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Xt={name:a.name,styles:a.styles,next:Xt},a=a.next;var s=o.styles+";";return s}return rH(e,t,r)}case"function":{if(e!==void 0){var c=Xt,l=r(e);return Xt=c,zo(e,t,l)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function rH(e,t,r){var n="";if((0,Go.default)(r))for(var i=0;i<r.length;i++)n+=zo(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]+"}":lC(s)&&(n+=qp(o)+":"+uC(o,s)+";")}else if((0,Go.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)lC(a[c])&&(n+=qp(o)+":"+uC(o,a[c])+";");else{var l=zo(e,t,a);switch(o){case"animation":case"animationName":{n+=qp(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function Qr(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="";Xt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=zo(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=zo(r,t,e[s]),n){var c=o;i+=c[s]}dC.lastIndex=0;for(var l="",d;(d=dC.exec(i))!==null;)l+="-"+d[1];var u=Q2(i)+l;return{name:u,styles:i,next:Xt}}function U(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Qr(t)}function fH(e,t,r){var n=[],i=Wo(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:--gH,__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 q.vnode&&q.vnode(l),l}function Xo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=tr(e());return En(()=>{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 D5(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 ck(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=D5(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function L5(e){let t=()=>ck(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function M5(s){var c=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=c,a=Qe(c,["elementTag","src","children","handleExposure","className","imgStyle"]);let l=U5(()=>{t&&n()});return e==="Image"?_("div",{className:i,style:{borderRadius:"8px"},children:Ze("img",B(P({},a),{ref:l,src:t!=null?t:"",style:P({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):_("div",B(P({},a),{ref:l,className:i,children:r}))}function F5(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?Ze(i.type,B(P({},i.props),{style:B(P({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Ze(e.type,B(P({},e.props),{style:B(P({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function H5(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 IC(e,t,r){return Ic.call(t,"css")?_(mf,rk(e,t),r):_(e,t,r)}function Y5(e,t,r){return Ic.call(t,"css")?_(mf,rk(e,t),r):_(e,t,r)}function Xp({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?_(He,{children:t[s]},o):null}return _(He,{children:i},o)})})}function Z5({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=tr(!1);return a?null:_("div",{style:P({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 r3({children:e,style:t}){return _("div",{style:`${e3.styles} ${t}`,children:[e,_("svg",{style:`${t3.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 v3(e,t){return We(e,0)^45?(((t<<2^We(e,0))<<2^We(e,1))<<2^We(e,2))<<2^We(e,3):0}function Sk(e){return(0,of.default)(e).call(e)}function y3(e,t){return(e=t.exec(e))?e[0]:e}function te(e,t,r){return e.replace(t,r)}function Zp(e,t){return(0,wr.default)(e).call(e,t)}function We(e,t){return e.charCodeAt(t)|0}function Ko(e,t,r){return(0,af.default)(e).call(e,t,r)}function Zt(e){return e.length}function bf(e){return e.length}function nc(e,t){return t.push(e),e}function b3(e,t){return(0,Jo.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:xc,column:gi,length:a,return:""}}function Fo(e,t){return g3(Tc("",null,null,"",null,null,0),e,{length:-e.length},t)}function _3(){return Ne}function w3(){return Ne=ft>0?We(_i,--ft):0,gi--,Ne===10&&(gi=1,xc--),Ne}function At(){return Ne=ft<Ik?We(_i,ft++):0,gi++,Ne===10&&(gi=1,xc++),Ne}function nr(){return We(_i,ft)}function lc(){return ft}function Zo(e,t){return Ko(_i,e,t)}function Yo(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 Ek(e){return xc=gi=1,Ik=Zt(_i=e),ft=0,[]}function Ak(e){return _i="",e}function uc(e){return Sk(Zo(ft-1,ef(e===91?e+2:e===40?e+1:e)))}function S3(e){for(;(Ne=nr())&&Ne<33;)At();return Yo(e)>2||Yo(Ne)>3?"":" "}function I3(e,t){for(;--t&&At()&&!(Ne<48||Ne>102||Ne>57&&Ne<65||Ne>70&&Ne<97););return Zo(e,lc()+(t<6&&nr()==32&&At()==32))}function ef(e){for(;At();)switch(Ne){case e:return ft;case 34:case 39:e!==34&&e!==39&&ef(Ne);break;case 40:e===41&&ef(e);break;case 92:At();break}return ft}function E3(e,t){for(;At()&&e+Ne!==57&&!(e+Ne===84&&nr()===47););return"/*"+Zo(t,ft-1)+"*"+kc(e===47?e:At())}function A3(e){for(;!Yo(nr());)At();return Zo(e,ft)}function C3(e){return Ak(dc("",null,null,null,[""],e=Ek(e),0,[0],e))}function dc(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,v=1,b=1,y=1,w=0,E="",C=i,T=o,k=n,A=E;b;)switch(m=w,w=At()){case 40:if(m!=108&&We(A,u-1)==58){Zp(A+=te(uc(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=uc(w);break;case 9:case 10:case 13:case 32:A+=S3(m);break;case 92:A+=I3(lc()-1,7);continue;case 47:switch(nr()){case 42:case 47:nc(k3(E3(At(),lc()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=Zt(A)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:y==-1&&(A=te(A,/\f/g,"")),f>0&&Zt(A)-u&&nc(f>32?AC(A+";",n,r,u-1):AC(te(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(nc(k=EC(A,t,r,l,d,i,s,E,C=[],T=[],u),o),w===123)if(d===0)dc(A,t,k,k,C,o,u,s,T);else switch(p===99&&We(A,3)===110?100:p){case 100:case 108:case 109:case 115:dc(e,k,k,n&&nc(EC(e,k,k,0,0,i,s,E,i,C=[],u),T),i,T,u,s,n?C:T);break;default:dc(A,k,k,k,[""],T,0,s,T)}}l=d=f=0,v=y=1,E=A="",u=a;break;case 58:u=1+Zt(A),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&w3()==125)continue}switch(A+=kc(w),w*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(Zt(A)-1)*y,y=1;break;case 64:nr()===45&&(A+=uc(At())),p=nr(),d=u=Zt(E=A+=A3(lc())),w++;break;case 45:m===45&&Zt(A)==2&&(v=0)}}return o}function EC(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=bf(p),m=0,v=0,b=0;m<n;++m)for(var y=0,w=Ko(e,u+1,u=h3(v=a[m])),E=e;y<f;++y)(E=Sk(v>0?p[y]+" "+w:te(w,/&\f/g,p[y])))&&(c[b++]=E);return Tc(e,t,r,i===0?vf:s,c,l,d)}function k3(e,t,r){return Tc(e,t,r,_k,kc(_3()),Ko(e,2,-2),0)}function AC(e,t,r,n){return Tc(e,t,r,yf,Ko(e,0,n),Ko(e,n+1,-1),n)}function fi(e,t){for(var r="",n=bf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function x3(e,t,r,n){switch(e.type){case m3:if(e.children.length)break;case f3:case yf:return e.return=e.return||e.value;case _k:return"";case wk:return e.return=e.value+"{"+fi(e.children,n)+"}";case vf:e.value=e.props.join(",")}return Zt(r=fi(e.children,n))?e.return=e.value+"{"+r+"}":""}function T3(e){var t=bf(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 P3(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ck(e,t){switch(v3(e,t)){case 5103:return ee+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+gc+e+rt+e+e;case 6828:case 4268:return ee+e+rt+e+e;case 6165:return ee+e+rt+"flex-"+e+e;case 5187:return ee+e+te(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+rt+"flex-$1$2")+e;case 5443:return ee+e+rt+"flex-item-"+te(e,/flex-|-self/,"")+e;case 4675:return ee+e+rt+"flex-line-pack"+te(e,/align-content|flex-|-self/,"")+e;case 5548:return ee+e+rt+te(e,"shrink","negative")+e;case 5292:return ee+e+rt+te(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+te(e,"-grow","")+ee+e+rt+te(e,"grow","positive")+e;case 4554:return ee+te(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return te(te(te(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return te(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return te(te(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4095:case 3583:case 4068:case 2532:return te(e,/(.+)-inline(.+)/,ee+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Zt(e)-1-t>6)switch(We(e,t+1)){case 109:if(We(e,t+4)!==45)break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+gc+(We(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zp(e,"stretch")?Ck(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(We(e,t+1)!==115)break;case 6444:switch(We(e,Zt(e)-3-(~Zp(e,"!important")&&10))){case 107:return te(e,":",":"+ee)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(We(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+rt+"$2box$3")+e}break;case 5936:switch(We(e,t+11)){case 114:return ee+e+rt+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+rt+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+rt+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+rt+e+e}return e}function kC(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Bp(e,t,r){var n=[],i=Wo(e,n,r);return n.length<2?r:i+t(n)}function PC(e){if(e==="top"){let t=0;kk.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${xC}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${xC}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+TC)})}else if(e==="center"){let t=0;xk.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+TC)})}}function An(){let e=!1,t=null,r=0,n=new Set,i=a=>g(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:c}=yield Bo.acquire(),l=c.contentDocument;if(l)t=l.createElement("div"),t.id="loading-root",l.body.appendChild(t),Fr(_(W3,{}),t);else throw new Error("Iframe document is not available.")}catch(c){console.error("[LoadingManager] Failed to show loading:",c),r=0,e=!1,Bo.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&&(Fr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Bo.release()))};return{show:i,hide:o,get isLoading(){return e}}}var tf,RC,Ue,vc,pc,er,fc,Go,rf,wr,Jo,NC,DC,nf,of,af,RZ,Gp,mi,ye,Lp,YA,Ho,LC,Oe,QA,XA,ZA,eC,tC,rC,nC,MC,xe,Kt,Yt,br,di,Yr,oc,v2,Me,y2,GC,tt,mc,Z,sf,cf,lf,w2,JC,S2,bc,I2,_c,hi,VC,pt,Re,yi,M2,F2,j2,aC,B2,G2,J2,H2,V2,zC,$2,sC,W2,z2,K2,YC,tc,cC,Y2,df,Sc,X2,eH,tH,XC,lC,qp,uC,dC,Xt,nH,ZC,ek,pC,Ic,pf,tk,ff,Ec,iH,oH,aH,sH,cH,zp,Kp,rk,lH,mf,uH,fC,dH,pH,mH,hH,Up,mC,Mp,Fp,gH,jp,vH,yH,bH,_H,wH,SH,IH,hC,EH,AH,CH,gC,kH,xH,TH,vC,PH,OH,RH,yC,NH,DH,LH,qH,UH,MH,FH,jH,BH,GH,JH,bC,HH,VH,$H,WH,zH,KH,YH,QH,XH,ZH,e5,_C,t5,r5,n5,i5,o5,a5,s5,c5,l5,u5,d5,p5,f5,m5,h5,g5,v5,y5,b5,_5,w5,S5,I5,E5,A5,C5,k5,x5,T5,P5,O5,R5,nk,ik,ok,Yp,N5,ak,sk,hc,Bo,wC,q5,Ac,U5,lk,uk,dk,j5,B5,G5,Qp,J5,pk,fk,Cc,hf,bi,SC,Kr,mk,In,V5,$5,W5,z5,K5,rc,hk,gf,Ee,Q5,X5,e3,t3,Bt,n3,i3,gk,vk,yk,bk,Xr,o3,a3,s3,c3,l3,u3,d3,p3,rt,gc,ee,_k,vf,yf,f3,wk,m3,h3,kc,g3,xc,gi,Ik,ft,Ne,_i,O3,R3,N3,CC,D3,L3,q3,U3,M3,F3,j3,B3,G3,J3,H3,V3,xC,TC,kk,xk,Ir,OC,$3,W3,NZ,ir=x(()=>{"use strict";zn();tf=se(Sb(),1),RC=se(Rb(),1),Ue=se(Vb(),1),vc=se(a_(),1),pc=se(h_(),1),er=se(N_(),1);Es();Es();fc=se(vw(),1),Go=se(Ew(),1),rf=se(jI(),1),wr=se(YI(),1),Jo=se(o0(),1),NC=se(p0(),1),DC=se(TE(),1),nf=se(JE(),1),of=se(aA(),1),af=se(vA(),1);Op();Op();RZ=se(DA(),1),Gp=se(KA(),1),Ho=0,LC=[],Oe=q,QA=Oe.__b,XA=Oe.__r,ZA=Oe.diffed,eC=Oe.__c,tC=Oe.unmount,rC=Oe.__;Oe.__b=function(e){ye=null,QA&&QA(e)},Oe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),rC&&rC(e,t)},Oe.__r=function(e){var t,r,n;XA&&XA(e),mi=0;var i=(ye=e.__c).__H;i&&(Lp===ye?(i.__h=[],ye.__h=[],(0,Ue.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Ue.default)(r=i.__h).call(r,ic),(0,Ue.default)(n=i.__h).call(n,Jp),i.__h=[],mi=0)),Lp=ye},Oe.diffed=function(e){var t;ZA&&ZA(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(LC.push(r)!==1&&YA===Oe.requestAnimationFrame||((YA=Oe.requestAnimationFrame)||f2)(p2)),(0,Ue.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Lp=ye=null},Oe.__c=function(e,t){(0,pc.default)(t).call(t,function(r){try{var n,i;(0,Ue.default)(n=r.__h).call(n,ic),r.__h=(0,tf.default)(i=r.__h).call(i,function(o){return!o.__||Jp(o)})}catch(o){(0,pc.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Oe.__e(o,r.__v)}}),eC&&eC(e,t)},Oe.unmount=function(e){var t;tC&&tC(e);var r,n=e.__c;n&&n.__H&&((0,Ue.default)(t=n.__H.__).call(t,function(i){try{ic(i)}catch(o){r=o}}),n.__H=void 0,r&&Oe.__e(r,n.__v))};nC=typeof requestAnimationFrame=="function";MC={exports:{}},xe=MC.exports={};(function(){try{typeof er.default=="function"?Kt=er.default:Kt=Hp}catch(e){Kt=Hp}try{typeof clearTimeout=="function"?Yt=clearTimeout:Yt=Vp}catch(e){Yt=Vp}})();br=[],di=!1,oc=-1;xe.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];br.push(new BC(e,t)),br.length===1&&!di&&FC(jC)};BC.prototype.run=function(){this.fun.apply(null,this.array)};xe.title="browser";xe.browser=!0;xe.env={};xe.argv=[];xe.version="";xe.versions={};xe.on=Sr;xe.addListener=Sr;xe.once=Sr;xe.off=Sr;xe.removeListener=Sr;xe.removeAllListeners=Sr;xe.emit=Sr;xe.prependListener=Sr;xe.prependOnceListener=Sr;xe.listeners=function(e){return[]};xe.binding=function(e){throw new Error("process.binding is not supported")};xe.cwd=function(){return"/"};xe.chdir=function(e){throw new Error("process.chdir is not supported")};xe.umask=function(){return 0};v2=MC.exports,Me=m2(v2),y2=fc.default||void 0||self;GC=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,Ue.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(_2(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=b2(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Ue.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}(),tt="-ms-",mc="-moz-",Z="-webkit-",sf="comm",cf="rule",lf="decl",w2="@import",JC="@keyframes",S2=Math.abs,bc=String.fromCharCode,I2=nf.default;_c=1,hi=1,VC=0,pt=0,Re=0,yi="";M2=function(e,t,r){for(var n=0,i=0;n=i,i=rr(),n===38&&i===12&&(t[r]=1),!$o(i);)Et();return Qo(e,pt)},F2=function(e,t){var r=-1,n=44;do switch($o(n)){case 0:n===38&&rr()===12&&(t[r]=1),e[r]+=M2(pt-1,t,r);break;case 2:e[r]+=sc(n);break;case 4:if(n===44){e[++r]=rr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=bc(n)}while(n=Et());return e},j2=function(e,t){return WC(F2($C(e),t))},aC=new rf.default,B2=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&&!aC.get(r))&&!n){aC.set(e,!0);for(var i=[],o=j2(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]}}},G2=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},J2="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",H2=function(e){var t;return e.type==="comm"&&(0,wr.default)(t=e.children).call(t,J2)>-1},V2=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(H2(c))return;break}}(0,Ue.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".')})}}}},zC=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},$2=function(e,t){for(var r=e-1;r>=0;r--)if(!zC(t[r]))return!0;return!1},sC=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},W2=function(e,t,r){zC(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."),sC(e)):$2(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),sC(e)))};z2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case lf:e.return=KC(e.value,e.length);break;case JC:return pi([Mo(e,{value:ie(e.value,"@","@"+Z)})],n);case cf:if(e.length)return C2(e.props,function(i){switch(A2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pi([Mo(e,{props:[ie(i,/:(read-\w+)/,":"+mc+"$1")]})],n);case"::placeholder":return pi([Mo(e,{props:[ie(i,/:(plac\w+)/,":"+Z+"input-$1")]}),Mo(e,{props:[ie(i,/:(plac\w+)/,":"+mc+"$1")]}),Mo(e,{props:[ie(i,/:(plac\w+)/,tt+"input-$1")]})],n)}return""})}},K2=[z2],YC=function(e){var t=e.key;if(Me.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,Ue.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,wr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||K2;if(Me.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,Ue.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(m)});var s,c=[B2,G2];Me.env.NODE_ENV!=="production"&&c.push(V2({get compat(){return f.compat}}),W2);{var l,d=[L2,Me.env.NODE_ENV!=="production"?function(m){m.root||(m.return?l.insert(m.return):m.value&&m.type!==sf&&l.insert(m.value+"{}"))}:U2(function(m){l.insert(m)})],u=q2((0,vc.default)(c).call(c,n,d)),p=function(m){return pi(N2(m),u)};s=function(m,v,b,y){l=b,Me.env.NODE_ENV!=="production"&&(0,Jo.default)(v)!==void 0&&(l={insert:function(w){b.insert(w+(0,Jo.default)(v))}}),p(m?m+"{"+v.styles+"}":v.styles),y&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new GC({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},tc={exports:{}};QC();Y2=!0;df=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||Y2===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Sc=function(e,t,r){df(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)}};X2={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};eH=/[A-Z]|^ms/g,tH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,XC=function(e){return e.charCodeAt(1)===45},lC=function(e){return e!=null&&typeof e!="boolean"},qp=Z2(function(e){return XC(e)?e:e.replace(eH,"-$&").toLowerCase()}),uC=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(tH,function(r,n,i){return Xt={name:n,styles:i,next:Xt},n})}return X2[e]!==1&&!XC(e)&&typeof t=="number"&&t!==0?t+"px":t};dC=/label:\s*([^\s;{]+)\s*(;|$)/g;nH=function(e){return e()},ZC=xd?xd:!1,ek=ZC||nH,pC=ZC||ii,Ic={}.hasOwnProperty,pf=fn(typeof HTMLElement<"u"?YC({key:"css"}):null);Me.env.NODE_ENV!=="production"&&(pf.displayName="EmotionCacheContext");tk=pf.Provider,ff=function(e){return Pd(function(t,r){var n=ai(pf);return e(t,n,r)})},Ec=fn({});Me.env.NODE_ENV!=="production"&&(Ec.displayName="EmotionThemeContext");iH=function(e){var t=e.split(".");return t[t.length-1]},oH=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 iH(t[1])},aH=new DC.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),sH=function(e){return e.replace(/\$/g,"-")},cH=function(e){if(e)for(var t=e.split(`
|
|
24
|
+
`),r=0;r<t.length;r++){var n=oH(t[r]);if(n){if(aH.has(n))break;if(/^[A-Z]/.test(n))return sH(n)}}},zp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Kp="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",rk=function(e,t){var r,n;if(Me.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,wr.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)Ic.call(t,o)&&(i[o]=t[o]);if(i[zp]=e,Me.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,wr.default)(n=t.css.name).call(n,"-")===-1)){var a=cH(new Error().stack);a&&(i[Kp]=a)}return i},lH=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return df(t,r,n),ek(function(){return Sc(t,r,n)}),null},mf=ff(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[zp],a=[i],s="";typeof e.className=="string"?s=Wo(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var c=Qr(a,void 0,ai(Ec));if(Me.env.NODE_ENV!=="production"&&(0,wr.default)(n=c.name).call(n,"-")===-1){var l=e[Kp];l&&(c=Qr([c,"label:"+l+";"]))}s+=t.key+"-"+c.name;var d={};for(var u in e)Ic.call(e,u)&&u!=="css"&&u!==zp&&(Me.env.NODE_ENV==="production"||u!==Kp)&&(d[u]=e[u]);return d.ref=r,d.className=s,Ze(He,null,Ze(lH,{cache:t,serialized:c,isStringTag:typeof o=="string"}),Ze(o,d))});Me.env.NODE_ENV!=="production"&&(mf.displayName="EmotionCssPropInternal");uH={version:"11.10.5"},fC=!1,dH=ff(function(e,t){Me.env.NODE_ENV!=="production"&&!fC&&(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?"),fC=!0);var r=e.styles,n=Qr([r],void 0,ai(Ec)),i=oi();return pC(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]),pC(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Sc(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});Me.env.NODE_ENV!=="production"&&(dH.displayName="EmotionGlobal");pH=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,Go.default)(o))a=e(o);else{Me.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};mH=function(e){var t=e.cache,r=e.serializedArr;return ek(function(){for(var n=0;n<r.length;n++)Sc(t,r[n],!1)}),null},hH=ff(function(e,t){var r=!1,n=[],i=function(){if(r&&Me.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=Qr(l,t.registered);return n.push(u),df(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Me.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 fH(t.registered,i,pH(l))},a={css:i,cx:o,theme:ai(Ec)},s=e.children(a);return r=!0,Ze(He,null,Ze(mH,{cache:t,serializedArr:n}),s)});Me.env.NODE_ENV!=="production"&&(hH.displayName="EmotionClassNames");Me.env.NODE_ENV!=="production"&&(Up=!0,mC=typeof jest<"u"||typeof vi<"u",Up&&!mC&&(Mp=typeof fc.default<"u"?fc.default:Up?window:y2,Fp="__EMOTION_REACT_"+uH.version.split(".")[0]+"__",Mp[Fp]&&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."),Mp[Fp]=!0));gH=0;jp={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"transparent",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"rgb(26, 26, 26)",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.1)",display:"block",margin:"0 auto"},centerDrawer:{backgroundColor:"transparent",minWidth:"320px",maxWidth:"90vw",maxHeight:"90vh",width:"auto",position:"relative",display:"block",margin:"0 auto",overflowY:"auto"}},vH=U`
|
|
25
25
|
width: 100%;
|
|
26
26
|
overflow: auto;
|
|
27
27
|
margin: 0 auto;
|
|
28
|
-
`,
|
|
28
|
+
`,yH=`
|
|
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
|
-
`,dH=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,c]=tr(!1),[l,d]=tr(null),[u,p]=tr(!1),f=Fo(null),m=Fo(null),v=Fo(!1);Sn(()=>{if(s&&f.current){let O=f.current.ownerDocument,F=O.createElement("style");F.innerHTML=uH,O.head.appendChild(F);let G={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(F)&&O.head.removeChild(F),O.body.style.overflow=G.overflow,O.body.style.position=G.position,O.body.style.width=G.width}}},[s]),Sn(()=>{t?!s&&!v.current&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(v.current=!0,d("leave"),p(!1))},[t]);let b=Rt(O=>{O.target===m.current&&(l==="leave"?(d(null),c(!1),v.current=!1,n&&n()):l==="enter"&&(d(null),p(!0)))},[l,n]),y=Rt(()=>{s&&!v.current&&(v.current=!0,d("leave"),p(!1))},[s]),w=Rt(O=>{r||(O.preventDefault(),O.stopPropagation(),y())},[y]),E=Rt(()=>{!v.current&&!s&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),C=Rt(()=>s&&!v.current,[s]);if(Sn(()=>{if(a){let O={show:E,hide:y,isOpen:C};typeof a=="function"?a(O):a&&(a.current=O)}},[E,y,C,a]),!s)return null;let T=o==="center",k=B(P({},Fp.drawerBackdrop),{alignItems:T?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),A={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"},J=T?B(P({},Fp.centerDrawer),{pointerEvents:"auto"}):B(P({},Fp.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!l&&!T&&(J.transform="translateY(100%)");let le=l?T?l==="leave"?"fadeOut":l==="enter"?"fadeIn":"":`drawer-${l}`:"",N=l?`backdrop-${l}`:"";return _("div",{ref:f,style:k,children:[_("div",{style:A,className:N,onClick:w}),_("div",{ref:m,style:B(P({},J),{opacity:T&&l===null&&!u?0:1}),className:`${T&&l==="leave"?"fadeOut":le} ${i}`,onAnimationEnd:b,onClick:O=>O.stopPropagation(),children:_("div",{style:lH.styles,children:e})})]})},pH=Td(dH);fH={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"},mH={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},hH={instead:"Instead of watching ads",introduct:"Use {{coin}}Jolicoin to unlock for better experience",tips:"Get {{coin}} for free",login:"Register & Unlock with Jolicoin",noWatchAds:"No, watch ads",noThanks:"No thanks",rewardTips:"Congrats! You have received {{coin}} Jolicoin! Start unlocking now!"},uC={jolicoin:fH,joligem:mH,loginGuide:hH},gH={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"},vH={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"},yH={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"},dC={jolicoin:gH,joligem:vH,loginGuide:yH},bH={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"},_H={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"},wH={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!"},pC={jolicoin:bH,joligem:_H,loginGuide:wH},SH={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"},IH={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"},EH={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},fC={jolicoin:SH,joligem:IH,loginGuide:EH},AH={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"},CH={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"},kH={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!"},xH={jolicoin:AH,joligem:CH,loginGuide:kH},TH={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"},PH={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"},OH={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!"},RH={jolicoin:TH,joligem:PH,loginGuide:OH},NH={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"},DH={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"},LH={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!"},mC={jolicoin:NH,joligem:DH,loginGuide:LH},qH={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"},UH={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},MH={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!"},FH={jolicoin:qH,joligem:UH,loginGuide:MH},jH={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"},BH={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"},GH={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"},JH={jolicoin:jH,joligem:BH,loginGuide:GH},HH={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"},VH={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},$H={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!"},hC={jolicoin:HH,joligem:VH,loginGuide:$H},WH={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"},zH={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"},KH={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!"},YH={jolicoin:WH,joligem:zH,loginGuide:KH},QH={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"},XH={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"},ZH={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"},e5={jolicoin:QH,joligem:XH,loginGuide:ZH},t5={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"},r5={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},n5={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!"},i5={jolicoin:t5,joligem:r5,loginGuide:n5},o5={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"},a5={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},s5={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 !"},c5={jolicoin:o5,joligem:a5,loginGuide:s5},l5={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"},u5={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"},d5={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!"},p5={jolicoin:l5,joligem:u5,loginGuide:d5},f5={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"},m5={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"},h5={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!"},g5={jolicoin:f5,joligem:m5,loginGuide:h5},v5={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"},y5={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"},b5={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!"},_5={jolicoin:v5,joligem:y5,loginGuide:b5},w5={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"},S5={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"},I5={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!"},E5={jolicoin:w5,joligem:S5,loginGuide:I5},XC={en:{translations:uC},en_GB:{translations:uC},zh:{translations:dC},"zh-Hans":{translations:dC},"zh-Hant":{translations:e5},id:{translations:pC},in:{translations:pC},ms:{translations:fC},my:{translations:fC},th:{translations:xH},vi:{translations:RH},fil:{translations:mC},tl:{translations:mC},es:{translations:FH},ja:{translations:JH},pt:{translations:hC},pt_PT:{translations:hC},ko:{translations:YH},de:{translations:i5},fr:{translations:c5},hi:{translations:p5},ru:{translations:g5},bn:{translations:_5},tr:{translations:E5}},ZC=dn(void 0),ek=({definition:e,children:t})=>{let r={translations:e};return _(ZC.Provider,{value:r,children:t})},Kp=null,A5={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"},tk=e=>{Kp=e},rk=()=>{var e;if(typeof Kp!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Kp();return(e=A5[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};mc=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=VC({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=k5(this.persistentIframe);let t=this.persistentIframe.contentDocument;t&&["--status-bar-height","--navigation-bar-height"].forEach(o=>{let a=document.documentElement.style.getPropertyValue(o);a&&t.body.style.setProperty(o,a)}),(i=this.iframeLoadResolver)==null||i.call(this),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}acquire(){return g(this,null,function*(){if(this.create(),yield this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(nk(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"))}},jo=new mc(99999998,"auto"),gC=new mc(99999999,"none"),x5=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=Qo(),c={container:q`
|
|
72
|
+
`,bH=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,c]=tr(!1),[l,d]=tr(null),[u,p]=tr(!1),f=jo(null),m=jo(null),v=jo(!1);En(()=>{if(s&&f.current){let O=f.current.ownerDocument,F=O.createElement("style");F.innerHTML=yH,O.head.appendChild(F);let G={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(F)&&O.head.removeChild(F),O.body.style.overflow=G.overflow,O.body.style.position=G.position,O.body.style.width=G.width}}},[s]),En(()=>{t?!s&&!v.current&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(v.current=!0,d("leave"),p(!1))},[t]);let b=Rt(O=>{O.target===m.current&&(l==="leave"?(d(null),c(!1),v.current=!1,n&&n()):l==="enter"&&(d(null),p(!0)))},[l,n]),y=Rt(()=>{s&&!v.current&&(v.current=!0,d("leave"),p(!1))},[s]),w=Rt(O=>{r||(O.preventDefault(),O.stopPropagation(),y())},[y]),E=Rt(()=>{!v.current&&!s&&(c(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),C=Rt(()=>s&&!v.current,[s]);if(En(()=>{if(a){let O={show:E,hide:y,isOpen:C};typeof a=="function"?a(O):a&&(a.current=O)}},[E,y,C,a]),!s)return null;let T=o==="center",k=B(P({},jp.drawerBackdrop),{alignItems:T?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),A={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"},J=T?B(P({},jp.centerDrawer),{pointerEvents:"auto"}):B(P({},jp.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!l&&!T&&(J.transform="translateY(100%)");let ue=l?T?l==="leave"?"fadeOut":l==="enter"?"fadeIn":"":`drawer-${l}`:"",N=l?`backdrop-${l}`:"";return _("div",{ref:f,style:k,children:[_("div",{style:A,className:N,onClick:w}),_("div",{ref:m,style:B(P({},J),{opacity:T&&l===null&&!u?0:1}),className:`${T&&l==="leave"?"fadeOut":ue} ${i}`,onAnimationEnd:b,onClick:O=>O.stopPropagation(),children:_("div",{style:vH.styles,children:e})})]})},_H=Pd(bH);wH={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"},SH={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},IH={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!"},hC={jolicoin:wH,joligem:SH,loginGuide:IH},EH={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"},AH={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"},CH={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"},gC={jolicoin:EH,joligem:AH,loginGuide:CH},kH={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"},xH={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"},TH={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!"},vC={jolicoin:kH,joligem:xH,loginGuide:TH},PH={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"},OH={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"},RH={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!"},yC={jolicoin:PH,joligem:OH,loginGuide:RH},NH={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"},DH={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"},LH={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!"},qH={jolicoin:NH,joligem:DH,loginGuide:LH},UH={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"},MH={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"},FH={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!"},jH={jolicoin:UH,joligem:MH,loginGuide:FH},BH={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"},GH={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"},JH={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!"},bC={jolicoin:BH,joligem:GH,loginGuide:JH},HH={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"},VH={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},$H={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!"},WH={jolicoin:HH,joligem:VH,loginGuide:$H},zH={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"},KH={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"},YH={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"},QH={jolicoin:zH,joligem:KH,loginGuide:YH},XH={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"},ZH={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},e5={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!"},_C={jolicoin:XH,joligem:ZH,loginGuide:e5},t5={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"Jolicoin\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"Jolicoin\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"Jolicoin \uC0AC\uC6A9",payAndUnlock:"\uACB0\uC81C \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uAD1C\uCC2E\uC2B5\uB2C8\uB2E4",balance:"\uC794\uC561",coinUsed:"\uC0AC\uC6A9\uB41C Jolicoin",unlockSuccess:"\uC7A0\uAE08 \uD574\uC81C \uC131\uACF5",unlockFailed:"\uC7A0\uAE08 \uD574\uC81C \uC2E4\uD328",unlockFailedNotLogin:"\uC7A0\uAE08 \uD574\uC81C\uB97C \uC644\uB8CC\uD558\uB824\uBA74 \uB85C\uADF8\uC778\uD558\uC138\uC694",unlockFailedPaying:"\uACB0\uC81C\uAC00 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uC791\uC5C5\uC744 \uBC18\uBCF5\uD558\uC9C0 \uB9C8\uC138\uC694",unlockFailedProductIdNotFound:"\uC0C1\uD488\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedProductInvalid:"\uC0C1\uD488 \uC815\uBCF4\uB97C \uAC00\uC838\uC624\uB294\uB370 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uAC70\uB098 \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedLaunch:"\uACB0\uC81C\uB97C \uC2DC\uC791\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFailedTransaction:"\uACB0\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFaileVerify:"\uC8FC\uBB38 \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uC694\uAE08\uC774 \uCCAD\uAD6C\uB41C \uACBD\uC6B0 \uACE0\uAC1D \uC9C0\uC6D0\uD300\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694",transactionPending:"\uACB0\uC81C \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uACB0\uC81C \uC11C\uBE44\uC2A4 \uC81C\uACF5\uC5C5\uCCB4\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694"},r5={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"},n5={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!"},i5={jolicoin:t5,joligem:r5,loginGuide:n5},o5={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"},a5={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"},s5={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"},c5={jolicoin:o5,joligem:a5,loginGuide:s5},l5={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"},u5={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},d5={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!"},p5={jolicoin:l5,joligem:u5,loginGuide:d5},f5={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"},m5={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},h5={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 !"},g5={jolicoin:f5,joligem:m5,loginGuide:h5},v5={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",payAndUnlock:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",balance:"\u0936\u0947\u0937 \u0930\u093E\u0936\u093F",coinUsed:"\u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u0917\u092F\u093E Jolicoin",unlockSuccess:"\u0905\u0928\u0932\u0949\u0915 \u0938\u092B\u0932",unlockFailed:"\u0905\u0928\u0932\u0949\u0915 \u0935\u093F\u092B\u0932",unlockFailedNotLogin:"\u0905\u0928\u0932\u0949\u0915 \u092A\u0942\u0930\u093E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0932\u0949\u0917\u093F\u0928 \u0915\u0930\u0947\u0902",unlockFailedPaying:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u092A\u094D\u0930\u0917\u0924\u093F \u092A\u0930 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0911\u092A\u0930\u0947\u0936\u0928 \u0926\u094B\u0939\u0930\u093E\u090F\u0902 \u0928\u0939\u0940\u0902",unlockFailedProductIdNotFound:"\u0909\u0924\u094D\u092A\u093E\u0926 \u0915\u0940 \u0938\u092E\u092F \u0938\u0940\u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B \u0917\u0908 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedProductInvalid:"\u0909\u0924\u094D\u092A\u093E\u0926 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedLaunch:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0936\u0941\u0930\u0942 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\u0964 \u0915\u0943\u092A\u092F\u093E \u092C\u093E\u0926 \u092E\u0947\u0902 \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFailedTransaction:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFaileVerify:"\u0911\u0930\u094D\u0921\u0930 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0935\u093F\u092B\u0932\u0964 \u092F\u0926\u093F \u0906\u092A\u0938\u0947 \u0936\u0941\u0932\u094D\u0915 \u0932\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948, \u0924\u094B \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902",transactionPending:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0941\u0937\u094D\u091F\u093F\u0915\u0930\u0923 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0915\u0947 \u0932\u093F\u090F \u0905\u092A\u0928\u0947 \u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u094D\u0930\u0926\u093E\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902"},y5={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"},b5={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!"},_5={jolicoin:v5,joligem:y5,loginGuide:b5},w5={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"},S5={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"},I5={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!"},E5={jolicoin:w5,joligem:S5,loginGuide:I5},A5={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"},C5={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!"},x5={jolicoin:A5,joligem:C5,loginGuide:k5},T5={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"},P5={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"},O5={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!"},R5={jolicoin:T5,joligem:P5,loginGuide:O5},nk={en:{translations:hC},en_GB:{translations:hC},zh:{translations:gC},"zh-Hans":{translations:gC},"zh-Hant":{translations:c5},id:{translations:vC},in:{translations:vC},ms:{translations:yC},my:{translations:yC},th:{translations:qH},vi:{translations:jH},fil:{translations:bC},tl:{translations:bC},es:{translations:WH},ja:{translations:QH},pt:{translations:_C},pt_PT:{translations:_C},ko:{translations:i5},de:{translations:p5},fr:{translations:g5},hi:{translations:_5},ru:{translations:E5},bn:{translations:x5},tr:{translations:R5}},ik=fn(void 0),ok=({definition:e,children:t})=>{let r={translations:e};return _(ik.Provider,{value:r,children:t})},Yp=null,N5={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"},ak=e=>{Yp=e},sk=()=>{var e;if(typeof Yp!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Yp();return(e=N5[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};hc=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=YC({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=L5(this.persistentIframe);let t=this.persistentIframe.contentDocument;t&&["--status-bar-height","--navigation-bar-height"].forEach(o=>{let a=document.documentElement.style.getPropertyValue(o);a&&t.body.style.setProperty(o,a)}),(i=this.iframeLoadResolver)==null||i.call(this),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}acquire(){return g(this,null,function*(){if(this.create(),yield this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(ck(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"))}},Bo=new hc(99999998,"auto"),wC=new hc(99999999,"none"),q5=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=Xo(),c={container:U`
|
|
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:U`
|
|
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:U`
|
|
86
86
|
padding: ${i};
|
|
87
87
|
flex: 1;
|
|
88
88
|
overflow: auto;
|
|
89
|
-
`,footer:
|
|
89
|
+
`,footer:U`
|
|
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:U`
|
|
96
96
|
background: none;
|
|
97
97
|
border: none;
|
|
98
98
|
cursor: pointer;
|
|
99
99
|
font-size: 20px;
|
|
100
|
-
`,button:
|
|
100
|
+
`,button:U`
|
|
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:U`
|
|
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))})]})},Ac=e=>{let t=!1,r=sk(),n=nk[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)),Fr(_(tk,{value:a,children:_(ok,{definition:n,children:_(_H,{ref:v=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:l,preventCloseOnBackdropClick:(m=e.preventCloseOnBackdropClick)!=null?m:!1,backdropColor:e.backdropColor,children:_(q5,B(P({},e),{onClose:u}))})})}),s)}function l(){var p,f;if(t){if(t=!1,o==null?void 0:o.contentDocument){let m=o.contentDocument.getElementById(i);m&&((p=m.parentNode)==null||p.removeChild(m))}Bo.release(),(f=e.onClose)==null||f.call(e)}}function d(){return g(this,null,function*(){let p=yield Bo.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.")}}},U5=(e,t={threshold:.6})=>{let r=jo(null),n=jo(!1),i=Rt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return En(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};lk=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=Qe(a,["children","fluid","className","style"]);let s=P({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return _("div",B(P({className:r,style:s},i),{children:e}))},uk=s=>{var c=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=c,a=Qe(c,["children","gutter","justify","align","className","style"]);let l={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=P({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:l[r],alignItems:d[n]},o);if(t){let f=Array.isArray(t)?t[0]:t,m=Array.isArray(t)?t[1]:0;f>0&&(u.marginLeft=`-${f/2}px`,u.marginRight=`-${f/2}px`),m>0&&(u.marginTop=`-${m/2}px`,u.marginBottom=`-${m/2}px`)}let p=t?F5(e,t):e;return _("div",B(P({className:i,style:u},a),{children:p}))};dk=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=Qe(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=P({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},l);if(t!==void 0){let m=t/24*100;f.flex=`0 0 ${m}%`,f.maxWidth=`${m}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),_("div",B(P({className:c,style:f},d),{children:e}))},j5=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,c;let o=Jr(l=>{l.preventDefault(),i==null||i(e)},[i,e]),a=Jr(()=>{},[e,t]);return _(dk,{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:_(M5,{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)},B5=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=Qe(s,["list","routeMode","layerName","onGameClick","orientation"]);return _(lk,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:_(uk,{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=>_(j5,{orientation:i,game:c,routeMode:t,layerName:r,onGameClick:n},c.gameId))})})},G5=Td(B5),Qp=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(Qp||{}),J5=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=tr(null),s=Rt(u=>{i==null||i({type:u.type===Qp.Quit?"quit":"dismiss"})},[i]),c=Rt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),l=Xo();if(!t.length)return _(He,{});let d=Rt(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 En(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&Fr(_("div",{className:"recommend-panel",children:_("div",{className:"container",children:[_("p",{className:"title",children:r}),_("div",{className:"games-container",children:_(G5,{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===Qp.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})},pk=e=>{let t=Ac({title:e.title,content:_(J5,{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},fk="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=",Cc="https://fe-oss.jolibox.com/static/coin/jolicoin.png",hf="https://fe-oss.jolibox.com/static/coin/gem.png";bi=()=>{let e=d2(ik);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=H5(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}},SC=({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})}),Kr={coinInfo:U`
|
|
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:U`
|
|
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:U`
|
|
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:U`
|
|
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:U`
|
|
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:U`
|
|
267
267
|
width: 16px;
|
|
268
268
|
height: 16px;
|
|
269
|
-
`,gemIcon:
|
|
269
|
+
`,gemIcon:U`
|
|
270
270
|
width: 25px;
|
|
271
271
|
height: 25px;
|
|
272
|
-
`,autoExpandLabel:
|
|
272
|
+
`,autoExpandLabel:U`
|
|
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:U`
|
|
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
|
+
`},mk=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Cc,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:c}=bi(),l=14,d=_r(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return _("div",{style:Kr.coinInfo.styles,children:[!i&&_("div",{style:Kr.coinAmount.styles,children:[_(SC,{text:c("jolicoin.price"),initialFontSize:l,styles:Kr.coinLabelContainer.styles}),_("div",{style:Kr.coinValue.styles,children:[_("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?Kr.gemIcon.styles:Kr.coinIcon.styles}),_("span",{children:e})]})]}),!o&&_("div",{style:Kr.coinAmountBalance.styles,children:_(SC,{text:c(d)+":\xA0"+s,initialFontSize:l,styles:Kr.coinValueText.styles})})]})},In={card:U`
|
|
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:U`
|
|
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:U`
|
|
308
308
|
display: flex;
|
|
309
309
|
align-items: center;
|
|
310
310
|
margin-bottom: 8px;
|
|
311
|
-
`,coinIcon:
|
|
311
|
+
`,coinIcon:U`
|
|
312
312
|
width: 21px;
|
|
313
313
|
height: 21px;
|
|
314
314
|
margin-right: 4px;
|
|
315
|
-
`,gemIcon:
|
|
315
|
+
`,gemIcon:U`
|
|
316
316
|
width: 25px;
|
|
317
317
|
height: 25px;
|
|
318
318
|
margin-right: 4px;
|
|
319
|
-
`,coinValue:
|
|
319
|
+
`,coinValue:U`
|
|
320
320
|
font-size: 20px;
|
|
321
321
|
font-weight: bold;
|
|
322
322
|
color: white;
|
|
323
|
-
`,price:
|
|
323
|
+
`,price:U`
|
|
324
324
|
font-size: 16px;
|
|
325
325
|
color: #C093FF;
|
|
326
326
|
font-weight: bold;
|
|
327
|
-
`},
|
|
327
|
+
`},V5=U`
|
|
328
328
|
box-sizing: border-box;
|
|
329
329
|
width: 100%;
|
|
330
330
|
aspect-ratio: 1/1;
|
|
331
|
-
|
|
331
|
+
`,$5=U`
|
|
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
|
+
`,W5=e=>_("div",{style:V5.styles,children:_("div",{style:$5.styles,children:_("div",{style:`${In.card.styles} ${e.option.id===e.selectedId?In.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[_("div",{style:In.coinContainer.styles,children:[_("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?In.gemIcon.styles:In.coinIcon.styles}),_("span",{style:In.coinValue.styles,children:e.option.coins.toLocaleString()})]}),_("div",{style:In.price.styles,children:e.option.price})]})})}),z5=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=Cc})=>{let o=Xo(),a=s=>{r==null||r(s)};return _(lk,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:_(uk,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>_(dk,{span:o==="landscape"?4:8,children:_(W5,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},K5=Td(z5);rc={toggleSwitch:U`
|
|
338
338
|
position: relative;
|
|
339
339
|
display: inline-block;
|
|
340
340
|
width: 33px;
|
|
341
341
|
height: 18px;
|
|
342
|
-
`,toggleInput:
|
|
342
|
+
`,toggleInput:U`
|
|
343
343
|
opacity: 0;
|
|
344
344
|
width: 15px;
|
|
345
345
|
height: 15px;
|
|
346
|
-
`,toggleSlider:
|
|
346
|
+
`,toggleSlider:U`
|
|
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:U`
|
|
369
369
|
background-color: #6a3de8;
|
|
370
370
|
|
|
371
371
|
&:before {
|
|
372
372
|
transform: translateX(18px);
|
|
373
373
|
}
|
|
374
|
-
`},
|
|
374
|
+
`},hk=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>Y5("label",{css:rc.toggleSwitch,children:[IC("input",{css:rc.toggleInput,type:"checkbox",checked:e,onChange:t}),IC("span",{css:[rc.toggleSlider,e&&rc.toggleSliderActive]})]}),gf=()=>_("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)"})})})]}),Ee={modal:U`
|
|
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:U`
|
|
387
387
|
display: flex;
|
|
388
388
|
justify-content: space-between;
|
|
389
389
|
align-items: center;
|
|
390
|
-
`,closeButton:
|
|
390
|
+
`,closeButton:U`
|
|
391
391
|
background: none;
|
|
392
392
|
border: none;
|
|
393
393
|
cursor: pointer;
|
|
394
394
|
color: white;
|
|
395
395
|
padding: 0px;
|
|
396
|
-
`,content:
|
|
396
|
+
`,content:U`
|
|
397
397
|
display: flex;
|
|
398
398
|
flex-direction: column;
|
|
399
399
|
gap: 8px;
|
|
400
400
|
padding-right: 8px;
|
|
401
|
-
`,title:
|
|
401
|
+
`,title:U`
|
|
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:U`
|
|
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:U`
|
|
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:U`
|
|
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:U`
|
|
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:U`
|
|
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:U`
|
|
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
|
+
`},Q5=({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]=tr(r),u=Xo(),{t:p}=bi(),f=()=>{i(l)},m=_r(()=>n==="JOLI_GEM"?hf:Cc,[n]),v=_r(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),b=_r(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),y=Rt(()=>{d(!l),a(!l)},[l]);return _("div",{style:`${Ee.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[_("div",{style:Ee.header.styles,children:[_(mk,{unlockNeedsAmount:e,balanceAmount:t,coinImage:m,currency:n}),_("button",{style:Ee.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:_(gf,{})})]}),_("div",{style:Ee.content.styles,children:[_("h2",{style:Ee.title.styles,children:p(v)}),!r&&_("div",{style:Ee.autoDeductOption.styles,children:[_("span",{style:U`
|
|
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)}),_(hk,{enableAutoDeduct:l,toggleEnableAutoDeduct:y})]}),_("section",{style:`${Ee.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${Ee.confirmButton.styles} ${Ee.buttonFlex.styles}`,onClick:f,children:p(s)}),_("button",{style:`${Ee.cancelButton.styles} ${Ee.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(c)})]})]})]})},X5=({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]=tr(r),{t:f}=bi(),[m,v]=tr(()=>{var k,A;return((k=n.find(J=>J.defaultSelected))==null?void 0:k.productId)||((A=n==null?void 0:n[0])==null?void 0:A.productId)}),b=Xo(),y=()=>{o(m)},w=Rt(k=>{console.log(k),v(k),c(k)},[]),E=Rt(()=>{p(!u),s(!u)},[u]),C=_r(()=>i==="JOLI_GEM"?hf:Cc,[i]),T=_r(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),_("div",{style:Ee.modal.styles,children:[_("div",{style:Ee.header.styles,children:[_(mk,{unlockNeedsAmount:e,balanceAmount:t,coinImage:C,currency:i}),_("button",{style:Ee.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:_(gf,{})})]}),_("div",{style:Ee.content.styles,children:[_("div",{style:U`
|
|
468
468
|
padding: 16px 0px;
|
|
469
|
-
`.styles,children:_(
|
|
469
|
+
`.styles,children:_(K5,{options:n.map(k=>({id:k.productId,coins:k.quantity,price:k.totalAmountStr})),coinImageSrc:C,selectedId:m,currency:i,onSelect:k=>w(k.id)})}),!r&&_("div",{style:Ee.autoDeductOption.styles,children:[_("span",{style:U`
|
|
470
470
|
font-size: 12px;
|
|
471
471
|
font-weight: 400;
|
|
472
472
|
line-height: 1.2;
|
|
473
473
|
color: #979797;
|
|
474
|
-
`.styles,children:f(T)}),_(
|
|
474
|
+
`.styles,children:f(T)}),_(hk,{enableAutoDeduct:u,toggleEnableAutoDeduct:E})]}),_("section",{style:`${Ee.buttonContainer.styles} ${b==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${Ee.confirmButton.styles} ${Ee.buttonFlex.styles}`,onClick:y,children:f(l)}),_("button",{style:`${Ee.cancelButton.styles} ${Ee.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};e3=U`
|
|
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
|
+
`,t3=U`
|
|
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
|
-
`;Bt=B(P({},
|
|
498
|
+
`;Bt=B(P({},Ee),{header:U`
|
|
499
499
|
display: flex;
|
|
500
500
|
justify-content: flex-end;
|
|
501
501
|
align-items: center;
|
|
502
|
-
`,introduct:
|
|
502
|
+
`,introduct:U`
|
|
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:U`
|
|
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:U`
|
|
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:U`
|
|
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
|
-
`}),K5={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()},Y5=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:c}=gi(),l=K5[t];return _("div",{style:{paddingTop:"80px"},children:_("section",{style:`${Bt.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[_(V5,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),_("div",{style:Bt.header.styles,children:_("button",{style:`${Bt.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:_(hf,{})})}),_("div",{style:Bt.introduct.styles,children:[s?_("span",{style:Bt.introductSubTitle.styles,children:c("loginGuide.instead")}):null,_("span",{style:Bt.introductTitle.styles,children:_(Qp,{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:`${Bt.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:_(z5,{children:_(Qp,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:c("loginGuide.tips"),values:{coin:_(He,{children:[_("img",{src:l,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),_("button",{style:`${Bt.confirmButton.styles} ${Bt.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:`${Bt.cancelButton.styles} ${Bt.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:c(i)})]})})]})})},dk=e=>{let t=Ec({title:"",content:_(J5,{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},pk=e=>{let t=Ec({title:"",content:_(H5,{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},fk=e=>{let t=Ec({title:"",content:_(Y5,{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},mk=new Map,Xr=(e,t)=>{mk.set(e,t)};Xr(/^\{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"})})})]})})});Xr(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:ck;return _("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});Xr(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:mf,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:B(P({},n),{verticalAlign:"middle"})})});Q5=/^\{slot-i18n-(.+?)\}/,X5=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=gi(),i=n(e,t);return _("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};Xr(Q5,(e,t)=>{var n;let r=e[1];return r?_(X5,{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:""}))});Z5=/^\{slot-i18ntran-(.+?)\}/,e3=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=gi(),o=i(e),a=Object.entries(r).reduce((s,[c,l])=>(s[c]=l(t[c]),s),{});return _(Qp,{children:o||n,values:P(P({},t),a)})},t3={coin:e=>_(He,{children:[_("img",{src:ck,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};Xr(Z5,(e,t)=>{var n,i;let r=e[1];return r?_(e3,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:t3,fallbackText:`[${r}]`}):_("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});r3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Xr(/^\{slot-success\}/,(e,t)=>_("img",{src:r3,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));n3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Xr(/^\{slot-error\}/,(e,t)=>_("img",{src:n3,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));i3="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=";Xr(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=i3,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return _("img",{src:r,alt:"\u{1FA99}",style:B(P({},n),{verticalAlign:"middle"})})});tt="-ms-",hc="-moz-",ee="-webkit-",hk="comm",gf="rule",vf="decl",o3="@import",gk="@keyframes",a3="@layer",s3=Math.abs,Cc=String.fromCharCode,c3=rf.default;kc=1,mi=1,yk=0,mt=0,Ne=0,yi="";I3=function(e,t,r){for(var n=0,i=0;n=i,i=nr(),n===38&&i===12&&(t[r]=1),!Ko(i);)At();return Xo(e,mt)},E3=function(e,t){var r=-1,n=44;do switch(Ko(n)){case 0:n===38&&nr()===12&&(t[r]=1),e[r]+=I3(mt-1,t,r);break;case 2:e[r]+=lc(n);break;case 4:if(n===44){e[++r]=nr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Cc(n)}while(n=At());return e},A3=function(e,t){return _k(E3(bk(e),t))},wC=new tf.default,C3=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!wC.get(r))&&!n){wC.set(e,!0);for(var i=[],o=A3(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]}}},k3=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};x3=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case vf:e.return=wk(e.value,e.length);break;case gk:return di([Mo(e,{value:te(e.value,"@","@"+ee)})],n);case gf:if(e.length)return d3(e.props,function(i){switch(u3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return di([Mo(e,{props:[te(i,/:(read-\w+)/,":"+hc+"$1")]})],n);case"::placeholder":return di([Mo(e,{props:[te(i,/:(plac\w+)/,":"+ee+"input-$1")]}),Mo(e,{props:[te(i,/:(plac\w+)/,":"+hc+"$1")]}),Mo(e,{props:[te(i,/:(plac\w+)/,tt+"input-$1")]})],n)}return""})}},T3=[x3],P3=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Ue.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,wr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||T3,i={},o,a=[];o=e.container||document.head,(0,Ue.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(m)});var s,c=[C3,k3];{var l,d=[_3,S3(function(m){l.insert(m)})],u=w3((0,gc.default)(c).call(c,n,d)),p=function(m){return di(y3(m),u)};s=function(m,v,b,y){l=b,p(m?m+"{"+v.styles+"}":v.styles),y&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new UC({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};O3=function(e){var t=P3(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=Qr(s,t.registered,void 0);return wc(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=Qr(s,t.registered),d="animation-"+l.name;return SC(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=Qr(s,t.registered);SC(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return jp(t.registered,r,R3(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Ue.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,Bp.default)($o).call($o,null,t.registered),merge:(0,Bp.default)(jp).call(jp,null,t.registered,r)}},R3=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,Bo.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},N3=O3({key:"css"}),D3=N3.css,L3=(e,t)=>{var a;let r=P({color:"#FFF",display:"inline-block",width:"auto",minWidth:"fit-content",whiteSpace:"nowrap"},(a=t==null?void 0:t.customStyle)==null?void 0:a.span);if(!e.includes("{slot-"))return _("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 mk.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=D3`
|
|
552
|
+
`}),n3={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()},i3=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:c}=bi(),l=n3[t];return _("div",{style:{paddingTop:"80px"},children:_("section",{style:`${Bt.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[_(Z5,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),_("div",{style:Bt.header.styles,children:_("button",{style:`${Bt.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:_(gf,{})})}),_("div",{style:Bt.introduct.styles,children:[s?_("span",{style:Bt.introductSubTitle.styles,children:c("loginGuide.instead")}):null,_("span",{style:Bt.introductTitle.styles,children:_(Xp,{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:`${Bt.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:_(r3,{children:_(Xp,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:c("loginGuide.tips"),values:{coin:_(He,{children:[_("img",{src:l,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),_("button",{style:`${Bt.confirmButton.styles} ${Bt.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:`${Bt.cancelButton.styles} ${Bt.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:c(i)})]})})]})})},gk=e=>{let t=Ac({title:"",content:_(Q5,{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},vk=e=>{let t=Ac({title:"",content:_(X5,{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},yk=e=>{let t=Ac({title:"",content:_(i3,{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},bk=new Map,Xr=(e,t)=>{bk.set(e,t)};Xr(/^\{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"})})})]})})});Xr(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:fk;return _("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});Xr(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:hf,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:B(P({},n),{verticalAlign:"middle"})})});o3=/^\{slot-i18n-(.+?)\}/,a3=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=bi(),i=n(e,t);return _("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};Xr(o3,(e,t)=>{var n;let r=e[1];return r?_(a3,{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:""}))});s3=/^\{slot-i18ntran-(.+?)\}/,c3=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=bi(),o=i(e),a=Object.entries(r).reduce((s,[c,l])=>(s[c]=l(t[c]),s),{});return _(Xp,{children:o||n,values:P(P({},t),a)})},l3={coin:e=>_(He,{children:[_("img",{src:fk,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};Xr(s3,(e,t)=>{var n,i;let r=e[1];return r?_(c3,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:l3,fallbackText:`[${r}]`}):_("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});u3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Xr(/^\{slot-success\}/,(e,t)=>_("img",{src:u3,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));d3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Xr(/^\{slot-error\}/,(e,t)=>_("img",{src:d3,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));p3="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=";Xr(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=p3,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return _("img",{src:r,alt:"\u{1FA99}",style:B(P({},n),{verticalAlign:"middle"})})});rt="-ms-",gc="-moz-",ee="-webkit-",_k="comm",vf="rule",yf="decl",f3="@import",wk="@keyframes",m3="@layer",h3=Math.abs,kc=String.fromCharCode,g3=nf.default;xc=1,gi=1,Ik=0,ft=0,Ne=0,_i="";O3=function(e,t,r){for(var n=0,i=0;n=i,i=nr(),n===38&&i===12&&(t[r]=1),!Yo(i);)At();return Zo(e,ft)},R3=function(e,t){var r=-1,n=44;do switch(Yo(n)){case 0:n===38&&nr()===12&&(t[r]=1),e[r]+=O3(ft-1,t,r);break;case 2:e[r]+=uc(n);break;case 4:if(n===44){e[++r]=nr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=kc(n)}while(n=At());return e},N3=function(e,t){return Ak(R3(Ek(e),t))},CC=new rf.default,D3=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&&!CC.get(r))&&!n){CC.set(e,!0);for(var i=[],o=N3(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]}}},L3=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};q3=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case yf:e.return=Ck(e.value,e.length);break;case wk:return fi([Fo(e,{value:te(e.value,"@","@"+ee)})],n);case vf:if(e.length)return b3(e.props,function(i){switch(y3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fi([Fo(e,{props:[te(i,/:(read-\w+)/,":"+gc+"$1")]})],n);case"::placeholder":return fi([Fo(e,{props:[te(i,/:(plac\w+)/,":"+ee+"input-$1")]}),Fo(e,{props:[te(i,/:(plac\w+)/,":"+gc+"$1")]}),Fo(e,{props:[te(i,/:(plac\w+)/,rt+"input-$1")]})],n)}return""})}},U3=[q3],M3=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Ue.default)(Array.prototype).call(r,function(m){var v=m.getAttribute("data-emotion");(0,wr.default)(v).call(v," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||U3,i={},o,a=[];o=e.container||document.head,(0,Ue.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(m)});var s,c=[D3,L3];{var l,d=[x3,P3(function(m){l.insert(m)})],u=T3((0,vc.default)(c).call(c,n,d)),p=function(m){return fi(C3(m),u)};s=function(m,v,b,y){l=b,p(m?m+"{"+v.styles+"}":v.styles),y&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new GC({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};F3=function(e){var t=M3(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=Qr(s,t.registered,void 0);return Sc(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=Qr(s,t.registered),d="animation-"+l.name;return kC(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=Qr(s,t.registered);kC(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,j3(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Ue.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,Gp.default)(Wo).call(Wo,null,t.registered),merge:(0,Gp.default)(Bp).call(Bp,null,t.registered,r)}},j3=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,Go.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},B3=F3({key:"css"}),G3=B3.css,J3=(e,t)=>{var a;let r=P({color:"#FFF",display:"inline-block",width:"auto",minWidth:"fit-content",whiteSpace:"nowrap"},(a=t==null?void 0:t.customStyle)==null?void 0:a.span);if(!e.includes("{slot-"))return _("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 bk.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=G3`
|
|
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})},H3=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=tr(!0);En(()=>{let d=setTimeout(()=>{s(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(d)},[r,n]);let c=_r(()=>{let d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,d)},[]),l=U`
|
|
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})},V3=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),xC=Math.max(20,V3),TC=12,kk=[],xk=[];Ir=(e,t)=>g(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield wC.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"?kk:xk;s.push(o);let c=J3(e,t),l=sk(),d=nk[l].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),PC(a),wC.release()}setTimeout(()=>PC(a),0),Fr(_(tk,{value:n,children:_(ok,{definition:d,children:_(H3,{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)}),OC={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"}},$3=`
|
|
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
|
-
`,F3=()=>_("div",{style:CC.container,children:[_("style",{children:M3}),_("div",{style:CC.spinner})]});vZ=In()});function Ek(){return g(this,null,function*(){if(bf)return bf;let t=`${S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${S.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield Y(t);return bf=r,r})}function Ak(){return g(this,null,function*(){let e=new dt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(_f)return e.resolve(!0),e.promise;let t=yield Ek();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;_f=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};j("RecommendedGuide",P({eventType:z.View},o));let a=sk({games:r.games,title:n,buttons:i,onClose:s=>{var c;switch(_f=!1,s.type){case"quit":j("RecommendedGuide",{eventType:z.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":j("RecommendedGuide",P({eventType:z.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((c=s.data)!=null&&c.game){let l=s.data.game;j3(l),j("GameItem",{eventType:z.Click,gameId:l.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:j("RecommendedGuide",P({eventType:z.Hide},o)),e.resolve(!0);break}}});return e.promise})}var bf,j3,_f,Ck=x(()=>{"use strict";V();ue();R();ir();pt();_t();bf=null;Ek();j3=e=>{var a;let{data:t}=M("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()}`;M("openSchemaSync",{schema:o})},_f=!1});function G3(e){let t=P(P({},B3),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:C}=p();pe=document.createElement("div"),pe.id="jolibox-modal-overlay",pe.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;`,oe=document.createElement("div"),oe.id="jolibox-modal-container",oe.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 T=document.createElement("div");T.id="jolibox-modal-loading",T.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let k=document.createElement("style");k.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(k);let A=document.createElement("div");if(A.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",Nt=document.createElement("iframe"),Nt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${C};`,Nt.src=r,Nt.onload=()=>{T.parentNode&&T.parentNode.removeChild(T),Nt.style.opacity="1",v(),c==null||c(),_e.emit("onModalIframeLoaded",{url:r})},A.appendChild(Nt),A.appendChild(T),oe.appendChild(A),i){let J=document.createElement("div");J.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;",J.innerHTML="\u2715",J.onclick=y,oe.appendChild(J)}pe.appendChild(oe),document.body.appendChild(pe),pe.addEventListener("click",function(J){J.target===pe&&y()}),o&&b()}function v(){!pe||!oe||u||(pe.style.visibility="visible",a?requestAnimationFrame(()=>{pe&&(pe.style.opacity="1"),oe&&(oe.style.transform="translateY(0)"),u=!0}):(pe&&(pe.style.opacity="1"),oe&&(oe.style.transform="translateY(0)"),u=!0),M("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function b(){if(!oe)return;let w=T=>{l=T.touches[0].clientY},E=T=>{if(!u)return;d=T.touches[0].clientY;let k=d-l;k>0&&(oe&&(oe.style.transition="none",oe.style.transform=`translateY(${k}px)`),T.preventDefault())},C=()=>{!u||!oe||(oe.style.transition=a?"transform 0.3s ease":"none",d-l>80?y():oe.style.transform="translateY(0)")};oe.addEventListener("touchstart",w),oe.addEventListener("touchmove",E),oe.addEventListener("touchend",C)}function y(){!pe||!oe||!u||(a?(oe.style.transform="translateY(100%)",pe.style.opacity="0"):pe.style.visibility="hidden",u=!1,M("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{pe&&(pe.remove(),pe=null,oe=null,Nt=null,s==null||s(),_e.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:y}}function kk(){return window.joliboxUI=B(P({},window.joliboxUI),{createIframeModal:G3}),()=>{window.joliboxUI=void 0,pe&&pe.parentNode&&pe.parentNode.removeChild(pe),oe&&oe.parentNode&&oe.parentNode.removeChild(oe),Nt&&Nt.parentNode&&Nt.parentNode.removeChild(Nt),pe=null,oe=null,Nt=null}}var B3,pe,oe,Nt,xk=x(()=>{"use strict";ue();V();R();B3={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},pe=null,oe=null,Nt=null});var Dk,Pc,Sf,Oc,_i,Lk,wi,qk,Uk,Mk,bi,Tk,Tc,Pk,J3,Fk,If,Ok,jk,H3,Rk,wf,Bk,Nk,V3,Gk,Jk=x(()=>{Dk=-1,Pc=function(e){addEventListener("pageshow",function(t){t.persisted&&(Dk=t.timeStamp,e(t))},!0)},Sf=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Oc=function(){var e=Sf();return e&&e.activationStart||0},_i=function(e,t){var r=Sf(),n="navigate";return Dk>=0?n="back-forward-cache":r&&(document.prerendering||Oc()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},Lk=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(i){Promise.resolve().then(function(){t(i.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(i){}},wi=function(e,t,r,n){var i,o;return function(a){t.value>=0&&(a||n)&&((o=t.value-(i||0))||i===void 0)&&(i=t.value,t.delta=o,t.rating=function(s,c){return s>c[1]?"poor":s>c[0]?"needs-improvement":"good"}(t.value,r),e(t))}},qk=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},Uk=function(e){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&e()})},Mk=function(e){var t=!1;return function(){t||(e(),t=!0)}},bi=-1,Tk=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Tc=function(e){document.visibilityState==="hidden"&&bi>-1&&(bi=e.type==="visibilitychange"?e.timeStamp:0,J3())},Pk=function(){addEventListener("visibilitychange",Tc,!0),addEventListener("prerenderingchange",Tc,!0)},J3=function(){removeEventListener("visibilitychange",Tc,!0),removeEventListener("prerenderingchange",Tc,!0)},Fk=function(){return bi<0&&(bi=Tk(),Pk(),Pc(function(){setTimeout(function(){bi=Tk(),Pk()},0)})),{get firstHiddenTime(){return bi}}},If=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},Ok=[1800,3e3],jk=function(e,t){t=t||{},If(function(){var r,n=Fk(),i=_i("FCP"),o=Lk("paint",function(a){a.forEach(function(s){s.name==="first-contentful-paint"&&(o.disconnect(),s.startTime<n.firstHiddenTime&&(i.value=Math.max(s.startTime-Oc(),0),i.entries.push(s),r(!0)))})});o&&(r=wi(e,i,Ok,t.reportAllChanges),Pc(function(a){i=_i("FCP"),r=wi(e,i,Ok,t.reportAllChanges),qk(function(){i.value=performance.now()-a.timeStamp,r(!0)})}))})},H3=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=Mk(e),document.visibilityState==="hidden"?e():(r=t(e),Uk(e)),r},Rk=[2500,4e3],wf={},Bk=function(e,t){t=t||{},If(function(){var r,n=Fk(),i=_i("LCP"),o=function(c){t.reportAllChanges||(c=c.slice(-1)),c.forEach(function(l){l.startTime<n.firstHiddenTime&&(i.value=Math.max(l.startTime-Oc(),0),i.entries=[l],r())})},a=Lk("largest-contentful-paint",o);if(a){r=wi(e,i,Rk,t.reportAllChanges);var s=Mk(function(){wf[i.id]||(o(a.takeRecords()),a.disconnect(),wf[i.id]=!0,r(!0))});["keydown","click"].forEach(function(c){addEventListener(c,function(){return H3(s)},{once:!0,capture:!0})}),Uk(s),Pc(function(c){i=_i("LCP"),r=wi(e,i,Rk,t.reportAllChanges),qk(function(){i.value=performance.now()-c.timeStamp,wf[i.id]=!0,r(!0)})})}})},Nk=[800,1800],V3=function e(t){document.prerendering?If(function(){return e(t)}):document.readyState!=="complete"?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},Gk=function(e,t){t=t||{};var r=_i("TTFB"),n=wi(e,r,Nk,t.reportAllChanges);V3(function(){var i=Sf();i&&(r.value=Math.max(i.responseStart-Oc(),0),r.entries=[i],n(!0),Pc(function(){r=_i("TTFB",0),(n=wi(e,r,Nk,t.reportAllChanges))(!0)}))})}});var zk={};yh(zk,{config:()=>r4});function W3(){ln.on("isAdShowing",e=>{Dc=e,qr(Dc)&&S.mpType==="game"&&M("updateContainerConfigSync",{displayCapsuleButton:!Dc,webviewId:S.webviewId})})}function z3(){_e.on("onInterceptSystemExit",({intercept:e})=>{Vk=e})}function K3(){_e.on("onInterceptBackPress",({intercept:e})=>{$3=e}),be("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;Wk(t),_e.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function Y3(){_e.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),j("onDocumentReady",{start_timestamp:qc,timestamp:Date.now()})})}function Q3(){be("onI18nChanged",({language:e})=>{_e.emit("onI18nChanged",{i18n:e})})}function Hk(e){S.mpType==="game"&&at.start(e)}function X3(){be("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),_e.emit("LifecycleEvent.onReady",P({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),j("joliboxServiceReady",{start_timestamp:qc,timestamp:Date.now()}),Ae("onJoliboxHideLoading")||Hk(t),tk(()=>S.language)}),be("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;Wk(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)}),be("onJoliboxHideLoading",({duration:e})=>{Hk(e)})}function Z3(){let e=()=>{j("onBeforeExit",{timestamp:Date.now()}),Rc==null||Rc(),Nc==null||Nc(),at.close(Date.now()-qc)},t=()=>Dc||Vk;Pt.onDoExit(()=>g(this,null,function*(){return t()?!0:qr(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):Lc!=null&&Lc.canShowRecommended&&!$k&&(yield Ak())?!0:(e(),!1)})),Pt.onDoBackPress(()=>g(this,null,function*(){return!!t()}))}function e4(){jk(e=>{j("GameFCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),Bk(e=>{j("GameLCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),Gk(e=>{j("GameTTFB",{value:e.value,rating:e.rating,navigationType:e.navigationType})})}function t4(){return g(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield Y(e);t&&(Lc=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function r4(){qc=Date.now(),X3(),W3(),z3(),K3(),Z3(),Y3(),Q3(),t4(),e4(),Nc=kk(),Rc=Hg()}var Rc,Nc,qc,Dc,Lc,Vk,$3,$k,Wk,Kk=x(()=>{"use strict";ue();V();R();_t();Vg();is();Ck();pt();ir();xk();Jk();ts();Dc=!1,Lc=null,Vk=!1,$3=!1,$k=!1,Wk=e=>{qr(e)&&($k=e)};Pt.onReady(()=>{})});var Yk,n4,i4,o4,a4,Qk=x(()=>{"use strict";R();Je();ue();V();Yk=K(),n4="env",i4="getSystemInfoSync",o4=Q(i4,{implement:()=>{var r;let e=M("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}}}}),a4=Q(n4,{implement:()=>{var t;let e=M("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});Yk.registerCommand("API.getSystemInfoSync",o4);Yk.registerCommand("API.env",a4);D("env",{version:"1.0.0"});D("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var Xk=h(Ef=>{"use strict";R();Je();bt();ue();_t();V();var s4="exitGame",c4="onReady",l4="onJoliboxShow",u4="onJoliboxHide",Uc=K(),Mc=Bn(Ee),d4=W(s4,{paramsSchema:I.tuple(I.function(),I.boolean().optional().default(!1)),implement:(e,t=!1)=>g(Ef,null,function*(){Mc(e).call(Ef),qr(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&Bh("onRetentionResult",{shouldStay:t},S.from,!0),t||S.setDoExitDirectly(),yield me("exitAppAsync")})}),p4=Q(l4,{paramsSchema:I.tuple(I.function()),implement(e){let t=Mc(e);be("onJoliboxEnterForeground",()=>{t.call(this),ro.emit("visible",!0)})}}),f4=Q(u4,{paramsSchema:I.tuple(I.function()),implement(e){let t=Mc(e);be("onJoliboxEnterBackground",()=>{t.call(this),ro.emit("visible",!1)})}}),m4=Q(c4,{paramsSchema:I.tuple(I.function()),implement(e){let t=Mc(e);_e.on("LifecycleEvent.onReady",r=>{t(r)})}});Uc.registerCommand("LifecycleSDK.exit",d4);Uc.registerCommand("LifecycleSDK.onReady",m4);Uc.registerCommand("LifecycleSDK.onJoliboxShow",p4);Uc.registerCommand("LifecycleSDK.onJoliboxHide",f4);D("lifeCycle.exit",{version:"1.0.0"});D("lifeCycle.onReady",{version:"1.0.0"});D("lifeCycle.onJoliboxShow",{version:"1.0.0"});D("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function Zk(e){let t={};if(!sn(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 ex(e="GET"){if(e==="")return"POST";let t=e.toUpperCase();return["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"].includes(t)?t:"GET"}function tx(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function rx(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!sn(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 nx=x(()=>{"use strict";R()});var h4,g4,Af,Cf,ix,v4,y4,b4,ox=x(()=>{"use strict";Ur();bu();Je();nx();R();bt();V();h4=15,g4=qa("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),Af=0,Cf=[],ix=Bn(Ee),v4=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},y4=e=>{let t=new dt,r=()=>{};return Q("request",{paramsSchema:I.tuple(I.object({url:I.string(),method:I.string(),headers:I.object().optional(),data:I.or(I.object(),I.array()).optional(),query:I.object().optional(),dataType:I.string().default("json"),responseType:I.string().default("text"),enableCache:I.boolean().default(!1),appendHostCookie:I.boolean().default(!0),timeout:I.number().default(3e4),success:I.function(),fail:I.function()})),implement(i){let o=()=>g(this,null,function*(){var s,c,l;let a=ix(i.fail);try{if(Af+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,v=Zk((s=i.headers)!=null?s:{}),b=ex(i.method),y=tx(i.timeout),w=rx(i.url,b,d),E=ix(i.success),C=Object.assign({},i,{method:b,header:m?void 0:v,data:b==="GET"||b==="HEAD"?void 0:d,enableCache:f,query:(c=i.query)!=null?c:{},dataType:u,responseType:p,appendHostCookie:m});y&&(C.timeout=y);let T=g4(w,C);{let{response:k}=yield T,{code:A,data:J,message:le}=k;if(J&&typeof J=="object"&&"status"in J&&J.status!==200)throw xe({code:J.status||-1,msg:`request:fail status ${J.status}`});t.resolve({code:A!=null?A:"SUCCESS",data:J,message:le!=null?le:"request:ok"}),E({code:"SUCCESS",message:"request:ok",data:J})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Af-=1,(l=Cf.shift())==null||l()}});return Af>=h4?(r=()=>{v4(Cf,a=>a===o)},Cf.push(o)):o(),t.promise}})(e),{abort(){t.reject(xe({code:-1,msg:"request:fail abort"})),r()}}},b4=K();b4.registerCommand("HttpSDK.request",y4);D("request",{version:"1.0.0"})});var _4,w4,S4,kf,ax=x(()=>{"use strict";R();ue();Je();_4=Q("showKeyboard",{paramsSchema:I.tuple(I.object({defaultValue:I.string().optional().default(""),multiple:I.boolean().optional().default(!1),maxLength:I.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),M("showKeyboardSync",B(P({},e),{defaultValue:r,maxLength:t}))}});D("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"}});w4=Q("updateKeyboard",{paramsSchema:I.tuple(I.object({value:I.string()})),implement(e){M("updateKeyboardSync",e)}});D("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});S4=Q("hideKeyboard",{implement(){M("hideKeyboardSync")}});D("keyboard.hideKeyboard",{version:"1.0.0"});kf=K();kf.registerCommand("KeyboardSDK.showKeyboard",_4);kf.registerCommand("KeyboardSDK.updateKeyboard",w4);kf.registerCommand("KeyboardSDK.hideKeyboard",S4)});var lx=h(Si=>{"use strict";R();Je();_t();ue();V();var Zo=K(),Fc=null,xf=!1,sx=0,I4=200;function E4(e){on("cpUpdateScoreEvent",e,S.webviewId)}function cx(e){Fc=e,xf||(xf=!0,requestAnimationFrame(function t(){let r=Date.now();r-sx>=I4?(Fc!==null&&(E4(Fc),sx=r,Fc=null),xf=!1):requestAnimationFrame(t)}))}var A4=W("levelFinished",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),duration:I.number().optional(),rating:I.number().optional(),score:I.number().optional(),variation:I.string().optional()})),implement:e=>g(Si,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(at.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(at.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),cx({levelId:t,duration:r,rating:n,score:i}),yield Promise.all(a)})}),C4=W("gamePlayEnded",{paramsSchema:I.tuple(I.object({duration:I.number().optional(),rating:I.number().optional(),score:I.number(),variation:I.string().optional()})),implement:e=>g(Si,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(at.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(at.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),cx({duration:t,rating:r,score:n}),yield Promise.all(o)})}),k4=W("levelUpgrade",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),name:I.string().optional()})),implement:r=>g(Si,[r],function*({levelId:e,name:t}){let n=[];n.push(at.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(at.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),on("cpUpdateScoreEvent",{levelId:e},S.webviewId),yield Promise.all(n)})}),x4=W("levelStart",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number())})),implement:e=>g(Si,null,function*(){let{levelId:t}=e;yield at.tracker("LevelStart",{levelId:t})})}),T4=W("levelFailed",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),score:I.number().optional(),rating:I.number().optional(),duration:I.number().optional()})),implement:e=>g(Si,null,function*(){let{levelId:t,score:r,rating:n,duration:i}=e;yield at.tracker("LevelFailed",{levelId:t,score:r,rating:n,duration:i})})});Zo.registerCommand("TaskTrackerSDK.levelFinished",A4);Zo.registerCommand("TaskTrackerSDK.gamePlayEnded",C4);Zo.registerCommand("TaskTrackerSDK.levelUpgrade",k4);Zo.registerCommand("TaskTrackerSDK.levelStart",x4);Zo.registerCommand("TaskTrackerSDK.levelFailed",T4);D("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"}}});D("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});D("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}});D("TaskTrackerSDK.onLevelStart",{version:"1.3.8",properties:{params:{levelId:"1.3.8"}}});D("TaskTrackerSDK.onLevelFailed",{version:"1.3.8",properties:{params:{levelId:"1.3.8",score:"1.3.8",rating:"1.3.8",duration:"1.3.8"}}})});var Tf,Pf,Of,P4,ux,jc=x(()=>{"use strict";V();ue();Je();R();Ur();D("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"}});D("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0",isLogin:"1.0.0",isSubUser:"1.2.9"}});Tf=new Map;be("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i,appAccountToken:o})=>{let a=Tf.get(r);a&&(a.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i,appAccountToken:o}),Tf.delete(r))});Pf=(e,t=!1)=>g(void 0,null,function*(){var m,v,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=M("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw xe({code:-1,msg:"login failed"});let s=new dt;Tf.set(a,s);let c=yield s.promise,l=M("envSync"),d=(b=(v=l==null?void 0:l.data)==null?void 0:v.hostUserInfo)==null?void 0:b.isSubUser;S.onEnvConfigChanged({hostUserInfo:B(P({},c),{isSubUser:d})});let y=c,{extra:u,appAccountToken:p}=y,f=Qe(y,["extra","appAccountToken"]);return _e.emit("onLoginComplete",f),t?c:f}),Of=W("login",{paramsSchema:I.tuple(I.object({skipLogin:I.boolean().optional(),triggerFrom:I.string().optional()}).optional()),implement(e){return g(this,null,function*(){return yield Pf(e!=null?e:{})})}}),P4=W("checkSession",{implement(){return g(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}})}}),ux=K();ux.registerCommand("API.login",Of);ux.registerCommand("API.checkSession",P4)});var dx,px=x(()=>{"use strict";dx=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 En(e){return t=>g(this,null,function*(){var c;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield Mr(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=fx(i.data),a=dx(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 An(e){return()=>g(this,null,function*(){var i;let t=Date.now(),r=yield Mr(e),n=fx((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield wt(e,JSON.stringify(n))})}var fx,mx,hx,gx,vx,yx,bx,_x,wx,Sx,Ix,Ex,Ax,Cx,kx,ea=x(()=>{"use strict";to();px();fx=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};mx=En("joli_coin_use_modal_frequency"),hx=En("joli_coin_payment_frequency"),gx=En("joli_coin_unlogin_modal_frequency"),vx=En("joli_gem_use_modal_frequency"),yx=En("joli_gem_payment_frequency"),bx=En("joli_gem_unlogin_modal_frequency"),_x=En("subscription_frequency");wx=An("joli_coin_use_modal_frequency"),Sx=An("joli_coin_payment_frequency"),Ix=An("joli_coin_unlogin_modal_frequency"),Ex=An("joli_gem_use_modal_frequency"),Ax=An("joli_gem_payment_frequency"),Cx=An("joli_gem_unlogin_modal_frequency"),kx=An("subscription_frequency")});var Rf,Bc,Nf=x(()=>{"use strict";pt();Rf=Promise.resolve(),Bc=(e,t)=>g(void 0,null,function*(){Rf=Rf.then(()=>g(void 0,null,function*(){yield Y(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Rf})});var Gc,Jc,Gt,Hc,Cn,Jt,Er,Vc,$c,kn,Ii,O4,U,Ar,Cr,Be=x(()=>{"use strict";R();Gc="UNLOCK_OPTIONS_CHANGED",Jc="INVOKE_PAYMENT",Gt="ON_PAYMENT_RESULT",Hc="ON_USE_MODAL_EVENT",Cn="ON_USE_MODAL_RESULT",Jt="ON_USE_MODAL_FREQUENCY",Er="ON_USE_UNLOGIN_MODAL_EVENT",Vc="INVOKE_UNLOGIN_MODAL_EVENT",$c="INVOKE_SUBSCRIPTION_EVENT",kn="ON_USE_SUBSCRIPTION_RESULT",Ii=new Wt,O4=()=>({on:Ii.on.bind(Ii),off:Ii.off.bind(Ii),emit:Ii.emit.bind(Ii)}),U=O4(),Ar={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},joinMember:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},Cr={show:!0,minInterval:8*60*60*1e3}});function Ge(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=P(P({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var or=x(()=>{"use strict"});var Px=h(Df=>{"use strict";ea();Nf();Be();Be();ir();_t();R();or();var R4={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:mx,frequencyUpdater:wx,apiEndpointAutoDeduct:"/api/joli-coin/user-config"},JOLI_GEM:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"gem_unlock_popup_show",coinUnlock:"gem_unlock_click",adUnlock:"gem_ad_unlock_click"},frequencyChecker:vx,frequencyUpdater:Ex,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},xx=In(),Tx=Ge(U,Jt);Tx.getData();U.on(Hc,(e,t)=>g(Df,null,function*(){let r=t.currency,n=R4[r];if(e.includes("ADS-")){yield xx.show({duration:3e3});let c=yield Tx.getData(),{canShow:l,isFirst:d}=yield n.frequencyChecker(c.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,l,d),xx.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){U.emit(Cn,{useModalResult:"CONFIRM"});return}if(!l){U.emit(Cn,{useModalResult:"FAILED"});return}}j(n.trackEvents.popupShow,{eventType:z.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=dk({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{j(n.trackEvents.coinUnlock,{targetType:"game",eventType:z.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),U.emit(Cn,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:c})=>{c==="FAILED"&&j(n.trackEvents.adUnlock,{targetType:"game",eventType:z.Click,currency:r}),U.emit(Cn,{useModalResult:(c!=null?c:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:c=>g(Df,null,function*(){yield Bc(c,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function Ox(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return g(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return Ee(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var Rx=x(()=>{"use strict";bt()});var ta=x(()=>{"use strict"});var N4,Ei,Ct,D4,xn,Wc=x(()=>{"use strict";ta();R();V();pt();N4=()=>{let[e,t]=[Na,Da].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Ei,createPaymentInternalError:Ct}=N4(),D4=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",xn=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>g(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Ei(n,1001);return yield this.pay()});this.cancelOrder=t=>g(this,null,function*(){var n,i;let{response:r}=yield Y(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Ei((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(P({},this.generatePaymentContext()))),`${D4}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var qf,Nx,Dx=x(()=>{"use strict";pt();Wc();ta();qf=class extends xn{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>g(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return g(this,null,function*(){var n,i,o,a;try{let{response:s}=yield Y("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Ei((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),Ct((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},Nx=()=>{let e=new Map;return t=>g(void 0,null,function*(){let r=e.get(t);return r||(r=new qf(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var Lx,qx=x(()=>{"use strict";Lx={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 Uf,Ux,Mf,Ff,L4,jf,Mx=x(()=>{"use strict";pt();Wc();ta();ue();R();V();ir();qx();Uf=new Map;be("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Uf.get(t);if(o){if(r==="SUCCESS")o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&Ra(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Ct(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=Lx[r];a&&Ir(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Uf.delete(t)}});Ux=e=>g(void 0,null,function*(){var n,i;let t=new dt,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 Ct("orderUUID is null",1002);Uf.set(r,t)}catch(o){throw Ct((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Mf=class extends xn{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>g(this,null,function*(){return yield Ux({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return g(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},Ff=class extends xn{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>g(this,null,function*(){return yield Ux({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return g(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield Y("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw Ct("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"}})}},L4={android:Mf,ios:Ff},jf=()=>{let e=new Map;return t=>g(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=L4[S.platform];if(!s)throw Ct("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 Ei(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var Tn,Bf=x(()=>{"use strict";Rx();Dx();Mx();Tn=Ox();Tn.registerPaymentHandler("JOLI_COIN",Nx());Tn.registerPaymentHandler("JOLI_COIN_IAP",jf());Tn.registerPaymentHandler("JOLI_GEM_IAP",jf())});function Fx(n,i){return g(this,arguments,function*(e,t,r={}){let{storageKeyPrefix:o="joli_cache_"}=r,a=o+e,s=a+"_timestamp";try{let c=yield t(),l=Date.now();try{c!=null&&(yield wt(a,c),yield wt(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 zc(n,i){return g(this,arguments,function*(e,t,r={}){let{cacheDuration:o=-1,storageKeyPrefix:a="joli_cache_"}=r,s=a+e,c=s+"_timestamp",l=o===1/0||o===-1;try{let{data:d}=yield Mr(s),{data:u}=yield Mr(c);if(d&&u){let p=parseInt(u,10);if(l||Date.now()-p<o){console.log("[Cache] Using localStorage cached data for key:",e);let f=JSON.parse(d);return l||setTimeout(()=>g(this,null,function*(){try{console.log("[Cache] Background updating cache for key:",e);let m=yield t(),v=Date.now();yield wt(s,m),yield wt(c,v.toString()),console.log("[Cache] Background cache update completed for key:",e)}catch(m){console.warn("[Cache] Background cache update failed for key:",e,m)}}),0),f}else yield wt(s,null),yield wt(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 wt(s,d),yield wt(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 Gf=x(()=>{"use strict";to()});function q4(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=>!Yi(r.totalAmountStr))}var Zr,Jf,ar,Qc,Hf,Vf,Kc,Yc,jx,Xc,$f=x(()=>{"use strict";Bf();R();ue();pt();R();Gf();Zr=class Zr{execute(t,r){return g(this,null,function*(){var a,s,c;let{response:n}=yield Y(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(console.log("[PaymentService] get products info from server",t,n.data),!((a=n.data)!=null&&a.data))throw new Error("get products info failed");let i=n.data.data,o=(c=(s=i.paymentChoices)==null?void 0:s.filter(l=>typeof l.appStoreProductId=="string").map(l=>l.appStoreProductId))!=null?c:[];if(o.length>0){let l=yield this.getNativePriceData(o);l&&q4(i,l)}if(i.paymentChoices.length===0)throw new Error("paymentChoices is empty");return i})}getNativePriceData(t){return g(this,null,function*(){let r=t.sort().join(",");return zc(r,()=>g(this,null,function*(){try{let{data:n}=yield me("requestProductDetailsAsync",{appStoreProductIds:t});return n&&(Zr.nativePriceCache.set(r,n),Zr.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[PaymentService] Failed to fetch native product details:",n),n}}),{cacheDuration:Zr.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")}};Zr.nativePriceCache=new Map,Zr.NATIVE_PRICE_CACHE_DURATION=10*60*1e3,Zr.nativePriceCacheTimestamp=new Map;Jf=Zr,ar=class ar extends Ut{constructor(r,n){super(new Jf,{duration:10*60*1e3,timeout:3e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return g(this,null,function*(){let r=ar.failureCounters.get(this.apiEndpoint)||0;if(r>=ar.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${ar.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return ar.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw ar.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${ar.MAX_FAILURE_COUNT+1}) for ${this.apiEndpoint}:`,n),n}})}purchase(r){return g(this,null,function*(){var a;let n=yield this.getProductsInfo(),i=(a=n==null?void 0:n.paymentChoices.find(s=>s.productId===r))==null?void 0:a.appStoreProductId;if(!i)throw new Error("appStoreProductId not found");return yield Tn.invokePayment(this.paymentType==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}getProductsInfoWithBalance(){return g(this,null,function*(){return this.request(this.apiEndpoint)})}refreshProductsInfo(){return g(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}static resetFailureCounters(){this.failureCounters.clear()}static getFailureCount(r){return this.failureCounters.get(r)||0}};ar.failureCounters=new Map,ar.MAX_FAILURE_COUNT=2;Qc=ar,Hf=class extends Qc{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},Vf=class extends Qc{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},Kc=null,Yc=null,jx=()=>Kc||(Kc=new Hf,Kc),Xc=()=>Yc||(Yc=new Vf,Yc)});var Jx=h(Zc=>{"use strict";Be();ir();V();jc();R();ea();Bf();ir();Je();_t();Nf();or();$f();var U4={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:hx,frequencyUpdater:Sx,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:yx,frequencyUpdater:Ax,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},Ai=In(),Bx=jx(),Gx=Xc(),M4=Ge(U,Jt);U.on(Jc,(e,t)=>g(Zc,null,function*(){var r,n,i;try{let o=t.currency,a=U4[o];if(!Ae("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{U.emit(Gt,{paymentResult:"FAILED",currency:o})},0);return}if(e.includes("ADS-")){yield Ai.show({duration:3e3});let d=yield M4.getData(),{canShow:u}=yield a.frequencyChecker(d.joliCoinUseAndCharge[a.frequencyConfigKey]);if(console.log(`${o} payment show by frequency`,u),Ai.hide(),!u){U.emit(Gt,{paymentResult:"FAILED",currency:o});return}console.log("show by frequency")}yield Ai.show({duration:3e3});let s=o==="JOLI_COIN"?Bx:Gx,c=yield s.getProductsInfo();if(Ai.hide(),!c||!((r=c.paymentChoices)!=null&&r.length)){U.emit(Gt,{paymentResult:"FAILED",currency:o});return}j(a.trackEvents.modalShow,{targetType:"game",eventType:z.View,currency:o});let l=pk({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:o,paymentChoices:(i=(n=c.paymentChoices)==null?void 0:n.map(d=>{var u;return B(P({},d),{totalAmountStr:(u=d.totalAmountStr)!=null?u:""})}))!=null?i:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:d=>g(Zc,null,function*(){var f,m,v,b,y,w,E,C;if(j(a.trackEvents.payEnsure,{targetType:"game",eventType:z.Click,payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(m=(f=c.paymentChoices.find(T=>T.productId===d))==null?void 0:f.totalAmountStr)!=null?m:""}),!((v=S.hostUserInfo)!=null&&v.isLogin)){let{data:T}=yield Of({skipLogin:!0});if(!(T!=null&&T.isLogin)){console.log("login failed");return}let k=yield s.refreshProductsInfo();if(((b=k==null?void 0:k.balance)!=null?b:0)>=t.quantity){U.emit(Gt,{paymentResult:"SUCCESS",currency:o}),l.destroy();return}}console.log("invokeNativePayment",d);let u=(w=(y=c==null?void 0:c.paymentChoices)==null?void 0:y.find(T=>T.productId===d))==null?void 0:w.appStoreProductId;if(!u){U.emit(Gt,{paymentResult:"FAILED",currency:o}),l.destroy();return}yield Ai.show({duration:3e3});let{code:p}=yield Tn.invokePayment(a.paymentType,{productId:d,appStoreProductId:u});if(Ai.hide(),j(a.trackEvents.payResult,{eventType:z.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(C=(E=c.paymentChoices.find(T=>T.productId===d))==null?void 0:E.totalAmountStr)!=null?C:"",payResult:p}),p!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}Ir("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),U.emit(Gt,{paymentResult:"SUCCESS",currency:o}),l.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:d})=>{U.emit(Gt,{paymentResult:(d!=null?d:"")==="CANCEL"?"CANCEL":"FAILED",currency:o}),j(a.trackEvents.adUnlock,{targetType:"game",eventType:z.Click,currency:o}),l.destroy()}},onEnableDeductChanged:d=>g(Zc,null,function*(){yield Bc(d,a.apiEndpointAutoDeduct)})},onSelect:d=>{var u,p;j(a.trackEvents.orderClick,{targetType:"game",eventType:z.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),U.emit(Gt,{paymentResult:"FAILED",currency:t.currency})}}));Bx.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});Gx.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var Vx=h(el=>{"use strict";Be();or();ea();pt();bt();R();jc();ir();_t();var F4={JOLI_COIN:{frequencyChecker:gx,frequencyUpdater:Ix,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:bx,frequencyUpdater:Cx,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},Hx=Ge(U,Jt);Hx.getData();U.on(Vc,(e,t)=>g(el,null,function*(){var r;try{let n=t.currency,i=F4[n];if(e.includes("ADS-")){let s=yield Hx.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){U.emit(Er,{result:"NOT_SUPPORT"});return}let{canShow:c}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,c),!c){U.emit(Er,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield j4())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),U.emit(Er,{result:"NOT_SUPPORT"});return}j(i.trackEvents.modalExpose,{eventType:z.Expose,currency:n},z.Expose);let a=fk({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>g(el,null,function*(){var d,u,p,f;j(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:z.Click,currency:n},z.Click);let{isLogin:s,extra:c,isFirstLogin:l}=yield Pf({},!0);if(!s){console.log("login failed");return}if(j(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:l,eventType:z.Click,currency:n},z.Click),l&&((d=c==null?void 0:c.firstLogin)!=null&&d.reward)){let{rewardValue:m}=c.firstLogin.reward;Ir(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}U.emit(Er,{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:z.Hide,currency:n},z.Hide);let c=s==="CANCEL"?"click_close":"click_watch_ads",l=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;j(l,{type:c,eventType:z.Click,currency:n},z.Click),U.emit(Er,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){Ee(new tg(n)),U.emit(Er,{result:"FAILED"})}}));var j4=()=>g(el,null,function*(){var t;let{response:e}=yield Y("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function B4(){let e=new Map;return{registerSubscriptionHandler(r,n){e.set(r,n)},invokeSubscription(r,...n){return g(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} subscription not supported in this platform`};try{return yield i(...n)}catch(o){return Ee(o),{code:"FAILED",message:`[joliboxSDK]: subscription error ${o}`}}})}}}var ra,Wf=x(()=>{"use strict";bt();ra=B4()});var Pn,tl=x(()=>{"use strict";Pn={PlaceOrderFailed:1001,CancelOrderFailed:1002,SubscriptionFailed:1003,InvalidPlan:1004}});var G4,$x,rl,J4,na,zf=x(()=>{"use strict";tl();R();V();G4=()=>{let[e,t]=[Na,Da].map(r=>(n,i,o)=>new r(n,i,o));return{createSubscriptionError:e,createSubscriptionInternalError:t}},{createSubscriptionError:$x,createSubscriptionInternalError:rl}=G4(),J4=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",na=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startSubscription=t=>g(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw $x(n,Pn.PlaceOrderFailed);return yield this.subscribe(t)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(P({},this.generateSubscriptionContext()))),`${J4}/subscription/callback?${t.toString()}`};this.createSubscriptionError=$x;this.createSubscriptionInternalError=rl}setOrderId(t){this._orderId=t}setOrderStatus(t){this._orderStatus=t}get orderId(){return this._orderId}get status(){return this._orderStatus}}});function H4(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=>!Yi(r.amountStr))}var On,il,Kf,Yf,nl,Wx,Qf=x(()=>{"use strict";R();ue();pt();R();Gf();Wf();ue();zf();tl();On=class On{static getNativePriceCache(t){var n;let r=t.sort().join(",");return(n=this.nativePriceCache.get(r))!=null?n:{}}execute(t,r){return g(this,null,function*(){var a,s;let{response:n}=yield Y(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(!((a=n.data)!=null&&a.data))throw new Error("get subscription tiers failed");let i=n.data.data,o=(s=i==null?void 0:i.filter(c=>typeof c.appStoreProductId=="string").map(c=>c.appStoreProductId))!=null?s:[];if(o.length>0){let c=yield this.getNativePriceData(o);c&&H4(i,c)}if(i.length===0)throw new Error("subscription tiers is empty");return i})}requestNativeSubscriptionPlans(t,r){return g(this,null,function*(){try{let{data:n}=yield me("requestSubscriptionPlansAsync",{appStoreProductIds:t,type:"game"});return n&&(On.nativePriceCache.set(r,n),On.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[SubscriptionService] Failed to fetch native subscription pricing:",n),n}})}getNativePriceData(t,r=!1){return g(this,null,function*(){let n=t.sort().join(",");return(r?Fx:zc)(n,()=>this.requestNativeSubscriptionPlans(t,n),{storageKeyPrefix:"joli_subscription_price_"})})}extractCacheableData(t){return{subscriptionTiers:t}}mergeData(){throw new Error("SubscriptionService does not support real-time data merging")}processCachedData(t){return t.subscriptionTiers}updateNativePriceCache(t){return g(this,null,function*(){yield this.getNativePriceData(t,!0),console.log("[SubscriptionService] Updated native price cache for products:",t)})}static clearNativePriceCache(){this.nativePriceCache.clear(),this.nativePriceCacheTimestamp.clear(),console.log("[SubscriptionService] Cleared native price cache")}};On.nativePriceCache=new Map,On.NATIVE_PRICE_CACHE_DURATION=1*24*60*60*1e3,On.nativePriceCacheTimestamp=new Map;il=On,Kf=class extends Ut{constructor(r){super(new il,{duration:30*60*1e3,timeout:3e3});this.apiEndpoint=r;this.pendingSubscriptions=new Map;this.subInfoCacheKeys=[];this.listenSubscriptionPanelStateChange()}getSubInfo(){return g(this,null,function*(){var r;try{let n=yield this.request(this.apiEndpoint);return this.subInfoCacheKeys=(r=n==null?void 0:n.map(i=>{var o;return(o=i.appStoreProductId)!=null?o:""}))!=null?r:[],n}catch(n){throw console.warn(`[SubscriptionService] getSubInfo failed for ${this.apiEndpoint}:`,n),n}})}refreshSubInfo(){return g(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}updateNativePriceCache(r){return g(this,null,function*(){yield this.requestAdapter.updateNativePriceCache(r)})}updateAllNativePriceCache(){return g(this,null,function*(){try{this.subInfoCacheKeys.length>0&&(yield this.updateNativePriceCache(this.subInfoCacheKeys),this.forceRequest(this.apiEndpoint))}catch(r){throw console.warn("[SubscriptionService] Failed to update all native price cache:",r),r}})}subscribe(r){return g(this,null,function*(){var s;console.log("[SubscriptionService] subscribe params",ra);let n=new AbortController,i=ra.invokeSubscription("SUB_APP",{productId:r.nativeProductId,appStoreProductId:r.appStoreProductId,planId:r.basePlanId}),o=this.pollSubscriptionStatus(n.signal),a=yield Promise.race([i.then(c=>{var l;return n.abort(),{result:c.code,subPlanId:(l=c.data)==null?void 0:l.subPlanId,message:c.message}}),o.then(c=>(c==null?void 0:c.result)==="SUCCESS"?(n.abort(),c):new Promise(()=>{console.log("[SubscriptionPolling] Timeout for subscriptionService.subscribe completion")}))]);return{result:a.result,subPlanId:a.subPlanId,message:(s=a.message)!=null?s:""}})}pollSubscriptionStatus(r){return g(this,null,function*(){var o,a;for(let s=0;s<10;s++){if(r.aborted){console.log("[SubscriptionPolling] Aborted due to subscribe completion");return}try{let{response:c}=yield Y("/api/subs/info",{method:"GET",appendHostCookie:!0,responseType:"json"});if(((a=(o=c.data)==null?void 0:o.data)==null?void 0:a.status)==="ACTIVE")return{result:"SUCCESS",subPlanId:c.data.data.subPlanId,message:"Subscription activated via polling"}}catch(c){console.warn(`[SubscriptionPolling] Attempt ${s+1} failed:`,c)}s<9&&!r.aborted&&(yield Oa(5e3))}})}invokeSubscriptionPanel(){return g(this,null,function*(){var i,o;let r=new dt,n;try{if(console.log("[invokeSubscriptionPanel] requestSubscriptionSync params"),n=(i=M("invokeSubscriptionPanelSync",{type:"game"}).data)==null?void 0:i.subUUID,!n)throw rl("orderUUID is null",Pn.SubscriptionFailed);this.pendingSubscriptions.set(n,r)}catch(a){throw rl((o=JSON.stringify(a))!=null?o:"subscription panel failed",Pn.SubscriptionFailed)}return r.promise})}getTierByProductId(r){return g(this,null,function*(){var s;let n=yield this.getSubInfo(),i=n==null?void 0:n.find(c=>c.productId===r);if(!i)return;let o=il.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(){be("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"}}))})}},Yf=class extends Kf{constructor(){super("/api/subs/pricing")}},nl=null,Wx=()=>nl||(nl=new Yf,nl)});var zx=x(()=>{"use strict"});function Yx(){let e=new Map;return t=>g(this,null,function*(){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler params",t);let{productId:r,planId:n}=t,i=`${r}_${n}`,o=e.get(i);if(!o){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler instance not found",i);let a=V4[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,Kx,Zf,em,V4,Qx=x(()=>{"use strict";V();zf();ta();Wc();R();ue();R();tl();be("onGlobalSubscriptionStateChange",e=>{let{status:t,orderResponse:r}=e;console.log("[onGlobalSubscriptionStateChange] data",e),t==="SUCCESS"&&(r!=null&&r.subPlanId||r!=null&&r.ticketId)&&S.onEnvConfigChanged({hostUserInfo:{isLogin:!0,isSubUser:!0}})});Xf=new Map;be("onSubscritptionStateChange",e=>{var o,a,s;let{subUUID:t,status:r,orderResponse:n}=e;console.log("[onSubscritptionStateChange] data",e);let i=Xf.get(t);if(i){if(r==="SUCCESS")console.log("=======onSubscritptionStateChange",r,(o=n==null?void 0:n.subPlanId)!=null?o:n==null?void 0:n.ticketId),i.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{subPlanId:(a=n==null?void 0:n.subPlanId)!=null?a:n==null?void 0:n.ticketId}});else{if(r==="FAILED"&&Ra(n==null?void 0:n.errNo)&&(n==null?void 0:n.errNo)!==0)throw Ct(`subscription failed: ${n==null?void 0:n.errMsg}`,Pn.SubscriptionFailed);i.resolve({code:r,message:(s=n==null?void 0:n.errMsg)!=null?s:"UNKNOWN_ERROR"})}Xf.delete(t)}});Kx=e=>g(void 0,null,function*(){var n,i;let t=new dt,r;try{if(console.log("[internalSubscribe] requestSubscriptionSync params",e),r=(n=M("requestSubscriptionSync",P({params:{basePlanId:e.basePlanId,appStoreProductId:e.appStoreProductId,productId:e.productId}},e.appAccountToken?{paymentBody:{appAccountToken:e.appAccountToken,appStoreProductId:e.appStoreProductId}}:{})).data)==null?void 0:n.subUUID,!r)throw Ct("subUUID is null",1002);Xf.set(r,t)}catch(o){throw Ct((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Zf=class extends na{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return g(this,null,function*(){return{code:"SUCCESS",message:"Android subscription order placed locally"}})}cancelOrder(r){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})}generateSubscriptionContext(){return{gameId:S.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return g(this,null,function*(){return yield Kx(r)})}},em=class extends na{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return g(this,null,function*(){var o,a;console.log("----start place order for iOS subscription----");let n=M("envSync"),i=(a=(o=n==null?void 0:n.data)==null?void 0:o.hostUserInfo)==null?void 0:a.appAccountToken;if(!i)throw Ct("appAccountToken is null",1002);return this.subscriptionToken=i,{code:"SUCCESS",message:"placeorder sub-app success in native"}})}cancelOrder(r){return g(this,null,function*(){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})})}generateSubscriptionContext(){return{gameId:S.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return g(this,null,function*(){return yield Kx(B(P({},r),{appAccountToken:this.subscriptionToken}))})}},V4={android:Zf,ios:em}});var Rn,tm=x(()=>{"use strict";Qf();zx();Wf();Qx();Qf();Rn=Wx();ra.registerSubscriptionHandler("SUB_APP",Yx())});var tT=h(eT=>{"use strict";ea();Be();or();Je();tm();ir();var $4={SUBSCRIPTION:{frequencyConfigKey:"joinMember",frequencyChecker:_x,frequencyUpdater:kx}},Xx=In(),Zx=Ge(U,Jt);Zx.getData();U.on($c,e=>g(eT,null,function*(){let t=$4.SUBSCRIPTION;if(!Ae("invokeSubscriptionPanelSync")){console.info("invokeSubscriptionPanelSync not supported"),setTimeout(()=>{U.emit(kn,{result:"FAILED"})},0);return}yield Xx.show({duration:3e3});let r=yield Zx.getData(),{canShow:n,isFirst:i}=yield t.frequencyChecker(r.joliCoinUseAndCharge[t.frequencyConfigKey]);if(Xx.hide(),!n){U.emit(kn,{result:"FAILED"});return}let{data:o,code:a}=yield Rn.invokeSubscriptionPanel();a=="SUCCESS"?U.emit(kn,{result:"SUCCESS"}):U.emit(kn,{result:"FAILED"}),yield t.frequencyUpdater()}))});var Ene,Ane,Cne,kne,rT=x(()=>{"use strict";Ene=se(Px()),Ane=se(Jx()),Cne=se(Vx()),kne=se(tT())});var Ci,rm=x(()=>{"use strict";Ci=(e,t)=>{var r;window.dispatchEvent(new CustomEvent(e,{detail:t})),(r=window.parent)==null||r.postMessage({type:e,data:{detail:t}},"*")}});function aV(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function sV(e){return typeof e=="string"}function cV(e){return typeof e=="undefined"}function lV(e){return cV(e)||e===null}function uV(e){return typeof e=="function"}function NT(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 ia(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function cl(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 vV(e){let t=e.location?cl(e.location,cT):null,r=e.target?cl(e.target,cT):null;return cl(nV(rV({},e),{location:t,target:r}),hV)}function yV(e){let t=e.events.map(n=>vV(n)),r=cl(e.device,gV);return[e.protocolVersion,t,r,e.project]}function bV(){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 EV(e){return new Promise(t=>UT(e)(t))}function UT(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 AV(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new ua(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 kV(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)xV(e[n],t[n])}function xV(e,t){if(sV(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(uV(t)){try{if(e instanceof t)return}catch(r){}if(!lV(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 ht(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=PV(e,"string");return typeof t=="symbol"?t:t+""}function PV(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 ol(e,t,r){return(t=OV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OV(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 al(e,t,r){return(t=NV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NV(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 kr(e,t,r){return(t=LV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LV(e){var t=qV(e,"string");return typeof t=="symbol"?t:t+""}function qV(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 UV(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 MV(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 HV(e,t){return ze(e,0)^45?(((t<<2^ze(e,0))<<2^ze(e,1))<<2^ze(e,2))<<2^ze(e,3):0}function jT(e){return e.trim()}function VV(e,t){return(e=t.exec(e))?e[0]:e}function ne(e,t,r){return e.replace(t,r)}function vm(e,t){return e.indexOf(t)}function ze(e,t){return e.charCodeAt(t)|0}function da(e,t,r){return e.slice(t,r)}function sr(e){return e.length}function Um(e){return e.length}function sl(e,t){return t.push(e),e}function $V(e,t){return e.map(t).join("")}function El(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Il,column:Ri,length:a,return:""}}function aa(e,t){return JV(El("",null,null,"",null,null,0),e,{length:-e.length},t)}function WV(){return De}function zV(){return De=vt>0?ze(Di,--vt):0,Ri--,De===10&&(Ri=1,Il--),De}function xt(){return De=vt<BT?ze(Di,vt++):0,Ri++,De===10&&(Ri=1,Il++),De}function cr(){return ze(Di,vt)}function ll(){return vt}function fa(e,t){return da(Di,e,t)}function pa(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 GT(e){return Il=Ri=1,BT=sr(Di=e),vt=0,[]}function JT(e){return Di="",e}function ul(e){return jT(fa(vt-1,ym(e===91?e+2:e===40?e+1:e)))}function KV(e){for(;(De=cr())&&De<33;)xt();return pa(e)>2||pa(De)>3?"":" "}function YV(e,t){for(;--t&&xt()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return fa(e,ll()+(t<6&&cr()==32&&xt()==32))}function ym(e){for(;xt();)switch(De){case e:return vt;case 34:case 39:e!==34&&e!==39&&ym(De);break;case 40:e===41&&ym(e);break;case 92:xt();break}return vt}function QV(e,t){for(;xt()&&e+De!==57&&!(e+De===84&&cr()===47););return"/*"+fa(t,vt-1)+"*"+Sl(e===47?e:xt())}function XV(e){for(;!pa(cr());)xt();return fa(e,vt)}function ZV(e){return JT(dl("",null,null,null,[""],e=GT(e),0,[0],e))}function dl(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,v=1,b=1,y=1,w=0,E="",C=i,T=o,k=n,A=E;b;)switch(m=w,w=xt()){case 40:if(m!=108&&ze(A,u-1)==58){vm(A+=ne(ul(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=ul(w);break;case 9:case 10:case 13:case 32:A+=KV(m);break;case 92:A+=YV(ll()-1,7);continue;case 47:switch(cr()){case 42:case 47:sl(e$(QV(xt(),ll()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=sr(A)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:y==-1&&(A=ne(A,/\f/g,"")),f>0&&sr(A)-u&&sl(f>32?dT(A+";",n,r,u-1):dT(ne(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(sl(k=uT(A,t,r,l,d,i,s,E,C=[],T=[],u),o),w===123)if(d===0)dl(A,t,k,k,C,o,u,s,T);else switch(p===99&&ze(A,3)===110?100:p){case 100:case 108:case 109:case 115:dl(e,k,k,n&&sl(uT(e,k,k,0,0,i,s,E,i,C=[],u),T),i,T,u,s,n?C:T);break;default:dl(A,k,k,k,[""],T,0,s,T)}}l=d=f=0,v=y=1,E=A="",u=a;break;case 58:u=1+sr(A),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&zV()==125)continue}switch(A+=Sl(w),w*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(sr(A)-1)*y,y=1;break;case 64:cr()===45&&(A+=ul(xt())),p=cr(),d=u=sr(E=A+=XV(ll())),w++;break;case 45:m===45&&sr(A)==2&&(v=0)}}return o}function uT(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Um(p),m=0,v=0,b=0;m<n;++m)for(var y=0,w=da(e,u+1,u=GV(v=a[m])),E=e;y<f;++y)(E=jT(v>0?p[y]+" "+w:ne(w,/&\f/g,p[y])))&&(c[b++]=E);return El(e,t,r,i===0?Lm:s,c,l,d)}function e$(e,t,r){return El(e,t,r,MT,Sl(WV()),da(e,2,-2),0)}function dT(e,t,r,n){return El(e,t,r,qm,da(e,0,n),da(e,n+1,-1),n)}function Oi(e,t){for(var r="",n=Um(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function t$(e,t,r,n){switch(e.type){case BV:if(e.children.length)break;case jV:case qm:return e.return=e.return||e.value;case MT:return"";case FT:return e.return=e.value+"{"+Oi(e.children,n)+"}";case Lm:e.value=e.props.join(",")}return sr(r=Oi(e.children,n))?e.return=e.value+"{"+r+"}":""}function r$(e){var t=Um(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 n$(e){return function(t){t.root||(t=t.return)&&e(t)}}function i$(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function HT(e,t){switch(HV(e,t)){case 5103:return re+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return re+e+gl+e+nt+e+e;case 6828:case 4268:return re+e+nt+e+e;case 6165:return re+e+nt+"flex-"+e+e;case 5187:return re+e+ne(e,/(\w+).+(:[^]+)/,re+"box-$1$2"+nt+"flex-$1$2")+e;case 5443:return re+e+nt+"flex-item-"+ne(e,/flex-|-self/,"")+e;case 4675:return re+e+nt+"flex-line-pack"+ne(e,/align-content|flex-|-self/,"")+e;case 5548:return re+e+nt+ne(e,"shrink","negative")+e;case 5292:return re+e+nt+ne(e,"basis","preferred-size")+e;case 6060:return re+"box-"+ne(e,"-grow","")+re+e+nt+ne(e,"grow","positive")+e;case 4554:return re+ne(e,/([^-])(transform)/g,"$1"+re+"$2")+e;case 6187:return ne(ne(ne(e,/(zoom-|grab)/,re+"$1"),/(image-set)/,re+"$1"),e,"")+e;case 5495:case 3959:return ne(e,/(image-set\([^]*)/,re+"$1$`$1");case 4968:return ne(ne(e,/(.+:)(flex-)?(.*)/,re+"box-pack:$3"+nt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+re+e+e;case 4095:case 3583:case 4068:case 2532:return ne(e,/(.+)-inline(.+)/,re+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(sr(e)-1-t>6)switch(ze(e,t+1)){case 109:if(ze(e,t+4)!==45)break;case 102:return ne(e,/(.+:)(.+)-([^]+)/,"$1"+re+"$2-$3$1"+gl+(ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~vm(e,"stretch")?HT(ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ze(e,t+1)!==115)break;case 6444:switch(ze(e,sr(e)-3-(~vm(e,"!important")&&10))){case 107:return ne(e,":",":"+re)+e;case 101:return ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+re+(ze(e,14)===45?"inline-":"")+"box$3$1"+re+"$2$3$1"+nt+"$2box$3")+e}break;case 5936:switch(ze(e,t+11)){case 114:return re+e+nt+ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return re+e+nt+ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return re+e+nt+ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return re+e+nt+e+e}return e}function f$(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 vl(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 en={name:i.name,styles:i.styles,next:en},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)en={name:a.name,styles:a.styles,next:en},a=a.next;var s=o.styles+";";return s}return v$(e,t,r)}}var c=r;if(t==null)return c;var l=t[c];return l!==void 0?l:c}function v$(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=vl(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]+"}":fT(s)&&(n+=im(o)+":"+mT(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++)fT(a[c])&&(n+=im(o)+":"+mT(o,a[c])+";");else{var l=vl(e,t,a);switch(o){case"animation":case"animationName":{n+=im(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function om(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="";en=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=vl(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=vl(r,t,e[s]),n){var c=o;i+=c[s]}hT.lastIndex=0;for(var l="",d;(d=hT.exec(i))!==null;)l+="-"+d[1];var u=f$(i)+l;return{name:u,styles:i,next:en}}function $T(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function gT(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function vT(e,t,r){var n=[],i=$T(e,n,r);return n.length<2?r:i+t(n)}function I$(e,t){Fe.__h&&Fe.__h(kt,e,bT||t),bT=0;var r=kt.__H||(kt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function zT(e,t){var r=I$(bm++,7);return C$(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function E$(){for(var e;e=WT.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(pl),e.__H.__h.forEach(_m),e.__H.__h=[]}catch(t){e.__H.__h=[],Fe.__e(t,e.__v)}}function A$(e){var t,r=function(){clearTimeout(n),CT&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);CT&&(t=requestAnimationFrame(r))}function pl(e){var t=kt,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),kt=t}function _m(e){var t=kt;e.__c=e.__(),kt=t}function C$(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Al(){if(tn>1)tn--;else{for(var e,t=!1;ca!==void 0;){var r=ca;for(ca=void 0,wm++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&YT(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(wm=0,tn--,t)throw e}}function Ke(e){if(tn>0)return e();tn++;try{return e()}finally{Al()}}function KT(e){if(ce!==void 0){var t=e.n;if(t===void 0||t.t!==ce)return t={i:0,S:e,p:ce.s,n:void 0,t:ce,e:void 0,x:void 0,r:t},ce.s!==void 0&&(ce.s.n=t),ce.s=t,e.n=t,32&ce.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=ce.s,t.n=void 0,ce.s.n=t,ce.s=t),t}}function Ye(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function $(e){return new Ye(e)}function YT(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 QT(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 XT(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 Li(e){Ye.call(this,void 0),this.x=e,this.s=void 0,this.g=yl-1,this.f=4}function la(e){return new Li(e)}function ZT(e){var t=e.u;if(e.u=void 0,typeof t=="function"){tn++;var r=ce;ce=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Mm(e),n}finally{ce=r,Al()}}}function Mm(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ZT(e)}function x$(e){if(ce!==this)throw new Error("Out-of-order effect");XT(this),ce=e,this.f&=-2,8&this.f&&Mm(this),Al()}function ma(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function ha(e){var t=new ma(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function qi(e,t){L[e]=t.bind(null,L[e]||function(){})}function bl(e){sm&&sm(),sm=e&&e.S()}function rP(e){var t=this,r=e.data,n=nP(r);n.value=r;var i=zT(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=la(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=la(function(){return!Array.isArray(l.value)&&!Ou(l.value)}),u=ha(function(){if(this.N=iP,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 T$(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=$(r);return{o:function(a,s){o.value=a,n=s},d:ha(function(){this.N=iP;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function nP(e){return zT(function(){return $(e)},[])}function O$(){Ke(function(){for(var e;e=tP.shift();)eP.call(e)})}function iP(){tP.push(this)===1&&(L.requestAnimationFrame||P$)(O$)}function R$(e,t){let r=ni(e);ri(()=>{r.current=e},[e]),vn(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function X(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:--N$,__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 L.vnode&&L.vnode(l),l}function xr(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=$$(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 lt(e,t,r){return(t=i9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i9(e){var t=o9(e,"string");return typeof t=="symbol"?t:t+""}function o9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tr(e,t,r){return(t=l9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l9(e){var t=u9(e,"string");return typeof t=="symbol"?t:t+""}function u9(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=d9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d9(e){var t=p9(e,"string");return typeof t=="symbol"?t:t+""}function p9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gt(e,t,r){return(t=f9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f9(e){var t=m9(e,"string");return typeof t=="symbol"?t:t+""}function m9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nn(e,t,r){return(t=h9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h9(e){var t=g9(e,"string");return typeof t=="symbol"?t:t+""}function g9(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 cm(e,t,r){return(t=v9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v9(e){var t=y9(e,"string");return typeof t=="symbol"?t:t+""}function y9(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 ut(e,t,r){return(t=b9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b9(e){var t=_9(e,"string");return typeof t=="symbol"?t:t+""}function _9(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 w9(e,t,r){return(t=S9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S9(e){var t=I9(e,"string");return typeof t=="symbol"?t:t+""}function I9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pr(e,t,r){return(t=A9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A9(e){var t=C9(e,"string");return typeof t=="symbol"?t:t+""}function C9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Or(e,t,r){return(t=k9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k9(e){var t=x9(e,"string");return typeof t=="symbol"?t:t+""}function x9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sa(e,t,r){return(t=T9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T9(e){var t=P9(e,"string");return typeof t=="symbol"?t:t+""}function P9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ht(e,t,r){return(t=O9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O9(e){var t=R9(e,"string");return typeof t=="symbol"?t:t+""}function R9(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 W4,z4,K4,ml,xT,TT,nT,PT,Y4,Q4,OT,X4,Z4,iT,eV,tV,oT,rV,nV,iV,RT,oV,dV,pV,aT,fV,sT,mV,DT,LT,qT,cT,hV,gV,Ti,hl,lm,ye,_V,wV,oa,ua,SV,dm,IV,nm,CV,pm,lT,ki,fm,mm,hm,gm,FV,nt,gl,re,MT,Lm,qm,jV,FT,BV,GV,Sl,JV,Il,Ri,BT,vt,De,Di,o$,a$,s$,pT,c$,l$,u$,d$,p$,m$,h$,g$,VT,fT,im,mT,hT,en,y$,b$,_$,w$,S$,it,bm,kt,am,yT,bT,WT,Fe,_T,wT,ST,IT,ET,AT,CT,k$,ce,ca,tn,wm,yl,eP,sm,tP,P$,je,N$,D$,Rr,Sm,Im,fl,L$,q$,U$,M$,F$,j$,B$,G$,J$,H$,Em,W$,z$,K$,Y$,Q$,X$,Z$,kT,e9,t9,r9,n9,Am,Pi,xi,a9,s9,c9,Cm,oP,km,xm,Tm,Pm,_l,Om,E9,wl,Rm,Nm,Dm,Ni,Rne,Fm=x(()=>{"use strict";$n();Is();ue();W4=Object.defineProperty,z4=Object.defineProperties,K4=Object.getOwnPropertyDescriptors,ml=Object.getOwnPropertySymbols,xT=Object.prototype.hasOwnProperty,TT=Object.prototype.propertyIsEnumerable,nT=(e,t,r)=>t in e?W4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,PT=(e,t)=>{for(var r in t||(t={}))xT.call(t,r)&&nT(e,r,t[r]);if(ml)for(var r of ml(t))TT.call(t,r)&&nT(e,r,t[r]);return e},Y4=(e,t)=>z4(e,K4(t)),Q4=(e,t)=>{var r={};for(var n in e)xT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ml)for(var n of ml(e))t.indexOf(n)<0&&TT.call(e,n)&&(r[n]=e[n]);return r},OT=Object.defineProperty,X4=Object.defineProperties,Z4=Object.getOwnPropertyDescriptors,iT=Object.getOwnPropertySymbols,eV=Object.prototype.hasOwnProperty,tV=Object.prototype.propertyIsEnumerable,oT=(e,t,r)=>t in e?OT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rV=(e,t)=>{for(var r in t||(t={}))eV.call(t,r)&&oT(e,r,t[r]);if(iT)for(var r of iT(t))tV.call(t,r)&&oT(e,r,t[r]);return e},nV=(e,t)=>X4(e,Z4(t)),iV=(e,t)=>{for(var r in t)OT(e,r,{get:t[r],enumerable:!0})},RT=(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},oV=(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}dV=(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))(dV||{});pV={log:ia("log"),warn:ia("warn"),info:ia("info"),error:ia("error"),debug:ia("debug")};Object.assign(globalThis,{logger:pV});aT=Symbol.for("Jolibox.canIUseMap"),fV={};globalThis[aT]||(globalThis[aT]=fV);sT=Symbol.for("Jolibox.canIUseMap.native"),mV={};globalThis[sT]||(globalThis[sT]=mV);DT=(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))(DT||{}),LT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(LT||{}),qT=(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))(qT||{}),cT=["name","params"],hV=["name","type","location","target","extra","timestamp","userId"],gV=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];bV();Ti=typeof window=="undefined",hl=()=>!Ti&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Ti&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Ti&&navigator.userAgent.includes("Android"),!Ti&&navigator.userAgent.includes("Mac"),!Ti&&navigator.userAgent.includes("FB_IAB"),!Ti&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");lm=class um{constructor(t){this.element=t,this.next=um.Undefined,this.prev=um.Undefined}};lm.Undefined=new lm(void 0);ye=lm,_V=class{constructor(){this._first=ye.Undefined,this._last=ye.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ye.Undefined}clear(){let e=this._first;for(;e!==ye.Undefined;){let t=e.next;e.prev=ye.Undefined,e.next=ye.Undefined,e=t}this._first=ye.Undefined,this._last=ye.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ye(e);if(this._first===ye.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==ye.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ye.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ye.Undefined&&e.next!==ye.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ye.Undefined&&e.next===ye.Undefined?(this._first=ye.Undefined,this._last=ye.Undefined):e.next===ye.Undefined?(this._last=this._last.prev,this._last.next=ye.Undefined):e.prev===ye.Undefined&&(this._first=this._first.next,this._first.prev=ye.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ye.Undefined;)yield e.element,e=e.next}},wV=0,oa=class{constructor(e){this.value=e,this.id=wV++}},ua=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 oa&&(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 oa(e);return this._listeners?this._listeners instanceof oa?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 oa)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 oa?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},SV=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 ua,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 _V,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)}},dm={};iV(dm,{None:()=>IV,filter:()=>AV,once:()=>UT,toPromise:()=>EV});IV=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});nm=Symbol.for("Jolibox.hostEmitter"),CV=()=>{let e=new SV;return globalThis[nm]||(globalThis[nm]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[nm]};CV();pm=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ua,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 kV(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}};pm=RT([NT],pm);lT=class{constructor(){this._onWillExecuteCommand=new ua,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ua,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new pm,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=aV(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 oV(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),dm.toPromise(dm.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{}}};lT=RT([NT],lT);ki=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")},fm=class{constructor(t){ht(this,"context",void 0),ht(this,"continueCallback",void 0),ht(this,"adIsShowingCallback",void 0),ht(this,"isBeforeAdCalled",!1),ht(this,"isBeforeRewardCalled",!1),ht(this,"isAdDismissedCalled",!1),ht(this,"isAdViewedCalled",!1),ht(this,"isAfterAdCalled",!1),ht(this,"currentProvider",void 0),ht(this,"currentClientParams",void 0),ht(this,"adsHasResponse",!1),ht(this,"videoChecker",window.document.createElement("video")),ht(this,"contextInfo",void 0),ht(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",PT({userEvent:a},this.paramsToTrack)),hl()&&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=ki(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=ki(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),hl()&&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=ki(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=ki(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=ki(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=ki(t);p==null||p(r),(l=this.adIsShowingCallback)==null||l.call(this,!1),(d=this.continueCallback)==null||d.call(this,[!1,r]);break}default:{(u=this.continueCallback)==null||u.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return g(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,c,l,d,u,p,f;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(c=(s=this.currentProvider)==null?void 0:s.name)!=null?c:null}),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_TIMEOUT",{type:r.type,provider:(d=(l=this.currentProvider)==null?void 0:l.name)!=null?d:null}),(p=this.continueCallback)==null||p.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(u=r.name)!=null?u:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(f=this.adIsShowingCallback)==null||f.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};mm=class{constructor(t){ol(this,"context",void 0),ol(this,"adBreakIsShowing",!1),ol(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),ol(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()})}};hm=class{constructor(t){al(this,"configs",null),al(this,"firstRun",!0),al(this,"context",void 0),al(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return g(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};gm=class{constructor(t,r){kr(this,"name","ADSENSE"),kr(this,"context",void 0),kr(this,"contextInfo",void 0),kr(this,"configured",!1),kr(this,"initParams",void 0),kr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),kr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=Q4(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),kr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),kr(this,"adUnit",n=>g(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:c,slot:l,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!c)throw new Error("targeting element is required");if(typeof c=="string"?f=document.querySelector(c):f=c,!f)throw new Error("targeting element not found");let m=l;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let v=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,b=document.createElement("ins");if(b.className="adsbygoogle",b.id="jolibox-ads",b.style.display="block",b.setAttribute("data-ad-client",this.initParams.clientId),b.setAttribute("data-ad-slot",m),v&&b.setAttribute("data-ad-format",v),u&&b.setAttribute("data-full-width-responsive",u),p&&b.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let y=document.createElement("div");y.style.position="absolute",y.style.top="0",y.style.left="0",y.style.width="100%",y.style.height="100%",y.style.display="flex",y.style.justifyContent="center",y.style.alignItems="center",y.style.backgroundColor="rgba(0, 0, 0, 0.5)",y.style.color="white",y.innerHTML="Test Ad",b.style.position="relative",f.appendChild(b),b.appendChild(y)}else f.appendChild(b),new MutationObserver(y=>{y.forEach(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 g(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),this.initParams.admobInterstitialSlot&&i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),this.initParams.admobRewardedSlot&&i.setAttribute("data-admob-rewarded-slot",this.initParams.admobRewardedSlot),this.initParams.admobOnly&&i.setAttribute("data-admob-ads-only","on"),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};FV=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(MV(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=UV(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}(),nt="-ms-",gl="-moz-",re="-webkit-",MT="comm",Lm="rule",qm="decl",jV="@import",FT="@keyframes",BV="@layer",GV=Math.abs,Sl=String.fromCharCode,JV=Object.assign;Il=1,Ri=1,BT=0,vt=0,De=0,Di="";o$=function(e,t,r){for(var n=0,i=0;n=i,i=cr(),n===38&&i===12&&(t[r]=1),!pa(i);)xt();return fa(e,vt)},a$=function(e,t){var r=-1,n=44;do switch(pa(n)){case 0:n===38&&cr()===12&&(t[r]=1),e[r]+=o$(vt-1,t,r);break;case 2:e[r]+=ul(n);break;case 4:if(n===44){e[++r]=cr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Sl(n)}while(n=xt());return e},s$=function(e,t){return JT(a$(GT(e),t))},pT=new WeakMap,c$=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&&!pT.get(r))&&!n){pT.set(e,!0);for(var i=[],o=s$(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]}}},l$=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};u$=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case qm:e.return=HT(e.value,e.length);break;case FT:return Oi([aa(e,{value:ne(e.value,"@","@"+re)})],n);case Lm:if(e.length)return $V(e.props,function(i){switch(VV(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Oi([aa(e,{props:[ne(i,/:(read-\w+)/,":"+gl+"$1")]})],n);case"::placeholder":return Oi([aa(e,{props:[ne(i,/:(plac\w+)/,":"+re+"input-$1")]}),aa(e,{props:[ne(i,/:(plac\w+)/,":"+gl+"$1")]}),aa(e,{props:[ne(i,/:(plac\w+)/,nt+"input-$1")]})],n)}return""})}},d$=[u$],p$=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||d$,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(m)});var s,c=[c$,l$];{var l,d=[t$,n$(function(m){l.insert(m)})],u=r$(c.concat(n,d)),p=function(m){return Oi(ZV(m),u)};s=function(m,v,b,y){l=b,p(m?m+"{"+v.styles+"}":v.styles),y&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new FV({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};m$={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},h$=/[A-Z]|^ms/g,g$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,VT=function(e){return e.charCodeAt(1)===45},fT=function(e){return e!=null&&typeof e!="boolean"},im=i$(function(e){return VT(e)?e:e.replace(h$,"-$&").toLowerCase()}),mT=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(g$,function(r,n,i){return en={name:n,styles:i,next:en},n})}return m$[e]!==1&&!VT(e)&&typeof t=="number"&&t!==0?t+"px":t};hT=/label:\s*([^\s;{]+)\s*(;|$)/g;y$=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},b$=function(e,t,r){y$(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)}};_$=function(e){var t=p$(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=om(s,t.registered,void 0);return b$(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=om(s,t.registered),d="animation-"+l.name;return gT(t,{name:l.name,styles:"@keyframes "+d+"{"+l.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];var l=om(s,t.registered);gT(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return vT(t.registered,r,w$(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:$T.bind(null,t.registered),merge:vT.bind(null,t.registered,r)}},w$=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},S$=_$({key:"css"}),it=S$.css,bT=0,WT=[],Fe=L,_T=Fe.__b,wT=Fe.__r,ST=Fe.diffed,IT=Fe.__c,ET=Fe.unmount,AT=Fe.__;Fe.__b=function(e){kt=null,_T&&_T(e)},Fe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),AT&&AT(e,t)},Fe.__r=function(e){wT&&wT(e),bm=0;var t=(kt=e.__c).__H;t&&(am===kt?(t.__h=[],kt.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(pl),t.__h.forEach(_m),t.__h=[],bm=0)),am=kt},Fe.diffed=function(e){ST&&ST(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(WT.push(t)!==1&&yT===Fe.requestAnimationFrame||((yT=Fe.requestAnimationFrame)||A$)(E$)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),am=kt=null},Fe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(pl),r.__h=r.__h.filter(function(n){return!n.__||_m(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Fe.__e(n,r.__v)}}),IT&&IT(e,t)},Fe.unmount=function(e){ET&&ET(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{pl(n)}catch(i){t=i}}),r.__H=void 0,t&&Fe.__e(t,r.__v))};CT=typeof requestAnimationFrame=="function";k$=Symbol.for("preact-signals");ce=void 0,ca=void 0,tn=0,wm=0,yl=0;Ye.prototype.brand=k$;Ye.prototype.h=function(){return!0};Ye.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)};Ye.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)}};Ye.prototype.subscribe=function(e){var t=this;return ha(function(){var r=t.value,n=ce;ce=void 0;try{e(r)}finally{ce=n}})};Ye.prototype.valueOf=function(){return this.value};Ye.prototype.toString=function(){return this.value+""};Ye.prototype.toJSON=function(){return this.value};Ye.prototype.peek=function(){var e=ce;ce=void 0;try{return this.value}finally{ce=e}};Object.defineProperty(Ye.prototype,"value",{get:function(){var e=KT(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(wm>100)throw new Error("Cycle detected");this.v=e,this.i++,yl++,tn++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Al()}}}});(Li.prototype=new Ye).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===yl))return!0;if(this.g=yl,this.f|=1,this.i>0&&!YT(this))return this.f&=-2,!0;var e=ce;try{QT(this),ce=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 ce=e,XT(this),this.f&=-2,!0};Li.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)}Ye.prototype.S.call(this,e)};Li.prototype.U=function(e){if(this.t!==void 0&&(Ye.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)}};Li.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(Li.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=KT(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});ma.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()}};ma.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,ZT(this),QT(this),tn++;var e=ce;return ce=this,x$.bind(this,e)};ma.prototype.N=function(){2&this.f||(this.f|=2,this.o=ca,ca=this)};ma.prototype.d=function(){this.f|=8,1&this.f||Mm(this)};tP=[];ha(function(){eP=this.N})();rP.displayName="_st";Object.defineProperties(Ye.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:rP},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});qi("__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 Ye&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});qi("__r",function(e,t){bl();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return ha(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),bl(r),e(t)});qi("__e",function(e,t,r,n){bl(),e(t,r,n)});qi("diffed",function(e,t){bl();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=T$(r,c,d,i),o[c]=l):l.o(d,i)}}}e(t)});qi("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)});qi("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});St.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};P$=function(e){queueMicrotask(function(){queueMicrotask(e)})};je=it`
|
|
622
|
+
`,W3=()=>_("div",{style:OC.container,children:[_("style",{children:$3}),_("div",{style:OC.spinner})]});NZ=An()});function Tk(){return g(this,null,function*(){if(_f)return _f;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 Y(t);return _f=r,r})}function Pk(){return g(this,null,function*(){let e=new ut;if(I.mpType!=="game")return e.resolve(!1),e.promise;if(wf)return e.resolve(!0),e.promise;let t=yield Tk();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;wf=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};j("RecommendedGuide",P({eventType:z.View},o));let a=pk({games:r.games,title:n,buttons:i,onClose:s=>{var c;switch(wf=!1,s.type){case"quit":j("RecommendedGuide",{eventType:z.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":j("RecommendedGuide",P({eventType:z.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((c=s.data)!=null&&c.game){let l=s.data.game;z3(l),j("GameItem",{eventType:z.Click,gameId:l.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:j("RecommendedGuide",P({eventType:z.Hide},o)),e.resolve(!0);break}}});return e.promise})}var _f,z3,wf,Ok=x(()=>{"use strict";V();ce();R();ir();dt();bt();_f=null;Tk();z3=e=>{var a;let{data:t}=L("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()}`;L("openSchemaSync",{schema:o})},wf=!1});function Y3(e){let t=P(P({},K3),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:C}=p();fe=document.createElement("div"),fe.id="jolibox-modal-overlay",fe.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;`,oe=document.createElement("div"),oe.id="jolibox-modal-container",oe.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 T=document.createElement("div");T.id="jolibox-modal-loading",T.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let k=document.createElement("style");k.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(k);let A=document.createElement("div");if(A.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",Nt=document.createElement("iframe"),Nt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${C};`,Nt.src=r,Nt.onload=()=>{T.parentNode&&T.parentNode.removeChild(T),Nt.style.opacity="1",v(),c==null||c(),we.emit("onModalIframeLoaded",{url:r})},A.appendChild(Nt),A.appendChild(T),oe.appendChild(A),i){let J=document.createElement("div");J.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;",J.innerHTML="\u2715",J.onclick=y,oe.appendChild(J)}fe.appendChild(oe),document.body.appendChild(fe),fe.addEventListener("click",function(J){J.target===fe&&y()}),o&&b()}function v(){!fe||!oe||u||(fe.style.visibility="visible",a?requestAnimationFrame(()=>{fe&&(fe.style.opacity="1"),oe&&(oe.style.transform="translateY(0)"),u=!0}):(fe&&(fe.style.opacity="1"),oe&&(oe.style.transform="translateY(0)"),u=!0),L("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:I.webviewId}))}function b(){if(!oe)return;let w=T=>{l=T.touches[0].clientY},E=T=>{if(!u)return;d=T.touches[0].clientY;let k=d-l;k>0&&(oe&&(oe.style.transition="none",oe.style.transform=`translateY(${k}px)`),T.preventDefault())},C=()=>{!u||!oe||(oe.style.transition=a?"transform 0.3s ease":"none",d-l>80?y():oe.style.transform="translateY(0)")};oe.addEventListener("touchstart",w),oe.addEventListener("touchmove",E),oe.addEventListener("touchend",C)}function y(){!fe||!oe||!u||(a?(oe.style.transform="translateY(100%)",fe.style.opacity="0"):fe.style.visibility="hidden",u=!1,L("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:I.webviewId}),setTimeout(()=>{fe&&(fe.remove(),fe=null,oe=null,Nt=null,s==null||s(),we.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:y}}function Rk(){return window.joliboxUI=B(P({},window.joliboxUI),{createIframeModal:Y3}),()=>{window.joliboxUI=void 0,fe&&fe.parentNode&&fe.parentNode.removeChild(fe),oe&&oe.parentNode&&oe.parentNode.removeChild(oe),Nt&&Nt.parentNode&&Nt.parentNode.removeChild(Nt),fe=null,oe=null,Nt=null}}var K3,fe,oe,Nt,Nk=x(()=>{"use strict";ce();V();R();K3={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},fe=null,oe=null,Nt=null});var Fk,Oc,If,Rc,Si,jk,Ii,Bk,Gk,Jk,wi,Dk,Pc,Lk,Q3,Hk,Ef,qk,Vk,X3,Uk,Sf,$k,Mk,Z3,Wk,zk=x(()=>{Fk=-1,Oc=function(e){addEventListener("pageshow",function(t){t.persisted&&(Fk=t.timeStamp,e(t))},!0)},If=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Rc=function(){var e=If();return e&&e.activationStart||0},Si=function(e,t){var r=If(),n="navigate";return Fk>=0?n="back-forward-cache":r&&(document.prerendering||Rc()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},jk=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(i){Promise.resolve().then(function(){t(i.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(i){}},Ii=function(e,t,r,n){var i,o;return function(a){t.value>=0&&(a||n)&&((o=t.value-(i||0))||i===void 0)&&(i=t.value,t.delta=o,t.rating=function(s,c){return s>c[1]?"poor":s>c[0]?"needs-improvement":"good"}(t.value,r),e(t))}},Bk=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},Gk=function(e){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&e()})},Jk=function(e){var t=!1;return function(){t||(e(),t=!0)}},wi=-1,Dk=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Pc=function(e){document.visibilityState==="hidden"&&wi>-1&&(wi=e.type==="visibilitychange"?e.timeStamp:0,Q3())},Lk=function(){addEventListener("visibilitychange",Pc,!0),addEventListener("prerenderingchange",Pc,!0)},Q3=function(){removeEventListener("visibilitychange",Pc,!0),removeEventListener("prerenderingchange",Pc,!0)},Hk=function(){return wi<0&&(wi=Dk(),Lk(),Oc(function(){setTimeout(function(){wi=Dk(),Lk()},0)})),{get firstHiddenTime(){return wi}}},Ef=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},qk=[1800,3e3],Vk=function(e,t){t=t||{},Ef(function(){var r,n=Hk(),i=Si("FCP"),o=jk("paint",function(a){a.forEach(function(s){s.name==="first-contentful-paint"&&(o.disconnect(),s.startTime<n.firstHiddenTime&&(i.value=Math.max(s.startTime-Rc(),0),i.entries.push(s),r(!0)))})});o&&(r=Ii(e,i,qk,t.reportAllChanges),Oc(function(a){i=Si("FCP"),r=Ii(e,i,qk,t.reportAllChanges),Bk(function(){i.value=performance.now()-a.timeStamp,r(!0)})}))})},X3=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=Jk(e),document.visibilityState==="hidden"?e():(r=t(e),Gk(e)),r},Uk=[2500,4e3],Sf={},$k=function(e,t){t=t||{},Ef(function(){var r,n=Hk(),i=Si("LCP"),o=function(c){t.reportAllChanges||(c=c.slice(-1)),c.forEach(function(l){l.startTime<n.firstHiddenTime&&(i.value=Math.max(l.startTime-Rc(),0),i.entries=[l],r())})},a=jk("largest-contentful-paint",o);if(a){r=Ii(e,i,Uk,t.reportAllChanges);var s=Jk(function(){Sf[i.id]||(o(a.takeRecords()),a.disconnect(),Sf[i.id]=!0,r(!0))});["keydown","click"].forEach(function(c){addEventListener(c,function(){return X3(s)},{once:!0,capture:!0})}),Gk(s),Oc(function(c){i=Si("LCP"),r=Ii(e,i,Uk,t.reportAllChanges),Bk(function(){i.value=performance.now()-c.timeStamp,Sf[i.id]=!0,r(!0)})})}})},Mk=[800,1800],Z3=function e(t){document.prerendering?Ef(function(){return e(t)}):document.readyState!=="complete"?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},Wk=function(e,t){t=t||{};var r=Si("TTFB"),n=Ii(e,r,Mk,t.reportAllChanges);Z3(function(){var i=If();i&&(r.value=Math.max(i.responseStart-Rc(),0),r.entries=[i],n(!0),Oc(function(){r=Si("TTFB",0),(n=Ii(e,r,Mk,t.reportAllChanges))(!0)}))})}});var Zk={};Ih(Zk,{config:()=>u4});function t4(){dn.on("isAdShowing",e=>{Lc=e,qr(Lc)&&I.mpType==="game"&&L("updateContainerConfigSync",{displayCapsuleButton:!Lc,webviewId:I.webviewId})})}function r4(){we.on("onInterceptSystemExit",({intercept:e})=>{Yk=e})}function n4(){we.on("onInterceptBackPress",({intercept:e})=>{e4=e}),_e("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;Xk(t),we.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function i4(){we.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),j("onDocumentReady",{start_timestamp:Uc,timestamp:Date.now()})})}function o4(){_e("onI18nChanged",({language:e})=>{we.emit("onI18nChanged",{i18n:e})})}function Kk(e){I.mpType==="game"&&wt.start(e)}function a4(){_e("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&I.onEnvConfigChanged({hostUserInfo:e}),we.emit("LifecycleEvent.onReady",P({},I.hostUserInfo?I.hostUserInfo:{isLogin:!1})),j("joliboxServiceReady",{start_timestamp:Uc,timestamp:Date.now()}),ve("onJoliboxHideLoading")||Kk(t),ak(()=>I.language)}),_e("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;Xk(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)}),_e("onJoliboxHideLoading",({duration:e})=>{Kk(e)})}function s4(){let e=()=>{j("onBeforeExit",{timestamp:Date.now()}),Nc==null||Nc(),Dc==null||Dc(),wt.close(Date.now()-Uc)},t=()=>Lc||Yk;Pt.onDoExit(()=>g(this,null,function*(){return t()?!0:qr(I.shouldInterupt)?(I.shouldInterupt||e(),I.shouldInterupt):qc!=null&&qc.canShowRecommended&&!Qk&&(yield Pk())?!0:(e(),!1)})),Pt.onDoBackPress(()=>g(this,null,function*(){return!!t()}))}function c4(){Vk(e=>{j("GameFCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),$k(e=>{j("GameLCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),Wk(e=>{j("GameTTFB",{value:e.value,rating:e.rating,navigationType:e.navigationType})})}function l4(){return g(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield Y(e);t&&(qc=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function u4(){Uc=Date.now(),a4(),t4(),r4(),n4(),s4(),i4(),o4(),l4(),c4(),Dc=Rk(),Nc=Kg()}var Nc,Dc,Uc,Lc,qc,Yk,e4,Qk,Xk,ex=x(()=>{"use strict";ce();V();R();bt();Yg();os();Ok();dt();ir();Nk();zk();rs();Lc=!1,qc=null,Yk=!1,e4=!1,Qk=!1,Xk=e=>{qr(e)&&(Qk=e)};Pt.onReady(()=>{})});var tx,d4,p4,f4,m4,rx=x(()=>{"use strict";R();Je();ce();V();tx=K(),d4="env",p4="getSystemInfoSync",f4=Q(p4,{implement:()=>{var r;let e=L("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}}}}),m4=Q(d4,{implement:()=>{var t;let e=L("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});tx.registerCommand("API.getSystemInfoSync",f4);tx.registerCommand("API.env",m4);D("env",{version:"1.0.0"});D("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var nx=h(Af=>{"use strict";R();Je();yt();ce();bt();V();var h4="exitGame",g4="onReady",v4="onJoliboxShow",y4="onJoliboxHide",Mc=K(),Fc=Jn(Ae),b4=$(h4,{paramsSchema:S.tuple(S.function(),S.boolean().optional().default(!1)),implement:(e,t=!1)=>g(Af,null,function*(){Fc(e).call(Af),qr(I.shouldInterupt)&&!I.shouldInterupt&&I.from&&$h("onRetentionResult",{shouldStay:t},I.from,!0),t||I.setDoExitDirectly(),yield de("exitAppAsync")})}),_4=Q(v4,{paramsSchema:S.tuple(S.function()),implement(e){let t=Fc(e);_e("onJoliboxEnterForeground",()=>{t.call(this),no.emit("visible",!0)})}}),w4=Q(y4,{paramsSchema:S.tuple(S.function()),implement(e){let t=Fc(e);_e("onJoliboxEnterBackground",()=>{t.call(this),no.emit("visible",!1)})}}),S4=Q(g4,{paramsSchema:S.tuple(S.function()),implement(e){let t=Fc(e);we.on("LifecycleEvent.onReady",r=>{t(r)})}});Mc.registerCommand("LifecycleSDK.exit",b4);Mc.registerCommand("LifecycleSDK.onReady",S4);Mc.registerCommand("LifecycleSDK.onJoliboxShow",_4);Mc.registerCommand("LifecycleSDK.onJoliboxHide",w4);D("lifeCycle.exit",{version:"1.0.0"});D("lifeCycle.onReady",{version:"1.0.0"});D("lifeCycle.onJoliboxShow",{version:"1.0.0"});D("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function ix(e){let t={};if(!ln(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 ox(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 ax(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function sx(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!ln(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 cx=x(()=>{"use strict";R()});var I4,E4,Cf,kf,lx,A4,C4,k4,ux=x(()=>{"use strict";Ur();_u();Je();cx();R();yt();V();I4=15,E4=Ua("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:I.baseApiHost}),Cf=0,kf=[],lx=Jn(Ae),A4=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},C4=e=>{let t=new ut,r=()=>{};return Q("request",{paramsSchema:S.tuple(S.object({url:S.string(),method:S.string(),headers:S.object().optional(),data:S.or(S.object(),S.array()).optional(),query:S.object().optional(),dataType:S.string().default("json"),responseType:S.string().default("text"),enableCache:S.boolean().default(!1),appendHostCookie:S.boolean().default(!0),timeout:S.number().default(3e4),success:S.function(),fail:S.function()})),implement(i){let o=()=>g(this,null,function*(){var s,c,l;let a=lx(i.fail);try{if(Cf+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,v=ix((s=i.headers)!=null?s:{}),b=ox(i.method),y=ax(i.timeout),w=sx(i.url,b,d),E=lx(i.success),C=Object.assign({},i,{method:b,header:m?void 0:v,data:b==="GET"||b==="HEAD"?void 0:d,enableCache:f,query:(c=i.query)!=null?c:{},dataType:u,responseType:p,appendHostCookie:m});y&&(C.timeout=y);let T=E4(w,C);{let{response:k}=yield T,{code:A,data:J,message:ue}=k;if(J&&typeof J=="object"&&"status"in J&&J.status!==200)throw Ce({code:J.status||-1,msg:`request:fail status ${J.status}`});t.resolve({code:A!=null?A:"SUCCESS",data:J,message:ue!=null?ue:"request:ok"}),E({code:"SUCCESS",message:"request:ok",data:J})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Cf-=1,(l=kf.shift())==null||l()}});return Cf>=I4?(r=()=>{A4(kf,a=>a===o)},kf.push(o)):o(),t.promise}})(e),{abort(){t.reject(Ce({code:-1,msg:"request:fail abort"})),r()}}},k4=K();k4.registerCommand("HttpSDK.request",C4);D("request",{version:"1.0.0"})});var x4,T4,P4,xf,dx=x(()=>{"use strict";R();ce();Je();x4=Q("showKeyboard",{paramsSchema:S.tuple(S.object({defaultValue:S.string().optional().default(""),multiple:S.boolean().optional().default(!1),maxLength:S.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)),L("showKeyboardSync",B(P({},e),{defaultValue:r,maxLength:t}))}});D("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"}});T4=Q("updateKeyboard",{paramsSchema:S.tuple(S.object({value:S.string()})),implement(e){L("updateKeyboardSync",e)}});D("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});P4=Q("hideKeyboard",{implement(){L("hideKeyboardSync")}});D("keyboard.hideKeyboard",{version:"1.0.0"});xf=K();xf.registerCommand("KeyboardSDK.showKeyboard",x4);xf.registerCommand("KeyboardSDK.updateKeyboard",T4);xf.registerCommand("KeyboardSDK.hideKeyboard",P4)});var mx=h(Ei=>{"use strict";R();Je();bt();ce();V();var ea=K(),jc=null,Tf=!1,px=0,O4=200;function R4(e){sn("cpUpdateScoreEvent",e,I.webviewId)}function fx(e){jc=e,Tf||(Tf=!0,requestAnimationFrame(function t(){let r=Date.now();r-px>=O4?(jc!==null&&(R4(jc),px=r,jc=null),Tf=!1):requestAnimationFrame(t)}))}function Pf(e,t){return ve("notifyTaskGameInfoAsync")?L("notifyTaskGameInfoAsync",{event:e,inGameInfo:t}):wt.reporter({event:e,extraParams:{inGameInfo:t}})}var N4=$("levelFinished",{paramsSchema:S.tuple(S.object({levelId:S.or(S.string(),S.number()),duration:S.number().optional(),rating:S.number().optional(),score:S.number().optional(),variation:S.string().optional()})),implement:e=>g(Ei,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(wt.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(Pf("COMPLETE_GAME_LEVEL",{levelId:t,duration:r,rating:n,score:i})),fx({levelId:t,duration:r,rating:n,score:i}),yield Promise.all(a)})}),D4=$("gamePlayEnded",{paramsSchema:S.tuple(S.object({duration:S.number().optional(),rating:S.number().optional(),score:S.number(),variation:S.string().optional()})),implement:e=>g(Ei,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(wt.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(Pf("GAME_ENDED",{duration:t,rating:r,score:n})),fx({duration:t,rating:r,score:n}),yield Promise.all(o)})}),L4=$("levelUpgrade",{paramsSchema:S.tuple(S.object({levelId:S.or(S.string(),S.number()),name:S.string().optional()})),implement:r=>g(Ei,[r],function*({levelId:e,name:t}){let n=[];n.push(wt.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(Pf("GAME_LEVEL_UP",{levelId:e,levelName:t})),sn("cpUpdateScoreEvent",{levelId:e},I.webviewId),yield Promise.all(n)})}),q4=$("levelStart",{paramsSchema:S.tuple(S.object({levelId:S.or(S.string(),S.number())})),implement:e=>g(Ei,null,function*(){let{levelId:t}=e;yield wt.tracker("LevelStart",{levelId:t})})}),U4=$("levelFailed",{paramsSchema:S.tuple(S.object({levelId:S.or(S.string(),S.number()),score:S.number().optional(),rating:S.number().optional(),duration:S.number().optional()})),implement:e=>g(Ei,null,function*(){let{levelId:t,score:r,rating:n,duration:i}=e;yield wt.tracker("LevelFailed",{levelId:t,score:r,rating:n,duration:i})})});ea.registerCommand("TaskTrackerSDK.levelFinished",N4);ea.registerCommand("TaskTrackerSDK.gamePlayEnded",D4);ea.registerCommand("TaskTrackerSDK.levelUpgrade",L4);ea.registerCommand("TaskTrackerSDK.levelStart",q4);ea.registerCommand("TaskTrackerSDK.levelFailed",U4);D("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"}}});D("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});D("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}});D("TaskTrackerSDK.onLevelStart",{version:"1.3.8",properties:{params:{levelId:"1.3.8"}}});D("TaskTrackerSDK.onLevelFailed",{version:"1.3.8",properties:{params:{levelId:"1.3.8",score:"1.3.8",rating:"1.3.8",duration:"1.3.8"}}})});var Of,Rf,Nf,M4,hx,Bc=x(()=>{"use strict";V();ce();Je();R();Ur();D("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"}});D("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0",isLogin:"1.0.0",isSubUser:"1.2.9"}});Of=new Map;_e("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))});Rf=(e,t=!1)=>g(void 0,null,function*(){var m,v,b;let{data:{isLogin:r}}=yield de("checkLoginAsync");if(r)return{isLogin:!0,token:(m=I.hostUserInfo)==null?void 0:m.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=L("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw Ce({code:-1,msg:"login failed"});let s=new ut;Of.set(a,s);let c=yield s.promise,l=L("envSync"),d=(b=(v=l==null?void 0:l.data)==null?void 0:v.hostUserInfo)==null?void 0:b.isSubUser;I.onEnvConfigChanged({hostUserInfo:B(P({},c),{isSubUser:d})});let y=c,{extra:u,appAccountToken:p}=y,f=Qe(y,["extra","appAccountToken"]);return we.emit("onLoginComplete",f),t?c:f}),Nf=$("login",{paramsSchema:S.tuple(S.object({skipLogin:S.boolean().optional(),triggerFrom:S.string().optional()}).optional()),implement(e){return g(this,null,function*(){return yield Rf(e!=null?e:{})})}}),M4=$("checkSession",{implement(){return g(this,null,function*(){var r;let{data:{isLogin:e}}=yield de("checkLoginAsync"),t=(r=I.hostUserInfo)==null?void 0:r.isSubUser;return{isLogin:e,isSubUser:t}})}}),hx=K();hx.registerCommand("API.login",Nf);hx.registerCommand("API.checkSession",M4)});var gx,vx=x(()=>{"use strict";gx=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 Cn(e){return t=>g(this,null,function*(){var c;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield Mr(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=yx(i.data),a=gx(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 kn(e){return()=>g(this,null,function*(){var i;let t=Date.now(),r=yield Mr(e),n=yx((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield _t(e,JSON.stringify(n))})}var yx,bx,_x,wx,Sx,Ix,Ex,Ax,Cx,kx,xx,Tx,Px,Ox,Rx,ta=x(()=>{"use strict";ro();vx();yx=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};bx=Cn("joli_coin_use_modal_frequency"),_x=Cn("joli_coin_payment_frequency"),wx=Cn("joli_coin_unlogin_modal_frequency"),Sx=Cn("joli_gem_use_modal_frequency"),Ix=Cn("joli_gem_payment_frequency"),Ex=Cn("joli_gem_unlogin_modal_frequency"),Ax=Cn("subscription_frequency");Cx=kn("joli_coin_use_modal_frequency"),kx=kn("joli_coin_payment_frequency"),xx=kn("joli_coin_unlogin_modal_frequency"),Tx=kn("joli_gem_use_modal_frequency"),Px=kn("joli_gem_payment_frequency"),Ox=kn("joli_gem_unlogin_modal_frequency"),Rx=kn("subscription_frequency")});var Df,Gc,Lf=x(()=>{"use strict";dt();Df=Promise.resolve(),Gc=(e,t)=>g(void 0,null,function*(){Df=Df.then(()=>g(void 0,null,function*(){yield Y(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Df})});var Jc,Hc,Gt,Vc,xn,Jt,Er,$c,Wc,Tn,Ai,F4,M,Ar,Cr,Be=x(()=>{"use strict";R();Jc="UNLOCK_OPTIONS_CHANGED",Hc="INVOKE_PAYMENT",Gt="ON_PAYMENT_RESULT",Vc="ON_USE_MODAL_EVENT",xn="ON_USE_MODAL_RESULT",Jt="ON_USE_MODAL_FREQUENCY",Er="ON_USE_UNLOGIN_MODAL_EVENT",$c="INVOKE_UNLOGIN_MODAL_EVENT",Wc="INVOKE_SUBSCRIPTION_EVENT",Tn="ON_USE_SUBSCRIPTION_RESULT",Ai=new Wt,F4=()=>({on:Ai.on.bind(Ai),off:Ai.off.bind(Ai),emit:Ai.emit.bind(Ai)}),M=F4(),Ar={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},joinMember:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},Cr={show:!0,minInterval:8*60*60*1e3}});function Ge(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=P(P({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var or=x(()=>{"use strict"});var Lx=h(qf=>{"use strict";ta();Lf();Be();Be();ir();bt();R();or();var j4={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:bx,frequencyUpdater:Cx,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:Sx,frequencyUpdater:Tx,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},Nx=An(),Dx=Ge(M,Jt);Dx.getData();M.on(Vc,(e,t)=>g(qf,null,function*(){let r=t.currency,n=j4[r];if(e.includes("ADS-")){yield Nx.show({duration:3e3});let c=yield Dx.getData(),{canShow:l,isFirst:d}=yield n.frequencyChecker(c.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,l,d),Nx.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){M.emit(xn,{useModalResult:"CONFIRM"});return}if(!l){M.emit(xn,{useModalResult:"FAILED"});return}}j(n.trackEvents.popupShow,{eventType:z.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=gk({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{j(n.trackEvents.coinUnlock,{targetType:"game",eventType:z.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),M.emit(xn,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:c})=>{c==="FAILED"&&j(n.trackEvents.adUnlock,{targetType:"game",eventType:z.Click,currency:r}),M.emit(xn,{useModalResult:(c!=null?c:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:c=>g(qf,null,function*(){yield Gc(c,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function qx(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return g(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return Ae(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var Ux=x(()=>{"use strict";yt()});var ra=x(()=>{"use strict"});var B4,Ci,Ct,G4,Pn,zc=x(()=>{"use strict";ra();R();V();dt();B4=()=>{let[e,t]=[Da,La].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Ci,createPaymentInternalError:Ct}=B4(),G4=I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Pn=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>g(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Ci(n,1001);return yield this.pay()});this.cancelOrder=t=>g(this,null,function*(){var n,i;let{response:r}=yield Y(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Ci((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(P({},this.generatePaymentContext()))),`${G4}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Mf,Mx,Fx=x(()=>{"use strict";dt();zc();ra();Mf=class extends Pn{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>g(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return g(this,null,function*(){var n,i,o,a;try{let{response:s}=yield Y("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Ci((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),Ct((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},Mx=()=>{let e=new Map;return t=>g(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 jx,Bx=x(()=>{"use strict";jx={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,Gx,jf,Bf,J4,Gf,Jx=x(()=>{"use strict";dt();zc();ra();ce();R();V();ir();Bx();Ff=new Map;_e("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")o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&Na(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Ct(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=jx[r];a&&Ir(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Ff.delete(t)}});Gx=e=>g(void 0,null,function*(){var n,i;let t=new ut,r;try{let o=yield de("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw Ct("orderUUID is null",1002);Ff.set(r,t)}catch(o){throw Ct((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),jf=class extends Pn{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>g(this,null,function*(){return yield Gx({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return g(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},Bf=class extends Pn{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>g(this,null,function*(){return yield Gx({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return g(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield Y("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw Ct("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"}})}},J4={android:jf,ios:Bf},Gf=()=>{let e=new Map;return t=>g(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=J4[I.platform];if(!s)throw Ct("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 Ci(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var On,Jf=x(()=>{"use strict";Ux();Fx();Jx();On=qx();On.registerPaymentHandler("JOLI_COIN",Mx());On.registerPaymentHandler("JOLI_COIN_IAP",Gf());On.registerPaymentHandler("JOLI_GEM_IAP",Gf())});function Hx(n,i){return g(this,arguments,function*(e,t,r={}){let{storageKeyPrefix:o="joli_cache_"}=r,a=o+e,s=a+"_timestamp";try{let c=yield t(),l=Date.now();try{c!=null&&(yield _t(a,c),yield _t(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 Kc(n,i){return g(this,arguments,function*(e,t,r={}){let{cacheDuration:o=-1,storageKeyPrefix:a="joli_cache_"}=r,s=a+e,c=s+"_timestamp",l=o===1/0||o===-1;try{let{data:d}=yield Mr(s),{data:u}=yield Mr(c);if(d&&u){let p=parseInt(u,10);if(l||Date.now()-p<o){console.log("[Cache] Using localStorage cached data for key:",e);let f=JSON.parse(d);return l||setTimeout(()=>g(this,null,function*(){try{console.log("[Cache] Background updating cache for key:",e);let m=yield t(),v=Date.now();yield _t(s,m),yield _t(c,v.toString()),console.log("[Cache] Background cache update completed for key:",e)}catch(m){console.warn("[Cache] Background cache update failed for key:",e,m)}}),0),f}else yield _t(s,null),yield _t(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 _t(s,d),yield _t(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 Hf=x(()=>{"use strict";ro()});function H4(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=>!Qi(r.totalAmountStr))}var Zr,Vf,ar,Xc,$f,Wf,Yc,Qc,Vx,Zc,zf=x(()=>{"use strict";Jf();R();ce();dt();R();Hf();Zr=class Zr{execute(t,r){return g(this,null,function*(){var a,s,c;let{response:n}=yield Y(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(console.log("[PaymentService] get products info from server",t,n.data),!((a=n.data)!=null&&a.data))throw new Error("get products info failed");let i=n.data.data,o=(c=(s=i.paymentChoices)==null?void 0:s.filter(l=>typeof l.appStoreProductId=="string").map(l=>l.appStoreProductId))!=null?c:[];if(o.length>0){let l=yield this.getNativePriceData(o);l&&H4(i,l)}if(i.paymentChoices.length===0)throw new Error("paymentChoices is empty");return i})}getNativePriceData(t){return g(this,null,function*(){let r=t.sort().join(",");return Kc(r,()=>g(this,null,function*(){try{let{data:n}=yield de("requestProductDetailsAsync",{appStoreProductIds:t});return n&&(Zr.nativePriceCache.set(r,n),Zr.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[PaymentService] Failed to fetch native product details:",n),n}}),{cacheDuration:Zr.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")}};Zr.nativePriceCache=new Map,Zr.NATIVE_PRICE_CACHE_DURATION=10*60*1e3,Zr.nativePriceCacheTimestamp=new Map;Vf=Zr,ar=class ar extends Ut{constructor(r,n){super(new Vf,{duration:10*60*1e3,timeout:3e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return g(this,null,function*(){let r=ar.failureCounters.get(this.apiEndpoint)||0;if(r>=ar.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${ar.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return ar.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw ar.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${ar.MAX_FAILURE_COUNT+1}) for ${this.apiEndpoint}:`,n),n}})}purchase(r){return g(this,null,function*(){var a;let n=yield this.getProductsInfo(),i=(a=n==null?void 0:n.paymentChoices.find(s=>s.productId===r))==null?void 0:a.appStoreProductId;if(!i)throw new Error("appStoreProductId not found");return yield On.invokePayment(this.paymentType==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}getProductsInfoWithBalance(){return g(this,null,function*(){return this.request(this.apiEndpoint)})}refreshProductsInfo(){return g(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}static resetFailureCounters(){this.failureCounters.clear()}static getFailureCount(r){return this.failureCounters.get(r)||0}};ar.failureCounters=new Map,ar.MAX_FAILURE_COUNT=2;Xc=ar,$f=class extends Xc{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},Wf=class extends Xc{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},Yc=null,Qc=null,Vx=()=>Yc||(Yc=new $f,Yc),Zc=()=>Qc||(Qc=new Wf,Qc)});var zx=h(el=>{"use strict";Be();ir();V();Bc();R();ta();Jf();ir();Je();bt();Lf();or();zf();var V4={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:_x,frequencyUpdater:kx,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:Ix,frequencyUpdater:Px,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},ki=An(),$x=Vx(),Wx=Zc(),$4=Ge(M,Jt);M.on(Hc,(e,t)=>g(el,null,function*(){var r,n,i;try{let o=t.currency,a=V4[o];if(!ve("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{M.emit(Gt,{paymentResult:"FAILED",currency:o})},0);return}if(e.includes("ADS-")){yield ki.show({duration:3e3});let d=yield $4.getData(),{canShow:u}=yield a.frequencyChecker(d.joliCoinUseAndCharge[a.frequencyConfigKey]);if(console.log(`${o} payment show by frequency`,u),ki.hide(),!u){M.emit(Gt,{paymentResult:"FAILED",currency:o});return}console.log("show by frequency")}yield ki.show({duration:3e3});let s=o==="JOLI_COIN"?$x:Wx,c=yield s.getProductsInfo();if(ki.hide(),!c||!((r=c.paymentChoices)!=null&&r.length)){M.emit(Gt,{paymentResult:"FAILED",currency:o});return}j(a.trackEvents.modalShow,{targetType:"game",eventType:z.View,currency:o});let l=vk({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:o,paymentChoices:(i=(n=c.paymentChoices)==null?void 0:n.map(d=>{var u;return B(P({},d),{totalAmountStr:(u=d.totalAmountStr)!=null?u:""})}))!=null?i:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:d=>g(el,null,function*(){var f,m,v,b,y,w,E,C;if(j(a.trackEvents.payEnsure,{targetType:"game",eventType:z.Click,payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(m=(f=c.paymentChoices.find(T=>T.productId===d))==null?void 0:f.totalAmountStr)!=null?m:""}),!((v=I.hostUserInfo)!=null&&v.isLogin)){let{data:T}=yield Nf({skipLogin:!0});if(!(T!=null&&T.isLogin)){console.log("login failed");return}let k=yield s.refreshProductsInfo();if(((b=k==null?void 0:k.balance)!=null?b:0)>=t.quantity){M.emit(Gt,{paymentResult:"SUCCESS",currency:o}),l.destroy();return}}console.log("invokeNativePayment",d);let u=(w=(y=c==null?void 0:c.paymentChoices)==null?void 0:y.find(T=>T.productId===d))==null?void 0:w.appStoreProductId;if(!u){M.emit(Gt,{paymentResult:"FAILED",currency:o}),l.destroy();return}yield ki.show({duration:3e3});let{code:p}=yield On.invokePayment(a.paymentType,{productId:d,appStoreProductId:u});if(ki.hide(),j(a.trackEvents.payResult,{eventType:z.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(C=(E=c.paymentChoices.find(T=>T.productId===d))==null?void 0:E.totalAmountStr)!=null?C:"",payResult:p}),p!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}Ir("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),M.emit(Gt,{paymentResult:"SUCCESS",currency:o}),l.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:d})=>{M.emit(Gt,{paymentResult:(d!=null?d:"")==="CANCEL"?"CANCEL":"FAILED",currency:o}),j(a.trackEvents.adUnlock,{targetType:"game",eventType:z.Click,currency:o}),l.destroy()}},onEnableDeductChanged:d=>g(el,null,function*(){yield Gc(d,a.apiEndpointAutoDeduct)})},onSelect:d=>{var u,p;j(a.trackEvents.orderClick,{targetType:"game",eventType:z.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),M.emit(Gt,{paymentResult:"FAILED",currency:t.currency})}}));$x.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});Wx.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var Yx=h(tl=>{"use strict";Be();or();ta();dt();yt();R();Bc();ir();bt();var W4={JOLI_COIN:{frequencyChecker:wx,frequencyUpdater:xx,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:Ex,frequencyUpdater:Ox,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},Kx=Ge(M,Jt);Kx.getData();M.on($c,(e,t)=>g(tl,null,function*(){var r;try{let n=t.currency,i=W4[n];if(e.includes("ADS-")){let s=yield Kx.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){M.emit(Er,{result:"NOT_SUPPORT"});return}let{canShow:c}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,c),!c){M.emit(Er,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield z4())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),M.emit(Er,{result:"NOT_SUPPORT"});return}j(i.trackEvents.modalExpose,{eventType:z.Expose,currency:n},z.Expose);let a=yk({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>g(tl,null,function*(){var d,u,p,f;j(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:z.Click,currency:n},z.Click);let{isLogin:s,extra:c,isFirstLogin:l}=yield Rf({},!0);if(!s){console.log("login failed");return}if(j(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:l,eventType:z.Click,currency:n},z.Click),l&&((d=c==null?void 0:c.firstLogin)!=null&&d.reward)){let{rewardValue:m}=c.firstLogin.reward;Ir(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}M.emit(Er,{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:z.Hide,currency:n},z.Hide);let c=s==="CANCEL"?"click_close":"click_watch_ads",l=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;j(l,{type:c,eventType:z.Click,currency:n},z.Click),M.emit(Er,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){Ae(new ag(n)),M.emit(Er,{result:"FAILED"})}}));var z4=()=>g(tl,null,function*(){var t;let{response:e}=yield Y("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function K4(){let e=new Map;return{registerSubscriptionHandler(r,n){e.set(r,n)},invokeSubscription(r,...n){return g(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} subscription not supported in this platform`};try{return yield i(...n)}catch(o){return Ae(o),{code:"FAILED",message:`[joliboxSDK]: subscription error ${o}`}}})}}}var na,Kf=x(()=>{"use strict";yt();na=K4()});var Rn,rl=x(()=>{"use strict";Rn={PlaceOrderFailed:1001,CancelOrderFailed:1002,SubscriptionFailed:1003,InvalidPlan:1004}});var Y4,Qx,nl,Q4,ia,Yf=x(()=>{"use strict";rl();R();V();Y4=()=>{let[e,t]=[Da,La].map(r=>(n,i,o)=>new r(n,i,o));return{createSubscriptionError:e,createSubscriptionInternalError:t}},{createSubscriptionError:Qx,createSubscriptionInternalError:nl}=Y4(),Q4=I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",ia=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startSubscription=t=>g(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Qx(n,Rn.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(P({},this.generateSubscriptionContext()))),`${Q4}/subscription/callback?${t.toString()}`};this.createSubscriptionError=Qx;this.createSubscriptionInternalError=nl}setOrderId(t){this._orderId=t}setOrderStatus(t){this._orderStatus=t}get orderId(){return this._orderId}get status(){return this._orderStatus}}});function X4(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=>!Qi(r.amountStr))}var Nn,ol,Qf,Xf,il,Xx,Zf=x(()=>{"use strict";R();ce();dt();R();Hf();Kf();ce();Yf();rl();Nn=class Nn{static getNativePriceCache(t){var n;let r=t.sort().join(",");return(n=this.nativePriceCache.get(r))!=null?n:{}}execute(t,r){return g(this,null,function*(){var a,s;let{response:n}=yield Y(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(!((a=n.data)!=null&&a.data))throw new Error("get subscription tiers failed");let i=n.data.data,o=(s=i==null?void 0:i.filter(c=>typeof c.appStoreProductId=="string").map(c=>c.appStoreProductId))!=null?s:[];if(o.length>0){let c=yield this.getNativePriceData(o);c&&X4(i,c)}if(i.length===0)throw new Error("subscription tiers is empty");return i})}requestNativeSubscriptionPlans(t,r){return g(this,null,function*(){try{let{data:n}=yield de("requestSubscriptionPlansAsync",{appStoreProductIds:t,type:"game"});return n&&(Nn.nativePriceCache.set(r,n),Nn.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[SubscriptionService] Failed to fetch native subscription pricing:",n),n}})}getNativePriceData(t,r=!1){return g(this,null,function*(){let n=t.sort().join(",");return(r?Hx:Kc)(n,()=>this.requestNativeSubscriptionPlans(t,n),{storageKeyPrefix:"joli_subscription_price_"})})}extractCacheableData(t){return{subscriptionTiers:t}}mergeData(){throw new Error("SubscriptionService does not support real-time data merging")}processCachedData(t){return t.subscriptionTiers}updateNativePriceCache(t){return g(this,null,function*(){yield this.getNativePriceData(t,!0),console.log("[SubscriptionService] Updated native price cache for products:",t)})}static clearNativePriceCache(){this.nativePriceCache.clear(),this.nativePriceCacheTimestamp.clear(),console.log("[SubscriptionService] Cleared native price cache")}};Nn.nativePriceCache=new Map,Nn.NATIVE_PRICE_CACHE_DURATION=1*24*60*60*1e3,Nn.nativePriceCacheTimestamp=new Map;ol=Nn,Qf=class extends Ut{constructor(r){super(new ol,{duration:30*60*1e3,timeout:3e3});this.apiEndpoint=r;this.pendingSubscriptions=new Map;this.subInfoCacheKeys=[];this.listenSubscriptionPanelStateChange()}getSubInfo(){return g(this,null,function*(){var r;try{let n=yield this.request(this.apiEndpoint);return this.subInfoCacheKeys=(r=n==null?void 0:n.map(i=>{var o;return(o=i.appStoreProductId)!=null?o:""}))!=null?r:[],n}catch(n){throw console.warn(`[SubscriptionService] getSubInfo failed for ${this.apiEndpoint}:`,n),n}})}refreshSubInfo(){return g(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}updateNativePriceCache(r){return g(this,null,function*(){yield this.requestAdapter.updateNativePriceCache(r)})}updateAllNativePriceCache(){return g(this,null,function*(){try{this.subInfoCacheKeys.length>0&&(yield this.updateNativePriceCache(this.subInfoCacheKeys),this.forceRequest(this.apiEndpoint))}catch(r){throw console.warn("[SubscriptionService] Failed to update all native price cache:",r),r}})}subscribe(r){return g(this,null,function*(){var s;console.log("[SubscriptionService] subscribe params",na);let n=new AbortController,i=na.invokeSubscription("SUB_APP",{productId:r.nativeProductId,appStoreProductId:r.appStoreProductId,planId:r.basePlanId}),o=this.pollSubscriptionStatus(n.signal),a=yield Promise.race([i.then(c=>{var l;return n.abort(),{result:c.code,subPlanId:(l=c.data)==null?void 0:l.subPlanId,message:c.message}}),o.then(c=>(c==null?void 0:c.result)==="SUCCESS"?(n.abort(),c):new Promise(()=>{console.log("[SubscriptionPolling] Timeout for subscriptionService.subscribe completion")}))]);return{result:a.result,subPlanId:a.subPlanId,message:(s=a.message)!=null?s:""}})}pollSubscriptionStatus(r){return g(this,null,function*(){var o,a;for(let s=0;s<10;s++){if(r.aborted){console.log("[SubscriptionPolling] Aborted due to subscribe completion");return}try{let{response:c}=yield Y("/api/subs/info",{method:"GET",appendHostCookie:!0,responseType:"json"});if(((a=(o=c.data)==null?void 0:o.data)==null?void 0:a.status)==="ACTIVE")return{result:"SUCCESS",subPlanId:c.data.data.subPlanId,message:"Subscription activated via polling"}}catch(c){console.warn(`[SubscriptionPolling] Attempt ${s+1} failed:`,c)}s<9&&!r.aborted&&(yield Ra(5e3))}})}invokeSubscriptionPanel(){return g(this,null,function*(){var i,o;let r=new ut,n;try{if(console.log("[invokeSubscriptionPanel] requestSubscriptionSync params"),n=(i=L("invokeSubscriptionPanelSync",{type:"game"}).data)==null?void 0:i.subUUID,!n)throw nl("orderUUID is null",Rn.SubscriptionFailed);this.pendingSubscriptions.set(n,r)}catch(a){throw nl((o=JSON.stringify(a))!=null?o:"subscription panel failed",Rn.SubscriptionFailed)}return r.promise})}getTierByProductId(r){return g(this,null,function*(){var s;let n=yield this.getSubInfo(),i=n==null?void 0:n.find(c=>c.productId===r);if(!i)return;let o=ol.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(){_e("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 Qf{constructor(){super("/api/subs/pricing")}},il=null,Xx=()=>il||(il=new Xf,il)});var Zx=x(()=>{"use strict"});function tT(){let e=new Map;return t=>g(this,null,function*(){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler params",t);let{productId:r,planId:n}=t,i=`${r}_${n}`,o=e.get(i);if(!o){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler instance not found",i);let a=Z4[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 em,eT,tm,rm,Z4,rT=x(()=>{"use strict";V();Yf();ra();zc();R();ce();R();rl();_e("onGlobalSubscriptionStateChange",e=>{let{status:t,orderResponse:r}=e;console.log("[onGlobalSubscriptionStateChange] data",e),t==="SUCCESS"&&(r!=null&&r.subPlanId||r!=null&&r.ticketId)&&I.onEnvConfigChanged({hostUserInfo:{isLogin:!0,isSubUser:!0}})});em=new Map;_e("onSubscritptionStateChange",e=>{var o,a,s;let{subUUID:t,status:r,orderResponse:n}=e;console.log("[onSubscritptionStateChange] data",e);let i=em.get(t);if(i){if(r==="SUCCESS")console.log("=======onSubscritptionStateChange",r,(o=n==null?void 0:n.subPlanId)!=null?o:n==null?void 0:n.ticketId),i.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{subPlanId:(a=n==null?void 0:n.subPlanId)!=null?a:n==null?void 0:n.ticketId}});else{if(r==="FAILED"&&Na(n==null?void 0:n.errNo)&&(n==null?void 0:n.errNo)!==0)throw Ct(`subscription failed: ${n==null?void 0:n.errMsg}`,Rn.SubscriptionFailed);i.resolve({code:r,message:(s=n==null?void 0:n.errMsg)!=null?s:"UNKNOWN_ERROR"})}em.delete(t)}});eT=e=>g(void 0,null,function*(){var n,i;let t=new ut,r;try{if(console.log("[internalSubscribe] requestSubscriptionSync params",e),r=(n=L("requestSubscriptionSync",P({params:{basePlanId:e.basePlanId,appStoreProductId:e.appStoreProductId,productId:e.productId}},e.appAccountToken?{paymentBody:{appAccountToken:e.appAccountToken,appStoreProductId:e.appStoreProductId}}:{})).data)==null?void 0:n.subUUID,!r)throw Ct("subUUID is null",1002);em.set(r,t)}catch(o){throw Ct((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),tm=class extends ia{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return g(this,null,function*(){return{code:"SUCCESS",message:"Android subscription order placed locally"}})}cancelOrder(r){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})}generateSubscriptionContext(){return{gameId:I.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return g(this,null,function*(){return yield eT(r)})}},rm=class extends ia{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return g(this,null,function*(){var o,a;console.log("----start place order for iOS subscription----");let n=L("envSync"),i=(a=(o=n==null?void 0:n.data)==null?void 0:o.hostUserInfo)==null?void 0:a.appAccountToken;if(!i)throw Ct("appAccountToken is null",1002);return this.subscriptionToken=i,{code:"SUCCESS",message:"placeorder sub-app success in native"}})}cancelOrder(r){return g(this,null,function*(){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})})}generateSubscriptionContext(){return{gameId:I.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return g(this,null,function*(){return yield eT(B(P({},r),{appAccountToken:this.subscriptionToken}))})}},Z4={android:tm,ios:rm}});var Dn,nm=x(()=>{"use strict";Zf();Zx();Kf();rT();Zf();Dn=Xx();na.registerSubscriptionHandler("SUB_APP",tT())});var aT=h(oT=>{"use strict";ta();Be();or();Je();nm();ir();var eV={SUBSCRIPTION:{frequencyConfigKey:"joinMember",frequencyChecker:Ax,frequencyUpdater:Rx}},nT=An(),iT=Ge(M,Jt);iT.getData();M.on(Wc,e=>g(oT,null,function*(){let t=eV.SUBSCRIPTION;if(!ve("invokeSubscriptionPanelSync")){console.info("invokeSubscriptionPanelSync not supported"),setTimeout(()=>{M.emit(Tn,{result:"FAILED"})},0);return}yield nT.show({duration:3e3});let r=yield iT.getData(),{canShow:n,isFirst:i}=yield t.frequencyChecker(r.joliCoinUseAndCharge[t.frequencyConfigKey]);if(nT.hide(),!n){M.emit(Tn,{result:"FAILED"});return}let{data:o,code:a}=yield Dn.invokeSubscriptionPanel();a=="SUCCESS"?M.emit(Tn,{result:"SUCCESS"}):M.emit(Tn,{result:"FAILED"}),yield t.frequencyUpdater()}))});var jne,Bne,Gne,Jne,sT=x(()=>{"use strict";jne=se(Lx()),Bne=se(zx()),Gne=se(Yx()),Jne=se(aT())});var xi,im=x(()=>{"use strict";xi=(e,t)=>{var r;window.dispatchEvent(new CustomEvent(e,{detail:t})),(r=window.parent)==null||r.postMessage({type:e,data:{detail:t}},"*")}});function mV(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function hV(e){return typeof e=="string"}function gV(e){return typeof e=="undefined"}function vV(e){return gV(e)||e===null}function yV(e){return typeof e=="function"}function jT(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 oa(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function ll(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 AV(e){let t=e.location?ll(e.location,fT):null,r=e.target?ll(e.target,fT):null;return ll(dV(uV({},e),{location:t,target:r}),IV)}function CV(e){let t=e.events.map(n=>AV(n)),r=ll(e.device,EV);return[e.protocolVersion,t,r,e.project]}function kV(){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 RV(e){return new Promise(t=>HT(e)(t))}function HT(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 NV(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new da(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 LV(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)qV(e[n],t[n])}function qV(e,t){if(hV(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(yV(t)){try{if(e instanceof t)return}catch(r){}if(!vV(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 mt(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=MV(e,"string");return typeof t=="symbol"?t:t+""}function MV(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 al(e,t,r){return(t=FV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FV(e){var t=jV(e,"string");return typeof t=="symbol"?t:t+""}function jV(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sl(e,t,r){return(t=BV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BV(e){var t=GV(e,"string");return typeof t=="symbol"?t:t+""}function GV(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 kr(e,t,r){return(t=JV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JV(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 VV(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 $V(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 XV(e,t){return ze(e,0)^45?(((t<<2^ze(e,0))<<2^ze(e,1))<<2^ze(e,2))<<2^ze(e,3):0}function WT(e){return e.trim()}function ZV(e,t){return(e=t.exec(e))?e[0]:e}function ne(e,t,r){return e.replace(t,r)}function wm(e,t){return e.indexOf(t)}function ze(e,t){return e.charCodeAt(t)|0}function pa(e,t,r){return e.slice(t,r)}function sr(e){return e.length}function Gm(e){return e.length}function cl(e,t){return t.push(e),e}function e$(e,t){return e.map(t).join("")}function Al(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:El,column:Di,length:a,return:""}}function sa(e,t){return QV(Al("",null,null,"",null,null,0),e,{length:-e.length},t)}function t$(){return De}function r$(){return De=gt>0?ze(qi,--gt):0,Di--,De===10&&(Di=1,El--),De}function xt(){return De=gt<zT?ze(qi,gt++):0,Di++,De===10&&(Di=1,El++),De}function cr(){return ze(qi,gt)}function ul(){return gt}function ma(e,t){return pa(qi,e,t)}function fa(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 KT(e){return El=Di=1,zT=sr(qi=e),gt=0,[]}function YT(e){return qi="",e}function dl(e){return WT(ma(gt-1,Sm(e===91?e+2:e===40?e+1:e)))}function n$(e){for(;(De=cr())&&De<33;)xt();return fa(e)>2||fa(De)>3?"":" "}function i$(e,t){for(;--t&&xt()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return ma(e,ul()+(t<6&&cr()==32&&xt()==32))}function Sm(e){for(;xt();)switch(De){case e:return gt;case 34:case 39:e!==34&&e!==39&&Sm(De);break;case 40:e===41&&Sm(e);break;case 92:xt();break}return gt}function o$(e,t){for(;xt()&&e+De!==57&&!(e+De===84&&cr()===47););return"/*"+ma(t,gt-1)+"*"+Il(e===47?e:xt())}function a$(e){for(;!fa(cr());)xt();return ma(e,gt)}function s$(e){return YT(pl("",null,null,null,[""],e=KT(e),0,[0],e))}function pl(e,t,r,n,i,o,a,s,c){for(var l=0,d=0,u=a,p=0,f=0,m=0,v=1,b=1,y=1,w=0,E="",C=i,T=o,k=n,A=E;b;)switch(m=w,w=xt()){case 40:if(m!=108&&ze(A,u-1)==58){wm(A+=ne(dl(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=dl(w);break;case 9:case 10:case 13:case 32:A+=n$(m);break;case 92:A+=i$(ul()-1,7);continue;case 47:switch(cr()){case 42:case 47:cl(c$(o$(xt(),ul()),t,r),c);break;default:A+="/"}break;case 123*v:s[l++]=sr(A)*y;case 125*v:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:y==-1&&(A=ne(A,/\f/g,"")),f>0&&sr(A)-u&&cl(f>32?gT(A+";",n,r,u-1):gT(ne(A," ","")+";",n,r,u-2),c);break;case 59:A+=";";default:if(cl(k=hT(A,t,r,l,d,i,s,E,C=[],T=[],u),o),w===123)if(d===0)pl(A,t,k,k,C,o,u,s,T);else switch(p===99&&ze(A,3)===110?100:p){case 100:case 108:case 109:case 115:pl(e,k,k,n&&cl(hT(e,k,k,0,0,i,s,E,i,C=[],u),T),i,T,u,s,n?C:T);break;default:pl(A,k,k,k,[""],T,0,s,T)}}l=d=f=0,v=y=1,E=A="",u=a;break;case 58:u=1+sr(A),f=m;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&r$()==125)continue}switch(A+=Il(w),w*v){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[l++]=(sr(A)-1)*y,y=1;break;case 64:cr()===45&&(A+=dl(xt())),p=cr(),d=u=sr(E=A+=a$(ul())),w++;break;case 45:m===45&&sr(A)==2&&(v=0)}}return o}function hT(e,t,r,n,i,o,a,s,c,l,d){for(var u=i-1,p=i===0?o:[""],f=Gm(p),m=0,v=0,b=0;m<n;++m)for(var y=0,w=pa(e,u+1,u=YV(v=a[m])),E=e;y<f;++y)(E=WT(v>0?p[y]+" "+w:ne(w,/&\f/g,p[y])))&&(c[b++]=E);return Al(e,t,r,i===0?jm:s,c,l,d)}function c$(e,t,r){return Al(e,t,r,VT,Il(t$()),pa(e,2,-2),0)}function gT(e,t,r,n){return Al(e,t,r,Bm,pa(e,0,n),pa(e,n+1,-1),n)}function Ni(e,t){for(var r="",n=Gm(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function l$(e,t,r,n){switch(e.type){case KV:if(e.children.length)break;case zV:case Bm:return e.return=e.return||e.value;case VT:return"";case $T:return e.return=e.value+"{"+Ni(e.children,n)+"}";case jm:e.value=e.props.join(",")}return sr(r=Ni(e.children,n))?e.return=e.value+"{"+r+"}":""}function u$(e){var t=Gm(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 d$(e){return function(t){t.root||(t=t.return)&&e(t)}}function p$(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function QT(e,t){switch(XV(e,t)){case 5103:return re+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return re+e+vl+e+it+e+e;case 6828:case 4268:return re+e+it+e+e;case 6165:return re+e+it+"flex-"+e+e;case 5187:return re+e+ne(e,/(\w+).+(:[^]+)/,re+"box-$1$2"+it+"flex-$1$2")+e;case 5443:return re+e+it+"flex-item-"+ne(e,/flex-|-self/,"")+e;case 4675:return re+e+it+"flex-line-pack"+ne(e,/align-content|flex-|-self/,"")+e;case 5548:return re+e+it+ne(e,"shrink","negative")+e;case 5292:return re+e+it+ne(e,"basis","preferred-size")+e;case 6060:return re+"box-"+ne(e,"-grow","")+re+e+it+ne(e,"grow","positive")+e;case 4554:return re+ne(e,/([^-])(transform)/g,"$1"+re+"$2")+e;case 6187:return ne(ne(ne(e,/(zoom-|grab)/,re+"$1"),/(image-set)/,re+"$1"),e,"")+e;case 5495:case 3959:return ne(e,/(image-set\([^]*)/,re+"$1$`$1");case 4968:return ne(ne(e,/(.+:)(flex-)?(.*)/,re+"box-pack:$3"+it+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+re+e+e;case 4095:case 3583:case 4068:case 2532:return ne(e,/(.+)-inline(.+)/,re+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(sr(e)-1-t>6)switch(ze(e,t+1)){case 109:if(ze(e,t+4)!==45)break;case 102:return ne(e,/(.+:)(.+)-([^]+)/,"$1"+re+"$2-$3$1"+vl+(ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wm(e,"stretch")?QT(ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ze(e,t+1)!==115)break;case 6444:switch(ze(e,sr(e)-3-(~wm(e,"!important")&&10))){case 107:return ne(e,":",":"+re)+e;case 101:return ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+re+(ze(e,14)===45?"inline-":"")+"box$3$1"+re+"$2$3$1"+it+"$2box$3")+e}break;case 5936:switch(ze(e,t+11)){case 114:return re+e+it+ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return re+e+it+ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return re+e+it+ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return re+e+it+e+e}return e}function w$(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 yl(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 tn={name:i.name,styles:i.styles,next:tn},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)tn={name:a.name,styles:a.styles,next:tn},a=a.next;var s=o.styles+";";return s}return A$(e,t,r)}}var c=r;if(t==null)return c;var l=t[c];return l!==void 0?l:c}function A$(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=yl(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]+"}":yT(s)&&(n+=am(o)+":"+bT(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++)yT(a[c])&&(n+=am(o)+":"+bT(o,a[c])+";");else{var l=yl(e,t,a);switch(o){case"animation":case"animationName":{n+=am(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}function sm(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="";tn=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=yl(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=yl(r,t,e[s]),n){var c=o;i+=c[s]}_T.lastIndex=0;for(var l="",d;(d=_T.exec(i))!==null;)l+="-"+d[1];var u=w$(i)+l;return{name:u,styles:i,next:tn}}function ZT(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function wT(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function ST(e,t,r){var n=[],i=ZT(e,n,r);return n.length<2?r:i+t(n)}function O$(e,t){Fe.__h&&Fe.__h(kt,e,ET||t),ET=0;var r=kt.__H||(kt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function tP(e,t){var r=O$(Im++,7);return D$(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function R$(){for(var e;e=eP.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(fl),e.__H.__h.forEach(Em),e.__H.__h=[]}catch(t){e.__H.__h=[],Fe.__e(t,e.__v)}}function N$(e){var t,r=function(){clearTimeout(n),OT&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);OT&&(t=requestAnimationFrame(r))}function fl(e){var t=kt,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),kt=t}function Em(e){var t=kt;e.__c=e.__(),kt=t}function D$(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Cl(){if(rn>1)rn--;else{for(var e,t=!1;la!==void 0;){var r=la;for(la=void 0,Am++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&nP(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Am=0,rn--,t)throw e}}function Ke(e){if(rn>0)return e();rn++;try{return e()}finally{Cl()}}function rP(e){if(le!==void 0){var t=e.n;if(t===void 0||t.t!==le)return t={i:0,S:e,p:le.s,n:void 0,t:le,e:void 0,x:void 0,r:t},le.s!==void 0&&(le.s.n=t),le.s=t,e.n=t,32&le.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=le.s,t.n=void 0,le.s.n=t,le.s=t),t}}function Ye(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function W(e){return new Ye(e)}function nP(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 iP(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 oP(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 Ui(e){Ye.call(this,void 0),this.x=e,this.s=void 0,this.g=bl-1,this.f=4}function ua(e){return new Ui(e)}function aP(e){var t=e.u;if(e.u=void 0,typeof t=="function"){rn++;var r=le;le=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Jm(e),n}finally{le=r,Cl()}}}function Jm(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,aP(e)}function q$(e){if(le!==this)throw new Error("Out-of-order effect");oP(this),le=e,this.f&=-2,8&this.f&&Jm(this),Cl()}function ha(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function ga(e){var t=new ha(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Mi(e,t){q[e]=t.bind(null,q[e]||function(){})}function _l(e){lm&&lm(),lm=e&&e.S()}function lP(e){var t=this,r=e.data,n=uP(r);n.value=r;var i=tP(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=ua(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=ua(function(){return!Array.isArray(l.value)&&!Ru(l.value)}),u=ga(function(){if(this.N=dP,d.value){var f=l.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=f)}}),p=t.__$u.d;return t.__$u.d=function(){u(),p.call(this)},[d,l]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function U$(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=W(r);return{o:function(a,s){o.value=a,n=s},d:ga(function(){this.N=dP;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function uP(e){return tP(function(){return W(e)},[])}function F$(){Ke(function(){for(var e;e=cP.shift();)sP.call(e)})}function dP(){cP.push(this)===1&&(q.requestAnimationFrame||M$)(F$)}function j$(e,t){let r=oi(e);ii(()=>{r.current=e},[e]),bn(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function X(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:--B$,__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 q.vnode&&q.vnode(l),l}function xr(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=e9(e,"string");return typeof t=="symbol"?t:t+""}function e9(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 ct(e,t,r){return(t=p9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p9(e){var t=f9(e,"string");return typeof t=="symbol"?t:t+""}function f9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tr(e,t,r){return(t=v9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v9(e){var t=y9(e,"string");return typeof t=="symbol"?t:t+""}function y9(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 nt(e,t,r){return(t=b9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b9(e){var t=_9(e,"string");return typeof t=="symbol"?t:t+""}function _9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ht(e,t,r){return(t=S9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S9(e){var t=I9(e,"string");return typeof t=="symbol"?t:t+""}function I9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ln(e,t,r){return(t=E9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E9(e){var t=A9(e,"string");return typeof t=="symbol"?t:t+""}function A9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function um(e,t,r){return(t=C9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C9(e){var t=k9(e,"string");return typeof t=="symbol"?t:t+""}function k9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lt(e,t,r){return(t=x9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x9(e){var t=T9(e,"string");return typeof t=="symbol"?t:t+""}function T9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P9(e,t,r){return(t=O9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O9(e){var t=R9(e,"string");return typeof t=="symbol"?t:t+""}function R9(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 Pr(e,t,r){return(t=D9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D9(e){var t=L9(e,"string");return typeof t=="symbol"?t:t+""}function L9(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 Or(e,t,r){return(t=q9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q9(e){var t=U9(e,"string");return typeof t=="symbol"?t:t+""}function U9(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 ca(e,t,r){return(t=M9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M9(e){var t=F9(e,"string");return typeof t=="symbol"?t:t+""}function F9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NT(e,t,r,n){return new Promise((i,o)=>{if(!window.parent||window.parent===window){o(new Error("[ParentProxy] No parent window"));return}let a=`${dm}-${++j9}`,s=l=>{let d=l.data;(d==null?void 0:d.type)===`${dm}:response`&&d.id===a&&(window.removeEventListener("message",s),clearTimeout(c),d.error?o(new Error(d.error)):i(d.result))},c=window.setTimeout(()=>{window.removeEventListener("message",s),o(new Error(`[ParentProxy] Timeout: ${e.join(".")}.${t}`))},15e3);window.addEventListener("message",s),window.parent.postMessage({type:`${dm}:request`,id:a,path:e,action:t,args:r,value:n},"*")})}function fP(e){return console.log("[JoliboxSDK] NewsBreak createProxyForPath basePath:",e),new Proxy(()=>{},{get(t,r){if(console.log("[JoliboxSDK] NewsBreak createProxyForPath get:",r),!(r==="then"||r==="toJSON"||typeof r=="symbol"))return fP([...e,r])},set(t,r,n){return console.log("[JoliboxSDK] NewsBreak createProxyForPath set:",r),NT([...e,r],"set",void 0,n).catch(i=>{console.warn(`[ParentProxy] set ${[...e,r].join(".")} failed:`,i)}),!0},apply(t,r,n){return console.log("[JoliboxSDK] NewsBreak createProxyForPath apply:",n),NT(e,"call",n)}})}function B9(e){return fP([e])}function en(e,t,r){return(t=G9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G9(e){var t=J9(e,"string");return typeof t=="symbol"?t:t+""}function J9(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=H9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H9(e){var t=V9(e,"string");return typeof t=="symbol"?t:t+""}function V9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ht(e,t,r){return(t=$9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $9(e){var t=W9(e,"string");return typeof t=="symbol"?t:t+""}function W9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tV,rV,nV,gl,LT,qT,cT,UT,iV,oV,MT,aV,sV,lT,cV,lV,uT,uV,dV,pV,FT,fV,bV,_V,dT,wV,pT,SV,BT,GT,JT,fT,IV,EV,Oi,pm,fm,be,xV,TV,aa,da,PV,hm,OV,om,DV,gm,mT,Ti,vm,ym,bm,_m,WV,it,vl,re,VT,jm,Bm,zV,$T,KV,YV,Il,QV,El,Di,zT,gt,De,qi,f$,m$,h$,vT,g$,v$,y$,b$,_$,S$,I$,E$,XT,yT,am,bT,_T,tn,C$,k$,x$,T$,P$,ot,Im,kt,cm,IT,ET,eP,Fe,AT,CT,kT,xT,TT,PT,OT,L$,le,la,rn,Am,bl,sP,lm,cP,M$,je,B$,G$,Rr,Cm,km,ml,J$,H$,V$,$$,W$,z$,K$,Y$,Q$,X$,xm,t9,r9,n9,i9,o9,a9,s9,RT,c9,l9,u9,d9,Tm,Ri,Pi,m9,h9,g9,Pm,pP,w9,Om,Rm,Nm,wl,Dm,N9,Sl,Lm,qm,Um,dm,j9,hl,Mm,Fm,Li,zne,Hm=x(()=>{"use strict";zn();Es();ce();tV=Object.defineProperty,rV=Object.defineProperties,nV=Object.getOwnPropertyDescriptors,gl=Object.getOwnPropertySymbols,LT=Object.prototype.hasOwnProperty,qT=Object.prototype.propertyIsEnumerable,cT=(e,t,r)=>t in e?tV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,UT=(e,t)=>{for(var r in t||(t={}))LT.call(t,r)&&cT(e,r,t[r]);if(gl)for(var r of gl(t))qT.call(t,r)&&cT(e,r,t[r]);return e},iV=(e,t)=>rV(e,nV(t)),oV=(e,t)=>{var r={};for(var n in e)LT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&gl)for(var n of gl(e))t.indexOf(n)<0&&qT.call(e,n)&&(r[n]=e[n]);return r},MT=Object.defineProperty,aV=Object.defineProperties,sV=Object.getOwnPropertyDescriptors,lT=Object.getOwnPropertySymbols,cV=Object.prototype.hasOwnProperty,lV=Object.prototype.propertyIsEnumerable,uT=(e,t,r)=>t in e?MT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uV=(e,t)=>{for(var r in t||(t={}))cV.call(t,r)&&uT(e,r,t[r]);if(lT)for(var r of lT(t))lV.call(t,r)&&uT(e,r,t[r]);return e},dV=(e,t)=>aV(e,sV(t)),pV=(e,t)=>{for(var r in t)MT(e,r,{get:t[r],enumerable:!0})},FT=(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},fV=(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}bV=(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))(bV||{});_V={log:oa("log"),warn:oa("warn"),info:oa("info"),error:oa("error"),debug:oa("debug")};Object.assign(globalThis,{logger:_V});dT=Symbol.for("Jolibox.canIUseMap"),wV={};globalThis[dT]||(globalThis[dT]=wV);pT=Symbol.for("Jolibox.canIUseMap.native"),SV={};globalThis[pT]||(globalThis[pT]=SV);BT=(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))(BT||{}),GT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(GT||{}),JT=(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))(JT||{}),fT=["name","params"],IV=["name","type","location","target","extra","timestamp","userId"],EV=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];kV();Oi=typeof window=="undefined",pm=()=>!Oi&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Oi&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Oi&&navigator.userAgent.includes("Android"),!Oi&&navigator.userAgent.includes("Mac"),!Oi&&navigator.userAgent.includes("FB_IAB"),!Oi&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");fm=class mm{constructor(t){this.element=t,this.next=mm.Undefined,this.prev=mm.Undefined}};fm.Undefined=new fm(void 0);be=fm,xV=class{constructor(){this._first=be.Undefined,this._last=be.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===be.Undefined}clear(){let e=this._first;for(;e!==be.Undefined;){let t=e.next;e.prev=be.Undefined,e.next=be.Undefined,e=t}this._first=be.Undefined,this._last=be.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new be(e);if(this._first===be.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!==be.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==be.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==be.Undefined&&e.next!==be.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===be.Undefined&&e.next===be.Undefined?(this._first=be.Undefined,this._last=be.Undefined):e.next===be.Undefined?(this._last=this._last.prev,this._last.next=be.Undefined):e.prev===be.Undefined&&(this._first=this._first.next,this._first.prev=be.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==be.Undefined;)yield e.element,e=e.next}},TV=0,aa=class{constructor(e){this.value=e,this.id=TV++}},da=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 aa&&(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 aa(e);return this._listeners?this._listeners instanceof aa?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 aa)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 aa?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},PV=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 da,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 xV,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)}},hm={};pV(hm,{None:()=>OV,filter:()=>NV,once:()=>HT,toPromise:()=>RV});OV=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});om=Symbol.for("Jolibox.hostEmitter"),DV=()=>{let e=new PV;return globalThis[om]||(globalThis[om]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[om]};DV();gm=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new da,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 LV(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}};gm=FT([jT],gm);mT=class{constructor(){this._onWillExecuteCommand=new da,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new da,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new gm,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=mV(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 fV(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),hm.toPromise(hm.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{}}};mT=FT([jT],mT);Ti=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")},vm=class{constructor(t){mt(this,"context",void 0),mt(this,"continueCallback",void 0),mt(this,"adIsShowingCallback",void 0),mt(this,"isBeforeAdCalled",!1),mt(this,"isBeforeRewardCalled",!1),mt(this,"isAdDismissedCalled",!1),mt(this,"isAdViewedCalled",!1),mt(this,"isAfterAdCalled",!1),mt(this,"currentProvider",void 0),mt(this,"currentClientParams",void 0),mt(this,"adsHasResponse",!1),mt(this,"videoChecker",window.document.createElement("video")),mt(this,"contextInfo",void 0),mt(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",UT({userEvent:a},this.paramsToTrack)),pm()&&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=Ti(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=Ti(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),pm()&&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=Ti(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Ti(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=Ti(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=Ti(t);p==null||p(r),(l=this.adIsShowingCallback)==null||l.call(this,!1),(d=this.continueCallback)==null||d.call(this,[!1,r]);break}default:{(u=this.continueCallback)==null||u.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return g(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,c,l,d,u,p,f;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(c=(s=this.currentProvider)==null?void 0:s.name)!=null?c:null}),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_TIMEOUT",{type:r.type,provider:(d=(l=this.currentProvider)==null?void 0:l.name)!=null?d:null}),(p=this.continueCallback)==null||p.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(u=r.name)!=null?u:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(f=this.adIsShowingCallback)==null||f.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};ym=class{constructor(t){al(this,"context",void 0),al(this,"adBreakIsShowing",!1),al(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),al(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()})}};bm=class{constructor(t){sl(this,"configs",null),sl(this,"firstRun",!0),sl(this,"context",void 0),sl(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return g(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};_m=class{constructor(t,r){kr(this,"name","ADSENSE"),kr(this,"context",void 0),kr(this,"contextInfo",void 0),kr(this,"configured",!1),kr(this,"initParams",void 0),kr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),kr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=oV(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),kr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),kr(this,"adUnit",n=>g(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:c,slot:l,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!c)throw new Error("targeting element is required");if(typeof c=="string"?f=document.querySelector(c):f=c,!f)throw new Error("targeting element not found");let m=l;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let v=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,b=document.createElement("ins");if(b.className="adsbygoogle",b.id="jolibox-ads",b.style.display="block",b.setAttribute("data-ad-client",this.initParams.clientId),b.setAttribute("data-ad-slot",m),v&&b.setAttribute("data-ad-format",v),u&&b.setAttribute("data-full-width-responsive",u),p&&b.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let y=document.createElement("div");y.style.position="absolute",y.style.top="0",y.style.left="0",y.style.width="100%",y.style.height="100%",y.style.display="flex",y.style.justifyContent="center",y.style.alignItems="center",y.style.backgroundColor="rgba(0, 0, 0, 0.5)",y.style.color="white",y.innerHTML="Test Ad",b.style.position="relative",f.appendChild(b),b.appendChild(y)}else f.appendChild(b),new MutationObserver(y=>{y.forEach(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 g(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),this.initParams.admobInterstitialSlot&&i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),this.initParams.admobRewardedSlot&&i.setAttribute("data-admob-rewarded-slot",this.initParams.admobRewardedSlot),this.initParams.admobOnly&&i.setAttribute("data-admob-ads-only","on"),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};WV=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($V(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=VV(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}(),it="-ms-",vl="-moz-",re="-webkit-",VT="comm",jm="rule",Bm="decl",zV="@import",$T="@keyframes",KV="@layer",YV=Math.abs,Il=String.fromCharCode,QV=Object.assign;El=1,Di=1,zT=0,gt=0,De=0,qi="";f$=function(e,t,r){for(var n=0,i=0;n=i,i=cr(),n===38&&i===12&&(t[r]=1),!fa(i);)xt();return ma(e,gt)},m$=function(e,t){var r=-1,n=44;do switch(fa(n)){case 0:n===38&&cr()===12&&(t[r]=1),e[r]+=f$(gt-1,t,r);break;case 2:e[r]+=dl(n);break;case 4:if(n===44){e[++r]=cr()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Il(n)}while(n=xt());return e},h$=function(e,t){return YT(m$(KT(e),t))},vT=new WeakMap,g$=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&&!vT.get(r))&&!n){vT.set(e,!0);for(var i=[],o=h$(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},v$=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};y$=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Bm:e.return=QT(e.value,e.length);break;case $T:return Ni([sa(e,{value:ne(e.value,"@","@"+re)})],n);case jm:if(e.length)return e$(e.props,function(i){switch(ZV(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ni([sa(e,{props:[ne(i,/:(read-\w+)/,":"+vl+"$1")]})],n);case"::placeholder":return Ni([sa(e,{props:[ne(i,/:(plac\w+)/,":"+re+"input-$1")]}),sa(e,{props:[ne(i,/:(plac\w+)/,":"+vl+"$1")]}),sa(e,{props:[ne(i,/:(plac\w+)/,it+"input-$1")]})],n)}return""})}},b$=[y$],_$=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||b$,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),b=1;b<v.length;b++)i[v[b]]=!0;a.push(m)});var s,c=[g$,v$];{var l,d=[l$,d$(function(m){l.insert(m)})],u=u$(c.concat(n,d)),p=function(m){return Ni(s$(m),u)};s=function(m,v,b,y){l=b,p(m?m+"{"+v.styles+"}":v.styles),y&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new WV({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};S$={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},I$=/[A-Z]|^ms/g,E$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,XT=function(e){return e.charCodeAt(1)===45},yT=function(e){return e!=null&&typeof e!="boolean"},am=p$(function(e){return XT(e)?e:e.replace(I$,"-$&").toLowerCase()}),bT=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(E$,function(r,n,i){return tn={name:n,styles:i,next:tn},n})}return S$[e]!==1&&!XT(e)&&typeof t=="number"&&t!==0?t+"px":t};_T=/label:\s*([^\s;{]+)\s*(;|$)/g;C$=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},k$=function(e,t,r){C$(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)}};x$=function(e){var t=_$(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=sm(s,t.registered,void 0);return k$(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=sm(s,t.registered),d="animation-"+l.name;return wT(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=sm(s,t.registered);wT(t,l)},o=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return ST(t.registered,r,T$(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:ZT.bind(null,t.registered),merge:ST.bind(null,t.registered,r)}},T$=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},P$=x$({key:"css"}),ot=P$.css,ET=0,eP=[],Fe=q,AT=Fe.__b,CT=Fe.__r,kT=Fe.diffed,xT=Fe.__c,TT=Fe.unmount,PT=Fe.__;Fe.__b=function(e){kt=null,AT&&AT(e)},Fe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),PT&&PT(e,t)},Fe.__r=function(e){CT&&CT(e),Im=0;var t=(kt=e.__c).__H;t&&(cm===kt?(t.__h=[],kt.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(fl),t.__h.forEach(Em),t.__h=[],Im=0)),cm=kt},Fe.diffed=function(e){kT&&kT(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(eP.push(t)!==1&&IT===Fe.requestAnimationFrame||((IT=Fe.requestAnimationFrame)||N$)(R$)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),cm=kt=null},Fe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(fl),r.__h=r.__h.filter(function(n){return!n.__||Em(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Fe.__e(n,r.__v)}}),xT&&xT(e,t)},Fe.unmount=function(e){TT&&TT(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{fl(n)}catch(i){t=i}}),r.__H=void 0,t&&Fe.__e(t,r.__v))};OT=typeof requestAnimationFrame=="function";L$=Symbol.for("preact-signals");le=void 0,la=void 0,rn=0,Am=0,bl=0;Ye.prototype.brand=L$;Ye.prototype.h=function(){return!0};Ye.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)};Ye.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)}};Ye.prototype.subscribe=function(e){var t=this;return ga(function(){var r=t.value,n=le;le=void 0;try{e(r)}finally{le=n}})};Ye.prototype.valueOf=function(){return this.value};Ye.prototype.toString=function(){return this.value+""};Ye.prototype.toJSON=function(){return this.value};Ye.prototype.peek=function(){var e=le;le=void 0;try{return this.value}finally{le=e}};Object.defineProperty(Ye.prototype,"value",{get:function(){var e=rP(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Am>100)throw new Error("Cycle detected");this.v=e,this.i++,bl++,rn++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Cl()}}}});(Ui.prototype=new Ye).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===bl))return!0;if(this.g=bl,this.f|=1,this.i>0&&!nP(this))return this.f&=-2,!0;var e=le;try{iP(this),le=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 le=e,oP(this),this.f&=-2,!0};Ui.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)}Ye.prototype.S.call(this,e)};Ui.prototype.U=function(e){if(this.t!==void 0&&(Ye.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)}};Ui.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(Ui.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=rP(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});ha.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()}};ha.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,aP(this),iP(this),rn++;var e=le;return le=this,q$.bind(this,e)};ha.prototype.N=function(){2&this.f||(this.f|=2,this.o=la,la=this)};ha.prototype.d=function(){this.f|=8,1&this.f||Jm(this)};cP=[];ga(function(){sP=this.N})();lP.displayName="_st";Object.defineProperties(Ye.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:lP},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Mi("__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 Ye&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Mi("__r",function(e,t){_l();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return ga(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),_l(r),e(t)});Mi("__e",function(e,t,r,n){_l(),e(t,r,n)});Mi("diffed",function(e,t){_l();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=U$(r,c,d,i),o[c]=l):l.o(d,i)}}}e(t)});Mi("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)});Mi("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});St.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};M$=function(e){queueMicrotask(function(){queueMicrotask(e)})};je=ot`
|
|
623
623
|
inset: 0;
|
|
624
624
|
clear: none;
|
|
625
625
|
float: none;
|
|
@@ -637,7 +637,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
637
637
|
text-decoration: none;
|
|
638
638
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
639
639
|
'Helvetica Neue', sans-serif;
|
|
640
|
-
`;
|
|
640
|
+
`;B$=0;G$=ot`
|
|
641
641
|
${je}
|
|
642
642
|
position: fixed;
|
|
643
643
|
top: 0;
|
|
@@ -712,7 +712,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
}
|
|
715
|
-
`,Rr
|
|
715
|
+
`,Rr=W(null),Cm=W(""),km=W(""),ml=W(!1),J$=()=>{var e;(e=Rr.value)==null||e.call(Rr,!1)},H$=()=>{var e;(e=Rr.value)==null||e.call(Rr,!0)},V$=e=>g(void 0,null,function*(){let{title:t,content:r}=e;return Rr.value&&(Rr.value(!1),Ke(()=>{Rr.value=null,ml.value=!1})),Ke(()=>{Cm.value=t||"",km.value=r||"",ml.value=!0}),new Promise(n=>{Rr.value=i=>{Ke(()=>{Rr.value=null,ml.value=!1,Cm.value="",km.value=""}),n(i)}})}),$$=()=>ml.value?X("div",{className:G$,children:X("div",{className:"card-wrapper",children:[X("div",{className:"body",children:[X("div",{className:"title",children:Cm.value}),X("div",{className:"content",children:km.value})]}),X("div",{className:"footer",children:[X("button",{onClick:J$,className:"cancel-btn",children:"Cancel"}),X("button",{onClick:H$,className:"confirm-btm",children:"Confirm"})]})]})}):null,W$=ot`
|
|
716
716
|
${je}
|
|
717
717
|
position: relative;
|
|
718
718
|
display: flex;
|
|
@@ -745,7 +745,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
745
745
|
cursor: not-allowed;
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
|
-
`,
|
|
748
|
+
`,z$=()=>{let e=W(!1),t=W(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{Ke(()=>{t.value=Date.now(),e.value=!1})}}},K$=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=uP(t);j$(()=>{s.value>0?s.value-=1:Ke(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let c=ua(()=>{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=ua(()=>{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=ua(()=>r==="interstitial"?!1:!c.value&&!l.value),u=()=>g(void 0,null,function*(){if(a.value=!0,!(yield V$({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),Ke(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),Ke(()=>{a.value=!0,s.value=0,o.value=null})};return X("div",{className:W$,children:[s.value>0&&r!=="interstitial"&&X("div",{className:"timer",children:[s.value,"s"]}),X("button",{onClick:c.value?u:l.value?p:void 0,disabled:d.value,children:X("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:X("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"})})})]})},Y$=()=>{let e=W(),t=W(),r=W(),n=W(),i=W(),o=W(!1),a=W(15),s=W(""),c=W("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:c}},Q$=ot`
|
|
749
749
|
${je}
|
|
750
750
|
position: fixed;
|
|
751
751
|
z-index: 2147483647;
|
|
@@ -764,14 +764,14 @@ 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
|
-
`,
|
|
767
|
+
`,X$=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=Ao(()=>z$(),[]),[p,f]=gr(!1),m=b=>{var y,w,E,C;s.value=!1,b==="dismiss"?(y=n.value)==null||y.call(n):b==="viewed"&&((w=i.value)==null||w.call(i)),(E=r.value)==null||E.call(r),(C=o.value)==null||C.call(o),f(!1)},v=Jr(()=>{var b;p||(f(!0),(b=a.value)==null||b.call(a))},[p]);return bn(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?X("div",{className:Q$,children:[X(K$,{mode:d.value,onClose:m,countdown:c.value,state:u}),s.value&&X("iframe",{src:l.value,onLoad:v,sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"}),X($$,{})]}):null};xm=class{constructor(t,r){xr(this,"name","OKSPIN"),xr(this,"initialized",!1),xr(this,"initCompleter",null),xr(this,"context",void 0),xr(this,"initParams",void 0),xr(this,"adsOverlay",null),xr(this,"adsIsShowing",!1),xr(this,"lastUnDisplayedAdBreak",null),xr(this,"state",Y$()),this.context=t,this.initParams=r}init(){return g(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),Is(X(X$,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){return g(this,null,function*(){var n,i,o,a,s,c,l,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var f;this.adsIsShowing=!1,(f=t.afterAd)==null||f.call(t)},p=()=>{var f;this.adsIsShowing=!1,(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};Ke(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=p,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((c=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||c.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(l=t.beforeAd)==null||l.call(t);let u=()=>{var y;this.adsIsShowing=!1,(y=t.afterAd)==null||y.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var y;this.adsIsShowing=!1,p.breakStatus="dismissed",(y=t.adDismissed)==null||y.call(t)},m=()=>{var y;this.adsIsShowing=!1,p.breakStatus="viewed",(y=t.adViewed)==null||y.call(t)},v=()=>{var y;this.adsIsShowing=!1,(y=t.adBreakDone)==null||y.call(t,p)};Ke(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=m,this.state.adBreakDone.value=v});let b=()=>{var y;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(y=t.adBreakDone)==null||y.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,Ke(()=>{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}}})}},t9=()=>{let e=W(null),t=W(null),r=W(null),n=W(null),i=W(null),o=W(null),a=W(!1),s=W(null);return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adError:o,visible:a,payload:s}},r9=ot`
|
|
768
768
|
${je}
|
|
769
769
|
position: fixed;
|
|
770
770
|
inset: 0;
|
|
771
771
|
z-index: 2147483647;
|
|
772
772
|
display: flex;
|
|
773
773
|
background: #000000;
|
|
774
|
-
`,
|
|
774
|
+
`,n9=ot`
|
|
775
775
|
${je}
|
|
776
776
|
position: relative;
|
|
777
777
|
width: 100%;
|
|
@@ -779,7 +779,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
779
779
|
display: flex;
|
|
780
780
|
flex-direction: column;
|
|
781
781
|
color: #f7f9fc;
|
|
782
|
-
`,
|
|
782
|
+
`,i9=ot`
|
|
783
783
|
position: absolute;
|
|
784
784
|
top: 24px;
|
|
785
785
|
left: 24px;
|
|
@@ -790,15 +790,15 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
790
790
|
border-radius: 999px;
|
|
791
791
|
background: rgba(0, 0, 0, 0.65);
|
|
792
792
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
793
|
-
`,
|
|
793
|
+
`,o9=ot`
|
|
794
794
|
font-size: 11px;
|
|
795
795
|
letter-spacing: 0.08em;
|
|
796
796
|
text-transform: uppercase;
|
|
797
797
|
color: #c7d4ef;
|
|
798
|
-
`,
|
|
798
|
+
`,a9=ot`
|
|
799
799
|
font-size: 14px;
|
|
800
800
|
font-weight: 500;
|
|
801
|
-
`,
|
|
801
|
+
`,s9=ot`
|
|
802
802
|
${je}
|
|
803
803
|
flex: 1;
|
|
804
804
|
background: #050505;
|
|
@@ -806,7 +806,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
806
806
|
align-items: center;
|
|
807
807
|
justify-content: center;
|
|
808
808
|
padding: 0;
|
|
809
|
-
`,
|
|
809
|
+
`,RT=ot`
|
|
810
810
|
width: 100%;
|
|
811
811
|
height: 100%;
|
|
812
812
|
border: 2px dashed rgba(255, 255, 255, 0.08);
|
|
@@ -815,13 +815,13 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
815
815
|
justify-content: center;
|
|
816
816
|
color: #6e7da1;
|
|
817
817
|
font-size: 14px;
|
|
818
|
-
`,
|
|
818
|
+
`,c9=ot`
|
|
819
819
|
position: absolute;
|
|
820
820
|
bottom: 32px;
|
|
821
821
|
right: 32px;
|
|
822
822
|
display: flex;
|
|
823
823
|
gap: 12px;
|
|
824
|
-
`,
|
|
824
|
+
`,l9=ot`
|
|
825
825
|
min-width: 160px;
|
|
826
826
|
min-height: 48px;
|
|
827
827
|
border-radius: 999px;
|
|
@@ -837,7 +837,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
837
837
|
opacity: 0.4;
|
|
838
838
|
cursor: not-allowed;
|
|
839
839
|
}
|
|
840
|
-
`,
|
|
840
|
+
`,u9=ot`
|
|
841
841
|
min-width: 120px;
|
|
842
842
|
min-height: 44px;
|
|
843
843
|
border-radius: 999px;
|
|
@@ -847,7 +847,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
847
847
|
font-size: 14px;
|
|
848
848
|
font-weight: 500;
|
|
849
849
|
cursor: pointer;
|
|
850
|
-
`,
|
|
850
|
+
`,d9=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adError:s,visible:c,payload:l}=t,[d,u]=gr(!1),[p,f]=gr(0),[m,v]=gr(!1),[b,y]=gr(!1),[w,E]=gr("Loading next content..."),C=oi(null),T=l.value,k=Jr(N=>{var O,F,G,H;u(!1),c.value=!1,N==="dismiss"?(O=n.value)==null||O.call(n):(F=i.value)==null||F.call(i),(G=r.value)==null||G.call(r),(H=o.value)==null||H.call(o)},[c,n,i,r,o]),A=Jr(()=>{var N;u(!1),c.value=!1,(N=s.value)==null||N.call(s)},[c,s]);if(bn(()=>{var N;if(!c.value||!T){f(0),v(!1),y(!1),E("Loading next content...");return}let O=T.mode==="reward"?15:0,F=Math.max(Math.floor((N=T.countdown)!=null?N:O),0);if(f(F),y(T.mode==="reward"?F===0:!0),v(T.mode==="interstitial"?F===0:!1),F===0)return;let G=F,H=window.setInterval(()=>{G-=1,f(Math.max(G,0)),G<=0&&(window.clearInterval(H),T.mode==="reward"?y(!0):v(!0))},1e3);return()=>{window.clearInterval(H)}},[c.value,T,k]),bn(()=>{var N;if(!c.value||!T)return;let O=C.current;if(!O)return;if(O.innerHTML="",E("Loading next content..."),u(!1),T.testMode){let H=document.createElement("div");H.className=RT,H.innerText="Preview slot placeholder",O.appendChild(H),u(!0),(N=a.value)==null||N.call(a);return}if(typeof window=="undefined"){A();return}let F=document.createElement("ins");F.className="adsbygoogle",F.style.display="block",F.style.width="100%",F.style.height="100%",F.setAttribute("data-ad-client",T.clientId),F.setAttribute("data-ad-slot",T.unitId),F.setAttribute("data-ad-format","auto"),F.setAttribute("data-full-width-responsive","true"),T.channelId&&F.setAttribute("data-ad-channel",T.channelId),O.appendChild(F);let G=new MutationObserver(()=>{var H;let qt=F.getAttribute("data-ad-status");qt==="filled"?(u(!0),E(""),(H=a.value)==null||H.call(a),G.disconnect()):qt==="unfilled"&&(E("Slot currently unavailable."),u(!1),G.disconnect())});G.observe(F,{attributes:!0,attributeFilter:["data-ad-status"]});try{let H=window;H.adsbygoogle=H.adsbygoogle||[],H.adsbygoogle.push({})}catch(H){G.disconnect(),A()}return()=>{G.disconnect(),O.innerHTML=""}},[c.value,T,a,A]),!c.value||!T)return null;let J=T.mode==="reward"?"Next content unlocking":"Content paused",ue=p>0?`Content resumes in ${p}s`:"Content ready";return X("div",{className:r9,children:X("div",{className:n9,children:[X("div",{className:i9,children:[X("div",{className:o9,children:J}),X("div",{className:a9,children:ue})]}),X("div",{className:s9,ref:C,children:!d&&X("div",{className:RT,children:w})}),X("div",{className:c9,children:T.mode==="reward"?X("button",{className:l9,type:"button",onClick:()=>k("viewed"),disabled:!b,children:b?"Continue":`Continue in ${p}s`}):m&&X("button",{className:u9,type:"button",onClick:()=>k("viewed"),children:"Continue"})})]})})};Tm=class{constructor(t,r){if(ct(this,"name","ADSENSE_BANNER_AS_AFG"),ct(this,"initialized",!1),ct(this,"initCompleter",null),ct(this,"context",void 0),ct(this,"contextInfo",void 0),ct(this,"initParams",void 0),ct(this,"defaultCountdown",5),ct(this,"adsOverlay",null),ct(this,"adsIsShowing",!1),ct(this,"lastUnDisplayedAdBreak",null),ct(this,"requestCounter",0),ct(this,"scriptPromise",null),ct(this,"scriptReady",!1),ct(this,"scriptFailed",!1),ct(this,"state",t9()),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,typeof window!="undefined"){let n=window;n.adsbygoogle=n.adsbygoogle||[]}}init(){return g(this,null,function*(){var t;if(typeof document!="undefined"){this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-banner-as-afg"),Is(X(d9,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay);try{yield this.ensureAdSenseScript()}catch(r){this.scriptFailed=!0,console.warn("[BannerAsAFG] Failed to load Google AdSense script",r)}this.initialized=!0,(t=this.initCompleter)==null||t.call(this)}})}ensureAdSenseScript(){var t;if(typeof document=="undefined")return Promise.resolve();if(this.scriptPromise)return this.scriptPromise;if(document.getElementById("google-adsense"))return this.scriptReady=!0,Promise.resolve();if(!this.initParams.clientId)return this.scriptFailed=!0,Promise.reject(new Error("BannerAsAFG requires a Google AdSense clientId."));let r=(t=this.contextInfo.testAdsMode)!=null?t:!1;return this.scriptPromise=new Promise((n,i)=>{let o=document.createElement("script");o.id="google-adsense",o.async=!0,o.crossOrigin="anonymous",o.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,r&&o.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&o.setAttribute("data-ad-channel",this.initParams.channelId),o.onload=()=>{this.scriptReady=!0,n()},o.onerror=()=>{this.scriptFailed=!0,i(new Error("Failed to fetch Google AdSense script."))},document.head.appendChild(o)}),this.scriptPromise}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}resolveOverlayConfig(t){var r,n;let i=(n=(r=t==null?void 0:t.params)==null?void 0:r.countdown)!=null?n:this.defaultCountdown;return{rewardUnitId:this.initParams.rewardUnitId,interstitialUnitId:this.initParams.interstitialUnitId,channelId:this.initParams.channelId,countdown:Math.max(Math.floor(i),0)}}canDisplay(t){return!!t&&!!this.initParams.clientId&&!!this.adsOverlay&&this.initialized&&!this.scriptFailed&&this.scriptReady}showBannerOverlay(t,r){var n,i;let o=Math.max(Math.floor((n=r.countdown)!=null?n:t==="reward"?15:0),0),a={requestId:++this.requestCounter,clientId:this.initParams.clientId,unitId:t==="reward"?this.initParams.rewardUnitId:this.initParams.interstitialUnitId,channelId:r.channelId,countdown:o,mode:t,testMode:(i=this.contextInfo.testAdsMode)!=null?i:!1};this.state.payload.value=a,this.state.visible.value=!0}adBreak(t,r){var n,i,o,a,s,c,l,d,u;let p=t.type==="preroll"?"":t.name,f=t.type==="reward"?"reward":"interstitial";if(!this.initialized||!this.adsOverlay){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"frequencyCapped"});return}let m=this.resolveOverlayConfig(r);if(!this.canDisplay(m.rewardUnitId)){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"notReady"});return}switch(t.type){case"preroll":{(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(s=t.beforeAd)==null||s.call(t);let v={breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"},b=()=>{var E;this.adsIsShowing=!1,(E=t.afterAd)==null||E.call(t)},y=()=>{var E;this.adsIsShowing=!1,(E=t.adBreakDone)==null||E.call(t,v)},w=()=>{var E,C;this.adsIsShowing=!1,v.breakStatus="noAdPreloaded",(E=t.afterAd)==null||E.call(t),(C=t.adBreakDone)==null||C.call(t,v)};Ke(()=>{this.adsIsShowing=!0,this.state.afterAd.value=b,this.state.adBreakDone.value=y,this.state.adDismissed.value=null,this.state.adViewed.value=null,this.state.adError.value=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 v={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},b=()=>{var k;this.adsIsShowing=!1,(k=t.afterAd)==null||k.call(t)},y=()=>{var k;this.adsIsShowing=!1,v.breakStatus="dismissed",(k=t.adDismissed)==null||k.call(t)},w=()=>{var k;this.adsIsShowing=!1,v.breakStatus="viewed",(k=t.adViewed)==null||k.call(t)},E=()=>{var k;this.adsIsShowing=!1,(k=t.adBreakDone)==null||k.call(t,v)},C=()=>{var k,A;this.adsIsShowing=!1,v.breakStatus="noAdPreloaded",(k=t.afterAd)==null||k.call(t),(A=t.adBreakDone)==null||A.call(t,v)};Ke(()=>{this.state.afterAd.value=b,this.state.adDismissed.value=y,this.state.adViewed.value=w,this.state.adBreakDone.value=E,this.state.adError.value=C});let T=()=>{var k,A;if(!this.canDisplay(m.rewardUnitId)){this.lastUnDisplayedAdBreak=null,(k=t.afterAd)==null||k.call(t),(A=t.adBreakDone)==null||A.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.lastUnDisplayedAdBreak=null,this.adsIsShowing=!0,Ke(()=>{this.showBannerOverlay("reward",m)})};this.lastUnDisplayedAdBreak=t,(u=t.beforeReward)==null||u.call(t,T);break}}}},Ri={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||Ri[e.data.type]&&Ri[e.data.type].forEach(t=>{t(e.data.data)})});Pi=(e,t)=>{bn(()=>(Ri[e]||(Ri[e]=new Set),Ri[e].add(t),()=>{Ri[e].delete(t)}),[e,t])},m9=()=>{let e=W(),t=W(),r=W(),n=W(),i=W(),o=W(),a=W(),s=W(!1),c=W("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:c}},h9=ot`
|
|
851
851
|
${je}
|
|
852
852
|
position: fixed;
|
|
853
853
|
z-index: 2147483647;
|
|
@@ -866,7 +866,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
866
866
|
width: 100%;
|
|
867
867
|
height: 100%;
|
|
868
868
|
}
|
|
869
|
-
`,c9=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:c,src:l}=t,[d,u]=gr(!1),p=m=>{var v,b,y,w;u(!1),c.value=!1,m==="dismiss"?(v=n.value)==null||v.call(n):m==="viewed"&&((b=i.value)==null||b.call(i)),(y=r.value)==null||y.call(r),(w=o.value)==null||w.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return xi("appsrockets_ad_dismissed",()=>p("dismiss")),xi("appsrockets_ad_rewarded",()=>p("viewed")),xi("appsrockets_ad_completed",()=>p("viewed")),xi("appsrockets_ad_skipped",()=>p("viewed")),xi("appsrockets_ad_clicked",m=>{var v;return(v=s.value)==null?void 0:v.call(s,m)}),xi("appsrockets_ad_loaded",()=>u(!0)),c.value?X("div",{className:s9,style:{display:d?"flex":"none"},children:c.value&&X("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};Cm=class{constructor(t,r){Tr(this,"name","APPSROCKETS"),Tr(this,"initialized",!1),Tr(this,"initCompleter",null),Tr(this,"context",void 0),Tr(this,"adsOverlay",null),Tr(this,"adsIsShowing",!1),Tr(this,"lastUnDisplayedAdBreak",null),Tr(this,"state",a9()),Tr(this,"processUrl",(n,i)=>{var o;let a=this.context.getContextInfo(),s=new URL(n),c=new URLSearchParams(s.search);return c.has("joliSource")||c.set("joliSource",a.joliSource),c.get("osType")||c.set("osType",a.osType),c.get("runtimeType")||c.set("runtimeType",a.runtimeType),c.get("mode")||c.set("mode","AFG"),c.get("deviceId")||c.set("deviceId",a.deviceId),c.get("statusBarHeight")||c.set("statusBarHeight",((o=this.context.getWindowInfo().statusBarHeight)!=null?o:0).toString()),c.get("adsType")||c.set("adsType",i),s.search=c.toString(),s.toString()}),this.context=t}init(){return g(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),Ss(X(c9,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){var n,i,o,a,s,c,l,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=f=>{var m,v;(v=(m=this.context).handleLinkClicked)==null||v.call(m,f)},p=t.type==="reward"?"REWARD":"INTERSTITIAL";switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let f=()=>{var b;this.adsIsShowing=!1,(b=t.afterAd)==null||b.call(t)},m=()=>{var b;this.adsIsShowing=!1,(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},v=()=>{var b;this.adsIsShowing=!1,(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};Ke(()=>{this.adsIsShowing=!0,this.state.afterAd.value=f,this.state.adBreakDone.value=m,this.state.src.value=this.processUrl(r.params.url,p),this.state.adLinkClicked.value=u,this.state.adError.value=v,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((c=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||c.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(l=t.beforeAd)==null||l.call(t);let f=()=>{var C;this.adsIsShowing=!1,(C=t.afterAd)==null||C.call(t)},m={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},v=()=>{var C;this.adsIsShowing=!1,m.breakStatus="dismissed",(C=t.adDismissed)==null||C.call(t)},b=()=>{var C;this.adsIsShowing=!1,m.breakStatus="viewed",(C=t.adViewed)==null||C.call(t)},y=()=>{var C;this.adsIsShowing=!1,(C=t.adBreakDone)==null||C.call(t,m)},w=()=>{this.adsIsShowing=!1,m.breakStatus="noAdPreloaded"};Ke(()=>{this.state.afterAd.value=f,this.state.adDismissed.value=v,this.state.adViewed.value=b,this.state.adBreakDone.value=y,this.state.adLinkClicked.value=u,this.state.adError.value=w});let E=()=>{var C;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(C=t.adBreakDone)==null||C.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,Ke(()=>{this.state.src.value=this.processUrl(r.params.url,p),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,E);break}}}},oP=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};km=class{constructor(t,r,n){rt(this,"adUnit",void 0),rt(this,"project",void 0),rt(this,"keyValue",void 0),rt(this,"adsContext",null),rt(this,"rewardedSlot",null),rt(this,"rewardedPayload",null),rt(this,"readyEvent",null),rt(this,"withCommand",function(){googletag.cmd.push(...arguments)}),rt(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))}),rt(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),i!=="ignored"&&(this.adsContext=null)}),rt(this,"reinit",i=>{this.destroy(i),this.init()}),rt(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),rt(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)})}}),rt(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),rt(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),rt(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext){this.destroy("ignored");return}if(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,oP(),this.withCommand(()=>{this.init()})}};xm=class{constructor(t,r,n){var i=this;gt(this,"adUnit",void 0),gt(this,"project",void 0),gt(this,"keyValue",void 0),gt(this,"adsContext",null),gt(this,"gamingInterstitialSlot",null),gt(this,"readyEvent",null),gt(this,"isRetrying",!1),gt(this,"withCommand",function(){googletag.cmd.push(...arguments)}),gt(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))}),gt(this,"destroy",function(o){var a,s;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o),o!=="ignored"&&(i.adsContext=null)),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),gt(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),gt(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),gt(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")}))}),gt(this,"requestAds",o=>{this.withCommand(()=>{var a,s,c;if(this.adsContext){this.destroy("ignored");return}if(this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((c=(s=this.adsContext).onEnd)==null||c.call(s,"frequencyCapped"),this.adsContext=null,this.isRetrying||(this.isRetrying=!0,window.setTimeout(()=>{this.readyEvent||this.withCommand(()=>{this.reinit("frequencyCapped",!1)}),this.isRetrying=!1},31e3)))})}),oP(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};Tm=class{constructor(t,r){Nn(this,"name","GOOGLE_GPT"),Nn(this,"context",void 0),Nn(this,"contextInfo",void 0),Nn(this,"initParams",void 0),Nn(this,"rewardAdManager",void 0),Nn(this,"interstitialManager",void 0),Nn(this,"insertScript",()=>{let n="jolibox-google-gpt",i=document.getElementById(n);i||(i=window.document.createElement("script"),i.id=n,i.async=!0,i.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",i.crossOrigin="anonymous",document.head.appendChild(i))}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,this.insertScript()}init(){return g(this,null,function*(){let t=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":this.initParams.rewardedSlot,r=this.contextInfo.testAdsMode?"/6355419/Travel/Europe/France/Paris":this.initParams.interstitialSlot,n=`minigame-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;t&&(this.rewardAdManager=new km(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new xm(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}}}};Pm=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";cm(this,"context",void 0),cm(this,"placement","GAME"),cm(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:qT.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:DT.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:LT.WebSDK};return yV(i)}};_l=class{constructor(t){ut(this,"context",void 0),ut(this,"adsTrackSerializer",void 0),ut(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new Pm(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;ut(this,"context",void 0),ut(this,"contextInfo",void 0),ut(this,"requestContext",void 0),ut(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),ut(this,"pendingAFVAdsInfo",Promise.resolve(null)),ut(this,"doFetchAdsInfo",i=>g(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=[];switch(i){case"afv":{a=["REWARD_INTERSTITIAL","REWARD","NATIVE"];break}case"reward":{a=["REWARD_INTERSTITIAL","REWARD","NATIVE"];break}default:{a=["INTERSTITIAL"];break}}let 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(),adsTypes:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return l==="SUCCESS"||l==="BYPASS_ADS"?{code:l,data:c}:null})),ut(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),ut(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),ut(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),ut(this,"cacheNextAFGAdsInfo",i=>g(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),ut(this,"getAFGAdsInfo",i=>g(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),ut(this,"getAFVAdsInfo",function(){return g(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new _l(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};E9=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(e)try{e(...r)}catch(i){console.error("[JoliboxSDK] Callback error:",i)}},wl=class{constructor(t){this.context=t,w9(this,"canIUseHelper",void 0),this.context=t;let{canIUseNative:r}=Ta(()=>this.context.getContextInfo().deviceInfo.nativeSDKVersionCode||1e6,()=>this.context.getContextInfo().deviceInfo.platform||"h5");this.canIUseHelper=r}loadAdsAsync(t){return g(this,null,function*(){try{let{errNo:r,errMsg:n}=yield M("loadAdsAsync",{params:{providers:t.providers}});return r!==0||n.length>0?{code:"FAILURE",message:n||"Failed to load ads"}:{code:"SUCCESS",message:"Ads loaded successfully"}}catch(r){return{code:"FAILURE",message:`Failed to load ads: ${r instanceof Error?r.message:String(r)}`}}})}canIUse(){return hl()&&this.canIUseHelper("loadAdsAsync")&&this.canIUseHelper("showAdAsync")}showAdAsync(t){return g(this,null,function*(){try{let r=yield M("showAdAsync",{params:{providers:t.providers}});if(r.errNo!==0)return{code:"FAILURE",message:r.errMsg||"Failed to show ad"};let n=r.data.UUID;if(t.callbacks){let i=t.timeout!==void 0?t.timeout:-1,o=null,a=()=>{jh("onAdsStateChange",s),o&&(clearTimeout(o),o=null)},s=c=>{var l;if(c.UUID!==n)return;let d=(l=t.callbacks)==null?void 0:l[c.event];d&&E9(d,c.data),["onAdClosed","onAdError","onAdDismissed"].includes(c.event)&&a()};be("onAdsStateChange",s),i>0&&(o=setTimeout(()=>{a(),console.warn(`[JoliboxSDK] Event listener for ad ${n} auto-cleaned after ${i}ms timeout`)},i))}return{code:"SUCCESS",message:"Ad shown successfully"}}catch(r){return{code:"FAILURE",message:`Failed to show ad: ${r instanceof Error?r.message:String(r)}`}}})}isAdsReadySync(t){try{let{errNo:r,data:n}=M("isAdsReadySync",{params:{providers:t.providers}});return r!==0||!n?(console.warn("[Jolibox SDK]isAdsReadySync returned an error or no data"),!1):!0}catch(r){return console.warn("[Jolibox SDK]isAdsReadySync invocation failed:",r),!1}}};Rm=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){Pr(this,"providers",void 0),Pr(this,"helper",void 0),Pr(this,"adsContext",null),Pr(this,"_isAdsReady",!1),Pr(this,"init",()=>g(this,null,function*(){if(!hl()){this._isAdsReady=!1;return}this.helper.canIUse()?(yield this.helper.loadAdsAsync({providers:this.providers})).code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1:this._isAdsReady=!1})),Pr(this,"destroy",n=>{var i,o;this._isAdsReady=!1,(o=(i=this.adsContext)==null?void 0:i.adBreakDone)==null||o.call(i,n),n!=="ignored"&&(this.adsContext=null)}),Pr(this,"reinit",n=>g(this,null,function*(){this.destroy(n),yield this.init()})),Pr(this,"requestAds",(n,i)=>g(this,null,function*(){if(this.adsContext){this.destroy("ignored");return}this.adsContext=n,i&&i.length>0&&(this.providers=i);try{this.isAdsReady?this.showAd():yield this.reinit("frequencyCapped")}catch(o){this.destroy("notReady")}})),Pr(this,"showAd",()=>{if(!this.adsContext){this.destroy("error");return}let n=!1,i=!1;this.adsContext.beforeReward(()=>g(this,null,function*(){var o,a;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o);let s=l=>{var d,u,p;i||(i=!0,l==="dismissed"&&((d=this.adsContext)==null||d.adDismissed()),(p=(u=this.adsContext)==null?void 0:u.afterAd)==null||p.call(u),this.reinit(l))},c={onAdShow:()=>{},onAdError:()=>{s("error")},onAdRewarded:()=>{var l;n=!0,(l=this.adsContext)==null||l.adViewed()},onAdDismissed:()=>{s(n?"viewed":"dismissed")},onAdClosed:()=>{s(n?"viewed":"dismissed")}};(yield this.helper.showAdAsync({providers:this.providers,callbacks:c})).code!=="SUCCESS"&&this.reinit("noAdPreloaded")}))}),this.providers=r,this.helper=new wl(t),this.init()}};Nm=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){var n=this;Or(this,"providers",void 0),Or(this,"helper",void 0),Or(this,"adsContext",null),Or(this,"_isAdsReady",!1),Or(this,"init",()=>g(this,null,function*(){this.helper.canIUse()&&((yield this.helper.loadAdsAsync({providers:this.providers})).code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1)})),Or(this,"destroy",function(i){var o,a;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n._isAdsReady=!1,s&&((a=(o=n.adsContext)==null?void 0:o.onEnd)==null||a.call(o,i),i!=="ignored"&&(n.adsContext=null))}),Or(this,"reinit",function(o){return g(this,arguments,function*(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n.destroy(i,a),yield n.init()})}),Or(this,"requestAds",(i,o)=>g(this,null,function*(){if(this.adsContext){this.destroy("ignored");return}this.adsContext=i,o&&o.length>0&&(this.providers=o);try{this.isAdsReady?yield this.showAd():yield this.reinit("frequencyCapped")}catch(a){this.destroy("notReady")}})),Or(this,"showAd",()=>g(this,null,function*(){var i,o;if(!this.adsContext){this.destroy("error");return}let a=!1;(o=(i=this.adsContext).beforeAd)==null||o.call(i);let s=l=>{var d,u;a||(a=!0,(u=(d=this.adsContext)==null?void 0:d.afterAd)==null||u.call(d),this.reinit(l))},c={onAdShow:()=>{},onAdError:()=>{s("error")},onAdDismissed:()=>{s("dismissed")},onAdClosed:()=>{s("viewed")}};(yield this.helper.showAdAsync({providers:this.providers,callbacks:c})).code!=="SUCCESS"&&this.reinit("noAdPreloaded")})),this.providers=r,this.helper=new wl(t),this.init()}};Dm=class{constructor(t,r){sa(this,"name","INTERNAL_NATIVE"),sa(this,"context",void 0),sa(this,"rewardAdManager",void 0),sa(this,"interstitialManager",void 0),sa(this,"initProviders",void 0),this.context=t,this.initProviders=r.providers;let n=this.getConfigsByTypes(["REWARD","REWARD_INTERSTITIAL","NATIVE"],r.providers),i=this.getConfigsByTypes(["INTERSTITIAL"],r.providers);n.length>0&&(this.rewardAdManager=new Rm(this.context,n)),i.length>0&&(this.interstitialManager=new Nm(this.context,i))}getConfigsByTypes(t,r,n){let i=[];return(n?n.map(o=>r.find(a=>a.provider===o.provider)).filter(o=>!!o):r).forEach(o=>{t.forEach(a=>{let s="";a==="REWARD"&&(s=o.params.adUnitId.reward),a==="REWARD_INTERSTITIAL"&&(s=o.params.adUnitId.rewardInterstitial),a==="INTERSTITIAL"&&(s=o.params.adUnitId.interstitial),a==="NATIVE"&&(s=o.params.adUnitId.nativeAds),s&&i.push({provider:o.provider,params:{placementId:s,adsType:a,extra:o.params.extra}})})}),i}init(){return g(this,null,function*(){})}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:"reward",breakStatus:"noAdPreloaded"});return}let a=this.getConfigsByTypes(["REWARD","REWARD_INTERSTITIAL","NATIVE"],this.initProviders,r.params);this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:s=>{var c;(c=t.adBreakDone)==null||c.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:s})}},a);break}default:{let a=t;if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:a.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded"});return}let s=this.getConfigsByTypes(["INTERSTITIAL"],this.initProviders,r.params);this.interstitialManager.requestAds({beforeAd:a.beforeAd,afterAd:a.afterAd,onEnd:c=>{var l;(l=t.adBreakDone)==null||l.call(t,{breakName:a.name,breakType:t.type,breakFormat:"interstitial",breakStatus:c})}},s);break}}}};Ni=class{constructor(t){if(Ht(this,"context",void 0),Ht(this,"contextInfo",void 0),Ht(this,"providers",{}),Ht(this,"channelPolicy",void 0),Ht(this,"adsActionDetection",void 0),Ht(this,"requestContext",void 0),Ht(this,"adsRequest",void 0),Ht(this,"initialized",!1),Ht(this,"adsIsShowing",!1),Ht(this,"lastAdBreak",void 0),Ht(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new hm(this.context),this.adsActionDetection=new mm(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new Om(t),this.requestContext=new _l(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return g(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){let n=r.filter(s=>s.isNative),i=r.filter(s=>!s.isNative),o={provider:"INTERNAL_NATIVE",params:{providers:n}},a=i.concat([o]);for(let s of a)switch(s.provider){case"GOOGLE_GPT":{let c=new Tm(this.context,s.params);yield c.init(),this.providers[s.provider]=c;break}case"ADSENSE":case"ADSENSE_ADMOB":{let c=new gm(this.context,s.params);yield c.init(),this.providers[s.provider]=c;break}case"OKSPIN":{let c=new Em(this.context,s.params);yield c.init(),this.providers.OKSPIN=c;break}case"APPSROCKETS":{let c=new Cm(this.context,s.params);yield c.init(),this.providers.APPSROCKETS=c;break}case"ADSENSE_BANNER_AS_AFG":{let c=new Am(this.context,s.params);yield c.init(),this.providers.ADSENSE_BANNER_AS_AFG=c;break}case"INTERNAL_NATIVE":{let c=new Dm(this.context,s.params);yield c.init(),this.providers.INTERNAL_NATIVE=c;break}}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return g(this,null,function*(){var r,n,i,o,a,s,c,l,d,u,p,f,m,v,b,y;let w=Date.now();if(w-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&&w-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=w,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 E=yield this.adsRequest.getAFGAdsInfo(t.type),C=E==null?void 0:E.data,T=E==null?void 0:E.code;if(T==="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 k,A,J,le;(k=t.beforeAd)==null||k.call(t),(A=t.adViewed)==null||A.call(t),(J=t.afterAd)==null||J.call(t),(le=t.adBreakDone)==null||le.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(!C||T!=="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{if(C.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 k=!0,A=null,J=new fm(this.context);this.adsActionDetection.adBreakIsShowing=!0;let le=C.filter(G=>G.isNative).sort((G,H)=>G.seq-H.seq),N=C.filter(G=>!G.isNative).sort((G,H)=>G.seq-H.seq),O={seq:(m=(f=le[0])==null?void 0:f.seq)!=null?m:0,provider:"INTERNAL_NATIVE",params:le},F;for(le.length>0?F=[O].concat(N):F=N,F=F.sort((G,H)=>G.seq-H.seq).map((G,H)=>Y4(PT({},G),{seq:H}));F.length>0;){let G=F.shift(),H=this.providers[G.provider];if(H){let[qt,hh]=yield J.callAdBreakAndContinue(H,t,G,Nl=>{var _a;this.adsIsShowing=Nl,(_a=this.context.eventEmitter)==null||_a.emit("isAdShowing",Nl)});k=qt,A=hh}else k=!0,A={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!k)break}k&&A&&((v=t.adBreakDone)==null||v.call(t,A))}}catch(E){(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(y=this.context.eventEmitter)==null||y.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.")}},Rne=it`
|
|
869
|
+
`,g9=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:c,src:l}=t,[d,u]=gr(!1),p=m=>{var v,b,y,w;u(!1),c.value=!1,m==="dismiss"?(v=n.value)==null||v.call(n):m==="viewed"&&((b=i.value)==null||b.call(i)),(y=r.value)==null||y.call(r),(w=o.value)==null||w.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return Pi("appsrockets_ad_dismissed",()=>p("dismiss")),Pi("appsrockets_ad_rewarded",()=>p("viewed")),Pi("appsrockets_ad_completed",()=>p("viewed")),Pi("appsrockets_ad_skipped",()=>p("viewed")),Pi("appsrockets_ad_clicked",m=>{var v;return(v=s.value)==null?void 0:v.call(s,m)}),Pi("appsrockets_ad_loaded",()=>u(!0)),c.value?X("div",{className:h9,style:{display:d?"flex":"none"},children:c.value&&X("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};Pm=class{constructor(t,r){Tr(this,"name","APPSROCKETS"),Tr(this,"initialized",!1),Tr(this,"initCompleter",null),Tr(this,"context",void 0),Tr(this,"adsOverlay",null),Tr(this,"adsIsShowing",!1),Tr(this,"lastUnDisplayedAdBreak",null),Tr(this,"state",m9()),Tr(this,"processUrl",(n,i)=>{var o;let a=this.context.getContextInfo(),s=new URL(n),c=new URLSearchParams(s.search);return c.has("joliSource")||c.set("joliSource",a.joliSource),c.get("osType")||c.set("osType",a.osType),c.get("runtimeType")||c.set("runtimeType",a.runtimeType),c.get("mode")||c.set("mode","AFG"),c.get("deviceId")||c.set("deviceId",a.deviceId),c.get("statusBarHeight")||c.set("statusBarHeight",((o=this.context.getWindowInfo().statusBarHeight)!=null?o:0).toString()),c.get("adsType")||c.set("adsType",i),s.search=c.toString(),s.toString()}),this.context=t}init(){return g(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),Is(X(g9,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){var n,i,o,a,s,c,l,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=f=>{var m,v;(v=(m=this.context).handleLinkClicked)==null||v.call(m,f)},p=t.type==="reward"?"REWARD":"INTERSTITIAL";switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let f=()=>{var b;this.adsIsShowing=!1,(b=t.afterAd)==null||b.call(t)},m=()=>{var b;this.adsIsShowing=!1,(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},v=()=>{var b;this.adsIsShowing=!1,(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};Ke(()=>{this.adsIsShowing=!0,this.state.afterAd.value=f,this.state.adBreakDone.value=m,this.state.src.value=this.processUrl(r.params.url,p),this.state.adLinkClicked.value=u,this.state.adError.value=v,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((c=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||c.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(l=t.beforeAd)==null||l.call(t);let f=()=>{var C;this.adsIsShowing=!1,(C=t.afterAd)==null||C.call(t)},m={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},v=()=>{var C;this.adsIsShowing=!1,m.breakStatus="dismissed",(C=t.adDismissed)==null||C.call(t)},b=()=>{var C;this.adsIsShowing=!1,m.breakStatus="viewed",(C=t.adViewed)==null||C.call(t)},y=()=>{var C;this.adsIsShowing=!1,(C=t.adBreakDone)==null||C.call(t,m)},w=()=>{this.adsIsShowing=!1,m.breakStatus="noAdPreloaded"};Ke(()=>{this.state.afterAd.value=f,this.state.adDismissed.value=v,this.state.adViewed.value=b,this.state.adBreakDone.value=y,this.state.adLinkClicked.value=u,this.state.adError.value=w});let E=()=>{var C;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(C=t.adBreakDone)==null||C.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,Ke(()=>{this.state.src.value=this.processUrl(r.params.url,p),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,E);break}}}},pP=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};w9=class{constructor(e,t,r){nt(this,"adUnit",void 0),nt(this,"project",void 0),nt(this,"keyValue",void 0),nt(this,"adsContext",null),nt(this,"rewardedSlot",null),nt(this,"rewardedPayload",null),nt(this,"readyEvent",null),nt(this,"withCommand",function(){googletag.cmd.push(...arguments)}),nt(this,"init",()=>{var n;this.rewardedSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.REWARDED),this.rewardedSlot&&(this.rewardedSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().addEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().addEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.keyValue&&(Object.keys(this.keyValue).forEach(i=>{var o;(o=this.rewardedSlot)==null||o.setTargeting(i,this.keyValue[i])}),Object.keys(this.keyValue).includes("project")||(n=this.rewardedSlot)==null||n.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),nt(this,"destroy",n=>{var i,o;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(o=(i=this.adsContext)==null?void 0:i.adBreakDone)==null||o.call(i,n),n!=="ignored"&&(this.adsContext=null)}),nt(this,"reinit",n=>{this.destroy(n),this.init()}),nt(this,"handleSlotReady",n=>{n.slot===this.rewardedSlot&&(this.readyEvent=n)}),nt(this,"handleSlotClosed",n=>{var i,o;if(this.adsContext&&n.slot===this.rewardedSlot){let a=this.rewardedPayload?"viewed":"dismissed";a==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(o=(i=this.adsContext).afterAd)==null||o.call(i),this.withCommand(()=>{this.reinit(a)})}}),nt(this,"handleSlotGranted",n=>{this.adsContext&&n.slot===this.rewardedSlot&&(this.rewardedPayload=n.payload)}),nt(this,"handleSlotRenderEnded",n=>{n.slot===this.rewardedSlot&&n.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),nt(this,"requestAds",n=>{this.withCommand(()=>{if(this.adsContext){this.destroy("ignored");return}if(this.rewardedSlot||this.init(),this.adsContext=n,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var i,o,a;(o=(i=this.adsContext)==null?void 0:i.beforeAd)==null||o.call(i),(a=this.readyEvent)==null||a.makeRewardedVisible()});else{let i=o=>{o.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",i),this.readyEvent=o,this.adsContext.beforeReward(()=>{var a,s,c;(s=(a=this.adsContext)==null?void 0:a.beforeAd)==null||s.call(a),(c=this.readyEvent)==null||c.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",i),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",i))},500)}})}),this.adUnit=e,this.project=t,this.keyValue=r,pP(),this.withCommand(()=>{this.init()})}};Om=class{constructor(t,r,n){var i=this;ht(this,"adUnit",void 0),ht(this,"project",void 0),ht(this,"keyValue",void 0),ht(this,"adsContext",null),ht(this,"gamingInterstitialSlot",null),ht(this,"readyEvent",null),ht(this,"isRetrying",!1),ht(this,"withCommand",function(){googletag.cmd.push(...arguments)}),ht(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))}),ht(this,"destroy",function(o){var a,s;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o),o!=="ignored"&&(i.adsContext=null)),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),ht(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),ht(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),ht(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")}))}),ht(this,"requestAds",o=>{this.withCommand(()=>{var a,s,c;if(this.adsContext){this.destroy("ignored");return}if(this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((c=(s=this.adsContext).onEnd)==null||c.call(s,"frequencyCapped"),this.adsContext=null,this.isRetrying||(this.isRetrying=!0,window.setTimeout(()=>{this.readyEvent||this.withCommand(()=>{this.reinit("frequencyCapped",!1)}),this.isRetrying=!1},31e3)))})}),pP(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};Rm=class{constructor(t,r){Ln(this,"name","GOOGLE_GPT"),Ln(this,"context",void 0),Ln(this,"contextInfo",void 0),Ln(this,"initParams",void 0),Ln(this,"rewardAdManager",void 0),Ln(this,"interstitialManager",void 0),Ln(this,"insertScript",()=>{let n="jolibox-google-gpt",i=document.getElementById(n);i||(i=window.document.createElement("script"),i.id=n,i.async=!0,i.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",i.crossOrigin="anonymous",document.head.appendChild(i))}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,this.insertScript()}init(){return g(this,null,function*(){let t=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":this.initParams.rewardedSlot,r=this.contextInfo.testAdsMode?"/6355419/Travel/Europe/France/Paris":this.initParams.interstitialSlot,n=`minigame-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;t&&(this.rewardAdManager=new w9(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}}}};Nm=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";um(this,"context",void 0),um(this,"placement","GAME"),um(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:JT.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:BT.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:GT.WebSDK};return CV(i)}};wl=class{constructor(t){lt(this,"context",void 0),lt(this,"adsTrackSerializer",void 0),lt(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new Nm(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}}},Dm=class{constructor(t,r){var n=this;lt(this,"context",void 0),lt(this,"contextInfo",void 0),lt(this,"requestContext",void 0),lt(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),lt(this,"pendingAFVAdsInfo",Promise.resolve(null)),lt(this,"doFetchAdsInfo",i=>g(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=[];switch(i){case"afv":{a=["REWARD_INTERSTITIAL","REWARD","NATIVE"];break}case"reward":{a=["REWARD_INTERSTITIAL","REWARD","NATIVE"];break}default:{a=["INTERSTITIAL"];break}}let 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(),adsTypes:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return l==="SUCCESS"||l==="BYPASS_ADS"?{code:l,data:c}:null})),lt(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),lt(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),lt(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),lt(this,"cacheNextAFGAdsInfo",i=>g(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),lt(this,"getAFGAdsInfo",i=>g(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),lt(this,"getAFVAdsInfo",function(){return g(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new wl(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};N9=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(e)try{e(...r)}catch(i){console.error("[JoliboxSDK] Callback error:",i)}},Sl=class{constructor(t){this.context=t,P9(this,"canIUseHelper",void 0),this.context=t;let{canIUseNative:r}=Pa(()=>this.context.getContextInfo().deviceInfo.nativeSDKVersionCode||1e6,()=>this.context.getContextInfo().deviceInfo.platform||"h5");this.canIUseHelper=r}loadAdsAsync(t){return g(this,null,function*(){try{let{errNo:r,errMsg:n}=yield L("loadAdsAsync",{params:{providers:t.providers}});return r!==0||n.length>0?{code:"FAILURE",message:n||"Failed to load ads"}:{code:"SUCCESS",message:"Ads loaded successfully"}}catch(r){return{code:"FAILURE",message:`Failed to load ads: ${r instanceof Error?r.message:String(r)}`}}})}canIUse(){return pm()&&this.canIUseHelper("loadAdsAsync")&&this.canIUseHelper("showAdAsync")}showAdAsync(t){return g(this,null,function*(){try{let r=yield L("showAdAsync",{params:{providers:t.providers}});if(r.errNo!==0)return{code:"FAILURE",message:r.errMsg||"Failed to show ad"};let n=r.data.UUID;if(t.callbacks){let i=t.timeout!==void 0?t.timeout:-1,o=null,a=()=>{Vh("onAdsStateChange",s),o&&(clearTimeout(o),o=null)},s=c=>{var l;if(c.UUID!==n)return;let d=(l=t.callbacks)==null?void 0:l[c.event];d&&N9(d,c.data),["onAdClosed","onAdError","onAdDismissed"].includes(c.event)&&a()};_e("onAdsStateChange",s),i>0&&(o=setTimeout(()=>{a(),console.warn(`[JoliboxSDK] Event listener for ad ${n} auto-cleaned after ${i}ms timeout`)},i))}return{code:"SUCCESS",message:"Ad shown successfully"}}catch(r){return{code:"FAILURE",message:`Failed to show ad: ${r instanceof Error?r.message:String(r)}`}}})}isAdsReadySync(t){try{let{errNo:r,data:n}=L("isAdsReadySync",{params:{providers:t.providers}});return r!==0||!n?(console.warn("[Jolibox SDK]isAdsReadySync returned an error or no data"),!1):!0}catch(r){return console.warn("[Jolibox SDK]isAdsReadySync invocation failed:",r),!1}}};Lm=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){Pr(this,"providers",void 0),Pr(this,"helper",void 0),Pr(this,"adsContext",null),Pr(this,"_isAdsReady",!1),Pr(this,"init",()=>g(this,null,function*(){this.helper.canIUse()?(yield this.helper.loadAdsAsync({providers:this.providers})).code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1:this._isAdsReady=!1})),Pr(this,"destroy",n=>{var i,o;this._isAdsReady=!1,(o=(i=this.adsContext)==null?void 0:i.adBreakDone)==null||o.call(i,n),n!=="ignored"&&(this.adsContext=null)}),Pr(this,"reinit",n=>g(this,null,function*(){this.destroy(n),yield this.init()})),Pr(this,"requestAds",(n,i)=>g(this,null,function*(){if(this.adsContext){this.destroy("ignored");return}this.adsContext=n,i&&i.length>0&&(this.providers=i);try{this.isAdsReady?this.showAd():yield this.reinit("frequencyCapped")}catch(o){this.destroy("notReady")}})),Pr(this,"showAd",()=>{if(!this.adsContext){this.destroy("error");return}let n=!1,i=!1;this.adsContext.beforeReward(()=>g(this,null,function*(){var o,a;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o);let s=l=>{var d,u,p;i||(i=!0,l==="dismissed"&&((d=this.adsContext)==null||d.adDismissed()),(p=(u=this.adsContext)==null?void 0:u.afterAd)==null||p.call(u),this.reinit(l))},c={onAdShow:()=>{},onAdError:()=>{s("error")},onAdRewarded:()=>{var l;n=!0,(l=this.adsContext)==null||l.adViewed()},onAdDismissed:()=>{s(n?"viewed":"dismissed")},onAdClosed:()=>{s(n?"viewed":"dismissed")}};(yield this.helper.showAdAsync({providers:this.providers,callbacks:c})).code!=="SUCCESS"&&this.reinit("noAdPreloaded")}))}),this.providers=r,this.helper=new Sl(t),this.init()}};qm=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){var n=this;Or(this,"providers",void 0),Or(this,"helper",void 0),Or(this,"adsContext",null),Or(this,"_isAdsReady",!1),Or(this,"init",()=>g(this,null,function*(){this.helper.canIUse()&&((yield this.helper.loadAdsAsync({providers:this.providers})).code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1)})),Or(this,"destroy",function(i){var o,a;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n._isAdsReady=!1,s&&((a=(o=n.adsContext)==null?void 0:o.onEnd)==null||a.call(o,i),i!=="ignored"&&(n.adsContext=null))}),Or(this,"reinit",function(o){return g(this,arguments,function*(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n.destroy(i,a),yield n.init()})}),Or(this,"requestAds",(i,o)=>g(this,null,function*(){if(this.adsContext){this.destroy("ignored");return}this.adsContext=i,o&&o.length>0&&(this.providers=o);try{this.isAdsReady?yield this.showAd():yield this.reinit("frequencyCapped")}catch(a){this.destroy("notReady")}})),Or(this,"showAd",()=>g(this,null,function*(){var i,o;if(!this.adsContext){this.destroy("error");return}let a=!1;(o=(i=this.adsContext).beforeAd)==null||o.call(i);let s=l=>{var d,u;a||(a=!0,(u=(d=this.adsContext)==null?void 0:d.afterAd)==null||u.call(d),this.reinit(l))},c={onAdShow:()=>{},onAdError:()=>{s("error")},onAdDismissed:()=>{s("dismissed")},onAdClosed:()=>{s("viewed")}};(yield this.helper.showAdAsync({providers:this.providers,callbacks:c})).code!=="SUCCESS"&&this.reinit("noAdPreloaded")})),this.providers=r,this.helper=new Sl(t),this.init()}};Um=class{constructor(t,r){ca(this,"name","INTERNAL_NATIVE"),ca(this,"context",void 0),ca(this,"rewardAdManager",void 0),ca(this,"interstitialManager",void 0),ca(this,"initProviders",void 0),this.context=t,this.initProviders=r.providers;let n=this.getConfigsByTypes(["REWARD","REWARD_INTERSTITIAL","NATIVE"],r.providers),i=this.getConfigsByTypes(["INTERSTITIAL"],r.providers);n.length>0&&(this.rewardAdManager=new Lm(this.context,n)),i.length>0&&(this.interstitialManager=new qm(this.context,i))}getConfigsByTypes(t,r,n){let i=[];return(n?n.map(o=>r.find(a=>a.provider===o.provider)).filter(o=>!!o):r).forEach(o=>{t.forEach(a=>{let s="";a==="REWARD"&&(s=o.params.adUnitId.reward),a==="REWARD_INTERSTITIAL"&&(s=o.params.adUnitId.rewardInterstitial),a==="INTERSTITIAL"&&(s=o.params.adUnitId.interstitial),a==="NATIVE"&&(s=o.params.adUnitId.nativeAds),s&&i.push({provider:o.provider,params:{placementId:s,adsType:a,extra:o.params.extra}})})}),i}init(){return g(this,null,function*(){})}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:"reward",breakStatus:"noAdPreloaded"});return}let a=this.getConfigsByTypes(["REWARD","REWARD_INTERSTITIAL","NATIVE"],this.initProviders,r.params);this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:s=>{var c;(c=t.adBreakDone)==null||c.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:s})}},a);break}default:{let a=t;if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:a.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded"});return}let s=this.getConfigsByTypes(["INTERSTITIAL"],this.initProviders,r.params);this.interstitialManager.requestAds({beforeAd:a.beforeAd,afterAd:a.afterAd,onEnd:c=>{var l;(l=t.adBreakDone)==null||l.call(t,{breakName:a.name,breakType:t.type,breakFormat:"interstitial",breakStatus:c})}},s);break}}}},dm="jolibox-nb-proxy",j9=0;hl=()=>{try{if(window.parent&&window.parent!==window)return B9("GameSDK")}catch(e){}};Mm=class{constructor(){en(this,"adsContext",null),en(this,"_isReady",!1),en(this,"_isAvailable",!1),en(this,"init",()=>g(this,null,function*(){this._isReady=!1;let t=hl();if(t)try{if(this._isAvailable=yield t.isAvailable("rewarded"),console.log("[JoliboxSDK] NewsBreak init isAvailable",this._isAvailable),!this._isAvailable)return;let r=yield t.createRewardAd({platform:"jolibox"});console.log("[JoliboxSDK] NewsBreak init createRewardAd result:",r),this._isReady=r.success&&r.ready}catch(r){this._isReady=!1}})),en(this,"destroy",t=>{var r,n;this._isReady=!1,(n=(r=this.adsContext)==null?void 0:r.adBreakDone)==null||n.call(r,t),t!=="ignored"&&(this.adsContext=null)}),en(this,"reinit",t=>g(this,null,function*(){this.destroy(t),yield this.init()})),en(this,"requestAds",t=>{if(console.log("[JoliboxSDK] NewsBreak newsbreak this.adsContext",this.adsContext),this.adsContext){this.destroy("ignored");return}this.adsContext=t;let r=hl();if(console.log("[JoliboxSDK] NewsBreak newsbreak sdk",r),!r){this.destroy("notReady");return}if(this._isReady||r.isRewardReady())this._isReady=!0,this.showAd();else{let n=window.setTimeout(()=>{this._isReady||this.reinit("timeout")},5e3);r.createRewardAd({platform:"jolibox"}).then(i=>{clearTimeout(n),i.success&&i.ready?(this._isReady=!0,this.showAd()):this.reinit("noAdPreloaded")}).catch(()=>{clearTimeout(n),this.reinit("noAdPreloaded")})}}),en(this,"showAd",()=>{if(!this.adsContext){this.destroy("error");return}this.adsContext.beforeReward(()=>g(this,null,function*(){var t,r,n,i,o,a,s,c,l,d,u,p,f,m;(r=(t=this.adsContext)==null?void 0:t.beforeAd)==null||r.call(t);let v=hl();if(!v){(i=(n=this.adsContext)==null?void 0:n.afterAd)==null||i.call(n),this.reinit("error");return}try{let b=yield v.showRewardAd();if(console.log("[JoliboxSDK] NewsBreak showRewardAd result:",b),!b.success){(a=(o=this.adsContext)==null?void 0:o.afterAd)==null||a.call(o),this.reinit("error");return}b.rewardGranted?((s=this.adsContext)==null||s.adViewed(),(l=(c=this.adsContext)==null?void 0:c.afterAd)==null||l.call(c),this.reinit("viewed")):((d=this.adsContext)==null||d.adDismissed(),(p=(u=this.adsContext)==null?void 0:u.afterAd)==null||p.call(u),this.reinit("dismissed"))}catch(b){(m=(f=this.adsContext)==null?void 0:f.afterAd)==null||m.call(f),this.reinit("error")}}))}),this.init()}};Fm=class{constructor(){DT(this,"name","NEWSBREAK"),DT(this,"rewardAdManager",void 0)}init(){return g(this,null,function*(){let t=hl();if(!t){console.warn("[JoliboxSDK] NewsBreak GameSDK is not available on window");return}t.onEnter(),this.rewardAdManager=new Mm})}adConfig(t,r){}adBreak(t,r){var n,i;if(t.type!=="reward"){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakFormat:"reward",breakStatus:"noAdPreloaded"});return}if(!this.rewardAdManager){(i=t.adBreakDone)==null||i.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:"noAdPreloaded"});return}this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:o=>{var a;(a=t.adBreakDone)==null||a.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:o})}})}};Li=class{constructor(t){if(Ht(this,"context",void 0),Ht(this,"contextInfo",void 0),Ht(this,"providers",{}),Ht(this,"channelPolicy",void 0),Ht(this,"adsActionDetection",void 0),Ht(this,"requestContext",void 0),Ht(this,"adsRequest",void 0),Ht(this,"initialized",!1),Ht(this,"adsIsShowing",!1),Ht(this,"lastAdBreak",void 0),Ht(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new bm(this.context),this.adsActionDetection=new ym(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new Dm(t),this.requestContext=new wl(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return g(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){let n=r.filter(s=>s.isNative),i=r.filter(s=>!s.isNative),o={provider:"INTERNAL_NATIVE",params:{providers:n}},a=i.concat([o]);for(let s of a)switch(s.provider){case"GOOGLE_GPT":{let c=new Rm(this.context,s.params);yield c.init(),this.providers[s.provider]=c;break}case"ADSENSE":case"ADSENSE_ADMOB":{let c=new _m(this.context,s.params);yield c.init(),this.providers[s.provider]=c;break}case"OKSPIN":{let c=new xm(this.context,s.params);yield c.init(),this.providers.OKSPIN=c;break}case"APPSROCKETS":{let c=new Pm(this.context,s.params);yield c.init(),this.providers.APPSROCKETS=c;break}case"ADSENSE_BANNER_AS_AFG":{let c=new Tm(this.context,s.params);yield c.init(),this.providers.ADSENSE_BANNER_AS_AFG=c;break}case"INTERNAL_NATIVE":{let c=new Um(this.context,s.params);yield c.init(),this.providers.INTERNAL_NATIVE=c;break}case"NEWSBREAK":{console.log("[JoliboxSDK] NewsBreak Provider",s);let c=new Fm;yield c.init(),this.providers.NEWSBREAK=c;break}}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return g(this,null,function*(){var r,n,i,o,a,s,c,l,d,u,p,f,m,v,b,y;let w=Date.now();if(w-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&&w-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=w,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 E=yield this.adsRequest.getAFGAdsInfo(t.type),C=E==null?void 0:E.data,T=E==null?void 0:E.code;if(T==="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 k,A,J,ue;(k=t.beforeAd)==null||k.call(t),(A=t.adViewed)==null||A.call(t),(J=t.afterAd)==null||J.call(t),(ue=t.adBreakDone)==null||ue.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(!C||T!=="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{if(C.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 k=!0,A=null,J=new vm(this.context);this.adsActionDetection.adBreakIsShowing=!0;let ue=C.filter(G=>G.isNative).sort((G,H)=>G.seq-H.seq),N=C.filter(G=>!G.isNative).sort((G,H)=>G.seq-H.seq),O={seq:(m=(f=ue[0])==null?void 0:f.seq)!=null?m:0,provider:"INTERNAL_NATIVE",params:ue},F;for(ue.length>0?F=[O].concat(N):F=N,F=F.sort((G,H)=>G.seq-H.seq).map((G,H)=>iV(UT({},G),{seq:H}));F.length>0;){let G=F.shift(),H=this.providers[G.provider];if(H){let[qt,_h]=yield J.callAdBreakAndContinue(H,t,G,Dl=>{var wa;this.adsIsShowing=Dl,(wa=this.context.eventEmitter)==null||wa.emit("isAdShowing",Dl)});k=qt,A=_h}else k=!0,A={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!k)break}k&&A&&((v=t.adBreakDone)==null||v.call(t,A))}}catch(E){(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(y=this.context.eventEmitter)==null||y.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.")}},zne=ot`
|
|
870
870
|
${je}
|
|
871
871
|
position: fixed;
|
|
872
872
|
left: 0;
|
|
@@ -911,4 +911,4 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
911
911
|
cursor: pointer;
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
|
-
`});function sP(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return g(this,null,function*(){return yield i.reduce((s,c)=>g(this,null,function*(){let l=yield s;if(l===!0)return!0;aP&&console.log(`handleReward ${c}`);let d=e.get(c),u=d?yield d(...o):l;return aP&&console.log(`handleReward ${c} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return g(this,null,function*(){t=(...o)=>g(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return g(this,null,function*(){r=(...o)=>g(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Ar,loginGuide:Cr}}})})},getRewardsTypes(...i){return g(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return g(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:Ar,loginGuide:Cr}})}}}var aP,cP=x(()=>{"use strict";V();Be();aP=S.testMode});var jm,Bm,Cl,lP=x(()=>{"use strict";R();jm=class{constructor(t){this.httpClient=t}execute(t,r){return g(this,null,function*(){let n=(r==null?void 0:r.method)||"POST",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){var r,n,i;return{unlockOptions:((r=t.data)==null?void 0:r.unlockOptions)||[],joliCoin:((n=t.extra)==null?void 0:n.joliCoin)||{balance:0,enableAutoDeduct:!1},joliGem:((i=t.extra)==null?void 0:i.joliGem)||{balance:0,enableAutoDeduct:!1}}}mergeData(t,r){return{code:"SUCCESS",message:"success",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin||{balance:0,enableAutoDeduct:!1},joliGem:t.joliGem||{balance:0,enableAutoDeduct:!1}}}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin,joliGem:t.joliGem}}}},Bm=class{constructor(t){this.httpClient=t}execute(t,r){return g(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){let r=t.data;return P({joliCoinUseAndCharge:r==null?void 0:r.joliCoinUseAndCharge,loginGuide:r==null?void 0:r.loginGuide},r)}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:t}}},Cl=class{constructor(t){this.unlockOptionsService=new Ut(new jm(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 Ut(new Bm(t),{duration:60*60*1e3,timeout:1e3,keyGenerator:r=>r})}getUnlockOptions(){return g(this,arguments,function*(t={}){return yield this.unlockOptionsService.request("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}getGlobalConfig(){return g(this,null,function*(){return yield this.globalConfigService.request("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}refreshUnlockOptions(){return g(this,arguments,function*(t={}){return yield this.unlockOptionsService.forceRequest("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}refreshGlobalConfig(){return g(this,null,function*(){return yield this.globalConfigService.forceRequest("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}warmupCache(){return g(this,null,function*(){yield Promise.all([this.unlockOptionsService.warmupCache("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",method:"POST"}),this.globalConfigService.warmupCache("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})])})}clearAllCache(){this.unlockOptionsService.clearCache(),this.globalConfigService.clearCache()}getCacheStats(){return{unlockOptions:this.unlockOptionsService.getCacheStats(),globalConfig:this.globalConfigService.getCacheStats()}}clearExpiredCache(){this.unlockOptionsService.clearExpiredCache(),this.globalConfigService.clearExpiredCache()}}});function Jm(e){return Gm||(Gm=new Cl(e)),Gm}var N9,D9,L9,Gm,Hm,Vm,$m,Wm=x(()=>{"use strict";lP();Be();R();N9=()=>(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]},D9=["openJolicoinGuide",{method:"getABTest",platforms:["android"],nativeVersionCode:1050100},"userTrackAsync",{method:"openMiniapp",nativeVersionCode:1050100}],L9=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(N9())},Gm=null;Hm=e=>{e.registerRewardsFetcher(t=>g(void 0,null,function*(){var i,o,a,s,c;let r=["ADS"],n=Jm(t);try{let l=yield n.getUnlockOptions({});if(l.code!=="SUCCESS")return r;U.emit(Gc,{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 L9(d)}catch(l){return console.error("getRewardOptions error (cached):",l),r}}))},Vm=e=>{e.registerRewardFrequencyConfigFetcher(t=>g(void 0,null,function*(){var n,i,o,a;let r=Jm(t);try{let s=yield r.getGlobalConfig();return U.emit(Jt,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||Ar,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||Cr}),s.data&&_e.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||Ar,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||Cr}}catch(s){return console.error("getGlobalConfig error (cached):",s),U.emit(Jt,{joliCoinUseAndCharge:Ar,loginGuide:Cr}),_e.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:Ar,loginGuide:Cr,supportedHostMethods:D9}}),{joliCoinUseAndCharge:Ar,loginGuide:Cr}}}))},$m=e=>g(void 0,null,function*(){yield Jm(e).warmupCache(),console.log("Reward cache warmed up")})});var zm=x(()=>{"use strict";Wm();Wm()});var uP,dP=x(()=>{"use strict";uP=e=>t=>g(void 0,null,function*(){try{console.log("trigger @jolibox/ads reward",t),yield e.adBreak(t)}catch(r){console.error("-----createAdsRewardHandler error-----",r)}return!0})});var Le,Ui,Tt=x(()=>{"use strict";Be();or();Be();Le=Ge(U,Gc),Ui=(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 kl,Km=x(()=>{"use strict";kl={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 yt,rn=x(()=>{"use strict";R();yt=K()});function pP(e){return Ym||(Ym=new Xm(e)),Ym}var Qm,Xm,Ym,Zm,Dn,Mi=x(()=>{"use strict";R();Qm=class{constructor(t){this.httpClient=t}execute(t,r){return g(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},Xm=class{constructor(t){this.balanceService=new Ut(new Qm(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getBalance(t="JOLI_COIN"){return g(this,null,function*(){return(yield this.balanceService.request("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}refreshBalance(t="JOLI_COIN"){return g(this,null,function*(){return(yield this.balanceService.forceRequest("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}warmupBalance(t="JOLI_COIN"){return g(this,null,function*(){yield this.balanceService.warmupCache("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})})}clearBalanceCache(){this.balanceService.clearCache()}getBalanceCacheStats(){return this.balanceService.getCacheStats()}clearExpiredCache(){this.balanceService.clearExpiredCache()}},Ym=null;Zm=(e,t="JOLI_COIN")=>g(void 0,null,function*(){return yield pP(e).getBalance(t)}),Dn=(e,t="JOLI_COIN")=>g(void 0,null,function*(){let n=yield pP(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var fP=x(()=>{"use strict";Mi()});function nh(e){return eh||(eh=new rh(e)),eh}var th,rh,eh,ih,Ln,xl,Fi=x(()=>{"use strict";R();th=class{constructor(t){this.httpClient=t}execute(t,r){return g(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},rh=class{constructor(t){this.gemBalanceService=new Ut(new th(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getGemBalance(t="GEM"){return g(this,null,function*(){return(yield this.gemBalanceService.request("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}refreshGemBalance(t="GEM"){return g(this,null,function*(){return(yield this.gemBalanceService.forceRequest("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}warmupGemBalance(t="GEM"){return g(this,null,function*(){yield this.gemBalanceService.warmupCache("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})})}clearGemBalanceCache(){this.gemBalanceService.clearCache()}getGemBalanceCacheStats(){return this.gemBalanceService.getCacheStats()}clearExpiredCache(){this.gemBalanceService.clearExpiredCache()}},eh=null;ih=(e,t="GEM")=>g(void 0,null,function*(){return yield nh(e).getGemBalance(t)}),Ln=(e,t="GEM")=>g(void 0,null,function*(){let n=yield nh(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),xl=(e,t="GEM")=>g(void 0,null,function*(){yield nh(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var mP=x(()=>{"use strict";Fi()});var Dt,qn=x(()=>{"use strict";fP();mP();Dt={JOLI_COIN:{fetchBalance:Zm,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:ih,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 ga,Nr,oh=x(()=>{"use strict";rn();Tt();or();Be();Be();qn();ga=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;yt.registerCommand(`Rewards.${e}.useJolicoin`,()=>g(void 0,null,function*(){let i=yield Le.getData(),o=Dt[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"}}))},Nr=(e,t)=>r=>g(void 0,null,function*(){let n=Ge(U,Cn);return U.emit(Hc,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var va,Dr,hP=x(()=>{"use strict";rn();Tt();Be();or();Be();qn();Fi();Mi();va=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;yt.registerCommand(`Rewards.${e}.usePayment`,()=>g(void 0,null,function*(){var p;let o=yield Le.getData(),a=Dt[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(Le.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"?Ln(n):Dn(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},Dr=(e,t)=>r=>g(void 0,null,function*(){let n=Ge(U,Gt);return U.emit(Jc,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 ah,Lr,gP=x(()=>{"use strict";V();rn();or();Be();Be();R();Tt();qn();ah=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;yt.registerCommand(`Rewards.${e}.useUnloginModal`,()=>g(void 0,null,function*(){var s,c,l;let o=(s=S.hostUserInfo)==null?void 0:s.isLogin,a=yield Le.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 Oa(3e3));let f=Dt[t],m=yield f.fetchBalance(i),v=f.getQuantity(a),b=f.getCurrentUser(a),y=f.createUpdatedUser((l=m==null?void 0:m.balance)!=null?l:0,b.enableAutoDeduct),w=f.getUpdateKey();if(Le.updateData({[w]:y}),y.balance>=v)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Lr=(e,t)=>r=>g(void 0,null,function*(){let n=Ge(U,Er);return U.emit(Vc,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var Un=x(()=>{"use strict";oh();hP();gP()});var U9,Tl,sh=x(()=>{"use strict";V();R();Km();Un();rn();Mi();qn();Tt();U9=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:c,hasSubscription:l}})=>{va(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),ga(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let d=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return u=>g(void 0,null,function*(){var p,f,m,v;try{let b=yield o.getData();if(Ui(b,l)){let C=Dt.JOLI_COIN,T=yield C.fetchBalance(t),k=C.getCurrentUser(b),A=C.createUpdatedUser((p=T==null?void 0:T.balance)!=null?p:0,k.enableAutoDeduct);if(!C.isEnough(b,A))return i==null||i(u),!1}else{let C=!0;for(let T of d){let k=yield yt.executeCommand(T);if(C=C&&k.result!=="FAILED",k.result!=="CONTINUE")break}if(!C)return i==null||i(u),!1}let w=kl[r],E=yield t.post(w.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Gn()}-${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&&((v=u.adViewed)==null||v.call(u)),Dn(t)}catch(C){console.error("-----unlockWithJolicoin adBreakDone error-----",C)}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()}})},Tl=(e,t,r)=>U9(e,t,"JOLI_COIN",r)});var vP,yP=x(()=>{"use strict";Tt();sh();Un();vP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Nr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Dr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Lr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Tl("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Le,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var bP,_P=x(()=>{"use strict";sh();Tt();Un();bP=(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=Nr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Dr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Lr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Tl("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Le,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var Pl,ch=x(()=>{"use strict";V();R();Km();Un();oh();rn();Fi();qn();Tt();Pl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s,hasSubscription:c}})=>{ah(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),va(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),ga(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>g(void 0,null,function*(){var u,p,f,m;try{let v=yield i.getData(),b=Ui(v,c);if(console.log("[GemHandler] supportSubscription",b,v),b){let E=Dt.JOLI_GEM,C=yield E.fetchBalance(t),T=E.getCurrentUser(v),k=E.createUpdatedUser((u=C==null?void 0:C.balance)!=null?u:0,T.enableAutoDeduct);if(!E.isEnough(v,k))return n==null||n(d),!1}else{let E=!0;for(let C of l){let T=yield yt.executeCommand(C);if(console.log("[GemHandler] command result",T,C),E=E&&T.result!=="FAILED",T.result!=="CONTINUE")break}if(!E)return n==null||n(d),!1}let y=kl.GEM,w=yield t.post(y.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Gn()}-${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)),Ln(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(v){if(console.info("GemRewardHandler error:",v),v instanceof Error&&v.message=="CANCEL")throw v;return n==null||n(d),!1}finally{i.clearCache()}})}});var wP,SP=x(()=>{"use strict";Tt();ch();Un();wP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Nr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Dr("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Lr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Pl("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Le,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var IP,EP=x(()=>{"use strict";ch();Tt();Un();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=Nr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Dr("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Lr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Pl("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Le,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var AP,CP,lh=x(()=>{"use strict";qn();rn();Tt();or();Be();Be();AP=e=>{let{showSubscriptionModal:t}=e;yt.registerCommand("Rewards.subscription",()=>g(void 0,null,function*(){var s,c;let r=yield Le.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=Dt[n?"JOLI_GEM":"JOLI_COIN"],o=i.getCurrentUser(r);return i.isEnough(r,o)?{result:"FAILED"}:{result:(yield t())==="SUCCESS"?"SUCCESS":"FAILED"}}))},CP=e=>()=>g(void 0,null,function*(){let t=Ge(U,kn);return U.emit($c,e),(yield t.getFreshData()).result})});var kP=x(()=>{"use strict";lh()});var xP,TP=x(()=>{"use strict";rn();kP();V();Tt();Mi();Fi();xP=(e,t,{handlers:{handleSubSuccess:r,handleSubFailed:n,unlockOptionsHandler:i,showSubscriptionModal:o,hasSubscription:a}})=>{AP({showSubscriptionModal:o});let s=["Rewards.subscription"];return c=>g(void 0,null,function*(){var l,d,u,p,f,m;try{let v=yield i.getData();if(!Ui(v,a))return!1;let y=!0;for(let w of s){let E=yield yt.executeCommand(w);if(y=y&&E.result!=="FAILED",E.result!=="CONTINUE")break}if(Dn(t),Ln(t),console.log("-----unlockWithSubscription result-----",y),y){try{(d=c.adBreakDone)==null||d.call(c,{breakType:c.type,breakName:"name"in c&&(l=c.name)!=null?l:"",breakFormat:c.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in c&&((u=c.adViewed)==null||u.call(c)),(m=(f=S).onEnvConfigChanged)==null||m.call(f,{hostUserInfo:B(P({},(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(v){if(console.info("SubscriptionRewardHandler error:",v),v instanceof Error&&v.message=="CANCEL")throw v;return n==null||n(c),!1}finally{}})}});var PP,OP=x(()=>{"use strict";Tt();TP();lh();PP=(e,{onSubSuccess:t,onSubFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=CP("SUBSCRIPTION");return xP("SUBSCRIPTION",e,{handlers:{handleSubSuccess:t,handleSubFailed:i,unlockOptionsHandler:Le,showSubscriptionModal:o,hasSubscription:n}})}});var Lt,RP=x(()=>{"use strict";cP();zm();dP();yP();_P();SP();EP();OP();Mi();Fi();Lt=sP();Hm(Lt);Vm(Lt)});var Ol,M9,lr,F9,ya,j9,NP,DP,B9,G9,uh,J9,H9,V9,LP=x(()=>{"use strict";R();Je();ir();rT();rm();Fm();_t();V();pt();ue();RP();is();zm();Ol=K(),M9=()=>{let{data:e}=M("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},lr={get:(e,t)=>Y(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>Y(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},F9={httpClient:lr,checkNetwork:M9,track:j,eventEmitter:ln,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,c,l;return{hostAppId:(t=(e=S.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=S.deviceInfo.did)!=null?r:"",adId:(n=S.deviceInfo.adId)!=null?n:"",sessionId:(i=S.sessionId)!=null?i:"",userId:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:S.mpId,testAdsMode:S.testAdsMode,channel:(s=S.joliSource)!=null?s:"",deviceBrand:S.deviceInfo.brand,deviceModel:S.deviceInfo.model,osType:S.platform==="android"?"ANDROID":S.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=S.joliSource)!=null?c:"",deviceInfo:{platform:S.platform,nativeSDKVersionCode:(l=S.sdkInfo.nativeSDKVersionCode)!=null?l:0}}}},ya=new Ni(F9);Lt.getRewardFrequencyConfig(lr).then(e=>{console.log("getRewardFrequencyConfig",e)});Lt.registerRewardHandler("ADS",uP(ya));Lt.registerRewardHandler("JOLI_COIN",vP(lr,{onUnlockSuccess:e=>{NP(e),j("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>Ae("invokeSubscriptionPanelSync")}));Lt.registerRewardHandler("JOLI_COIN_ONLY",bP(lr,{onUnlockSuccess:e=>{NP(e),j("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>Ae("invokeSubscriptionPanelSync")}));Lt.registerRewardHandler("JOLI_GEM",wP(lr,{onUnlockSuccess:e=>{DP(e),j("gem_unlock_success",{quantity:e.quantity})},hasSubscription:()=>Ae("invokeSubscriptionPanelSync")}));Lt.registerRewardHandler("JOLI_GEM_ONLY",IP(lr,{onUnlockSuccess:e=>{DP(e),j("gem_unlock_success",{quantity:e.quantity,isOnly:!0})},hasSubscription:()=>Ae("invokeSubscriptionPanelSync")}));j9=()=>{j("subscription_unlock_success",{})};Lt.registerRewardHandler("SUBSCRIPTION",PP(lr,{onSubSuccess:j9.bind(void 0),hasSubscription:()=>Ae("invokeSubscriptionPanelSync")}));NP=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Ir(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})};$m(lr);xl(lr);ln.on("isAdShowing",e=>{Ci("JOLIBOX_ADS_EVENT",{isAdShowing:e})});DP=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Ir(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"}}})},B9=Q("adInit",{implement:e=>{ya.init(e)}}),G9=Q("adConfig",{implement:e=>{ya.adConfig(e)}}),uh=!1,J9=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))},H9=Q("adBreak",{implement:e=>{var r;if((r=S.hostUserInfo)==null?void 0:r.isSubUser){J9(e);return}if(e.type==="reward"){if(uh)return;uh=!0,Lt.getRewardsTypes(lr).then(n=>{Lt.handleReward(n,e).catch(i=>{var o;console.info("handleReward failed in native",i),(o=e.adBreakDone)==null||o.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{uh=!1})})}else ya.adBreak(e)}}),V9=Q("adUnit",{implement:e=>{ya.adUnit(e)}});Ol.registerCommand("AdsSDK.init",B9);Ol.registerCommand("AdsSDK.adConfig",G9);Ol.registerCommand("AdsSDK.adBreak",H9);Ol.registerCommand("AdsSDK.adUnit",V9);D("AdsSDK.init",{version:"1.0.0"});D("AdsSDK.adConfig",{version:"1.0.0"});D("AdsSDK.adBreak",{version:"1.0.0"});D("AdsSDK.adUnit",{version:"1.0.0"})});var ba,$9,W9,z9,K9,Y9,qP=x(()=>{"use strict";R();ue();Je();V();ba=K(),$9=Q("openSchemaSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=M("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Vt(r.errMsg,r.errNo)}}),W9=Q("openPageSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=M("openPageSync",{url:e});if(t!==0||!n)throw new Vt(r,t);return{webviewId:n.webviewId}}}),z9=Q("closePageSync",{paramsSchema:I.tuple(I.number()),implement:e=>{let{errNo:t,errMsg:r}=M("closePageSync",{webviewId:e});if(t!==0)throw new Vt(r,t)}}),K9=Q("interceptSystemExitSync",{paramsSchema:I.tuple(I.boolean()),implement:e=>{_e.emit("onInterceptSystemExit",{intercept:e}),_e.emit("onInterceptBackPress",{intercept:e})}}),Y9=Q("navigateToNativePage",{paramsSchema:I.tuple(I.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),I.object()),implement:(e,t)=>{M("callHostMethodAsync",{method:e,params:P({},t)})}});ba.registerCommand("RouterSDK.openSchema",$9);ba.registerCommand("RouterSDK.openPage",W9);ba.registerCommand("RouterSDK.closePage",z9);ba.registerCommand("RouterSDK.interceptSystemExit",K9);ba.registerCommand("RouterSDK.navigateToNativePage",Y9);D("router.openSchema",{version:"1.1.10"});D("router.openPage",{version:"1.1.10"});D("router.closePage",{version:"1.1.10"});D("router.interceptSystemExit",{version:"1.1.18"});D("router.navigateToNativePage",{version:"1.1.19"})});function Z9(e){on("cpLoadProgressEvent",{progress:e},S.webviewId,!0),Ci("CP_LOAD_PROGRESS",{progress:e})}var ph,Q9,Rl,dh,UP,X9,eW,tW,MP=x(()=>{"use strict";R();Je();ue();V();_t();rm();ph=K(),Q9=Q("onLoadFinished",{implement:()=>{on("cpLoadFinishEvent",{},S.webviewId,!0),Ci("CP_LOAD_FINISH",{duration:performance.now()}),j("loadFinished",{duration:performance.now()})}}),Rl=null,dh=!1,UP=0,X9=200;eW=Q("onLoadProgress",{paramsSchema:I.tuple(I.number()),implement:e=>{Rl=e,dh||(dh=!0,requestAnimationFrame(function t(){let r=Date.now();r-UP>=X9?(Rl!==null&&(Z9(Rl),UP=r,Rl=null),dh=!1):requestAnimationFrame(t)}))}}),tW=Q("onGameTTI",{paramsSchema:I.tuple(I.number().optional()),implement:()=>{on("cpGameTTIEvent",{duration:performance.now()},S.webviewId,!0),Ci("CP_GAME_TTI",{duration:performance.now()}),j("gameTTI",{duration:performance.now()})}});ph.registerCommand("RuntimeSDK.loadFinishedEvent",Q9);ph.registerCommand("RuntimeSDK.loadProgressEvent",eW);ph.registerCommand("RuntimeSDK.gameTTIEvent",tW)});var rW,nW,iW,FP=x(()=>{"use strict";R();Je();V();rW=K(),nW="isNativeSupport",iW=Q(nW,{paramsSchema:I.tuple(I.object({version:I.string()})),implement:e=>{let t=S.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:ng(ku(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});rW.registerCommand("API.isNativeSupport",iW);D("isNativeSupport",{version:"1.1.46"})});var BP=h(fh=>{"use strict";Je();ue();R();R();V();var jP=K(),oW=W("callHostMethod",{paramsSchema:I.tuple(I.object({method:I.string(),params:I.object().optional().default({})})),implement:r=>g(fh,[r],function*({method:e,params:t}){if(!Ae(e))throw new Vt("Method not supported",10001);let{errNo:n,errMsg:i,data:o}=yield M("callHostMethodAsync",{method:e,params:P({},t)});if(n!==0)throw new Vt(i,n);let c=o,{callHostMethodId:a}=c,s=Qe(c,["callHostMethodId"]);return P({},s)})});jP.registerCommand("API.callHostMethod",oW);D("callHostMethod",{version:"1.1.49"});var aW=W("userTrackAsync",{paramsSchema:I.tuple(I.object({event:I.string(),eventType:I.number(),params:I.object().optional().default({})})),implement:n=>g(fh,[n],function*({event:e,eventType:t,params:r}){if(!Ae("userTrackAsync"))throw new Vt("Method not supported",10001);let{errNo:i,errMsg:o}=yield M("trackAsync",{event:e,eventType:t,data:P({},r),webviewId:S.webviewId});if(i!==0)throw new Vt(o,i)})});jP.registerCommand("API.track",aW);D("track",{version:"1.1.53"})});var HP=h(Mn=>{"use strict";R();Je();$f();Ur();tm();var ji=K(),GP=Xc(),sW=W("purchaseGem",{paramsSchema:I.tuple(I.object({productId:I.string()})),implement:e=>g(Mn,null,function*(){var r,n;let t=yield GP.purchase(e.productId);if(t.code!=="SUCCESS")throw xe({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=(r=t.data)==null?void 0:r.totalAmount)!=null?n:""}})}),cW=W("getGemProducts",{paramsSchema:I.tuple(),implement:()=>g(Mn,null,function*(){var t,r;let e=(r=(t=yield GP.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}})}})}),lW=W("getSubscriptionPlans",{paramsSchema:I.tuple(),implement:()=>g(Mn,null,function*(){let e=yield Rn.getSubInfo();if(console.log("[PaymentAPI] getSubscriptionPlans result",e),!e)throw xe({code:-1,msg:"[JoliboxSDK]: get subscription plans failed"});return{plans:e}})}),uW=W("flushSubInfoCache",{paramsSchema:I.tuple(),implement:()=>g(Mn,null,function*(){yield Rn.updateAllNativePriceCache()})}),JP=e=>g(Mn,null,function*(){var a;let{productId:t}=e,r=e.appStoreProductId,n=e.appStoreProductId,i=t;if(!e.appStoreProductId){let s=yield Rn.getTierByProductId(e.productId);if(!s)throw xe({code:-1,msg:"[JoliboxSDK]: product not found"});r=s.basePlanId,n=s.appStoreProductId,i=s.nativeProductId}if(!r||!n||!i)throw xe({code:-1,msg:"[JoliboxSDK]: product not found"});let o=yield Rn.subscribe({basePlanId:r,nativeProductId:i,appStoreProductId:n});return{result:o.result,subPlanId:o.subPlanId,errMsg:(a=o.message)!=null?a:""}}),dW=W("subscribe",{paramsSchema:I.tuple(I.object({productId:I.string(),appStoreProductId:I.string().optional()})),implement:JP}),pW=W("subscribeSpin",{paramsSchema:I.tuple(I.object({appStoreProductId:I.string().optional()})),implement:e=>g(Mn,null,function*(){return JP(B(P({},e),{productId:"jolibox_app_spin_sub"}))})});ji.registerCommand("PaymentSDK.purchaseGem",sW);ji.registerCommand("PaymentSDK.getGemProducts",cW);ji.registerCommand("PaymentSDK.getSubscriptionPlans",lW);ji.registerCommand("PaymentSDK.subscribe",dW);ji.registerCommand("PaymentSDK.subscribeSpin",pW);ji.registerCommand("PaymentSDK.flushSubInfoCache",uW);D("payment.purchaseGem",{version:"1.2.9"});D("payment.getGemProducts",{version:"1.2.9"});D("payment.getSubscriptionPlans",{version:"1.2.9"});D("payment.subscribe",{version:"1.2.9"});D("payment.flushSubInfoCache",{version:"1.2.9"});D("payment.subscribeSpin",{version:"1.3.7"})});var $P=h(nn=>{"use strict";R();Je();V();Ur();ue();is();_t();Fm();pt();var fW=()=>{let{data:e}=M("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},mW={get:(e,t)=>Y(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>Y(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},hW={httpClient:mW,checkNetwork:fW,track:j,eventEmitter:ln,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,c,l;return{hostAppId:(t=(e=S.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=S.deviceInfo.did)!=null?r:"",adId:(n=S.deviceInfo.adId)!=null?n:"",sessionId:(i=S.sessionId)!=null?i:"",userId:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"TASK",objectId:S.mpId,testAdsMode:S.testAdsMode,channel:(s=S.joliSource)!=null?s:"",deviceBrand:S.deviceInfo.brand,deviceModel:S.deviceInfo.model,osType:S.platform==="android"?"ANDROID":S.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(c=S.joliSource)!=null?c:"",deviceInfo:{platform:S.platform,nativeSDKVersionCode:(l=S.sdkInfo.nativeSDKVersionCode)!=null?l:0}}}},mh=K(),VP=Bn(reportError),gW=W("getCoinDetails",{paramsSchema:I.tuple(I.function().optional()),implement:e=>g(nn,null,function*(){try{if(S.mpType!=="miniApp")return reportError(xe({code:-1,msg:"[JoliboxSDK]: rewards info not supported in games. Only supported in mini apps."})),{code:"FAILURE",message:"[JoliboxSDK]: rewards info not supported in games. Only supported in mini apps."};if(!Ae("requestCoinDetailsSync"))return reportError(xe({code:-1,msg:"[JoliboxSDK]: rewards info not supported in this platform."})),{code:"FAILURE",message:"[JoliboxSDK]: rewards info not supported in this platform. lower than 1.7.1"};let r=e?VP(e):(()=>{console.log("default update function called")}).bind(nn),{errNo:n,errMsg:i,data:o}=M("requestCoinDetailsSync");if(n!==0)throw xe({code:n!=null?n:-1,msg:i});return console.log("=====> sync data",o,n),M("requestCoinDetailsAsync").then(a=>{a.errNo==0&&a.data&&(r(a.data),console.log("=====> res.data",a.data))}),{code:"SUCCESS",message:"Successfully retrieved coin details",data:o}}catch(t){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to get coin details: "+t.message}}})});mh.registerCommand("RewardsSDK.getCoinDetails",gW);D("rewards.getCoinDetails",{version:"1.3.2"});var vW=W("createRewardsAdsManager",{implement:()=>g(nn,null,function*(){try{let e=new Ni(hW);if(S.mpType!=="miniApp")throw xe({code:-1,msg:"[JoliboxSDK]: createRewardsAdsManager not supported in games. Only supported in mini apps."});return{code:"SUCCESS",message:"Successfully created RewardsAdsManager",data:{init:()=>g(nn,null,function*(){yield e.init(),e.adConfig({preloadAdBreaks:"on",sound:"off",onReady:()=>{}})}),showAd:t=>g(nn,null,function*(){e.adBreak({type:"reward",beforeReward:r=>{var n;r(),(n=t.onAdLoaded)==null||n.call(t)},adDismissed:()=>{var r;(r=t.onAdDismissed)==null||r.call(t)},adViewed:()=>{},adBreakDone:r=>{var o,a;let n=r.breakStatus,i=n==="frequencyCapped"||n==="other"||n==="error"||n==="noAdPreloaded";n==="viewed"&&(console.log("-----> complete watch ads"),at.reporter({event:"COMPLETE_WATCH_ADS"}),(o=t.onAdRewarded)==null||o.call(t)),i&&(console.log("-----> no ad preloaded or error occurred",n),(a=t.onAdError)==null||a.call(t,new Error("No ad preloaded or error occurred: "+n)))}})})}}}catch(e){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to create RewardsAdsManager"}}})});mh.registerCommand("Rewards.createRewardsAdsManager",vW);D("rewards.createRewardsAdsManager",{version:"1.3.4"});var yW=W("getLeaderBoardData",{paramsSchema:I.tuple(I.object({gameId:I.string(),onUpdate:I.function().optional()})),implement:e=>g(nn,null,function*(){try{if(!Ae("requestGameLeaderboardSync"))return{code:"FAILURE",message:"[JoliboxSDK]: getLeaderBoardData not supported in this platform."};let t=e.onUpdate?VP(e.onUpdate):(()=>{console.log("default update function called")}).bind(nn),{errNo:r,errMsg:n,data:i}=M("requestGameLeaderboardSync",{gameId:e.gameId});if(r!==0)throw xe({code:r!=null?r:-1,msg:n});return M("requestGameLeaderboardAsync",{gameId:e.gameId}).then(o=>{var a;if(o.errNo===0&&o.data)t(o.data);else throw xe({code:(a=o.errNo)!=null?a:-1,msg:o.errMsg})}).catch(o=>{console.error("Failed to fetch leaderboard data asynchronously: ",o)}),{code:"SUCCESS",message:"Successfully retrieved leaderboard data",data:i}}catch(t){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to get leaderboard data: "+t.message}}})});mh.registerCommand("RewardsSDK.getLeaderBoardData",yW);D("rewards.getLeaderBoardData",{version:"1.3.9"})});var bW={};var ace,uce,gce,vce,yce,WP=x(()=>{"use strict";Qk();ace=se(Xk());ox();to();ax();uce=se(lx());jc();LP();qP();MP();FP();gce=se(BP()),vce=se(HP()),yce=se($P())});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;g(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(Kk(),zk)),Promise.resolve().then(()=>(WP(),bW)),Promise.resolve().then(()=>(_t(),Jg))]);e()});
|
|
914
|
+
`});function hP(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return g(this,null,function*(){return yield i.reduce((s,c)=>g(this,null,function*(){let l=yield s;if(l===!0)return!0;mP&&console.log(`handleReward ${c}`);let d=e.get(c),u=d?yield d(...o):l;return mP&&console.log(`handleReward ${c} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return g(this,null,function*(){t=(...o)=>g(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return g(this,null,function*(){r=(...o)=>g(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Ar,loginGuide:Cr}}})})},getRewardsTypes(...i){return g(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return g(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:Ar,loginGuide:Cr}})}}}var mP,gP=x(()=>{"use strict";V();Be();mP=I.testMode});var Vm,$m,kl,vP=x(()=>{"use strict";R();Vm=class{constructor(t){this.httpClient=t}execute(t,r){return g(this,null,function*(){let n=(r==null?void 0:r.method)||"POST",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){var r,n,i;return{unlockOptions:((r=t.data)==null?void 0:r.unlockOptions)||[],joliCoin:((n=t.extra)==null?void 0:n.joliCoin)||{balance:0,enableAutoDeduct:!1},joliGem:((i=t.extra)==null?void 0:i.joliGem)||{balance:0,enableAutoDeduct:!1}}}mergeData(t,r){return{code:"SUCCESS",message:"success",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin||{balance:0,enableAutoDeduct:!1},joliGem:t.joliGem||{balance:0,enableAutoDeduct:!1}}}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin,joliGem:t.joliGem}}}},$m=class{constructor(t){this.httpClient=t}execute(t,r){return g(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){let r=t.data;return P({joliCoinUseAndCharge:r==null?void 0:r.joliCoinUseAndCharge,loginGuide:r==null?void 0:r.loginGuide},r)}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:t}}},kl=class{constructor(t){this.unlockOptionsService=new Ut(new Vm(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 Ut(new $m(t),{duration:60*60*1e3,timeout:1e3,keyGenerator:r=>r})}getUnlockOptions(){return g(this,arguments,function*(t={}){return yield this.unlockOptionsService.request("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}getGlobalConfig(){return g(this,null,function*(){return yield this.globalConfigService.request("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}refreshUnlockOptions(){return g(this,arguments,function*(t={}){return yield this.unlockOptionsService.forceRequest("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}refreshGlobalConfig(){return g(this,null,function*(){return yield this.globalConfigService.forceRequest("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}warmupCache(){return g(this,null,function*(){yield Promise.all([this.unlockOptionsService.warmupCache("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",method:"POST"}),this.globalConfigService.warmupCache("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})])})}clearAllCache(){this.unlockOptionsService.clearCache(),this.globalConfigService.clearCache()}getCacheStats(){return{unlockOptions:this.unlockOptionsService.getCacheStats(),globalConfig:this.globalConfigService.getCacheStats()}}clearExpiredCache(){this.unlockOptionsService.clearExpiredCache(),this.globalConfigService.clearExpiredCache()}}});function zm(e){return Wm||(Wm=new kl(e)),Wm}var z9,K9,Y9,Wm,Km,Ym,Qm,Xm=x(()=>{"use strict";vP();Be();R();z9=()=>(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]},K9=["openJolicoinGuide",{method:"getABTest",platforms:["android"],nativeVersionCode:1050100},"userTrackAsync",{method:"openMiniapp",nativeVersionCode:1050100}],Y9=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(z9())},Wm=null;Km=e=>{e.registerRewardsFetcher(t=>g(void 0,null,function*(){var i,o,a,s,c;let r=["ADS"],n=zm(t);try{let l=yield n.getUnlockOptions({});if(l.code!=="SUCCESS")return r;M.emit(Jc,{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 Y9(d)}catch(l){return console.error("getRewardOptions error (cached):",l),r}}))},Ym=e=>{e.registerRewardFrequencyConfigFetcher(t=>g(void 0,null,function*(){var n,i,o,a;let r=zm(t);try{let s=yield r.getGlobalConfig();return M.emit(Jt,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||Ar,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||Cr}),s.data&&we.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||Ar,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||Cr}}catch(s){return console.error("getGlobalConfig error (cached):",s),M.emit(Jt,{joliCoinUseAndCharge:Ar,loginGuide:Cr}),we.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:Ar,loginGuide:Cr,supportedHostMethods:K9}}),{joliCoinUseAndCharge:Ar,loginGuide:Cr}}}))},Qm=e=>g(void 0,null,function*(){yield zm(e).warmupCache(),console.log("Reward cache warmed up")})});var Zm=x(()=>{"use strict";Xm();Xm()});var yP,bP=x(()=>{"use strict";yP=e=>t=>g(void 0,null,function*(){try{console.log("trigger @jolibox/ads reward",t),yield e.adBreak(t)}catch(r){console.error("-----createAdsRewardHandler error-----",r)}return!0})});var Le,Fi,Tt=x(()=>{"use strict";Be();or();Be();Le=Ge(M,Jc),Fi=(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 xl,eh=x(()=>{"use strict";xl={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 vt,nn=x(()=>{"use strict";R();vt=K()});function _P(e){return th||(th=new nh(e)),th}var rh,nh,th,ih,qn,ji=x(()=>{"use strict";R();rh=class{constructor(t){this.httpClient=t}execute(t,r){return g(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},nh=class{constructor(t){this.balanceService=new Ut(new rh(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getBalance(t="JOLI_COIN"){return g(this,null,function*(){return(yield this.balanceService.request("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}refreshBalance(t="JOLI_COIN"){return g(this,null,function*(){return(yield this.balanceService.forceRequest("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}warmupBalance(t="JOLI_COIN"){return g(this,null,function*(){yield this.balanceService.warmupCache("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})})}clearBalanceCache(){this.balanceService.clearCache()}getBalanceCacheStats(){return this.balanceService.getCacheStats()}clearExpiredCache(){this.balanceService.clearExpiredCache()}},th=null;ih=(e,t="JOLI_COIN")=>g(void 0,null,function*(){return yield _P(e).getBalance(t)}),qn=(e,t="JOLI_COIN")=>g(void 0,null,function*(){let n=yield _P(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var wP=x(()=>{"use strict";ji()});function ch(e){return oh||(oh=new sh(e)),oh}var ah,sh,oh,lh,Un,Tl,Bi=x(()=>{"use strict";R();ah=class{constructor(t){this.httpClient=t}execute(t,r){return g(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},sh=class{constructor(t){this.gemBalanceService=new Ut(new ah(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getGemBalance(t="GEM"){return g(this,null,function*(){return(yield this.gemBalanceService.request("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}refreshGemBalance(t="GEM"){return g(this,null,function*(){return(yield this.gemBalanceService.forceRequest("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}warmupGemBalance(t="GEM"){return g(this,null,function*(){yield this.gemBalanceService.warmupCache("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})})}clearGemBalanceCache(){this.gemBalanceService.clearCache()}getGemBalanceCacheStats(){return this.gemBalanceService.getCacheStats()}clearExpiredCache(){this.gemBalanceService.clearExpiredCache()}},oh=null;lh=(e,t="GEM")=>g(void 0,null,function*(){return yield ch(e).getGemBalance(t)}),Un=(e,t="GEM")=>g(void 0,null,function*(){let n=yield ch(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),Tl=(e,t="GEM")=>g(void 0,null,function*(){yield ch(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var SP=x(()=>{"use strict";Bi()});var Dt,Mn=x(()=>{"use strict";wP();SP();Dt={JOLI_COIN:{fetchBalance:ih,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:lh,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 va,Nr,uh=x(()=>{"use strict";nn();Tt();or();Be();Be();Mn();va=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;vt.registerCommand(`Rewards.${e}.useJolicoin`,()=>g(void 0,null,function*(){let i=yield Le.getData(),o=Dt[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"}}))},Nr=(e,t)=>r=>g(void 0,null,function*(){let n=Ge(M,xn);return M.emit(Vc,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var ya,Dr,IP=x(()=>{"use strict";nn();Tt();Be();or();Be();Mn();Bi();ji();ya=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;vt.registerCommand(`Rewards.${e}.usePayment`,()=>g(void 0,null,function*(){var p;let o=yield Le.getData(),a=Dt[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(Le.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"?Un(n):qn(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},Dr=(e,t)=>r=>g(void 0,null,function*(){let n=Ge(M,Gt);return M.emit(Hc,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 dh,Lr,EP=x(()=>{"use strict";V();nn();or();Be();Be();R();Tt();Mn();dh=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;vt.registerCommand(`Rewards.${e}.useUnloginModal`,()=>g(void 0,null,function*(){var s,c,l;let o=(s=I.hostUserInfo)==null?void 0:s.isLogin,a=yield Le.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 Ra(3e3));let f=Dt[t],m=yield f.fetchBalance(i),v=f.getQuantity(a),b=f.getCurrentUser(a),y=f.createUpdatedUser((l=m==null?void 0:m.balance)!=null?l:0,b.enableAutoDeduct),w=f.getUpdateKey();if(Le.updateData({[w]:y}),y.balance>=v)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Lr=(e,t)=>r=>g(void 0,null,function*(){let n=Ge(M,Er);return M.emit($c,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var Fn=x(()=>{"use strict";uh();IP();EP()});var X9,Pl,ph=x(()=>{"use strict";V();R();eh();Fn();nn();ji();Mn();Tt();X9=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:c,hasSubscription:l}})=>{ya(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),va(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let d=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return u=>g(void 0,null,function*(){var p,f,m,v;try{let b=yield o.getData();if(Fi(b,l)){let C=Dt.JOLI_COIN,T=yield C.fetchBalance(t),k=C.getCurrentUser(b),A=C.createUpdatedUser((p=T==null?void 0:T.balance)!=null?p:0,k.enableAutoDeduct);if(!C.isEnough(b,A))return i==null||i(u),!1}else{let C=!0;for(let T of d){let k=yield vt.executeCommand(T);if(C=C&&k.result!=="FAILED",k.result!=="CONTINUE")break}if(!C)return i==null||i(u),!1}let w=xl[r],E=yield t.post(w.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Hn()}-${I.mpType}-${Date.now()}`,gameInfo:{gameId:I.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&&((v=u.adViewed)==null||v.call(u)),qn(t)}catch(C){console.error("-----unlockWithJolicoin adBreakDone error-----",C)}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()}})},Pl=(e,t,r)=>X9(e,t,"JOLI_COIN",r)});var AP,CP=x(()=>{"use strict";Tt();ph();Fn();AP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Nr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Dr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Lr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Pl("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Le,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var kP,xP=x(()=>{"use strict";ph();Tt();Fn();kP=(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=Nr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Dr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Lr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Pl("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Le,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var Ol,fh=x(()=>{"use strict";V();R();eh();Fn();uh();nn();Bi();Mn();Tt();Ol=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s,hasSubscription:c}})=>{dh(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),ya(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),va(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>g(void 0,null,function*(){var u,p,f,m;try{let v=yield i.getData(),b=Fi(v,c);if(console.log("[GemHandler] supportSubscription",b,v),b){let E=Dt.JOLI_GEM,C=yield E.fetchBalance(t),T=E.getCurrentUser(v),k=E.createUpdatedUser((u=C==null?void 0:C.balance)!=null?u:0,T.enableAutoDeduct);if(!E.isEnough(v,k))return n==null||n(d),!1}else{let E=!0;for(let C of l){let T=yield vt.executeCommand(C);if(console.log("[GemHandler] command result",T,C),E=E&&T.result!=="FAILED",T.result!=="CONTINUE")break}if(!E)return n==null||n(d),!1}let y=xl.GEM,w=yield t.post(y.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Hn()}-${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)),Un(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(v){if(console.info("GemRewardHandler error:",v),v instanceof Error&&v.message=="CANCEL")throw v;return n==null||n(d),!1}finally{i.clearCache()}})}});var TP,PP=x(()=>{"use strict";Tt();fh();Fn();TP=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=Nr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Dr("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Lr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Ol("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Le,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var OP,RP=x(()=>{"use strict";fh();Tt();Fn();OP=(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=Nr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Dr("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Lr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Ol("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Le,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var NP,DP,mh=x(()=>{"use strict";Mn();nn();Tt();or();Be();Be();NP=e=>{let{showSubscriptionModal:t}=e;vt.registerCommand("Rewards.subscription",()=>g(void 0,null,function*(){var s,c;let r=yield Le.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=Dt[n?"JOLI_GEM":"JOLI_COIN"],o=i.getCurrentUser(r);return i.isEnough(r,o)?{result:"FAILED"}:{result:(yield t())==="SUCCESS"?"SUCCESS":"FAILED"}}))},DP=e=>()=>g(void 0,null,function*(){let t=Ge(M,Tn);return M.emit(Wc,e),(yield t.getFreshData()).result})});var LP=x(()=>{"use strict";mh()});var qP,UP=x(()=>{"use strict";nn();LP();V();Tt();ji();Bi();qP=(e,t,{handlers:{handleSubSuccess:r,handleSubFailed:n,unlockOptionsHandler:i,showSubscriptionModal:o,hasSubscription:a}})=>{NP({showSubscriptionModal:o});let s=["Rewards.subscription"];return c=>g(void 0,null,function*(){var l,d,u,p,f,m;try{let v=yield i.getData();if(!Fi(v,a))return!1;let y=!0;for(let w of s){let E=yield vt.executeCommand(w);if(y=y&&E.result!=="FAILED",E.result!=="CONTINUE")break}if(qn(t),Un(t),console.log("-----unlockWithSubscription result-----",y),y){try{(d=c.adBreakDone)==null||d.call(c,{breakType:c.type,breakName:"name"in c&&(l=c.name)!=null?l:"",breakFormat:c.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in c&&((u=c.adViewed)==null||u.call(c)),(m=(f=I).onEnvConfigChanged)==null||m.call(f,{hostUserInfo:B(P({},(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(v){if(console.info("SubscriptionRewardHandler error:",v),v instanceof Error&&v.message=="CANCEL")throw v;return n==null||n(c),!1}finally{}})}});var MP,FP=x(()=>{"use strict";Tt();UP();mh();MP=(e,{onSubSuccess:t,onSubFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=DP("SUBSCRIPTION");return qP("SUBSCRIPTION",e,{handlers:{handleSubSuccess:t,handleSubFailed:i,unlockOptionsHandler:Le,showSubscriptionModal:o,hasSubscription:n}})}});var Lt,jP=x(()=>{"use strict";gP();Zm();bP();CP();xP();PP();RP();FP();ji();Bi();Lt=hP();Km(Lt);Ym(Lt)});var Rl,Z9,lr,eW,ba,tW,BP,GP,rW,nW,hh,iW,oW,aW,JP=x(()=>{"use strict";R();Je();ir();sT();im();Hm();bt();V();dt();ce();jP();os();Zm();Rl=K(),Z9=()=>{let{data:e}=L("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},lr={get:(e,t)=>Y(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>Y(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},eW={httpClient:lr,checkNetwork:Z9,track:j,eventEmitter:dn,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,c,l;return{hostAppId:(t=(e=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:"",deviceInfo:{platform:I.platform,nativeSDKVersionCode:(l=I.sdkInfo.nativeSDKVersionCode)!=null?l:0}}}},ba=new Li(eW);Lt.getRewardFrequencyConfig(lr).then(e=>{console.log("getRewardFrequencyConfig",e)});Lt.registerRewardHandler("ADS",yP(ba));Lt.registerRewardHandler("JOLI_COIN",AP(lr,{onUnlockSuccess:e=>{BP(e),j("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>ve("invokeSubscriptionPanelSync")}));Lt.registerRewardHandler("JOLI_COIN_ONLY",kP(lr,{onUnlockSuccess:e=>{BP(e),j("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>ve("invokeSubscriptionPanelSync")}));Lt.registerRewardHandler("JOLI_GEM",TP(lr,{onUnlockSuccess:e=>{GP(e),j("gem_unlock_success",{quantity:e.quantity})},hasSubscription:()=>ve("invokeSubscriptionPanelSync")}));Lt.registerRewardHandler("JOLI_GEM_ONLY",OP(lr,{onUnlockSuccess:e=>{GP(e),j("gem_unlock_success",{quantity:e.quantity,isOnly:!0})},hasSubscription:()=>ve("invokeSubscriptionPanelSync")}));tW=()=>{j("subscription_unlock_success",{})};Lt.registerRewardHandler("SUBSCRIPTION",MP(lr,{onSubSuccess:tW.bind(void 0),hasSubscription:()=>ve("invokeSubscriptionPanelSync")}));BP=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Ir(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})};Qm(lr);Tl(lr);dn.on("isAdShowing",e=>{xi("JOLIBOX_ADS_EVENT",{isAdShowing:e})});GP=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Ir(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"}}})},rW=Q("adInit",{implement:e=>{ba.init(e)}}),nW=Q("adConfig",{implement:e=>{ba.adConfig(e)}}),hh=!1,iW=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))},oW=Q("adBreak",{implement:e=>{var r;if((r=I.hostUserInfo)==null?void 0:r.isSubUser){iW(e);return}if(e.type==="reward"){if(hh)return;hh=!0,Lt.getRewardsTypes(lr).then(n=>{Lt.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(()=>{hh=!1})})}else ba.adBreak(e)}}),aW=Q("adUnit",{implement:e=>{ba.adUnit(e)}});Rl.registerCommand("AdsSDK.init",rW);Rl.registerCommand("AdsSDK.adConfig",nW);Rl.registerCommand("AdsSDK.adBreak",oW);Rl.registerCommand("AdsSDK.adUnit",aW);D("AdsSDK.init",{version:"1.0.0"});D("AdsSDK.adConfig",{version:"1.0.0"});D("AdsSDK.adBreak",{version:"1.0.0"});D("AdsSDK.adUnit",{version:"1.0.0"})});var _a,sW,cW,lW,uW,dW,HP=x(()=>{"use strict";R();ce();Je();V();_a=K(),sW=Q("openSchemaSync",{paramsSchema:S.tuple(S.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${I.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=L("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Vt(r.errMsg,r.errNo)}}),cW=Q("openPageSync",{paramsSchema:S.tuple(S.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=L("openPageSync",{url:e});if(t!==0||!n)throw new Vt(r,t);return{webviewId:n.webviewId}}}),lW=Q("closePageSync",{paramsSchema:S.tuple(S.number()),implement:e=>{let{errNo:t,errMsg:r}=L("closePageSync",{webviewId:e});if(t!==0)throw new Vt(r,t)}}),uW=Q("interceptSystemExitSync",{paramsSchema:S.tuple(S.boolean()),implement:e=>{we.emit("onInterceptSystemExit",{intercept:e}),we.emit("onInterceptBackPress",{intercept:e})}}),dW=Q("navigateToNativePage",{paramsSchema:S.tuple(S.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),S.object()),implement:(e,t)=>{L("callHostMethodAsync",{method:e,params:P({},t)})}});_a.registerCommand("RouterSDK.openSchema",sW);_a.registerCommand("RouterSDK.openPage",cW);_a.registerCommand("RouterSDK.closePage",lW);_a.registerCommand("RouterSDK.interceptSystemExit",uW);_a.registerCommand("RouterSDK.navigateToNativePage",dW);D("router.openSchema",{version:"1.1.10"});D("router.openPage",{version:"1.1.10"});D("router.closePage",{version:"1.1.10"});D("router.interceptSystemExit",{version:"1.1.18"});D("router.navigateToNativePage",{version:"1.1.19"})});function mW(e){sn("cpLoadProgressEvent",{progress:e},I.webviewId,!0),xi("CP_LOAD_PROGRESS",{progress:e})}var vh,pW,Nl,gh,VP,fW,hW,gW,$P=x(()=>{"use strict";R();Je();ce();V();bt();im();vh=K(),pW=Q("onLoadFinished",{implement:()=>{sn("cpLoadFinishEvent",{},I.webviewId,!0),xi("CP_LOAD_FINISH",{duration:performance.now()}),j("loadFinished",{duration:performance.now()})}}),Nl=null,gh=!1,VP=0,fW=200;hW=Q("onLoadProgress",{paramsSchema:S.tuple(S.number()),implement:e=>{Nl=e,gh||(gh=!0,requestAnimationFrame(function t(){let r=Date.now();r-VP>=fW?(Nl!==null&&(mW(Nl),VP=r,Nl=null),gh=!1):requestAnimationFrame(t)}))}}),gW=Q("onGameTTI",{paramsSchema:S.tuple(S.number().optional()),implement:()=>{sn("cpGameTTIEvent",{duration:performance.now()},I.webviewId,!0),xi("CP_GAME_TTI",{duration:performance.now()}),j("gameTTI",{duration:performance.now()})}});vh.registerCommand("RuntimeSDK.loadFinishedEvent",pW);vh.registerCommand("RuntimeSDK.loadProgressEvent",hW);vh.registerCommand("RuntimeSDK.gameTTIEvent",gW)});var vW,yW,bW,WP=x(()=>{"use strict";R();Je();V();vW=K(),yW="isNativeSupport",bW=Q(yW,{paramsSchema:S.tuple(S.object({version:S.string()})),implement:e=>{let t=I.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:cg(xu(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});vW.registerCommand("API.isNativeSupport",bW);D("isNativeSupport",{version:"1.1.46"})});var KP=h(yh=>{"use strict";Je();ce();R();R();V();var zP=K(),_W=$("callHostMethod",{paramsSchema:S.tuple(S.object({method:S.string(),params:S.object().optional().default({})})),implement:r=>g(yh,[r],function*({method:e,params:t}){if(!ve(e))throw new Vt("Method not supported",10001);let{errNo:n,errMsg:i,data:o}=yield L("callHostMethodAsync",{method:e,params:P({},t)});if(n!==0)throw new Vt(i,n);let c=o,{callHostMethodId:a}=c,s=Qe(c,["callHostMethodId"]);return P({},s)})});zP.registerCommand("API.callHostMethod",_W);D("callHostMethod",{version:"1.1.49"});var wW=$("userTrackAsync",{paramsSchema:S.tuple(S.object({event:S.string(),eventType:S.number(),params:S.object().optional().default({})})),implement:n=>g(yh,[n],function*({event:e,eventType:t,params:r}){if(!ve("userTrackAsync"))throw new Vt("Method not supported",10001);let{errNo:i,errMsg:o}=yield L("trackAsync",{event:e,eventType:t,data:P({},r),webviewId:I.webviewId});if(i!==0)throw new Vt(o,i)})});zP.registerCommand("API.track",wW);D("track",{version:"1.1.53"})});var XP=h(on=>{"use strict";R();Je();zf();Ur();nm();ce();var jn=K(),YP=Zc(),SW=$("purchaseGem",{paramsSchema:S.tuple(S.object({productId:S.string()})),implement:e=>g(on,null,function*(){var r,n;let t=yield YP.purchase(e.productId);if(t.code!=="SUCCESS")throw Ce({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=(r=t.data)==null?void 0:r.totalAmount)!=null?n:""}})}),IW=$("getGemProducts",{paramsSchema:S.tuple(),implement:()=>g(on,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}})}})}),EW=$("getSubscriptionPlans",{paramsSchema:S.tuple(),implement:()=>g(on,null,function*(){let e=yield Dn.getSubInfo();if(console.log("[PaymentAPI] getSubscriptionPlans result",e),!e)throw Ce({code:-1,msg:"[JoliboxSDK]: get subscription plans failed"});return{plans:e}})}),AW=$("flushSubInfoCache",{paramsSchema:S.tuple(),implement:()=>g(on,null,function*(){yield Dn.updateAllNativePriceCache()})}),QP=e=>g(on,null,function*(){var a;let{productId:t}=e,r=e.appStoreProductId,n=e.appStoreProductId,i=t;if(!e.appStoreProductId){let s=yield Dn.getTierByProductId(e.productId);if(!s)throw Ce({code:-1,msg:"[JoliboxSDK]: product not found"});r=s.basePlanId,n=s.appStoreProductId,i=s.nativeProductId}if(!r||!n||!i)throw Ce({code:-1,msg:"[JoliboxSDK]: product not found"});let o=yield Dn.subscribe({basePlanId:r,nativeProductId:i,appStoreProductId:n});return{result:o.result,subPlanId:o.subPlanId,errMsg:(a=o.message)!=null?a:""}}),CW=$("subscribe",{paramsSchema:S.tuple(S.object({productId:S.string(),appStoreProductId:S.string().optional()})),implement:QP}),kW=$("subscribeSpin",{paramsSchema:S.tuple(S.object({appStoreProductId:S.string().optional()})),implement:e=>g(on,null,function*(){return QP(B(P({},e),{productId:"jolibox_app_spin_sub"}))})});jn.registerCommand("PaymentSDK.purchaseGem",SW);jn.registerCommand("PaymentSDK.getGemProducts",IW);jn.registerCommand("PaymentSDK.getSubscriptionPlans",EW);jn.registerCommand("PaymentSDK.subscribe",CW);jn.registerCommand("PaymentSDK.subscribeSpin",kW);var xW=$("getSpinSubscriptionPrice",{paramsSchema:S.tuple(S.object({appStoreProductId:S.string()})),implement:e=>g(on,null,function*(){let{data:t}=yield de("requestSubscriptionPlansAsync",{appStoreProductIds:[e.appStoreProductId],type:"SPIN"});if(!t)throw Ce({code:-1,msg:"[JoliboxSDK]: get spin subscription price failed"});return{plans:Object.values(t).map(n=>{var i,o;return{basePlanId:n.basePlanId,productId:n.productId,formattedPrice:n.pricing.formattedPrice,originalPrice:n.pricing.originalPrice,trialDay:(o=(i=n.trial)==null?void 0:i.duration)!=null?o:0}})}})});jn.registerCommand("PaymentSDK.flushSubInfoCache",AW);jn.registerCommand("PaymentSDK.getSpinSubscriptionPrice",xW);D("payment.purchaseGem",{version:"1.2.9"});D("payment.getGemProducts",{version:"1.2.9"});D("payment.getSubscriptionPlans",{version:"1.2.9"});D("payment.subscribe",{version:"1.2.9"});D("payment.flushSubInfoCache",{version:"1.2.9"});D("payment.subscribeSpin",{version:"1.3.7"});D("payment.getSpinSubscriptionPrice",{version:"1.4.3"})});var eO=h(an=>{"use strict";R();Je();V();Ur();ce();os();bt();Hm();dt();var TW=()=>{let{data:e}=L("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},PW={get:(e,t)=>Y(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>Y(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},OW={httpClient:PW,checkNetwork:TW,track:j,eventEmitter:dn,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,c,l;return{hostAppId:(t=(e=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:"TASK",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:"",deviceInfo:{platform:I.platform,nativeSDKVersionCode:(l=I.sdkInfo.nativeSDKVersionCode)!=null?l:0}}}},bh=K(),ZP=Jn(reportError),RW=$("getCoinDetails",{paramsSchema:S.tuple(S.function().optional()),implement:e=>g(an,null,function*(){try{if(I.mpType!=="miniApp")return reportError(Ce({code:-1,msg:"[JoliboxSDK]: rewards info not supported in games. Only supported in mini apps."})),{code:"FAILURE",message:"[JoliboxSDK]: rewards info not supported in games. Only supported in mini apps."};if(!ve("requestCoinDetailsSync"))return reportError(Ce({code:-1,msg:"[JoliboxSDK]: rewards info not supported in this platform."})),{code:"FAILURE",message:"[JoliboxSDK]: rewards info not supported in this platform. lower than 1.7.1"};let r=e?ZP(e):(()=>{console.log("default update function called")}).bind(an),{errNo:n,errMsg:i,data:o}=L("requestCoinDetailsSync");if(n!==0)throw Ce({code:n!=null?n:-1,msg:i});return console.log("=====> sync data",o,n),L("requestCoinDetailsAsync").then(a=>{a.errNo==0&&a.data&&(r(a.data),console.log("=====> res.data",a.data))}),{code:"SUCCESS",message:"Successfully retrieved coin details",data:o}}catch(t){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to get coin details: "+t.message}}})});bh.registerCommand("RewardsSDK.getCoinDetails",RW);D("rewards.getCoinDetails",{version:"1.3.2"});var NW=$("createRewardsAdsManager",{implement:()=>g(an,null,function*(){try{let e=new Li(OW);if(I.mpType!=="miniApp")throw Ce({code:-1,msg:"[JoliboxSDK]: createRewardsAdsManager not supported in games. Only supported in mini apps."});return{code:"SUCCESS",message:"Successfully created RewardsAdsManager",data:{init:()=>g(an,null,function*(){yield e.init(),e.adConfig({preloadAdBreaks:"on",sound:"off",onReady:()=>{}})}),showAd:t=>g(an,null,function*(){e.adBreak({type:"reward",beforeReward:r=>{var n;r(),(n=t.onAdLoaded)==null||n.call(t)},adDismissed:()=>{var r;(r=t.onAdDismissed)==null||r.call(t)},adViewed:()=>{},adBreakDone:r=>{var o,a;let n=r.breakStatus,i=n==="frequencyCapped"||n==="other"||n==="error"||n==="noAdPreloaded";n==="viewed"&&(console.log("-----> complete watch ads"),wt.reporter({event:"COMPLETE_WATCH_ADS"}),(o=t.onAdRewarded)==null||o.call(t)),i&&(console.log("-----> no ad preloaded or error occurred",n),(a=t.onAdError)==null||a.call(t,new Error("No ad preloaded or error occurred: "+n)))}})})}}}catch(e){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to create RewardsAdsManager"}}})});bh.registerCommand("Rewards.createRewardsAdsManager",NW);D("rewards.createRewardsAdsManager",{version:"1.3.4"});var DW=$("getLeaderBoardData",{paramsSchema:S.tuple(S.object({gameId:S.string(),onUpdate:S.function().optional()})),implement:e=>g(an,null,function*(){try{if(!ve("requestGameLeaderboardSync"))return{code:"FAILURE",message:"[JoliboxSDK]: getLeaderBoardData not supported in this platform."};let t=e.onUpdate?ZP(e.onUpdate):(()=>{console.log("default update function called")}).bind(an),{errNo:r,errMsg:n,data:i}=L("requestGameLeaderboardSync",{gameId:e.gameId});if(r!==0)throw Ce({code:r!=null?r:-1,msg:n});return L("requestGameLeaderboardAsync",{gameId:e.gameId}).then(o=>{var a;if(o.errNo===0&&o.data)t(o.data);else throw Ce({code:(a=o.errNo)!=null?a:-1,msg:o.errMsg})}).catch(o=>{console.error("Failed to fetch leaderboard data asynchronously: ",o)}),{code:"SUCCESS",message:"Successfully retrieved leaderboard data",data:i}}catch(t){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to get leaderboard data: "+t.message}}})});bh.registerCommand("RewardsSDK.getLeaderBoardData",DW);D("rewards.getLeaderBoardData",{version:"1.3.9"})});var LW={};var Ece,xce,Dce,Lce,qce,tO=x(()=>{"use strict";rx();Ece=se(nx());ux();ro();dx();xce=se(mx());Bc();JP();HP();$P();WP();Dce=se(KP()),Lce=se(XP()),qce=se(eO())});var rO=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[rO])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[rO]=!0;g(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(ex(),Zk)),Promise.resolve().then(()=>(tO(),LW)),Promise.resolve().then(()=>(bt(),zg))]);e()});
|