@jolibox/implement 1.1.48 → 1.1.49
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 +3 -3
- package/dist/index.js +24 -24
- package/dist/index.native.js +36 -36
- package/implement.build.log +2 -2
- package/package.json +5 -5
- package/src/common/report/track.ts +8 -3
- package/src/native/api/request.ts +1 -1
package/dist/index.native.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var VA=Object.create;var bo=Object.defineProperty,GA=Object.defineProperties,zA=Object.getOwnPropertyDescriptor,WA=Object.getOwnPropertyDescriptors,KA=Object.getOwnPropertyNames,_o=Object.getOwnPropertySymbols,QA=Object.getPrototypeOf,pl=Object.prototype.hasOwnProperty,cf=Object.prototype.propertyIsEnumerable;var lf=(e,t,r)=>t in e?bo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))pl.call(t,r)&&lf(e,r,t[r]);if(_o)for(var r of _o(t))cf.call(t,r)&&lf(e,r,t[r]);return e},M=(e,t)=>GA(e,WA(t));var Ye=(e,t)=>{var r={};for(var n in e)pl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_o)for(var n of _o(e))t.indexOf(n)<0&&cf.call(e,n)&&(r[n]=e[n]);return r};var k=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),uf=(e,t)=>{for(var r in t)bo(e,r,{get:t[r],enumerable:!0})},YA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of KA(t))!pl.call(e,i)&&i!==r&&bo(e,i,{get:()=>t[i],enumerable:!(n=zA(t,i))||n.enumerable});return e};var oe=(e,t,r)=>(r=e!=null?VA(QA(e)):{},YA(t||!e||!e.__esModule?bo(r,"default",{value:e,enumerable:!0}):r,e));var w=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});function n1(e){return!!(e!=null&&e.__nativeBuffers__)}function _l(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!n1(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=i1(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function a1(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:o1(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function u1(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Sf(e){return typeof e=="string"}function Vr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function pf(e){return typeof e=="number"&&!isNaN(e)}function p1(e){return typeof e=="undefined"}function f1(e){return p1(e)||e===null}function xf(e){return typeof e=="function"}function h1(e){return Vr(e)&&xf(e.then)}function Ef(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function jn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function w1(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 k1(){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 O1(e){return new Promise(t=>kf(e)(t))}function kf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function R1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Hn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function D1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)L1(e[n],t[n])}function L1(e,t){if(Sf(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(xf(t)){try{if(e instanceof t)return}catch(r){}if(!f1(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 Tl(e,t){if(wl.config[e]){ko.warn(`[can i use] ${e} already registered`);return}wl.config[e]=Ht({},t)}function mf(e,t){return`[${e}]:${t}`}function J1(e,t){vf||(ml=new Io({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),vl=new Io({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),gl=new Io({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(),vl.flush(),gl.flush()}),vf=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=f,_=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";ml.report({status:_,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(vl.report({status:_,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),gl.report({status:_,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function G1(e,t){let r=0,n=!0,i=V1.resolveMap,o=J1(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,yl.forEach(l=>xo(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),yl.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=_l(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new d1;if(i.set(r,m.resolve),!n&&M1.includes(l))return new Promise(A=>{yl.push({method:l,args:c,resolve:A})});let g=t1(Ht({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),_=!H1&&F1.includes(l),v=a1(c,_),b=_?v:JSON.stringify(v),I;if(l.endsWith("Sync")||U1.includes(l)?I=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof b=="string"?I=e.invoke(l,b,r):I=(u=e.call)==null?void 0:u.call(e,l,b,r),I){try{typeof I=="string"&&(I=JSON.parse(I)),I=_l(I)}catch(A){ko.error(A)}return i.delete(r),I.errorCode&&(I.errorCode=mf(l,I.errorCode)),o(Ht(Ht({},g),I)),I}return l.endsWith("Sync")&&i.delete(r),m.promise.then(A=>(A.errorCode&&(A.errorCode=mf(l,A.errorCode)),o(Ht(Ht({},g),A)),A))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return h1(d)?d.then(u=>gf(l,u)):gf(l,d)},invokeHandler:a}}function gf(e,t){if(!Vr(t)){ko.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=r1(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new y1(n,i,o,a);return s}function z1(e){if(globalThis[wo])return globalThis[wo];let t=new xl,r=new xl,n=new Io({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[wo]={onNative:t.on.bind(t),offNative:t.off.bind(t),subscribe:r.on.bind(r),unsubscribe:r.off.bind(r),subscribeHandler(i,o,a){let s=_l(o),l;if(s.__extra){l=s.params;let{type:c,startTime:d}=s.__extra;n.report({type:c,event:i,duration:Date.now()-d})}else l=s;if(i===Tf){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(Jn.length),u,a)}catch(p){}});return}if(i.startsWith(Jn)){r.emit(i.slice(Jn.length),l,a);return}t.emit(i,l,a)}},globalThis[wo]}function W1(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${Jn}${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(Tf,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${Jn}${o}`,a])},emitNative:(o,a,s,l)=>{if(l){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(j1,d,p)}catch(p){}}),i=void 0,r.clear()}));let c=r.get(s);c||(c=[],r.set(s,c)),c.push([o,a])}}}function K1(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=z1(e),{invokeNative:a,invokeHandler:s,applyNative:l}=G1(e,r),{publish:c,emitNative:d}=W1(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function Cf(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var XA,ZA,e1,So,_f,bf,df,Ht,t1,r1,xo,i1,o1,wf,s1,l1,If,c1,d1,m1,v1,Eo,g1,y1,_1,fl,ko,ff,b1,bl,I1,wl,S1,x1,E1,A1,WH,Il,ae,T1,C1,Bn,Hn,xl,El,P1,hl,N1,KH,kl,hf,QH,Af,q1,Jn,F1,M1,U1,Tf,j1,B1,Io,vf,ml,vl,gl,yl,H1,Al,$1,V1,wo,Cl,ht,Pf,Of,Q1,Rf,yf,ge,j,Xe,YH,Y1,Nf,Pl,XH,ZH,xe=k(()=>{"use strict";XA=Object.defineProperty,ZA=Object.defineProperties,e1=Object.getOwnPropertyDescriptors,So=Object.getOwnPropertySymbols,_f=Object.prototype.hasOwnProperty,bf=Object.prototype.propertyIsEnumerable,df=(e,t,r)=>t in e?XA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ht=(e,t)=>{for(var r in t||(t={}))_f.call(t,r)&&df(e,r,t[r]);if(So)for(var r of So(t))bf.call(t,r)&&df(e,r,t[r]);return e},t1=(e,t)=>ZA(e,e1(t)),r1=(e,t)=>{var r={};for(var n in e)_f.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&So)for(var n of So(e))t.indexOf(n)<0&&bf.call(e,n)&&(r[n]=e[n]);return r},xo=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});i1=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};o1=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)};wf=Object.defineProperty,s1=Object.getOwnPropertyDescriptor,l1=(e,t)=>{for(var r in t)wf(e,r,{get:t[r],enumerable:!0})},If=(e,t,r,n)=>{for(var i=n>1?void 0:n?s1(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&&wf(t,r,i),i},c1=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.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}d1=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))}})}};m1=(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))(m1||{}),v1=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}},Eo=class extends v1{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},g1=class extends Eo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},y1=class extends Eo{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},_1=class extends Eo{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},fl=class extends Eo{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};ko={log:jn("log"),warn:jn("warn"),info:jn("info"),error:jn("error"),debug:jn("debug")};Object.assign(globalThis,{logger:ko});ff=Symbol.for("Jolibox.canIUseMap"),b1={};globalThis[ff]||(globalThis[ff]=b1);bl=Symbol.for("Jolibox.canIUseMap.native"),I1={};globalThis[bl]||(globalThis[bl]=I1);wl={get config(){return globalThis[bl]}},S1=(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))(S1||{}),x1=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(x1||{}),E1=(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))(E1||{});k1();A1=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),WH={isiOS: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:navigator.userAgent.includes("Android"),isMac:navigator.userAgent.includes("Mac"),isFacebook:navigator.userAgent.includes("FB_IAB"),isPC:!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Il=class Sl{constructor(t){this.element=t,this.next=Sl.Undefined,this.prev=Sl.Undefined}};Il.Undefined=new Il(void 0);ae=Il,T1=class{constructor(){this._first=ae.Undefined,this._last=ae.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ae.Undefined}clear(){let e=this._first;for(;e!==ae.Undefined;){let t=e.next;e.prev=ae.Undefined,e.next=ae.Undefined,e=t}this._first=ae.Undefined,this._last=ae.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ae(e);if(this._first===ae.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!==ae.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ae.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ae.Undefined&&e.next!==ae.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ae.Undefined&&e.next===ae.Undefined?(this._first=ae.Undefined,this._last=ae.Undefined):e.next===ae.Undefined?(this._last=this._last.prev,this._last.next=ae.Undefined):e.prev===ae.Undefined&&(this._first=this._first.next,this._first.prev=ae.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ae.Undefined;)yield e.element,e=e.next}},C1=0,Bn=class{constructor(e){this.value=e,this.id=C1++}},Hn=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 Bn&&(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,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new Bn(t);return this._listeners?this._listeners instanceof Bn?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof Bn)this._listeners.id===c.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(c);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 Bn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},xl=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 Hn,o=l=>t(...l.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 l of s)t(...l.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 T1,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)}},El={};l1(El,{None:()=>P1,filter:()=>R1,once:()=>kf,toPromise:()=>O1});P1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});hl=Symbol.for("Jolibox.hostEmitter"),N1=()=>{let e=new xl;return globalThis[hl]||(globalThis[hl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[hl]},KH=N1();kl=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Hn,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 D1(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=If([Ef],kl);hf=class{constructor(){this._onWillExecuteCommand=new Hn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Hn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new kl,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=u1(3e4)),this._starActivation}executeCommand(e,...t){return c1(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),El.toPromise(El.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}}};hf=If([Ef],hf);QH=Symbol.for("Jolibox.commands");Tl("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Tl("requestProductDetailsAsync",{version:102e4});Tl("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Af=e=>{function t(n){let[i,...o]=n.split(":");if(!i)return!1;let a=wl.config[i];if(!a)return!1;let s=a.version;if(typeof s!="number")return!1;let l=e();return typeof l!="number"||l<s?!1:o.length===0?!0:r(a,o,l)||r(a.properties,o,l)}function r(n,i,o){if(!n)return!1;let a=w1(n,i);if(!a)return!1;if(Vr(a)){let s=a.version;return pf(s)?typeof o=="number"&&o>=s:!0}return pf(a)?typeof o=="number"&&o>=a:a===!0}return{canIUseNative:t}};q1=()=>A1(),Jn="custom_event_",F1=[],M1=[],U1=["env","createRequestTask","login"],Tf="__batch_event__",j1="__native_batch_event__",B1=e=>e==="pv"?e:"default",Io=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=B1(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&&Vr(a))throw new fl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(Vr(a))l.push(...Object.keys(a));else if(Sf(a)){if(i.length>0)throw new fl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new fl(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);l.forEach(c=>{n[c]||(n[c]={});let d=Vr(a)?a[c]:a;t(n[c],[...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={}}},vf=!1;yl=[],H1=!1,Al=Symbol.for("Jolibox.invokeResolverInstance"),$1=new Map;globalThis[Al]||(globalThis[Al]=$1);V1={get resolveMap(){return globalThis[Al]}};wo=Symbol.for("Jolibox.subscribeInstance");ht={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){ht.trigger=e},onDoExit(e){ht.exit=e},onDoBackPress(e){ht.backPress=e}},Pf=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new g1("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{ht.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>xo(void 0,null,function*(){let o=yield ht.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Cl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Cf(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:Pf,doExit:r};globalThis.joliboxJSCore=Ht({},n)}if(window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{ht.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>xo(void 0,null,function*(){let a=yield ht.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Cl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Cf(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(l),webviewIds:s}))},call(o,a,s){let l=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(l)return JSON.parse(l)},doBackPress(o){return xo(this,null,function*(){let a=yield ht.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Pf,doExit:n};globalThis.joliboxJSCore=Ht({},i)}Of=Cl;if(!Of&&q1())throw new _1("No joliboxJScore is found, native bridge not found.");Q1=Ht({},Of),Rf=K1(Q1),{invokeHandler:yf}=Rf,{applyNative:ge,invokeNative:j,onNative:Xe,offNative:YH,subscribeHandler:Y1,publish:Nf,emitNative:Pl,subscribe:XH,unsubscribe:ZH}=Rf;globalThis.joliboxJSBridge={callHandler:yf,invokeHandler:yf,subscribeHandler:Y1}});function iT(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Uf(e){return new Promise(t=>setTimeout(t,e))}function zn(e){return typeof e=="string"}function Ar(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function jf(e){return typeof e=="object"&&Array.isArray(e)}function Bf(e){return typeof e=="number"&&!isNaN(e)}function Gr(e){return e===!0||e===!1}function Jf(e){return typeof e=="undefined"}function Ml(e){return Jf(e)||e===null}function oT(e){return typeof e=="function"}function Hf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function $f(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],l=o[a],c=r(s,l,a,i,o);c!==void 0?i[a]=c:qf(l)&&qf(s)?i[a]=n(tT({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function qf(e){return e&&typeof e=="object"&&e.constructor===Object}function Vf(e,t){if(Array.isArray(e))return e.concat(t)}function Wn(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:l=!0}=r,c=()=>(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,l&&!p&&c()},t),p)return c()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,c()},d}function sT(e,t){return(...r)=>t(e,...r)}function To(e){return t=>sT(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new zr(`${i}`))}})}function $n(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Xf(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 l=parseInt(i[s],10)||0,c=parseInt(o[s],10)||0;if(l>c){n=1;break}else if(l<c){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 $l(){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 vT(e){return new Promise(t=>rh(e)(t))}function rh(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function gT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Gn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function _T(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)bT(e[n],t[n])}function bT(e,t){if(zn(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(oT(t)){try{if(e instanceof t)return}catch(r){}if(!Ml(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 wT(){return typeof globalThis!="undefined"?globalThis[nh]:void 0}function IT(e){typeof globalThis!="undefined"&&(globalThis[nh]=e)}function ee(e=!1){let t=wT();if(!e&&t)return t;let r=new Ao,n=new ql,i={registerCommand(o,a,s){r.registerCommand({id:o,handler:a,metadata:s})},executeCommand(o,...a){return n.executeCommand(o,...a)},excuteCommandSync(o,...a){return n.executeCommandThowErr(o,...a)}};return IT(i),i}var Fl,X1,Df,Z1,eT,Lf,tT,rT,Mf,nT,Tt,aT,Ul,Kn,jl,Gf,zr,zf,Wf,Kf,Qf,Yf,Qn,Bl,Ct,Rl,lT,Jl,Ff,cT,Y,Hl,uT,Co,Yn,dT,pT,Zf,eh,th,Nl,se,fT,hT,Vn,Gn,Pt,Ll,mT,Ol,yT,Ee,Ao,ql,nh,D=k(()=>{"use strict";Fl=Object.defineProperty,X1=Object.getOwnPropertyDescriptor,Df=Object.getOwnPropertySymbols,Z1=Object.prototype.hasOwnProperty,eT=Object.prototype.propertyIsEnumerable,Lf=(e,t,r)=>t in e?Fl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tT=(e,t)=>{for(var r in t||(t={}))Z1.call(t,r)&&Lf(e,r,t[r]);if(Df)for(var r of Df(t))eT.call(t,r)&&Lf(e,r,t[r]);return e},rT=(e,t)=>{for(var r in t)Fl(e,r,{get:t[r],enumerable:!0})},Mf=(e,t,r,n)=>{for(var i=n>1?void 0:n?X1(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&&Fl(t,r,i),i},nT=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.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}Tt=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))}})}};aT=(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))(aT||{}),Ul=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},Kn=class extends Ul{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},jl=class extends Ul{constructor(){super(...arguments),this.kind="USER_ERROR"}},Gf=class extends jl{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},zr=class extends jl{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))}},zf=class extends jl{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))}},Wf=class extends Kn{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Kf=class extends Kn{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))}},Qf=class extends Kn{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},Yf=class extends Kn{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Qn=class extends Ul{constructor(e,t,r,n,i){super(e),this.message=e,this.code=t,this.kind="API_ERROR",this.name="API_ERROR",r&&(this.errorType=r),n!==void 0&&(this.stack=n),i&&(this.priority=i)}toJSON(){return{message:this.message,stack:this.stack,name:this.name,code:this.code,errorType:this.errorType}}},Bl=class extends Kn{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Ct={log:$n("log"),warn:$n("warn"),info:$n("info"),error:$n("error"),debug:$n("debug")};Object.assign(globalThis,{logger:Ct});Rl=Symbol.for("Jolibox.canIUseMap"),lT={};globalThis[Rl]||(globalThis[Rl]=lT);Jl={get config(){return globalThis[Rl]}},Ff=Symbol.for("Jolibox.canIUseMap.native"),cT={};globalThis[Ff]||(globalThis[Ff]=cT);Y=(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))(Y||{}),Hl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Hl||{}),uT=(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))(uT||{}),Co=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});$l();Yn={isiOS: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:navigator.userAgent.includes("Android"),isMac:navigator.userAgent.includes("Mac"),isFacebook:navigator.userAgent.includes("FB_IAB"),isPC:!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},dT="device_id",pT="advertising_id",Zf=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,Co()),window.__joliboxLocalStorage__.getItem(e)),eh=()=>new URLSearchParams(window.location.search).get("deviceId")||Zf(dT),th=()=>new URLSearchParams(window.location.search).get("advertisingId")||Zf(pT),Nl=class Dl{constructor(t){this.element=t,this.next=Dl.Undefined,this.prev=Dl.Undefined}};Nl.Undefined=new Nl(void 0);se=Nl,fT=class{constructor(){this._first=se.Undefined,this._last=se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===se.Undefined}clear(){let e=this._first;for(;e!==se.Undefined;){let t=e.next;e.prev=se.Undefined,e.next=se.Undefined,e=t}this._first=se.Undefined,this._last=se.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new se(e);if(this._first===se.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==se.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==se.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==se.Undefined&&e.next!==se.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===se.Undefined&&e.next===se.Undefined?(this._first=se.Undefined,this._last=se.Undefined):e.next===se.Undefined?(this._last=this._last.prev,this._last.next=se.Undefined):e.prev===se.Undefined&&(this._first=this._first.next,this._first.prev=se.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==se.Undefined;)yield e.element,e=e.next}},hT=0,Vn=class{constructor(e){this.value=e,this.id=hT++}},Gn=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 Vn&&(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,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new Vn(t);return this._listeners?this._listeners instanceof Vn?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof Vn)this._listeners.id===c.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(c);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 Vn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Pt=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 Gn,o=l=>t(...l.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 l of s)t(...l.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 fT,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},Ll={};rT(Ll,{None:()=>mT,filter:()=>gT,once:()=>rh,toPromise:()=>vT});mT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ol=Symbol.for("Jolibox.hostEmitter"),yT=()=>{let e=new Pt;return globalThis[Ol]||(globalThis[Ol]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ol]},Ee=yT();Ao=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Gn,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 _T(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}};Ao=Mf([Hf],Ao);ql=class{constructor(){this._onWillExecuteCommand=new Gn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Gn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Ao,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=iT(3e4)),this._starActivation}executeCommand(e,...t){return nT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Ll.toPromise(Ll.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};ql=Mf([Hf],ql);nh=Symbol.for("Jolibox.commands")});function ke(e,t={}){Vl.emit("ERROR_REPORT",{error:e,options:t})}var Vl,Tr,mt=k(()=>{"use strict";D();D();Vl=new Pt,Tr=new Pt;ke.debounce=Wn(ke,50,{leading:!0})});var Gl,ST,ih,oh,ah=k(()=>{"use strict";D();mt();Gl=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{}}},ST=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},ih=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:Gl(o),payloadJson:Gl(a),signature:Gl(s)}}else throw"joli_source is missing"}catch(r){return ke(new Wf(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},oh=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=ST(e),o=r[2];return`${n}.${i}.${o}`}return t}});var xT,zl,sh=k(()=>{"use strict";D();xT="1.1.48",zl=()=>xT});function Kl(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var ET,lh,Wl,ch,fe,kT,S,K=k(()=>{"use strict";D();ah();sh();D();ET={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:eh(),adId:th(),pixelRatio:window.devicePixelRatio||1,platform:Yn.isAndroid?"android":Yn.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:zl()},schema:window.location.href,platform:Yn.isAndroid?"android":Yn.isiOS?"ios":"h5"},Wl=(lh=globalThis.joliboxJSCore)==null?void 0:lh.env,fe=Object.assign({},(ch=Wl==null?void 0:Wl())!=null?ch:ET);kT=()=>{var f,m,g,_,v,b,I,A,P,O,E;let{payloadJson:e,headerJson:t,signature:r}=fe.schema.length?ih(fe.schema):{},n=`${fe.deviceInfo.did}-${new Date().getTime()}`,o=new URL(fe.schema.length?fe.schema:window.location.href).searchParams,a=(g=(m=(f=o.get("mpId"))!=null?f:o.get("appId"))!=null?m:o.get("gameId"))!=null?g:"",s=(b=(v=(_=fe.clientSessionId)!=null?_:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?b:n,l=!!((A=(I=e==null?void 0:e.testAdsMode)!=null?I:e==null?void 0:e.__testAdsMode)!=null?A:o.get("testAdsMode")==="true"),c=(E=(O=(P=e==null?void 0:e.joliboxEnv)!=null?P:e==null?void 0:e.__joliboxEnv)!=null?O:o.get("joliboxEnv"))!=null?E:"production",d=c==="staging",u=t==null?void 0:t.channel,p=e==null?void 0:e.__shouldInterupt;return{get startTime(){var C;return(C=performance.timeOrigin)!=null?C:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var C;return(C=o.get("joliSource"))!=null?C:null},get mpId(){var C;return(C=a!=null?a:e==null?void 0:e.id)!=null?C:""},get mpVersion(){var C;return(C=t==null?void 0:t.ver)!=null?C:zl()},get mpType(){var C,Z;return(Z=(C=t==null?void 0:t.__mpType)!=null?C:e==null?void 0:e.__mpType)!=null?Z:"game"},get platform(){var C;return((C=fe.platform)!=null?C:fe.deviceInfo.platform).toLowerCase()},get deviceInfo(){return fe.deviceInfo},get sdkInfo(){return fe.sdkInfo},get hostInfo(){return fe.hostInfo},get hostUserInfo(){return fe.hostUserInfo},get sessionId(){var C,Z;return(Z=(C=fe.clientSessionId)!=null?C:s)!=null?Z:n},get channel(){return u},get webviewId(){var C;return(C=fe.webviewId)!=null?C:-1},get shouldInterupt(){return p},get from(){return e==null?void 0:e.__from},get baseApiHost(){return d?"https://stg-api.jolibox.com":"https://api.jolibox.com"},get adId(){var C;return(C=fe.deviceInfo.adId)!=null?C:fe.deviceInfo.did},get language(){return fe.deviceInfo.lang},get sdkEnvironment(){return Kl("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Kl("gamedistribution","jolibox")?"gamedistribution":Kl("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var F,Ve,Qe;let C=(F=fe.deviceInfo.pixelRatio)!=null?F:1,Z=(Ve=fe.deviceInfo.statusBarHeight)!=null?Ve:e==null?void 0:e.__androidStatusBarHeight,at=(Qe=fe.deviceInfo.navigationBarHeight)!=null?Qe:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:Z!==void 0?Z/C:20,navigationBarHeight:at!==void 0?at/C:10}},onEnvConfigChanged:C=>{$f(fe,C,Vf)},encodeJoliSourceQuery:C=>{var Z,at;return t&&r?oh(T(T({},e),C),(Z=o.get("joliSource"))!=null?Z:""):(at=o.get("joliSource"))!=null?at:""},setDoExitDirectly:()=>{p=!1}}},S=kT()});var Ql,dh,AT,TT,uh,CT,ph=k(()=>{"use strict";D();mt();K();D();Ql=!1,dh=(e,t)=>e==null?!1:t in e,AT=e=>dh(e,"kind"),TT=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},uh=(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:TT(e.name)},i=M(T({},n),{env:t.environment,isFromUser:r});r?Tr.emit("GLOBAL_USER_ERROR",e,i):Tr.emit("GLOBAL_ERROR",e,i)},CT=e=>dh(e,"kind")&&e.kind==="USER_ERROR";Vl.on("ERROR_REPORT",({error:e,options:t})=>{if(Ql)return;Ql=!0;let r=AT(e)&&e.raw?e.raw:e;try{let n=CT(e);uh(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new Bl(`${i}, origin error: ${r.message}`);Ct.error(o),uh(new Bl(o.message),{environment:t.environment},!1)}finally{Ql=!1}})});var lr,Yl,Wr=k(()=>{"use strict";mt();D();mt();lr=(e,t)=>{var r,n;return new Qn((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Yl=e=>new Gf(e)});var fh=k(()=>{"use strict";ph();Wr();D();xe();Tr.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};j("trackAsync",{event:"reportJsError",data:r})});Tr.on("GLOBAL_USER_ERROR",(e,t)=>{Ct.log("UserError",e,t)})});var Xl=k(()=>{"use strict"});function hh(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=Ye(c,["eventType"]),l=M(T({tag:n,eventType:a!=null?a:Y.Other},t),{extra:T({},s)});n=="globalJsError"?ke(new Yf(JSON.stringify(l))):e("systemLog",l,o)};return r.debounce=Wn(r,500,{leading:!0}),r}function mh(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=Wn(t,500,{leading:!0}),t}var vh=k(()=>{"use strict";D();D();mt()});function gh(e,t){let r=hh(e,t),n=mh(r);return{track:r,trackPerformance:n}}var yh=k(()=>{"use strict";vh()});var _h=k(()=>{"use strict";K();D();D()});var bh=k(()=>{"use strict";yh();Xl();_h()});var Po,wh=k(()=>{"use strict";Po=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.timer=this.createRAFTimer(t=>{this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration: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.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{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)},l=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},c=()=>{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?c():l())});let p=this.visible;return{start(){o||(o=!0,p?c():l())},stop(){o=!1,d(),u()}}}}});function Oo(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:"https://api.jolibox.com",o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return Xe("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:_}=f,v=Ye(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:_}=m,v=Ye(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else Ct.warn("onRequestTaskStateChange unknown event",u)}),Ee.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>w(this,[f,...m],function*(u,p={}){let g=Date.now(),_=PT(u,M(T({},p),{baseUrl:i})),{method:v="GET",responseType:b="text",dataType:I="json",timeout:A,enableCache:P=!1,appendHostCookie:O=!0}=p,E=Object.assign({"content-type":"application/json"},a,p.header),C={url:_,method:v,header:E,enableCache:P,responseType:b,appendHostCookie:O};if(v=="POST"||v=="PUT"){let Qe=RT(p.data,E["content-type"]);C.data=Qe}A&&Object.assign(C,{timeout:A});let{data:{requestTaskId:Z}}=j(e,C);if(typeof Z!="string")throw lr({code:-1,msg:"requestTaskId is not a string"});let{resolve:at,reject:F,promise:Ve}=new Tt;n.set(Z,{resolve:at,reject:F});try{let Qe=yield Ve,{data:kr}=Qe;return I==="json"&&typeof kr=="string"&&(kr=OT(kr)),{url:_,timeout:A,method:v,response:M(T({},Qe),{data:kr})}}catch(Qe){let kr=Qe;if(Ar(kr)){let{errMsg:dl,prefetchDetail:VH,isPrefetch:GH,errNo:$A}=kr;zn(dl)&&ke(lr({code:-1,msg:dl},{errNo:$A,errMsg:dl}))}throw Qe}})}function OT(e){try{return JSON.parse(e.trim())}catch(t){return e}}function RT(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 PT,Zl=k(()=>{"use strict";D();xe();mt();Wr();PT=(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 ec,Ih,te,vt=k(()=>{"use strict";Zl();K();ec={};(Ih=S.hostUserInfo)!=null&&Ih.token&&(ec["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(ec["x-joli-source"]=S.joliSource);te=Oo("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:S.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:ec})});var Ro,Sh=k(()=>{"use strict";K();wh();vt();xe();Ro=class extends Po{constructor(t,r,n){super(r,n),this.gameId=S.mpId,this.sessionId=S.sessionId,this.track=t,this.taskUrl=S.testMode?"https://stg-api.jolibox.com/api/base/app-event":"https://api.jolibox.com/api/base/app-event"}reporter(t){return w(this,null,function*(){let{event:r,params:n}=t,i={eventType:r,gameInfo:T({gameId:this.gameId,sessionId:this.sessionId},n)};yield S.platform==="android"?te("/api/base/app-event",{method:"POST",data:i}):ge("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(i)})})}reportToNative(t){return w(this,null,function*(){let{event:r,params:n}=t;yield ge("userTrackAsync",{event:r,params:T({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Th={};uf(Th,{nativeTaskEmitter:()=>Xn,taskTracker:()=>$t,track:()=>U,trackPerformance:()=>kh});var NT,xh,Eh,U,kh,Ah,Xn,$t,gt=k(()=>{"use strict";fh();D();Xl();bh();K();Sh();xe();NT=(e,t,r)=>{var s,l,c,d,u,p;let n=t,i=Ar(n.extra)?n.extra:zn(n.extra)?JSON.parse(n.extra):{},o=M(T({},i),{mp_id:(s=n.mp_id)!=null?s:"",mp_version:(l=n.mp_version)!=null?l:"",session_id:S.sessionId,user_id:(d=(c=S.hostUserInfo)==null?void 0:c.uid)!=null?d:""}),a=(u=n.eventType)!=null?u:Y.Other;j("trackAsync",{event:(p=t.tag)!=null?p:e,data:o,webviewId:r,eventType:a})},{track:U,trackPerformance:kh}=gh(NT,{type:Hl.AppSDK,platform:"native",jssdk_version:(Eh=(xh=S.sdkInfo)==null?void 0:xh.jssdkVersion)!=null?Eh:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Ah=ee();Ah.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{kh(e,t,r)});Ah.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{U(e,t)});Xn=new Pt,$t=new Ro(U,Xn)});function Ch(){let e=null,t=null,r=window.fetch,n=()=>{t=document.createElement("meta"),t.setAttribute("name","viewport"),t.setAttribute("content","viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"),t.setAttribute("data-jolibox-sdk","viewport-meta"),e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let s=`
|
|
1
|
+
var VA=Object.create;var bo=Object.defineProperty,GA=Object.defineProperties,zA=Object.getOwnPropertyDescriptor,WA=Object.getOwnPropertyDescriptors,KA=Object.getOwnPropertyNames,_o=Object.getOwnPropertySymbols,QA=Object.getPrototypeOf,pl=Object.prototype.hasOwnProperty,cf=Object.prototype.propertyIsEnumerable;var lf=(e,t,r)=>t in e?bo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))pl.call(t,r)&&lf(e,r,t[r]);if(_o)for(var r of _o(t))cf.call(t,r)&&lf(e,r,t[r]);return e},M=(e,t)=>GA(e,WA(t));var Xe=(e,t)=>{var r={};for(var n in e)pl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_o)for(var n of _o(e))t.indexOf(n)<0&&cf.call(e,n)&&(r[n]=e[n]);return r};var k=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),uf=(e,t)=>{for(var r in t)bo(e,r,{get:t[r],enumerable:!0})},YA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of KA(t))!pl.call(e,i)&&i!==r&&bo(e,i,{get:()=>t[i],enumerable:!(n=zA(t,i))||n.enumerable});return e};var oe=(e,t,r)=>(r=e!=null?VA(QA(e)):{},YA(t||!e||!e.__esModule?bo(r,"default",{value:e,enumerable:!0}):r,e));var w=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});function n1(e){return!!(e!=null&&e.__nativeBuffers__)}function _l(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!n1(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=i1(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function a1(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:o1(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function u1(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Sf(e){return typeof e=="string"}function Vr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function pf(e){return typeof e=="number"&&!isNaN(e)}function p1(e){return typeof e=="undefined"}function f1(e){return p1(e)||e===null}function xf(e){return typeof e=="function"}function h1(e){return Vr(e)&&xf(e.then)}function Ef(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Un(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function w1(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 k1(){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 O1(e){return new Promise(t=>kf(e)(t))}function kf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function R1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Hn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function D1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)L1(e[n],t[n])}function L1(e,t){if(Sf(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(xf(t)){try{if(e instanceof t)return}catch(r){}if(!f1(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 Tl(e,t){if(wl.config[e]){ko.warn(`[can i use] ${e} already registered`);return}wl.config[e]=Ht({},t)}function mf(e,t){return`[${e}]:${t}`}function J1(e,t){vf||(ml=new Io({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),vl=new Io({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),gl=new Io({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(),vl.flush(),gl.flush()}),vf=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=f,_=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";ml.report({status:_,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(vl.report({status:_,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),gl.report({status:_,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function G1(e,t){let r=0,n=!0,i=V1.resolveMap,o=J1(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,yl.forEach(l=>xo(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),yl.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=_l(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new d1;if(i.set(r,m.resolve),!n&&M1.includes(l))return new Promise(A=>{yl.push({method:l,args:c,resolve:A})});let g=t1(Ht({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),_=!H1&&F1.includes(l),v=a1(c,_),b=_?v:JSON.stringify(v),I;if(l.endsWith("Sync")||j1.includes(l)?I=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof b=="string"?I=e.invoke(l,b,r):I=(u=e.call)==null?void 0:u.call(e,l,b,r),I){try{typeof I=="string"&&(I=JSON.parse(I)),I=_l(I)}catch(A){ko.error(A)}return i.delete(r),I.errorCode&&(I.errorCode=mf(l,I.errorCode)),o(Ht(Ht({},g),I)),I}return l.endsWith("Sync")&&i.delete(r),m.promise.then(A=>(A.errorCode&&(A.errorCode=mf(l,A.errorCode)),o(Ht(Ht({},g),A)),A))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return h1(d)?d.then(u=>gf(l,u)):gf(l,d)},invokeHandler:a}}function gf(e,t){if(!Vr(t)){ko.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=r1(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new y1(n,i,o,a);return s}function z1(e){if(globalThis[wo])return globalThis[wo];let t=new xl,r=new xl,n=new Io({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[wo]={onNative:t.on.bind(t),offNative:t.off.bind(t),subscribe:r.on.bind(r),unsubscribe:r.off.bind(r),subscribeHandler(i,o,a){let s=_l(o),l;if(s.__extra){l=s.params;let{type:c,startTime:d}=s.__extra;n.report({type:c,event:i,duration:Date.now()-d})}else l=s;if(i===Tf){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(Jn.length),u,a)}catch(p){}});return}if(i.startsWith(Jn)){r.emit(i.slice(Jn.length),l,a);return}t.emit(i,l,a)}},globalThis[wo]}function W1(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${Jn}${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(Tf,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${Jn}${o}`,a])},emitNative:(o,a,s,l)=>{if(l){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(U1,d,p)}catch(p){}}),i=void 0,r.clear()}));let c=r.get(s);c||(c=[],r.set(s,c)),c.push([o,a])}}}function K1(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=z1(e),{invokeNative:a,invokeHandler:s,applyNative:l}=G1(e,r),{publish:c,emitNative:d}=W1(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function Cf(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var XA,ZA,e1,So,_f,bf,df,Ht,t1,r1,xo,i1,o1,wf,s1,l1,If,c1,d1,m1,v1,Eo,g1,y1,_1,fl,ko,ff,b1,bl,I1,wl,S1,x1,E1,A1,WH,Il,ae,T1,C1,Bn,Hn,xl,El,P1,hl,N1,KH,kl,hf,QH,Af,q1,Jn,F1,M1,j1,Tf,U1,B1,Io,vf,ml,vl,gl,yl,H1,Al,$1,V1,wo,Cl,ht,Pf,Of,Q1,Rf,yf,ge,U,Ze,YH,Y1,Nf,Pl,XH,ZH,xe=k(()=>{"use strict";XA=Object.defineProperty,ZA=Object.defineProperties,e1=Object.getOwnPropertyDescriptors,So=Object.getOwnPropertySymbols,_f=Object.prototype.hasOwnProperty,bf=Object.prototype.propertyIsEnumerable,df=(e,t,r)=>t in e?XA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ht=(e,t)=>{for(var r in t||(t={}))_f.call(t,r)&&df(e,r,t[r]);if(So)for(var r of So(t))bf.call(t,r)&&df(e,r,t[r]);return e},t1=(e,t)=>ZA(e,e1(t)),r1=(e,t)=>{var r={};for(var n in e)_f.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&So)for(var n of So(e))t.indexOf(n)<0&&bf.call(e,n)&&(r[n]=e[n]);return r},xo=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});i1=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};o1=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)};wf=Object.defineProperty,s1=Object.getOwnPropertyDescriptor,l1=(e,t)=>{for(var r in t)wf(e,r,{get:t[r],enumerable:!0})},If=(e,t,r,n)=>{for(var i=n>1?void 0:n?s1(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&&wf(t,r,i),i},c1=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.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}d1=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))}})}};m1=(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))(m1||{}),v1=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}},Eo=class extends v1{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},g1=class extends Eo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},y1=class extends Eo{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},_1=class extends Eo{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},fl=class extends Eo{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};ko={log:Un("log"),warn:Un("warn"),info:Un("info"),error:Un("error"),debug:Un("debug")};Object.assign(globalThis,{logger:ko});ff=Symbol.for("Jolibox.canIUseMap"),b1={};globalThis[ff]||(globalThis[ff]=b1);bl=Symbol.for("Jolibox.canIUseMap.native"),I1={};globalThis[bl]||(globalThis[bl]=I1);wl={get config(){return globalThis[bl]}},S1=(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))(S1||{}),x1=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(x1||{}),E1=(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))(E1||{});k1();A1=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),WH={isiOS: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:navigator.userAgent.includes("Android"),isMac:navigator.userAgent.includes("Mac"),isFacebook:navigator.userAgent.includes("FB_IAB"),isPC:!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Il=class Sl{constructor(t){this.element=t,this.next=Sl.Undefined,this.prev=Sl.Undefined}};Il.Undefined=new Il(void 0);ae=Il,T1=class{constructor(){this._first=ae.Undefined,this._last=ae.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ae.Undefined}clear(){let e=this._first;for(;e!==ae.Undefined;){let t=e.next;e.prev=ae.Undefined,e.next=ae.Undefined,e=t}this._first=ae.Undefined,this._last=ae.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ae(e);if(this._first===ae.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!==ae.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ae.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ae.Undefined&&e.next!==ae.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ae.Undefined&&e.next===ae.Undefined?(this._first=ae.Undefined,this._last=ae.Undefined):e.next===ae.Undefined?(this._last=this._last.prev,this._last.next=ae.Undefined):e.prev===ae.Undefined&&(this._first=this._first.next,this._first.prev=ae.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ae.Undefined;)yield e.element,e=e.next}},C1=0,Bn=class{constructor(e){this.value=e,this.id=C1++}},Hn=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 Bn&&(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,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new Bn(t);return this._listeners?this._listeners instanceof Bn?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof Bn)this._listeners.id===c.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(c);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 Bn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},xl=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 Hn,o=l=>t(...l.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 l of s)t(...l.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 T1,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)}},El={};l1(El,{None:()=>P1,filter:()=>R1,once:()=>kf,toPromise:()=>O1});P1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});hl=Symbol.for("Jolibox.hostEmitter"),N1=()=>{let e=new xl;return globalThis[hl]||(globalThis[hl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[hl]},KH=N1();kl=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Hn,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 D1(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=If([Ef],kl);hf=class{constructor(){this._onWillExecuteCommand=new Hn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Hn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new kl,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=u1(3e4)),this._starActivation}executeCommand(e,...t){return c1(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),El.toPromise(El.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}}};hf=If([Ef],hf);QH=Symbol.for("Jolibox.commands");Tl("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Tl("requestProductDetailsAsync",{version:102e4});Tl("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Af=e=>{function t(n){let[i,...o]=n.split(":");if(!i)return!1;let a=wl.config[i];if(!a)return!1;let s=a.version;if(typeof s!="number")return!1;let l=e();return typeof l!="number"||l<s?!1:o.length===0?!0:r(a,o,l)||r(a.properties,o,l)}function r(n,i,o){if(!n)return!1;let a=w1(n,i);if(!a)return!1;if(Vr(a)){let s=a.version;return pf(s)?typeof o=="number"&&o>=s:!0}return pf(a)?typeof o=="number"&&o>=a:a===!0}return{canIUseNative:t}};q1=()=>A1(),Jn="custom_event_",F1=[],M1=[],j1=["env","createRequestTask","login"],Tf="__batch_event__",U1="__native_batch_event__",B1=e=>e==="pv"?e:"default",Io=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=B1(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&&Vr(a))throw new fl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(Vr(a))l.push(...Object.keys(a));else if(Sf(a)){if(i.length>0)throw new fl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new fl(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);l.forEach(c=>{n[c]||(n[c]={});let d=Vr(a)?a[c]:a;t(n[c],[...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={}}},vf=!1;yl=[],H1=!1,Al=Symbol.for("Jolibox.invokeResolverInstance"),$1=new Map;globalThis[Al]||(globalThis[Al]=$1);V1={get resolveMap(){return globalThis[Al]}};wo=Symbol.for("Jolibox.subscribeInstance");ht={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){ht.trigger=e},onDoExit(e){ht.exit=e},onDoBackPress(e){ht.backPress=e}},Pf=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new g1("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{ht.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>xo(void 0,null,function*(){let o=yield ht.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Cl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Cf(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:Pf,doExit:r};globalThis.joliboxJSCore=Ht({},n)}if(window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{ht.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>xo(void 0,null,function*(){let a=yield ht.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Cl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Cf(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(l),webviewIds:s}))},call(o,a,s){let l=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(l)return JSON.parse(l)},doBackPress(o){return xo(this,null,function*(){let a=yield ht.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Pf,doExit:n};globalThis.joliboxJSCore=Ht({},i)}Of=Cl;if(!Of&&q1())throw new _1("No joliboxJScore is found, native bridge not found.");Q1=Ht({},Of),Rf=K1(Q1),{invokeHandler:yf}=Rf,{applyNative:ge,invokeNative:U,onNative:Ze,offNative:YH,subscribeHandler:Y1,publish:Nf,emitNative:Pl,subscribe:XH,unsubscribe:ZH}=Rf;globalThis.joliboxJSBridge={callHandler:yf,invokeHandler:yf,subscribeHandler:Y1}});function iT(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function jf(e){return new Promise(t=>setTimeout(t,e))}function zn(e){return typeof e=="string"}function Ar(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Uf(e){return typeof e=="object"&&Array.isArray(e)}function Bf(e){return typeof e=="number"&&!isNaN(e)}function Gr(e){return e===!0||e===!1}function Jf(e){return typeof e=="undefined"}function Ml(e){return Jf(e)||e===null}function oT(e){return typeof e=="function"}function Hf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function $f(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],l=o[a],c=r(s,l,a,i,o);c!==void 0?i[a]=c:qf(l)&&qf(s)?i[a]=n(tT({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function qf(e){return e&&typeof e=="object"&&e.constructor===Object}function Vf(e,t){if(Array.isArray(e))return e.concat(t)}function Wn(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:l=!0}=r,c=()=>(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,l&&!p&&c()},t),p)return c()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,c()},d}function sT(e,t){return(...r)=>t(e,...r)}function To(e){return t=>sT(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new zr(`${i}`))}})}function $n(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Xf(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 l=parseInt(i[s],10)||0,c=parseInt(o[s],10)||0;if(l>c){n=1;break}else if(l<c){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 $l(){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 vT(e){return new Promise(t=>rh(e)(t))}function rh(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function gT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Gn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function _T(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)bT(e[n],t[n])}function bT(e,t){if(zn(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(oT(t)){try{if(e instanceof t)return}catch(r){}if(!Ml(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 wT(){return typeof globalThis!="undefined"?globalThis[nh]:void 0}function IT(e){typeof globalThis!="undefined"&&(globalThis[nh]=e)}function ee(e=!1){let t=wT();if(!e&&t)return t;let r=new Ao,n=new ql,i={registerCommand(o,a,s){r.registerCommand({id:o,handler:a,metadata:s})},executeCommand(o,...a){return n.executeCommand(o,...a)},excuteCommandSync(o,...a){return n.executeCommandThowErr(o,...a)}};return IT(i),i}var Fl,X1,Df,Z1,eT,Lf,tT,rT,Mf,nT,Tt,aT,jl,Kn,Ul,Gf,zr,zf,Wf,Kf,Qf,Yf,Qn,Bl,Ct,Rl,lT,Jl,Ff,cT,X,Hl,uT,Co,Yn,dT,pT,Zf,eh,th,Nl,se,fT,hT,Vn,Gn,Pt,Ll,mT,Ol,yT,Ee,Ao,ql,nh,D=k(()=>{"use strict";Fl=Object.defineProperty,X1=Object.getOwnPropertyDescriptor,Df=Object.getOwnPropertySymbols,Z1=Object.prototype.hasOwnProperty,eT=Object.prototype.propertyIsEnumerable,Lf=(e,t,r)=>t in e?Fl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tT=(e,t)=>{for(var r in t||(t={}))Z1.call(t,r)&&Lf(e,r,t[r]);if(Df)for(var r of Df(t))eT.call(t,r)&&Lf(e,r,t[r]);return e},rT=(e,t)=>{for(var r in t)Fl(e,r,{get:t[r],enumerable:!0})},Mf=(e,t,r,n)=>{for(var i=n>1?void 0:n?X1(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&&Fl(t,r,i),i},nT=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.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}Tt=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))}})}};aT=(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))(aT||{}),jl=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}},Kn=class extends jl{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},Ul=class extends jl{constructor(){super(...arguments),this.kind="USER_ERROR"}},Gf=class extends Ul{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},zr=class extends Ul{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))}},zf=class extends Ul{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))}},Wf=class extends Kn{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Kf=class extends Kn{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))}},Qf=class extends Kn{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},Yf=class extends Kn{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Qn=class extends jl{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}}},Bl=class extends Kn{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Ct={log:$n("log"),warn:$n("warn"),info:$n("info"),error:$n("error"),debug:$n("debug")};Object.assign(globalThis,{logger:Ct});Rl=Symbol.for("Jolibox.canIUseMap"),lT={};globalThis[Rl]||(globalThis[Rl]=lT);Jl={get config(){return globalThis[Rl]}},Ff=Symbol.for("Jolibox.canIUseMap.native"),cT={};globalThis[Ff]||(globalThis[Ff]=cT);X=(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))(X||{}),Hl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Hl||{}),uT=(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))(uT||{}),Co=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});$l();Yn={isiOS: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:navigator.userAgent.includes("Android"),isMac:navigator.userAgent.includes("Mac"),isFacebook:navigator.userAgent.includes("FB_IAB"),isPC:!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},dT="device_id",pT="advertising_id",Zf=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,Co()),window.__joliboxLocalStorage__.getItem(e)),eh=()=>new URLSearchParams(window.location.search).get("deviceId")||Zf(dT),th=()=>new URLSearchParams(window.location.search).get("advertisingId")||Zf(pT),Nl=class Dl{constructor(t){this.element=t,this.next=Dl.Undefined,this.prev=Dl.Undefined}};Nl.Undefined=new Nl(void 0);se=Nl,fT=class{constructor(){this._first=se.Undefined,this._last=se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===se.Undefined}clear(){let e=this._first;for(;e!==se.Undefined;){let t=e.next;e.prev=se.Undefined,e.next=se.Undefined,e=t}this._first=se.Undefined,this._last=se.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new se(e);if(this._first===se.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==se.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==se.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==se.Undefined&&e.next!==se.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===se.Undefined&&e.next===se.Undefined?(this._first=se.Undefined,this._last=se.Undefined):e.next===se.Undefined?(this._last=this._last.prev,this._last.next=se.Undefined):e.prev===se.Undefined&&(this._first=this._first.next,this._first.prev=se.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==se.Undefined;)yield e.element,e=e.next}},hT=0,Vn=class{constructor(e){this.value=e,this.id=hT++}},Gn=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 Vn&&(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,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new Vn(t);return this._listeners?this._listeners instanceof Vn?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof Vn)this._listeners.id===c.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(c);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 Vn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Pt=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 Gn,o=l=>t(...l.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 l of s)t(...l.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 fT,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},Ll={};rT(Ll,{None:()=>mT,filter:()=>gT,once:()=>rh,toPromise:()=>vT});mT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ol=Symbol.for("Jolibox.hostEmitter"),yT=()=>{let e=new Pt;return globalThis[Ol]||(globalThis[Ol]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ol]},Ee=yT();Ao=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Gn,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 _T(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}};Ao=Mf([Hf],Ao);ql=class{constructor(){this._onWillExecuteCommand=new Gn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Gn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Ao,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=iT(3e4)),this._starActivation}executeCommand(e,...t){return nT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Ll.toPromise(Ll.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};ql=Mf([Hf],ql);nh=Symbol.for("Jolibox.commands")});function ke(e,t={}){Vl.emit("ERROR_REPORT",{error:e,options:t})}var Vl,Tr,mt=k(()=>{"use strict";D();D();Vl=new Pt,Tr=new Pt;ke.debounce=Wn(ke,50,{leading:!0})});var Gl,ST,ih,oh,ah=k(()=>{"use strict";D();mt();Gl=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{}}},ST=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},ih=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:Gl(o),payloadJson:Gl(a),signature:Gl(s)}}else throw"joli_source is missing"}catch(r){return ke(new Wf(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},oh=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=ST(e),o=r[2];return`${n}.${i}.${o}`}return t}});var xT,zl,sh=k(()=>{"use strict";D();xT="1.1.49",zl=()=>xT});function Kl(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var ET,lh,Wl,ch,fe,kT,S,K=k(()=>{"use strict";D();ah();sh();D();ET={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:eh(),adId:th(),pixelRatio:window.devicePixelRatio||1,platform:Yn.isAndroid?"android":Yn.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:zl()},schema:window.location.href,platform:Yn.isAndroid?"android":Yn.isiOS?"ios":"h5"},Wl=(lh=globalThis.joliboxJSCore)==null?void 0:lh.env,fe=Object.assign({},(ch=Wl==null?void 0:Wl())!=null?ch:ET);kT=()=>{var f,m,g,_,v,b,I,A,C,O,E;let{payloadJson:e,headerJson:t,signature:r}=fe.schema.length?ih(fe.schema):{},n=`${fe.deviceInfo.did}-${new Date().getTime()}`,o=new URL(fe.schema.length?fe.schema:window.location.href).searchParams,a=(g=(m=(f=o.get("mpId"))!=null?f:o.get("appId"))!=null?m:o.get("gameId"))!=null?g:"",s=(b=(v=(_=fe.clientSessionId)!=null?_:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?b:n,l=!!((A=(I=e==null?void 0:e.testAdsMode)!=null?I:e==null?void 0:e.__testAdsMode)!=null?A:o.get("testAdsMode")==="true"),c=(E=(O=(C=e==null?void 0:e.joliboxEnv)!=null?C:e==null?void 0:e.__joliboxEnv)!=null?O:o.get("joliboxEnv"))!=null?E:"production",d=c==="staging",u=t==null?void 0:t.channel,p=e==null?void 0:e.__shouldInterupt;return{get startTime(){var P;return(P=performance.timeOrigin)!=null?P:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var P;return(P=o.get("joliSource"))!=null?P:null},get mpId(){var P;return(P=a!=null?a:e==null?void 0:e.id)!=null?P:""},get mpVersion(){var P;return(P=t==null?void 0:t.ver)!=null?P:zl()},get mpType(){var P,B;return(B=(P=t==null?void 0:t.__mpType)!=null?P:e==null?void 0:e.__mpType)!=null?B:"game"},get platform(){var P;return((P=fe.platform)!=null?P:fe.deviceInfo.platform).toLowerCase()},get deviceInfo(){return fe.deviceInfo},get sdkInfo(){return fe.sdkInfo},get hostInfo(){return fe.hostInfo},get hostUserInfo(){return fe.hostUserInfo},get sessionId(){var P,B;return(B=(P=fe.clientSessionId)!=null?P:s)!=null?B:n},get channel(){return u},get webviewId(){var P;return(P=fe.webviewId)!=null?P:-1},get shouldInterupt(){return p},get from(){return e==null?void 0:e.__from},get baseApiHost(){return d?"https://stg-api.jolibox.com":"https://api.jolibox.com"},get adId(){var P;return(P=fe.deviceInfo.adId)!=null?P:fe.deviceInfo.did},get language(){return fe.deviceInfo.lang},get sdkEnvironment(){return Kl("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Kl("gamedistribution","jolibox")?"gamedistribution":Kl("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var L,Oe,Re;let P=(L=fe.deviceInfo.pixelRatio)!=null?L:1,B=(Oe=fe.deviceInfo.statusBarHeight)!=null?Oe:e==null?void 0:e.__androidStatusBarHeight,ze=(Re=fe.deviceInfo.navigationBarHeight)!=null?Re:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:B!==void 0?B/P:20,navigationBarHeight:ze!==void 0?ze/P:10}},onEnvConfigChanged:P=>{$f(fe,P,Vf)},encodeJoliSourceQuery:P=>{var B,ze;return t&&r?oh(T(T({},e),P),(B=o.get("joliSource"))!=null?B:""):(ze=o.get("joliSource"))!=null?ze:""},setDoExitDirectly:()=>{p=!1}}},S=kT()});var Ql,dh,AT,TT,uh,CT,ph=k(()=>{"use strict";D();mt();K();D();Ql=!1,dh=(e,t)=>e==null?!1:t in e,AT=e=>dh(e,"kind"),TT=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},uh=(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:TT(e.name)},i=M(T({},n),{env:t.environment,isFromUser:r});r?Tr.emit("GLOBAL_USER_ERROR",e,i):Tr.emit("GLOBAL_ERROR",e,i)},CT=e=>dh(e,"kind")&&e.kind==="USER_ERROR";Vl.on("ERROR_REPORT",({error:e,options:t})=>{if(Ql)return;Ql=!0;let r=AT(e)&&e.raw?e.raw:e;try{let n=CT(e);uh(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new Bl(`${i}, origin error: ${r.message}`);Ct.error(o),uh(new Bl(o.message),{environment:t.environment},!1)}finally{Ql=!1}})});var lr,Yl,Wr=k(()=>{"use strict";mt();D();mt();lr=(e,t)=>{var r,n;return new Qn((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Yl=e=>new Gf(e)});var fh=k(()=>{"use strict";ph();Wr();D();xe();Tr.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};U("trackAsync",{event:"reportJsError",data:r})});Tr.on("GLOBAL_USER_ERROR",(e,t)=>{Ct.log("UserError",e,t)})});var Xl=k(()=>{"use strict"});function hh(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=Xe(c,["eventType"]),l=M(T({tag:n,eventType:o!=null?o:a!=null?a:X.Other},t),{extra:T({},s)});n=="globalJsError"?ke(new Yf(JSON.stringify(l))):e("systemLog",l,S.webviewId)};return r.debounce=Wn(r,500,{leading:!0}),r}function mh(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=Wn(t,500,{leading:!0}),t}var vh=k(()=>{"use strict";D();D();mt();K()});function gh(e,t){let r=hh(e,t),n=mh(r);return{track:r,trackPerformance:n}}var yh=k(()=>{"use strict";vh()});var _h=k(()=>{"use strict";K();D();D()});var bh=k(()=>{"use strict";yh();Xl();_h()});var Po,wh=k(()=>{"use strict";Po=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.timer=this.createRAFTimer(t=>{this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration: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.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{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)},l=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},c=()=>{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?c():l())});let p=this.visible;return{start(){o||(o=!0,p?c():l())},stop(){o=!1,d(),u()}}}}});function Oo(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:"https://api.jolibox.com",o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return Ze("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:_}=f,v=Xe(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:_}=m,v=Xe(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else Ct.warn("onRequestTaskStateChange unknown event",u)}),Ee.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>w(this,[f,...m],function*(u,p={}){let g=Date.now(),_=PT(u,M(T({},p),{baseUrl:i})),{method:v="GET",responseType:b="text",dataType:I="json",timeout:A,enableCache:C=!1,appendHostCookie:O=!0}=p,E=Object.assign({"content-type":"application/json"},a,p.header),P={url:_,method:v,header:E,enableCache:C,responseType:b,appendHostCookie:O};if(v=="POST"||v=="PUT"){let Re=RT(p.data,E["content-type"]);P.data=Re}A&&Object.assign(P,{timeout:A});let{data:{requestTaskId:B}}=U(e,P);if(typeof B!="string")throw lr({code:-1,msg:"requestTaskId is not a string"});let{resolve:ze,reject:L,promise:Oe}=new Tt;n.set(B,{resolve:ze,reject:L});try{let Re=yield Oe,{data:kr}=Re;return I==="json"&&typeof kr=="string"&&(kr=OT(kr)),{url:_,timeout:A,method:v,response:M(T({},Re),{data:kr})}}catch(Re){let kr=Re;if(Ar(kr)){let{errMsg:dl,prefetchDetail:VH,isPrefetch:GH,errNo:$A}=kr;zn(dl)&&ke(lr({code:-1,msg:dl},{errNo:$A,errMsg:dl}))}throw Re}})}function OT(e){try{return JSON.parse(e.trim())}catch(t){return e}}function RT(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 PT,Zl=k(()=>{"use strict";D();xe();mt();Wr();PT=(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 ec,Ih,te,vt=k(()=>{"use strict";Zl();K();ec={};(Ih=S.hostUserInfo)!=null&&Ih.token&&(ec["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(ec["x-joli-source"]=S.joliSource);te=Oo("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:S.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:ec})});var Ro,Sh=k(()=>{"use strict";K();wh();vt();xe();Ro=class extends Po{constructor(t,r,n){super(r,n),this.gameId=S.mpId,this.sessionId=S.sessionId,this.track=t,this.taskUrl=S.testMode?"https://stg-api.jolibox.com/api/base/app-event":"https://api.jolibox.com/api/base/app-event"}reporter(t){return w(this,null,function*(){let{event:r,params:n}=t,i={eventType:r,gameInfo:T({gameId:this.gameId,sessionId:this.sessionId},n)};yield S.platform==="android"?te("/api/base/app-event",{method:"POST",data:i}):ge("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(i)})})}reportToNative(t){return w(this,null,function*(){let{event:r,params:n}=t;yield ge("userTrackAsync",{event:r,params:T({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Th={};uf(Th,{nativeTaskEmitter:()=>Xn,taskTracker:()=>$t,track:()=>j,trackPerformance:()=>kh});var NT,xh,Eh,j,kh,Ah,Xn,$t,gt=k(()=>{"use strict";fh();D();Xl();bh();K();Sh();xe();NT=(e,t,r)=>{var s,l,c,d,u,p;let n=t,i=Ar(n.extra)?n.extra:zn(n.extra)?JSON.parse(n.extra):{},o=M(T({},i),{mp_id:(s=n.mp_id)!=null?s:"",mp_version:(l=n.mp_version)!=null?l:"",session_id:S.sessionId,user_id:(d=(c=S.hostUserInfo)==null?void 0:c.uid)!=null?d:""}),a=(u=n.eventType)!=null?u:X.Other;U("trackAsync",{event:(p=t.tag)!=null?p:e,data:o,webviewId:r,eventType:a})},{track:j,trackPerformance:kh}=gh(NT,{type:Hl.AppSDK,platform:"native",jssdk_version:(Eh=(xh=S.sdkInfo)==null?void 0:xh.jssdkVersion)!=null?Eh:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Ah=ee();Ah.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{kh(e,t,r)});Ah.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{j(e,t)});Xn=new Pt,$t=new Ro(j,Xn)});function Ch(){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=`
|
|
2
2
|
html[data-jolibox-root] {
|
|
3
3
|
height: 100%;
|
|
4
4
|
margin: 0;
|
|
@@ -16,10 +16,10 @@ var VA=Object.create;var bo=Object.defineProperty,GA=Object.defineProperties,zA=
|
|
|
16
16
|
min-height: 100dvh;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
`;e.textContent=s;let l=document.head||document.getElementsByTagName("head")[0];l.insertBefore(t,l.firstChild),l.insertBefore(e,l.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:l}=S.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return w(this,null,function*(){let d=c instanceof URL?c.href:c,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 l=window.fetch;window.fetch=(c,d)=>{let u=c instanceof URL?c.href:c.toString();return u.endsWith(".wasm")?s(u):l(c,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 Ph=k(()=>{"use strict";K()});var Oh=k(()=>{"use strict"});var Rh=k(()=>{"use strict";D();$l()});var Nh=k(()=>{"use strict";K()});var No,tc=k(()=>{"use strict";Oh();Rh();K();Nh();D();No=new Pt});function Vt(e,t){for(var r in t)e[r]=t[r];return e}function sc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Me(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?Fo.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 Lo(e,a,n,i,null)}function Lo(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?++Fh:i,__i:-1,__u:0};return i==null&&R.vnode!=null&&R.vnode(o),o}function Oe(e){return e.children}function st(e,t){this.props=e,this.context=t}function Kr(e,t){if(t==null)return e.__?Kr(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"?Kr(e):null}function Hh(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 Hh(e)}}function ic(e){(!e.__d&&(e.__d=!0)&&Cr.push(e)&&!qo.__r++||Dh!==R.debounceRendering)&&((Dh=R.debounceRendering)||Mh)(qo)}function qo(){for(var e,t,r,n,i,o,a,s=1;Cr.length;)Cr.length>s&&Cr.sort(Uh),e=Cr.shift(),s=Cr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Vt({},n)).__v=n.__v+1,R.vnode&&R.vnode(r),lc(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Kr(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Gh(o,r,a),r.__e!=i&&Hh(r)));qo.__r=0}function $h(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,g,_,v=n&&n.__k||Jh,b=t.length;for(l=LT(r,t,v,l,b),u=0;u<b;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?Zn:v[f.__i]||Zn,f.__i=u,_=lc(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&cc(p.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||p.__k===f.__k?l=Vh(f,l,e):typeof f.type=="function"&&_!==void 0?l=_:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=g,l}function LT(e,t,r,n,i){var o,a,s,l,c,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"?(l=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Lo(null,a,null,null,null):ei(a)?Lo(Oe,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Lo(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(c=a.__i=qT(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?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=Kr(s)),Wh(s,s));return n}function Vh(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=Vh(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Kr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ti(e,t){return t=t||[],e==null||typeof e=="boolean"||(ei(e)?e.some(function(r){ti(r,t)}):t.push(e)),t}function qT(e,t,r,n){var i,o,a=e.key,s=e.type,l=t[r];if(l===null&&e.key==null||l&&a==l.key&&s===l.type&&!(2&l.__u))return r;if(n>(l!=null&&!(2&l.__u)?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;){if(i>=0){if((l=t[i])&&!(2&l.__u)&&a==l.key&&s===l.type)return i;i--}if(o<t.length){if((l=t[o])&&!(2&l.__u)&&a==l.key&&s===l.type)return o;o++}}return-1}function Lh(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||DT.test(t)?r:r+"px"}function Do(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||Lh(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Lh(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(jh,"$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=ac,e.addEventListener(t,o?nc:rc,o)):e.removeEventListener(t,o?nc:rc,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 qh(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=ac++;else if(t.u<r.t)return;return r(R.event?R.event(t):t)}}}function lc(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,g,_,v,b,I,A,P,O,E,C,Z,at,F=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=R.__b)&&d(t);e:if(typeof F=="function")try{if(v=t.props,b="prototype"in F&&F.prototype.render,I=(d=F.contextType)&&n[d.__c],A=d?I?I.props.value:d.__:n,r.__c?_=(u=t.__c=r.__c).__=u.__E:(b?t.__c=u=new F(v,A):(t.__c=u=new st(v,A),u.constructor=F,u.render=MT),I&&I.sub(u),u.props=v,u.state||(u.state={}),u.context=A,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&F.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Vt({},u.__s)),Vt(u.__s,F.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)b&&F.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&F.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,A),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,A)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Ve){Ve&&(Ve.__=t)}),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,A),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=A,u.props=v,u.__P=e,u.__e=!1,O=R.__r,E=0,b){for(u.state=u.__s,u.__d=!1,O&&O(t),d=u.render(u.props,u.state,u.context),C=0;C<u._sb.length;C++)u.__h.push(u._sb[C]);u._sb=[]}else do u.__d=!1,O&&O(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++E<25);u.state=u.__s,u.getChildContext!=null&&(n=Vt(Vt({},n),u.getChildContext())),b&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),Z=d,d!=null&&d.type===Oe&&d.key==null&&(Z=zh(d.props.children)),s=$h(e,ei(Z)?Z:[Z],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),_&&(u.__E=u.__=null)}catch(Ve){if(t.__v=null,l||o!=null)if(Ve.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(at=o.length;at--;)sc(o[at]);else t.__e=r.__e,t.__k=r.__k;R.__e(Ve,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=FT(r.__e,t,r,n,i,o,a,l,c);return(d=R.diffed)&&d(t),128&t.__u?void 0:s}function Gh(e,t,r){for(var n=0;n<r.length;n++)cc(r[n],r[++n],r[++n]);R.__c&&R.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){R.__e(o,i.__v)}})}function zh(e){return typeof e!="object"||e==null?e:ei(e)?e.map(zh):Vt({},e)}function FT(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,g,_=r.props,v=t.props,b=t.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(b==null)return document.createTextNode(v);e=document.createElementNS(i,b,v.is&&v),s&&(R.__m&&R.__m(t,o),s=!1),o=null}if(b===null)_===v||s&&e.data===v||(e.data=v);else{if(o=o&&Fo.call(e.childNodes),_=r.props||Zn,!s&&o!=null)for(_={},c=0;c<e.attributes.length;c++)_[(f=e.attributes[c]).name]=f.value;for(c in _)if(f=_[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;Do(e,c,null,f,i)}}for(c in v)f=v[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?m=f:c=="checked"?g=f:s&&typeof f!="function"||_[c]===f||Do(e,c,f,_[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),$h(t.type==="template"?e.content:e,ei(p)?p:[p],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Kr(r,0),s,l),o!=null)for(c=o.length;c--;)sc(o[c]);s||(c="value",b=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||b=="progress"&&!m||b=="option"&&m!==_[c])&&Do(e,c,m,_[c],i),c="checked",g!==void 0&&g!==e[c]&&Do(e,c,g,_[c],i))}return e}function cc(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){R.__e(i,r)}}function Wh(e,t,r){var n,i;if(R.unmount&&R.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||cc(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){R.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Wh(n[i],t,r||typeof e.type!="function");r||sc(e.__e),e.__c=e.__=e.__e=void 0}function MT(e,t,r){return this.constructor(e,r)}function cr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),R.__&&R.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],lc(t,e=(!n&&r||t).__k=Me(Oe,null,[e]),i||Zn,Zn,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Fo.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Gh(o,e,a)}function Pr(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,ic(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"+Bh++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Fo,R,Fh,oc,Cr,Dh,Mh,Uh,jh,ac,rc,nc,Bh,Zn,Jh,DT,ei,Qr=k(()=>{Zn={},Jh=[],DT=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ei=Array.isArray;Fo=Jh.slice,R={__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}},Fh=0,oc=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=Vt({},this.state),typeof e=="function"&&(e=e(Vt({},r),this.props)),e&&Vt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),ic(this))},st.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ic(this))},st.prototype.render=Oe,Cr=[],Mh=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Uh=function(e,t){return e.__v.__b-t.__v.__b},qo.__r=0,jh=/(PointerCapture)$|Capture$/i,ac=0,rc=qh(!1),nc=qh(!0),Bh=0});var ue=h((AV,Kh)=>{"use strict";Kh.exports=function(e){try{return!!e()}catch(t){return!0}}});var Yr=h((TV,Qh)=>{"use strict";var UT=ue();Qh.exports=!UT(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var ye=h((CV,Zh)=>{"use strict";var Yh=Yr(),Xh=Function.prototype,uc=Xh.call,jT=Yh&&Xh.bind.bind(uc,uc);Zh.exports=Yh?jT:function(e){return function(){return uc.apply(e,arguments)}}});var Ge=h((PV,em)=>{"use strict";var BT=ye();em.exports=BT({}.isPrototypeOf)});var de=h((dc,tm)=>{"use strict";var ri=function(e){return e&&e.Math===Math&&e};tm.exports=ri(typeof globalThis=="object"&&globalThis)||ri(typeof window=="object"&&window)||ri(typeof self=="object"&&self)||ri(typeof global=="object"&&global)||ri(typeof dc=="object"&&dc)||function(){return this}()||Function("return this")()});var pc=h((OV,om)=>{"use strict";var JT=Yr(),im=Function.prototype,rm=im.apply,nm=im.call;om.exports=typeof Reflect=="object"&&Reflect.apply||(JT?nm.bind(rm):function(){return nm.apply(rm,arguments)})});var Gt=h((RV,sm)=>{"use strict";var am=ye(),HT=am({}.toString),$T=am("".slice);sm.exports=function(e){return $T(HT(e),8,-1)}});var ni=h((NV,lm)=>{"use strict";var VT=Gt(),GT=ye();lm.exports=function(e){if(VT(e)==="Function")return GT(e)}});var Re=h((DV,cm)=>{"use strict";var fc=typeof document=="object"&&document.all;cm.exports=typeof fc=="undefined"&&fc!==void 0?function(e){return typeof e=="function"||e===fc}:function(e){return typeof e=="function"}});var ze=h((LV,um)=>{"use strict";var zT=ue();um.exports=!zT(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var It=h((qV,dm)=>{"use strict";var WT=Yr(),Mo=Function.prototype.call;dm.exports=WT?Mo.bind(Mo):function(){return Mo.apply(Mo,arguments)}});var hc=h(hm=>{"use strict";var pm={}.propertyIsEnumerable,fm=Object.getOwnPropertyDescriptor,KT=fm&&!pm.call({1:2},1);hm.f=KT?function(t){var r=fm(this,t);return!!r&&r.enumerable}:pm});var ii=h((MV,mm)=>{"use strict";mm.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Uo=h((UV,vm)=>{"use strict";var QT=ye(),YT=ue(),XT=Gt(),mc=Object,ZT=QT("".split);vm.exports=YT(function(){return!mc("z").propertyIsEnumerable(0)})?function(e){return XT(e)==="String"?ZT(e,""):mc(e)}:mc});var Or=h((jV,gm)=>{"use strict";gm.exports=function(e){return e==null}});var Rr=h((BV,ym)=>{"use strict";var eC=Or(),tC=TypeError;ym.exports=function(e){if(eC(e))throw new tC("Can't call method on "+e);return e}});var ur=h((JV,_m)=>{"use strict";var rC=Uo(),nC=Rr();_m.exports=function(e){return rC(nC(e))}});var Ae=h((HV,bm)=>{"use strict";var iC=Re();bm.exports=function(e){return typeof e=="object"?e!==null:iC(e)}});var Ot=h(($V,wm)=>{"use strict";wm.exports={}});var Xr=h((VV,Sm)=>{"use strict";var vc=Ot(),gc=de(),oC=Re(),Im=function(e){return oC(e)?e:void 0};Sm.exports=function(e,t){return arguments.length<2?Im(vc[e])||Im(gc[e]):vc[e]&&vc[e][t]||gc[e]&&gc[e][t]}});var jo=h((GV,km)=>{"use strict";var aC=de(),xm=aC.navigator,Em=xm&&xm.userAgent;km.exports=Em?String(Em):""});var Jo=h((zV,Rm)=>{"use strict";var Om=de(),yc=jo(),Am=Om.process,Tm=Om.Deno,Cm=Am&&Am.versions||Tm&&Tm.version,Pm=Cm&&Cm.v8,St,Bo;Pm&&(St=Pm.split("."),Bo=St[0]>0&&St[0]<4?1:+(St[0]+St[1]));!Bo&&yc&&(St=yc.match(/Edge\/(\d+)/),(!St||St[1]>=74)&&(St=yc.match(/Chrome\/(\d+)/),St&&(Bo=+St[1])));Rm.exports=Bo});var _c=h((WV,Dm)=>{"use strict";var Nm=Jo(),sC=ue(),lC=de(),cC=lC.String;Dm.exports=!!Object.getOwnPropertySymbols&&!sC(function(){var e=Symbol("symbol detection");return!cC(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Nm&&Nm<41})});var bc=h((KV,Lm)=>{"use strict";var uC=_c();Lm.exports=uC&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var wc=h((QV,qm)=>{"use strict";var dC=Xr(),pC=Re(),fC=Ge(),hC=bc(),mC=Object;qm.exports=hC?function(e){return typeof e=="symbol"}:function(e){var t=dC("Symbol");return pC(t)&&fC(t.prototype,mC(e))}});var oi=h((YV,Fm)=>{"use strict";var vC=String;Fm.exports=function(e){try{return vC(e)}catch(t){return"Object"}}});var Nr=h((XV,Mm)=>{"use strict";var gC=Re(),yC=oi(),_C=TypeError;Mm.exports=function(e){if(gC(e))return e;throw new _C(yC(e)+" is not a function")}});var Ho=h((ZV,Um)=>{"use strict";var bC=Nr(),wC=Or();Um.exports=function(e,t){var r=e[t];return wC(r)?void 0:bC(r)}});var Bm=h((eG,jm)=>{"use strict";var Ic=It(),Sc=Re(),xc=Ae(),IC=TypeError;jm.exports=function(e,t){var r,n;if(t==="string"&&Sc(r=e.toString)&&!xc(n=Ic(r,e))||Sc(r=e.valueOf)&&!xc(n=Ic(r,e))||t!=="string"&&Sc(r=e.toString)&&!xc(n=Ic(r,e)))return n;throw new IC("Can't convert object to primitive value")}});var Zr=h((tG,Jm)=>{"use strict";Jm.exports=!0});var Vm=h((rG,$m)=>{"use strict";var Hm=de(),SC=Object.defineProperty;$m.exports=function(e,t){try{SC(Hm,e,{value:t,configurable:!0,writable:!0})}catch(r){Hm[e]=t}return t}});var ai=h((nG,Wm)=>{"use strict";var xC=Zr(),EC=de(),kC=Vm(),Gm="__core-js_shared__",zm=Wm.exports=EC[Gm]||kC(Gm,{});(zm.versions||(zm.versions=[])).push({version:"3.41.0",mode:xC?"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 Ec=h((iG,Qm)=>{"use strict";var Km=ai();Qm.exports=function(e,t){return Km[e]||(Km[e]=t||{})}});var en=h((oG,Ym)=>{"use strict";var AC=Rr(),TC=Object;Ym.exports=function(e){return TC(AC(e))}});var lt=h((aG,Xm)=>{"use strict";var CC=ye(),PC=en(),OC=CC({}.hasOwnProperty);Xm.exports=Object.hasOwn||function(t,r){return OC(PC(t),r)}});var $o=h((sG,Zm)=>{"use strict";var RC=ye(),NC=0,DC=Math.random(),LC=RC(1 .toString);Zm.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+LC(++NC+DC,36)}});var Ue=h((lG,tv)=>{"use strict";var qC=de(),FC=Ec(),ev=lt(),MC=$o(),UC=_c(),jC=bc(),tn=qC.Symbol,kc=FC("wks"),BC=jC?tn.for||tn:tn&&tn.withoutSetter||MC;tv.exports=function(e){return ev(kc,e)||(kc[e]=UC&&ev(tn,e)?tn[e]:BC("Symbol."+e)),kc[e]}});var ov=h((cG,iv)=>{"use strict";var JC=It(),rv=Ae(),nv=wc(),HC=Ho(),$C=Bm(),VC=Ue(),GC=TypeError,zC=VC("toPrimitive");iv.exports=function(e,t){if(!rv(e)||nv(e))return e;var r=HC(e,zC),n;if(r){if(t===void 0&&(t="default"),n=JC(r,e,t),!rv(n)||nv(n))return n;throw new GC("Can't convert object to primitive value")}return t===void 0&&(t="number"),$C(e,t)}});var Ac=h((uG,av)=>{"use strict";var WC=ov(),KC=wc();av.exports=function(e){var t=WC(e,"string");return KC(t)?t:t+""}});var Cc=h((dG,lv)=>{"use strict";var QC=de(),sv=Ae(),Tc=QC.document,YC=sv(Tc)&&sv(Tc.createElement);lv.exports=function(e){return YC?Tc.createElement(e):{}}});var Pc=h((pG,cv)=>{"use strict";var XC=ze(),ZC=ue(),eP=Cc();cv.exports=!XC&&!ZC(function(){return Object.defineProperty(eP("div"),"a",{get:function(){return 7}}).a!==7})});var Oc=h(dv=>{"use strict";var tP=ze(),rP=It(),nP=hc(),iP=ii(),oP=ur(),aP=Ac(),sP=lt(),lP=Pc(),uv=Object.getOwnPropertyDescriptor;dv.f=tP?uv:function(t,r){if(t=oP(t),r=aP(r),lP)try{return uv(t,r)}catch(n){}if(sP(t,r))return iP(!rP(nP.f,t,r),t[r])}});var fv=h((hG,pv)=>{"use strict";var cP=ue(),uP=Re(),dP=/#|\.prototype\./,si=function(e,t){var r=fP[pP(e)];return r===mP?!0:r===hP?!1:uP(t)?cP(t):!!t},pP=si.normalize=function(e){return String(e).replace(dP,".").toLowerCase()},fP=si.data={},hP=si.NATIVE="N",mP=si.POLYFILL="P";pv.exports=si});var li=h((mG,mv)=>{"use strict";var hv=ni(),vP=Nr(),gP=Yr(),yP=hv(hv.bind);mv.exports=function(e,t){return vP(e),t===void 0?e:gP?yP(e,t):function(){return e.apply(t,arguments)}}});var Rc=h((vG,vv)=>{"use strict";var _P=ze(),bP=ue();vv.exports=_P&&bP(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var zt=h((gG,gv)=>{"use strict";var wP=Ae(),IP=String,SP=TypeError;gv.exports=function(e){if(wP(e))return e;throw new SP(IP(e)+" is not an object")}});var Wt=h(_v=>{"use strict";var xP=ze(),EP=Pc(),kP=Rc(),Vo=zt(),yv=Ac(),AP=TypeError,Nc=Object.defineProperty,TP=Object.getOwnPropertyDescriptor,Dc="enumerable",Lc="configurable",qc="writable";_v.f=xP?kP?function(t,r,n){if(Vo(t),r=yv(r),Vo(n),typeof t=="function"&&r==="prototype"&&"value"in n&&qc in n&&!n[qc]){var i=TP(t,r);i&&i[qc]&&(t[r]=n.value,n={configurable:Lc in n?n[Lc]:i[Lc],enumerable:Dc in n?n[Dc]:i[Dc],writable:!1})}return Nc(t,r,n)}:Nc:function(t,r,n){if(Vo(t),r=yv(r),Vo(n),EP)try{return Nc(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new AP("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Dr=h((_G,bv)=>{"use strict";var CP=ze(),PP=Wt(),OP=ii();bv.exports=CP?function(e,t,r){return PP.f(e,t,OP(1,r))}:function(e,t,r){return e[t]=r,e}});var Q=h((bG,Iv)=>{"use strict";var ci=de(),RP=pc(),NP=ni(),DP=Re(),LP=Oc().f,qP=fv(),rn=Ot(),FP=li(),nn=Dr(),wv=lt();ai();var MP=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 RP(e,this,arguments)};return t.prototype=e.prototype,t};Iv.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?ci:i?ci[r]:ci[r]&&ci[r].prototype,s=n?rn:rn[r]||nn(rn,r,{})[r],l=s.prototype,c,d,u,p,f,m,g,_,v;for(p in t)c=qP(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&wv(a,p),m=s[p],d&&(e.dontCallGetSet?(v=LP(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!c&&!o&&typeof m==typeof f)&&(e.bind&&d?_=FP(f,ci):e.wrap&&d?_=MP(f):o&&DP(f)?_=NP(f):_=f,(e.sham||f&&f.sham||m&&m.sham)&&nn(_,"sham",!0),nn(s,p,_),o&&(u=r+"Prototype",wv(rn,u)||nn(rn,u,{}),nn(rn[u],p,f),e.real&&l&&(c||!l[p])&&nn(l,p,f)))}});var xv=h((wG,Sv)=>{"use strict";var UP=Math.ceil,jP=Math.floor;Sv.exports=Math.trunc||function(t){var r=+t;return(r>0?jP:UP)(r)}});var ui=h((IG,Ev)=>{"use strict";var BP=xv();Ev.exports=function(e){var t=+e;return t!==t||t===0?0:BP(t)}});var Fc=h((SG,kv)=>{"use strict";var JP=ui(),HP=Math.min;kv.exports=function(e){var t=JP(e);return t>0?HP(t,9007199254740991):0}});var on=h((xG,Av)=>{"use strict";var $P=Fc();Av.exports=function(e){return $P(e.length)}});var di=h((EG,Tv)=>{"use strict";var VP=Gt();Tv.exports=Array.isArray||function(t){return VP(t)==="Array"}});var Go=h((kG,Pv)=>{"use strict";var GP=Ue(),zP=GP("toStringTag"),Cv={};Cv[zP]="z";Pv.exports=String(Cv)==="[object z]"});var an=h((AG,Ov)=>{"use strict";var WP=Go(),KP=Re(),zo=Gt(),QP=Ue(),YP=QP("toStringTag"),XP=Object,ZP=zo(function(){return arguments}())==="Arguments",eO=function(e,t){try{return e[t]}catch(r){}};Ov.exports=WP?zo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=eO(t=XP(e),YP))=="string"?r:ZP?zo(t):(n=zo(t))==="Object"&&KP(t.callee)?"Arguments":n}});var Nv=h((TG,Rv)=>{"use strict";var tO=ye(),rO=Re(),Mc=ai(),nO=tO(Function.toString);rO(Mc.inspectSource)||(Mc.inspectSource=function(e){return nO(e)});Rv.exports=Mc.inspectSource});var jc=h((CG,Mv)=>{"use strict";var iO=ye(),oO=ue(),Dv=Re(),aO=an(),sO=Xr(),lO=Nv(),Lv=function(){},qv=sO("Reflect","construct"),Uc=/^\s*(?:class|function)\b/,cO=iO(Uc.exec),uO=!Uc.test(Lv),pi=function(t){if(!Dv(t))return!1;try{return qv(Lv,[],t),!0}catch(r){return!1}},Fv=function(t){if(!Dv(t))return!1;switch(aO(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return uO||!!cO(Uc,lO(t))}catch(r){return!0}};Fv.sham=!0;Mv.exports=!qv||oO(function(){var e;return pi(pi.call)||!pi(Object)||!pi(function(){e=!0})||e})?Fv:pi});var Jv=h((PG,Bv)=>{"use strict";var Uv=di(),dO=jc(),pO=Ae(),fO=Ue(),hO=fO("species"),jv=Array;Bv.exports=function(e){var t;return Uv(e)&&(t=e.constructor,dO(t)&&(t===jv||Uv(t.prototype))?t=void 0:pO(t)&&(t=t[hO],t===null&&(t=void 0))),t===void 0?jv:t}});var Bc=h((OG,Hv)=>{"use strict";var mO=Jv();Hv.exports=function(e,t){return new(mO(e))(t===0?0:t)}});var pr=h((RG,Vv)=>{"use strict";var vO=li(),gO=ye(),yO=Uo(),_O=en(),bO=on(),wO=Bc(),$v=gO([].push),dr=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(l,c,d,u){for(var p=_O(l),f=yO(p),m=bO(f),g=vO(c,d),_=0,v=u||wO,b=t?v(l,m):r||a?v(l,0):void 0,I,A;m>_;_++)if((s||_ in f)&&(I=f[_],A=g(I,_,p),e))if(t)b[_]=A;else if(A)switch(e){case 3:return!0;case 5:return I;case 6:return _;case 2:$v(b,I)}else switch(e){case 4:return!1;case 7:$v(b,I)}return o?-1:n||i?i:b}};Vv.exports={forEach:dr(0),map:dr(1),filter:dr(2),some:dr(3),every:dr(4),find:dr(5),findIndex:dr(6),filterReject:dr(7)}});var fi=h((NG,Gv)=>{"use strict";var IO=ue(),SO=Ue(),xO=Jo(),EO=SO("species");Gv.exports=function(e){return xO>=51||!IO(function(){var t=[],r=t.constructor={};return r[EO]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var zv=h(()=>{"use strict";var kO=Q(),AO=pr().filter,TO=fi(),CO=TO("filter");kO({target:"Array",proto:!0,forced:!CO},{filter:function(t){return AO(this,t,arguments.length>1?arguments[1]:void 0)}})});var yt=h((qG,Wv)=>{"use strict";var PO=de(),OO=Ot();Wv.exports=function(e,t){var r=OO[e+"Prototype"],n=r&&r[t];if(n)return n;var i=PO[e],o=i&&i.prototype;return o&&o[t]}});var Qv=h((FG,Kv)=>{"use strict";zv();var RO=yt();Kv.exports=RO("Array","filter")});var Xv=h((MG,Yv)=>{"use strict";var NO=Ge(),DO=Qv(),Jc=Array.prototype;Yv.exports=function(e){var t=e.filter;return e===Jc||NO(Jc,e)&&t===Jc.filter?DO:t}});var eg=h((UG,Zv)=>{"use strict";var LO=Xv();Zv.exports=LO});var rg=h((jG,tg)=>{tg.exports=eg()});var hi=h((BG,ng)=>{"use strict";var qO=ue();ng.exports=function(e,t){var r=[][e];return!!r&&qO(function(){r.call(null,t||function(){return 1},1)})}});var ig=h(()=>{"use strict";var FO=Q(),MO=pr().every,UO=hi(),jO=UO("every");FO({target:"Array",proto:!0,forced:!jO},{every:function(t){return MO(this,t,arguments.length>1?arguments[1]:void 0)}})});var ag=h(($G,og)=>{"use strict";ig();var BO=yt();og.exports=BO("Array","every")});var lg=h((VG,sg)=>{"use strict";var JO=Ge(),HO=ag(),Hc=Array.prototype;sg.exports=function(e){var t=e.every;return e===Hc||JO(Hc,e)&&t===Hc.every?HO:t}});var ug=h((GG,cg)=>{"use strict";var $O=lg();cg.exports=$O});var pg=h((zG,dg)=>{dg.exports=ug()});var hg=h((WG,fg)=>{"use strict";var VO=pr().forEach,GO=hi(),zO=GO("forEach");fg.exports=zO?[].forEach:function(t){return VO(this,t,arguments.length>1?arguments[1]:void 0)}});var vg=h(()=>{"use strict";var WO=Q(),mg=hg();WO({target:"Array",proto:!0,forced:[].forEach!==mg},{forEach:mg})});var yg=h((YG,gg)=>{"use strict";vg();var KO=yt();gg.exports=KO("Array","forEach")});var bg=h((XG,_g)=>{"use strict";var QO=yg();_g.exports=QO});var wg=h(()=>{});var Sg=h((tz,Ig)=>{"use strict";var YO=an(),XO=lt(),ZO=Ge(),eR=bg();wg();var $c=Array.prototype,tR={DOMTokenList:!0,NodeList:!0};Ig.exports=function(e){var t=e.forEach;return e===$c||ZO($c,e)&&t===$c.forEach||XO(tR,YO(e))?eR:t}});var Eg=h((rz,xg)=>{xg.exports=Sg()});var Ag=h((nz,kg)=>{"use strict";var rR=TypeError,nR=9007199254740991;kg.exports=function(e){if(e>nR)throw rR("Maximum allowed index exceeded");return e}});var Vc=h((iz,Tg)=>{"use strict";var iR=ze(),oR=Wt(),aR=ii();Tg.exports=function(e,t,r){iR?oR.f(e,t,aR(0,r)):e[t]=r}});var Rg=h(()=>{"use strict";var sR=Q(),lR=ue(),cR=di(),uR=Ae(),dR=en(),pR=on(),Cg=Ag(),Pg=Vc(),fR=Bc(),hR=fi(),mR=Ue(),vR=Jo(),Og=mR("isConcatSpreadable"),gR=vR>=51||!lR(function(){var e=[];return e[Og]=!1,e.concat()[0]!==e}),yR=function(e){if(!uR(e))return!1;var t=e[Og];return t!==void 0?!!t:cR(e)},_R=!gR||!hR("concat");sR({target:"Array",proto:!0,arity:1,forced:_R},{concat:function(t){var r=dR(this),n=fR(r,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;o<s;o++)if(c=o===-1?r:arguments[o],yR(c))for(l=pR(c),Cg(i+l),a=0;a<l;a++,i++)a in c&&Pg(n,i,c[a]);else Cg(i+1),Pg(n,i++,c);return n.length=i,n}})});var Dg=h((sz,Ng)=>{"use strict";Rg();var bR=yt();Ng.exports=bR("Array","concat")});var qg=h((lz,Lg)=>{"use strict";var wR=Ge(),IR=Dg(),Gc=Array.prototype;Lg.exports=function(e){var t=e.concat;return e===Gc||wR(Gc,e)&&t===Gc.concat?IR:t}});var Mg=h((cz,Fg)=>{"use strict";var SR=qg();Fg.exports=SR});var jg=h((uz,Ug)=>{Ug.exports=Mg()});var Bg=h(()=>{"use strict";var xR=Q(),ER=pr().some,kR=hi(),AR=kR("some");xR({target:"Array",proto:!0,forced:!AR},{some:function(t){return ER(this,t,arguments.length>1?arguments[1]:void 0)}})});var Hg=h((fz,Jg)=>{"use strict";Bg();var TR=yt();Jg.exports=TR("Array","some")});var Vg=h((hz,$g)=>{"use strict";var CR=Ge(),PR=Hg(),zc=Array.prototype;$g.exports=function(e){var t=e.some;return e===zc||CR(zc,e)&&t===zc.some?PR:t}});var zg=h((mz,Gg)=>{"use strict";var OR=Vg();Gg.exports=OR});var Kg=h((vz,Wg)=>{Wg.exports=zg()});var Yg=h((gz,Qg)=>{"use strict";var mi=de(),RR=jo(),NR=Gt(),Wo=function(e){return RR.slice(0,e.length)===e};Qg.exports=function(){return Wo("Bun/")?"BUN":Wo("Cloudflare-Workers")?"CLOUDFLARE":Wo("Deno/")?"DENO":Wo("Node.js/")?"NODE":mi.Bun&&typeof Bun.version=="string"?"BUN":mi.Deno&&typeof Deno.version=="object"?"DENO":NR(mi.process)==="process"?"NODE":mi.window&&mi.document?"BROWSER":"REST"}()});var gi=h((yz,Xg)=>{"use strict";var DR=ye();Xg.exports=DR([].slice)});var ey=h((_z,Zg)=>{"use strict";var LR=TypeError;Zg.exports=function(e,t){if(e<t)throw new LR("Not enough arguments");return e}});var Wc=h((bz,ry)=>{"use strict";var ty=de(),qR=pc(),FR=Re(),MR=Yg(),UR=jo(),jR=gi(),BR=ey(),JR=ty.Function,HR=/MSIE .\./.test(UR)||MR==="BUN"&&function(){var e=ty.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();ry.exports=function(e,t){var r=t?2:1;return HR?function(n,i){var o=BR(arguments.length,1)>r,a=FR(n)?n:JR(n),s=o?jR(arguments,r):[],l=o?function(){qR(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var oy=h(()=>{"use strict";var $R=Q(),iy=de(),VR=Wc(),ny=VR(iy.setInterval,!0);$R({global:!0,bind:!0,forced:iy.setInterval!==ny},{setInterval:ny})});var ly=h(()=>{"use strict";var GR=Q(),sy=de(),zR=Wc(),ay=zR(sy.setTimeout,!0);GR({global:!0,bind:!0,forced:sy.setTimeout!==ay},{setTimeout:ay})});var cy=h(()=>{"use strict";oy();ly()});var dy=h((Az,uy)=>{"use strict";cy();var WR=Ot();uy.exports=WR.setTimeout});var fy=h((Tz,py)=>{py.exports=dy()});function _i(e,t){he.__h&&he.__h(ne,e,yi||t),yi=0;var r=ne.__H||(ne.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Qo(e){return yi=1,Sy(xy,e)}function Sy(e,t,r){var n=_i(Lr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):xy(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=ne,!ne.__f)){var i=function(s,l,c){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,l,c);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,l,c)||u};ne.__f=!0;var o=ne.shouldComponentUpdate,a=ne.componentWillUpdate;ne.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},ne.shouldComponentUpdate=i}return n.__N||n.__}function bi(e,t){var r=_i(Lr++,3);!he.__s&&Yc(r.__H,t)&&(r.__=e,r.u=t,ne.__H.__h.push(r))}function sn(e,t){var r=_i(Lr++,4);!he.__s&&Yc(r.__H,t)&&(r.__=e,r.u=t,ne.__h.push(r))}function wi(e){return yi=5,Ii(function(){return{current:e}},[])}function Ii(e,t){var r=_i(Lr++,7);return Yc(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function ln(e,t){return yi=8,Ii(function(){return e},t)}function cn(e){var t=ne.context[e.__c],r=_i(Lr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ne)),t.props.value):e.__}function KR(){for(var e;e=Iy.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ko),e.__H.__h.forEach(Qc),e.__H.__h=[]}catch(t){e.__H.__h=[],he.__e(t,e.__v)}}function QR(e){var t,r=function(){clearTimeout(n),wy&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);wy&&(t=requestAnimationFrame(r))}function Ko(e){var t=ne,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ne=t}function Qc(e){var t=ne;e.__c=e.__(),ne=t}function Yc(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function xy(e,t){return typeof t=="function"?t(e):t}var Lr,ne,Kc,hy,yi,Iy,he,my,vy,gy,yy,_y,by,wy,Xc=k(()=>{Qr();yi=0,Iy=[],he=R,my=he.__b,vy=he.__r,gy=he.diffed,yy=he.__c,_y=he.unmount,by=he.__;he.__b=function(e){ne=null,my&&my(e)},he.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),by&&by(e,t)},he.__r=function(e){vy&&vy(e),Lr=0;var t=(ne=e.__c).__H;t&&(Kc===ne?(t.__h=[],ne.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Ko),t.__h.forEach(Qc),t.__h=[],Lr=0)),Kc=ne},he.diffed=function(e){gy&&gy(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Iy.push(t)!==1&&hy===he.requestAnimationFrame||((hy=he.requestAnimationFrame)||QR)(KR)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Kc=ne=null},he.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ko),r.__h=r.__h.filter(function(n){return!n.__||Qc(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],he.__e(n,r.__v)}}),yy&&yy(e,t)},he.unmount=function(e){_y&&_y(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ko(n)}catch(i){t=i}}),r.__H=void 0,t&&he.__e(t,r.__v))};wy=typeof requestAnimationFrame=="function"});function Dy(e,t){for(var r in t)e[r]=t[r];return e}function eu(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 Ey(e,t){this.props=e,this.context=t}function ru(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:eu(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Me(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function nu(e){function t(r){var n=Dy({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=YR,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Ly(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=Dy({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Ly(n,t,r)})),e}function qy(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return qy(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 Zc(){this.__u=0,this.o=null,this.__b=null}function Fy(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Yo(){this.i=null,this.l=null}function iu(e,t,r){return t.__k==null&&(t.textContent=""),cr(e,t),typeof r=="function"&&r(),e?e.__c:null}function oN(){}function aN(){return this.cancelBubble}function sN(){return this.defaultPrevented}var tu,ky,YR,XR,Ay,Ty,ZR,eN,tN,rN,nN,iN,Cy,My,lN,Py,Oy,Ry,Xo=k(()=>{Qr();Qr();Xc();Xc();tu=sn;(Ey.prototype=new st).isPureReactComponent=!0,Ey.prototype.shouldComponentUpdate=function(e,t){return eu(this.props,e)||eu(this.state,t)};ky=R.__b;R.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ky&&ky(e)};YR=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;XR=R.__e;R.__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)}XR(e,t,r,n)};Ay=R.unmount;R.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ay&&Ay(e)},(Zc.prototype=new st).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Fy(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 l=n.state.__a;n.__v.__k[0]=qy(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Zc.prototype.componentWillUnmount=function(){this.o=[]},Zc.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]=Ly(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Me(Oe,null,e.fallback);return i&&(i.__u&=-33),[Me(Oe,null,t.__a?null:e.children),i]};Ty=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]}};(Yo.prototype=new st).__a=function(e){var t=this,r=Fy(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Ty(t,e,n)):i()};r?r(o):o()}},Yo.prototype.render=function(e){this.i=null,this.l=new Map;var t=ti(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},Yo.prototype.componentDidUpdate=Yo.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Ty(e,r,t)})};ZR=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,eN=/^(?: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]/,tN=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,rN=/[A-Z0-9]/g,nN=typeof document!="undefined",iN=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})}})});Cy=R.event;R.event=function(e){return Cy&&(e=Cy(e)),e.persist=oN,e.isPropagationStopped=aN,e.isDefaultPrevented=sN,e.nativeEvent=e};lN={enumerable:!1,configurable:!0,get:function(){return this.class}},Py=R.vnode;R.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||nN&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||iN(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":tN.test(a)&&(a=l):l=a="oninput":o&&eN.test(a)?a=a.replace(rN,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&i[a=l]&&(a="oninputCapture"),i[a]=s}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=ti(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=ti(r.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",lN)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=ZR,Py&&Py(e)};Oy=R.__r;R.__r=function(e){Oy&&Oy(e),My=e.__c};Ry=R.diffed;R.diffed=function(e){Ry&&Ry(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),My=null}});var au=h(()=>{"use strict";var uN=Q(),ou=de();uN({global:!0,forced:ou.globalThis!==ou},{globalThis:ou})});var Uy=h(()=>{"use strict";au()});var By=h(($z,jy)=>{"use strict";au();jy.exports=de()});var Hy=h((Vz,Jy)=>{"use strict";var dN=By();Jy.exports=dN});var Vy=h((Gz,$y)=>{"use strict";var pN=Hy();$y.exports=pN});var zy=h((zz,Gy)=>{"use strict";Uy();var fN=Vy();Gy.exports=fN});var Ky=h((Wz,Wy)=>{"use strict";Wy.exports=zy()});var Yy=h((Kz,Qy)=>{Qy.exports=Ky()});var Xy=h(()=>{"use strict";var hN=Q(),mN=di();hN({target:"Array",stat:!0},{isArray:mN})});var e_=h((Xz,Zy)=>{"use strict";Xy();var vN=Ot();Zy.exports=vN.Array.isArray});var r_=h((Zz,t_)=>{"use strict";var gN=e_();t_.exports=gN});var i_=h((e6,n_)=>{n_.exports=r_()});var a_=h((t6,o_)=>{"use strict";o_.exports=function(){}});var qr=h((r6,s_)=>{"use strict";s_.exports={}});var su=h((n6,c_)=>{"use strict";var yN=de(),_N=Re(),l_=yN.WeakMap;c_.exports=_N(l_)&&/native code/.test(String(l_))});var Zo=h((i6,d_)=>{"use strict";var bN=Ec(),wN=$o(),u_=bN("keys");d_.exports=function(e){return u_[e]||(u_[e]=wN(e))}});var Si=h((o6,p_)=>{"use strict";p_.exports={}});var Mr=h((a6,m_)=>{"use strict";var IN=su(),h_=de(),SN=Ae(),xN=Dr(),lu=lt(),cu=ai(),EN=Zo(),kN=Si(),f_="Object already initialized",uu=h_.TypeError,AN=h_.WeakMap,ea,xi,ta,TN=function(e){return ta(e)?xi(e):ea(e,{})},CN=function(e){return function(t){var r;if(!SN(t)||(r=xi(t)).type!==e)throw new uu("Incompatible receiver, "+e+" required");return r}};IN||cu.state?(xt=cu.state||(cu.state=new AN),xt.get=xt.get,xt.has=xt.has,xt.set=xt.set,ea=function(e,t){if(xt.has(e))throw new uu(f_);return t.facade=e,xt.set(e,t),t},xi=function(e){return xt.get(e)||{}},ta=function(e){return xt.has(e)}):(Fr=EN("state"),kN[Fr]=!0,ea=function(e,t){if(lu(e,Fr))throw new uu(f_);return t.facade=e,xN(e,Fr,t),t},xi=function(e){return lu(e,Fr)?e[Fr]:{}},ta=function(e){return lu(e,Fr)});var xt,Fr;m_.exports={set:ea,get:xi,has:ta,enforce:TN,getterFor:CN}});var fu=h((s6,g_)=>{"use strict";var du=ze(),PN=lt(),v_=Function.prototype,ON=du&&Object.getOwnPropertyDescriptor,pu=PN(v_,"name"),RN=pu&&(function(){}).name==="something",NN=pu&&(!du||du&&ON(v_,"name").configurable);g_.exports={EXISTS:pu,PROPER:RN,CONFIGURABLE:NN}});var hu=h((l6,y_)=>{"use strict";var DN=ui(),LN=Math.max,qN=Math.min;y_.exports=function(e,t){var r=DN(e);return r<0?LN(r+t,0):qN(r,t)}});var mu=h((c6,b_)=>{"use strict";var FN=ur(),MN=hu(),UN=on(),__=function(e){return function(t,r,n){var i=FN(t),o=UN(i);if(o===0)return!e&&-1;var a=MN(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}};b_.exports={includes:__(!0),indexOf:__(!1)}});var gu=h((u6,I_)=>{"use strict";var jN=ye(),vu=lt(),BN=ur(),JN=mu().indexOf,HN=Si(),w_=jN([].push);I_.exports=function(e,t){var r=BN(e),n=0,i=[],o;for(o in r)!vu(HN,o)&&vu(r,o)&&w_(i,o);for(;t.length>n;)vu(r,o=t[n++])&&(~JN(i,o)||w_(i,o));return i}});var ra=h((d6,S_)=>{"use strict";S_.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var yu=h((p6,x_)=>{"use strict";var $N=gu(),VN=ra();x_.exports=Object.keys||function(t){return $N(t,VN)}});var k_=h(E_=>{"use strict";var GN=ze(),zN=Rc(),WN=Wt(),KN=zt(),QN=ur(),YN=yu();E_.f=GN&&!zN?Object.defineProperties:function(t,r){KN(t);for(var n=QN(r),i=YN(r),o=i.length,a=0,s;o>a;)WN.f(t,s=i[a++],n[s]);return t}});var T_=h((h6,A_)=>{"use strict";var XN=Xr();A_.exports=XN("document","documentElement")});var Ei=h((m6,L_)=>{"use strict";var ZN=zt(),eD=k_(),C_=ra(),tD=Si(),rD=T_(),nD=Cc(),iD=Zo(),P_=">",O_="<",bu="prototype",wu="script",N_=iD("IE_PROTO"),_u=function(){},D_=function(e){return O_+wu+P_+e+O_+"/"+wu+P_},R_=function(e){e.write(D_("")),e.close();var t=e.parentWindow.Object;return e=null,t},oD=function(){var e=nD("iframe"),t="java"+wu+":",r;return e.style.display="none",rD.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(D_("document.F=Object")),r.close(),r.F},na,ia=function(){try{na=new ActiveXObject("htmlfile")}catch(t){}ia=typeof document!="undefined"?document.domain&&na?R_(na):oD():R_(na);for(var e=C_.length;e--;)delete ia[bu][C_[e]];return ia()};tD[N_]=!0;L_.exports=Object.create||function(t,r){var n;return t!==null?(_u[bu]=ZN(t),n=new _u,_u[bu]=null,n[N_]=t):n=ia(),r===void 0?n:eD.f(n,r)}});var F_=h((v6,q_)=>{"use strict";var aD=ue();q_.exports=!aD(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Su=h((g6,U_)=>{"use strict";var sD=lt(),lD=Re(),cD=en(),uD=Zo(),dD=F_(),M_=uD("IE_PROTO"),Iu=Object,pD=Iu.prototype;U_.exports=dD?Iu.getPrototypeOf:function(e){var t=cD(e);if(sD(t,M_))return t[M_];var r=t.constructor;return lD(r)&&t instanceof r?r.prototype:t instanceof Iu?pD:null}});var oa=h((y6,j_)=>{"use strict";var fD=Dr();j_.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:fD(e,t,r),e}});var Au=h((_6,H_)=>{"use strict";var hD=ue(),mD=Re(),vD=Ae(),gD=Ei(),B_=Su(),yD=oa(),_D=Ue(),bD=Zr(),ku=_D("iterator"),J_=!1,Kt,xu,Eu;[].keys&&(Eu=[].keys(),"next"in Eu?(xu=B_(B_(Eu)),xu!==Object.prototype&&(Kt=xu)):J_=!0);var wD=!vD(Kt)||hD(function(){var e={};return Kt[ku].call(e)!==e});wD?Kt={}:bD&&(Kt=gD(Kt));mD(Kt[ku])||yD(Kt,ku,function(){return this});H_.exports={IteratorPrototype:Kt,BUGGY_SAFARI_ITERATORS:J_}});var V_=h((b6,$_)=>{"use strict";var ID=Go(),SD=an();$_.exports=ID?{}.toString:function(){return"[object "+SD(this)+"]"}});var ki=h((w6,z_)=>{"use strict";var xD=Go(),ED=Wt().f,kD=Dr(),AD=lt(),TD=V_(),CD=Ue(),G_=CD("toStringTag");z_.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(AD(i,G_)||ED(i,G_,{configurable:!0,value:t}),n&&!xD&&kD(i,"toString",TD))}});var K_=h((I6,W_)=>{"use strict";var PD=Au().IteratorPrototype,OD=Ei(),RD=ii(),ND=ki(),DD=qr(),LD=function(){return this};W_.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=OD(PD,{next:RD(+!n,r)}),ND(e,i,!1,!0),DD[i]=LD,e}});var Y_=h((S6,Q_)=>{"use strict";var qD=ye(),FD=Nr();Q_.exports=function(e,t,r){try{return qD(FD(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var Z_=h((x6,X_)=>{"use strict";var MD=Ae();X_.exports=function(e){return MD(e)||e===null}});var tb=h((E6,eb)=>{"use strict";var UD=Z_(),jD=String,BD=TypeError;eb.exports=function(e){if(UD(e))return e;throw new BD("Can't set "+jD(e)+" as a prototype")}});var nb=h((k6,rb)=>{"use strict";var JD=Y_(),HD=Ae(),$D=Rr(),VD=tb();rb.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=JD(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return $D(i),VD(o),HD(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var la=h((A6,fb)=>{"use strict";var GD=Q(),zD=It(),aa=Zr(),db=fu(),WD=Re(),KD=K_(),ib=Su(),ob=nb(),QD=ki(),YD=Dr(),Tu=oa(),XD=Ue(),ab=qr(),pb=Au(),ZD=db.PROPER,eL=db.CONFIGURABLE,sb=pb.IteratorPrototype,sa=pb.BUGGY_SAFARI_ITERATORS,Ai=XD("iterator"),lb="keys",Ti="values",cb="entries",ub=function(){return this};fb.exports=function(e,t,r,n,i,o,a){KD(r,t,n);var s=function(v){if(v===i&&p)return p;if(!sa&&v&&v in d)return d[v];switch(v){case lb:return function(){return new r(this,v)};case Ti:return function(){return new r(this,v)};case cb:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[Ai]||d["@@iterator"]||i&&d[i],p=!sa&&u||s(i),f=t==="Array"&&d.entries||u,m,g,_;if(f&&(m=ib(f.call(new e)),m!==Object.prototype&&m.next&&(!aa&&ib(m)!==sb&&(ob?ob(m,sb):WD(m[Ai])||Tu(m,Ai,ub)),QD(m,l,!0,!0),aa&&(ab[l]=ub))),ZD&&i===Ti&&u&&u.name!==Ti&&(!aa&&eL?YD(d,"name",Ti):(c=!0,p=function(){return zD(u,this)})),i)if(g={values:s(Ti),keys:o?p:s(lb),entries:s(cb)},a)for(_ in g)(sa||c||!(_ in d))&&Tu(d,_,g[_]);else GD({target:t,proto:!0,forced:sa||c},g);return(!aa||a)&&d[Ai]!==p&&Tu(d,Ai,p,{name:i}),ab[t]=p,g}});var ca=h((T6,hb)=>{"use strict";hb.exports=function(e,t){return{value:e,done:t}}});var da=h((C6,_b)=>{"use strict";var tL=ur(),Cu=a_(),mb=qr(),gb=Mr(),rL=Wt().f,nL=la(),ua=ca(),iL=Zr(),oL=ze(),yb="Array Iterator",aL=gb.set,sL=gb.getterFor(yb);_b.exports=nL(Array,"Array",function(e,t){aL(this,{type:yb,target:tL(e),index:0,kind:t})},function(){var e=sL(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,ua(void 0,!0);switch(e.kind){case"keys":return ua(r,!1);case"values":return ua(t[r],!1)}return ua([r,t[r]],!1)},"values");var vb=mb.Arguments=mb.Array;Cu("keys");Cu("values");Cu("entries");if(!iL&&oL&&vb.name!=="values")try{rL(vb,"name",{value:"values"})}catch(e){}});var Pu=h(()=>{});var Ou=h((R6,bb)=>{"use strict";var lL=ue();bb.exports=!lL(function(){return Object.isExtensible(Object.preventExtensions({}))})});var pa=h((N6,wb)=>{"use strict";var cL=oa();wb.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:cL(e,n,t[n],r);return e}});var Ru=h(Ib=>{"use strict";var uL=gu(),dL=ra(),pL=dL.concat("length","prototype");Ib.f=Object.getOwnPropertyNames||function(t){return uL(t,pL)}});var kb=h((L6,Eb)=>{"use strict";var fL=Gt(),hL=ur(),Sb=Ru().f,mL=gi(),xb=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vL=function(e){try{return Sb(e)}catch(t){return mL(xb)}};Eb.exports.f=function(t){return xb&&fL(t)==="Window"?vL(t):Sb(hL(t))}});var Tb=h((q6,Ab)=>{"use strict";var gL=ue();Ab.exports=gL(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var Ob=h((F6,Pb)=>{"use strict";var yL=ue(),_L=Ae(),bL=Gt(),Cb=Tb(),fa=Object.isExtensible,wL=yL(function(){fa(1)});Pb.exports=wL||Cb?function(t){return!_L(t)||Cb&&bL(t)==="ArrayBuffer"?!1:fa?fa(t):!0}:fa});var Ci=h((M6,Db)=>{"use strict";var IL=Q(),SL=ye(),xL=Si(),EL=Ae(),Nu=lt(),kL=Wt().f,Rb=Ru(),AL=kb(),Du=Ob(),TL=$o(),CL=Ou(),Nb=!1,Qt=TL("meta"),PL=0,Lu=function(e){kL(e,Qt,{value:{objectID:"O"+PL++,weakData:{}}})},OL=function(e,t){if(!EL(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Nu(e,Qt)){if(!Du(e))return"F";if(!t)return"E";Lu(e)}return e[Qt].objectID},RL=function(e,t){if(!Nu(e,Qt)){if(!Du(e))return!0;if(!t)return!1;Lu(e)}return e[Qt].weakData},NL=function(e){return CL&&Nb&&Du(e)&&!Nu(e,Qt)&&Lu(e),e},DL=function(){LL.enable=function(){},Nb=!0;var e=Rb.f,t=SL([].splice),r={};r[Qt]=1,e(r).length&&(Rb.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Qt){t(i,o,1);break}return i},IL({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:AL.f}))},LL=Db.exports={enable:DL,fastKey:OL,getWeakData:RL,onFreeze:NL};xL[Qt]=!0});var qb=h((U6,Lb)=>{"use strict";var qL=Ue(),FL=qr(),ML=qL("iterator"),UL=Array.prototype;Lb.exports=function(e){return e!==void 0&&(FL.Array===e||UL[ML]===e)}});var qu=h((j6,Mb)=>{"use strict";var jL=an(),Fb=Ho(),BL=Or(),JL=qr(),HL=Ue(),$L=HL("iterator");Mb.exports=function(e){if(!BL(e))return Fb(e,$L)||Fb(e,"@@iterator")||JL[jL(e)]}});var jb=h((B6,Ub)=>{"use strict";var VL=It(),GL=Nr(),zL=zt(),WL=oi(),KL=qu(),QL=TypeError;Ub.exports=function(e,t){var r=arguments.length<2?KL(e):t;if(GL(r))return zL(VL(r,e));throw new QL(WL(e)+" is not iterable")}});var ha=h((J6,Jb)=>{"use strict";var YL=It(),Bb=zt(),XL=Ho();Jb.exports=function(e,t,r){var n,i;Bb(e);try{if(n=XL(e,"return"),!n){if(t==="throw")throw r;return r}n=YL(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return Bb(n),r}});var va=h((H6,Gb)=>{"use strict";var ZL=li(),eq=It(),tq=zt(),rq=oi(),nq=qb(),iq=on(),Hb=Ge(),oq=jb(),aq=qu(),$b=ha(),sq=TypeError,ma=function(e,t){this.stopped=e,this.result=t},Vb=ma.prototype;Gb.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),l=ZL(t,n),c,d,u,p,f,m,g,_=function(b){return c&&$b(c,"normal",b),new ma(!0,b)},v=function(b){return i?(tq(b),s?l(b[0],b[1],_):l(b[0],b[1])):s?l(b,_):l(b)};if(o)c=e.iterator;else if(a)c=e;else{if(d=aq(e),!d)throw new sq(rq(e)+" is not iterable");if(nq(d)){for(u=0,p=iq(e);p>u;u++)if(f=v(e[u]),f&&Hb(Vb,f))return f;return new ma(!1)}c=oq(e,d)}for(m=o?e.next:c.next;!(g=eq(m,c)).done;){try{f=v(g.value)}catch(b){$b(c,"throw",b)}if(typeof f=="object"&&f&&Hb(Vb,f))return f}return new ma(!1)}});var ga=h(($6,zb)=>{"use strict";var lq=Ge(),cq=TypeError;zb.exports=function(e,t){if(lq(t,e))return e;throw new cq("Incorrect invocation")}});var Fu=h((V6,Kb)=>{"use strict";var uq=Q(),dq=de(),pq=Ci(),fq=ue(),hq=Dr(),mq=va(),vq=ga(),gq=Re(),yq=Ae(),_q=Or(),bq=ki(),wq=Wt().f,Iq=pr().forEach,Sq=ze(),Wb=Mr(),xq=Wb.set,Eq=Wb.getterFor;Kb.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=dq[e],s=a&&a.prototype,l={},c;if(!Sq||!gq(a)||!(i||s.forEach&&!fq(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),pq.enable();else{c=t(function(p,f){xq(vq(p,d),{type:e,collection:new a}),_q(f)||mq(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=Eq(e);Iq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&hq(d,p,function(m,g){var _=u(this).collection;if(!f&&i&&!yq(m))return p==="get"?void 0:!1;var v=_[p](m===0?0:m,g);return f?this:v})}),i||wq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return bq(c,e,!1,!0),l[e]=c,uq({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var rw=h((G6,tw)=>{"use strict";var kq=ye(),Qb=pa(),ya=Ci().getWeakData,Aq=ga(),Tq=zt(),Cq=Or(),Mu=Ae(),Pq=va(),Xb=pr(),Yb=lt(),Zb=Mr(),Oq=Zb.set,Rq=Zb.getterFor,Nq=Xb.find,Dq=Xb.findIndex,Lq=kq([].splice),qq=0,_a=function(e){return e.frozen||(e.frozen=new ew)},ew=function(){this.entries=[]},Uu=function(e,t){return Nq(e.entries,function(r){return r[0]===t})};ew.prototype={get:function(e){var t=Uu(this,e);if(t)return t[1]},has:function(e){return!!Uu(this,e)},set:function(e,t){var r=Uu(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Dq(this.entries,function(r){return r[0]===e});return~t&&Lq(this.entries,t,1),!!~t}};tw.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){Aq(l,o),Oq(l,{type:t,id:qq++,frozen:null}),Cq(c)||Pq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Rq(t),s=function(l,c,d){var u=a(l),p=ya(Tq(c),!0);return p===!0?_a(u).set(c,d):p[u.id]=d,l};return Qb(o,{delete:function(l){var c=a(this);if(!Mu(l))return!1;var d=ya(l);return d===!0?_a(c).delete(l):d&&Yb(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!Mu(c))return!1;var u=ya(c);return u===!0?_a(d).has(c):u&&Yb(u,d.id)}}),Qb(o,r?{get:function(c){var d=a(this);if(Mu(c)){var u=ya(c);if(u===!0)return _a(d).get(c);if(u)return u[d.id]}},set:function(c,d){return s(this,c,d)}}:{add:function(c){return s(this,c,!0)}}),i}}});var uw=h(()=>{"use strict";var Fq=Ou(),nw=de(),Sa=ye(),iw=pa(),Mq=Ci(),Uq=Fu(),ow=rw(),ba=Ae(),wa=Mr().enforce,jq=ue(),Bq=su(),Ri=Object,Jq=Array.isArray,Ia=Ri.isExtensible,aw=Ri.isFrozen,Hq=Ri.isSealed,sw=Ri.freeze,$q=Ri.seal,Vq=!nw.ActiveXObject&&"ActiveXObject"in nw,Pi,lw=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},cw=Uq("WeakMap",lw,ow),un=cw.prototype,xa=Sa(un.set),Gq=function(){return Fq&&jq(function(){var e=sw([]);return xa(new cw,e,1),!aw(e)})};Bq&&(Vq?(Pi=ow.getConstructor(lw,"WeakMap",!0),Mq.enable(),ju=Sa(un.delete),Oi=Sa(un.has),Bu=Sa(un.get),iw(un,{delete:function(e){if(ba(e)&&!Ia(e)){var t=wa(this);return t.frozen||(t.frozen=new Pi),ju(this,e)||t.frozen.delete(e)}return ju(this,e)},has:function(t){if(ba(t)&&!Ia(t)){var r=wa(this);return r.frozen||(r.frozen=new Pi),Oi(this,t)||r.frozen.has(t)}return Oi(this,t)},get:function(t){if(ba(t)&&!Ia(t)){var r=wa(this);return r.frozen||(r.frozen=new Pi),Oi(this,t)?Bu(this,t):r.frozen.get(t)}return Bu(this,t)},set:function(t,r){if(ba(t)&&!Ia(t)){var n=wa(this);n.frozen||(n.frozen=new Pi),Oi(this,t)?xa(this,t,r):n.frozen.set(t,r)}else xa(this,t,r);return this}})):Gq()&&iw(un,{set:function(t,r){var n;return Jq(t)&&(aw(t)?n=sw:Hq(t)&&(n=$q)),xa(this,t,r),n&&n(t),this}}));var ju,Oi,Bu});var dw=h(()=>{"use strict";uw()});var fw=h((Y6,pw)=>{"use strict";da();Pu();dw();var zq=Ot();pw.exports=zq.WeakMap});var mw=h((X6,hw)=>{"use strict";hw.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 Ju=h(()=>{"use strict";da();var Wq=mw(),Kq=de(),Qq=ki(),vw=qr();for(Ea in Wq)Qq(Kq[Ea],Ea),vw[Ea]=vw.Array;var Ea});var yw=h((tW,gw)=>{"use strict";var Yq=fw();Ju();gw.exports=Yq});var bw=h((rW,_w)=>{_w.exports=yw()});var Iw=h(()=>{"use strict";var Xq=Q(),Zq=ni(),eF=mu().indexOf,tF=hi(),Hu=Zq([].indexOf),ww=!!Hu&&1/Hu([1],1,-0)<0,rF=ww||!tF("indexOf");Xq({target:"Array",proto:!0,forced:rF},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return ww?Hu(this,t,r)||0:eF(this,t,r)}})});var xw=h((oW,Sw)=>{"use strict";Iw();var nF=yt();Sw.exports=nF("Array","indexOf")});var kw=h((aW,Ew)=>{"use strict";var iF=Ge(),oF=xw(),$u=Array.prototype;Ew.exports=function(e){var t=e.indexOf;return e===$u||iF($u,e)&&t===$u.indexOf?oF:t}});var Tw=h((sW,Aw)=>{"use strict";var aF=kw();Aw.exports=aF});var Pw=h((lW,Cw)=>{Cw.exports=Tw()});var Ow=h(()=>{"use strict";var sF=Q(),lF=pr().map,cF=fi(),uF=cF("map");sF({target:"Array",proto:!0,forced:!uF},{map:function(t){return lF(this,t,arguments.length>1?arguments[1]:void 0)}})});var Nw=h((dW,Rw)=>{"use strict";Ow();var dF=yt();Rw.exports=dF("Array","map")});var Lw=h((pW,Dw)=>{"use strict";var pF=Ge(),fF=Nw(),Vu=Array.prototype;Dw.exports=function(e){var t=e.map;return e===Vu||pF(Vu,e)&&t===Vu.map?fF:t}});var Fw=h((fW,qw)=>{"use strict";var hF=Lw();qw.exports=hF});var Uw=h((hW,Mw)=>{Mw.exports=Fw()});var jw=h(()=>{"use strict";var mF=Q(),vF=ze(),gF=Ei();mF({target:"Object",stat:!0,sham:!vF},{create:gF})});var Jw=h((gW,Bw)=>{"use strict";jw();var yF=Ot(),_F=yF.Object;Bw.exports=function(t,r){return _F.create(t,r)}});var $w=h((yW,Hw)=>{"use strict";var bF=Jw();Hw.exports=bF});var Gw=h((_W,Vw)=>{Vw.exports=$w()});var Gu=h((bW,zw)=>{"use strict";var wF=Wt();zw.exports=function(e,t,r){return wF.f(e,t,r)}});var Qw=h((wW,Kw)=>{"use strict";var IF=Xr(),SF=Gu(),xF=Ue(),EF=ze(),Ww=xF("species");Kw.exports=function(e){var t=IF(e);EF&&t&&!t[Ww]&&SF(t,Ww,{configurable:!0,get:function(){return this}})}});var n0=h((IW,r0)=>{"use strict";var Yw=Ei(),kF=Gu(),Xw=pa(),AF=li(),TF=ga(),CF=Or(),PF=va(),OF=la(),ka=ca(),RF=Qw(),Ni=ze(),Zw=Ci().fastKey,t0=Mr(),e0=t0.set,zu=t0.getterFor;r0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){TF(c,o),e0(c,{type:t,index:Yw(null),first:null,last:null,size:0}),Ni||(c.size=0),CF(d)||PF(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=zu(t),s=function(c,d,u){var p=a(c),f=l(c,d),m,g;return f?f.value=u:(p.last=f={index:g=Zw(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Ni?p.size++:c.size++,g!=="F"&&(p.index[g]=f)),c},l=function(c,d){var u=a(c),p=Zw(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return Xw(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=Yw(null),Ni?u.size=0:d.size=0},delete:function(c){var d=this,u=a(d),p=l(d,c);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),Ni?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=AF(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!!l(this,d)}}),Xw(o,r?{get:function(d){var u=l(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)}}),Ni&&kF(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=zu(t),o=zu(n);OF(e,t,function(a,s){e0(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=null,ka(void 0,!0)):ka(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),RF(t)}}});var i0=h(()=>{"use strict";var NF=Fu(),DF=n0();NF("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},DF)});var o0=h(()=>{"use strict";i0()});var fr=h((AW,a0)=>{"use strict";var LF=oi(),qF=TypeError;a0.exports=function(e){if(typeof e=="object"&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new qF(LF(e)+" is not a set")}});var l0=h((TW,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 hr=h((CW,u0)=>{"use strict";var FF=Xr(),Wu=l0(),c0=FF("Set"),MF=c0.prototype;u0.exports={Set:c0,add:Wu("add",1),has:Wu("has",1),remove:Wu("delete",1),proto:MF}});var mr=h((PW,d0)=>{"use strict";var UF=It();d0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=UF(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var dn=h((OW,p0)=>{"use strict";var jF=mr();p0.exports=function(e,t,r){return r?jF(e.keys(),t,!0):e.forEach(t)}});var Aa=h((RW,h0)=>{"use strict";var f0=hr(),BF=dn(),JF=f0.Set,HF=f0.add;h0.exports=function(e){var t=new JF;return BF(e,function(r){HF(t,r)}),t}});var pn=h((NW,m0)=>{"use strict";m0.exports=function(e){return e.size}});var g0=h((DW,v0)=>{"use strict";v0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var vr=h((LW,S0)=>{"use strict";var y0=Nr(),w0=zt(),_0=It(),$F=ui(),VF=g0(),b0="Invalid size",GF=RangeError,zF=TypeError,WF=Math.max,I0=function(e,t){this.set=e,this.size=WF(t,0),this.has=y0(e.has),this.keys=y0(e.keys)};I0.prototype={getIterator:function(){return VF(w0(_0(this.keys,this.set)))},includes:function(e){return _0(this.has,this.set,e)}};S0.exports=function(e){w0(e);var t=+e.size;if(t!==t)throw new zF(b0);var r=$F(t);if(r<0)throw new GF(b0);return new I0(e,r)}});var A0=h((qW,k0)=>{"use strict";var KF=fr(),E0=hr(),QF=Aa(),YF=pn(),XF=vr(),ZF=dn(),eM=mr(),tM=E0.has,x0=E0.remove;k0.exports=function(t){var r=KF(this),n=XF(t),i=QF(r);return YF(r)<=n.size?ZF(r,function(o){n.includes(o)&&x0(i,o)}):eM(n.getIterator(),function(o){tM(r,o)&&x0(i,o)}),i}});var gr=h((FW,T0)=>{"use strict";T0.exports=function(){return!1}});var C0=h(()=>{"use strict";var rM=Q(),nM=A0(),iM=gr(),oM=!iM("difference",function(e){return e.size===0});rM({target:"Set",proto:!0,real:!0,forced:oM},{difference:nM})});var R0=h((jW,O0)=>{"use strict";var aM=fr(),Ku=hr(),sM=pn(),lM=vr(),cM=dn(),uM=mr(),dM=Ku.Set,P0=Ku.add,pM=Ku.has;O0.exports=function(t){var r=aM(this),n=lM(t),i=new dM;return sM(r)>n.size?uM(n.getIterator(),function(o){pM(r,o)&&P0(i,o)}):cM(r,function(o){n.includes(o)&&P0(i,o)}),i}});var N0=h(()=>{"use strict";var fM=Q(),hM=ue(),mM=R0(),vM=gr(),gM=!vM("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||hM(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});fM({target:"Set",proto:!0,real:!0,forced:gM},{intersection:mM})});var L0=h((HW,D0)=>{"use strict";var yM=fr(),_M=hr().has,bM=pn(),wM=vr(),IM=dn(),SM=mr(),xM=ha();D0.exports=function(t){var r=yM(this),n=wM(t);if(bM(r)<=n.size)return IM(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return SM(i,function(o){if(_M(r,o))return xM(i,"normal",!1)})!==!1}});var q0=h(()=>{"use strict";var EM=Q(),kM=L0(),AM=gr(),TM=!AM("isDisjointFrom",function(e){return!e});EM({target:"Set",proto:!0,real:!0,forced:TM},{isDisjointFrom:kM})});var M0=h((GW,F0)=>{"use strict";var CM=fr(),PM=pn(),OM=dn(),RM=vr();F0.exports=function(t){var r=CM(this),n=RM(t);return PM(r)>n.size?!1:OM(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var U0=h(()=>{"use strict";var NM=Q(),DM=M0(),LM=gr(),qM=!LM("isSubsetOf",function(e){return e});NM({target:"Set",proto:!0,real:!0,forced:qM},{isSubsetOf:DM})});var B0=h((KW,j0)=>{"use strict";var FM=fr(),MM=hr().has,UM=pn(),jM=vr(),BM=mr(),JM=ha();j0.exports=function(t){var r=FM(this),n=jM(t);if(UM(r)<n.size)return!1;var i=n.getIterator();return BM(i,function(o){if(!MM(r,o))return JM(i,"normal",!1)})!==!1}});var J0=h(()=>{"use strict";var HM=Q(),$M=B0(),VM=gr(),GM=!VM("isSupersetOf",function(e){return!e});HM({target:"Set",proto:!0,real:!0,forced:GM},{isSupersetOf:$M})});var $0=h((XW,H0)=>{"use strict";var zM=fr(),Qu=hr(),WM=Aa(),KM=vr(),QM=mr(),YM=Qu.add,XM=Qu.has,ZM=Qu.remove;H0.exports=function(t){var r=zM(this),n=KM(t).getIterator(),i=WM(r);return QM(n,function(o){XM(r,o)?ZM(i,o):YM(i,o)}),i}});var V0=h(()=>{"use strict";var eU=Q(),tU=$0(),rU=gr();eU({target:"Set",proto:!0,real:!0,forced:!rU("symmetricDifference")},{symmetricDifference:tU})});var z0=h((t8,G0)=>{"use strict";var nU=fr(),iU=hr().add,oU=Aa(),aU=vr(),sU=mr();G0.exports=function(t){var r=nU(this),n=aU(t).getIterator(),i=oU(r);return sU(n,function(o){iU(i,o)}),i}});var W0=h(()=>{"use strict";var lU=Q(),cU=z0(),uU=gr();lU({target:"Set",proto:!0,real:!0,forced:!uU("union")},{union:cU})});var Di=h((i8,K0)=>{"use strict";var dU=an(),pU=String;K0.exports=function(e){if(dU(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return pU(e)}});var Z0=h((o8,X0)=>{"use strict";var Yu=ye(),fU=ui(),hU=Di(),mU=Rr(),vU=Yu("".charAt),Q0=Yu("".charCodeAt),gU=Yu("".slice),Y0=function(e){return function(t,r){var n=hU(mU(t)),i=fU(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=Q0(n,i),a<55296||a>56319||i+1===o||(s=Q0(n,i+1))<56320||s>57343?e?vU(n,i):a:e?gU(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};X0.exports={codeAt:Y0(!1),charAt:Y0(!0)}});var nI=h(()=>{"use strict";var yU=Z0().charAt,_U=Di(),tI=Mr(),bU=la(),eI=ca(),rI="String Iterator",wU=tI.set,IU=tI.getterFor(rI);bU(String,"String",function(e){wU(this,{type:rI,string:_U(e),index:0})},function(){var t=IU(this),r=t.string,n=t.index,i;return n>=r.length?eI(void 0,!0):(i=yU(r,n),t.index+=i.length,eI(i,!1))})});var oI=h((l8,iI)=>{"use strict";da();Pu();o0();C0();N0();q0();U0();J0();V0();W0();nI();var SU=Ot();iI.exports=SU.Set});var sI=h((c8,aI)=>{"use strict";var xU=oI();Ju();aI.exports=xU});var cI=h((u8,lI)=>{lI.exports=sI()});var dI=h(uI=>{"use strict";uI.f=Object.getOwnPropertySymbols});var mI=h((p8,hI)=>{"use strict";var pI=ze(),EU=ye(),kU=It(),AU=ue(),Xu=yu(),TU=dI(),CU=hc(),PU=en(),OU=Uo(),fn=Object.assign,fI=Object.defineProperty,RU=EU([].concat);hI.exports=!fn||AU(function(){if(pI&&fn({b:1},fn(fI({},"a",{enumerable:!0,get:function(){fI(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}),fn({},e)[r]!==7||Xu(fn({},t)).join("")!==n})?function(t,r){for(var n=PU(t),i=arguments.length,o=1,a=TU.f,s=CU.f;i>o;)for(var l=OU(arguments[o++]),c=a?RU(Xu(l),a(l)):Xu(l),d=c.length,u=0,p;d>u;)p=c[u++],(!pI||kU(s,l,p))&&(n[p]=l[p]);return n}:fn});var gI=h(()=>{"use strict";var NU=Q(),vI=mI();NU({target:"Object",stat:!0,arity:2,forced:Object.assign!==vI},{assign:vI})});var _I=h((m8,yI)=>{"use strict";gI();var DU=Ot();yI.exports=DU.Object.assign});var wI=h((v8,bI)=>{"use strict";var LU=_I();bI.exports=LU});var SI=h((g8,II)=>{II.exports=wI()});var Zu=h((y8,xI)=>{"use strict";xI.exports=`
|
|
20
|
-
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var AI=h((_8,kI)=>{"use strict";var qU=ye(),FU=Rr(),MU=Di(),td=Zu(),EI=qU("".replace),UU=RegExp("^["+td+"]+"),jU=RegExp("(^|[^"+td+"])["+td+"]+$"),ed=function(e){return function(t){var r=MU(FU(t));return e&1&&(r=EI(r,UU,"")),e&2&&(r=EI(r,jU,"$1")),r}};kI.exports={start:ed(1),end:ed(2),trim:ed(3)}});var OI=h((b8,PI)=>{"use strict";var BU=fu().PROPER,JU=ue(),TI=Zu(),CI="\u200B\x85\u180E";PI.exports=function(e){return JU(function(){return!!TI[e]()||CI[e]()!==CI||BU&&TI[e].name!==e})}});var RI=h(()=>{"use strict";var HU=Q(),$U=AI().trim,VU=OI();HU({target:"String",proto:!0,forced:VU("trim")},{trim:function(){return $U(this)}})});var DI=h((S8,NI)=>{"use strict";RI();var GU=yt();NI.exports=GU("String","trim")});var qI=h((x8,LI)=>{"use strict";var zU=Ge(),WU=DI(),rd=String.prototype;LI.exports=function(e){var t=e.trim;return typeof e=="string"||e===rd||zU(rd,e)&&t===rd.trim?WU:t}});var MI=h((E8,FI)=>{"use strict";var KU=qI();FI.exports=KU});var jI=h((k8,UI)=>{UI.exports=MI()});var HI=h(()=>{"use strict";var QU=Q(),BI=di(),YU=jc(),XU=Ae(),JI=hu(),ZU=on(),ej=ur(),tj=Vc(),rj=Ue(),nj=fi(),ij=gi(),oj=nj("slice"),aj=rj("species"),nd=Array,sj=Math.max;QU({target:"Array",proto:!0,forced:!oj},{slice:function(t,r){var n=ej(this),i=ZU(n),o=JI(t,i),a=JI(r===void 0?i:r,i),s,l,c;if(BI(n)&&(s=n.constructor,YU(s)&&(s===nd||BI(s.prototype))?s=void 0:XU(s)&&(s=s[aj],s===null&&(s=void 0)),s===nd||s===void 0))return ij(n,o,a);for(l=new(s===void 0?nd:s)(sj(a-o,0)),c=0;o<a;o++,c++)o in n&&tj(l,c,n[o]);return l.length=c,l}})});var VI=h((C8,$I)=>{"use strict";HI();var lj=yt();$I.exports=lj("Array","slice")});var zI=h((P8,GI)=>{"use strict";var cj=Ge(),uj=VI(),id=Array.prototype;GI.exports=function(e){var t=e.slice;return e===id||cj(id,e)&&t===id.slice?uj:t}});var KI=h((O8,WI)=>{"use strict";var dj=zI();WI.exports=dj});var YI=h((R8,QI)=>{QI.exports=KI()});var od=k(()=>{});var ZI=h((D8,XI)=>{"use strict";var pj=Ae(),fj=Gt(),hj=Ue(),mj=hj("match");XI.exports=function(e){var t;return pj(e)&&((t=e[mj])!==void 0?!!t:fj(e)==="RegExp")}});var tS=h((L8,eS)=>{"use strict";var vj=ZI(),gj=TypeError;eS.exports=function(e){if(vj(e))throw new gj("The method doesn't accept regular expressions");return e}});var nS=h((q8,rS)=>{"use strict";var yj=Ue(),_j=yj("match");rS.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[_j]=!1,"/./"[e](t)}catch(n){}}return!1}});var aS=h(()=>{"use strict";var bj=Q(),wj=ni(),Ij=Oc().f,Sj=Fc(),iS=Di(),xj=tS(),Ej=Rr(),kj=nS(),Aj=Zr(),Tj=wj("".slice),Cj=Math.min,oS=kj("startsWith"),Pj=!Aj&&!oS&&!!function(){var e=Ij(String.prototype,"startsWith");return e&&!e.writable}();bj({target:"String",proto:!0,forced:!Pj&&!oS},{startsWith:function(t){var r=iS(Ej(this));xj(t);var n=Sj(Cj(arguments.length>1?arguments[1]:void 0,r.length)),i=iS(t);return Tj(r,n,n+i.length)===i}})});var lS=h((U8,sS)=>{"use strict";aS();var Oj=yt();sS.exports=Oj("String","startsWith")});var uS=h((j8,cS)=>{"use strict";var Rj=Ge(),Nj=lS(),ad=String.prototype;cS.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===ad||Rj(ad,e)&&t===ad.startsWith?Nj:t}});var pS=h((B8,dS)=>{"use strict";var Dj=uS();dS.exports=Dj});var hS=h((J8,fS)=>{fS.exports=pS()});var _S=h((H8,yS)=>{"use strict";var vS=ye(),Lj=Nr(),qj=Ae(),Fj=lt(),mS=gi(),Mj=Yr(),gS=Function,Uj=vS([].concat),jj=vS([].join),sd={},Bj=function(e,t,r){if(!Fj(sd,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";sd[t]=gS("C,a","return new C("+jj(n,",")+")")}return sd[t](e,r)};yS.exports=Mj?gS.bind:function(t){var r=Lj(this),n=r.prototype,i=mS(arguments,1),o=function(){var s=Uj(i,mS(arguments));return this instanceof o?Bj(r,s.length,s):r.apply(t,s)};return qj(n)&&(o.prototype=n),o}});var wS=h(()=>{"use strict";var Jj=Q(),bS=_S();Jj({target:"Function",proto:!0,forced:Function.bind!==bS},{bind:bS})});var SS=h((G8,IS)=>{"use strict";wS();var Hj=yt();IS.exports=Hj("Function","bind")});var ES=h((z8,xS)=>{"use strict";var $j=Ge(),Vj=SS(),ld=Function.prototype;xS.exports=function(e){var t=e.bind;return e===ld||$j(ld,e)&&t===ld.bind?Vj:t}});var AS=h((W8,kS)=>{"use strict";var Gj=ES();kS.exports=Gj});var CS=h((K8,TS)=>{TS.exports=AS()});function za(e,t){_e.__h&&_e.__h(le,e,Bi||t),Bi=0;var r=le.__H||(le.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Mt(e){return Bi=1,zj(gx,e)}function zj(e,t,r){var n=za(yn++,2);if(n.t=e,!n.__c&&(n.__=[gx(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=le,!le.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,Cd.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,px.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,l,c);var p=n.__c.props!==s;return(0,Te.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,l,c)||p};le.__f=!0;var o=le.shouldComponentUpdate,a=le.componentWillUpdate;le.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},le.shouldComponentUpdate=i}return n.__N||n.__}function jr(e,t){var r=za(yn++,3);!_e.__s&&vx(r.__H,t)&&(r.__=e,r.u=t,le.__H.__h.push(r))}function Fi(e){return Bi=5,Dd(function(){return{current:e}},[])}function Dd(e,t){var r=za(yn++,7);return vx(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function _t(e,t){return Bi=8,Dd(function(){return e},t)}function Wj(e){var t=le.context[e.__c],r=za(yn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(le)),t.props.value):e.__}function Kj(){for(var e;e=mx.shift();)if(e.__P&&e.__H)try{var t,r;(0,Te.default)(t=e.__H.__h).call(t,Ra),(0,Te.default)(r=e.__H.__h).call(r,gd),e.__H.__h=[]}catch(n){e.__H.__h=[],_e.__e(n,e.__v)}}function Qj(e){var t,r=function(){clearTimeout(n),FS&&cancelAnimationFrame(t),(0,Ft.default)(e)},n=(0,Ft.default)(r,100);FS&&(t=requestAnimationFrame(r))}function Ra(e){var t=le,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),le=t}function gd(e){var t=le;e.__c=e.__(),le=t}function vx(e,t){return!e||e.length!==t.length||(0,ja.default)(t).call(t,function(r,n){return r!==e[n]})}function gx(e,t){return typeof t=="function"?t(e):t}function Yj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yd(){throw new Error("setTimeout has not been defined")}function _d(){throw new Error("clearTimeout has not been defined")}function _x(e){if(Rt===Ft.default)return(0,Ft.default)(e,0);if((Rt===yd||!Rt)&&Ft.default)return Rt=Ft.default,(0,Ft.default)(e,0);try{return Rt(e,0)}catch(t){try{return Rt.call(null,e,0)}catch(r){return Rt.call(this,e,0)}}}function Xj(e){if(Nt===clearTimeout)return clearTimeout(e);if((Nt===_d||!Nt)&&clearTimeout)return Nt=clearTimeout,clearTimeout(e);try{return Nt(e)}catch(t){try{return Nt.call(null,e)}catch(r){return Nt.call(this,e)}}}function Zj(){!mn||!yr||(mn=!1,yr.length?Yt=(0,Ga.default)(yr).call(yr,Yt):Na=-1,Yt.length&&bx())}function bx(){if(!mn){var e=_x(Zj);mn=!0;for(var t=Yt.length;t;){for(yr=Yt,Yt=[];++Na<t;)yr&&yr[Na].run();Na=-1,t=Yt.length}yr=null,mn=!1,Xj(e)}}function wx(e,t){this.fun=e,this.array=t}function Zt(){}function r2(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 n2(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 s2(e,t){return Ne(e,0)^45?(((t<<2^Ne(e,0))<<2^Ne(e,1))<<2^Ne(e,2))<<2^Ne(e,3):0}function xx(e){return(0,Rd.default)(e).call(e)}function l2(e,t){return(e=t.exec(e))?e[0]:e}function z(e,t,r){return e.replace(t,r)}function bd(e,t){return(0,Xt.default)(e).call(e,t)}function Ne(e,t){return e.charCodeAt(t)|0}function Ji(e,t,r){return(0,Nd.default)(e).call(e,t,r)}function Dt(e){return e.length}function Md(e){return e.length}function Ta(e,t){return t.push(e),e}function c2(e,t){return(0,ji.default)(e).call(e,t).join("")}function Qa(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ka,column:_n,length:a,return:""}}function Li(e,t){return a2(Qa("",null,null,"",null,null,0),e,{length:-e.length},t)}function u2(){return be}function d2(){return be=Ze>0?Ne(wn,--Ze):0,_n--,be===10&&(_n=1,Ka--),be}function ct(){return be=Ze<Ex?Ne(wn,Ze++):0,_n++,be===10&&(_n=1,Ka++),be}function Ut(){return Ne(wn,Ze)}function Da(){return Ze}function Wi(e,t){return Ji(wn,e,t)}function Hi(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 kx(e){return Ka=_n=1,Ex=Dt(wn=e),Ze=0,[]}function Ax(e){return wn="",e}function La(e){return xx(Wi(Ze-1,wd(e===91?e+2:e===40?e+1:e)))}function p2(e){for(;(be=Ut())&&be<33;)ct();return Hi(e)>2||Hi(be)>3?"":" "}function f2(e,t){for(;--t&&ct()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Wi(e,Da()+(t<6&&Ut()==32&&ct()==32))}function wd(e){for(;ct();)switch(be){case e:return Ze;case 34:case 39:e!==34&&e!==39&&wd(be);break;case 40:e===41&&wd(e);break;case 92:ct();break}return Ze}function h2(e,t){for(;ct()&&e+be!==57&&!(e+be===84&&Ut()===47););return"/*"+Wi(t,Ze-1)+"*"+Wa(e===47?e:ct())}function m2(e){for(;!Hi(Ut());)ct();return Wi(e,Ze)}function v2(e){return Ax(qa("",null,null,null,[""],e=kx(e),0,[0],e))}function qa(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,P=o,O=n,E=I;_;)switch(m=b,b=ct()){case 40:if(m!=108&&Ne(E,u-1)==58){bd(E+=z(La(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=La(b);break;case 9:case 10:case 13:case 32:E+=p2(m);break;case 92:E+=f2(Da()-1,7);continue;case 47:switch(Ut()){case 42:case 47:Ta(g2(h2(ct(),Da()),t,r),l);break;default:E+="/"}break;case 123*g:s[c++]=Dt(E)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:f>0&&Dt(E)-u&&Ta(f>32?US(E+";",n,r,u-1):US(z(E," ","")+";",n,r,u-2),l);break;case 59:E+=";";default:if(Ta(O=MS(E,t,r,c,d,i,s,I,A=[],P=[],u),o),b===123)if(d===0)qa(E,t,O,O,A,o,u,s,P);else switch(p===99&&Ne(E,3)===110?100:p){case 100:case 109:case 115:qa(e,O,O,n&&Ta(MS(e,O,O,0,0,i,s,I,i,A=[],u),P),i,P,u,s,n?A:P);break;default:qa(E,O,O,O,[""],P,0,s,P)}}c=d=f=0,g=v=1,I=E="",u=a;break;case 58:u=1+Dt(E),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&d2()==125)continue}switch(E+=Wa(b),b*g){case 38:v=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(Dt(E)-1)*v,v=1;break;case 64:Ut()===45&&(E+=La(ct())),p=Ut(),d=u=Dt(I=E+=m2(Da())),b++;break;case 45:m===45&&Dt(E)==2&&(g=0)}}return o}function MS(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Md(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=Ji(e,u+1,u=o2(g=a[m])),I=e;v<f;++v)(I=xx(g>0?p[v]+" "+b:z(b,/&\f/g,p[v])))&&(l[_++]=I);return Qa(e,t,r,i===0?qd:s,l,c,d)}function g2(e,t,r){return Qa(e,t,r,Ld,Wa(u2()),Ji(e,2,-2),0)}function US(e,t,r,n){return Qa(e,t,r,Fd,Ji(e,0,n),Ji(e,n+1,-1),n)}function vn(e,t){for(var r="",n=Md(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function y2(e,t,r,n){switch(e.type){case i2:case Fd:return e.return=e.return||e.value;case Ld:return"";case Sx:return e.return=e.value+"{"+vn(e.children,n)+"}";case qd:e.value=e.props.join(",")}return Dt(r=vn(e.children,n))?e.return=e.value+"{"+r+"}":""}function _2(e){var t=Md(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 b2(e){return function(t){t.root||(t=t.return)&&e(t)}}function Cx(e,t){switch(s2(e,t)){case 5103:return B+"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 B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+Ja+e+je+e+e;case 6828:case 4268:return B+e+je+e+e;case 6165:return B+e+je+"flex-"+e+e;case 5187:return B+e+z(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+je+"flex-$1$2")+e;case 5443:return B+e+je+"flex-item-"+z(e,/flex-|-self/,"")+e;case 4675:return B+e+je+"flex-line-pack"+z(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+je+z(e,"shrink","negative")+e;case 5292:return B+e+je+z(e,"basis","preferred-size")+e;case 6060:return B+"box-"+z(e,"-grow","")+B+e+je+z(e,"grow","positive")+e;case 4554:return B+z(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return z(z(z(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return z(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return z(z(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return z(e,/(.+)-inline(.+)/,B+"$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(Dt(e)-1-t>6)switch(Ne(e,t+1)){case 109:if(Ne(e,t+4)!==45)break;case 102:return z(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+Ja+(Ne(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bd(e,"stretch")?Cx(z(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ne(e,t+1)!==115)break;case 6444:switch(Ne(e,Dt(e)-3-(~bd(e,"!important")&&10))){case 107:return z(e,":",":"+B)+e;case 101:return z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(Ne(e,14)===45?"inline-":"")+"box$3$1"+B+"$2$3$1"+je+"$2box$3")+e}break;case 5936:switch(Ne(e,t+11)){case 114:return B+e+je+z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+je+z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+je+z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+je+e+e}return e}function Ox(){if(JS)return Ca.exports;JS=1;let e=Ox();return Ca.exports={default:e},Ca.exports.default=e,Ca.exports}function $i(e,t,r){var n,i="";return(0,Te.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function D2(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 q2(e){var t=(0,fx.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Vi(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 Lt={name:i.name,styles:i.styles,next:Lt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Lt={name:a.name,styles:a.styles,next:Lt},a=a.next;var s=o.styles+";";return s}return U2(e,t,r)}case"function":{if(e!==void 0){var l=Lt,c=r(e);return Lt=l,Vi(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function U2(e,t,r){var n="";if((0,Ui.default)(r))for(var i=0;i<r.length;i++)n+=Vi(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]+"}":HS(s)&&(n+=ud(o)+":"+$S(o,s)+";")}else if((0,Ui.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)HS(a[l])&&(n+=ud(o)+":"+$S(o,a[l])+";");else{var c=Vi(e,t,a);switch(o){case"animation":case"animationName":{n+=ud(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function _r(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="";Lt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Vi(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Vi(r,t,e[s]),n){var l=o;i+=l[s]}VS.lastIndex=0;for(var c="",d;(d=VS.exec(i))!==null;)c+="-"+d[1];var u=D2(i)+c;return{name:u,styles:i,next:Lt}}function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return _r(t)}function Q2(e,t,r){var n=[],i=$i(e,n,r);return n.length<2?r:i+t(n)}function y(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Z2,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return R.vnode&&R.vnode(c),c}function Ki(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Mt(e());return jr(()=>{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 ZB(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 Jx(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=ZB(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function eJ(e){let t=()=>Jx(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function nJ(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=Ye(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=rJ(()=>{t&&n()});return e==="Image"?y("div",{className:i,style:{borderRadius:"8px"},children:Me("img",M(T({},a),{ref:c,src:t!=null?t:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):y("div",M(T({},a),{ref:c,className:i,children:r}))}function iJ(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?Me(i.type,M(T({},i.props),{style:M(T({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Me(e.type,M(T({},e.props),{style:M(T({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function cJ(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 nx(e,t,r){return Xa.call(t,"css")?y(Jd,qx(e,t),r):y(e,t,r)}function mJ(e,t,r){return Xa.call(t,"css")?y(Jd,qx(e,t),r):y(e,t,r)}function kd({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return y("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?y(Oe,{children:t[s]},o):null}return y(Oe,{children:i},o)})})}function yJ({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Mt(!1);return a?null:y("div",{style:T({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:y("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function wJ({children:e,style:t}){return y("div",{style:`${_J.styles} ${t}`,children:[e,y("svg",{style:`${bJ.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[y("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),y("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function LJ(e,t){return De(e,0)^45?(((t<<2^De(e,0))<<2^De(e,1))<<2^De(e,2))<<2^De(e,3):0}function tE(e){return(0,Rd.default)(e).call(e)}function qJ(e,t){return(e=t.exec(e))?e[0]:e}function H(e,t,r){return e.replace(t,r)}function Ad(e,t){return(0,Xt.default)(e).call(e,t)}function De(e,t){return e.charCodeAt(t)|0}function Gi(e,t,r){return(0,Nd.default)(e).call(e,t,r)}function qt(e){return e.length}function Gd(e){return e.length}function Oa(e,t){return t.push(e),e}function FJ(e,t){return(0,ji.default)(e).call(e,t).join("")}function ns(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:rs,column:bn,length:a,return:""}}function qi(e,t){return DJ(ns("",null,null,"",null,null,0),e,{length:-e.length},t)}function MJ(){return we}function UJ(){return we=et>0?De(xn,--et):0,bn--,we===10&&(bn=1,rs--),we}function ut(){return we=et<rE?De(xn,et++):0,bn++,we===10&&(bn=1,rs++),we}function jt(){return De(xn,et)}function Fa(){return et}function Yi(e,t){return Gi(xn,e,t)}function zi(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 nE(e){return rs=bn=1,rE=qt(xn=e),et=0,[]}function iE(e){return xn="",e}function Ma(e){return tE(Yi(et-1,Td(e===91?e+2:e===40?e+1:e)))}function jJ(e){for(;(we=jt())&&we<33;)ut();return zi(e)>2||zi(we)>3?"":" "}function BJ(e,t){for(;--t&&ut()&&!(we<48||we>102||we>57&&we<65||we>70&&we<97););return Yi(e,Fa()+(t<6&&jt()==32&&ut()==32))}function Td(e){for(;ut();)switch(we){case e:return et;case 34:case 39:e!==34&&e!==39&&Td(we);break;case 40:e===41&&Td(e);break;case 92:ut();break}return et}function JJ(e,t){for(;ut()&&e+we!==57&&!(e+we===84&&jt()===47););return"/*"+Yi(t,et-1)+"*"+ts(e===47?e:ut())}function HJ(e){for(;!zi(jt());)ut();return Yi(e,et)}function $J(e){return iE(Ua("",null,null,null,[""],e=nE(e),0,[0],e))}function Ua(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,P=o,O=n,E=I;_;)switch(m=b,b=ut()){case 40:if(m!=108&&De(E,u-1)==58){Ad(E+=H(Ma(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=Ma(b);break;case 9:case 10:case 13:case 32:E+=jJ(m);break;case 92:E+=BJ(Fa()-1,7);continue;case 47:switch(jt()){case 42:case 47:Oa(VJ(JJ(ut(),Fa()),t,r),l);break;default:E+="/"}break;case 123*g:s[c++]=qt(E)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(E=H(E,/\f/g,"")),f>0&&qt(E)-u&&Oa(f>32?ox(E+";",n,r,u-1):ox(H(E," ","")+";",n,r,u-2),l);break;case 59:E+=";";default:if(Oa(O=ix(E,t,r,c,d,i,s,I,A=[],P=[],u),o),b===123)if(d===0)Ua(E,t,O,O,A,o,u,s,P);else switch(p===99&&De(E,3)===110?100:p){case 100:case 108:case 109:case 115:Ua(e,O,O,n&&Oa(ix(e,O,O,0,0,i,s,I,i,A=[],u),P),i,P,u,s,n?A:P);break;default:Ua(E,O,O,O,[""],P,0,s,P)}}c=d=f=0,g=v=1,I=E="",u=a;break;case 58:u=1+qt(E),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&UJ()==125)continue}switch(E+=ts(b),b*g){case 38:v=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(qt(E)-1)*v,v=1;break;case 64:jt()===45&&(E+=Ma(ut())),p=jt(),d=u=qt(I=E+=HJ(Fa())),b++;break;case 45:m===45&&qt(E)==2&&(g=0)}}return o}function ix(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Gd(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=Gi(e,u+1,u=NJ(g=a[m])),I=e;v<f;++v)(I=tE(g>0?p[v]+" "+b:H(b,/&\f/g,p[v])))&&(l[_++]=I);return ns(e,t,r,i===0?$d:s,l,c,d)}function VJ(e,t,r){return ns(e,t,r,Zx,ts(MJ()),Gi(e,2,-2),0)}function ox(e,t,r,n){return ns(e,t,r,Vd,Gi(e,0,n),Gi(e,n+1,-1),n)}function gn(e,t){for(var r="",n=Gd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function GJ(e,t,r,n){switch(e.type){case RJ:if(e.children.length)break;case OJ:case Vd:return e.return=e.return||e.value;case Zx:return"";case eE:return e.return=e.value+"{"+gn(e.children,n)+"}";case $d:e.value=e.props.join(",")}return qt(r=gn(e.children,n))?e.return=e.value+"{"+r+"}":""}function zJ(e){var t=Gd(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 WJ(e){return function(t){t.root||(t=t.return)&&e(t)}}function oE(e,t){switch(LJ(e,t)){case 5103:return J+"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 J+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return J+e+Va+e+Be+e+e;case 6828:case 4268:return J+e+Be+e+e;case 6165:return J+e+Be+"flex-"+e+e;case 5187:return J+e+H(e,/(\w+).+(:[^]+)/,J+"box-$1$2"+Be+"flex-$1$2")+e;case 5443:return J+e+Be+"flex-item-"+H(e,/flex-|-self/,"")+e;case 4675:return J+e+Be+"flex-line-pack"+H(e,/align-content|flex-|-self/,"")+e;case 5548:return J+e+Be+H(e,"shrink","negative")+e;case 5292:return J+e+Be+H(e,"basis","preferred-size")+e;case 6060:return J+"box-"+H(e,"-grow","")+J+e+Be+H(e,"grow","positive")+e;case 4554:return J+H(e,/([^-])(transform)/g,"$1"+J+"$2")+e;case 6187:return H(H(H(e,/(zoom-|grab)/,J+"$1"),/(image-set)/,J+"$1"),e,"")+e;case 5495:case 3959:return H(e,/(image-set\([^]*)/,J+"$1$`$1");case 4968:return H(H(e,/(.+:)(flex-)?(.*)/,J+"box-pack:$3"+Be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+J+e+e;case 4095:case 3583:case 4068:case 2532:return H(e,/(.+)-inline(.+)/,J+"$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(De(e,t+1)){case 109:if(De(e,t+4)!==45)break;case 102:return H(e,/(.+:)(.+)-([^]+)/,"$1"+J+"$2-$3$1"+Va+(De(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ad(e,"stretch")?oE(H(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(De(e,t+1)!==115)break;case 6444:switch(De(e,qt(e)-3-(~Ad(e,"!important")&&10))){case 107:return H(e,":",":"+J)+e;case 101:return H(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+J+(De(e,14)===45?"inline-":"")+"box$3$1"+J+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(De(e,t+11)){case 114:return J+e+Be+H(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return J+e+Be+H(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return J+e+Be+H(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return J+e+Be+e+e}return e}function sx(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function md(e,t,r){var n=[],i=$i(e,n,r);return n.length<2?r:i+t(n)}function ux(e){if(e==="top"){let t=0;aE.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${lx}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${lx}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+cx)})}else if(e==="center"){let t=0;sE.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+cx)})}}function Xi(){let e=!1,t=null,r=0,n=new Set,i=a=>w(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield Mi.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),cr(y(d5,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,Mi.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let l=setTimeout(()=>{o(),n.delete(l)},a.duration);n.add(l)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&(cr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Mi.release()))};return{show:i,hide:o,get isLoading(){return e}}}var Cd,px,Te,Ga,ja,Ft,Ba,Ui,Pd,Xt,ji,fx,hx,Od,Rd,Nd,e7,vd,yn,le,cd,PS,Bi,mx,_e,OS,RS,NS,DS,LS,qS,FS,yx,me,Rt,Nt,Yt,mn,yr,Na,e2,Ce,t2,Ix,je,Ja,B,Ld,qd,Fd,i2,Sx,o2,Wa,a2,Ka,_n,Ex,Ze,be,wn,w2,I2,S2,jS,x2,E2,k2,A2,T2,Tx,C2,BS,P2,O2,R2,Px,Ca,JS,N2,Ud,Ya,L2,F2,M2,Rx,HS,ud,$S,VS,Lt,j2,Nx,Dx,GS,Xa,jd,Lx,Bd,Za,B2,J2,H2,$2,V2,Id,Sd,qx,G2,Jd,z2,zS,W2,K2,Y2,X2,dd,WS,pd,fd,Z2,hd,eB,tB,rB,nB,iB,oB,KS,aB,sB,QS,lB,cB,YS,uB,dB,XS,pB,fB,hB,mB,vB,gB,yB,_B,ZS,bB,wB,IB,SB,xB,EB,kB,AB,ex,TB,CB,PB,OB,RB,NB,DB,LB,qB,FB,MB,UB,jB,BB,JB,HB,$B,VB,GB,zB,WB,KB,QB,YB,Fx,Mx,Ux,xd,XB,jx,Bx,Ha,Mi,tx,tJ,es,rJ,Hx,$x,Vx,oJ,aJ,sJ,Ed,lJ,Gx,$a,Qi,In,rx,Ur,zx,hn,uJ,dJ,pJ,fJ,hJ,Pa,Wx,Hd,pe,vJ,gJ,_J,bJ,Et,IJ,SJ,Kx,Qx,Yx,Xx,Sn,xJ,EJ,kJ,AJ,TJ,CJ,PJ,Be,Va,J,Zx,$d,Vd,OJ,eE,RJ,NJ,ts,DJ,rs,bn,rE,et,we,xn,KJ,QJ,YJ,ax,XJ,ZJ,e5,t5,r5,n5,i5,o5,a5,s5,l5,c5,lx,cx,aE,sE,Br,dx,u5,d5,t7,er=k(()=>{"use strict";Qr();Cd=oe(rg(),1),px=oe(pg(),1),Te=oe(Eg(),1),Ga=oe(jg(),1),ja=oe(Kg(),1),Ft=oe(fy(),1);Xo();Xo();Ba=oe(Yy(),1),Ui=oe(i_(),1),Pd=oe(bw(),1),Xt=oe(Pw(),1),ji=oe(Uw(),1),fx=oe(Gw(),1),hx=oe(cI(),1),Od=oe(SI(),1),Rd=oe(jI(),1),Nd=oe(YI(),1);od();od();e7=oe(hS(),1),vd=oe(CS(),1),Bi=0,mx=[],_e=R,OS=_e.__b,RS=_e.__r,NS=_e.diffed,DS=_e.__c,LS=_e.unmount,qS=_e.__;_e.__b=function(e){le=null,OS&&OS(e)},_e.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),qS&&qS(e,t)},_e.__r=function(e){var t,r,n;RS&&RS(e),yn=0;var i=(le=e.__c).__H;i&&(cd===le?(i.__h=[],le.__h=[],(0,Te.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Te.default)(r=i.__h).call(r,Ra),(0,Te.default)(n=i.__h).call(n,gd),i.__h=[],yn=0)),cd=le},_e.diffed=function(e){var t;NS&&NS(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(mx.push(r)!==1&&PS===_e.requestAnimationFrame||((PS=_e.requestAnimationFrame)||Qj)(Kj)),(0,Te.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),cd=le=null},_e.__c=function(e,t){(0,ja.default)(t).call(t,function(r){try{var n,i;(0,Te.default)(n=r.__h).call(n,Ra),r.__h=(0,Cd.default)(i=r.__h).call(i,function(o){return!o.__||gd(o)})}catch(o){(0,ja.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],_e.__e(o,r.__v)}}),DS&&DS(e,t)},_e.unmount=function(e){var t;LS&&LS(e);var r,n=e.__c;n&&n.__H&&((0,Te.default)(t=n.__H.__).call(t,function(i){try{Ra(i)}catch(o){r=o}}),n.__H=void 0,r&&_e.__e(r,n.__v))};FS=typeof requestAnimationFrame=="function";yx={exports:{}},me=yx.exports={};(function(){try{typeof Ft.default=="function"?Rt=Ft.default:Rt=yd}catch(e){Rt=yd}try{typeof clearTimeout=="function"?Nt=clearTimeout:Nt=_d}catch(e){Nt=_d}})();Yt=[],mn=!1,Na=-1;me.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];Yt.push(new wx(e,t)),Yt.length===1&&!mn&&_x(bx)};wx.prototype.run=function(){this.fun.apply(null,this.array)};me.title="browser";me.browser=!0;me.env={};me.argv=[];me.version="";me.versions={};me.on=Zt;me.addListener=Zt;me.once=Zt;me.off=Zt;me.removeListener=Zt;me.removeAllListeners=Zt;me.emit=Zt;me.prependListener=Zt;me.prependOnceListener=Zt;me.listeners=function(e){return[]};me.binding=function(e){throw new Error("process.binding is not supported")};me.cwd=function(){return"/"};me.chdir=function(e){throw new Error("process.chdir is not supported")};me.umask=function(){return 0};e2=yx.exports,Ce=Yj(e2),t2=Ba.default||void 0||self;Ix=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,Te.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(n2(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=r2(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Te.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}(),je="-ms-",Ja="-moz-",B="-webkit-",Ld="comm",qd="rule",Fd="decl",i2="@import",Sx="@keyframes",o2=Math.abs,Wa=String.fromCharCode,a2=Od.default;Ka=1,_n=1,Ex=0,Ze=0,be=0,wn="";w2=function(e,t,r){for(var n=0,i=0;n=i,i=Ut(),n===38&&i===12&&(t[r]=1),!Hi(i);)ct();return Wi(e,Ze)},I2=function(e,t){var r=-1,n=44;do switch(Hi(n)){case 0:n===38&&Ut()===12&&(t[r]=1),e[r]+=w2(Ze-1,t,r);break;case 2:e[r]+=La(n);break;case 4:if(n===44){e[++r]=Ut()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Wa(n)}while(n=ct());return e},S2=function(e,t){return Ax(I2(kx(e),t))},jS=new Pd.default,x2=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&&!jS.get(r))&&!n){jS.set(e,!0);for(var i=[],o=S2(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},E2=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},k2="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",A2=function(e){var t;return e.type==="comm"&&(0,Xt.default)(t=e.children).call(t,k2)>-1},T2=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 l=a[s];if(l.line<t.line)break;if(l.column<t.column){if(A2(l))return;break}}(0,Te.default)(i).call(i,function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Tx=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},C2=function(e,t){for(var r=e-1;r>=0;r--)if(!Tx(t[r]))return!0;return!1},BS=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},P2=function(e,t,r){Tx(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."),BS(e)):C2(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),BS(e)))};O2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Fd:e.return=Cx(e.value,e.length);break;case Sx:return vn([Li(e,{value:z(e.value,"@","@"+B)})],n);case qd:if(e.length)return c2(e.props,function(i){switch(l2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vn([Li(e,{props:[z(i,/:(read-\w+)/,":"+Ja+"$1")]})],n);case"::placeholder":return vn([Li(e,{props:[z(i,/:(plac\w+)/,":"+B+"input-$1")]}),Li(e,{props:[z(i,/:(plac\w+)/,":"+Ja+"$1")]}),Li(e,{props:[z(i,/:(plac\w+)/,je+"input-$1")]})],n)}return""})}},R2=[O2],Px=function(e){var t=e.key;if(Ce.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.
|
|
21
|
-
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,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Xt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||R2;if(Ce.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,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[x2,E2];Ce.env.NODE_ENV!=="production"&&l.push(T2({get compat(){return f.compat}}),P2);{var c,d=[y2,Ce.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==Ld&&c.insert(m.value+"{}"))}:b2(function(m){c.insert(m)})],u=_2((0,Ga.default)(l).call(l,n,d)),p=function(m){return vn(v2(m),u)};s=function(m,g,_,v){c=_,Ce.env.NODE_ENV!=="production"&&(0,
|
|
22
|
-
`),r=0;r<t.length;r++){var n=J2(t[r]);if(n){if(H2.has(n))break;if(/^[A-Z]/.test(n))return $2(n)}}},Id="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Sd="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",qx=function(e,t){var r,n;if(Ce.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,Xt.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)Xa.call(t,o)&&(i[o]=t[o]);if(i[Id]=e,Ce.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,Xt.default)(n=t.css.name).call(n,"-")===-1)){var a=V2(new Error().stack);a&&(i[Sd]=a)}return i},G2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return
|
|
19
|
+
`;e.textContent=s;let l=document.head||document.getElementsByTagName("head")[0];l.insertBefore(t,l.firstChild),l.insertBefore(e,l.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:l}=S.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return w(this,null,function*(){let d=c instanceof URL?c.href:c,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 l=window.fetch;window.fetch=(c,d)=>{let u=c instanceof URL?c.href:c.toString();return u.endsWith(".wasm")?s(u):l(c,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 Ph=k(()=>{"use strict";K()});var Oh=k(()=>{"use strict"});var Rh=k(()=>{"use strict";D();$l()});var Nh=k(()=>{"use strict";K()});var No,tc=k(()=>{"use strict";Oh();Rh();K();Nh();D();No=new Pt});function Vt(e,t){for(var r in t)e[r]=t[r];return e}function sc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ue(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?Fo.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 Lo(e,a,n,i,null)}function Lo(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?++Fh:i,__i:-1,__u:0};return i==null&&R.vnode!=null&&R.vnode(o),o}function Ne(e){return e.children}function st(e,t){this.props=e,this.context=t}function Kr(e,t){if(t==null)return e.__?Kr(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"?Kr(e):null}function Hh(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 Hh(e)}}function ic(e){(!e.__d&&(e.__d=!0)&&Cr.push(e)&&!qo.__r++||Dh!==R.debounceRendering)&&((Dh=R.debounceRendering)||Mh)(qo)}function qo(){for(var e,t,r,n,i,o,a,s=1;Cr.length;)Cr.length>s&&Cr.sort(jh),e=Cr.shift(),s=Cr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Vt({},n)).__v=n.__v+1,R.vnode&&R.vnode(r),lc(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Kr(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Gh(o,r,a),r.__e!=i&&Hh(r)));qo.__r=0}function $h(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,g,_,v=n&&n.__k||Jh,b=t.length;for(l=LT(r,t,v,l,b),u=0;u<b;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?Zn:v[f.__i]||Zn,f.__i=u,_=lc(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&cc(p.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||p.__k===f.__k?l=Vh(f,l,e):typeof f.type=="function"&&_!==void 0?l=_:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=g,l}function LT(e,t,r,n,i){var o,a,s,l,c,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"?(l=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Lo(null,a,null,null,null):ei(a)?Lo(Ne,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Lo(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(c=a.__i=qT(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?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=Kr(s)),Wh(s,s));return n}function Vh(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=Vh(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Kr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ti(e,t){return t=t||[],e==null||typeof e=="boolean"||(ei(e)?e.some(function(r){ti(r,t)}):t.push(e)),t}function qT(e,t,r,n){var i,o,a=e.key,s=e.type,l=t[r];if(l===null&&e.key==null||l&&a==l.key&&s===l.type&&!(2&l.__u))return r;if(n>(l!=null&&!(2&l.__u)?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;){if(i>=0){if((l=t[i])&&!(2&l.__u)&&a==l.key&&s===l.type)return i;i--}if(o<t.length){if((l=t[o])&&!(2&l.__u)&&a==l.key&&s===l.type)return o;o++}}return-1}function Lh(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||DT.test(t)?r:r+"px"}function Do(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||Lh(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Lh(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Uh,"$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=ac,e.addEventListener(t,o?nc:rc,o)):e.removeEventListener(t,o?nc:rc,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 qh(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=ac++;else if(t.u<r.t)return;return r(R.event?R.event(t):t)}}}function lc(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,g,_,v,b,I,A,C,O,E,P,B,ze,L=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=R.__b)&&d(t);e:if(typeof L=="function")try{if(v=t.props,b="prototype"in L&&L.prototype.render,I=(d=L.contextType)&&n[d.__c],A=d?I?I.props.value:d.__:n,r.__c?_=(u=t.__c=r.__c).__=u.__E:(b?t.__c=u=new L(v,A):(t.__c=u=new st(v,A),u.constructor=L,u.render=MT),I&&I.sub(u),u.props=v,u.state||(u.state={}),u.context=A,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&L.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Vt({},u.__s)),Vt(u.__s,L.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)b&&L.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&L.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,A),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,A)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Oe){Oe&&(Oe.__=t)}),C=0;C<u._sb.length;C++)u.__h.push(u._sb[C]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,A),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=A,u.props=v,u.__P=e,u.__e=!1,O=R.__r,E=0,b){for(u.state=u.__s,u.__d=!1,O&&O(t),d=u.render(u.props,u.state,u.context),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[]}else do u.__d=!1,O&&O(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++E<25);u.state=u.__s,u.getChildContext!=null&&(n=Vt(Vt({},n),u.getChildContext())),b&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),B=d,d!=null&&d.type===Ne&&d.key==null&&(B=zh(d.props.children)),s=$h(e,ei(B)?B:[B],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),_&&(u.__E=u.__=null)}catch(Oe){if(t.__v=null,l||o!=null)if(Oe.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(ze=o.length;ze--;)sc(o[ze]);else t.__e=r.__e,t.__k=r.__k;R.__e(Oe,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=FT(r.__e,t,r,n,i,o,a,l,c);return(d=R.diffed)&&d(t),128&t.__u?void 0:s}function Gh(e,t,r){for(var n=0;n<r.length;n++)cc(r[n],r[++n],r[++n]);R.__c&&R.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){R.__e(o,i.__v)}})}function zh(e){return typeof e!="object"||e==null?e:ei(e)?e.map(zh):Vt({},e)}function FT(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,g,_=r.props,v=t.props,b=t.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(b==null)return document.createTextNode(v);e=document.createElementNS(i,b,v.is&&v),s&&(R.__m&&R.__m(t,o),s=!1),o=null}if(b===null)_===v||s&&e.data===v||(e.data=v);else{if(o=o&&Fo.call(e.childNodes),_=r.props||Zn,!s&&o!=null)for(_={},c=0;c<e.attributes.length;c++)_[(f=e.attributes[c]).name]=f.value;for(c in _)if(f=_[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;Do(e,c,null,f,i)}}for(c in v)f=v[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?m=f:c=="checked"?g=f:s&&typeof f!="function"||_[c]===f||Do(e,c,f,_[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),$h(t.type==="template"?e.content:e,ei(p)?p:[p],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Kr(r,0),s,l),o!=null)for(c=o.length;c--;)sc(o[c]);s||(c="value",b=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||b=="progress"&&!m||b=="option"&&m!==_[c])&&Do(e,c,m,_[c],i),c="checked",g!==void 0&&g!==e[c]&&Do(e,c,g,_[c],i))}return e}function cc(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){R.__e(i,r)}}function Wh(e,t,r){var n,i;if(R.unmount&&R.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||cc(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){R.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Wh(n[i],t,r||typeof e.type!="function");r||sc(e.__e),e.__c=e.__=e.__e=void 0}function MT(e,t,r){return this.constructor(e,r)}function cr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),R.__&&R.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],lc(t,e=(!n&&r||t).__k=Ue(Ne,null,[e]),i||Zn,Zn,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Fo.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Gh(o,e,a)}function Pr(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,ic(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"+Bh++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Fo,R,Fh,oc,Cr,Dh,Mh,jh,Uh,ac,rc,nc,Bh,Zn,Jh,DT,ei,Qr=k(()=>{Zn={},Jh=[],DT=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ei=Array.isArray;Fo=Jh.slice,R={__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}},Fh=0,oc=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=Vt({},this.state),typeof e=="function"&&(e=e(Vt({},r),this.props)),e&&Vt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),ic(this))},st.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ic(this))},st.prototype.render=Ne,Cr=[],Mh=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,jh=function(e,t){return e.__v.__b-t.__v.__b},qo.__r=0,Uh=/(PointerCapture)$|Capture$/i,ac=0,rc=qh(!1),nc=qh(!0),Bh=0});var ue=h((TV,Kh)=>{"use strict";Kh.exports=function(e){try{return!!e()}catch(t){return!0}}});var Yr=h((CV,Qh)=>{"use strict";var jT=ue();Qh.exports=!jT(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var ye=h((PV,Zh)=>{"use strict";var Yh=Yr(),Xh=Function.prototype,uc=Xh.call,UT=Yh&&Xh.bind.bind(uc,uc);Zh.exports=Yh?UT:function(e){return function(){return uc.apply(e,arguments)}}});var We=h((OV,em)=>{"use strict";var BT=ye();em.exports=BT({}.isPrototypeOf)});var de=h((dc,tm)=>{"use strict";var ri=function(e){return e&&e.Math===Math&&e};tm.exports=ri(typeof globalThis=="object"&&globalThis)||ri(typeof window=="object"&&window)||ri(typeof self=="object"&&self)||ri(typeof global=="object"&&global)||ri(typeof dc=="object"&&dc)||function(){return this}()||Function("return this")()});var pc=h((RV,om)=>{"use strict";var JT=Yr(),im=Function.prototype,rm=im.apply,nm=im.call;om.exports=typeof Reflect=="object"&&Reflect.apply||(JT?nm.bind(rm):function(){return nm.apply(rm,arguments)})});var Gt=h((NV,sm)=>{"use strict";var am=ye(),HT=am({}.toString),$T=am("".slice);sm.exports=function(e){return $T(HT(e),8,-1)}});var ni=h((DV,lm)=>{"use strict";var VT=Gt(),GT=ye();lm.exports=function(e){if(VT(e)==="Function")return GT(e)}});var De=h((LV,cm)=>{"use strict";var fc=typeof document=="object"&&document.all;cm.exports=typeof fc=="undefined"&&fc!==void 0?function(e){return typeof e=="function"||e===fc}:function(e){return typeof e=="function"}});var Ke=h((qV,um)=>{"use strict";var zT=ue();um.exports=!zT(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var It=h((FV,dm)=>{"use strict";var WT=Yr(),Mo=Function.prototype.call;dm.exports=WT?Mo.bind(Mo):function(){return Mo.apply(Mo,arguments)}});var hc=h(hm=>{"use strict";var pm={}.propertyIsEnumerable,fm=Object.getOwnPropertyDescriptor,KT=fm&&!pm.call({1:2},1);hm.f=KT?function(t){var r=fm(this,t);return!!r&&r.enumerable}:pm});var ii=h((jV,mm)=>{"use strict";mm.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var jo=h((UV,vm)=>{"use strict";var QT=ye(),YT=ue(),XT=Gt(),mc=Object,ZT=QT("".split);vm.exports=YT(function(){return!mc("z").propertyIsEnumerable(0)})?function(e){return XT(e)==="String"?ZT(e,""):mc(e)}:mc});var Or=h((BV,gm)=>{"use strict";gm.exports=function(e){return e==null}});var Rr=h((JV,ym)=>{"use strict";var eC=Or(),tC=TypeError;ym.exports=function(e){if(eC(e))throw new tC("Can't call method on "+e);return e}});var ur=h((HV,_m)=>{"use strict";var rC=jo(),nC=Rr();_m.exports=function(e){return rC(nC(e))}});var Ae=h(($V,bm)=>{"use strict";var iC=De();bm.exports=function(e){return typeof e=="object"?e!==null:iC(e)}});var Ot=h((VV,wm)=>{"use strict";wm.exports={}});var Xr=h((GV,Sm)=>{"use strict";var vc=Ot(),gc=de(),oC=De(),Im=function(e){return oC(e)?e:void 0};Sm.exports=function(e,t){return arguments.length<2?Im(vc[e])||Im(gc[e]):vc[e]&&vc[e][t]||gc[e]&&gc[e][t]}});var Uo=h((zV,km)=>{"use strict";var aC=de(),xm=aC.navigator,Em=xm&&xm.userAgent;km.exports=Em?String(Em):""});var Jo=h((WV,Rm)=>{"use strict";var Om=de(),yc=Uo(),Am=Om.process,Tm=Om.Deno,Cm=Am&&Am.versions||Tm&&Tm.version,Pm=Cm&&Cm.v8,St,Bo;Pm&&(St=Pm.split("."),Bo=St[0]>0&&St[0]<4?1:+(St[0]+St[1]));!Bo&&yc&&(St=yc.match(/Edge\/(\d+)/),(!St||St[1]>=74)&&(St=yc.match(/Chrome\/(\d+)/),St&&(Bo=+St[1])));Rm.exports=Bo});var _c=h((KV,Dm)=>{"use strict";var Nm=Jo(),sC=ue(),lC=de(),cC=lC.String;Dm.exports=!!Object.getOwnPropertySymbols&&!sC(function(){var e=Symbol("symbol detection");return!cC(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Nm&&Nm<41})});var bc=h((QV,Lm)=>{"use strict";var uC=_c();Lm.exports=uC&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var wc=h((YV,qm)=>{"use strict";var dC=Xr(),pC=De(),fC=We(),hC=bc(),mC=Object;qm.exports=hC?function(e){return typeof e=="symbol"}:function(e){var t=dC("Symbol");return pC(t)&&fC(t.prototype,mC(e))}});var oi=h((XV,Fm)=>{"use strict";var vC=String;Fm.exports=function(e){try{return vC(e)}catch(t){return"Object"}}});var Nr=h((ZV,Mm)=>{"use strict";var gC=De(),yC=oi(),_C=TypeError;Mm.exports=function(e){if(gC(e))return e;throw new _C(yC(e)+" is not a function")}});var Ho=h((eG,jm)=>{"use strict";var bC=Nr(),wC=Or();jm.exports=function(e,t){var r=e[t];return wC(r)?void 0:bC(r)}});var Bm=h((tG,Um)=>{"use strict";var Ic=It(),Sc=De(),xc=Ae(),IC=TypeError;Um.exports=function(e,t){var r,n;if(t==="string"&&Sc(r=e.toString)&&!xc(n=Ic(r,e))||Sc(r=e.valueOf)&&!xc(n=Ic(r,e))||t!=="string"&&Sc(r=e.toString)&&!xc(n=Ic(r,e)))return n;throw new IC("Can't convert object to primitive value")}});var Zr=h((rG,Jm)=>{"use strict";Jm.exports=!0});var Vm=h((nG,$m)=>{"use strict";var Hm=de(),SC=Object.defineProperty;$m.exports=function(e,t){try{SC(Hm,e,{value:t,configurable:!0,writable:!0})}catch(r){Hm[e]=t}return t}});var ai=h((iG,Wm)=>{"use strict";var xC=Zr(),EC=de(),kC=Vm(),Gm="__core-js_shared__",zm=Wm.exports=EC[Gm]||kC(Gm,{});(zm.versions||(zm.versions=[])).push({version:"3.41.0",mode:xC?"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 Ec=h((oG,Qm)=>{"use strict";var Km=ai();Qm.exports=function(e,t){return Km[e]||(Km[e]=t||{})}});var en=h((aG,Ym)=>{"use strict";var AC=Rr(),TC=Object;Ym.exports=function(e){return TC(AC(e))}});var lt=h((sG,Xm)=>{"use strict";var CC=ye(),PC=en(),OC=CC({}.hasOwnProperty);Xm.exports=Object.hasOwn||function(t,r){return OC(PC(t),r)}});var $o=h((lG,Zm)=>{"use strict";var RC=ye(),NC=0,DC=Math.random(),LC=RC(1 .toString);Zm.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+LC(++NC+DC,36)}});var Be=h((cG,tv)=>{"use strict";var qC=de(),FC=Ec(),ev=lt(),MC=$o(),jC=_c(),UC=bc(),tn=qC.Symbol,kc=FC("wks"),BC=UC?tn.for||tn:tn&&tn.withoutSetter||MC;tv.exports=function(e){return ev(kc,e)||(kc[e]=jC&&ev(tn,e)?tn[e]:BC("Symbol."+e)),kc[e]}});var ov=h((uG,iv)=>{"use strict";var JC=It(),rv=Ae(),nv=wc(),HC=Ho(),$C=Bm(),VC=Be(),GC=TypeError,zC=VC("toPrimitive");iv.exports=function(e,t){if(!rv(e)||nv(e))return e;var r=HC(e,zC),n;if(r){if(t===void 0&&(t="default"),n=JC(r,e,t),!rv(n)||nv(n))return n;throw new GC("Can't convert object to primitive value")}return t===void 0&&(t="number"),$C(e,t)}});var Ac=h((dG,av)=>{"use strict";var WC=ov(),KC=wc();av.exports=function(e){var t=WC(e,"string");return KC(t)?t:t+""}});var Cc=h((pG,lv)=>{"use strict";var QC=de(),sv=Ae(),Tc=QC.document,YC=sv(Tc)&&sv(Tc.createElement);lv.exports=function(e){return YC?Tc.createElement(e):{}}});var Pc=h((fG,cv)=>{"use strict";var XC=Ke(),ZC=ue(),eP=Cc();cv.exports=!XC&&!ZC(function(){return Object.defineProperty(eP("div"),"a",{get:function(){return 7}}).a!==7})});var Oc=h(dv=>{"use strict";var tP=Ke(),rP=It(),nP=hc(),iP=ii(),oP=ur(),aP=Ac(),sP=lt(),lP=Pc(),uv=Object.getOwnPropertyDescriptor;dv.f=tP?uv:function(t,r){if(t=oP(t),r=aP(r),lP)try{return uv(t,r)}catch(n){}if(sP(t,r))return iP(!rP(nP.f,t,r),t[r])}});var fv=h((mG,pv)=>{"use strict";var cP=ue(),uP=De(),dP=/#|\.prototype\./,si=function(e,t){var r=fP[pP(e)];return r===mP?!0:r===hP?!1:uP(t)?cP(t):!!t},pP=si.normalize=function(e){return String(e).replace(dP,".").toLowerCase()},fP=si.data={},hP=si.NATIVE="N",mP=si.POLYFILL="P";pv.exports=si});var li=h((vG,mv)=>{"use strict";var hv=ni(),vP=Nr(),gP=Yr(),yP=hv(hv.bind);mv.exports=function(e,t){return vP(e),t===void 0?e:gP?yP(e,t):function(){return e.apply(t,arguments)}}});var Rc=h((gG,vv)=>{"use strict";var _P=Ke(),bP=ue();vv.exports=_P&&bP(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var zt=h((yG,gv)=>{"use strict";var wP=Ae(),IP=String,SP=TypeError;gv.exports=function(e){if(wP(e))return e;throw new SP(IP(e)+" is not an object")}});var Wt=h(_v=>{"use strict";var xP=Ke(),EP=Pc(),kP=Rc(),Vo=zt(),yv=Ac(),AP=TypeError,Nc=Object.defineProperty,TP=Object.getOwnPropertyDescriptor,Dc="enumerable",Lc="configurable",qc="writable";_v.f=xP?kP?function(t,r,n){if(Vo(t),r=yv(r),Vo(n),typeof t=="function"&&r==="prototype"&&"value"in n&&qc in n&&!n[qc]){var i=TP(t,r);i&&i[qc]&&(t[r]=n.value,n={configurable:Lc in n?n[Lc]:i[Lc],enumerable:Dc in n?n[Dc]:i[Dc],writable:!1})}return Nc(t,r,n)}:Nc:function(t,r,n){if(Vo(t),r=yv(r),Vo(n),EP)try{return Nc(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new AP("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Dr=h((bG,bv)=>{"use strict";var CP=Ke(),PP=Wt(),OP=ii();bv.exports=CP?function(e,t,r){return PP.f(e,t,OP(1,r))}:function(e,t,r){return e[t]=r,e}});var Y=h((wG,Iv)=>{"use strict";var ci=de(),RP=pc(),NP=ni(),DP=De(),LP=Oc().f,qP=fv(),rn=Ot(),FP=li(),nn=Dr(),wv=lt();ai();var MP=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 RP(e,this,arguments)};return t.prototype=e.prototype,t};Iv.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?ci:i?ci[r]:ci[r]&&ci[r].prototype,s=n?rn:rn[r]||nn(rn,r,{})[r],l=s.prototype,c,d,u,p,f,m,g,_,v;for(p in t)c=qP(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&wv(a,p),m=s[p],d&&(e.dontCallGetSet?(v=LP(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!c&&!o&&typeof m==typeof f)&&(e.bind&&d?_=FP(f,ci):e.wrap&&d?_=MP(f):o&&DP(f)?_=NP(f):_=f,(e.sham||f&&f.sham||m&&m.sham)&&nn(_,"sham",!0),nn(s,p,_),o&&(u=r+"Prototype",wv(rn,u)||nn(rn,u,{}),nn(rn[u],p,f),e.real&&l&&(c||!l[p])&&nn(l,p,f)))}});var xv=h((IG,Sv)=>{"use strict";var jP=Math.ceil,UP=Math.floor;Sv.exports=Math.trunc||function(t){var r=+t;return(r>0?UP:jP)(r)}});var ui=h((SG,Ev)=>{"use strict";var BP=xv();Ev.exports=function(e){var t=+e;return t!==t||t===0?0:BP(t)}});var Fc=h((xG,kv)=>{"use strict";var JP=ui(),HP=Math.min;kv.exports=function(e){var t=JP(e);return t>0?HP(t,9007199254740991):0}});var on=h((EG,Av)=>{"use strict";var $P=Fc();Av.exports=function(e){return $P(e.length)}});var di=h((kG,Tv)=>{"use strict";var VP=Gt();Tv.exports=Array.isArray||function(t){return VP(t)==="Array"}});var Go=h((AG,Pv)=>{"use strict";var GP=Be(),zP=GP("toStringTag"),Cv={};Cv[zP]="z";Pv.exports=String(Cv)==="[object z]"});var an=h((TG,Ov)=>{"use strict";var WP=Go(),KP=De(),zo=Gt(),QP=Be(),YP=QP("toStringTag"),XP=Object,ZP=zo(function(){return arguments}())==="Arguments",eO=function(e,t){try{return e[t]}catch(r){}};Ov.exports=WP?zo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=eO(t=XP(e),YP))=="string"?r:ZP?zo(t):(n=zo(t))==="Object"&&KP(t.callee)?"Arguments":n}});var Nv=h((CG,Rv)=>{"use strict";var tO=ye(),rO=De(),Mc=ai(),nO=tO(Function.toString);rO(Mc.inspectSource)||(Mc.inspectSource=function(e){return nO(e)});Rv.exports=Mc.inspectSource});var Uc=h((PG,Mv)=>{"use strict";var iO=ye(),oO=ue(),Dv=De(),aO=an(),sO=Xr(),lO=Nv(),Lv=function(){},qv=sO("Reflect","construct"),jc=/^\s*(?:class|function)\b/,cO=iO(jc.exec),uO=!jc.test(Lv),pi=function(t){if(!Dv(t))return!1;try{return qv(Lv,[],t),!0}catch(r){return!1}},Fv=function(t){if(!Dv(t))return!1;switch(aO(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return uO||!!cO(jc,lO(t))}catch(r){return!0}};Fv.sham=!0;Mv.exports=!qv||oO(function(){var e;return pi(pi.call)||!pi(Object)||!pi(function(){e=!0})||e})?Fv:pi});var Jv=h((OG,Bv)=>{"use strict";var jv=di(),dO=Uc(),pO=Ae(),fO=Be(),hO=fO("species"),Uv=Array;Bv.exports=function(e){var t;return jv(e)&&(t=e.constructor,dO(t)&&(t===Uv||jv(t.prototype))?t=void 0:pO(t)&&(t=t[hO],t===null&&(t=void 0))),t===void 0?Uv:t}});var Bc=h((RG,Hv)=>{"use strict";var mO=Jv();Hv.exports=function(e,t){return new(mO(e))(t===0?0:t)}});var pr=h((NG,Vv)=>{"use strict";var vO=li(),gO=ye(),yO=jo(),_O=en(),bO=on(),wO=Bc(),$v=gO([].push),dr=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(l,c,d,u){for(var p=_O(l),f=yO(p),m=bO(f),g=vO(c,d),_=0,v=u||wO,b=t?v(l,m):r||a?v(l,0):void 0,I,A;m>_;_++)if((s||_ in f)&&(I=f[_],A=g(I,_,p),e))if(t)b[_]=A;else if(A)switch(e){case 3:return!0;case 5:return I;case 6:return _;case 2:$v(b,I)}else switch(e){case 4:return!1;case 7:$v(b,I)}return o?-1:n||i?i:b}};Vv.exports={forEach:dr(0),map:dr(1),filter:dr(2),some:dr(3),every:dr(4),find:dr(5),findIndex:dr(6),filterReject:dr(7)}});var fi=h((DG,Gv)=>{"use strict";var IO=ue(),SO=Be(),xO=Jo(),EO=SO("species");Gv.exports=function(e){return xO>=51||!IO(function(){var t=[],r=t.constructor={};return r[EO]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var zv=h(()=>{"use strict";var kO=Y(),AO=pr().filter,TO=fi(),CO=TO("filter");kO({target:"Array",proto:!0,forced:!CO},{filter:function(t){return AO(this,t,arguments.length>1?arguments[1]:void 0)}})});var yt=h((FG,Wv)=>{"use strict";var PO=de(),OO=Ot();Wv.exports=function(e,t){var r=OO[e+"Prototype"],n=r&&r[t];if(n)return n;var i=PO[e],o=i&&i.prototype;return o&&o[t]}});var Qv=h((MG,Kv)=>{"use strict";zv();var RO=yt();Kv.exports=RO("Array","filter")});var Xv=h((jG,Yv)=>{"use strict";var NO=We(),DO=Qv(),Jc=Array.prototype;Yv.exports=function(e){var t=e.filter;return e===Jc||NO(Jc,e)&&t===Jc.filter?DO:t}});var eg=h((UG,Zv)=>{"use strict";var LO=Xv();Zv.exports=LO});var rg=h((BG,tg)=>{tg.exports=eg()});var hi=h((JG,ng)=>{"use strict";var qO=ue();ng.exports=function(e,t){var r=[][e];return!!r&&qO(function(){r.call(null,t||function(){return 1},1)})}});var ig=h(()=>{"use strict";var FO=Y(),MO=pr().every,jO=hi(),UO=jO("every");FO({target:"Array",proto:!0,forced:!UO},{every:function(t){return MO(this,t,arguments.length>1?arguments[1]:void 0)}})});var ag=h((VG,og)=>{"use strict";ig();var BO=yt();og.exports=BO("Array","every")});var lg=h((GG,sg)=>{"use strict";var JO=We(),HO=ag(),Hc=Array.prototype;sg.exports=function(e){var t=e.every;return e===Hc||JO(Hc,e)&&t===Hc.every?HO:t}});var ug=h((zG,cg)=>{"use strict";var $O=lg();cg.exports=$O});var pg=h((WG,dg)=>{dg.exports=ug()});var hg=h((KG,fg)=>{"use strict";var VO=pr().forEach,GO=hi(),zO=GO("forEach");fg.exports=zO?[].forEach:function(t){return VO(this,t,arguments.length>1?arguments[1]:void 0)}});var vg=h(()=>{"use strict";var WO=Y(),mg=hg();WO({target:"Array",proto:!0,forced:[].forEach!==mg},{forEach:mg})});var yg=h((XG,gg)=>{"use strict";vg();var KO=yt();gg.exports=KO("Array","forEach")});var bg=h((ZG,_g)=>{"use strict";var QO=yg();_g.exports=QO});var wg=h(()=>{});var Sg=h((rz,Ig)=>{"use strict";var YO=an(),XO=lt(),ZO=We(),eR=bg();wg();var $c=Array.prototype,tR={DOMTokenList:!0,NodeList:!0};Ig.exports=function(e){var t=e.forEach;return e===$c||ZO($c,e)&&t===$c.forEach||XO(tR,YO(e))?eR:t}});var Eg=h((nz,xg)=>{xg.exports=Sg()});var Ag=h((iz,kg)=>{"use strict";var rR=TypeError,nR=9007199254740991;kg.exports=function(e){if(e>nR)throw rR("Maximum allowed index exceeded");return e}});var Vc=h((oz,Tg)=>{"use strict";var iR=Ke(),oR=Wt(),aR=ii();Tg.exports=function(e,t,r){iR?oR.f(e,t,aR(0,r)):e[t]=r}});var Rg=h(()=>{"use strict";var sR=Y(),lR=ue(),cR=di(),uR=Ae(),dR=en(),pR=on(),Cg=Ag(),Pg=Vc(),fR=Bc(),hR=fi(),mR=Be(),vR=Jo(),Og=mR("isConcatSpreadable"),gR=vR>=51||!lR(function(){var e=[];return e[Og]=!1,e.concat()[0]!==e}),yR=function(e){if(!uR(e))return!1;var t=e[Og];return t!==void 0?!!t:cR(e)},_R=!gR||!hR("concat");sR({target:"Array",proto:!0,arity:1,forced:_R},{concat:function(t){var r=dR(this),n=fR(r,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;o<s;o++)if(c=o===-1?r:arguments[o],yR(c))for(l=pR(c),Cg(i+l),a=0;a<l;a++,i++)a in c&&Pg(n,i,c[a]);else Cg(i+1),Pg(n,i++,c);return n.length=i,n}})});var Dg=h((lz,Ng)=>{"use strict";Rg();var bR=yt();Ng.exports=bR("Array","concat")});var qg=h((cz,Lg)=>{"use strict";var wR=We(),IR=Dg(),Gc=Array.prototype;Lg.exports=function(e){var t=e.concat;return e===Gc||wR(Gc,e)&&t===Gc.concat?IR:t}});var Mg=h((uz,Fg)=>{"use strict";var SR=qg();Fg.exports=SR});var Ug=h((dz,jg)=>{jg.exports=Mg()});var Bg=h(()=>{"use strict";var xR=Y(),ER=pr().some,kR=hi(),AR=kR("some");xR({target:"Array",proto:!0,forced:!AR},{some:function(t){return ER(this,t,arguments.length>1?arguments[1]:void 0)}})});var Hg=h((hz,Jg)=>{"use strict";Bg();var TR=yt();Jg.exports=TR("Array","some")});var Vg=h((mz,$g)=>{"use strict";var CR=We(),PR=Hg(),zc=Array.prototype;$g.exports=function(e){var t=e.some;return e===zc||CR(zc,e)&&t===zc.some?PR:t}});var zg=h((vz,Gg)=>{"use strict";var OR=Vg();Gg.exports=OR});var Kg=h((gz,Wg)=>{Wg.exports=zg()});var Yg=h((yz,Qg)=>{"use strict";var mi=de(),RR=Uo(),NR=Gt(),Wo=function(e){return RR.slice(0,e.length)===e};Qg.exports=function(){return Wo("Bun/")?"BUN":Wo("Cloudflare-Workers")?"CLOUDFLARE":Wo("Deno/")?"DENO":Wo("Node.js/")?"NODE":mi.Bun&&typeof Bun.version=="string"?"BUN":mi.Deno&&typeof Deno.version=="object"?"DENO":NR(mi.process)==="process"?"NODE":mi.window&&mi.document?"BROWSER":"REST"}()});var gi=h((_z,Xg)=>{"use strict";var DR=ye();Xg.exports=DR([].slice)});var ey=h((bz,Zg)=>{"use strict";var LR=TypeError;Zg.exports=function(e,t){if(e<t)throw new LR("Not enough arguments");return e}});var Wc=h((wz,ry)=>{"use strict";var ty=de(),qR=pc(),FR=De(),MR=Yg(),jR=Uo(),UR=gi(),BR=ey(),JR=ty.Function,HR=/MSIE .\./.test(jR)||MR==="BUN"&&function(){var e=ty.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();ry.exports=function(e,t){var r=t?2:1;return HR?function(n,i){var o=BR(arguments.length,1)>r,a=FR(n)?n:JR(n),s=o?UR(arguments,r):[],l=o?function(){qR(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var oy=h(()=>{"use strict";var $R=Y(),iy=de(),VR=Wc(),ny=VR(iy.setInterval,!0);$R({global:!0,bind:!0,forced:iy.setInterval!==ny},{setInterval:ny})});var ly=h(()=>{"use strict";var GR=Y(),sy=de(),zR=Wc(),ay=zR(sy.setTimeout,!0);GR({global:!0,bind:!0,forced:sy.setTimeout!==ay},{setTimeout:ay})});var cy=h(()=>{"use strict";oy();ly()});var dy=h((Tz,uy)=>{"use strict";cy();var WR=Ot();uy.exports=WR.setTimeout});var fy=h((Cz,py)=>{py.exports=dy()});function _i(e,t){he.__h&&he.__h(ne,e,yi||t),yi=0;var r=ne.__H||(ne.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Qo(e){return yi=1,Sy(xy,e)}function Sy(e,t,r){var n=_i(Lr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):xy(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=ne,!ne.__f)){var i=function(s,l,c){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,l,c);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,l,c)||u};ne.__f=!0;var o=ne.shouldComponentUpdate,a=ne.componentWillUpdate;ne.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},ne.shouldComponentUpdate=i}return n.__N||n.__}function bi(e,t){var r=_i(Lr++,3);!he.__s&&Yc(r.__H,t)&&(r.__=e,r.u=t,ne.__H.__h.push(r))}function sn(e,t){var r=_i(Lr++,4);!he.__s&&Yc(r.__H,t)&&(r.__=e,r.u=t,ne.__h.push(r))}function wi(e){return yi=5,Ii(function(){return{current:e}},[])}function Ii(e,t){var r=_i(Lr++,7);return Yc(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function ln(e,t){return yi=8,Ii(function(){return e},t)}function cn(e){var t=ne.context[e.__c],r=_i(Lr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ne)),t.props.value):e.__}function KR(){for(var e;e=Iy.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ko),e.__H.__h.forEach(Qc),e.__H.__h=[]}catch(t){e.__H.__h=[],he.__e(t,e.__v)}}function QR(e){var t,r=function(){clearTimeout(n),wy&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);wy&&(t=requestAnimationFrame(r))}function Ko(e){var t=ne,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ne=t}function Qc(e){var t=ne;e.__c=e.__(),ne=t}function Yc(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function xy(e,t){return typeof t=="function"?t(e):t}var Lr,ne,Kc,hy,yi,Iy,he,my,vy,gy,yy,_y,by,wy,Xc=k(()=>{Qr();yi=0,Iy=[],he=R,my=he.__b,vy=he.__r,gy=he.diffed,yy=he.__c,_y=he.unmount,by=he.__;he.__b=function(e){ne=null,my&&my(e)},he.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),by&&by(e,t)},he.__r=function(e){vy&&vy(e),Lr=0;var t=(ne=e.__c).__H;t&&(Kc===ne?(t.__h=[],ne.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Ko),t.__h.forEach(Qc),t.__h=[],Lr=0)),Kc=ne},he.diffed=function(e){gy&&gy(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Iy.push(t)!==1&&hy===he.requestAnimationFrame||((hy=he.requestAnimationFrame)||QR)(KR)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Kc=ne=null},he.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ko),r.__h=r.__h.filter(function(n){return!n.__||Qc(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],he.__e(n,r.__v)}}),yy&&yy(e,t)},he.unmount=function(e){_y&&_y(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ko(n)}catch(i){t=i}}),r.__H=void 0,t&&he.__e(t,r.__v))};wy=typeof requestAnimationFrame=="function"});function Dy(e,t){for(var r in t)e[r]=t[r];return e}function eu(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 Ey(e,t){this.props=e,this.context=t}function ru(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:eu(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Ue(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function nu(e){function t(r){var n=Dy({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=YR,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Ly(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=Dy({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Ly(n,t,r)})),e}function qy(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return qy(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 Zc(){this.__u=0,this.o=null,this.__b=null}function Fy(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Yo(){this.i=null,this.l=null}function iu(e,t,r){return t.__k==null&&(t.textContent=""),cr(e,t),typeof r=="function"&&r(),e?e.__c:null}function oN(){}function aN(){return this.cancelBubble}function sN(){return this.defaultPrevented}var tu,ky,YR,XR,Ay,Ty,ZR,eN,tN,rN,nN,iN,Cy,My,lN,Py,Oy,Ry,Xo=k(()=>{Qr();Qr();Xc();Xc();tu=sn;(Ey.prototype=new st).isPureReactComponent=!0,Ey.prototype.shouldComponentUpdate=function(e,t){return eu(this.props,e)||eu(this.state,t)};ky=R.__b;R.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ky&&ky(e)};YR=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;XR=R.__e;R.__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)}XR(e,t,r,n)};Ay=R.unmount;R.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ay&&Ay(e)},(Zc.prototype=new st).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Fy(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 l=n.state.__a;n.__v.__k[0]=qy(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Zc.prototype.componentWillUnmount=function(){this.o=[]},Zc.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]=Ly(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Ue(Ne,null,e.fallback);return i&&(i.__u&=-33),[Ue(Ne,null,t.__a?null:e.children),i]};Ty=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]}};(Yo.prototype=new st).__a=function(e){var t=this,r=Fy(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Ty(t,e,n)):i()};r?r(o):o()}},Yo.prototype.render=function(e){this.i=null,this.l=new Map;var t=ti(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},Yo.prototype.componentDidUpdate=Yo.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Ty(e,r,t)})};ZR=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,eN=/^(?: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]/,tN=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,rN=/[A-Z0-9]/g,nN=typeof document!="undefined",iN=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})}})});Cy=R.event;R.event=function(e){return Cy&&(e=Cy(e)),e.persist=oN,e.isPropagationStopped=aN,e.isDefaultPrevented=sN,e.nativeEvent=e};lN={enumerable:!1,configurable:!0,get:function(){return this.class}},Py=R.vnode;R.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||nN&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||iN(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":tN.test(a)&&(a=l):l=a="oninput":o&&eN.test(a)?a=a.replace(rN,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&i[a=l]&&(a="oninputCapture"),i[a]=s}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=ti(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=ti(r.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",lN)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=ZR,Py&&Py(e)};Oy=R.__r;R.__r=function(e){Oy&&Oy(e),My=e.__c};Ry=R.diffed;R.diffed=function(e){Ry&&Ry(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),My=null}});var au=h(()=>{"use strict";var uN=Y(),ou=de();uN({global:!0,forced:ou.globalThis!==ou},{globalThis:ou})});var jy=h(()=>{"use strict";au()});var By=h((Vz,Uy)=>{"use strict";au();Uy.exports=de()});var Hy=h((Gz,Jy)=>{"use strict";var dN=By();Jy.exports=dN});var Vy=h((zz,$y)=>{"use strict";var pN=Hy();$y.exports=pN});var zy=h((Wz,Gy)=>{"use strict";jy();var fN=Vy();Gy.exports=fN});var Ky=h((Kz,Wy)=>{"use strict";Wy.exports=zy()});var Yy=h((Qz,Qy)=>{Qy.exports=Ky()});var Xy=h(()=>{"use strict";var hN=Y(),mN=di();hN({target:"Array",stat:!0},{isArray:mN})});var e_=h((Zz,Zy)=>{"use strict";Xy();var vN=Ot();Zy.exports=vN.Array.isArray});var r_=h((e6,t_)=>{"use strict";var gN=e_();t_.exports=gN});var i_=h((t6,n_)=>{n_.exports=r_()});var a_=h((r6,o_)=>{"use strict";o_.exports=function(){}});var qr=h((n6,s_)=>{"use strict";s_.exports={}});var su=h((i6,c_)=>{"use strict";var yN=de(),_N=De(),l_=yN.WeakMap;c_.exports=_N(l_)&&/native code/.test(String(l_))});var Zo=h((o6,d_)=>{"use strict";var bN=Ec(),wN=$o(),u_=bN("keys");d_.exports=function(e){return u_[e]||(u_[e]=wN(e))}});var Si=h((a6,p_)=>{"use strict";p_.exports={}});var Mr=h((s6,m_)=>{"use strict";var IN=su(),h_=de(),SN=Ae(),xN=Dr(),lu=lt(),cu=ai(),EN=Zo(),kN=Si(),f_="Object already initialized",uu=h_.TypeError,AN=h_.WeakMap,ea,xi,ta,TN=function(e){return ta(e)?xi(e):ea(e,{})},CN=function(e){return function(t){var r;if(!SN(t)||(r=xi(t)).type!==e)throw new uu("Incompatible receiver, "+e+" required");return r}};IN||cu.state?(xt=cu.state||(cu.state=new AN),xt.get=xt.get,xt.has=xt.has,xt.set=xt.set,ea=function(e,t){if(xt.has(e))throw new uu(f_);return t.facade=e,xt.set(e,t),t},xi=function(e){return xt.get(e)||{}},ta=function(e){return xt.has(e)}):(Fr=EN("state"),kN[Fr]=!0,ea=function(e,t){if(lu(e,Fr))throw new uu(f_);return t.facade=e,xN(e,Fr,t),t},xi=function(e){return lu(e,Fr)?e[Fr]:{}},ta=function(e){return lu(e,Fr)});var xt,Fr;m_.exports={set:ea,get:xi,has:ta,enforce:TN,getterFor:CN}});var fu=h((l6,g_)=>{"use strict";var du=Ke(),PN=lt(),v_=Function.prototype,ON=du&&Object.getOwnPropertyDescriptor,pu=PN(v_,"name"),RN=pu&&(function(){}).name==="something",NN=pu&&(!du||du&&ON(v_,"name").configurable);g_.exports={EXISTS:pu,PROPER:RN,CONFIGURABLE:NN}});var hu=h((c6,y_)=>{"use strict";var DN=ui(),LN=Math.max,qN=Math.min;y_.exports=function(e,t){var r=DN(e);return r<0?LN(r+t,0):qN(r,t)}});var mu=h((u6,b_)=>{"use strict";var FN=ur(),MN=hu(),jN=on(),__=function(e){return function(t,r,n){var i=FN(t),o=jN(i);if(o===0)return!e&&-1;var a=MN(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}};b_.exports={includes:__(!0),indexOf:__(!1)}});var gu=h((d6,I_)=>{"use strict";var UN=ye(),vu=lt(),BN=ur(),JN=mu().indexOf,HN=Si(),w_=UN([].push);I_.exports=function(e,t){var r=BN(e),n=0,i=[],o;for(o in r)!vu(HN,o)&&vu(r,o)&&w_(i,o);for(;t.length>n;)vu(r,o=t[n++])&&(~JN(i,o)||w_(i,o));return i}});var ra=h((p6,S_)=>{"use strict";S_.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var yu=h((f6,x_)=>{"use strict";var $N=gu(),VN=ra();x_.exports=Object.keys||function(t){return $N(t,VN)}});var k_=h(E_=>{"use strict";var GN=Ke(),zN=Rc(),WN=Wt(),KN=zt(),QN=ur(),YN=yu();E_.f=GN&&!zN?Object.defineProperties:function(t,r){KN(t);for(var n=QN(r),i=YN(r),o=i.length,a=0,s;o>a;)WN.f(t,s=i[a++],n[s]);return t}});var T_=h((m6,A_)=>{"use strict";var XN=Xr();A_.exports=XN("document","documentElement")});var Ei=h((v6,L_)=>{"use strict";var ZN=zt(),eD=k_(),C_=ra(),tD=Si(),rD=T_(),nD=Cc(),iD=Zo(),P_=">",O_="<",bu="prototype",wu="script",N_=iD("IE_PROTO"),_u=function(){},D_=function(e){return O_+wu+P_+e+O_+"/"+wu+P_},R_=function(e){e.write(D_("")),e.close();var t=e.parentWindow.Object;return e=null,t},oD=function(){var e=nD("iframe"),t="java"+wu+":",r;return e.style.display="none",rD.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(D_("document.F=Object")),r.close(),r.F},na,ia=function(){try{na=new ActiveXObject("htmlfile")}catch(t){}ia=typeof document!="undefined"?document.domain&&na?R_(na):oD():R_(na);for(var e=C_.length;e--;)delete ia[bu][C_[e]];return ia()};tD[N_]=!0;L_.exports=Object.create||function(t,r){var n;return t!==null?(_u[bu]=ZN(t),n=new _u,_u[bu]=null,n[N_]=t):n=ia(),r===void 0?n:eD.f(n,r)}});var F_=h((g6,q_)=>{"use strict";var aD=ue();q_.exports=!aD(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Su=h((y6,j_)=>{"use strict";var sD=lt(),lD=De(),cD=en(),uD=Zo(),dD=F_(),M_=uD("IE_PROTO"),Iu=Object,pD=Iu.prototype;j_.exports=dD?Iu.getPrototypeOf:function(e){var t=cD(e);if(sD(t,M_))return t[M_];var r=t.constructor;return lD(r)&&t instanceof r?r.prototype:t instanceof Iu?pD:null}});var oa=h((_6,U_)=>{"use strict";var fD=Dr();U_.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:fD(e,t,r),e}});var Au=h((b6,H_)=>{"use strict";var hD=ue(),mD=De(),vD=Ae(),gD=Ei(),B_=Su(),yD=oa(),_D=Be(),bD=Zr(),ku=_D("iterator"),J_=!1,Kt,xu,Eu;[].keys&&(Eu=[].keys(),"next"in Eu?(xu=B_(B_(Eu)),xu!==Object.prototype&&(Kt=xu)):J_=!0);var wD=!vD(Kt)||hD(function(){var e={};return Kt[ku].call(e)!==e});wD?Kt={}:bD&&(Kt=gD(Kt));mD(Kt[ku])||yD(Kt,ku,function(){return this});H_.exports={IteratorPrototype:Kt,BUGGY_SAFARI_ITERATORS:J_}});var V_=h((w6,$_)=>{"use strict";var ID=Go(),SD=an();$_.exports=ID?{}.toString:function(){return"[object "+SD(this)+"]"}});var ki=h((I6,z_)=>{"use strict";var xD=Go(),ED=Wt().f,kD=Dr(),AD=lt(),TD=V_(),CD=Be(),G_=CD("toStringTag");z_.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(AD(i,G_)||ED(i,G_,{configurable:!0,value:t}),n&&!xD&&kD(i,"toString",TD))}});var K_=h((S6,W_)=>{"use strict";var PD=Au().IteratorPrototype,OD=Ei(),RD=ii(),ND=ki(),DD=qr(),LD=function(){return this};W_.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=OD(PD,{next:RD(+!n,r)}),ND(e,i,!1,!0),DD[i]=LD,e}});var Y_=h((x6,Q_)=>{"use strict";var qD=ye(),FD=Nr();Q_.exports=function(e,t,r){try{return qD(FD(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var Z_=h((E6,X_)=>{"use strict";var MD=Ae();X_.exports=function(e){return MD(e)||e===null}});var tb=h((k6,eb)=>{"use strict";var jD=Z_(),UD=String,BD=TypeError;eb.exports=function(e){if(jD(e))return e;throw new BD("Can't set "+UD(e)+" as a prototype")}});var nb=h((A6,rb)=>{"use strict";var JD=Y_(),HD=Ae(),$D=Rr(),VD=tb();rb.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=JD(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return $D(i),VD(o),HD(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var la=h((T6,fb)=>{"use strict";var GD=Y(),zD=It(),aa=Zr(),db=fu(),WD=De(),KD=K_(),ib=Su(),ob=nb(),QD=ki(),YD=Dr(),Tu=oa(),XD=Be(),ab=qr(),pb=Au(),ZD=db.PROPER,eL=db.CONFIGURABLE,sb=pb.IteratorPrototype,sa=pb.BUGGY_SAFARI_ITERATORS,Ai=XD("iterator"),lb="keys",Ti="values",cb="entries",ub=function(){return this};fb.exports=function(e,t,r,n,i,o,a){KD(r,t,n);var s=function(v){if(v===i&&p)return p;if(!sa&&v&&v in d)return d[v];switch(v){case lb:return function(){return new r(this,v)};case Ti:return function(){return new r(this,v)};case cb:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[Ai]||d["@@iterator"]||i&&d[i],p=!sa&&u||s(i),f=t==="Array"&&d.entries||u,m,g,_;if(f&&(m=ib(f.call(new e)),m!==Object.prototype&&m.next&&(!aa&&ib(m)!==sb&&(ob?ob(m,sb):WD(m[Ai])||Tu(m,Ai,ub)),QD(m,l,!0,!0),aa&&(ab[l]=ub))),ZD&&i===Ti&&u&&u.name!==Ti&&(!aa&&eL?YD(d,"name",Ti):(c=!0,p=function(){return zD(u,this)})),i)if(g={values:s(Ti),keys:o?p:s(lb),entries:s(cb)},a)for(_ in g)(sa||c||!(_ in d))&&Tu(d,_,g[_]);else GD({target:t,proto:!0,forced:sa||c},g);return(!aa||a)&&d[Ai]!==p&&Tu(d,Ai,p,{name:i}),ab[t]=p,g}});var ca=h((C6,hb)=>{"use strict";hb.exports=function(e,t){return{value:e,done:t}}});var da=h((P6,_b)=>{"use strict";var tL=ur(),Cu=a_(),mb=qr(),gb=Mr(),rL=Wt().f,nL=la(),ua=ca(),iL=Zr(),oL=Ke(),yb="Array Iterator",aL=gb.set,sL=gb.getterFor(yb);_b.exports=nL(Array,"Array",function(e,t){aL(this,{type:yb,target:tL(e),index:0,kind:t})},function(){var e=sL(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,ua(void 0,!0);switch(e.kind){case"keys":return ua(r,!1);case"values":return ua(t[r],!1)}return ua([r,t[r]],!1)},"values");var vb=mb.Arguments=mb.Array;Cu("keys");Cu("values");Cu("entries");if(!iL&&oL&&vb.name!=="values")try{rL(vb,"name",{value:"values"})}catch(e){}});var Pu=h(()=>{});var Ou=h((N6,bb)=>{"use strict";var lL=ue();bb.exports=!lL(function(){return Object.isExtensible(Object.preventExtensions({}))})});var pa=h((D6,wb)=>{"use strict";var cL=oa();wb.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:cL(e,n,t[n],r);return e}});var Ru=h(Ib=>{"use strict";var uL=gu(),dL=ra(),pL=dL.concat("length","prototype");Ib.f=Object.getOwnPropertyNames||function(t){return uL(t,pL)}});var kb=h((q6,Eb)=>{"use strict";var fL=Gt(),hL=ur(),Sb=Ru().f,mL=gi(),xb=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vL=function(e){try{return Sb(e)}catch(t){return mL(xb)}};Eb.exports.f=function(t){return xb&&fL(t)==="Window"?vL(t):Sb(hL(t))}});var Tb=h((F6,Ab)=>{"use strict";var gL=ue();Ab.exports=gL(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var Ob=h((M6,Pb)=>{"use strict";var yL=ue(),_L=Ae(),bL=Gt(),Cb=Tb(),fa=Object.isExtensible,wL=yL(function(){fa(1)});Pb.exports=wL||Cb?function(t){return!_L(t)||Cb&&bL(t)==="ArrayBuffer"?!1:fa?fa(t):!0}:fa});var Ci=h((j6,Db)=>{"use strict";var IL=Y(),SL=ye(),xL=Si(),EL=Ae(),Nu=lt(),kL=Wt().f,Rb=Ru(),AL=kb(),Du=Ob(),TL=$o(),CL=Ou(),Nb=!1,Qt=TL("meta"),PL=0,Lu=function(e){kL(e,Qt,{value:{objectID:"O"+PL++,weakData:{}}})},OL=function(e,t){if(!EL(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Nu(e,Qt)){if(!Du(e))return"F";if(!t)return"E";Lu(e)}return e[Qt].objectID},RL=function(e,t){if(!Nu(e,Qt)){if(!Du(e))return!0;if(!t)return!1;Lu(e)}return e[Qt].weakData},NL=function(e){return CL&&Nb&&Du(e)&&!Nu(e,Qt)&&Lu(e),e},DL=function(){LL.enable=function(){},Nb=!0;var e=Rb.f,t=SL([].splice),r={};r[Qt]=1,e(r).length&&(Rb.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Qt){t(i,o,1);break}return i},IL({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:AL.f}))},LL=Db.exports={enable:DL,fastKey:OL,getWeakData:RL,onFreeze:NL};xL[Qt]=!0});var qb=h((U6,Lb)=>{"use strict";var qL=Be(),FL=qr(),ML=qL("iterator"),jL=Array.prototype;Lb.exports=function(e){return e!==void 0&&(FL.Array===e||jL[ML]===e)}});var qu=h((B6,Mb)=>{"use strict";var UL=an(),Fb=Ho(),BL=Or(),JL=qr(),HL=Be(),$L=HL("iterator");Mb.exports=function(e){if(!BL(e))return Fb(e,$L)||Fb(e,"@@iterator")||JL[UL(e)]}});var Ub=h((J6,jb)=>{"use strict";var VL=It(),GL=Nr(),zL=zt(),WL=oi(),KL=qu(),QL=TypeError;jb.exports=function(e,t){var r=arguments.length<2?KL(e):t;if(GL(r))return zL(VL(r,e));throw new QL(WL(e)+" is not iterable")}});var ha=h((H6,Jb)=>{"use strict";var YL=It(),Bb=zt(),XL=Ho();Jb.exports=function(e,t,r){var n,i;Bb(e);try{if(n=XL(e,"return"),!n){if(t==="throw")throw r;return r}n=YL(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return Bb(n),r}});var va=h(($6,Gb)=>{"use strict";var ZL=li(),eq=It(),tq=zt(),rq=oi(),nq=qb(),iq=on(),Hb=We(),oq=Ub(),aq=qu(),$b=ha(),sq=TypeError,ma=function(e,t){this.stopped=e,this.result=t},Vb=ma.prototype;Gb.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),l=ZL(t,n),c,d,u,p,f,m,g,_=function(b){return c&&$b(c,"normal",b),new ma(!0,b)},v=function(b){return i?(tq(b),s?l(b[0],b[1],_):l(b[0],b[1])):s?l(b,_):l(b)};if(o)c=e.iterator;else if(a)c=e;else{if(d=aq(e),!d)throw new sq(rq(e)+" is not iterable");if(nq(d)){for(u=0,p=iq(e);p>u;u++)if(f=v(e[u]),f&&Hb(Vb,f))return f;return new ma(!1)}c=oq(e,d)}for(m=o?e.next:c.next;!(g=eq(m,c)).done;){try{f=v(g.value)}catch(b){$b(c,"throw",b)}if(typeof f=="object"&&f&&Hb(Vb,f))return f}return new ma(!1)}});var ga=h((V6,zb)=>{"use strict";var lq=We(),cq=TypeError;zb.exports=function(e,t){if(lq(t,e))return e;throw new cq("Incorrect invocation")}});var Fu=h((G6,Kb)=>{"use strict";var uq=Y(),dq=de(),pq=Ci(),fq=ue(),hq=Dr(),mq=va(),vq=ga(),gq=De(),yq=Ae(),_q=Or(),bq=ki(),wq=Wt().f,Iq=pr().forEach,Sq=Ke(),Wb=Mr(),xq=Wb.set,Eq=Wb.getterFor;Kb.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=dq[e],s=a&&a.prototype,l={},c;if(!Sq||!gq(a)||!(i||s.forEach&&!fq(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),pq.enable();else{c=t(function(p,f){xq(vq(p,d),{type:e,collection:new a}),_q(f)||mq(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=Eq(e);Iq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&hq(d,p,function(m,g){var _=u(this).collection;if(!f&&i&&!yq(m))return p==="get"?void 0:!1;var v=_[p](m===0?0:m,g);return f?this:v})}),i||wq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return bq(c,e,!1,!0),l[e]=c,uq({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var rw=h((z6,tw)=>{"use strict";var kq=ye(),Qb=pa(),ya=Ci().getWeakData,Aq=ga(),Tq=zt(),Cq=Or(),Mu=Ae(),Pq=va(),Xb=pr(),Yb=lt(),Zb=Mr(),Oq=Zb.set,Rq=Zb.getterFor,Nq=Xb.find,Dq=Xb.findIndex,Lq=kq([].splice),qq=0,_a=function(e){return e.frozen||(e.frozen=new ew)},ew=function(){this.entries=[]},ju=function(e,t){return Nq(e.entries,function(r){return r[0]===t})};ew.prototype={get:function(e){var t=ju(this,e);if(t)return t[1]},has:function(e){return!!ju(this,e)},set:function(e,t){var r=ju(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Dq(this.entries,function(r){return r[0]===e});return~t&&Lq(this.entries,t,1),!!~t}};tw.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){Aq(l,o),Oq(l,{type:t,id:qq++,frozen:null}),Cq(c)||Pq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Rq(t),s=function(l,c,d){var u=a(l),p=ya(Tq(c),!0);return p===!0?_a(u).set(c,d):p[u.id]=d,l};return Qb(o,{delete:function(l){var c=a(this);if(!Mu(l))return!1;var d=ya(l);return d===!0?_a(c).delete(l):d&&Yb(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!Mu(c))return!1;var u=ya(c);return u===!0?_a(d).has(c):u&&Yb(u,d.id)}}),Qb(o,r?{get:function(c){var d=a(this);if(Mu(c)){var u=ya(c);if(u===!0)return _a(d).get(c);if(u)return u[d.id]}},set:function(c,d){return s(this,c,d)}}:{add:function(c){return s(this,c,!0)}}),i}}});var uw=h(()=>{"use strict";var Fq=Ou(),nw=de(),Sa=ye(),iw=pa(),Mq=Ci(),jq=Fu(),ow=rw(),ba=Ae(),wa=Mr().enforce,Uq=ue(),Bq=su(),Ri=Object,Jq=Array.isArray,Ia=Ri.isExtensible,aw=Ri.isFrozen,Hq=Ri.isSealed,sw=Ri.freeze,$q=Ri.seal,Vq=!nw.ActiveXObject&&"ActiveXObject"in nw,Pi,lw=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},cw=jq("WeakMap",lw,ow),un=cw.prototype,xa=Sa(un.set),Gq=function(){return Fq&&Uq(function(){var e=sw([]);return xa(new cw,e,1),!aw(e)})};Bq&&(Vq?(Pi=ow.getConstructor(lw,"WeakMap",!0),Mq.enable(),Uu=Sa(un.delete),Oi=Sa(un.has),Bu=Sa(un.get),iw(un,{delete:function(e){if(ba(e)&&!Ia(e)){var t=wa(this);return t.frozen||(t.frozen=new Pi),Uu(this,e)||t.frozen.delete(e)}return Uu(this,e)},has:function(t){if(ba(t)&&!Ia(t)){var r=wa(this);return r.frozen||(r.frozen=new Pi),Oi(this,t)||r.frozen.has(t)}return Oi(this,t)},get:function(t){if(ba(t)&&!Ia(t)){var r=wa(this);return r.frozen||(r.frozen=new Pi),Oi(this,t)?Bu(this,t):r.frozen.get(t)}return Bu(this,t)},set:function(t,r){if(ba(t)&&!Ia(t)){var n=wa(this);n.frozen||(n.frozen=new Pi),Oi(this,t)?xa(this,t,r):n.frozen.set(t,r)}else xa(this,t,r);return this}})):Gq()&&iw(un,{set:function(t,r){var n;return Jq(t)&&(aw(t)?n=sw:Hq(t)&&(n=$q)),xa(this,t,r),n&&n(t),this}}));var Uu,Oi,Bu});var dw=h(()=>{"use strict";uw()});var fw=h((X6,pw)=>{"use strict";da();Pu();dw();var zq=Ot();pw.exports=zq.WeakMap});var mw=h((Z6,hw)=>{"use strict";hw.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 Ju=h(()=>{"use strict";da();var Wq=mw(),Kq=de(),Qq=ki(),vw=qr();for(Ea in Wq)Qq(Kq[Ea],Ea),vw[Ea]=vw.Array;var Ea});var yw=h((rW,gw)=>{"use strict";var Yq=fw();Ju();gw.exports=Yq});var bw=h((nW,_w)=>{_w.exports=yw()});var Iw=h(()=>{"use strict";var Xq=Y(),Zq=ni(),eF=mu().indexOf,tF=hi(),Hu=Zq([].indexOf),ww=!!Hu&&1/Hu([1],1,-0)<0,rF=ww||!tF("indexOf");Xq({target:"Array",proto:!0,forced:rF},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return ww?Hu(this,t,r)||0:eF(this,t,r)}})});var xw=h((aW,Sw)=>{"use strict";Iw();var nF=yt();Sw.exports=nF("Array","indexOf")});var kw=h((sW,Ew)=>{"use strict";var iF=We(),oF=xw(),$u=Array.prototype;Ew.exports=function(e){var t=e.indexOf;return e===$u||iF($u,e)&&t===$u.indexOf?oF:t}});var Tw=h((lW,Aw)=>{"use strict";var aF=kw();Aw.exports=aF});var Pw=h((cW,Cw)=>{Cw.exports=Tw()});var Ow=h(()=>{"use strict";var sF=Y(),lF=pr().map,cF=fi(),uF=cF("map");sF({target:"Array",proto:!0,forced:!uF},{map:function(t){return lF(this,t,arguments.length>1?arguments[1]:void 0)}})});var Nw=h((pW,Rw)=>{"use strict";Ow();var dF=yt();Rw.exports=dF("Array","map")});var Lw=h((fW,Dw)=>{"use strict";var pF=We(),fF=Nw(),Vu=Array.prototype;Dw.exports=function(e){var t=e.map;return e===Vu||pF(Vu,e)&&t===Vu.map?fF:t}});var Fw=h((hW,qw)=>{"use strict";var hF=Lw();qw.exports=hF});var jw=h((mW,Mw)=>{Mw.exports=Fw()});var Uw=h(()=>{"use strict";var mF=Y(),vF=Ke(),gF=Ei();mF({target:"Object",stat:!0,sham:!vF},{create:gF})});var Jw=h((yW,Bw)=>{"use strict";Uw();var yF=Ot(),_F=yF.Object;Bw.exports=function(t,r){return _F.create(t,r)}});var $w=h((_W,Hw)=>{"use strict";var bF=Jw();Hw.exports=bF});var Gw=h((bW,Vw)=>{Vw.exports=$w()});var Gu=h((wW,zw)=>{"use strict";var wF=Wt();zw.exports=function(e,t,r){return wF.f(e,t,r)}});var Qw=h((IW,Kw)=>{"use strict";var IF=Xr(),SF=Gu(),xF=Be(),EF=Ke(),Ww=xF("species");Kw.exports=function(e){var t=IF(e);EF&&t&&!t[Ww]&&SF(t,Ww,{configurable:!0,get:function(){return this}})}});var n0=h((SW,r0)=>{"use strict";var Yw=Ei(),kF=Gu(),Xw=pa(),AF=li(),TF=ga(),CF=Or(),PF=va(),OF=la(),ka=ca(),RF=Qw(),Ni=Ke(),Zw=Ci().fastKey,t0=Mr(),e0=t0.set,zu=t0.getterFor;r0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){TF(c,o),e0(c,{type:t,index:Yw(null),first:null,last:null,size:0}),Ni||(c.size=0),CF(d)||PF(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=zu(t),s=function(c,d,u){var p=a(c),f=l(c,d),m,g;return f?f.value=u:(p.last=f={index:g=Zw(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Ni?p.size++:c.size++,g!=="F"&&(p.index[g]=f)),c},l=function(c,d){var u=a(c),p=Zw(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return Xw(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=Yw(null),Ni?u.size=0:d.size=0},delete:function(c){var d=this,u=a(d),p=l(d,c);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),Ni?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=AF(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!!l(this,d)}}),Xw(o,r?{get:function(d){var u=l(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)}}),Ni&&kF(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=zu(t),o=zu(n);OF(e,t,function(a,s){e0(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=null,ka(void 0,!0)):ka(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),RF(t)}}});var i0=h(()=>{"use strict";var NF=Fu(),DF=n0();NF("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},DF)});var o0=h(()=>{"use strict";i0()});var fr=h((TW,a0)=>{"use strict";var LF=oi(),qF=TypeError;a0.exports=function(e){if(typeof e=="object"&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new qF(LF(e)+" is not a set")}});var l0=h((CW,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 hr=h((PW,u0)=>{"use strict";var FF=Xr(),Wu=l0(),c0=FF("Set"),MF=c0.prototype;u0.exports={Set:c0,add:Wu("add",1),has:Wu("has",1),remove:Wu("delete",1),proto:MF}});var mr=h((OW,d0)=>{"use strict";var jF=It();d0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=jF(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var dn=h((RW,p0)=>{"use strict";var UF=mr();p0.exports=function(e,t,r){return r?UF(e.keys(),t,!0):e.forEach(t)}});var Aa=h((NW,h0)=>{"use strict";var f0=hr(),BF=dn(),JF=f0.Set,HF=f0.add;h0.exports=function(e){var t=new JF;return BF(e,function(r){HF(t,r)}),t}});var pn=h((DW,m0)=>{"use strict";m0.exports=function(e){return e.size}});var g0=h((LW,v0)=>{"use strict";v0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var vr=h((qW,S0)=>{"use strict";var y0=Nr(),w0=zt(),_0=It(),$F=ui(),VF=g0(),b0="Invalid size",GF=RangeError,zF=TypeError,WF=Math.max,I0=function(e,t){this.set=e,this.size=WF(t,0),this.has=y0(e.has),this.keys=y0(e.keys)};I0.prototype={getIterator:function(){return VF(w0(_0(this.keys,this.set)))},includes:function(e){return _0(this.has,this.set,e)}};S0.exports=function(e){w0(e);var t=+e.size;if(t!==t)throw new zF(b0);var r=$F(t);if(r<0)throw new GF(b0);return new I0(e,r)}});var A0=h((FW,k0)=>{"use strict";var KF=fr(),E0=hr(),QF=Aa(),YF=pn(),XF=vr(),ZF=dn(),eM=mr(),tM=E0.has,x0=E0.remove;k0.exports=function(t){var r=KF(this),n=XF(t),i=QF(r);return YF(r)<=n.size?ZF(r,function(o){n.includes(o)&&x0(i,o)}):eM(n.getIterator(),function(o){tM(r,o)&&x0(i,o)}),i}});var gr=h((MW,T0)=>{"use strict";T0.exports=function(){return!1}});var C0=h(()=>{"use strict";var rM=Y(),nM=A0(),iM=gr(),oM=!iM("difference",function(e){return e.size===0});rM({target:"Set",proto:!0,real:!0,forced:oM},{difference:nM})});var R0=h((BW,O0)=>{"use strict";var aM=fr(),Ku=hr(),sM=pn(),lM=vr(),cM=dn(),uM=mr(),dM=Ku.Set,P0=Ku.add,pM=Ku.has;O0.exports=function(t){var r=aM(this),n=lM(t),i=new dM;return sM(r)>n.size?uM(n.getIterator(),function(o){pM(r,o)&&P0(i,o)}):cM(r,function(o){n.includes(o)&&P0(i,o)}),i}});var N0=h(()=>{"use strict";var fM=Y(),hM=ue(),mM=R0(),vM=gr(),gM=!vM("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||hM(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});fM({target:"Set",proto:!0,real:!0,forced:gM},{intersection:mM})});var L0=h(($W,D0)=>{"use strict";var yM=fr(),_M=hr().has,bM=pn(),wM=vr(),IM=dn(),SM=mr(),xM=ha();D0.exports=function(t){var r=yM(this),n=wM(t);if(bM(r)<=n.size)return IM(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return SM(i,function(o){if(_M(r,o))return xM(i,"normal",!1)})!==!1}});var q0=h(()=>{"use strict";var EM=Y(),kM=L0(),AM=gr(),TM=!AM("isDisjointFrom",function(e){return!e});EM({target:"Set",proto:!0,real:!0,forced:TM},{isDisjointFrom:kM})});var M0=h((zW,F0)=>{"use strict";var CM=fr(),PM=pn(),OM=dn(),RM=vr();F0.exports=function(t){var r=CM(this),n=RM(t);return PM(r)>n.size?!1:OM(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var j0=h(()=>{"use strict";var NM=Y(),DM=M0(),LM=gr(),qM=!LM("isSubsetOf",function(e){return e});NM({target:"Set",proto:!0,real:!0,forced:qM},{isSubsetOf:DM})});var B0=h((QW,U0)=>{"use strict";var FM=fr(),MM=hr().has,jM=pn(),UM=vr(),BM=mr(),JM=ha();U0.exports=function(t){var r=FM(this),n=UM(t);if(jM(r)<n.size)return!1;var i=n.getIterator();return BM(i,function(o){if(!MM(r,o))return JM(i,"normal",!1)})!==!1}});var J0=h(()=>{"use strict";var HM=Y(),$M=B0(),VM=gr(),GM=!VM("isSupersetOf",function(e){return!e});HM({target:"Set",proto:!0,real:!0,forced:GM},{isSupersetOf:$M})});var $0=h((ZW,H0)=>{"use strict";var zM=fr(),Qu=hr(),WM=Aa(),KM=vr(),QM=mr(),YM=Qu.add,XM=Qu.has,ZM=Qu.remove;H0.exports=function(t){var r=zM(this),n=KM(t).getIterator(),i=WM(r);return QM(n,function(o){XM(r,o)?ZM(i,o):YM(i,o)}),i}});var V0=h(()=>{"use strict";var ej=Y(),tj=$0(),rj=gr();ej({target:"Set",proto:!0,real:!0,forced:!rj("symmetricDifference")},{symmetricDifference:tj})});var z0=h((r8,G0)=>{"use strict";var nj=fr(),ij=hr().add,oj=Aa(),aj=vr(),sj=mr();G0.exports=function(t){var r=nj(this),n=aj(t).getIterator(),i=oj(r);return sj(n,function(o){ij(i,o)}),i}});var W0=h(()=>{"use strict";var lj=Y(),cj=z0(),uj=gr();lj({target:"Set",proto:!0,real:!0,forced:!uj("union")},{union:cj})});var Di=h((o8,K0)=>{"use strict";var dj=an(),pj=String;K0.exports=function(e){if(dj(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return pj(e)}});var Z0=h((a8,X0)=>{"use strict";var Yu=ye(),fj=ui(),hj=Di(),mj=Rr(),vj=Yu("".charAt),Q0=Yu("".charCodeAt),gj=Yu("".slice),Y0=function(e){return function(t,r){var n=hj(mj(t)),i=fj(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=Q0(n,i),a<55296||a>56319||i+1===o||(s=Q0(n,i+1))<56320||s>57343?e?vj(n,i):a:e?gj(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};X0.exports={codeAt:Y0(!1),charAt:Y0(!0)}});var nI=h(()=>{"use strict";var yj=Z0().charAt,_j=Di(),tI=Mr(),bj=la(),eI=ca(),rI="String Iterator",wj=tI.set,Ij=tI.getterFor(rI);bj(String,"String",function(e){wj(this,{type:rI,string:_j(e),index:0})},function(){var t=Ij(this),r=t.string,n=t.index,i;return n>=r.length?eI(void 0,!0):(i=yj(r,n),t.index+=i.length,eI(i,!1))})});var oI=h((c8,iI)=>{"use strict";da();Pu();o0();C0();N0();q0();j0();J0();V0();W0();nI();var Sj=Ot();iI.exports=Sj.Set});var sI=h((u8,aI)=>{"use strict";var xj=oI();Ju();aI.exports=xj});var cI=h((d8,lI)=>{lI.exports=sI()});var dI=h(uI=>{"use strict";uI.f=Object.getOwnPropertySymbols});var mI=h((f8,hI)=>{"use strict";var pI=Ke(),Ej=ye(),kj=It(),Aj=ue(),Xu=yu(),Tj=dI(),Cj=hc(),Pj=en(),Oj=jo(),fn=Object.assign,fI=Object.defineProperty,Rj=Ej([].concat);hI.exports=!fn||Aj(function(){if(pI&&fn({b:1},fn(fI({},"a",{enumerable:!0,get:function(){fI(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}),fn({},e)[r]!==7||Xu(fn({},t)).join("")!==n})?function(t,r){for(var n=Pj(t),i=arguments.length,o=1,a=Tj.f,s=Cj.f;i>o;)for(var l=Oj(arguments[o++]),c=a?Rj(Xu(l),a(l)):Xu(l),d=c.length,u=0,p;d>u;)p=c[u++],(!pI||kj(s,l,p))&&(n[p]=l[p]);return n}:fn});var gI=h(()=>{"use strict";var Nj=Y(),vI=mI();Nj({target:"Object",stat:!0,arity:2,forced:Object.assign!==vI},{assign:vI})});var _I=h((v8,yI)=>{"use strict";gI();var Dj=Ot();yI.exports=Dj.Object.assign});var wI=h((g8,bI)=>{"use strict";var Lj=_I();bI.exports=Lj});var SI=h((y8,II)=>{II.exports=wI()});var Zu=h((_8,xI)=>{"use strict";xI.exports=`
|
|
20
|
+
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var AI=h((b8,kI)=>{"use strict";var qj=ye(),Fj=Rr(),Mj=Di(),td=Zu(),EI=qj("".replace),jj=RegExp("^["+td+"]+"),Uj=RegExp("(^|[^"+td+"])["+td+"]+$"),ed=function(e){return function(t){var r=Mj(Fj(t));return e&1&&(r=EI(r,jj,"")),e&2&&(r=EI(r,Uj,"$1")),r}};kI.exports={start:ed(1),end:ed(2),trim:ed(3)}});var OI=h((w8,PI)=>{"use strict";var Bj=fu().PROPER,Jj=ue(),TI=Zu(),CI="\u200B\x85\u180E";PI.exports=function(e){return Jj(function(){return!!TI[e]()||CI[e]()!==CI||Bj&&TI[e].name!==e})}});var RI=h(()=>{"use strict";var Hj=Y(),$j=AI().trim,Vj=OI();Hj({target:"String",proto:!0,forced:Vj("trim")},{trim:function(){return $j(this)}})});var DI=h((x8,NI)=>{"use strict";RI();var Gj=yt();NI.exports=Gj("String","trim")});var qI=h((E8,LI)=>{"use strict";var zj=We(),Wj=DI(),rd=String.prototype;LI.exports=function(e){var t=e.trim;return typeof e=="string"||e===rd||zj(rd,e)&&t===rd.trim?Wj:t}});var MI=h((k8,FI)=>{"use strict";var Kj=qI();FI.exports=Kj});var UI=h((A8,jI)=>{jI.exports=MI()});var HI=h(()=>{"use strict";var Qj=Y(),BI=di(),Yj=Uc(),Xj=Ae(),JI=hu(),Zj=on(),eU=ur(),tU=Vc(),rU=Be(),nU=fi(),iU=gi(),oU=nU("slice"),aU=rU("species"),nd=Array,sU=Math.max;Qj({target:"Array",proto:!0,forced:!oU},{slice:function(t,r){var n=eU(this),i=Zj(n),o=JI(t,i),a=JI(r===void 0?i:r,i),s,l,c;if(BI(n)&&(s=n.constructor,Yj(s)&&(s===nd||BI(s.prototype))?s=void 0:Xj(s)&&(s=s[aU],s===null&&(s=void 0)),s===nd||s===void 0))return iU(n,o,a);for(l=new(s===void 0?nd:s)(sU(a-o,0)),c=0;o<a;o++,c++)o in n&&tU(l,c,n[o]);return l.length=c,l}})});var VI=h((P8,$I)=>{"use strict";HI();var lU=yt();$I.exports=lU("Array","slice")});var zI=h((O8,GI)=>{"use strict";var cU=We(),uU=VI(),id=Array.prototype;GI.exports=function(e){var t=e.slice;return e===id||cU(id,e)&&t===id.slice?uU:t}});var KI=h((R8,WI)=>{"use strict";var dU=zI();WI.exports=dU});var YI=h((N8,QI)=>{QI.exports=KI()});var od=k(()=>{});var ZI=h((L8,XI)=>{"use strict";var pU=Ae(),fU=Gt(),hU=Be(),mU=hU("match");XI.exports=function(e){var t;return pU(e)&&((t=e[mU])!==void 0?!!t:fU(e)==="RegExp")}});var tS=h((q8,eS)=>{"use strict";var vU=ZI(),gU=TypeError;eS.exports=function(e){if(vU(e))throw new gU("The method doesn't accept regular expressions");return e}});var nS=h((F8,rS)=>{"use strict";var yU=Be(),_U=yU("match");rS.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[_U]=!1,"/./"[e](t)}catch(n){}}return!1}});var aS=h(()=>{"use strict";var bU=Y(),wU=ni(),IU=Oc().f,SU=Fc(),iS=Di(),xU=tS(),EU=Rr(),kU=nS(),AU=Zr(),TU=wU("".slice),CU=Math.min,oS=kU("startsWith"),PU=!AU&&!oS&&!!function(){var e=IU(String.prototype,"startsWith");return e&&!e.writable}();bU({target:"String",proto:!0,forced:!PU&&!oS},{startsWith:function(t){var r=iS(EU(this));xU(t);var n=SU(CU(arguments.length>1?arguments[1]:void 0,r.length)),i=iS(t);return TU(r,n,n+i.length)===i}})});var lS=h((U8,sS)=>{"use strict";aS();var OU=yt();sS.exports=OU("String","startsWith")});var uS=h((B8,cS)=>{"use strict";var RU=We(),NU=lS(),ad=String.prototype;cS.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===ad||RU(ad,e)&&t===ad.startsWith?NU:t}});var pS=h((J8,dS)=>{"use strict";var DU=uS();dS.exports=DU});var hS=h((H8,fS)=>{fS.exports=pS()});var _S=h(($8,yS)=>{"use strict";var vS=ye(),LU=Nr(),qU=Ae(),FU=lt(),mS=gi(),MU=Yr(),gS=Function,jU=vS([].concat),UU=vS([].join),sd={},BU=function(e,t,r){if(!FU(sd,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";sd[t]=gS("C,a","return new C("+UU(n,",")+")")}return sd[t](e,r)};yS.exports=MU?gS.bind:function(t){var r=LU(this),n=r.prototype,i=mS(arguments,1),o=function(){var s=jU(i,mS(arguments));return this instanceof o?BU(r,s.length,s):r.apply(t,s)};return qU(n)&&(o.prototype=n),o}});var wS=h(()=>{"use strict";var JU=Y(),bS=_S();JU({target:"Function",proto:!0,forced:Function.bind!==bS},{bind:bS})});var SS=h((z8,IS)=>{"use strict";wS();var HU=yt();IS.exports=HU("Function","bind")});var ES=h((W8,xS)=>{"use strict";var $U=We(),VU=SS(),ld=Function.prototype;xS.exports=function(e){var t=e.bind;return e===ld||$U(ld,e)&&t===ld.bind?VU:t}});var AS=h((K8,kS)=>{"use strict";var GU=ES();kS.exports=GU});var CS=h((Q8,TS)=>{TS.exports=AS()});function za(e,t){_e.__h&&_e.__h(le,e,Bi||t),Bi=0;var r=le.__H||(le.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Mt(e){return Bi=1,zU(gx,e)}function zU(e,t,r){var n=za(yn++,2);if(n.t=e,!n.__c&&(n.__=[gx(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=le,!le.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,Cd.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,px.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,l,c);var p=n.__c.props!==s;return(0,Te.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,l,c)||p};le.__f=!0;var o=le.shouldComponentUpdate,a=le.componentWillUpdate;le.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},le.shouldComponentUpdate=i}return n.__N||n.__}function Ur(e,t){var r=za(yn++,3);!_e.__s&&vx(r.__H,t)&&(r.__=e,r.u=t,le.__H.__h.push(r))}function Fi(e){return Bi=5,Dd(function(){return{current:e}},[])}function Dd(e,t){var r=za(yn++,7);return vx(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function _t(e,t){return Bi=8,Dd(function(){return e},t)}function WU(e){var t=le.context[e.__c],r=za(yn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(le)),t.props.value):e.__}function KU(){for(var e;e=mx.shift();)if(e.__P&&e.__H)try{var t,r;(0,Te.default)(t=e.__H.__h).call(t,Ra),(0,Te.default)(r=e.__H.__h).call(r,gd),e.__H.__h=[]}catch(n){e.__H.__h=[],_e.__e(n,e.__v)}}function QU(e){var t,r=function(){clearTimeout(n),FS&&cancelAnimationFrame(t),(0,Ft.default)(e)},n=(0,Ft.default)(r,100);FS&&(t=requestAnimationFrame(r))}function Ra(e){var t=le,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),le=t}function gd(e){var t=le;e.__c=e.__(),le=t}function vx(e,t){return!e||e.length!==t.length||(0,Ua.default)(t).call(t,function(r,n){return r!==e[n]})}function gx(e,t){return typeof t=="function"?t(e):t}function YU(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yd(){throw new Error("setTimeout has not been defined")}function _d(){throw new Error("clearTimeout has not been defined")}function _x(e){if(Rt===Ft.default)return(0,Ft.default)(e,0);if((Rt===yd||!Rt)&&Ft.default)return Rt=Ft.default,(0,Ft.default)(e,0);try{return Rt(e,0)}catch(t){try{return Rt.call(null,e,0)}catch(r){return Rt.call(this,e,0)}}}function XU(e){if(Nt===clearTimeout)return clearTimeout(e);if((Nt===_d||!Nt)&&clearTimeout)return Nt=clearTimeout,clearTimeout(e);try{return Nt(e)}catch(t){try{return Nt.call(null,e)}catch(r){return Nt.call(this,e)}}}function ZU(){!mn||!yr||(mn=!1,yr.length?Yt=(0,Ga.default)(yr).call(yr,Yt):Na=-1,Yt.length&&bx())}function bx(){if(!mn){var e=_x(ZU);mn=!0;for(var t=Yt.length;t;){for(yr=Yt,Yt=[];++Na<t;)yr&&yr[Na].run();Na=-1,t=Yt.length}yr=null,mn=!1,XU(e)}}function wx(e,t){this.fun=e,this.array=t}function Zt(){}function r2(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 n2(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 s2(e,t){return Le(e,0)^45?(((t<<2^Le(e,0))<<2^Le(e,1))<<2^Le(e,2))<<2^Le(e,3):0}function xx(e){return(0,Rd.default)(e).call(e)}function l2(e,t){return(e=t.exec(e))?e[0]:e}function W(e,t,r){return e.replace(t,r)}function bd(e,t){return(0,Xt.default)(e).call(e,t)}function Le(e,t){return e.charCodeAt(t)|0}function Ji(e,t,r){return(0,Nd.default)(e).call(e,t,r)}function Dt(e){return e.length}function Md(e){return e.length}function Ta(e,t){return t.push(e),e}function c2(e,t){return(0,Ui.default)(e).call(e,t).join("")}function Qa(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ka,column:_n,length:a,return:""}}function Li(e,t){return a2(Qa("",null,null,"",null,null,0),e,{length:-e.length},t)}function u2(){return be}function d2(){return be=et>0?Le(wn,--et):0,_n--,be===10&&(_n=1,Ka--),be}function ct(){return be=et<Ex?Le(wn,et++):0,_n++,be===10&&(_n=1,Ka++),be}function jt(){return Le(wn,et)}function Da(){return et}function Wi(e,t){return Ji(wn,e,t)}function Hi(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 kx(e){return Ka=_n=1,Ex=Dt(wn=e),et=0,[]}function Ax(e){return wn="",e}function La(e){return xx(Wi(et-1,wd(e===91?e+2:e===40?e+1:e)))}function p2(e){for(;(be=jt())&&be<33;)ct();return Hi(e)>2||Hi(be)>3?"":" "}function f2(e,t){for(;--t&&ct()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Wi(e,Da()+(t<6&&jt()==32&&ct()==32))}function wd(e){for(;ct();)switch(be){case e:return et;case 34:case 39:e!==34&&e!==39&&wd(be);break;case 40:e===41&&wd(e);break;case 92:ct();break}return et}function h2(e,t){for(;ct()&&e+be!==57&&!(e+be===84&&jt()===47););return"/*"+Wi(t,et-1)+"*"+Wa(e===47?e:ct())}function m2(e){for(;!Hi(jt());)ct();return Wi(e,et)}function v2(e){return Ax(qa("",null,null,null,[""],e=kx(e),0,[0],e))}function qa(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,C=o,O=n,E=I;_;)switch(m=b,b=ct()){case 40:if(m!=108&&Le(E,u-1)==58){bd(E+=W(La(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=La(b);break;case 9:case 10:case 13:case 32:E+=p2(m);break;case 92:E+=f2(Da()-1,7);continue;case 47:switch(jt()){case 42:case 47:Ta(g2(h2(ct(),Da()),t,r),l);break;default:E+="/"}break;case 123*g:s[c++]=Dt(E)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:f>0&&Dt(E)-u&&Ta(f>32?jS(E+";",n,r,u-1):jS(W(E," ","")+";",n,r,u-2),l);break;case 59:E+=";";default:if(Ta(O=MS(E,t,r,c,d,i,s,I,A=[],C=[],u),o),b===123)if(d===0)qa(E,t,O,O,A,o,u,s,C);else switch(p===99&&Le(E,3)===110?100:p){case 100:case 109:case 115:qa(e,O,O,n&&Ta(MS(e,O,O,0,0,i,s,I,i,A=[],u),C),i,C,u,s,n?A:C);break;default:qa(E,O,O,O,[""],C,0,s,C)}}c=d=f=0,g=v=1,I=E="",u=a;break;case 58:u=1+Dt(E),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&d2()==125)continue}switch(E+=Wa(b),b*g){case 38:v=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(Dt(E)-1)*v,v=1;break;case 64:jt()===45&&(E+=La(ct())),p=jt(),d=u=Dt(I=E+=m2(Da())),b++;break;case 45:m===45&&Dt(E)==2&&(g=0)}}return o}function MS(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Md(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=Ji(e,u+1,u=o2(g=a[m])),I=e;v<f;++v)(I=xx(g>0?p[v]+" "+b:W(b,/&\f/g,p[v])))&&(l[_++]=I);return Qa(e,t,r,i===0?qd:s,l,c,d)}function g2(e,t,r){return Qa(e,t,r,Ld,Wa(u2()),Ji(e,2,-2),0)}function jS(e,t,r,n){return Qa(e,t,r,Fd,Ji(e,0,n),Ji(e,n+1,-1),n)}function vn(e,t){for(var r="",n=Md(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function y2(e,t,r,n){switch(e.type){case i2:case Fd:return e.return=e.return||e.value;case Ld:return"";case Sx:return e.return=e.value+"{"+vn(e.children,n)+"}";case qd:e.value=e.props.join(",")}return Dt(r=vn(e.children,n))?e.return=e.value+"{"+r+"}":""}function _2(e){var t=Md(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 b2(e){return function(t){t.root||(t=t.return)&&e(t)}}function Cx(e,t){switch(s2(e,t)){case 5103:return J+"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 J+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return J+e+Ja+e+Je+e+e;case 6828:case 4268:return J+e+Je+e+e;case 6165:return J+e+Je+"flex-"+e+e;case 5187:return J+e+W(e,/(\w+).+(:[^]+)/,J+"box-$1$2"+Je+"flex-$1$2")+e;case 5443:return J+e+Je+"flex-item-"+W(e,/flex-|-self/,"")+e;case 4675:return J+e+Je+"flex-line-pack"+W(e,/align-content|flex-|-self/,"")+e;case 5548:return J+e+Je+W(e,"shrink","negative")+e;case 5292:return J+e+Je+W(e,"basis","preferred-size")+e;case 6060:return J+"box-"+W(e,"-grow","")+J+e+Je+W(e,"grow","positive")+e;case 4554:return J+W(e,/([^-])(transform)/g,"$1"+J+"$2")+e;case 6187:return W(W(W(e,/(zoom-|grab)/,J+"$1"),/(image-set)/,J+"$1"),e,"")+e;case 5495:case 3959:return W(e,/(image-set\([^]*)/,J+"$1$`$1");case 4968:return W(W(e,/(.+:)(flex-)?(.*)/,J+"box-pack:$3"+Je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+J+e+e;case 4095:case 3583:case 4068:case 2532:return W(e,/(.+)-inline(.+)/,J+"$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(Dt(e)-1-t>6)switch(Le(e,t+1)){case 109:if(Le(e,t+4)!==45)break;case 102:return W(e,/(.+:)(.+)-([^]+)/,"$1"+J+"$2-$3$1"+Ja+(Le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bd(e,"stretch")?Cx(W(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Le(e,t+1)!==115)break;case 6444:switch(Le(e,Dt(e)-3-(~bd(e,"!important")&&10))){case 107:return W(e,":",":"+J)+e;case 101:return W(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+J+(Le(e,14)===45?"inline-":"")+"box$3$1"+J+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Le(e,t+11)){case 114:return J+e+Je+W(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return J+e+Je+W(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return J+e+Je+W(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return J+e+Je+e+e}return e}function Ox(){if(JS)return Ca.exports;JS=1;let e=Ox();return Ca.exports={default:e},Ca.exports.default=e,Ca.exports}function $i(e,t,r){var n,i="";return(0,Te.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function D2(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 q2(e){var t=(0,fx.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Vi(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 Lt={name:i.name,styles:i.styles,next:Lt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Lt={name:a.name,styles:a.styles,next:Lt},a=a.next;var s=o.styles+";";return s}return j2(e,t,r)}case"function":{if(e!==void 0){var l=Lt,c=r(e);return Lt=l,Vi(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function j2(e,t,r){var n="";if((0,ji.default)(r))for(var i=0;i<r.length;i++)n+=Vi(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]+"}":HS(s)&&(n+=ud(o)+":"+$S(o,s)+";")}else if((0,ji.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)HS(a[l])&&(n+=ud(o)+":"+$S(o,a[l])+";");else{var c=Vi(e,t,a);switch(o){case"animation":case"animationName":{n+=ud(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function _r(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="";Lt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Vi(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Vi(r,t,e[s]),n){var l=o;i+=l[s]}VS.lastIndex=0;for(var c="",d;(d=VS.exec(i))!==null;)c+="-"+d[1];var u=D2(i)+c;return{name:u,styles:i,next:Lt}}function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return _r(t)}function Q2(e,t,r){var n=[],i=$i(e,n,r);return n.length<2?r:i+t(n)}function y(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Z2,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return R.vnode&&R.vnode(c),c}function Ki(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Mt(e());return Ur(()=>{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 ZB(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 Jx(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=ZB(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function eJ(e){let t=()=>Jx(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function nJ(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=Xe(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=rJ(()=>{t&&n()});return e==="Image"?y("div",{className:i,style:{borderRadius:"8px"},children:Ue("img",M(T({},a),{ref:c,src:t!=null?t:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):y("div",M(T({},a),{ref:c,className:i,children:r}))}function iJ(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?Ue(i.type,M(T({},i.props),{style:M(T({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Ue(e.type,M(T({},e.props),{style:M(T({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function cJ(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 nx(e,t,r){return Xa.call(t,"css")?y(Jd,qx(e,t),r):y(e,t,r)}function mJ(e,t,r){return Xa.call(t,"css")?y(Jd,qx(e,t),r):y(e,t,r)}function kd({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return y("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?y(Ne,{children:t[s]},o):null}return y(Ne,{children:i},o)})})}function yJ({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Mt(!1);return a?null:y("div",{style:T({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:y("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function wJ({children:e,style:t}){return y("div",{style:`${_J.styles} ${t}`,children:[e,y("svg",{style:`${bJ.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[y("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),y("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function LJ(e,t){return qe(e,0)^45?(((t<<2^qe(e,0))<<2^qe(e,1))<<2^qe(e,2))<<2^qe(e,3):0}function tE(e){return(0,Rd.default)(e).call(e)}function qJ(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,r){return e.replace(t,r)}function Ad(e,t){return(0,Xt.default)(e).call(e,t)}function qe(e,t){return e.charCodeAt(t)|0}function Gi(e,t,r){return(0,Nd.default)(e).call(e,t,r)}function qt(e){return e.length}function Gd(e){return e.length}function Oa(e,t){return t.push(e),e}function FJ(e,t){return(0,Ui.default)(e).call(e,t).join("")}function ns(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:rs,column:bn,length:a,return:""}}function qi(e,t){return DJ(ns("",null,null,"",null,null,0),e,{length:-e.length},t)}function MJ(){return we}function jJ(){return we=tt>0?qe(xn,--tt):0,bn--,we===10&&(bn=1,rs--),we}function ut(){return we=tt<rE?qe(xn,tt++):0,bn++,we===10&&(bn=1,rs++),we}function Ut(){return qe(xn,tt)}function Fa(){return tt}function Yi(e,t){return Gi(xn,e,t)}function zi(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 nE(e){return rs=bn=1,rE=qt(xn=e),tt=0,[]}function iE(e){return xn="",e}function Ma(e){return tE(Yi(tt-1,Td(e===91?e+2:e===40?e+1:e)))}function UJ(e){for(;(we=Ut())&&we<33;)ut();return zi(e)>2||zi(we)>3?"":" "}function BJ(e,t){for(;--t&&ut()&&!(we<48||we>102||we>57&&we<65||we>70&&we<97););return Yi(e,Fa()+(t<6&&Ut()==32&&ut()==32))}function Td(e){for(;ut();)switch(we){case e:return tt;case 34:case 39:e!==34&&e!==39&&Td(we);break;case 40:e===41&&Td(e);break;case 92:ut();break}return tt}function JJ(e,t){for(;ut()&&e+we!==57&&!(e+we===84&&Ut()===47););return"/*"+Yi(t,tt-1)+"*"+ts(e===47?e:ut())}function HJ(e){for(;!zi(Ut());)ut();return Yi(e,tt)}function $J(e){return iE(ja("",null,null,null,[""],e=nE(e),0,[0],e))}function ja(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,C=o,O=n,E=I;_;)switch(m=b,b=ut()){case 40:if(m!=108&&qe(E,u-1)==58){Ad(E+=$(Ma(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=Ma(b);break;case 9:case 10:case 13:case 32:E+=UJ(m);break;case 92:E+=BJ(Fa()-1,7);continue;case 47:switch(Ut()){case 42:case 47:Oa(VJ(JJ(ut(),Fa()),t,r),l);break;default:E+="/"}break;case 123*g:s[c++]=qt(E)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(E=$(E,/\f/g,"")),f>0&&qt(E)-u&&Oa(f>32?ox(E+";",n,r,u-1):ox($(E," ","")+";",n,r,u-2),l);break;case 59:E+=";";default:if(Oa(O=ix(E,t,r,c,d,i,s,I,A=[],C=[],u),o),b===123)if(d===0)ja(E,t,O,O,A,o,u,s,C);else switch(p===99&&qe(E,3)===110?100:p){case 100:case 108:case 109:case 115:ja(e,O,O,n&&Oa(ix(e,O,O,0,0,i,s,I,i,A=[],u),C),i,C,u,s,n?A:C);break;default:ja(E,O,O,O,[""],C,0,s,C)}}c=d=f=0,g=v=1,I=E="",u=a;break;case 58:u=1+qt(E),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&jJ()==125)continue}switch(E+=ts(b),b*g){case 38:v=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(qt(E)-1)*v,v=1;break;case 64:Ut()===45&&(E+=Ma(ut())),p=Ut(),d=u=qt(I=E+=HJ(Fa())),b++;break;case 45:m===45&&qt(E)==2&&(g=0)}}return o}function ix(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Gd(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=Gi(e,u+1,u=NJ(g=a[m])),I=e;v<f;++v)(I=tE(g>0?p[v]+" "+b:$(b,/&\f/g,p[v])))&&(l[_++]=I);return ns(e,t,r,i===0?$d:s,l,c,d)}function VJ(e,t,r){return ns(e,t,r,Zx,ts(MJ()),Gi(e,2,-2),0)}function ox(e,t,r,n){return ns(e,t,r,Vd,Gi(e,0,n),Gi(e,n+1,-1),n)}function gn(e,t){for(var r="",n=Gd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function GJ(e,t,r,n){switch(e.type){case RJ:if(e.children.length)break;case OJ:case Vd:return e.return=e.return||e.value;case Zx:return"";case eE:return e.return=e.value+"{"+gn(e.children,n)+"}";case $d:e.value=e.props.join(",")}return qt(r=gn(e.children,n))?e.return=e.value+"{"+r+"}":""}function zJ(e){var t=Gd(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 WJ(e){return function(t){t.root||(t=t.return)&&e(t)}}function oE(e,t){switch(LJ(e,t)){case 5103:return H+"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 H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+Va+e+He+e+e;case 6828:case 4268:return H+e+He+e+e;case 6165:return H+e+He+"flex-"+e+e;case 5187:return H+e+$(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return H+e+He+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return H+e+He+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+He+$(e,"shrink","negative")+e;case 5292:return H+e+He+$(e,"basis","preferred-size")+e;case 6060:return H+"box-"+$(e,"-grow","")+H+e+He+$(e,"grow","positive")+e;case 4554:return H+$(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,H+"$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(qe(e,t+1)){case 109:if(qe(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Va+(qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ad(e,"stretch")?oE($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qe(e,t+1)!==115)break;case 6444:switch(qe(e,qt(e)-3-(~Ad(e,"!important")&&10))){case 107:return $(e,":",":"+H)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(qe(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(qe(e,t+11)){case 114:return H+e+He+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+He+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+He+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+He+e+e}return e}function sx(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function md(e,t,r){var n=[],i=$i(e,n,r);return n.length<2?r:i+t(n)}function ux(e){if(e==="top"){let t=0;aE.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${lx}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${lx}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+cx)})}else if(e==="center"){let t=0;sE.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+cx)})}}function Xi(){let e=!1,t=null,r=0,n=new Set,i=a=>w(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield Mi.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),cr(y(d5,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,Mi.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let l=setTimeout(()=>{o(),n.delete(l)},a.duration);n.add(l)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&(cr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Mi.release()))};return{show:i,hide:o,get isLoading(){return e}}}var Cd,px,Te,Ga,Ua,Ft,Ba,ji,Pd,Xt,Ui,fx,hx,Od,Rd,Nd,t7,vd,yn,le,cd,PS,Bi,mx,_e,OS,RS,NS,DS,LS,qS,FS,yx,me,Rt,Nt,Yt,mn,yr,Na,e2,Ce,t2,Ix,Je,Ja,J,Ld,qd,Fd,i2,Sx,o2,Wa,a2,Ka,_n,Ex,et,be,wn,w2,I2,S2,US,x2,E2,k2,A2,T2,Tx,C2,BS,P2,O2,R2,Px,Ca,JS,N2,jd,Ya,L2,F2,M2,Rx,HS,ud,$S,VS,Lt,U2,Nx,Dx,GS,Xa,Ud,Lx,Bd,Za,B2,J2,H2,$2,V2,Id,Sd,qx,G2,Jd,z2,zS,W2,K2,Y2,X2,dd,WS,pd,fd,Z2,hd,eB,tB,rB,nB,iB,oB,KS,aB,sB,QS,lB,cB,YS,uB,dB,XS,pB,fB,hB,mB,vB,gB,yB,_B,ZS,bB,wB,IB,SB,xB,EB,kB,AB,ex,TB,CB,PB,OB,RB,NB,DB,LB,qB,FB,MB,jB,UB,BB,JB,HB,$B,VB,GB,zB,WB,KB,QB,YB,Fx,Mx,jx,xd,XB,Ux,Bx,Ha,Mi,tx,tJ,es,rJ,Hx,$x,Vx,oJ,aJ,sJ,Ed,lJ,Gx,$a,Qi,In,rx,jr,zx,hn,uJ,dJ,pJ,fJ,hJ,Pa,Wx,Hd,pe,vJ,gJ,_J,bJ,Et,IJ,SJ,Kx,Qx,Yx,Xx,Sn,xJ,EJ,kJ,AJ,TJ,CJ,PJ,He,Va,H,Zx,$d,Vd,OJ,eE,RJ,NJ,ts,DJ,rs,bn,rE,tt,we,xn,KJ,QJ,YJ,ax,XJ,ZJ,e5,t5,r5,n5,i5,o5,a5,s5,l5,c5,lx,cx,aE,sE,Br,dx,u5,d5,r7,er=k(()=>{"use strict";Qr();Cd=oe(rg(),1),px=oe(pg(),1),Te=oe(Eg(),1),Ga=oe(Ug(),1),Ua=oe(Kg(),1),Ft=oe(fy(),1);Xo();Xo();Ba=oe(Yy(),1),ji=oe(i_(),1),Pd=oe(bw(),1),Xt=oe(Pw(),1),Ui=oe(jw(),1),fx=oe(Gw(),1),hx=oe(cI(),1),Od=oe(SI(),1),Rd=oe(UI(),1),Nd=oe(YI(),1);od();od();t7=oe(hS(),1),vd=oe(CS(),1),Bi=0,mx=[],_e=R,OS=_e.__b,RS=_e.__r,NS=_e.diffed,DS=_e.__c,LS=_e.unmount,qS=_e.__;_e.__b=function(e){le=null,OS&&OS(e)},_e.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),qS&&qS(e,t)},_e.__r=function(e){var t,r,n;RS&&RS(e),yn=0;var i=(le=e.__c).__H;i&&(cd===le?(i.__h=[],le.__h=[],(0,Te.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Te.default)(r=i.__h).call(r,Ra),(0,Te.default)(n=i.__h).call(n,gd),i.__h=[],yn=0)),cd=le},_e.diffed=function(e){var t;NS&&NS(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(mx.push(r)!==1&&PS===_e.requestAnimationFrame||((PS=_e.requestAnimationFrame)||QU)(KU)),(0,Te.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),cd=le=null},_e.__c=function(e,t){(0,Ua.default)(t).call(t,function(r){try{var n,i;(0,Te.default)(n=r.__h).call(n,Ra),r.__h=(0,Cd.default)(i=r.__h).call(i,function(o){return!o.__||gd(o)})}catch(o){(0,Ua.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],_e.__e(o,r.__v)}}),DS&&DS(e,t)},_e.unmount=function(e){var t;LS&&LS(e);var r,n=e.__c;n&&n.__H&&((0,Te.default)(t=n.__H.__).call(t,function(i){try{Ra(i)}catch(o){r=o}}),n.__H=void 0,r&&_e.__e(r,n.__v))};FS=typeof requestAnimationFrame=="function";yx={exports:{}},me=yx.exports={};(function(){try{typeof Ft.default=="function"?Rt=Ft.default:Rt=yd}catch(e){Rt=yd}try{typeof clearTimeout=="function"?Nt=clearTimeout:Nt=_d}catch(e){Nt=_d}})();Yt=[],mn=!1,Na=-1;me.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];Yt.push(new wx(e,t)),Yt.length===1&&!mn&&_x(bx)};wx.prototype.run=function(){this.fun.apply(null,this.array)};me.title="browser";me.browser=!0;me.env={};me.argv=[];me.version="";me.versions={};me.on=Zt;me.addListener=Zt;me.once=Zt;me.off=Zt;me.removeListener=Zt;me.removeAllListeners=Zt;me.emit=Zt;me.prependListener=Zt;me.prependOnceListener=Zt;me.listeners=function(e){return[]};me.binding=function(e){throw new Error("process.binding is not supported")};me.cwd=function(){return"/"};me.chdir=function(e){throw new Error("process.chdir is not supported")};me.umask=function(){return 0};e2=yx.exports,Ce=YU(e2),t2=Ba.default||void 0||self;Ix=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,Te.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(n2(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=r2(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Te.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}(),Je="-ms-",Ja="-moz-",J="-webkit-",Ld="comm",qd="rule",Fd="decl",i2="@import",Sx="@keyframes",o2=Math.abs,Wa=String.fromCharCode,a2=Od.default;Ka=1,_n=1,Ex=0,et=0,be=0,wn="";w2=function(e,t,r){for(var n=0,i=0;n=i,i=jt(),n===38&&i===12&&(t[r]=1),!Hi(i);)ct();return Wi(e,et)},I2=function(e,t){var r=-1,n=44;do switch(Hi(n)){case 0:n===38&&jt()===12&&(t[r]=1),e[r]+=w2(et-1,t,r);break;case 2:e[r]+=La(n);break;case 4:if(n===44){e[++r]=jt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Wa(n)}while(n=ct());return e},S2=function(e,t){return Ax(I2(kx(e),t))},US=new Pd.default,x2=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&&!US.get(r))&&!n){US.set(e,!0);for(var i=[],o=S2(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},E2=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},k2="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",A2=function(e){var t;return e.type==="comm"&&(0,Xt.default)(t=e.children).call(t,k2)>-1},T2=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 l=a[s];if(l.line<t.line)break;if(l.column<t.column){if(A2(l))return;break}}(0,Te.default)(i).call(i,function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Tx=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},C2=function(e,t){for(var r=e-1;r>=0;r--)if(!Tx(t[r]))return!0;return!1},BS=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},P2=function(e,t,r){Tx(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."),BS(e)):C2(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),BS(e)))};O2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Fd:e.return=Cx(e.value,e.length);break;case Sx:return vn([Li(e,{value:W(e.value,"@","@"+J)})],n);case qd:if(e.length)return c2(e.props,function(i){switch(l2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vn([Li(e,{props:[W(i,/:(read-\w+)/,":"+Ja+"$1")]})],n);case"::placeholder":return vn([Li(e,{props:[W(i,/:(plac\w+)/,":"+J+"input-$1")]}),Li(e,{props:[W(i,/:(plac\w+)/,":"+Ja+"$1")]}),Li(e,{props:[W(i,/:(plac\w+)/,Je+"input-$1")]})],n)}return""})}},R2=[O2],Px=function(e){var t=e.key;if(Ce.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.
|
|
21
|
+
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,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Xt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||R2;if(Ce.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,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[x2,E2];Ce.env.NODE_ENV!=="production"&&l.push(T2({get compat(){return f.compat}}),P2);{var c,d=[y2,Ce.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==Ld&&c.insert(m.value+"{}"))}:b2(function(m){c.insert(m)})],u=_2((0,Ga.default)(l).call(l,n,d)),p=function(m){return vn(v2(m),u)};s=function(m,g,_,v){c=_,Ce.env.NODE_ENV!=="production"&&(0,Ui.default)(g)!==void 0&&(c={insert:function(b){_.insert(b+(0,Ui.default)(g))}}),p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new Ix({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},Ca={exports:{}};Ox();N2=!0;jd=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||N2===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Ya=function(e,t,r){jd(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)}};L2={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};F2=/[A-Z]|^ms/g,M2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rx=function(e){return e.charCodeAt(1)===45},HS=function(e){return e!=null&&typeof e!="boolean"},ud=q2(function(e){return Rx(e)?e:e.replace(F2,"-$&").toLowerCase()}),$S=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(M2,function(r,n,i){return Lt={name:n,styles:i,next:Lt},n})}return L2[e]!==1&&!Rx(e)&&typeof t=="number"&&t!==0?t+"px":t};VS=/label:\s*([^\s;{]+)\s*(;|$)/g;U2=function(e){return e()},Nx=tu?tu:!1,Dx=Nx||U2,GS=Nx||sn,Xa={}.hasOwnProperty,Ud=Pr(typeof HTMLElement<"u"?Px({key:"css"}):null);Ce.env.NODE_ENV!=="production"&&(Ud.displayName="EmotionCacheContext");Lx=Ud.Provider,Bd=function(e){return nu(function(t,r){var n=cn(Ud);return e(t,n,r)})},Za=Pr({});Ce.env.NODE_ENV!=="production"&&(Za.displayName="EmotionThemeContext");B2=function(e){var t=e.split(".");return t[t.length-1]},J2=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 B2(t[1])},H2=new hx.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),$2=function(e){return e.replace(/\$/g,"-")},V2=function(e){if(e)for(var t=e.split(`
|
|
22
|
+
`),r=0;r<t.length;r++){var n=J2(t[r]);if(n){if(H2.has(n))break;if(/^[A-Z]/.test(n))return $2(n)}}},Id="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Sd="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",qx=function(e,t){var r,n;if(Ce.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,Xt.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)Xa.call(t,o)&&(i[o]=t[o]);if(i[Id]=e,Ce.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,Xt.default)(n=t.css.name).call(n,"-")===-1)){var a=V2(new Error().stack);a&&(i[Sd]=a)}return i},G2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return jd(t,r,n),Dx(function(){return Ya(t,r,n)}),null},Jd=Bd(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[Id],a=[i],s="";typeof e.className=="string"?s=$i(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=_r(a,void 0,cn(Za));if(Ce.env.NODE_ENV!=="production"&&(0,Xt.default)(n=l.name).call(n,"-")===-1){var c=e[Sd];c&&(l=_r([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)Xa.call(e,u)&&u!=="css"&&u!==Id&&(Ce.env.NODE_ENV==="production"||u!==Sd)&&(d[u]=e[u]);return d.ref=r,d.className=s,Ue(Ne,null,Ue(G2,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Ue(o,d))});Ce.env.NODE_ENV!=="production"&&(Jd.displayName="EmotionCssPropInternal");z2={version:"11.10.5"},zS=!1,W2=Bd(function(e,t){Ce.env.NODE_ENV!=="production"&&!zS&&(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?"),zS=!0);var r=e.styles,n=_r([r],void 0,cn(Za)),i=wi();return GS(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,l=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),GS(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Ya(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});Ce.env.NODE_ENV!=="production"&&(W2.displayName="EmotionGlobal");K2=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,ji.default)(o))a=e(o);else{Ce.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};Y2=function(e){var t=e.cache,r=e.serializedArr;return Dx(function(){for(var n=0;n<r.length;n++)Ya(t,r[n],!1)}),null},X2=Bd(function(e,t){var r=!1,n=[],i=function(){if(r&&Ce.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];var u=_r(c,t.registered);return n.push(u),jd(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Ce.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return Q2(t.registered,i,K2(c))},a={css:i,cx:o,theme:cn(Za)},s=e.children(a);return r=!0,Ue(Ne,null,Ue(Y2,{cache:t,serializedArr:n}),s)});Ce.env.NODE_ENV!=="production"&&(X2.displayName="EmotionClassNames");Ce.env.NODE_ENV!=="production"&&(dd=!0,WS=typeof jest<"u"||typeof vi<"u",dd&&!WS&&(pd=typeof Ba.default<"u"?Ba.default:dd?window:t2,fd="__EMOTION_REACT_"+z2.version.split(".")[0]+"__",pd[fd]&&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."),pd[fd]=!0));Z2=0;hd={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"}},eB=N`
|
|
23
23
|
width: 100%;
|
|
24
24
|
overflow: auto;
|
|
25
25
|
margin: 0 auto;
|
|
@@ -67,7 +67,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
67
67
|
.fadeIn {
|
|
68
68
|
animation: fadeIn 0.3s ease forwards;
|
|
69
69
|
}
|
|
70
|
-
`,rB=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,l]=Mt(!1),[c,d]=Mt(null),[u,p]=Mt(!1),f=Fi(null),m=Fi(null),g=Fi(!1);jr(()=>{if(s&&f.current){let F=f.current.ownerDocument,Ve=F.createElement("style");Ve.innerHTML=tB,F.head.appendChild(Ve);let Qe={overflow:F.body.style.overflow,position:F.body.style.position,width:F.body.style.width};return F.body.style.overflow="hidden",F.body.style.position="fixed",F.body.style.width="100%",()=>{F.head.contains(Ve)&&F.head.removeChild(Ve),F.body.style.overflow=Qe.overflow,F.body.style.position=Qe.position,F.body.style.width=Qe.width}}},[s]),jr(()=>{t?!s&&!g.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(g.current=!0,d("leave"),p(!1))},[t]);let _=_t(F=>{F.target===m.current&&(c==="leave"?(d(null),l(!1),g.current=!1,n&&n()):c==="enter"&&(d(null),p(!0)))},[c,n]),v=_t(()=>{s&&!g.current&&(g.current=!0,d("leave"),p(!1))},[s]),b=_t(F=>{r||(F.preventDefault(),F.stopPropagation(),v())},[v]),I=_t(()=>{!g.current&&!s&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),A=_t(()=>s&&!g.current,[s]);if(jr(()=>{if(a){let F={show:I,hide:v,isOpen:A};typeof a=="function"?a(F):a&&(a.current=F)}},[I,v,A,a]),!s)return null;let P=o==="center",O=M(T({},hd.drawerBackdrop),{alignItems:P?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),E={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:c==="enter"||u?1:0,transition:"opacity 0.3s"},C=P?M(T({},hd.centerDrawer),{pointerEvents:"auto"}):M(T({},hd.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!c&&!P&&(C.transform="translateY(100%)");let Z=c?P?c==="leave"?"fadeOut":c==="enter"?"fadeIn":"":`drawer-${c}`:"",at=c?`backdrop-${c}`:"";return y("div",{ref:f,style:O,children:[y("div",{style:E,className:at,onClick:b}),y("div",{ref:m,style:M(T({},C),{opacity:P&&c===null&&!u?0:1}),className:`${P&&c==="leave"?"fadeOut":Z} ${i}`,onAnimationEnd:_,onClick:F=>F.stopPropagation(),children:y("div",{style:eB.styles,children:e})})]})},nB=nu(rB);iB={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"},oB={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!"},KS={jolicoin:iB,loginGuide:oB},aB={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"},sB={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\u5DF2\u83B7\u5F97 {{coin}} Jolicoin\uFF01\u7ACB\u5373\u5F00\u59CB\u89E3\u9501\uFF01"},QS={jolicoin:aB,loginGuide:sB},lB={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"},cB={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!"},YS={jolicoin:lB,loginGuide:cB},uB={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"},dB={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!"},XS={jolicoin:uB,loginGuide:dB},pB={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"},fB={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\u0E40\u0E25\u0E22!"},hB={jolicoin:pB,loginGuide:fB},mB={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"},vB={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! B\u1EAFt \u0111\u1EA7u m\u1EDF kh\xF3a ngay!"},gB={jolicoin:mB,loginGuide:vB},yB={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"},_B={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! Nakuha mo na ang {{coin}} Jolicoin! Simulan ang pag-unlock ngayon!"},ZS={jolicoin:yB,loginGuide:_B},bB={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"},wB={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. \xA1Comienza a desbloquear ahora!"},IB={jolicoin:bB,loginGuide:wB},SB={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"},xB={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\u4ECA\u3059\u3050\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u958B\u59CB\u3057\u3066\u304F\u3060\u3055\u3044\uFF01"},EB={jolicoin:SB,loginGuide:xB},kB={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"},AB={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!"},ex={jolicoin:kB,loginGuide:AB},TB={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"},CB={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! \uC9C0\uAE08 \uC7A0\uAE08 \uD574\uC81C\uB97C \uC2DC\uC791\uD558\uC138\uC694!"},PB={jolicoin:TB,loginGuide:CB},OB={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"},RB={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\u5DF2\u7372\u5F97 {{coin}} Jolicoin\uFF01\u7ACB\u5373\u958B\u59CB\u89E3\u9396\uFF01"},NB={jolicoin:OB,loginGuide:RB},DB={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"},LB={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! Starten Sie jetzt die Entsperrung!"},qB={jolicoin:DB,loginGuide:LB},FB={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"},MB={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 ! D\xE9bloquez maintenant !"},UB={jolicoin:FB,loginGuide:MB},jB={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"},BB={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:"\u092C\u0927\u093E\u0908 \u0939\u094B! \u0906\u092A\u0928\u0947 {{coin}} Jolicoin \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u093F\u092F\u093E \u0939\u0948! \u0905\u092D\u0940 \u0905\u0928\u0932\u0949\u0915 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902!"},JB={jolicoin:jB,loginGuide:BB},HB={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"},$B={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 \u0441\u0435\u0439\u0447\u0430\u0441!"},VB={jolicoin:HB,loginGuide:$B},GB={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"},zB={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!"},WB={jolicoin:GB,loginGuide:zB},KB={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"},QB={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!"},YB={jolicoin:KB,loginGuide:QB},Fx={en:{translations:KS},en_GB:{translations:KS},zh:{translations:QS},"zh-Hans":{translations:QS},"zh-Hant":{translations:NB},id:{translations:YS},in:{translations:YS},ms:{translations:XS},my:{translations:XS},th:{translations:hB},vi:{translations:gB},fil:{translations:ZS},tl:{translations:ZS},es:{translations:IB},ja:{translations:EB},pt:{translations:ex},pt_PT:{translations:ex},ko:{translations:PB},de:{translations:qB},fr:{translations:UB},hi:{translations:JB},ru:{translations:VB},bn:{translations:WB},tr:{translations:YB}},Mx=Pr(void 0),Ux=({definition:e,children:t})=>{let r={translations:e};return y(Mx.Provider,{value:r,children:t})},xd=null,XB={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"},jx=e=>{xd=e},Bx=()=>{var e;if(typeof xd!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=xd();return(e=XB[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Ha=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=Px({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=eJ(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 w(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"&&(Jx(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"))}},Mi=new Ha(99999998,"auto"),tx=new Ha(99999999,"none"),tJ=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=Ki(),l={container:N`
|
|
70
|
+
`,rB=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,l]=Mt(!1),[c,d]=Mt(null),[u,p]=Mt(!1),f=Fi(null),m=Fi(null),g=Fi(!1);Ur(()=>{if(s&&f.current){let L=f.current.ownerDocument,Oe=L.createElement("style");Oe.innerHTML=tB,L.head.appendChild(Oe);let Re={overflow:L.body.style.overflow,position:L.body.style.position,width:L.body.style.width};return L.body.style.overflow="hidden",L.body.style.position="fixed",L.body.style.width="100%",()=>{L.head.contains(Oe)&&L.head.removeChild(Oe),L.body.style.overflow=Re.overflow,L.body.style.position=Re.position,L.body.style.width=Re.width}}},[s]),Ur(()=>{t?!s&&!g.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(g.current=!0,d("leave"),p(!1))},[t]);let _=_t(L=>{L.target===m.current&&(c==="leave"?(d(null),l(!1),g.current=!1,n&&n()):c==="enter"&&(d(null),p(!0)))},[c,n]),v=_t(()=>{s&&!g.current&&(g.current=!0,d("leave"),p(!1))},[s]),b=_t(L=>{r||(L.preventDefault(),L.stopPropagation(),v())},[v]),I=_t(()=>{!g.current&&!s&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),A=_t(()=>s&&!g.current,[s]);if(Ur(()=>{if(a){let L={show:I,hide:v,isOpen:A};typeof a=="function"?a(L):a&&(a.current=L)}},[I,v,A,a]),!s)return null;let C=o==="center",O=M(T({},hd.drawerBackdrop),{alignItems:C?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),E={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:c==="enter"||u?1:0,transition:"opacity 0.3s"},P=C?M(T({},hd.centerDrawer),{pointerEvents:"auto"}):M(T({},hd.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!c&&!C&&(P.transform="translateY(100%)");let B=c?C?c==="leave"?"fadeOut":c==="enter"?"fadeIn":"":`drawer-${c}`:"",ze=c?`backdrop-${c}`:"";return y("div",{ref:f,style:O,children:[y("div",{style:E,className:ze,onClick:b}),y("div",{ref:m,style:M(T({},P),{opacity:C&&c===null&&!u?0:1}),className:`${C&&c==="leave"?"fadeOut":B} ${i}`,onAnimationEnd:_,onClick:L=>L.stopPropagation(),children:y("div",{style:eB.styles,children:e})})]})},nB=nu(rB);iB={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"},oB={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!"},KS={jolicoin:iB,loginGuide:oB},aB={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"},sB={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\u5DF2\u83B7\u5F97 {{coin}} Jolicoin\uFF01\u7ACB\u5373\u5F00\u59CB\u89E3\u9501\uFF01"},QS={jolicoin:aB,loginGuide:sB},lB={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"},cB={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!"},YS={jolicoin:lB,loginGuide:cB},uB={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"},dB={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!"},XS={jolicoin:uB,loginGuide:dB},pB={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"},fB={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\u0E40\u0E25\u0E22!"},hB={jolicoin:pB,loginGuide:fB},mB={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"},vB={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! B\u1EAFt \u0111\u1EA7u m\u1EDF kh\xF3a ngay!"},gB={jolicoin:mB,loginGuide:vB},yB={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"},_B={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! Nakuha mo na ang {{coin}} Jolicoin! Simulan ang pag-unlock ngayon!"},ZS={jolicoin:yB,loginGuide:_B},bB={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"},wB={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. \xA1Comienza a desbloquear ahora!"},IB={jolicoin:bB,loginGuide:wB},SB={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"},xB={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\u4ECA\u3059\u3050\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u958B\u59CB\u3057\u3066\u304F\u3060\u3055\u3044\uFF01"},EB={jolicoin:SB,loginGuide:xB},kB={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"},AB={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!"},ex={jolicoin:kB,loginGuide:AB},TB={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"},CB={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! \uC9C0\uAE08 \uC7A0\uAE08 \uD574\uC81C\uB97C \uC2DC\uC791\uD558\uC138\uC694!"},PB={jolicoin:TB,loginGuide:CB},OB={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"},RB={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\u5DF2\u7372\u5F97 {{coin}} Jolicoin\uFF01\u7ACB\u5373\u958B\u59CB\u89E3\u9396\uFF01"},NB={jolicoin:OB,loginGuide:RB},DB={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"},LB={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! Starten Sie jetzt die Entsperrung!"},qB={jolicoin:DB,loginGuide:LB},FB={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"},MB={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 ! D\xE9bloquez maintenant !"},jB={jolicoin:FB,loginGuide:MB},UB={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"},BB={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:"\u092C\u0927\u093E\u0908 \u0939\u094B! \u0906\u092A\u0928\u0947 {{coin}} Jolicoin \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u093F\u092F\u093E \u0939\u0948! \u0905\u092D\u0940 \u0905\u0928\u0932\u0949\u0915 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902!"},JB={jolicoin:UB,loginGuide:BB},HB={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"},$B={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 \u0441\u0435\u0439\u0447\u0430\u0441!"},VB={jolicoin:HB,loginGuide:$B},GB={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"},zB={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!"},WB={jolicoin:GB,loginGuide:zB},KB={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"},QB={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!"},YB={jolicoin:KB,loginGuide:QB},Fx={en:{translations:KS},en_GB:{translations:KS},zh:{translations:QS},"zh-Hans":{translations:QS},"zh-Hant":{translations:NB},id:{translations:YS},in:{translations:YS},ms:{translations:XS},my:{translations:XS},th:{translations:hB},vi:{translations:gB},fil:{translations:ZS},tl:{translations:ZS},es:{translations:IB},ja:{translations:EB},pt:{translations:ex},pt_PT:{translations:ex},ko:{translations:PB},de:{translations:qB},fr:{translations:jB},hi:{translations:JB},ru:{translations:VB},bn:{translations:WB},tr:{translations:YB}},Mx=Pr(void 0),jx=({definition:e,children:t})=>{let r={translations:e};return y(Mx.Provider,{value:r,children:t})},xd=null,XB={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"},Ux=e=>{xd=e},Bx=()=>{var e;if(typeof xd!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=xd();return(e=XB[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Ha=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=Px({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=eJ(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 w(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"&&(Jx(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"))}},Mi=new Ha(99999998,"auto"),tx=new Ha(99999999,"none"),tJ=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=Ki(),l={container:N`
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: column;
|
|
73
73
|
height: 100%;
|
|
@@ -104,7 +104,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
104
104
|
${l.button}
|
|
105
105
|
background-color: ${c.variant==="primary"?"#1677ff":"#fff"};
|
|
106
106
|
color: ${c.variant==="primary"?"#fff":"#333"};
|
|
107
|
-
`.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},es=e=>{let t=!1,r=Bx(),n=Fx[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function l(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)),cr(y(Lx,{value:a,children:y(
|
|
107
|
+
`.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},es=e=>{let t=!1,r=Bx(),n=Fx[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function l(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)),cr(y(Lx,{value:a,children:y(jx,{definition:n,children:y(nB,{ref:g=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:c,preventCloseOnBackdropClick:(m=e.preventCloseOnBackdropClick)!=null?m:!1,backdropColor:e.backdropColor,children:y(tJ,M(T({},e),{onClose:u}))})})}),s)}function c(){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))}Mi.release(),(f=e.onClose)==null||f.call(e)}}function d(){return w(this,null,function*(){let p=yield Mi.acquire();o=p.iframe,a=p.emotionCache,t=!0,l(!0),setTimeout(()=>{var f;(f=e.onOpen)==null||f.call(e)},50)})}function u(){t&&l(!1)}return{show:()=>{t||d()},hide:()=>{t&&u()},isOpen:()=>t,destroy:()=>{t&&u(),o=null,a=null,s=null,console.log("[Modal] Instance destroyed.")}}},rJ=(e,t={threshold:.6})=>{let r=Fi(null),n=Fi(!1),i=_t(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return Ur(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};Hx=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=Xe(a,["children","fluid","className","style"]);let s=T({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return y("div",M(T({className:r,style:s},i),{children:e}))},$x=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=Xe(l,["children","gutter","justify","align","className","style"]);let c={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=T({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[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?iJ(e,t):e;return y("div",M(T({className:i,style:u},a),{children:p}))};Vx=u=>{var p=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:l="",style:c={}}=p,d=Xe(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=T({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);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}%`),y("div",M(T({className:l,style:f},d),{children:e}))},oJ=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=ln(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=ln(()=>{},[e,t]);return y(Vx,{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:[y("div",{className:"relative w-full mb-[2px] ion-no-margin",children:y(nJ,{src:(l=(s=e.logo)!=null?s:e.cover)!=null?l:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),y("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)},aJ=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=Xe(s,["list","routeMode","layerName","onGameClick","orientation"]);return y(Hx,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:y($x,{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(l=>y(oJ,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},sJ=ru(aJ),Ed=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(Ed||{}),lJ=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=Mt(null),s=_t(u=>{i==null||i({type:u.type===Ed.Quit?"quit":"dismiss"})},[i]),l=_t(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=Ki();if(!t.length)return y(Ne,{});let d=_t(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
|
|
108
108
|
.recommend-panel {
|
|
109
109
|
display: flex;
|
|
110
110
|
flex-direction: column;
|
|
@@ -226,7 +226,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
226
226
|
background-color: #7817FF;
|
|
227
227
|
color: #fff;
|
|
228
228
|
}
|
|
229
|
-
`;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return
|
|
229
|
+
`;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return Ur(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&cr(y("div",{className:"recommend-panel",children:y("div",{className:"container",children:[y("p",{className:"title",children:r}),y("div",{className:"games-container",children:y(sJ,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),y("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>y("div",{className:"button-wrapper",children:y("button",{className:`button ${p.type===Ed.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:y("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),y("div",{ref:d})},Gx=e=>{let t=es({title:e.title,content:y(lJ,{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},$a="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=",Qi="https://fe-oss.jolibox.com/static/coin/jolicoin.png";In=()=>{let e=WU(Mx);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=cJ(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}},rx=({text:e,initialFontSize:t,styles:r})=>y("span",{style:r,children:y("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})}),jr={coinInfo:N`
|
|
230
230
|
display: flex;
|
|
231
231
|
width: calc(100% - 40px);
|
|
232
232
|
max-width: 720px;
|
|
@@ -283,7 +283,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
283
283
|
font-size: 16px;
|
|
284
284
|
font-weight: 600;
|
|
285
285
|
color: #d9d9d9;
|
|
286
|
-
`},zx=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Qi,formatter:n=a=>a>999?"999+":`${a}`,hideNeeds:i=!1,hideBalance:o=!1})=>{let a=n(t),{t:s}=In(),l=14;return y("div",{style:
|
|
286
|
+
`},zx=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Qi,formatter:n=a=>a>999?"999+":`${a}`,hideNeeds:i=!1,hideBalance:o=!1})=>{let a=n(t),{t:s}=In(),l=14;return y("div",{style:jr.coinInfo.styles,children:[!i&&y("div",{style:jr.coinAmount.styles,children:[y(rx,{text:s("jolicoin.price"),initialFontSize:l,styles:jr.coinLabelContainer.styles}),y("div",{style:jr.coinValue.styles,children:[y("img",{src:r,alt:"Jolicoin",style:jr.coinIcon.styles}),y("span",{children:e})]})]}),!o&&y("div",{style:jr.coinAmountBalance.styles,children:y(rx,{text:s("jolicoin.balance")+":\xA0"+a,initialFontSize:l,styles:jr.coinValueText.styles})})]})},hn={card:N`
|
|
287
287
|
display: flex;
|
|
288
288
|
flex-direction: column;
|
|
289
289
|
align-items: center;
|
|
@@ -455,7 +455,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
455
455
|
font-weight: 400;
|
|
456
456
|
line-height: 1.2;
|
|
457
457
|
color: #979797;
|
|
458
|
-
`.styles,children:u("jolicoin.unlockWithJolicoinDescription")}),y(Wx,{enableAutoDeduct:l,toggleEnableAutoDeduct:f})]}),y("section",{style:`${pe.buttonContainer.styles} ${d==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[y("button",{style:`${pe.confirmButton.styles} ${pe.buttonFlex.styles}`,onClick:p,children:u(a)}),y("button",{style:`${pe.cancelButton.styles} ${pe.buttonFlex.styles}`,onClick:i.bind(null,{type:"FAILED"}),children:u(s)})]})]})]})},gJ=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],onConfirm:i,onClose:o,onEnableDeductChanged:a,onSelect:s,confirmButtonKey:l,cancelButtonKey:c})=>{let[d,u]=Mt(r),{t:p}=In(),[f,m]=Mt(()=>{var I,A;return((I=n.find(
|
|
458
|
+
`.styles,children:u("jolicoin.unlockWithJolicoinDescription")}),y(Wx,{enableAutoDeduct:l,toggleEnableAutoDeduct:f})]}),y("section",{style:`${pe.buttonContainer.styles} ${d==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[y("button",{style:`${pe.confirmButton.styles} ${pe.buttonFlex.styles}`,onClick:p,children:u(a)}),y("button",{style:`${pe.cancelButton.styles} ${pe.buttonFlex.styles}`,onClick:i.bind(null,{type:"FAILED"}),children:u(s)})]})]})]})},gJ=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],onConfirm:i,onClose:o,onEnableDeductChanged:a,onSelect:s,confirmButtonKey:l,cancelButtonKey:c})=>{let[d,u]=Mt(r),{t:p}=In(),[f,m]=Mt(()=>{var I,A;return((I=n.find(C=>C.defaultSelected))==null?void 0:I.productId)||((A=n==null?void 0:n[0])==null?void 0:A.productId)}),g=Ki(),_=()=>{i(f)},v=_t(I=>{console.log(I),m(I),s(I)},[]),b=_t(()=>{u(!d),a(!d)},[d]);return console.log("defaultEnableAutoDeduct",r),y("div",{style:pe.modal.styles,children:[y("div",{style:pe.header.styles,children:[y(zx,{unlockNeedsAmount:e,balanceAmount:t,coinImage:Qi}),y("button",{style:pe.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:y(Hd,{})})]}),y("div",{style:pe.content.styles,children:[y("div",{style:N`
|
|
459
459
|
padding: 16px 0px;
|
|
460
460
|
`.styles,children:y(hJ,{options:n.map(I=>({id:I.productId,coins:I.quantity,price:I.totalAmountStr})),selectedId:f,onSelect:I=>v(I.id)})}),!r&&y("div",{style:pe.autoDeductOption.styles,children:[y("span",{style:N`
|
|
461
461
|
font-size: 12px;
|
|
@@ -540,7 +540,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
540
540
|
border-top: 8px solid #4f396d;
|
|
541
541
|
z-index: 2;
|
|
542
542
|
}
|
|
543
|
-
`}),IJ={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()},SJ=({rewardType:e,rewardValue:t,confirmButtonKey:r,cancelButtonKey:n,onClose:i,onConfirm:o})=>{let a=e==="ADS-JOLI_COIN",{t:s}=In(),l=IJ[e];return y("div",{style:{paddingTop:"80px"},children:y("section",{style:`${Et.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[y(yJ,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),y("div",{style:Et.header.styles,children:y("button",{style:`${Et.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:i.bind(null,{type:"CANCEL"}),children:y(Hd,{})})}),y("div",{style:Et.introduct.styles,children:[a?y("span",{style:Et.introductSubTitle.styles,children:s("loginGuide.instead")}):null,y("span",{style:Et.introductTitle.styles,children:y(kd,{children:s("loginGuide.introduct"),values:{coin:y("img",{src:$a,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),y("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:y("section",{style:`${Et.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[y("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[y("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:y(wJ,{children:y(kd,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:s("loginGuide.tips"),values:{coin:y(Oe,{children:[y("img",{src:$a,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),t]})}})})}),y("button",{style:`${Et.confirmButton.styles} ${Et.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:o,children:y("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:s(r)})})]}),y("button",{style:`${Et.cancelButton.styles} ${Et.buttonFlex.styles} line-height: 24px;`,onClick:i.bind(null,{type:"FAILED"}),children:s(n)})]})})]})})},Kx=e=>{let t=es({title:"",content:y(vJ,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,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},Qx=e=>{let t=es({title:"",content:y(gJ,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,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},Yx=e=>{let t=es({title:"",content:y(SJ,{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},Xx=new Map,Sn=(e,t)=>{Xx.set(e,t)};Sn(/^\{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 y("div",{style:r,children:y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[y("g",{clipPath:"url(#clip0_2247_16523)",children:y("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"})}),y("defs",{children:y("clipPath",{id:"clip0_2247_16523",children:y("rect",{width:"24",height:"24",fill:"white"})})})]})})});Sn(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:$a;return y("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});xJ=/^\{slot-i18n-(.+?)\}/,EJ=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=In(),i=n(e,t);return y("span",{children:i||r})};Sn(xJ,(e,t)=>{var n;let r=e[1];return r?y(EJ,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),y("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});kJ=/^\{slot-i18ntran-(.+?)\}/,AJ=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=In(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return y(kd,{children:o||n,values:T(T({},t),a)})},TJ={coin:e=>y(Oe,{children:[y("img",{src:$a,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};Sn(kJ,(e,t)=>{var n,i;let r=e[1];return r?y(AJ,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:TJ,fallbackText:`[${r}]`}):y("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});CJ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Sn(/^\{slot-success\}/,(e,t)=>y("img",{src:CJ,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));PJ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Sn(/^\{slot-error\}/,(e,t)=>y("img",{src:PJ,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));Be="-ms-",Va="-moz-",J="-webkit-",Zx="comm",$d="rule",Vd="decl",OJ="@import",eE="@keyframes",RJ="@layer",NJ=Math.abs,ts=String.fromCharCode,DJ=Od.default;rs=1,bn=1,rE=0,et=0,we=0,xn="";KJ=function(e,t,r){for(var n=0,i=0;n=i,i=jt(),n===38&&i===12&&(t[r]=1),!zi(i);)ut();return Yi(e,et)},QJ=function(e,t){var r=-1,n=44;do switch(zi(n)){case 0:n===38&&jt()===12&&(t[r]=1),e[r]+=KJ(et-1,t,r);break;case 2:e[r]+=Ma(n);break;case 4:if(n===44){e[++r]=jt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ts(n)}while(n=ut());return e},YJ=function(e,t){return iE(QJ(nE(e),t))},ax=new Pd.default,XJ=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&&!ax.get(r))&&!n){ax.set(e,!0);for(var i=[],o=YJ(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},ZJ=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};e5=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Vd:e.return=oE(e.value,e.length);break;case eE:return gn([qi(e,{value:H(e.value,"@","@"+J)})],n);case $d:if(e.length)return FJ(e.props,function(i){switch(qJ(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return gn([qi(e,{props:[H(i,/:(read-\w+)/,":"+Va+"$1")]})],n);case"::placeholder":return gn([qi(e,{props:[H(i,/:(plac\w+)/,":"+J+"input-$1")]}),qi(e,{props:[H(i,/:(plac\w+)/,":"+Va+"$1")]}),qi(e,{props:[H(i,/:(plac\w+)/,Be+"input-$1")]})],n)}return""})}},t5=[e5],r5=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Xt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||t5,i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[XJ,ZJ];{var c,d=[GJ,WJ(function(m){c.insert(m)})],u=zJ((0,Ga.default)(l).call(l,n,d)),p=function(m){return gn($J(m),u)};s=function(m,g,_,v){c=_,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new Ix({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};n5=function(e){var t=r5(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=_r(s,t.registered,void 0);return Ya(t,c,!1),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=_r(s,t.registered),d="animation-"+c.name;return sx(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=_r(s,t.registered);sx(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return md(t.registered,r,i5(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Te.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,vd.default)($i).call($i,null,t.registered),merge:(0,vd.default)(md).call(md,null,t.registered,r)}},i5=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,Ui.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},o5=n5({key:"css"}),a5=o5.css,s5=(e,t)=>{if(!e.includes("{slot-"))return e;let r=[],n=0;for(;n<e.length;){let o=null,a=1/0,s=null;for(let[l,c]of Xx.entries()){let d=l.source.startsWith("^")?l.source.slice(1):l.source,u=new RegExp(d,"g");u.lastIndex=n;let p=u.exec(e);p&&p.index<a&&(o=p,a=p.index,s=c)}if(o&&s)a>n&&r.push(e.substring(n,a)),r.push(s(o,t)),n=a+o[0].length;else{r.push(e.substring(n));break}}let i=a5`
|
|
543
|
+
`}),IJ={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()},SJ=({rewardType:e,rewardValue:t,confirmButtonKey:r,cancelButtonKey:n,onClose:i,onConfirm:o})=>{let a=e==="ADS-JOLI_COIN",{t:s}=In(),l=IJ[e];return y("div",{style:{paddingTop:"80px"},children:y("section",{style:`${Et.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[y(yJ,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),y("div",{style:Et.header.styles,children:y("button",{style:`${Et.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:i.bind(null,{type:"CANCEL"}),children:y(Hd,{})})}),y("div",{style:Et.introduct.styles,children:[a?y("span",{style:Et.introductSubTitle.styles,children:s("loginGuide.instead")}):null,y("span",{style:Et.introductTitle.styles,children:y(kd,{children:s("loginGuide.introduct"),values:{coin:y("img",{src:$a,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),y("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:y("section",{style:`${Et.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[y("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[y("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:y(wJ,{children:y(kd,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:s("loginGuide.tips"),values:{coin:y(Ne,{children:[y("img",{src:$a,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),t]})}})})}),y("button",{style:`${Et.confirmButton.styles} ${Et.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:o,children:y("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:s(r)})})]}),y("button",{style:`${Et.cancelButton.styles} ${Et.buttonFlex.styles} line-height: 24px;`,onClick:i.bind(null,{type:"FAILED"}),children:s(n)})]})})]})})},Kx=e=>{let t=es({title:"",content:y(vJ,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,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},Qx=e=>{let t=es({title:"",content:y(gJ,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,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},Yx=e=>{let t=es({title:"",content:y(SJ,{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},Xx=new Map,Sn=(e,t)=>{Xx.set(e,t)};Sn(/^\{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 y("div",{style:r,children:y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[y("g",{clipPath:"url(#clip0_2247_16523)",children:y("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"})}),y("defs",{children:y("clipPath",{id:"clip0_2247_16523",children:y("rect",{width:"24",height:"24",fill:"white"})})})]})})});Sn(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:$a;return y("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});xJ=/^\{slot-i18n-(.+?)\}/,EJ=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=In(),i=n(e,t);return y("span",{children:i||r})};Sn(xJ,(e,t)=>{var n;let r=e[1];return r?y(EJ,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),y("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});kJ=/^\{slot-i18ntran-(.+?)\}/,AJ=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=In(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return y(kd,{children:o||n,values:T(T({},t),a)})},TJ={coin:e=>y(Ne,{children:[y("img",{src:$a,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};Sn(kJ,(e,t)=>{var n,i;let r=e[1];return r?y(AJ,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:TJ,fallbackText:`[${r}]`}):y("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});CJ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Sn(/^\{slot-success\}/,(e,t)=>y("img",{src:CJ,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));PJ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Sn(/^\{slot-error\}/,(e,t)=>y("img",{src:PJ,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));He="-ms-",Va="-moz-",H="-webkit-",Zx="comm",$d="rule",Vd="decl",OJ="@import",eE="@keyframes",RJ="@layer",NJ=Math.abs,ts=String.fromCharCode,DJ=Od.default;rs=1,bn=1,rE=0,tt=0,we=0,xn="";KJ=function(e,t,r){for(var n=0,i=0;n=i,i=Ut(),n===38&&i===12&&(t[r]=1),!zi(i);)ut();return Yi(e,tt)},QJ=function(e,t){var r=-1,n=44;do switch(zi(n)){case 0:n===38&&Ut()===12&&(t[r]=1),e[r]+=KJ(tt-1,t,r);break;case 2:e[r]+=Ma(n);break;case 4:if(n===44){e[++r]=Ut()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ts(n)}while(n=ut());return e},YJ=function(e,t){return iE(QJ(nE(e),t))},ax=new Pd.default,XJ=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&&!ax.get(r))&&!n){ax.set(e,!0);for(var i=[],o=YJ(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},ZJ=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};e5=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Vd:e.return=oE(e.value,e.length);break;case eE:return gn([qi(e,{value:$(e.value,"@","@"+H)})],n);case $d:if(e.length)return FJ(e.props,function(i){switch(qJ(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return gn([qi(e,{props:[$(i,/:(read-\w+)/,":"+Va+"$1")]})],n);case"::placeholder":return gn([qi(e,{props:[$(i,/:(plac\w+)/,":"+H+"input-$1")]}),qi(e,{props:[$(i,/:(plac\w+)/,":"+Va+"$1")]}),qi(e,{props:[$(i,/:(plac\w+)/,He+"input-$1")]})],n)}return""})}},t5=[e5],r5=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Xt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||t5,i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[XJ,ZJ];{var c,d=[GJ,WJ(function(m){c.insert(m)})],u=zJ((0,Ga.default)(l).call(l,n,d)),p=function(m){return gn($J(m),u)};s=function(m,g,_,v){c=_,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new Ix({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};n5=function(e){var t=r5(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=_r(s,t.registered,void 0);return Ya(t,c,!1),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=_r(s,t.registered),d="animation-"+c.name;return sx(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=_r(s,t.registered);sx(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return md(t.registered,r,i5(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Te.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,vd.default)($i).call($i,null,t.registered),merge:(0,vd.default)(md).call(md,null,t.registered,r)}},i5=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,ji.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},o5=n5({key:"css"}),a5=o5.css,s5=(e,t)=>{if(!e.includes("{slot-"))return e;let r=[],n=0;for(;n<e.length;){let o=null,a=1/0,s=null;for(let[l,c]of Xx.entries()){let d=l.source.startsWith("^")?l.source.slice(1):l.source,u=new RegExp(d,"g");u.lastIndex=n;let p=u.exec(e);p&&p.index<a&&(o=p,a=p.index,s=c)}if(o&&s)a>n&&r.push(e.substring(n,a)),r.push(s(o,t)),n=a+o[0].length;else{r.push(e.substring(n));break}}let i=a5`
|
|
544
544
|
display: 'flex',
|
|
545
545
|
alignItems: 'flex-start',
|
|
546
546
|
gap: '4px',
|
|
@@ -551,7 +551,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
551
551
|
fontWeight: 600,
|
|
552
552
|
lineHeight: '18px',
|
|
553
553
|
width: 'max-content'
|
|
554
|
-
`;return r.length===1?r[0]:y("div",{className:i,children:r})},l5=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top"})=>{let[o,a]=Mt(!0);
|
|
554
|
+
`;return r.length===1?r[0]:y("div",{className:i,children:r})},l5=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top"})=>{let[o,a]=Mt(!0);Ur(()=>{let c=setTimeout(()=>{a(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(c)},[r,n]);let s=Dd(()=>{let c=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,c)},[]),l=N`
|
|
555
555
|
position: fixed;
|
|
556
556
|
left: 50%;
|
|
557
557
|
padding: 10px 16px;
|
|
@@ -593,7 +593,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
593
593
|
opacity: 1;
|
|
594
594
|
transform: translate(-50%, -50%) scale(1);
|
|
595
595
|
`}
|
|
596
|
-
`;return y("div",{className:`toast toast-${t}`,style:l.styles,children:e})},c5=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),lx=Math.max(20,c5),cx=12,aE=[],sE=[];Br=(e,t)=>w(void 0,null,function*(){let{iframe:r,emotionCache:n}=yield tx.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"?aE:sE;s.push(o);let l=s5(e,t),c=Bx(),d=Fx[c].translations;function u(){i==null||i.body.removeChild(o);let p=s.indexOf(o);p!==-1&&s.splice(p,1),ux(a),tx.release()}setTimeout(()=>ux(a),0),cr(y(Lx,{value:n,children:y(
|
|
596
|
+
`;return y("div",{className:`toast toast-${t}`,style:l.styles,children:e})},c5=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),lx=Math.max(20,c5),cx=12,aE=[],sE=[];Br=(e,t)=>w(void 0,null,function*(){let{iframe:r,emotionCache:n}=yield tx.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"?aE:sE;s.push(o);let l=s5(e,t),c=Bx(),d=Fx[c].translations;function u(){i==null||i.body.removeChild(o);let p=s.indexOf(o);p!==-1&&s.splice(p,1),ux(a),tx.release()}setTimeout(()=>ux(a),0),cr(y(Lx,{value:n,children:y(jx,{definition:d,children:y(l5,{message:l,type:t==null?void 0:t.type,position:a,duration:t==null?void 0:t.duration,onClose:u})})}),o)}),dx={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"}},u5=`
|
|
597
597
|
@keyframes spin {
|
|
598
598
|
0% {
|
|
599
599
|
transform: rotate(0deg);
|
|
@@ -602,9 +602,9 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
602
602
|
transform: rotate(360deg);
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
`,d5=()=>y("div",{style:dx.container,children:[y("style",{children:u5}),y("div",{style:dx.spinner})]});t7=Xi()});function lE(){return w(this,null,function*(){if(zd)return zd;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 te(t);return zd=r,r})}function cE(){return w(this,null,function*(){let e=new Tt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(Wd)return e.resolve(!0),e.promise;let t=yield lE();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Wd=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};U("RecommendedGuide",T({eventType:Y.View},o));let a=Gx({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(Wd=!1,s.type){case"quit":U("RecommendedGuide",{eventType:Y.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":U("RecommendedGuide",T({eventType:Y.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;p5(c),U("GameItem",{eventType:Y.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:U("RecommendedGuide",T({eventType:Y.Hide},o)),e.resolve(!0);break}}});return e.promise})}var zd,p5,Wd,uE=k(()=>{"use strict";K();xe();D();er();vt();gt();zd=null;lE();p5=e=>{var a;let{data:t}=j("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",S.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;j("openSchemaSync",{schema:o})},Wd=!1});function h5(e){let t=T(T({},f5),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=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:b,containerTransition:I,iframeTransition:A}=p();ie=document.createElement("div"),ie.id="jolibox-modal-overlay",ie.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:${b}; opacity:0; visibility:hidden;`,W=document.createElement("div"),W.id="jolibox-modal-container",W.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:${I};`;let P=document.createElement("div");P.id="jolibox-modal-loading",P.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let O=document.createElement("style");O.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(O);let E=document.createElement("div");if(E.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",bt=document.createElement("iframe"),bt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${A};`,bt.src=r,bt.onload=()=>{P.parentNode&&P.parentNode.removeChild(P),bt.style.opacity="1",g(),l==null||l(),Ee.emit("onModalIframeLoaded",{url:r})},E.appendChild(bt),E.appendChild(P),W.appendChild(E),i){let C=document.createElement("div");C.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;",C.innerHTML="\u2715",C.onclick=v,W.appendChild(C)}ie.appendChild(W),document.body.appendChild(ie),ie.addEventListener("click",function(C){C.target===ie&&v()}),o&&_()}function g(){!ie||!W||u||(ie.style.visibility="visible",a?requestAnimationFrame(()=>{ie&&(ie.style.opacity="1"),W&&(W.style.transform="translateY(0)"),u=!0}):(ie&&(ie.style.opacity="1"),W&&(W.style.transform="translateY(0)"),u=!0),j("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function _(){if(!W)return;let b=P=>{c=P.touches[0].clientY},I=P=>{if(!u)return;d=P.touches[0].clientY;let O=d-c;O>0&&(W&&(W.style.transition="none",W.style.transform=`translateY(${O}px)`),P.preventDefault())},A=()=>{!u||!W||(W.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():W.style.transform="translateY(0)")};W.addEventListener("touchstart",b),W.addEventListener("touchmove",I),W.addEventListener("touchend",A)}function v(){!ie||!W||!u||(a?(W.style.transform="translateY(100%)",ie.style.opacity="0"):ie.style.visibility="hidden",u=!1,j("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{ie&&(ie.remove(),ie=null,W=null,bt=null,s==null||s(),Ee.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function dE(){return window.joliboxUI=M(T({},window.joliboxUI),{createIframeModal:h5}),()=>{window.joliboxUI=void 0,ie&&ie.parentNode&&ie.parentNode.removeChild(ie),W&&W.parentNode&&W.parentNode.removeChild(W),bt&&bt.parentNode&&bt.parentNode.removeChild(bt),ie=null,W=null,bt=null}}var f5,ie,W,bt,pE=k(()=>{"use strict";xe();K();D();f5={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ie=null,W=null,bt=null});var vE={};uf(vE,{config:()=>E5});function v5(){No.on("isAdShowing",e=>{as=e,Gr(as)&&j("updateContainerConfigSync",{displayCapsuleButton:!as,webviewId:S.webviewId})})}function g5(){Ee.on("onInterceptSystemExit",({intercept:e})=>{fE=e})}function y5(){Ee.on("onInterceptBackPress",({intercept:e})=>{m5=e}),Xe("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;mE(t),Ee.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function _5(){Ee.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),U("onDocumentReady",{start_timestamp:ls,timestamp:Date.now()})})}function b5(){Xe("onI18nChanged",({language:e})=>{Ee.emit("onI18nChanged",{i18n:e})})}function w5(e){S.mpType==="game"&&$t.start(e)}function I5(){Xe("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),Ee.emit("LifecycleEvent.onReady",T({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),U("joliboxServiceReady",{start_timestamp:ls,timestamp:Date.now()}),w5(t),jx(()=>S.language)}),Xe("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;mE(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function S5(){let e=()=>{U("onBeforeExit",{timestamp:Date.now()}),is==null||is(),os==null||os(),$t.close(Date.now()-ls)},t=()=>as||fE;ht.onDoExit(()=>w(this,null,function*(){return t()?!0:Gr(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):ss!=null&&ss.canShowRecommended&&!hE&&(yield cE())?!0:(e(),!1)})),ht.onDoBackPress(()=>w(this,null,function*(){return!!t()}))}function x5(){return w(this,null,function*(){let e=`${S.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield te(e);t&&(ss=t)})}function E5(){ls=Date.now(),I5(),v5(),g5(),y5(),S5(),_5(),b5(),x5(),os=dE(),is=Ch()}var is,os,ls,as,ss,fE,m5,hE,mE,gE=k(()=>{"use strict";xe();K();D();gt();Ph();tc();uE();vt();er();pE();as=!1,ss=null,fE=!1,m5=!1,hE=!1,mE=e=>{Gr(e)&&(hE=e)};ht.onReady(()=>{})});function yE(e){let t=Jl.config[e];return t||(t={},Jl.config[e]=t),(r,n)=>{if(t[r]){Ct.warn(`[can i use] ${r} already registered`);return}t[r]=T({},n)}}var _E=k(()=>{"use strict";D()});function Kd(e){bE=e}function cs(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>cs(t)):Object.keys(e).reduce((t,r)=>(t[r]=cs(e[r]),t),{})}function tr(e){return typeof e=="number"}function Qd(e){let t=Yd(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Yd(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var bE,Ie,us,ds,ps,fs,En,hs,ms,vs,gs,ys,_s,bs,ws,Is,Ss,xs,Es,Xd=k(()=>{"use strict";bE=!1;Ie=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(bE)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 ${Qd(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return cs(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:cs(this._default)}optional(){return this._optional=!0,this}};us=class extends Ie{validate(t){return this._optional&&t===void 0?!0:tr(t)?tr(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):tr(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):tr(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}},ds=class extends Ie{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},ps=class extends Ie{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(tr(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(tr(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}},fs=class extends Ie{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},En=class extends Ie{validate(t){return!0}},hs=class extends Ie{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},ms=class extends Ie{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},vs=class extends Ie{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},gs=class extends Ie{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 ${Qd(t)}`)}return!0}},ys=class extends Ie{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(tr(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(tr(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(tr(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}},_s=class extends Ie{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Yd(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 l=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}"]`,!(l===void 0&&o._optional)){if(l===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(l)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},bs=class extends Ie{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Yd(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}},ws=class extends Ie{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Qd(this.value),actual:r}):!0}},Is=class extends Ie{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(`
|
|
605
|
+
`,d5=()=>y("div",{style:dx.container,children:[y("style",{children:u5}),y("div",{style:dx.spinner})]});r7=Xi()});function lE(){return w(this,null,function*(){if(zd)return zd;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 te(t);return zd=r,r})}function cE(){return w(this,null,function*(){let e=new Tt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(Wd)return e.resolve(!0),e.promise;let t=yield lE();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Wd=!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",T({eventType:X.View},o));let a=Gx({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(Wd=!1,s.type){case"quit":j("RecommendedGuide",{eventType:X.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":j("RecommendedGuide",T({eventType:X.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;p5(c),j("GameItem",{eventType:X.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:j("RecommendedGuide",T({eventType:X.Hide},o)),e.resolve(!0);break}}});return e.promise})}var zd,p5,Wd,uE=k(()=>{"use strict";K();xe();D();er();vt();gt();zd=null;lE();p5=e=>{var a;let{data:t}=U("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()}`;U("openSchemaSync",{schema:o})},Wd=!1});function h5(e){let t=T(T({},f5),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=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:b,containerTransition:I,iframeTransition:A}=p();ie=document.createElement("div"),ie.id="jolibox-modal-overlay",ie.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:${b}; opacity:0; visibility:hidden;`,Q=document.createElement("div"),Q.id="jolibox-modal-container",Q.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:${I};`;let C=document.createElement("div");C.id="jolibox-modal-loading",C.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 O=document.createElement("style");O.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(O);let E=document.createElement("div");if(E.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",bt=document.createElement("iframe"),bt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${A};`,bt.src=r,bt.onload=()=>{C.parentNode&&C.parentNode.removeChild(C),bt.style.opacity="1",g(),l==null||l(),Ee.emit("onModalIframeLoaded",{url:r})},E.appendChild(bt),E.appendChild(C),Q.appendChild(E),i){let P=document.createElement("div");P.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;",P.innerHTML="\u2715",P.onclick=v,Q.appendChild(P)}ie.appendChild(Q),document.body.appendChild(ie),ie.addEventListener("click",function(P){P.target===ie&&v()}),o&&_()}function g(){!ie||!Q||u||(ie.style.visibility="visible",a?requestAnimationFrame(()=>{ie&&(ie.style.opacity="1"),Q&&(Q.style.transform="translateY(0)"),u=!0}):(ie&&(ie.style.opacity="1"),Q&&(Q.style.transform="translateY(0)"),u=!0),U("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function _(){if(!Q)return;let b=C=>{c=C.touches[0].clientY},I=C=>{if(!u)return;d=C.touches[0].clientY;let O=d-c;O>0&&(Q&&(Q.style.transition="none",Q.style.transform=`translateY(${O}px)`),C.preventDefault())},A=()=>{!u||!Q||(Q.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():Q.style.transform="translateY(0)")};Q.addEventListener("touchstart",b),Q.addEventListener("touchmove",I),Q.addEventListener("touchend",A)}function v(){!ie||!Q||!u||(a?(Q.style.transform="translateY(100%)",ie.style.opacity="0"):ie.style.visibility="hidden",u=!1,U("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{ie&&(ie.remove(),ie=null,Q=null,bt=null,s==null||s(),Ee.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function dE(){return window.joliboxUI=M(T({},window.joliboxUI),{createIframeModal:h5}),()=>{window.joliboxUI=void 0,ie&&ie.parentNode&&ie.parentNode.removeChild(ie),Q&&Q.parentNode&&Q.parentNode.removeChild(Q),bt&&bt.parentNode&&bt.parentNode.removeChild(bt),ie=null,Q=null,bt=null}}var f5,ie,Q,bt,pE=k(()=>{"use strict";xe();K();D();f5={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ie=null,Q=null,bt=null});var vE={};uf(vE,{config:()=>E5});function v5(){No.on("isAdShowing",e=>{as=e,Gr(as)&&U("updateContainerConfigSync",{displayCapsuleButton:!as,webviewId:S.webviewId})})}function g5(){Ee.on("onInterceptSystemExit",({intercept:e})=>{fE=e})}function y5(){Ee.on("onInterceptBackPress",({intercept:e})=>{m5=e}),Ze("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;mE(t),Ee.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function _5(){Ee.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),j("onDocumentReady",{start_timestamp:ls,timestamp:Date.now()})})}function b5(){Ze("onI18nChanged",({language:e})=>{Ee.emit("onI18nChanged",{i18n:e})})}function w5(e){S.mpType==="game"&&$t.start(e)}function I5(){Ze("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),Ee.emit("LifecycleEvent.onReady",T({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),j("joliboxServiceReady",{start_timestamp:ls,timestamp:Date.now()}),w5(t),Ux(()=>S.language)}),Ze("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;mE(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function S5(){let e=()=>{j("onBeforeExit",{timestamp:Date.now()}),is==null||is(),os==null||os(),$t.close(Date.now()-ls)},t=()=>as||fE;ht.onDoExit(()=>w(this,null,function*(){return t()?!0:Gr(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):ss!=null&&ss.canShowRecommended&&!hE&&(yield cE())?!0:(e(),!1)})),ht.onDoBackPress(()=>w(this,null,function*(){return!!t()}))}function x5(){return w(this,null,function*(){let e=`${S.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield te(e);t&&(ss=t)})}function E5(){ls=Date.now(),I5(),v5(),g5(),y5(),S5(),_5(),b5(),x5(),os=dE(),is=Ch()}var is,os,ls,as,ss,fE,m5,hE,mE,gE=k(()=>{"use strict";xe();K();D();gt();Ph();tc();uE();vt();er();pE();as=!1,ss=null,fE=!1,m5=!1,hE=!1,mE=e=>{Gr(e)&&(hE=e)};ht.onReady(()=>{})});function yE(e){let t=Jl.config[e];return t||(t={},Jl.config[e]=t),(r,n)=>{if(t[r]){Ct.warn(`[can i use] ${r} already registered`);return}t[r]=T({},n)}}var _E=k(()=>{"use strict";D()});function Kd(e){bE=e}function cs(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>cs(t)):Object.keys(e).reduce((t,r)=>(t[r]=cs(e[r]),t),{})}function tr(e){return typeof e=="number"}function Qd(e){let t=Yd(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Yd(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var bE,Ie,us,ds,ps,fs,En,hs,ms,vs,gs,ys,_s,bs,ws,Is,Ss,xs,Es,Xd=k(()=>{"use strict";bE=!1;Ie=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(bE)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 ${Qd(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return cs(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:cs(this._default)}optional(){return this._optional=!0,this}};us=class extends Ie{validate(t){return this._optional&&t===void 0?!0:tr(t)?tr(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):tr(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):tr(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}},ds=class extends Ie{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},ps=class extends Ie{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(tr(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(tr(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}},fs=class extends Ie{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},En=class extends Ie{validate(t){return!0}},hs=class extends Ie{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},ms=class extends Ie{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},vs=class extends Ie{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},gs=class extends Ie{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 ${Qd(t)}`)}return!0}},ys=class extends Ie{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(tr(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(tr(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(tr(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}},_s=class extends Ie{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Yd(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 l=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}"]`,!(l===void 0&&o._optional)){if(l===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(l)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},bs=class extends Ie{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Yd(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}},ws=class extends Ie{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Qd(this.value),actual:r}):!0}},Is=class extends Ie{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(`
|
|
606
606
|
or `);this.errors.push(o)}return n}},Ss=class extends Ie{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}},xs=class extends Ie{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},Es=class extends Ie{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 Zd(e,t,r="param"){if(e.errors=[],e.path=r,Kd(!0),!e.validate(t)){let n=e.errors.join(`
|
|
607
|
-
`);throw e.errors.length=0,Kd(!1),new TypeError(n)}}var x,ep=k(()=>{"use strict";Xd();Xd();x={object(e){return new bs(e)},array(e){return new ys(e)},tuple(...e){return new Ss(...e)},literal(e){return new ws(e)},or(...e){return new Is(...e)},symbol(){return new fs},record(e){return new _s(e)},function(){return new vs},boolean(){return new ds},string(){return new ps},number(){return new us},undefined(){return new hs},null(){return new ms},unknown(){return new En},any(){return new En},as(){return new En},arraybuffer(){return new xs},enum(...e){return new gs(...e)},typedarray(e){return new Es(e)}}});var ks,wE,IE=k(()=>{"use strict";D();mt();ep();Wr();ks=1,wE=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:ks};ks+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Zd(i.paramsSchema,o,"params")}catch(b){throw Yl(`${n}:fail ${b.message}`)}let g=i.implement(...o),_=g,v=`${n}:ok`;if(g&&"code"in g){let{code:b,data:I,message:A}=g;l=b,_=I,v=A}return{code:l,message:v,data:_}}catch(g){let _=g;d=(p=(u=_.code)!=null?u:_.errNo)!=null?p:2e3,l="FAILURE";let v=(m=(f=_.message)!=null?f:_.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,ke(new Qn(c,d)),{code:l,message:c}}finally{let g=Date.now()-a;e("apiInvoked",M(T({},s),{duration:g,status:l}))}}}function r(n,i){return(...o)=>w(this,null,function*(){var p,f,m,g;let a=jf(o)?o:[o],s=Date.now(),l={method:n,trace_id:ks};ks+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{Zd(i.paramsSchema,a,"params")}catch(b){throw Yl(b.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:b,data:I,message:A}=v;d=b,c=A,v=I}return Object.assign(u,{code:d,message:c,data:v}),u}catch(_){let v=_,b=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let I=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${_}`,A=`${n}:${d} ${I.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:A}),ke(new Qn(A,b)),u}finally{let _=Date.now()-s;e("apiInvoked",M(T({},l),{duration:_,status:d}))}})}return{createAPI:r,createSyncAPI:t}}});function tp(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 SE=k(()=>{"use strict"});var Le,$,q,xE,dt=k(()=>{"use strict";_E();gt();IE();ep();xe();K();SE();({createAPI:Le,createSyncAPI:$}=wE(U)),q=yE("native"),{canIUseNative:xE}=Af(()=>S.sdkInfo.nativeSDKVersionCode)});var EE,A5,T5,C5,P5,kE=k(()=>{"use strict";D();dt();xe();K();EE=ee(),A5="env",T5="getSystemInfoSync",C5=$(T5,{implement:()=>{var r;let e=j("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:S.viewport.statusBarHeight,navigationBarHeight:S.viewport.navigationBarHeight}}}}),P5=$(A5,{implement:()=>{var t;let e=j("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});EE.registerCommand("API.getSystemInfoSync",C5);EE.registerCommand("API.env",P5);q("env",{version:"1.0.0"});q("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var AE=h(rp=>{"use strict";D();dt();mt();xe();gt();K();var O5="exitGame",R5="onReady",N5="onJoliboxShow",D5="onJoliboxHide",As=ee(),Ts=To(ke),L5=Le(O5,{paramsSchema:x.tuple(x.function(),x.boolean().optional().default(!1)),implement:(e,t=!1)=>w(rp,null,function*(){Ts(e).call(rp),Gr(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&Nf("onRetentionResult",{shouldStay:t},S.from,!0),t||S.setDoExitDirectly(),yield ge("exitAppAsync")})}),q5=$(N5,{paramsSchema:x.tuple(x.function()),implement(e){let t=Ts(e);Xe("onJoliboxEnterForeground",()=>{t.call(this),Xn.emit("visible",!0)})}}),F5=$(D5,{paramsSchema:x.tuple(x.function()),implement(e){let t=Ts(e);Xe("onJoliboxEnterBackground",()=>{t.call(this),Xn.emit("visible",!1)})}}),M5=$(R5,{paramsSchema:x.tuple(x.function()),implement(e){let t=Ts(e);Ee.on("LifecycleEvent.onReady",r=>{t(r)})}});As.registerCommand("LifecycleSDK.exit",L5);As.registerCommand("LifecycleSDK.onReady",M5);As.registerCommand("LifecycleSDK.onJoliboxShow",q5);As.registerCommand("LifecycleSDK.onJoliboxHide",F5);q("lifeCycle.exit",{version:"1.0.0"});q("lifeCycle.onReady",{version:"1.0.0"});q("lifeCycle.onJoliboxShow",{version:"1.0.0"});q("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function TE(e){let t={};if(!Ar(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 CE(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 PE(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function OE(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!Ar(r))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,l]of Object.entries(r))l!=null&&o.append(s,String(l));let a=o.toString();return a?`${n}?${a}`:n}var RE=k(()=>{"use strict";D()});var U5,j5,np,ip,NE,B5,J5,H5,DE=k(()=>{"use strict";Wr();Zl();dt();RE();D();mt();K();U5=15,j5=Oo("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),np=0,ip=[],NE=To(ke),B5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},J5=e=>{let t=new Tt,r=()=>{};return $("request",{paramsSchema:x.tuple(x.object({url:x.string(),method:x.string(),headers:x.object().optional(),data:x.object().optional(),query:x.object().optional(),dataType:x.string().default("json"),responseType:x.string().default("text"),enableCache:x.boolean().default(!1),appendHostCookie:x.boolean().default(!0),timeout:x.number().default(3e4),success:x.function(),fail:x.function()})),implement(i){let o=()=>w(this,null,function*(){var s,l,c;let a=NE(i.fail);try{if(np+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=TE((s=i.headers)!=null?s:{}),_=CE(i.method),v=PE(i.timeout),b=OE(i.url,_,d),I=NE(i.success),A=Object.assign({},i,{method:_,header:m?void 0:g,data:_==="GET"||_==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:m});v&&(A.timeout=v);let P=j5(b,A);{let{response:O}=yield P,{code:E,data:C,message:Z}=O;if(C&&typeof C=="object"&&"status"in C&&C.status!==200)throw lr({code:C.status||-1,msg:`request:fail status ${C.status}`});t.resolve({code:E!=null?E:"SUCCESS",data:C,message:Z!=null?Z:"request:ok"}),I({code:"SUCCESS",message:"request:ok",data:C})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{np-=1,(c=ip.shift())==null||c()}});return np>=U5?(r=()=>{B5(ip,a=>a===o)},ip.push(o)):o(),t.promise}})(e),{abort(){t.reject(lr({code:-1,msg:"request:fail abort"})),r()}}},H5=ee();H5.registerCommand("HttpSDK.request",J5);q("request",{version:"1.0.0"})});function LE(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),W5.includes(t)?t:""}function qE(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 FE(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 Cs,$5,V5,G5,z5,RK,NK,W5,op,ME,ap=k(()=>{"use strict";dt();xe();D();vt();K();Cs=ee(),$5=Le("getLocalStorage",{paramsSchema:x.tuple(x.string()),implement(e){return w(this,null,function*(){let{response:t}=yield te(`/api/games/user-storage/${S.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield ge("getLocalStorageAsync",{key:e}),s=qE(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}}})}});Cs.registerCommand("StorageSDK.getItem",$5);q("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});V5=Le("setStorage",{paramsSchema:x.tuple(x.string(),x.or(x.string(),x.boolean(),x.number())),implement(e,t){return w(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield te(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=LE(t),l=FE(t,s);return yield ge("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});Cs.registerCommand("StorageSDK.setItem",V5);q("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});G5=Le("removeStorage",{paramsSchema:x.tuple(x.string()),implement(e){return w(this,null,function*(){let t=S.mpId,{response:r}=yield te(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield ge("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});Cs.registerCommand("StorageSDK.removeItem",G5);q("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});z5=Le("clearStorage",{implement(){return w(this,null,function*(){let e=S.mpId,{response:t}=yield te(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});ge("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});Cs.registerCommand("StorageSDK.clear",z5);q("storage.clear",{version:"1.0.0"});RK=Le("getStorageInfo",{implement(){return w(this,null,function*(){let{data:e}=yield ge("getStorageInfoAsync");return e})}});q("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});NK=$("getStorageInfoSync",{implement(){return j("getStorageInfoSync")}}),W5=["string","number","boolean","object",""];op=Le("getGlobalStorage",{paramsSchema:x.tuple(x.string()),implement(e){return w(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield ge("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:qE(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),ME=Le("setGlobalStorage",{paramsSchema:x.tuple(x.string(),x.or(x.string(),x.boolean(),x.number(),x.array())),implement(e,t){return w(this,null,function*(){try{let r=LE(t),n=FE(t,r);return yield ge("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 K5,Q5,Y5,sp,UE=k(()=>{"use strict";D();xe();dt();K5=$("showKeyboard",{paramsSchema:x.tuple(x.object({defaultValue:x.string().optional().default(""),multiple:x.boolean().optional().default(!1),maxLength:x.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),j("showKeyboardSync",M(T({},e),{defaultValue:r,maxLength:t}))}});q("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"}});Q5=$("updateKeyboard",{paramsSchema:x.tuple(x.object({value:x.string()})),implement(e){j("updateKeyboardSync",e)}});q("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});Y5=$("hideKeyboard",{implement(){j("hideKeyboardSync")}});q("keyboard.hideKeyboard",{version:"1.0.0"});sp=ee();sp.registerCommand("KeyboardSDK.showKeyboard",K5);sp.registerCommand("KeyboardSDK.updateKeyboard",Q5);sp.registerCommand("KeyboardSDK.hideKeyboard",Y5)});var jE=h(Ps=>{"use strict";D();dt();gt();var lp=ee(),X5=Le("levelFinished",{paramsSchema:x.tuple(x.object({levelId:x.or(x.string(),x.number()),duration:x.number().optional(),rating:x.number().optional(),score:x.number().optional()})),implement:e=>w(Ps,null,function*(){let{levelId:t,duration:r,rating:n,score:i}=e,o=[];o.push($t.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i})),o.push($t.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(o)})}),Z5=Le("gamePlayEnded",{paramsSchema:x.tuple(x.object({duration:x.number().optional(),rating:x.number().optional(),score:x.number()})),implement:e=>w(Ps,null,function*(){let{duration:t,rating:r,score:n}=e;return $t.tracker("GamePlayEnded",{duration:t,rating:r,score:n})})}),e3=Le("levelUpgrade",{paramsSchema:x.tuple(x.object({levelId:x.or(x.string(),x.number()),name:x.string().optional()})),implement:r=>w(Ps,[r],function*({levelId:e,name:t}){let n=[];n.push($t.tracker("LevelUpgrade",{name:t,levelId:e})),yield Promise.all(n)})});lp.registerCommand("TaskTrackerSDK.levelFinished",X5);lp.registerCommand("TaskTrackerSDK.gamePlayEnded",Z5);lp.registerCommand("TaskTrackerSDK.levelUpgrade",e3);q("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});q("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});q("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var cp,up,dp,t3,BE,Os=k(()=>{"use strict";K();xe();dt();D();Wr();q("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"}});q("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});cp=new Map;Xe("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i})=>{let o=cp.get(r);o&&(o.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i}),cp.delete(r))});up=(e,t=!1)=>w(void 0,null,function*(){var u;let{data:{isLogin:r}}=yield ge("checkLoginAsync");if(r)return{isLogin:!0,token:(u=S.hostUserInfo)==null?void 0:u.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=j("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw lr({code:-1,msg:"login failed"});let s=new Tt;cp.set(a,s);let l=yield s.promise;S.onEnvConfigChanged({hostUserInfo:l});let p=l,{extra:c}=p,d=Ye(p,["extra"]);return Ee.emit("onLoginComplete",d),t?l:d}),dp=Le("login",{paramsSchema:x.tuple(x.object({skipLogin:x.boolean().optional(),triggerFrom:x.string().optional()}).optional()),implement(e){return w(this,null,function*(){return yield up(e!=null?e:{})})}}),t3=Le("checkSession",{implement(){return w(this,null,function*(){let{data:{isLogin:e}}=yield ge("checkLoginAsync");return{isLogin:e}})}}),BE=ee();BE.registerCommand("API.login",dp);BE.registerCommand("API.checkSession",t3)});var JE,HE=k(()=>{"use strict";JE=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 pp(e){return t=>w(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield op(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=$E(i.data),a=JE(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-((l=a==null?void 0:a[0])!=null?l:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function fp(e){return()=>w(this,null,function*(){var i;let t=Date.now(),r=yield op(e),n=$E((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield ME(e,JSON.stringify(n))})}var $E,VE,GE,zE,WE,KE,QE,Rs=k(()=>{"use strict";ap();HE();$E=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};VE=pp("joli_coin_use_modal_frequency"),GE=pp("joli_coin_payment_frequency"),zE=pp("joli_coin_unlogin_modal_frequency");WE=fp("joli_coin_use_modal_frequency"),KE=fp("joli_coin_payment_frequency"),QE=fp("joli_coin_unlogin_modal_frequency")});var hp,Ns,mp=k(()=>{"use strict";vt();hp=Promise.resolve(),Ns=e=>w(void 0,null,function*(){hp=hp.then(()=>w(void 0,null,function*(){yield te("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield hp})});var Ds,Ls,kt,qs,Jr,br,rr,Fs,kn,r3,L,An,Tn,We=k(()=>{"use strict";D();Ds="UNLOCK_OPTIONS_CHANGED",Ls="INVOKE_PAYMENT",kt="ON_PAYMENT_RESULT",qs="ON_USE_MODAL_EVENT",Jr="ON_USE_MODAL_RESULT",br="ON_USE_MODAL_FREQUENCY",rr="ON_USE_UNLOGIN_MODAL_EVENT",Fs="INVOKE_UNLOGIN_MODAL_EVENT",kn=new Pt,r3=()=>({on:kn.on.bind(kn),off:kn.off.bind(kn),emit:kn.emit.bind(kn)}),L=r3(),An={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},Tn={show:!0,minInterval:8*60*60*1e3}});function tt(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=T(T({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var wr=k(()=>{"use strict"});var ZE=h(vp=>{"use strict";Rs();mp();We();We();er();gt();D();wr();var YE=Xi(),XE=tt(L,br);XE.getData();L.on(qs,(e,t)=>w(vp,null,function*(){if(e==="ADS-JOLI_COIN"){yield YE.show({duration:3e3});let n=yield XE.getData(),{canShow:i,isFirst:o}=yield VE(n.joliCoinUseAndCharge.useJolicoin);console.log("use modal show by frequency",i,o),YE.hide();let{balance:a}=t.userJoliCoin;if(a>=t.joliCoinQuantity&&t.enableAutoDeduct&&!o){L.emit(Jr,{useModalResult:"CONFIRM"});return}if(!i){L.emit(Jr,{useModalResult:"FAILED"});return}}U("unlock_popup_show",{eventType:Y.View,targetType:"game"});let r=Kx({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{U("coin_unlock_click",{targetType:"game",eventType:Y.Click,coinConsume:t.joliCoinQuantity,ifAutoUnlock:t.enableAutoDeduct}),L.emit(Jr,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{n==="FAILED"&&U("ad_unlock_click",{targetType:"game",eventType:Y.Click}),L.emit(Jr,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}},onEnableDeductChanged:n=>w(vp,null,function*(){yield Ns(n)})}});yield WE()}))});function ek(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return w(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 ke(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var tk=k(()=>{"use strict";mt()});var Ms=k(()=>{"use strict"});var n3,Cn,Ir,i3,Hr,gp=k(()=>{"use strict";Ms();D();K();vt();n3=()=>{let[e,t]=[zf,Kf].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Cn,createPaymentInternalError:Ir}=n3(),i3=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Hr=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>w(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Cn(n,1001);return yield this.pay()});this.cancelOrder=t=>w(this,null,function*(){var n,i;let{response:r}=yield te(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Cn((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(T({},this.generatePaymentContext()))),`${i3}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var yp,nk,ik=k(()=>{"use strict";vt();gp();Ms();yp=class extends Hr{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>w(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return w(this,null,function*(){var n,i,o,a;try{let{response:s}=yield te("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Cn((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),Ir((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},nk=()=>{let e=new Map;return t=>w(void 0,null,function*(){let r=e.get(t);return r||(r=new yp(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var ok,ak=k(()=>{"use strict";ok={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 _p,sk,bp,wp,o3,lk,ck=k(()=>{"use strict";vt();gp();Ms();xe();D();K();er();ak();_p=new Map;Xe("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=_p.get(t);if(o){if(r==="SUCCESS")Br("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&Bf(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Ir(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=ok[r];a&&Br(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}_p.delete(t)}});sk=e=>w(void 0,null,function*(){var n,i;let t=new Tt,r;try{let o=yield ge("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---payInApp---",o),!r)throw Ir("orderUUID is null",1002);_p.set(r,t)}catch(o){throw Ir((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),bp=class extends Hr{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=()=>w(this,null,function*(){return yield sk({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return w(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},wp=class extends Hr{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=()=>w(this,null,function*(){return yield sk({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return w(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield te("/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 Ir("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"}})}},o3={android:bp,ios:wp},lk=()=>{let e=new Map;return t=>w(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=o3[S.platform];if(!s)throw Ir("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 Cn(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var Us,uk=k(()=>{"use strict";tk();ik();ck();Us=ek();Us.registerPaymentHandler("JOLI_COIN",nk());Us.registerPaymentHandler("JOLI_COIN_IAP",lk())});var pk=h(Zi=>{"use strict";We();er();vt();K();Os();D();Rs();uk();er();dt();xe();D();gt();mp();wr();var Pn=Xi(),a3=tt(L,br);L.on(Ls,(e,t)=>w(Zi,null,function*(){var r,n;try{if(!xE("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{L.emit(kt,{paymentResult:"FAILED"})},0);return}if(e==="ADS-JOLI_COIN"){yield Pn.show({duration:3e3});let a=yield a3.getData(),{canShow:s}=yield GE(a.joliCoinUseAndCharge.charge);if(console.log("use payment show by frequency",s),Pn.hide(),!s){L.emit(kt,{paymentResult:"FAILED"});return}console.log("show by frequency")}yield Pn.show({duration:3e3});let i=yield dk();if(Pn.hide(),!i){L.emit(kt,{paymentResult:"FAILED"});return}U("coinorder_show",{targetType:"game",eventType:Y.View});let o=Qx({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:(n=(r=i.paymentChoices)==null?void 0:r.map(a=>{var s;return M(T({},a),{totalAmountStr:(s=a.totalAmountStr)!=null?s:""})}))!=null?n:[],enableAutoDeduct:i.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:a=>w(Zi,null,function*(){var c,d,u,p,f,m,g,_;if(U("order_pay_ensure",{targetType:"game",eventType:Y.Click,payWay:"app_iap",coinAmount:t.joliCoinQuantity,orderPrice:(d=(c=i.paymentChoices.find(v=>v.productId===a))==null?void 0:c.totalAmountStr)!=null?d:""}),!((u=S.hostUserInfo)!=null&&u.isLogin)){let{data:v}=yield dp({skipLogin:!0});if(!(v!=null&&v.isLogin)){console.log("login failed");return}let b=yield dk();if(((p=b==null?void 0:b.balance)!=null?p:0)>=t.joliCoinQuantity){L.emit(kt,{paymentResult:"SUCCESS"}),o.destroy();return}}console.log("invokeNativePayment",a);let s=(m=(f=i==null?void 0:i.paymentChoices)==null?void 0:f.find(v=>v.productId===a))==null?void 0:m.appStoreProductId;if(!s){L.emit(kt,{paymentResult:"FAILED"}),o.destroy();return}yield Pn.show({duration:3e3});let{code:l}=yield Us.invokePayment("JOLI_COIN_IAP",{productId:a,appStoreProductId:s});if(Pn.hide(),U("order_pay_result",{eventType:Y.Other,targetType:"game",payWay:"app_iap",coinAmount:t.joliCoinQuantity,orderPrice:(_=(g=i.paymentChoices.find(v=>v.productId===a))==null?void 0:g.totalAmountStr)!=null?_:"",payResult:l}),l!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}L.emit(kt,{paymentResult:"SUCCESS"}),o.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:a})=>{L.emit(kt,{paymentResult:(a!=null?a:"")==="CANCEL"?"CANCEL":"FAILED"}),U("ad_unlock_click",{targetType:"game",eventType:Y.Click}),o.destroy()}},onEnableDeductChanged:a=>w(Zi,null,function*(){yield Ns(a)})},onSelect:a=>{var s,l;U("coinorder_click",{targetType:"game",eventType:Y.Click,coinAmount:t.joliCoinQuantity,orderPrice:(l=(s=i.paymentChoices.find(c=>c.productId===a))==null?void 0:s.totalAmountStr)!=null?l:""})}});yield KE()}catch(i){console.info("payment failed",i),L.emit(kt,{paymentResult:"FAILED"})}}));var s3=(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=>!Ml(r.totalAmountStr))},dk=()=>w(Zi,null,function*(){var r,n,i,o,a,s,l,c,d,u;let{response:e}=yield te("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});console.info("getBalenceDetails",e);let{data:t}=yield ge("requestProductDetailsAsync",{appStoreProductIds:(o=(i=(n=(r=e.data)==null?void 0:r.data)==null?void 0:n.paymentChoices)==null?void 0:i.filter(p=>typeof p.appStoreProductId=="string").map(p=>p.appStoreProductId))!=null?o:[]});if((a=e.data)!=null&&a.data&&t&&s3((s=e.data)==null?void 0:s.data,t),console.info("productDetails",(l=e.data)==null?void 0:l.data),((d=(c=e.data)==null?void 0:c.data)==null?void 0:d.paymentChoices.length)===0)throw new Error("paymentChoices is empty");return(u=e.data)==null?void 0:u.data})});var hk=h(js=>{"use strict";We();wr();Rs();vt();mt();D();Os();er();gt();var fk=tt(L,br);fk.getData();L.on(Fs,(e,t)=>w(js,null,function*(){var r;try{if(e==="ADS-JOLI_COIN"){let o=yield fk.getData();if(console.log("unlogin guide config",o.loginGuide),!o.loginGuide.show){L.emit(rr,{result:"NOT_SUPPORT"});return}let{canShow:a}=yield zE(o.loginGuide);if(console.log("canShowUseModal",a),!a){L.emit(rr,{result:"FAILED"});return}}let{firstLogin:n}=(r=yield l3())!=null?r:{};if(!(n!=null&&n.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),L.emit(rr,{result:"NOT_SUPPORT"});return}U("LoginGuideModal",{},Y.Expose);let i=Yx({data:{rewardType:e,rewardValue:n.reward.rewardValue},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>w(js,null,function*(){var l,c,d,u;U("LoginGuideModal",{type:"click_confirm"},Y.Click);let{isLogin:o,extra:a,isFirstLogin:s}=yield up({},!0);if(!o){console.log("login failed");return}if(U("LoginGuideModal",{type:"click_confirm_login",isFirstLogin:s},Y.Click),s&&((l=a==null?void 0:a.firstLogin)!=null&&l.reward)){let{rewardValue:p}=a.firstLogin.reward;Br("{slot-i18ntran-loginGuide.rewardTips}",{i18nParams:{text:"Jolicoin Used",coin:p},position:"top",duration:3e3})}L.emit(rr,{result:"SUCCESS",rewards:{jolicoin:{claimedRewardValue:(u=(d=(c=a==null?void 0:a.firstLogin)==null?void 0:c.reward)==null?void 0:d.rewardValue)!=null?u:0,isFirstLogin:s!=null?s:!1}}}),i.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:o})=>{U("LoginGuideModal",{},Y.Hide),U("LoginGuideModal",{type:o==="CANCEL"?"click_close":"click_watch_ads"},Y.Click),L.emit(rr,{result:"FAILED"}),i.destroy()}}}});yield QE()}catch(n){ke(new Qf(n)),L.emit(rr,{result:"FAILED"})}}));var l3=()=>w(js,null,function*(){var t;let{response:e}=yield te("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});var DY,LY,qY,mk=k(()=>{"use strict";DY=oe(ZE()),LY=oe(pk()),qY=oe(hk())});function b3(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function w3(e){return typeof e=="string"}function I3(e){return typeof e=="undefined"}function S3(e){return I3(e)||e===null}function x3(e){return typeof e=="function"}function Hk(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 eo(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function $s(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 O3(e){let t=e.location?$s(e.location,wk):null,r=e.target?$s(e.target,wk):null;return $s(g3(v3({},e),{location:t,target:r}),C3)}function R3(e){let t=e.events.map(n=>O3(n)),r=$s(e.device,P3);return[e.protocolVersion,t,r,e.project]}function N3(){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 M3(e){return new Promise(t=>zk(e)(t))}function zk(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 U3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new oo(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 B3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)J3(e[n],t[n])}function J3(e,t){if(w3(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(x3(t)){try{if(e instanceof t)return}catch(r){}if(!S3(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function rt(e,t,r){return(t=H3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H3(e){var t=$3(e,"string");return typeof t=="symbol"?t:t+""}function $3(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 Bs(e,t,r){return(t=V3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V3(e){var t=G3(e,"string");return typeof t=="symbol"?t:t+""}function G3(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 Js(e,t,r){return(t=z3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z3(e){var t=W3(e,"string");return typeof t=="symbol"?t:t+""}function W3(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 nr(e,t,r){return(t=K3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K3(e){var t=Q3(e,"string");return typeof t=="symbol"?t:t+""}function Q3(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 Y3(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 X3(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 i4(e,t){return qe(e,0)^45?(((t<<2^qe(e,0))<<2^qe(e,1))<<2^qe(e,2))<<2^qe(e,3):0}function Qk(e){return e.trim()}function o4(e,t){return(e=t.exec(e))?e[0]:e}function G(e,t,r){return e.replace(t,r)}function qp(e,t){return e.indexOf(t)}function qe(e,t){return e.charCodeAt(t)|0}function ao(e,t,r){return e.slice(t,r)}function Bt(e){return e.length}function Xp(e){return e.length}function Hs(e,t){return t.push(e),e}function a4(e,t){return e.map(t).join("")}function il(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:nl,column:Dn,length:a,return:""}}function ro(e,t){return n4(il("",null,null,"",null,null,0),e,{length:-e.length},t)}function s4(){return Se}function l4(){return Se=ot>0?qe(Ln,--ot):0,Dn--,Se===10&&(Dn=1,nl--),Se}function ft(){return Se=ot<Yk?qe(Ln,ot++):0,Dn++,Se===10&&(Dn=1,nl++),Se}function Jt(){return qe(Ln,ot)}function Vs(){return ot}function lo(e,t){return ao(Ln,e,t)}function so(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 Xk(e){return nl=Dn=1,Yk=Bt(Ln=e),ot=0,[]}function Zk(e){return Ln="",e}function Gs(e){return Qk(lo(ot-1,Fp(e===91?e+2:e===40?e+1:e)))}function c4(e){for(;(Se=Jt())&&Se<33;)ft();return so(e)>2||so(Se)>3?"":" "}function u4(e,t){for(;--t&&ft()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return lo(e,Vs()+(t<6&&Jt()==32&&ft()==32))}function Fp(e){for(;ft();)switch(Se){case e:return ot;case 34:case 39:e!==34&&e!==39&&Fp(Se);break;case 40:e===41&&Fp(e);break;case 92:ft();break}return ot}function d4(e,t){for(;ft()&&e+Se!==57&&!(e+Se===84&&Jt()===47););return"/*"+lo(t,ot-1)+"*"+rl(e===47?e:ft())}function p4(e){for(;!so(Jt());)ft();return lo(e,ot)}function f4(e){return Zk(zs("",null,null,null,[""],e=Xk(e),0,[0],e))}function zs(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,P=o,O=n,E=I;_;)switch(m=b,b=ft()){case 40:if(m!=108&&qe(E,u-1)==58){qp(E+=G(Gs(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=Gs(b);break;case 9:case 10:case 13:case 32:E+=c4(m);break;case 92:E+=u4(Vs()-1,7);continue;case 47:switch(Jt()){case 42:case 47:Hs(h4(d4(ft(),Vs()),t,r),l);break;default:E+="/"}break;case 123*g:s[c++]=Bt(E)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(E=G(E,/\f/g,"")),f>0&&Bt(E)-u&&Hs(f>32?Ek(E+";",n,r,u-1):Ek(G(E," ","")+";",n,r,u-2),l);break;case 59:E+=";";default:if(Hs(O=xk(E,t,r,c,d,i,s,I,A=[],P=[],u),o),b===123)if(d===0)zs(E,t,O,O,A,o,u,s,P);else switch(p===99&&qe(E,3)===110?100:p){case 100:case 108:case 109:case 115:zs(e,O,O,n&&Hs(xk(e,O,O,0,0,i,s,I,i,A=[],u),P),i,P,u,s,n?A:P);break;default:zs(E,O,O,O,[""],P,0,s,P)}}c=d=f=0,g=v=1,I=E="",u=a;break;case 58:u=1+Bt(E),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&l4()==125)continue}switch(E+=rl(b),b*g){case 38:v=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(Bt(E)-1)*v,v=1;break;case 64:Jt()===45&&(E+=Gs(ft())),p=Jt(),d=u=Bt(I=E+=p4(Vs())),b++;break;case 45:m===45&&Bt(E)==2&&(g=0)}}return o}function xk(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Xp(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=ao(e,u+1,u=r4(g=a[m])),I=e;v<f;++v)(I=Qk(g>0?p[v]+" "+b:G(b,/&\f/g,p[v])))&&(l[_++]=I);return il(e,t,r,i===0?Qp:s,l,c,d)}function h4(e,t,r){return il(e,t,r,Wk,rl(s4()),ao(e,2,-2),0)}function Ek(e,t,r,n){return il(e,t,r,Yp,ao(e,0,n),ao(e,n+1,-1),n)}function Nn(e,t){for(var r="",n=Xp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function m4(e,t,r,n){switch(e.type){case t4:if(e.children.length)break;case e4:case Yp:return e.return=e.return||e.value;case Wk:return"";case Kk:return e.return=e.value+"{"+Nn(e.children,n)+"}";case Qp:e.value=e.props.join(",")}return Bt(r=Nn(e.children,n))?e.return=e.value+"{"+r+"}":""}function v4(e){var t=Xp(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function g4(e){return function(t){t.root||(t=t.return)&&e(t)}}function y4(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function eA(e,t){switch(i4(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+Qs+e+He+e+e;case 6828:case 4268:return V+e+He+e+e;case 6165:return V+e+He+"flex-"+e+e;case 5187:return V+e+G(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return V+e+He+"flex-item-"+G(e,/flex-|-self/,"")+e;case 4675:return V+e+He+"flex-line-pack"+G(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+He+G(e,"shrink","negative")+e;case 5292:return V+e+He+G(e,"basis","preferred-size")+e;case 6060:return V+"box-"+G(e,"-grow","")+V+e+He+G(e,"grow","positive")+e;case 4554:return V+G(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return G(G(G(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return G(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return G(G(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return G(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Bt(e)-1-t>6)switch(qe(e,t+1)){case 109:if(qe(e,t+4)!==45)break;case 102:return G(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+Qs+(qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qp(e,"stretch")?eA(G(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qe(e,t+1)!==115)break;case 6444:switch(qe(e,Bt(e)-3-(~qp(e,"!important")&&10))){case 107:return G(e,":",":"+V)+e;case 101:return G(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(qe(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(qe(e,t+11)){case 114:return V+e+He+G(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+He+G(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+He+G(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+He+e+e}return e}function A4(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 Ys(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 Sr={name:i.name,styles:i.styles,next:Sr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Sr={name:a.name,styles:a.styles,next:Sr},a=a.next;var s=o.styles+";";return s}return O4(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function O4(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Ys(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]+"}":Ak(s)&&(n+=Sp(o)+":"+Tk(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)Ak(a[l])&&(n+=Sp(o)+":"+Tk(o,a[l])+";");else{var c=Ys(e,t,a);switch(o){case"animation":case"animationName":{n+=Sp(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function xp(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="";Sr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Ys(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Ys(r,t,e[s]),n){var l=o;i+=l[s]}Ck.lastIndex=0;for(var c="",d;(d=Ck.exec(i))!==null;)c+="-"+d[1];var u=A4(i)+c;return{name:u,styles:i,next:Sr}}function rA(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function Pk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Ok(e,t,r){var n=[],i=rA(e,n,r);return n.length<2?r:i+t(n)}function F4(e,t){Pe.__h&&Pe.__h(pt,e,Nk||t),Nk=0;var r=pt.__H||(pt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function iA(e,t){var r=F4(Mp++,7);return j4(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function M4(){for(var e;e=nA.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ws),e.__H.__h.forEach(Up),e.__H.__h=[]}catch(t){e.__H.__h=[],Pe.__e(t,e.__v)}}function U4(e){var t,r=function(){clearTimeout(n),jk&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);jk&&(t=requestAnimationFrame(r))}function Ws(e){var t=pt,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),pt=t}function Up(e){var t=pt;e.__c=e.__(),pt=t}function j4(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ol(){if(xr>1)xr--;else{for(var e,t=!1;no!==void 0;){var r=no;for(no=void 0,jp++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&aA(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(jp=0,xr--,t)throw e}}function it(e){if(xr>0)return e();xr++;try{return e()}finally{ol()}}function oA(e){if(X!==void 0){var t=e.n;if(t===void 0||t.t!==X)return t={i:0,S:e,p:X.s,n:void 0,t:X,e:void 0,x:void 0,r:t},X.s!==void 0&&(X.s.n=t),X.s=t,e.n=t,32&X.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=X.s,t.n=void 0,X.s.n=t,X.s=t),t}}function Fe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function re(e){return new Fe(e)}function aA(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 sA(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 lA(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 Fn(e){Fe.call(this,void 0),this.x=e,this.s=void 0,this.g=Xs-1,this.f=4}function io(e){return new Fn(e)}function cA(e){var t=e.u;if(e.u=void 0,typeof t=="function"){xr++;var r=X;X=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Zp(e),n}finally{X=r,ol()}}}function Zp(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,cA(e)}function J4(e){if(X!==this)throw new Error("Out-of-order effect");lA(this),X=e,this.f&=-2,8&this.f&&Zp(this),ol()}function co(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function uo(e){var t=new co(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Mn(e,t){R[e]=t.bind(null,R[e]||function(){})}function Zs(e){kp&&kp(),kp=e&&e.S()}function pA(e){var t=this,r=e.data,n=fA(r);n.value=r;var i=iA(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=io(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=io(function(){return!Array.isArray(c.value)&&!oc(c.value)}),u=uo(function(){if(this.N=hA,d.value){var f=c.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,c]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function H4(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=re(r);return{o:function(a,s){o.value=a,n=s},d:uo(function(){this.N=hA;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function fA(e){return iA(function(){return re(e)},[])}function V4(){it(function(){for(var e;e=dA.shift();)uA.call(e)})}function hA(){dA.push(this)===1&&(R.requestAnimationFrame||$4)(V4)}function G4(e,t){let r=wi(e);sn(()=>{r.current=e},[e]),bi(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function ve(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--z4,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return R.vnode&&R.vnode(c),c}function ir(e,t,r){return(t=oH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oH(e){var t=aH(e,"string");return typeof t=="symbol"?t:t+""}function aH(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=uH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uH(e){var t=dH(e,"string");return typeof t=="symbol"?t:t+""}function dH(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 Je(e,t,r){return(t=pH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pH(e){var t=fH(e,"string");return typeof t=="symbol"?t:t+""}function fH(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=hH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hH(e){var t=mH(e,"string");return typeof t=="symbol"?t:t+""}function mH(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 $r(e,t,r){return(t=vH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vH(e){var t=gH(e,"string");return typeof t=="symbol"?t:t+""}function gH(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 Ap(e,t,r){return(t=yH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yH(e){var t=_H(e,"string");return typeof t=="symbol"?t:t+""}function _H(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ke(e,t,r){return(t=bH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bH(e){var t=wH(e,"string");return typeof t=="symbol"?t:t+""}function wH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function At(e,t,r){return(t=IH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IH(e){var t=SH(e,"string");return typeof t=="symbol"?t:t+""}function SH(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 vk,c3,u3,d3,Bk,p3,f3,gk,h3,m3,yk,v3,g3,y3,Jk,_3,E3,k3,_k,A3,bk,T3,$k,Vk,Gk,wk,C3,P3,Ik,Tp,ce,D3,L3,to,oo,q3,Pp,F3,Ip,j3,Op,Sk,Rp,Np,Dp,Lp,Z3,He,Qs,V,Wk,Qp,Yp,e4,Kk,t4,r4,rl,n4,nl,Dn,Yk,ot,Se,Ln,_4,b4,w4,kk,I4,S4,x4,E4,k4,T4,C4,P4,tA,Ak,Sp,Tk,Ck,Sr,R4,N4,D4,L4,q4,qn,Mp,pt,Ep,Rk,Nk,nA,Pe,Dk,Lk,qk,Fk,Mk,Uk,jk,B4,X,no,xr,jp,Xs,uA,kp,dA,$4,$e,z4,W4,ar,Bp,Jp,Ks,K4,Q4,Y4,X4,Z4,eH,tH,rH,nH,iH,Hp,Rn,On,sH,lH,cH,$p,mA,Vp,Gp,zp,Wp,el,Kp,tl,UY,vA=k(()=>{"use strict";Qr();Xo();vk=Object.getOwnPropertySymbols,c3=Object.prototype.hasOwnProperty,u3=Object.prototype.propertyIsEnumerable,d3=(e,t)=>{var r={};for(var n in e)c3.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&vk)for(var n of vk(e))t.indexOf(n)<0&&u3.call(e,n)&&(r[n]=e[n]);return r},Bk=Object.defineProperty,p3=Object.defineProperties,f3=Object.getOwnPropertyDescriptors,gk=Object.getOwnPropertySymbols,h3=Object.prototype.hasOwnProperty,m3=Object.prototype.propertyIsEnumerable,yk=(e,t,r)=>t in e?Bk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v3=(e,t)=>{for(var r in t||(t={}))h3.call(t,r)&&yk(e,r,t[r]);if(gk)for(var r of gk(t))m3.call(t,r)&&yk(e,r,t[r]);return e},g3=(e,t)=>p3(e,f3(t)),y3=(e,t)=>{for(var r in t)Bk(e,r,{get:t[r],enumerable:!0})},Jk=(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},_3=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.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}E3=(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))(E3||{});k3={log:eo("log"),warn:eo("warn"),info:eo("info"),error:eo("error"),debug:eo("debug")};Object.assign(globalThis,{logger:k3});_k=Symbol.for("Jolibox.canIUseMap"),A3={};globalThis[_k]||(globalThis[_k]=A3);bk=Symbol.for("Jolibox.canIUseMap.native"),T3={};globalThis[bk]||(globalThis[bk]=T3);$k=(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))($k||{}),Vk=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Vk||{}),Gk=(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))(Gk||{}),wk=["name","params"],C3=["name","type","location","target","extra","timestamp","userId"],P3=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];N3();Ik=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS"),navigator.userAgent.includes("Android"),navigator.userAgent.includes("Mac"),navigator.userAgent.includes("FB_IAB"),!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Tp=class Cp{constructor(t){this.element=t,this.next=Cp.Undefined,this.prev=Cp.Undefined}};Tp.Undefined=new Tp(void 0);ce=Tp,D3=class{constructor(){this._first=ce.Undefined,this._last=ce.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ce.Undefined}clear(){let e=this._first;for(;e!==ce.Undefined;){let t=e.next;e.prev=ce.Undefined,e.next=ce.Undefined,e=t}this._first=ce.Undefined,this._last=ce.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ce(e);if(this._first===ce.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!==ce.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ce.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ce.Undefined&&e.next!==ce.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ce.Undefined&&e.next===ce.Undefined?(this._first=ce.Undefined,this._last=ce.Undefined):e.next===ce.Undefined?(this._last=this._last.prev,this._last.next=ce.Undefined):e.prev===ce.Undefined&&(this._first=this._first.next,this._first.prev=ce.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ce.Undefined;)yield e.element,e=e.next}},L3=0,to=class{constructor(e){this.value=e,this.id=L3++}},oo=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof to&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){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 l=new to(e);return this._listeners?this._listeners instanceof to?this._listeners=[this._listeners,l]:this._listeners.push(l):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=l,(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 c,d,u,p;if(!this._disposed){if(this._listeners instanceof to)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(d=(c=this.options)==null?void 0:c.onDidRemoveLastListener)==null||d.call(c));else if(this._listeners){let f=this._listeners.indexOf(l);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 to?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},q3=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 oo,o=l=>t(...l.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 l of s)t(...l.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 D3,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)}},Pp={};y3(Pp,{None:()=>F3,filter:()=>U3,once:()=>zk,toPromise:()=>M3});F3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ip=Symbol.for("Jolibox.hostEmitter"),j3=()=>{let e=new q3;return globalThis[Ip]||(globalThis[Ip]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ip]};j3();Op=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new oo,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 B3(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}};Op=Jk([Hk],Op);Sk=class{constructor(){this._onWillExecuteCommand=new oo,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new oo,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Op,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=b3(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 _3(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Pp.toPromise(Pp.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{}}};Sk=Jk([Hk],Sk);Rp=class{constructor(t){rt(this,"context",void 0),rt(this,"continueCallback",void 0),rt(this,"adIsShowingCallback",void 0),rt(this,"isBeforeAdCalled",!1),rt(this,"isBeforeRewardCalled",!1),rt(this,"isAdDismissedCalled",!1),rt(this,"isAdViewedCalled",!1),rt(this,"isAfterAdCalled",!1),rt(this,"currentProvider",void 0),rt(this,"currentClientParams",void 0),rt(this,"adsHasResponse",!1),rt(this,"videoChecker",window.document.createElement("video")),rt(this,"contextInfo",void 0),rt(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)),Ik()&&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),r()}),this.context=t,this.contextInfo=t.getContextInfo()}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;this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.isBeforeAdCalled||(this.isBeforeAdCalled=!0,t==null||t(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),Ik()&&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()=>{this.adsHasResponse=!0,this.isAdDismissedCalled||(this.isAdDismissedCalled=!0,t==null||t())}}wrapAdViewed(t){return()=>{this.adsHasResponse=!0,this.isAdViewedCalled||(this.isAdViewedCalled=!0,t==null||t())}}wrapAfterAd(t){return()=>{this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.isAfterAdCalled||(this.isAfterAdCalled=!0,t==null||t())}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s,l;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}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{t==null||t(r),(a=this.adIsShowingCallback)==null||a.call(this,!1),(s=this.continueCallback)==null||s.call(this,[!1,r]);break}default:{(l=this.continueCallback)==null||l.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return w(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,l,c,d,u;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(l=(s=this.currentProvider)==null?void 0:s.name)!=null?l:null}),(d=this.continueCallback)==null||d.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(c=r.name)!=null?c:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(u=this.adIsShowingCallback)==null||u.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Np=class{constructor(t){Bs(this,"context",void 0),Bs(this,"adBreakIsShowing",!1),Bs(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),Bs(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()})}};Dp=class{constructor(t){Js(this,"configs",null),Js(this,"firstRun",!0),Js(this,"context",void 0),Js(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return w(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}};Lp=class{constructor(t,r){nr(this,"name","ADSENSE"),nr(this,"context",void 0),nr(this,"contextInfo",void 0),nr(this,"configured",!1),nr(this,"initParams",void 0),nr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),nr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=d3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),nr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),nr(this,"adUnit",n=>w(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:l,slot:c,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?f=document.querySelector(l):f=l,!f)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,_=document.createElement("ins");if(_.className="adsbygoogle",_.id="jolibox-ads",_.style.display="block",_.setAttribute("data-ad-client",this.initParams.clientId),_.setAttribute("data-ad-slot",m),g&&_.setAttribute("data-ad-format",g),u&&_.setAttribute("data-full-width-responsive",u),p&&_.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",_.style.position="relative",f.appendChild(_),_.appendChild(v)}else f.appendChild(_),new MutationObserver(v=>{v.forEach(b=>{if(b.type==="attributes"&&b.attributeName==="data-ad-status"){let I=_.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:I!=null?I:"null"})}})}).observe(_,{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 w(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)}})}};Z3=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(X3(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Y3(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}(),He="-ms-",Qs="-moz-",V="-webkit-",Wk="comm",Qp="rule",Yp="decl",e4="@import",Kk="@keyframes",t4="@layer",r4=Math.abs,rl=String.fromCharCode,n4=Object.assign;nl=1,Dn=1,Yk=0,ot=0,Se=0,Ln="";_4=function(e,t,r){for(var n=0,i=0;n=i,i=Jt(),n===38&&i===12&&(t[r]=1),!so(i);)ft();return lo(e,ot)},b4=function(e,t){var r=-1,n=44;do switch(so(n)){case 0:n===38&&Jt()===12&&(t[r]=1),e[r]+=_4(ot-1,t,r);break;case 2:e[r]+=Gs(n);break;case 4:if(n===44){e[++r]=Jt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=rl(n)}while(n=ft());return e},w4=function(e,t){return Zk(b4(Xk(e),t))},kk=new WeakMap,I4=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!kk.get(r))&&!n){kk.set(e,!0);for(var i=[],o=w4(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},S4=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};x4=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Yp:e.return=eA(e.value,e.length);break;case Kk:return Nn([ro(e,{value:G(e.value,"@","@"+V)})],n);case Qp:if(e.length)return a4(e.props,function(i){switch(o4(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nn([ro(e,{props:[G(i,/:(read-\w+)/,":"+Qs+"$1")]})],n);case"::placeholder":return Nn([ro(e,{props:[G(i,/:(plac\w+)/,":"+V+"input-$1")]}),ro(e,{props:[G(i,/:(plac\w+)/,":"+Qs+"$1")]}),ro(e,{props:[G(i,/:(plac\w+)/,He+"input-$1")]})],n)}return""})}},E4=[x4],k4=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||E4,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[I4,S4];{var c,d=[m4,g4(function(m){c.insert(m)})],u=v4(l.concat(n,d)),p=function(m){return Nn(f4(m),u)};s=function(m,g,_,v){c=_,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new Z3({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};T4={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},C4=/[A-Z]|^ms/g,P4=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tA=function(e){return e.charCodeAt(1)===45},Ak=function(e){return e!=null&&typeof e!="boolean"},Sp=y4(function(e){return tA(e)?e:e.replace(C4,"-$&").toLowerCase()}),Tk=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(P4,function(r,n,i){return Sr={name:n,styles:i,next:Sr},n})}return T4[e]!==1&&!tA(e)&&typeof t=="number"&&t!==0?t+"px":t};Ck=/label:\s*([^\s;{]+)\s*(;|$)/g;R4=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},N4=function(e,t,r){R4(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)}};D4=function(e){var t=k4(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=xp(s,t.registered,void 0);return N4(t,c),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=xp(s,t.registered),d="animation-"+c.name;return Pk(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=xp(s,t.registered);Pk(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Ok(t.registered,r,L4(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:rA.bind(null,t.registered),merge:Ok.bind(null,t.registered,r)}},L4=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},q4=D4({key:"css"}),qn=q4.css,Nk=0,nA=[],Pe=R,Dk=Pe.__b,Lk=Pe.__r,qk=Pe.diffed,Fk=Pe.__c,Mk=Pe.unmount,Uk=Pe.__;Pe.__b=function(e){pt=null,Dk&&Dk(e)},Pe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Uk&&Uk(e,t)},Pe.__r=function(e){Lk&&Lk(e),Mp=0;var t=(pt=e.__c).__H;t&&(Ep===pt?(t.__h=[],pt.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Ws),t.__h.forEach(Up),t.__h=[],Mp=0)),Ep=pt},Pe.diffed=function(e){qk&&qk(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(nA.push(t)!==1&&Rk===Pe.requestAnimationFrame||((Rk=Pe.requestAnimationFrame)||U4)(M4)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Ep=pt=null},Pe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ws),r.__h=r.__h.filter(function(n){return!n.__||Up(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Pe.__e(n,r.__v)}}),Fk&&Fk(e,t)},Pe.unmount=function(e){Mk&&Mk(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&&Pe.__e(t,r.__v))};jk=typeof requestAnimationFrame=="function";B4=Symbol.for("preact-signals");X=void 0,no=void 0,xr=0,jp=0,Xs=0;Fe.prototype.brand=B4;Fe.prototype.h=function(){return!0};Fe.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)};Fe.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)}};Fe.prototype.subscribe=function(e){var t=this;return uo(function(){var r=t.value,n=X;X=void 0;try{e(r)}finally{X=n}})};Fe.prototype.valueOf=function(){return this.value};Fe.prototype.toString=function(){return this.value+""};Fe.prototype.toJSON=function(){return this.value};Fe.prototype.peek=function(){var e=X;X=void 0;try{return this.value}finally{X=e}};Object.defineProperty(Fe.prototype,"value",{get:function(){var e=oA(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(jp>100)throw new Error("Cycle detected");this.v=e,this.i++,Xs++,xr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{ol()}}}});(Fn.prototype=new Fe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Xs))return!0;if(this.g=Xs,this.f|=1,this.i>0&&!aA(this))return this.f&=-2,!0;var e=X;try{sA(this),X=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 X=e,lA(this),this.f&=-2,!0};Fn.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)}Fe.prototype.S.call(this,e)};Fn.prototype.U=function(e){if(this.t!==void 0&&(Fe.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)}};Fn.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(Fn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=oA(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});co.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()}};co.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,cA(this),sA(this),xr++;var e=X;return X=this,J4.bind(this,e)};co.prototype.N=function(){2&this.f||(this.f|=2,this.o=no,no=this)};co.prototype.d=function(){this.f|=8,1&this.f||Zp(this)};dA=[];uo(function(){uA=this.N})();pA.displayName="_st";Object.defineProperties(Fe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:pA},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Mn("__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 Fe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Mn("__r",function(e,t){Zs();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return uo(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Zs(r),e(t)});Mn("__e",function(e,t,r,n){Zs(),e(t,r,n)});Mn("diffed",function(e,t){Zs();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 l in n){var c=o[l],d=n[l];c===void 0?(c=H4(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});Mn("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)});Mn("__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};$4=function(e){queueMicrotask(function(){queueMicrotask(e)})};$e=qn`
|
|
607
|
+
`);throw e.errors.length=0,Kd(!1),new TypeError(n)}}var x,ep=k(()=>{"use strict";Xd();Xd();x={object(e){return new bs(e)},array(e){return new ys(e)},tuple(...e){return new Ss(...e)},literal(e){return new ws(e)},or(...e){return new Is(...e)},symbol(){return new fs},record(e){return new _s(e)},function(){return new vs},boolean(){return new ds},string(){return new ps},number(){return new us},undefined(){return new hs},null(){return new ms},unknown(){return new En},any(){return new En},as(){return new En},arraybuffer(){return new xs},enum(...e){return new gs(...e)},typedarray(e){return new Es(e)}}});var ks,wE,IE=k(()=>{"use strict";D();mt();ep();Wr();ks=1,wE=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:ks};ks+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Zd(i.paramsSchema,o,"params")}catch(b){throw Yl(`${n}:fail ${b.message}`)}let g=i.implement(...o),_=g,v=`${n}:ok`;if(g&&"code"in g){let{code:b,data:I,message:A}=g;l=b,_=I,v=A}return{code:l,message:v,data:_}}catch(g){let _=g;d=(p=(u=_.code)!=null?u:_.errNo)!=null?p:2e3,l="FAILURE";let v=(m=(f=_.message)!=null?f:_.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,ke(new Qn(c,d)),{code:l,message:c}}finally{let g=Date.now()-a;e("apiInvoked",M(T({},s),{duration:g,status:l}))}}}function r(n,i){return(...o)=>w(this,null,function*(){var p,f,m,g;let a=Uf(o)?o:[o],s=Date.now(),l={method:n,trace_id:ks};ks+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{Zd(i.paramsSchema,a,"params")}catch(b){throw Yl(b.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:b,data:I,message:A}=v;d=b,c=A,v=I}return Object.assign(u,{code:d,message:c,data:v}),u}catch(_){let v=_,b=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let I=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${_}`,A=`${n}:${d} ${I.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:A}),ke(new Qn(A,b)),u}finally{let _=Date.now()-s;e("apiInvoked",M(T({},l),{duration:_,status:d}))}})}return{createAPI:r,createSyncAPI:t}}});function tp(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 SE=k(()=>{"use strict"});var Fe,V,F,xE,dt=k(()=>{"use strict";_E();gt();IE();ep();xe();K();SE();({createAPI:Fe,createSyncAPI:V}=wE(j)),F=yE("native"),{canIUseNative:xE}=Af(()=>S.sdkInfo.nativeSDKVersionCode)});var EE,A5,T5,C5,P5,kE=k(()=>{"use strict";D();dt();xe();K();EE=ee(),A5="env",T5="getSystemInfoSync",C5=V(T5,{implement:()=>{var r;let e=U("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}}}}),P5=V(A5,{implement:()=>{var t;let e=U("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});EE.registerCommand("API.getSystemInfoSync",C5);EE.registerCommand("API.env",P5);F("env",{version:"1.0.0"});F("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var AE=h(rp=>{"use strict";D();dt();mt();xe();gt();K();var O5="exitGame",R5="onReady",N5="onJoliboxShow",D5="onJoliboxHide",As=ee(),Ts=To(ke),L5=Fe(O5,{paramsSchema:x.tuple(x.function(),x.boolean().optional().default(!1)),implement:(e,t=!1)=>w(rp,null,function*(){Ts(e).call(rp),Gr(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&Nf("onRetentionResult",{shouldStay:t},S.from,!0),t||S.setDoExitDirectly(),yield ge("exitAppAsync")})}),q5=V(N5,{paramsSchema:x.tuple(x.function()),implement(e){let t=Ts(e);Ze("onJoliboxEnterForeground",()=>{t.call(this),Xn.emit("visible",!0)})}}),F5=V(D5,{paramsSchema:x.tuple(x.function()),implement(e){let t=Ts(e);Ze("onJoliboxEnterBackground",()=>{t.call(this),Xn.emit("visible",!1)})}}),M5=V(R5,{paramsSchema:x.tuple(x.function()),implement(e){let t=Ts(e);Ee.on("LifecycleEvent.onReady",r=>{t(r)})}});As.registerCommand("LifecycleSDK.exit",L5);As.registerCommand("LifecycleSDK.onReady",M5);As.registerCommand("LifecycleSDK.onJoliboxShow",q5);As.registerCommand("LifecycleSDK.onJoliboxHide",F5);F("lifeCycle.exit",{version:"1.0.0"});F("lifeCycle.onReady",{version:"1.0.0"});F("lifeCycle.onJoliboxShow",{version:"1.0.0"});F("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function TE(e){let t={};if(!Ar(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 CE(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 PE(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function OE(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!Ar(r))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,l]of Object.entries(r))l!=null&&o.append(s,String(l));let a=o.toString();return a?`${n}?${a}`:n}var RE=k(()=>{"use strict";D()});var j5,U5,np,ip,NE,B5,J5,H5,DE=k(()=>{"use strict";Wr();Zl();dt();RE();D();mt();K();j5=15,U5=Oo("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),np=0,ip=[],NE=To(ke),B5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},J5=e=>{let t=new Tt,r=()=>{};return V("request",{paramsSchema:x.tuple(x.object({url:x.string(),method:x.string(),headers:x.object().optional(),data:x.or(x.object(),x.array()).optional(),query:x.object().optional(),dataType:x.string().default("json"),responseType:x.string().default("text"),enableCache:x.boolean().default(!1),appendHostCookie:x.boolean().default(!0),timeout:x.number().default(3e4),success:x.function(),fail:x.function()})),implement(i){let o=()=>w(this,null,function*(){var s,l,c;let a=NE(i.fail);try{if(np+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=TE((s=i.headers)!=null?s:{}),_=CE(i.method),v=PE(i.timeout),b=OE(i.url,_,d),I=NE(i.success),A=Object.assign({},i,{method:_,header:m?void 0:g,data:_==="GET"||_==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:m});v&&(A.timeout=v);let C=U5(b,A);{let{response:O}=yield C,{code:E,data:P,message:B}=O;if(P&&typeof P=="object"&&"status"in P&&P.status!==200)throw lr({code:P.status||-1,msg:`request:fail status ${P.status}`});t.resolve({code:E!=null?E:"SUCCESS",data:P,message:B!=null?B:"request:ok"}),I({code:"SUCCESS",message:"request:ok",data:P})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{np-=1,(c=ip.shift())==null||c()}});return np>=j5?(r=()=>{B5(ip,a=>a===o)},ip.push(o)):o(),t.promise}})(e),{abort(){t.reject(lr({code:-1,msg:"request:fail abort"})),r()}}},H5=ee();H5.registerCommand("HttpSDK.request",J5);F("request",{version:"1.0.0"})});function LE(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),W5.includes(t)?t:""}function qE(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 FE(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 Cs,$5,V5,G5,z5,NK,DK,W5,op,ME,ap=k(()=>{"use strict";dt();xe();D();vt();K();Cs=ee(),$5=Fe("getLocalStorage",{paramsSchema:x.tuple(x.string()),implement(e){return w(this,null,function*(){let{response:t}=yield te(`/api/games/user-storage/${S.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield ge("getLocalStorageAsync",{key:e}),s=qE(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}}})}});Cs.registerCommand("StorageSDK.getItem",$5);F("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});V5=Fe("setStorage",{paramsSchema:x.tuple(x.string(),x.or(x.string(),x.boolean(),x.number())),implement(e,t){return w(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield te(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=LE(t),l=FE(t,s);return yield ge("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});Cs.registerCommand("StorageSDK.setItem",V5);F("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});G5=Fe("removeStorage",{paramsSchema:x.tuple(x.string()),implement(e){return w(this,null,function*(){let t=S.mpId,{response:r}=yield te(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield ge("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});Cs.registerCommand("StorageSDK.removeItem",G5);F("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});z5=Fe("clearStorage",{implement(){return w(this,null,function*(){let e=S.mpId,{response:t}=yield te(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});ge("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});Cs.registerCommand("StorageSDK.clear",z5);F("storage.clear",{version:"1.0.0"});NK=Fe("getStorageInfo",{implement(){return w(this,null,function*(){let{data:e}=yield ge("getStorageInfoAsync");return e})}});F("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});DK=V("getStorageInfoSync",{implement(){return U("getStorageInfoSync")}}),W5=["string","number","boolean","object",""];op=Fe("getGlobalStorage",{paramsSchema:x.tuple(x.string()),implement(e){return w(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield ge("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:qE(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),ME=Fe("setGlobalStorage",{paramsSchema:x.tuple(x.string(),x.or(x.string(),x.boolean(),x.number(),x.array())),implement(e,t){return w(this,null,function*(){try{let r=LE(t),n=FE(t,r);return yield ge("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 K5,Q5,Y5,sp,jE=k(()=>{"use strict";D();xe();dt();K5=V("showKeyboard",{paramsSchema:x.tuple(x.object({defaultValue:x.string().optional().default(""),multiple:x.boolean().optional().default(!1),maxLength:x.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)),U("showKeyboardSync",M(T({},e),{defaultValue:r,maxLength:t}))}});F("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"}});Q5=V("updateKeyboard",{paramsSchema:x.tuple(x.object({value:x.string()})),implement(e){U("updateKeyboardSync",e)}});F("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});Y5=V("hideKeyboard",{implement(){U("hideKeyboardSync")}});F("keyboard.hideKeyboard",{version:"1.0.0"});sp=ee();sp.registerCommand("KeyboardSDK.showKeyboard",K5);sp.registerCommand("KeyboardSDK.updateKeyboard",Q5);sp.registerCommand("KeyboardSDK.hideKeyboard",Y5)});var UE=h(Ps=>{"use strict";D();dt();gt();var lp=ee(),X5=Fe("levelFinished",{paramsSchema:x.tuple(x.object({levelId:x.or(x.string(),x.number()),duration:x.number().optional(),rating:x.number().optional(),score:x.number().optional()})),implement:e=>w(Ps,null,function*(){let{levelId:t,duration:r,rating:n,score:i}=e,o=[];o.push($t.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i})),o.push($t.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(o)})}),Z5=Fe("gamePlayEnded",{paramsSchema:x.tuple(x.object({duration:x.number().optional(),rating:x.number().optional(),score:x.number()})),implement:e=>w(Ps,null,function*(){let{duration:t,rating:r,score:n}=e;return $t.tracker("GamePlayEnded",{duration:t,rating:r,score:n})})}),e3=Fe("levelUpgrade",{paramsSchema:x.tuple(x.object({levelId:x.or(x.string(),x.number()),name:x.string().optional()})),implement:r=>w(Ps,[r],function*({levelId:e,name:t}){let n=[];n.push($t.tracker("LevelUpgrade",{name:t,levelId:e})),yield Promise.all(n)})});lp.registerCommand("TaskTrackerSDK.levelFinished",X5);lp.registerCommand("TaskTrackerSDK.gamePlayEnded",Z5);lp.registerCommand("TaskTrackerSDK.levelUpgrade",e3);F("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});F("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});F("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var cp,up,dp,t3,BE,Os=k(()=>{"use strict";K();xe();dt();D();Wr();F("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"}});F("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});cp=new Map;Ze("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i})=>{let o=cp.get(r);o&&(o.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i}),cp.delete(r))});up=(e,t=!1)=>w(void 0,null,function*(){var u;let{data:{isLogin:r}}=yield ge("checkLoginAsync");if(r)return{isLogin:!0,token:(u=S.hostUserInfo)==null?void 0:u.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=U("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw lr({code:-1,msg:"login failed"});let s=new Tt;cp.set(a,s);let l=yield s.promise;S.onEnvConfigChanged({hostUserInfo:l});let p=l,{extra:c}=p,d=Xe(p,["extra"]);return Ee.emit("onLoginComplete",d),t?l:d}),dp=Fe("login",{paramsSchema:x.tuple(x.object({skipLogin:x.boolean().optional(),triggerFrom:x.string().optional()}).optional()),implement(e){return w(this,null,function*(){return yield up(e!=null?e:{})})}}),t3=Fe("checkSession",{implement(){return w(this,null,function*(){let{data:{isLogin:e}}=yield ge("checkLoginAsync");return{isLogin:e}})}}),BE=ee();BE.registerCommand("API.login",dp);BE.registerCommand("API.checkSession",t3)});var JE,HE=k(()=>{"use strict";JE=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 pp(e){return t=>w(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield op(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=$E(i.data),a=JE(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-((l=a==null?void 0:a[0])!=null?l:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function fp(e){return()=>w(this,null,function*(){var i;let t=Date.now(),r=yield op(e),n=$E((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield ME(e,JSON.stringify(n))})}var $E,VE,GE,zE,WE,KE,QE,Rs=k(()=>{"use strict";ap();HE();$E=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};VE=pp("joli_coin_use_modal_frequency"),GE=pp("joli_coin_payment_frequency"),zE=pp("joli_coin_unlogin_modal_frequency");WE=fp("joli_coin_use_modal_frequency"),KE=fp("joli_coin_payment_frequency"),QE=fp("joli_coin_unlogin_modal_frequency")});var hp,Ns,mp=k(()=>{"use strict";vt();hp=Promise.resolve(),Ns=e=>w(void 0,null,function*(){hp=hp.then(()=>w(void 0,null,function*(){yield te("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield hp})});var Ds,Ls,kt,qs,Jr,br,rr,Fs,kn,r3,q,An,Tn,Qe=k(()=>{"use strict";D();Ds="UNLOCK_OPTIONS_CHANGED",Ls="INVOKE_PAYMENT",kt="ON_PAYMENT_RESULT",qs="ON_USE_MODAL_EVENT",Jr="ON_USE_MODAL_RESULT",br="ON_USE_MODAL_FREQUENCY",rr="ON_USE_UNLOGIN_MODAL_EVENT",Fs="INVOKE_UNLOGIN_MODAL_EVENT",kn=new Pt,r3=()=>({on:kn.on.bind(kn),off:kn.off.bind(kn),emit:kn.emit.bind(kn)}),q=r3(),An={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},Tn={show:!0,minInterval:8*60*60*1e3}});function rt(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=T(T({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var wr=k(()=>{"use strict"});var ZE=h(vp=>{"use strict";Rs();mp();Qe();Qe();er();gt();D();wr();var YE=Xi(),XE=rt(q,br);XE.getData();q.on(qs,(e,t)=>w(vp,null,function*(){if(e==="ADS-JOLI_COIN"){yield YE.show({duration:3e3});let n=yield XE.getData(),{canShow:i,isFirst:o}=yield VE(n.joliCoinUseAndCharge.useJolicoin);console.log("use modal show by frequency",i,o),YE.hide();let{balance:a}=t.userJoliCoin;if(a>=t.joliCoinQuantity&&t.enableAutoDeduct&&!o){q.emit(Jr,{useModalResult:"CONFIRM"});return}if(!i){q.emit(Jr,{useModalResult:"FAILED"});return}}j("unlock_popup_show",{eventType:X.View,targetType:"game"});let r=Kx({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{j("coin_unlock_click",{targetType:"game",eventType:X.Click,coinConsume:t.joliCoinQuantity,ifAutoUnlock:t.enableAutoDeduct}),q.emit(Jr,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{n==="FAILED"&&j("ad_unlock_click",{targetType:"game",eventType:X.Click}),q.emit(Jr,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}},onEnableDeductChanged:n=>w(vp,null,function*(){yield Ns(n)})}});yield WE()}))});function ek(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return w(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 ke(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var tk=k(()=>{"use strict";mt()});var Ms=k(()=>{"use strict"});var n3,Cn,Ir,i3,Hr,gp=k(()=>{"use strict";Ms();D();K();vt();n3=()=>{let[e,t]=[zf,Kf].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Cn,createPaymentInternalError:Ir}=n3(),i3=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Hr=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>w(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Cn(n,1001);return yield this.pay()});this.cancelOrder=t=>w(this,null,function*(){var n,i;let{response:r}=yield te(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Cn((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(T({},this.generatePaymentContext()))),`${i3}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var yp,nk,ik=k(()=>{"use strict";vt();gp();Ms();yp=class extends Hr{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>w(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return w(this,null,function*(){var n,i,o,a;try{let{response:s}=yield te("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Cn((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),Ir((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},nk=()=>{let e=new Map;return t=>w(void 0,null,function*(){let r=e.get(t);return r||(r=new yp(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var ok,ak=k(()=>{"use strict";ok={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 _p,sk,bp,wp,o3,lk,ck=k(()=>{"use strict";vt();gp();Ms();xe();D();K();er();ak();_p=new Map;Ze("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=_p.get(t);if(o){if(r==="SUCCESS")Br("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&Bf(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Ir(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=ok[r];a&&Br(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}_p.delete(t)}});sk=e=>w(void 0,null,function*(){var n,i;let t=new Tt,r;try{let o=yield ge("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---payInApp---",o),!r)throw Ir("orderUUID is null",1002);_p.set(r,t)}catch(o){throw Ir((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),bp=class extends Hr{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=()=>w(this,null,function*(){return yield sk({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return w(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},wp=class extends Hr{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=()=>w(this,null,function*(){return yield sk({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return w(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield te("/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 Ir("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"}})}},o3={android:bp,ios:wp},lk=()=>{let e=new Map;return t=>w(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=o3[S.platform];if(!s)throw Ir("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 Cn(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var js,uk=k(()=>{"use strict";tk();ik();ck();js=ek();js.registerPaymentHandler("JOLI_COIN",nk());js.registerPaymentHandler("JOLI_COIN_IAP",lk())});var pk=h(Zi=>{"use strict";Qe();er();vt();K();Os();D();Rs();uk();er();dt();xe();D();gt();mp();wr();var Pn=Xi(),a3=rt(q,br);q.on(Ls,(e,t)=>w(Zi,null,function*(){var r,n;try{if(!xE("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{q.emit(kt,{paymentResult:"FAILED"})},0);return}if(e==="ADS-JOLI_COIN"){yield Pn.show({duration:3e3});let a=yield a3.getData(),{canShow:s}=yield GE(a.joliCoinUseAndCharge.charge);if(console.log("use payment show by frequency",s),Pn.hide(),!s){q.emit(kt,{paymentResult:"FAILED"});return}console.log("show by frequency")}yield Pn.show({duration:3e3});let i=yield dk();if(Pn.hide(),!i){q.emit(kt,{paymentResult:"FAILED"});return}j("coinorder_show",{targetType:"game",eventType:X.View});let o=Qx({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:(n=(r=i.paymentChoices)==null?void 0:r.map(a=>{var s;return M(T({},a),{totalAmountStr:(s=a.totalAmountStr)!=null?s:""})}))!=null?n:[],enableAutoDeduct:i.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:a=>w(Zi,null,function*(){var c,d,u,p,f,m,g,_;if(j("order_pay_ensure",{targetType:"game",eventType:X.Click,payWay:"app_iap",coinAmount:t.joliCoinQuantity,orderPrice:(d=(c=i.paymentChoices.find(v=>v.productId===a))==null?void 0:c.totalAmountStr)!=null?d:""}),!((u=S.hostUserInfo)!=null&&u.isLogin)){let{data:v}=yield dp({skipLogin:!0});if(!(v!=null&&v.isLogin)){console.log("login failed");return}let b=yield dk();if(((p=b==null?void 0:b.balance)!=null?p:0)>=t.joliCoinQuantity){q.emit(kt,{paymentResult:"SUCCESS"}),o.destroy();return}}console.log("invokeNativePayment",a);let s=(m=(f=i==null?void 0:i.paymentChoices)==null?void 0:f.find(v=>v.productId===a))==null?void 0:m.appStoreProductId;if(!s){q.emit(kt,{paymentResult:"FAILED"}),o.destroy();return}yield Pn.show({duration:3e3});let{code:l}=yield js.invokePayment("JOLI_COIN_IAP",{productId:a,appStoreProductId:s});if(Pn.hide(),j("order_pay_result",{eventType:X.Other,targetType:"game",payWay:"app_iap",coinAmount:t.joliCoinQuantity,orderPrice:(_=(g=i.paymentChoices.find(v=>v.productId===a))==null?void 0:g.totalAmountStr)!=null?_:"",payResult:l}),l!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}q.emit(kt,{paymentResult:"SUCCESS"}),o.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:a})=>{q.emit(kt,{paymentResult:(a!=null?a:"")==="CANCEL"?"CANCEL":"FAILED"}),j("ad_unlock_click",{targetType:"game",eventType:X.Click}),o.destroy()}},onEnableDeductChanged:a=>w(Zi,null,function*(){yield Ns(a)})},onSelect:a=>{var s,l;j("coinorder_click",{targetType:"game",eventType:X.Click,coinAmount:t.joliCoinQuantity,orderPrice:(l=(s=i.paymentChoices.find(c=>c.productId===a))==null?void 0:s.totalAmountStr)!=null?l:""})}});yield KE()}catch(i){console.info("payment failed",i),q.emit(kt,{paymentResult:"FAILED"})}}));var s3=(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=>!Ml(r.totalAmountStr))},dk=()=>w(Zi,null,function*(){var r,n,i,o,a,s,l,c,d,u;let{response:e}=yield te("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});console.info("getBalenceDetails",e);let{data:t}=yield ge("requestProductDetailsAsync",{appStoreProductIds:(o=(i=(n=(r=e.data)==null?void 0:r.data)==null?void 0:n.paymentChoices)==null?void 0:i.filter(p=>typeof p.appStoreProductId=="string").map(p=>p.appStoreProductId))!=null?o:[]});if((a=e.data)!=null&&a.data&&t&&s3((s=e.data)==null?void 0:s.data,t),console.info("productDetails",(l=e.data)==null?void 0:l.data),((d=(c=e.data)==null?void 0:c.data)==null?void 0:d.paymentChoices.length)===0)throw new Error("paymentChoices is empty");return(u=e.data)==null?void 0:u.data})});var hk=h(Us=>{"use strict";Qe();wr();Rs();vt();mt();D();Os();er();gt();var fk=rt(q,br);fk.getData();q.on(Fs,(e,t)=>w(Us,null,function*(){var r;try{if(e==="ADS-JOLI_COIN"){let o=yield fk.getData();if(console.log("unlogin guide config",o.loginGuide),!o.loginGuide.show){q.emit(rr,{result:"NOT_SUPPORT"});return}let{canShow:a}=yield zE(o.loginGuide);if(console.log("canShowUseModal",a),!a){q.emit(rr,{result:"FAILED"});return}}let{firstLogin:n}=(r=yield l3())!=null?r:{};if(!(n!=null&&n.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),q.emit(rr,{result:"NOT_SUPPORT"});return}j("LoginGuideModal",{},X.Expose);let i=Yx({data:{rewardType:e,rewardValue:n.reward.rewardValue},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>w(Us,null,function*(){var l,c,d,u;j("LoginGuideModal",{type:"click_confirm"},X.Click);let{isLogin:o,extra:a,isFirstLogin:s}=yield up({},!0);if(!o){console.log("login failed");return}if(j("LoginGuideModal",{type:"click_confirm_login",isFirstLogin:s},X.Click),s&&((l=a==null?void 0:a.firstLogin)!=null&&l.reward)){let{rewardValue:p}=a.firstLogin.reward;Br("{slot-i18ntran-loginGuide.rewardTips}",{i18nParams:{text:"Jolicoin Used",coin:p},position:"top",duration:3e3})}q.emit(rr,{result:"SUCCESS",rewards:{jolicoin:{claimedRewardValue:(u=(d=(c=a==null?void 0:a.firstLogin)==null?void 0:c.reward)==null?void 0:d.rewardValue)!=null?u:0,isFirstLogin:s!=null?s:!1}}}),i.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:o})=>{j("LoginGuideModal",{},X.Hide),j("LoginGuideModal",{type:o==="CANCEL"?"click_close":"click_watch_ads"},X.Click),q.emit(rr,{result:"FAILED"}),i.destroy()}}}});yield QE()}catch(n){ke(new Qf(n)),q.emit(rr,{result:"FAILED"})}}));var l3=()=>w(Us,null,function*(){var t;let{response:e}=yield te("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});var LY,qY,FY,mk=k(()=>{"use strict";LY=oe(ZE()),qY=oe(pk()),FY=oe(hk())});function b3(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function w3(e){return typeof e=="string"}function I3(e){return typeof e=="undefined"}function S3(e){return I3(e)||e===null}function x3(e){return typeof e=="function"}function Hk(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 eo(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function $s(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 O3(e){let t=e.location?$s(e.location,wk):null,r=e.target?$s(e.target,wk):null;return $s(g3(v3({},e),{location:t,target:r}),C3)}function R3(e){let t=e.events.map(n=>O3(n)),r=$s(e.device,P3);return[e.protocolVersion,t,r,e.project]}function N3(){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 M3(e){return new Promise(t=>zk(e)(t))}function zk(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 j3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new oo(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 B3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)J3(e[n],t[n])}function J3(e,t){if(w3(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(x3(t)){try{if(e instanceof t)return}catch(r){}if(!S3(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 nt(e,t,r){return(t=H3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H3(e){var t=$3(e,"string");return typeof t=="symbol"?t:t+""}function $3(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 Bs(e,t,r){return(t=V3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V3(e){var t=G3(e,"string");return typeof t=="symbol"?t:t+""}function G3(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 Js(e,t,r){return(t=z3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z3(e){var t=W3(e,"string");return typeof t=="symbol"?t:t+""}function W3(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 nr(e,t,r){return(t=K3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K3(e){var t=Q3(e,"string");return typeof t=="symbol"?t:t+""}function Q3(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 Y3(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 X3(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 i4(e,t){return Me(e,0)^45?(((t<<2^Me(e,0))<<2^Me(e,1))<<2^Me(e,2))<<2^Me(e,3):0}function Qk(e){return e.trim()}function o4(e,t){return(e=t.exec(e))?e[0]:e}function z(e,t,r){return e.replace(t,r)}function qp(e,t){return e.indexOf(t)}function Me(e,t){return e.charCodeAt(t)|0}function ao(e,t,r){return e.slice(t,r)}function Bt(e){return e.length}function Xp(e){return e.length}function Hs(e,t){return t.push(e),e}function a4(e,t){return e.map(t).join("")}function il(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:nl,column:Dn,length:a,return:""}}function ro(e,t){return n4(il("",null,null,"",null,null,0),e,{length:-e.length},t)}function s4(){return Se}function l4(){return Se=at>0?Me(Ln,--at):0,Dn--,Se===10&&(Dn=1,nl--),Se}function ft(){return Se=at<Yk?Me(Ln,at++):0,Dn++,Se===10&&(Dn=1,nl++),Se}function Jt(){return Me(Ln,at)}function Vs(){return at}function lo(e,t){return ao(Ln,e,t)}function so(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 Xk(e){return nl=Dn=1,Yk=Bt(Ln=e),at=0,[]}function Zk(e){return Ln="",e}function Gs(e){return Qk(lo(at-1,Fp(e===91?e+2:e===40?e+1:e)))}function c4(e){for(;(Se=Jt())&&Se<33;)ft();return so(e)>2||so(Se)>3?"":" "}function u4(e,t){for(;--t&&ft()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return lo(e,Vs()+(t<6&&Jt()==32&&ft()==32))}function Fp(e){for(;ft();)switch(Se){case e:return at;case 34:case 39:e!==34&&e!==39&&Fp(Se);break;case 40:e===41&&Fp(e);break;case 92:ft();break}return at}function d4(e,t){for(;ft()&&e+Se!==57&&!(e+Se===84&&Jt()===47););return"/*"+lo(t,at-1)+"*"+rl(e===47?e:ft())}function p4(e){for(;!so(Jt());)ft();return lo(e,at)}function f4(e){return Zk(zs("",null,null,null,[""],e=Xk(e),0,[0],e))}function zs(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,C=o,O=n,E=I;_;)switch(m=b,b=ft()){case 40:if(m!=108&&Me(E,u-1)==58){qp(E+=z(Gs(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=Gs(b);break;case 9:case 10:case 13:case 32:E+=c4(m);break;case 92:E+=u4(Vs()-1,7);continue;case 47:switch(Jt()){case 42:case 47:Hs(h4(d4(ft(),Vs()),t,r),l);break;default:E+="/"}break;case 123*g:s[c++]=Bt(E)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(E=z(E,/\f/g,"")),f>0&&Bt(E)-u&&Hs(f>32?Ek(E+";",n,r,u-1):Ek(z(E," ","")+";",n,r,u-2),l);break;case 59:E+=";";default:if(Hs(O=xk(E,t,r,c,d,i,s,I,A=[],C=[],u),o),b===123)if(d===0)zs(E,t,O,O,A,o,u,s,C);else switch(p===99&&Me(E,3)===110?100:p){case 100:case 108:case 109:case 115:zs(e,O,O,n&&Hs(xk(e,O,O,0,0,i,s,I,i,A=[],u),C),i,C,u,s,n?A:C);break;default:zs(E,O,O,O,[""],C,0,s,C)}}c=d=f=0,g=v=1,I=E="",u=a;break;case 58:u=1+Bt(E),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&l4()==125)continue}switch(E+=rl(b),b*g){case 38:v=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(Bt(E)-1)*v,v=1;break;case 64:Jt()===45&&(E+=Gs(ft())),p=Jt(),d=u=Bt(I=E+=p4(Vs())),b++;break;case 45:m===45&&Bt(E)==2&&(g=0)}}return o}function xk(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Xp(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=ao(e,u+1,u=r4(g=a[m])),I=e;v<f;++v)(I=Qk(g>0?p[v]+" "+b:z(b,/&\f/g,p[v])))&&(l[_++]=I);return il(e,t,r,i===0?Qp:s,l,c,d)}function h4(e,t,r){return il(e,t,r,Wk,rl(s4()),ao(e,2,-2),0)}function Ek(e,t,r,n){return il(e,t,r,Yp,ao(e,0,n),ao(e,n+1,-1),n)}function Nn(e,t){for(var r="",n=Xp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function m4(e,t,r,n){switch(e.type){case t4:if(e.children.length)break;case e4:case Yp:return e.return=e.return||e.value;case Wk:return"";case Kk:return e.return=e.value+"{"+Nn(e.children,n)+"}";case Qp:e.value=e.props.join(",")}return Bt(r=Nn(e.children,n))?e.return=e.value+"{"+r+"}":""}function v4(e){var t=Xp(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function g4(e){return function(t){t.root||(t=t.return)&&e(t)}}function y4(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function eA(e,t){switch(i4(e,t)){case 5103:return G+"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 G+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+Qs+e+Ve+e+e;case 6828:case 4268:return G+e+Ve+e+e;case 6165:return G+e+Ve+"flex-"+e+e;case 5187:return G+e+z(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+Ve+"flex-$1$2")+e;case 5443:return G+e+Ve+"flex-item-"+z(e,/flex-|-self/,"")+e;case 4675:return G+e+Ve+"flex-line-pack"+z(e,/align-content|flex-|-self/,"")+e;case 5548:return G+e+Ve+z(e,"shrink","negative")+e;case 5292:return G+e+Ve+z(e,"basis","preferred-size")+e;case 6060:return G+"box-"+z(e,"-grow","")+G+e+Ve+z(e,"grow","positive")+e;case 4554:return G+z(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return z(z(z(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return z(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return z(z(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+Ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+G+e+e;case 4095:case 3583:case 4068:case 2532:return z(e,/(.+)-inline(.+)/,G+"$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(Bt(e)-1-t>6)switch(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return z(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+Qs+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qp(e,"stretch")?eA(z(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,Bt(e)-3-(~qp(e,"!important")&&10))){case 107:return z(e,":",":"+G)+e;case 101:return z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(Me(e,14)===45?"inline-":"")+"box$3$1"+G+"$2$3$1"+Ve+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return G+e+Ve+z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+Ve+z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+Ve+z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return G+e+Ve+e+e}return e}function A4(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 Ys(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 Sr={name:i.name,styles:i.styles,next:Sr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Sr={name:a.name,styles:a.styles,next:Sr},a=a.next;var s=o.styles+";";return s}return O4(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function O4(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Ys(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]+"}":Ak(s)&&(n+=Sp(o)+":"+Tk(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)Ak(a[l])&&(n+=Sp(o)+":"+Tk(o,a[l])+";");else{var c=Ys(e,t,a);switch(o){case"animation":case"animationName":{n+=Sp(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function xp(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="";Sr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Ys(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Ys(r,t,e[s]),n){var l=o;i+=l[s]}Ck.lastIndex=0;for(var c="",d;(d=Ck.exec(i))!==null;)c+="-"+d[1];var u=A4(i)+c;return{name:u,styles:i,next:Sr}}function rA(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function Pk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Ok(e,t,r){var n=[],i=rA(e,n,r);return n.length<2?r:i+t(n)}function F4(e,t){Pe.__h&&Pe.__h(pt,e,Nk||t),Nk=0;var r=pt.__H||(pt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function iA(e,t){var r=F4(Mp++,7);return U4(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function M4(){for(var e;e=nA.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ws),e.__H.__h.forEach(jp),e.__H.__h=[]}catch(t){e.__H.__h=[],Pe.__e(t,e.__v)}}function j4(e){var t,r=function(){clearTimeout(n),Uk&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Uk&&(t=requestAnimationFrame(r))}function Ws(e){var t=pt,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),pt=t}function jp(e){var t=pt;e.__c=e.__(),pt=t}function U4(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ol(){if(xr>1)xr--;else{for(var e,t=!1;no!==void 0;){var r=no;for(no=void 0,Up++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&aA(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Up=0,xr--,t)throw e}}function ot(e){if(xr>0)return e();xr++;try{return e()}finally{ol()}}function oA(e){if(Z!==void 0){var t=e.n;if(t===void 0||t.t!==Z)return t={i:0,S:e,p:Z.s,n:void 0,t:Z,e:void 0,x:void 0,r:t},Z.s!==void 0&&(Z.s.n=t),Z.s=t,e.n=t,32&Z.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=Z.s,t.n=void 0,Z.s.n=t,Z.s=t),t}}function je(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function re(e){return new je(e)}function aA(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 sA(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 lA(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 Fn(e){je.call(this,void 0),this.x=e,this.s=void 0,this.g=Xs-1,this.f=4}function io(e){return new Fn(e)}function cA(e){var t=e.u;if(e.u=void 0,typeof t=="function"){xr++;var r=Z;Z=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Zp(e),n}finally{Z=r,ol()}}}function Zp(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,cA(e)}function J4(e){if(Z!==this)throw new Error("Out-of-order effect");lA(this),Z=e,this.f&=-2,8&this.f&&Zp(this),ol()}function co(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function uo(e){var t=new co(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Mn(e,t){R[e]=t.bind(null,R[e]||function(){})}function Zs(e){kp&&kp(),kp=e&&e.S()}function pA(e){var t=this,r=e.data,n=fA(r);n.value=r;var i=iA(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=io(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=io(function(){return!Array.isArray(c.value)&&!oc(c.value)}),u=uo(function(){if(this.N=hA,d.value){var f=c.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,c]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function H4(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=re(r);return{o:function(a,s){o.value=a,n=s},d:uo(function(){this.N=hA;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function fA(e){return iA(function(){return re(e)},[])}function V4(){ot(function(){for(var e;e=dA.shift();)uA.call(e)})}function hA(){dA.push(this)===1&&(R.requestAnimationFrame||$4)(V4)}function G4(e,t){let r=wi(e);sn(()=>{r.current=e},[e]),bi(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function ve(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--z4,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return R.vnode&&R.vnode(c),c}function ir(e,t,r){return(t=oH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oH(e){var t=aH(e,"string");return typeof t=="symbol"?t:t+""}function aH(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=uH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uH(e){var t=dH(e,"string");return typeof t=="symbol"?t:t+""}function dH(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 $e(e,t,r){return(t=pH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pH(e){var t=fH(e,"string");return typeof t=="symbol"?t:t+""}function fH(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 it(e,t,r){return(t=hH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hH(e){var t=mH(e,"string");return typeof t=="symbol"?t:t+""}function mH(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 $r(e,t,r){return(t=vH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vH(e){var t=gH(e,"string");return typeof t=="symbol"?t:t+""}function gH(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 Ap(e,t,r){return(t=yH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yH(e){var t=_H(e,"string");return typeof t=="symbol"?t:t+""}function _H(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ye(e,t,r){return(t=bH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bH(e){var t=wH(e,"string");return typeof t=="symbol"?t:t+""}function wH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function At(e,t,r){return(t=IH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IH(e){var t=SH(e,"string");return typeof t=="symbol"?t:t+""}function SH(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 vk,c3,u3,d3,Bk,p3,f3,gk,h3,m3,yk,v3,g3,y3,Jk,_3,E3,k3,_k,A3,bk,T3,$k,Vk,Gk,wk,C3,P3,Ik,Tp,ce,D3,L3,to,oo,q3,Pp,F3,Ip,U3,Op,Sk,Rp,Np,Dp,Lp,Z3,Ve,Qs,G,Wk,Qp,Yp,e4,Kk,t4,r4,rl,n4,nl,Dn,Yk,at,Se,Ln,_4,b4,w4,kk,I4,S4,x4,E4,k4,T4,C4,P4,tA,Ak,Sp,Tk,Ck,Sr,R4,N4,D4,L4,q4,qn,Mp,pt,Ep,Rk,Nk,nA,Pe,Dk,Lk,qk,Fk,Mk,jk,Uk,B4,Z,no,xr,Up,Xs,uA,kp,dA,$4,Ge,z4,W4,ar,Bp,Jp,Ks,K4,Q4,Y4,X4,Z4,eH,tH,rH,nH,iH,Hp,Rn,On,sH,lH,cH,$p,mA,Vp,Gp,zp,Wp,el,Kp,tl,UY,vA=k(()=>{"use strict";Qr();Xo();vk=Object.getOwnPropertySymbols,c3=Object.prototype.hasOwnProperty,u3=Object.prototype.propertyIsEnumerable,d3=(e,t)=>{var r={};for(var n in e)c3.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&vk)for(var n of vk(e))t.indexOf(n)<0&&u3.call(e,n)&&(r[n]=e[n]);return r},Bk=Object.defineProperty,p3=Object.defineProperties,f3=Object.getOwnPropertyDescriptors,gk=Object.getOwnPropertySymbols,h3=Object.prototype.hasOwnProperty,m3=Object.prototype.propertyIsEnumerable,yk=(e,t,r)=>t in e?Bk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v3=(e,t)=>{for(var r in t||(t={}))h3.call(t,r)&&yk(e,r,t[r]);if(gk)for(var r of gk(t))m3.call(t,r)&&yk(e,r,t[r]);return e},g3=(e,t)=>p3(e,f3(t)),y3=(e,t)=>{for(var r in t)Bk(e,r,{get:t[r],enumerable:!0})},Jk=(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},_3=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.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}E3=(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))(E3||{});k3={log:eo("log"),warn:eo("warn"),info:eo("info"),error:eo("error"),debug:eo("debug")};Object.assign(globalThis,{logger:k3});_k=Symbol.for("Jolibox.canIUseMap"),A3={};globalThis[_k]||(globalThis[_k]=A3);bk=Symbol.for("Jolibox.canIUseMap.native"),T3={};globalThis[bk]||(globalThis[bk]=T3);$k=(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))($k||{}),Vk=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Vk||{}),Gk=(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))(Gk||{}),wk=["name","params"],C3=["name","type","location","target","extra","timestamp","userId"],P3=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];N3();Ik=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS"),navigator.userAgent.includes("Android"),navigator.userAgent.includes("Mac"),navigator.userAgent.includes("FB_IAB"),!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Tp=class Cp{constructor(t){this.element=t,this.next=Cp.Undefined,this.prev=Cp.Undefined}};Tp.Undefined=new Tp(void 0);ce=Tp,D3=class{constructor(){this._first=ce.Undefined,this._last=ce.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ce.Undefined}clear(){let e=this._first;for(;e!==ce.Undefined;){let t=e.next;e.prev=ce.Undefined,e.next=ce.Undefined,e=t}this._first=ce.Undefined,this._last=ce.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ce(e);if(this._first===ce.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!==ce.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ce.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ce.Undefined&&e.next!==ce.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ce.Undefined&&e.next===ce.Undefined?(this._first=ce.Undefined,this._last=ce.Undefined):e.next===ce.Undefined?(this._last=this._last.prev,this._last.next=ce.Undefined):e.prev===ce.Undefined&&(this._first=this._first.next,this._first.prev=ce.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ce.Undefined;)yield e.element,e=e.next}},L3=0,to=class{constructor(e){this.value=e,this.id=L3++}},oo=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof to&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){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 l=new to(e);return this._listeners?this._listeners instanceof to?this._listeners=[this._listeners,l]:this._listeners.push(l):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=l,(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 c,d,u,p;if(!this._disposed){if(this._listeners instanceof to)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(d=(c=this.options)==null?void 0:c.onDidRemoveLastListener)==null||d.call(c));else if(this._listeners){let f=this._listeners.indexOf(l);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 to?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},q3=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 oo,o=l=>t(...l.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 l of s)t(...l.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 D3,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)}},Pp={};y3(Pp,{None:()=>F3,filter:()=>j3,once:()=>zk,toPromise:()=>M3});F3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ip=Symbol.for("Jolibox.hostEmitter"),U3=()=>{let e=new q3;return globalThis[Ip]||(globalThis[Ip]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ip]};U3();Op=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new oo,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 B3(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}};Op=Jk([Hk],Op);Sk=class{constructor(){this._onWillExecuteCommand=new oo,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new oo,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Op,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=b3(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 _3(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Pp.toPromise(Pp.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{}}};Sk=Jk([Hk],Sk);Rp=class{constructor(t){nt(this,"context",void 0),nt(this,"continueCallback",void 0),nt(this,"adIsShowingCallback",void 0),nt(this,"isBeforeAdCalled",!1),nt(this,"isBeforeRewardCalled",!1),nt(this,"isAdDismissedCalled",!1),nt(this,"isAdViewedCalled",!1),nt(this,"isAfterAdCalled",!1),nt(this,"currentProvider",void 0),nt(this,"currentClientParams",void 0),nt(this,"adsHasResponse",!1),nt(this,"videoChecker",window.document.createElement("video")),nt(this,"contextInfo",void 0),nt(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)),Ik()&&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),r()}),this.context=t,this.contextInfo=t.getContextInfo()}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;this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.isBeforeAdCalled||(this.isBeforeAdCalled=!0,t==null||t(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),Ik()&&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()=>{this.adsHasResponse=!0,this.isAdDismissedCalled||(this.isAdDismissedCalled=!0,t==null||t())}}wrapAdViewed(t){return()=>{this.adsHasResponse=!0,this.isAdViewedCalled||(this.isAdViewedCalled=!0,t==null||t())}}wrapAfterAd(t){return()=>{this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.isAfterAdCalled||(this.isAfterAdCalled=!0,t==null||t())}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s,l;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}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{t==null||t(r),(a=this.adIsShowingCallback)==null||a.call(this,!1),(s=this.continueCallback)==null||s.call(this,[!1,r]);break}default:{(l=this.continueCallback)==null||l.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return w(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,l,c,d,u;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(l=(s=this.currentProvider)==null?void 0:s.name)!=null?l:null}),(d=this.continueCallback)==null||d.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(c=r.name)!=null?c:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(u=this.adIsShowingCallback)==null||u.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Np=class{constructor(t){Bs(this,"context",void 0),Bs(this,"adBreakIsShowing",!1),Bs(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),Bs(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()})}};Dp=class{constructor(t){Js(this,"configs",null),Js(this,"firstRun",!0),Js(this,"context",void 0),Js(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return w(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}};Lp=class{constructor(t,r){nr(this,"name","ADSENSE"),nr(this,"context",void 0),nr(this,"contextInfo",void 0),nr(this,"configured",!1),nr(this,"initParams",void 0),nr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),nr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=d3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),nr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),nr(this,"adUnit",n=>w(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:l,slot:c,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?f=document.querySelector(l):f=l,!f)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,_=document.createElement("ins");if(_.className="adsbygoogle",_.id="jolibox-ads",_.style.display="block",_.setAttribute("data-ad-client",this.initParams.clientId),_.setAttribute("data-ad-slot",m),g&&_.setAttribute("data-ad-format",g),u&&_.setAttribute("data-full-width-responsive",u),p&&_.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",_.style.position="relative",f.appendChild(_),_.appendChild(v)}else f.appendChild(_),new MutationObserver(v=>{v.forEach(b=>{if(b.type==="attributes"&&b.attributeName==="data-ad-status"){let I=_.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:I!=null?I:"null"})}})}).observe(_,{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 w(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)}})}};Z3=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(X3(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Y3(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}(),Ve="-ms-",Qs="-moz-",G="-webkit-",Wk="comm",Qp="rule",Yp="decl",e4="@import",Kk="@keyframes",t4="@layer",r4=Math.abs,rl=String.fromCharCode,n4=Object.assign;nl=1,Dn=1,Yk=0,at=0,Se=0,Ln="";_4=function(e,t,r){for(var n=0,i=0;n=i,i=Jt(),n===38&&i===12&&(t[r]=1),!so(i);)ft();return lo(e,at)},b4=function(e,t){var r=-1,n=44;do switch(so(n)){case 0:n===38&&Jt()===12&&(t[r]=1),e[r]+=_4(at-1,t,r);break;case 2:e[r]+=Gs(n);break;case 4:if(n===44){e[++r]=Jt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=rl(n)}while(n=ft());return e},w4=function(e,t){return Zk(b4(Xk(e),t))},kk=new WeakMap,I4=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!kk.get(r))&&!n){kk.set(e,!0);for(var i=[],o=w4(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},S4=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};x4=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Yp:e.return=eA(e.value,e.length);break;case Kk:return Nn([ro(e,{value:z(e.value,"@","@"+G)})],n);case Qp:if(e.length)return a4(e.props,function(i){switch(o4(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nn([ro(e,{props:[z(i,/:(read-\w+)/,":"+Qs+"$1")]})],n);case"::placeholder":return Nn([ro(e,{props:[z(i,/:(plac\w+)/,":"+G+"input-$1")]}),ro(e,{props:[z(i,/:(plac\w+)/,":"+Qs+"$1")]}),ro(e,{props:[z(i,/:(plac\w+)/,Ve+"input-$1")]})],n)}return""})}},E4=[x4],k4=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||E4,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[I4,S4];{var c,d=[m4,g4(function(m){c.insert(m)})],u=v4(l.concat(n,d)),p=function(m){return Nn(f4(m),u)};s=function(m,g,_,v){c=_,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new Z3({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};T4={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},C4=/[A-Z]|^ms/g,P4=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tA=function(e){return e.charCodeAt(1)===45},Ak=function(e){return e!=null&&typeof e!="boolean"},Sp=y4(function(e){return tA(e)?e:e.replace(C4,"-$&").toLowerCase()}),Tk=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(P4,function(r,n,i){return Sr={name:n,styles:i,next:Sr},n})}return T4[e]!==1&&!tA(e)&&typeof t=="number"&&t!==0?t+"px":t};Ck=/label:\s*([^\s;{]+)\s*(;|$)/g;R4=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},N4=function(e,t,r){R4(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)}};D4=function(e){var t=k4(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=xp(s,t.registered,void 0);return N4(t,c),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=xp(s,t.registered),d="animation-"+c.name;return Pk(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=xp(s,t.registered);Pk(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Ok(t.registered,r,L4(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:rA.bind(null,t.registered),merge:Ok.bind(null,t.registered,r)}},L4=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},q4=D4({key:"css"}),qn=q4.css,Nk=0,nA=[],Pe=R,Dk=Pe.__b,Lk=Pe.__r,qk=Pe.diffed,Fk=Pe.__c,Mk=Pe.unmount,jk=Pe.__;Pe.__b=function(e){pt=null,Dk&&Dk(e)},Pe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),jk&&jk(e,t)},Pe.__r=function(e){Lk&&Lk(e),Mp=0;var t=(pt=e.__c).__H;t&&(Ep===pt?(t.__h=[],pt.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Ws),t.__h.forEach(jp),t.__h=[],Mp=0)),Ep=pt},Pe.diffed=function(e){qk&&qk(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(nA.push(t)!==1&&Rk===Pe.requestAnimationFrame||((Rk=Pe.requestAnimationFrame)||j4)(M4)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Ep=pt=null},Pe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ws),r.__h=r.__h.filter(function(n){return!n.__||jp(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Pe.__e(n,r.__v)}}),Fk&&Fk(e,t)},Pe.unmount=function(e){Mk&&Mk(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&&Pe.__e(t,r.__v))};Uk=typeof requestAnimationFrame=="function";B4=Symbol.for("preact-signals");Z=void 0,no=void 0,xr=0,Up=0,Xs=0;je.prototype.brand=B4;je.prototype.h=function(){return!0};je.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)};je.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)}};je.prototype.subscribe=function(e){var t=this;return uo(function(){var r=t.value,n=Z;Z=void 0;try{e(r)}finally{Z=n}})};je.prototype.valueOf=function(){return this.value};je.prototype.toString=function(){return this.value+""};je.prototype.toJSON=function(){return this.value};je.prototype.peek=function(){var e=Z;Z=void 0;try{return this.value}finally{Z=e}};Object.defineProperty(je.prototype,"value",{get:function(){var e=oA(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Up>100)throw new Error("Cycle detected");this.v=e,this.i++,Xs++,xr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{ol()}}}});(Fn.prototype=new je).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Xs))return!0;if(this.g=Xs,this.f|=1,this.i>0&&!aA(this))return this.f&=-2,!0;var e=Z;try{sA(this),Z=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 Z=e,lA(this),this.f&=-2,!0};Fn.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)}je.prototype.S.call(this,e)};Fn.prototype.U=function(e){if(this.t!==void 0&&(je.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)}};Fn.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(Fn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=oA(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});co.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()}};co.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,cA(this),sA(this),xr++;var e=Z;return Z=this,J4.bind(this,e)};co.prototype.N=function(){2&this.f||(this.f|=2,this.o=no,no=this)};co.prototype.d=function(){this.f|=8,1&this.f||Zp(this)};dA=[];uo(function(){uA=this.N})();pA.displayName="_st";Object.defineProperties(je.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:pA},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Mn("__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 je&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Mn("__r",function(e,t){Zs();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return uo(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Zs(r),e(t)});Mn("__e",function(e,t,r,n){Zs(),e(t,r,n)});Mn("diffed",function(e,t){Zs();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 l in n){var c=o[l],d=n[l];c===void 0?(c=H4(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});Mn("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)});Mn("__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};$4=function(e){queueMicrotask(function(){queueMicrotask(e)})};Ge=qn`
|
|
608
608
|
inset: 0;
|
|
609
609
|
clear: none;
|
|
610
610
|
float: none;
|
|
@@ -623,7 +623,7 @@ or `);this.errors.push(o)}return n}},Ss=class extends Ie{constructor(...t){super
|
|
|
623
623
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
624
624
|
'Helvetica Neue', sans-serif;
|
|
625
625
|
`;z4=0;W4=qn`
|
|
626
|
-
${
|
|
626
|
+
${Ge}
|
|
627
627
|
position: fixed;
|
|
628
628
|
top: 0;
|
|
629
629
|
left: 0;
|
|
@@ -636,7 +636,7 @@ or `);this.errors.push(o)}return n}},Ss=class extends Ie{constructor(...t){super
|
|
|
636
636
|
height: 100vh;
|
|
637
637
|
|
|
638
638
|
.card-wrapper {
|
|
639
|
-
${
|
|
639
|
+
${Ge}
|
|
640
640
|
position: relative;
|
|
641
641
|
display: flex;
|
|
642
642
|
flex-direction: column;
|
|
@@ -650,7 +650,7 @@ or `);this.errors.push(o)}return n}},Ss=class extends Ie{constructor(...t){super
|
|
|
650
650
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
651
651
|
|
|
652
652
|
.body {
|
|
653
|
-
${
|
|
653
|
+
${Ge}
|
|
654
654
|
display: flex;
|
|
655
655
|
flex-direction: column;
|
|
656
656
|
width: 100%;
|
|
@@ -659,7 +659,7 @@ or `);this.errors.push(o)}return n}},Ss=class extends Ie{constructor(...t){super
|
|
|
659
659
|
box-sizing: border-box;
|
|
660
660
|
justify-content: center;
|
|
661
661
|
.title {
|
|
662
|
-
${
|
|
662
|
+
${Ge}
|
|
663
663
|
text-align: center;
|
|
664
664
|
font-size: 16px;
|
|
665
665
|
font-weight: bold;
|
|
@@ -667,7 +667,7 @@ or `);this.errors.push(o)}return n}},Ss=class extends Ie{constructor(...t){super
|
|
|
667
667
|
}
|
|
668
668
|
|
|
669
669
|
.content {
|
|
670
|
-
${
|
|
670
|
+
${Ge}
|
|
671
671
|
font-size: 14px;
|
|
672
672
|
color: #888;
|
|
673
673
|
margin-bottom: 16px;
|
|
@@ -675,13 +675,13 @@ or `);this.errors.push(o)}return n}},Ss=class extends Ie{constructor(...t){super
|
|
|
675
675
|
}
|
|
676
676
|
|
|
677
677
|
.footer {
|
|
678
|
-
${
|
|
678
|
+
${Ge}
|
|
679
679
|
display: flex;
|
|
680
680
|
align-items: center;
|
|
681
681
|
width: 100%;
|
|
682
682
|
height: 40px;
|
|
683
683
|
button {
|
|
684
|
-
${
|
|
684
|
+
${Ge}
|
|
685
685
|
border: none;
|
|
686
686
|
outline: none;
|
|
687
687
|
height: 100%;
|
|
@@ -697,8 +697,8 @@ or `);this.errors.push(o)}return n}},Ss=class extends Ie{constructor(...t){super
|
|
|
697
697
|
}
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
|
-
`,ar=re(null),Bp=re(""),Jp=re(""),Ks=re(!1),K4=()=>{var e;(e=ar.value)==null||e.call(ar,!1)},Q4=()=>{var e;(e=ar.value)==null||e.call(ar,!0)},Y4=e=>w(void 0,null,function*(){let{title:t,content:r}=e;return ar.value&&(ar.value(!1),
|
|
701
|
-
${
|
|
700
|
+
`,ar=re(null),Bp=re(""),Jp=re(""),Ks=re(!1),K4=()=>{var e;(e=ar.value)==null||e.call(ar,!1)},Q4=()=>{var e;(e=ar.value)==null||e.call(ar,!0)},Y4=e=>w(void 0,null,function*(){let{title:t,content:r}=e;return ar.value&&(ar.value(!1),ot(()=>{ar.value=null,Ks.value=!1})),ot(()=>{Bp.value=t||"",Jp.value=r||"",Ks.value=!0}),new Promise(n=>{ar.value=i=>{ot(()=>{ar.value=null,Ks.value=!1,Bp.value="",Jp.value=""}),n(i)}})}),X4=()=>Ks.value?ve("div",{className:W4,children:ve("div",{className:"card-wrapper",children:[ve("div",{className:"body",children:[ve("div",{className:"title",children:Bp.value}),ve("div",{className:"content",children:Jp.value})]}),ve("div",{className:"footer",children:[ve("button",{onClick:K4,className:"cancel-btn",children:"Cancel"}),ve("button",{onClick:Q4,className:"confirm-btm",children:"Confirm"})]})]})}):null,Z4=qn`
|
|
701
|
+
${Ge}
|
|
702
702
|
position: relative;
|
|
703
703
|
display: flex;
|
|
704
704
|
align-items: center;
|
|
@@ -716,7 +716,7 @@ or `);this.errors.push(o)}return n}},Ss=class extends Ie{constructor(...t){super
|
|
|
716
716
|
}
|
|
717
717
|
|
|
718
718
|
button {
|
|
719
|
-
${
|
|
719
|
+
${Ge}
|
|
720
720
|
padding: 0 20px;
|
|
721
721
|
height: 30px;
|
|
722
722
|
line-height: 30px;
|
|
@@ -730,8 +730,8 @@ or `);this.errors.push(o)}return n}},Ss=class extends Ie{constructor(...t){super
|
|
|
730
730
|
cursor: not-allowed;
|
|
731
731
|
}
|
|
732
732
|
}
|
|
733
|
-
`,eH=()=>{let e=re(!1),t=re(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{
|
|
734
|
-
${
|
|
733
|
+
`,eH=()=>{let e=re(!1),t=re(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{ot(()=>{t.value=Date.now(),e.value=!1})}}},tH=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=fA(t);G4(()=>{s.value>0?s.value-=1:ot(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=io(()=>{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}),c=io(()=>{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=io(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>w(void 0,null,function*(){if(a.value=!0,!(yield Y4({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),ot(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),ot(()=>{a.value=!0,s.value=0,o.value=null})};return ve("div",{className:Z4,children:[s.value>0&&r!=="interstitial"&&ve("div",{className:"timer",children:[s.value,"s"]}),ve("button",{onClick:l.value?u:c.value?p:void 0,disabled:d.value,children:ve("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ve("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"})})})]})},rH=()=>{let e=re(),t=re(),r=re(),n=re(),i=re(),o=re(!1),a=re(15),s=re(""),l=re("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},nH=qn`
|
|
734
|
+
${Ge}
|
|
735
735
|
position: fixed;
|
|
736
736
|
z-index: 2147483647;
|
|
737
737
|
background: white;
|
|
@@ -741,7 +741,7 @@ or `);this.errors.push(o)}return n}},Ss=class extends Ie{constructor(...t){super
|
|
|
741
741
|
flex-direction: column;
|
|
742
742
|
|
|
743
743
|
iframe {
|
|
744
|
-
${
|
|
744
|
+
${Ge}
|
|
745
745
|
flex: 1;
|
|
746
746
|
position: relative;
|
|
747
747
|
display: block;
|
|
@@ -749,8 +749,8 @@ or `);this.errors.push(o)}return n}},Ss=class extends Ie{constructor(...t){super
|
|
|
749
749
|
width: 100%;
|
|
750
750
|
height: 100%;
|
|
751
751
|
}
|
|
752
|
-
`,iH=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,visible:s,countdown:l,src:c,mode:d}=t,u=Ii(()=>eH(),[]),[p,f]=Qo(!1),m=_=>{var v,b,I,A;s.value=!1,_==="dismiss"?(v=n.value)==null||v.call(n):_==="viewed"&&((b=i.value)==null||b.call(i)),(I=r.value)==null||I.call(r),(A=o.value)==null||A.call(o),f(!1)},g=ln(()=>{var _;p||(f(!0),(_=a.value)==null||_.call(a))},[p]);return bi(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?ve("div",{className:nH,children:[ve(tH,{mode:d.value,onClose:m,countdown:l.value,state:u}),s.value&&ve("iframe",{src:c.value,onLoad:g,sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"}),ve(X4,{})]}):null};Hp=class{constructor(t,r){ir(this,"name","OKSPIN"),ir(this,"initialized",!1),ir(this,"initCompleter",null),ir(this,"context",void 0),ir(this,"initParams",void 0),ir(this,"adsOverlay",null),ir(this,"adsIsShowing",!1),ir(this,"lastUnDisplayedAdBreak",null),ir(this,"state",rH()),this.context=t,this.initParams=r}init(){return w(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),iu(ve(iH,{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 w(this,null,function*(){var n,i,o,a,s,l,c,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"})};
|
|
753
|
-
${
|
|
752
|
+
`,iH=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,visible:s,countdown:l,src:c,mode:d}=t,u=Ii(()=>eH(),[]),[p,f]=Qo(!1),m=_=>{var v,b,I,A;s.value=!1,_==="dismiss"?(v=n.value)==null||v.call(n):_==="viewed"&&((b=i.value)==null||b.call(i)),(I=r.value)==null||I.call(r),(A=o.value)==null||A.call(o),f(!1)},g=ln(()=>{var _;p||(f(!0),(_=a.value)==null||_.call(a))},[p]);return bi(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?ve("div",{className:nH,children:[ve(tH,{mode:d.value,onClose:m,countdown:l.value,state:u}),s.value&&ve("iframe",{src:c.value,onLoad:g,sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"}),ve(X4,{})]}):null};Hp=class{constructor(t,r){ir(this,"name","OKSPIN"),ir(this,"initialized",!1),ir(this,"initCompleter",null),ir(this,"context",void 0),ir(this,"initParams",void 0),ir(this,"adsOverlay",null),ir(this,"adsIsShowing",!1),ir(this,"lastUnDisplayedAdBreak",null),ir(this,"state",rH()),this.context=t,this.initParams=r}init(){return w(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),iu(ve(iH,{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 w(this,null,function*(){var n,i,o,a,s,l,c,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"})};ot(()=>{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&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.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),(c=t.beforeAd)==null||c.call(t);let u=()=>{var v;this.adsIsShowing=!1,(v=t.afterAd)==null||v.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var v;this.adsIsShowing=!1,p.breakStatus="dismissed",(v=t.adDismissed)==null||v.call(t)},m=()=>{var v;this.adsIsShowing=!1,p.breakStatus="viewed",(v=t.adViewed)==null||v.call(t)},g=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,p)};ot(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=m,this.state.adBreakDone.value=g});let _=()=>{var v;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,ot(()=>{var b;this.state.countdown.value=(b=r.params.countdown)!=null?b: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,_);break}}})}},Rn={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||Rn[e.data.type]&&Rn[e.data.type].forEach(t=>{t(e.data.data)})});On=(e,t)=>{bi(()=>(Rn[e]||(Rn[e]=new Set),Rn[e].add(t),()=>{Rn[e].delete(t)}),[e,t])},sH=()=>{let e=re(),t=re(),r=re(),n=re(),i=re(),o=re(),a=re(),s=re(!1),l=re("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:l}},lH=qn`
|
|
753
|
+
${Ge}
|
|
754
754
|
position: fixed;
|
|
755
755
|
z-index: 2147483647;
|
|
756
756
|
background: white;
|
|
@@ -760,7 +760,7 @@ or `);this.errors.push(o)}return n}},Ss=class extends Ie{constructor(...t){super
|
|
|
760
760
|
flex-direction: column;
|
|
761
761
|
|
|
762
762
|
iframe {
|
|
763
|
-
${
|
|
763
|
+
${Ge}
|
|
764
764
|
flex: 1;
|
|
765
765
|
position: relative;
|
|
766
766
|
display: block;
|
|
@@ -768,8 +768,8 @@ or `);this.errors.push(o)}return n}},Ss=class extends Ie{constructor(...t){super
|
|
|
768
768
|
width: 100%;
|
|
769
769
|
height: 100%;
|
|
770
770
|
}
|
|
771
|
-
`,cH=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=Qo(!1),p=m=>{var g,_,v,b;u(!1),l.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((_=i.value)==null||_.call(i)),(v=r.value)==null||v.call(r),(b=o.value)==null||b.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return On("appsrockets_ad_dismissed",()=>p("dismiss")),On("appsrockets_ad_rewarded",()=>p("viewed")),On("appsrockets_ad_completed",()=>p("viewed")),On("appsrockets_ad_skipped",()=>p("viewed")),On("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),On("appsrockets_ad_loaded",()=>u(!0)),l.value?ve("div",{className:lH,style:{display:d?"flex":"none"},children:l.value&&ve("iframe",{src:c.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};$p=class{constructor(t,r){or(this,"name","APPSROCKETS"),or(this,"initialized",!1),or(this,"initCompleter",null),or(this,"context",void 0),or(this,"adsOverlay",null),or(this,"adsIsShowing",!1),or(this,"lastUnDisplayedAdBreak",null),or(this,"state",sH()),or(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return w(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),iu(ve(cH,{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,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let p=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},f=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},m=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};it(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=m,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.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),(c=t.beforeAd)==null||c.call(t);let p=()=>{var I;this.adsIsShowing=!1,(I=t.afterAd)==null||I.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var I;this.adsIsShowing=!1,f.breakStatus="dismissed",(I=t.adDismissed)==null||I.call(t)},g=()=>{var I;this.adsIsShowing=!1,f.breakStatus="viewed",(I=t.adViewed)==null||I.call(t)},_=()=>{var I;this.adsIsShowing=!1,(I=t.adBreakDone)==null||I.call(t,f)},v=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};it(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=m,this.state.adViewed.value=g,this.state.adBreakDone.value=_,this.state.adLinkClicked.value=u,this.state.adError.value=v});let b=()=>{var I;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(I=t.adBreakDone)==null||I.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,it(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,b);break}}}},mA=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};Vp=class{constructor(t,r,n){Je(this,"adUnit",void 0),Je(this,"project",void 0),Je(this,"keyValue",void 0),Je(this,"adsContext",null),Je(this,"rewardedSlot",null),Je(this,"rewardedPayload",null),Je(this,"readyEvent",null),Je(this,"withCommand",function(){googletag.cmd.push(...arguments)}),Je(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))}),Je(this,"destroy",i=>{var o,a;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,i),this.adsContext=null}),Je(this,"reinit",i=>{this.destroy(i),this.init()}),Je(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),Je(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)})}}),Je(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),Je(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),Je(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext&&this.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,l,c;(l=(s=this.adsContext)==null?void 0:s.beforeAd)==null||l.call(s),(c=this.readyEvent)==null||c.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,mA(),this.withCommand(()=>{this.init()})}};Gp=class{constructor(t,r,n){var i=this;nt(this,"adUnit",void 0),nt(this,"project",void 0),nt(this,"keyValue",void 0),nt(this,"adsContext",null),nt(this,"gamingInterstitialSlot",null),nt(this,"readyEvent",null),nt(this,"isRetrying",!1),nt(this,"withCommand",function(){googletag.cmd.push(...arguments)}),nt(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))}),nt(this,"destroy",function(o){var a,s;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o),i.adsContext=null),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),nt(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),nt(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),nt(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")}))}),nt(this,"requestAds",o=>{this.withCommand(()=>{var a,s,l;if(this.adsContext&&this.reinit("ignored"),this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((l=(s=this.adsContext).onEnd)==null||l.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)))})}),mA(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};zp=class{constructor(t,r){$r(this,"name","GOOGLE_GPT"),$r(this,"context",void 0),$r(this,"contextInfo",void 0),$r(this,"initParams",void 0),$r(this,"rewardAdManager",void 0),$r(this,"interstitialManager",void 0),$r(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 w(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 Vp(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new Gp(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}}}};Wp=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Ap(this,"context",void 0),Ap(this,"placement","GAME"),Ap(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:Gk.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:$k.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:Vk.WebSDK};return R3(i)}};el=class{constructor(t){Ke(this,"context",void 0),Ke(this,"adsTrackSerializer",void 0),Ke(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new Wp(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}}},Kp=class{constructor(t,r){var n=this;Ke(this,"context",void 0),Ke(this,"contextInfo",void 0),Ke(this,"requestContext",void 0),Ke(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),Ke(this,"pendingAFVAdsInfo",Promise.resolve(null)),Ke(this,"doFetchAdsInfo",i=>w(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:l,code:c}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return c==="SUCCESS"?l:null})),Ke(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),Ke(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),Ke(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),Ke(this,"cacheNextAFGAdsInfo",i=>w(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),Ke(this,"getAFGAdsInfo",i=>w(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),Ke(this,"getAFVAdsInfo",function(){return w(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new el(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};tl=class{constructor(t){if(At(this,"context",void 0),At(this,"contextInfo",void 0),At(this,"providers",{}),At(this,"channelPolicy",void 0),At(this,"adsActionDetection",void 0),At(this,"requestContext",void 0),At(this,"adsRequest",void 0),At(this,"initialized",!1),At(this,"adsIsShowing",!1),At(this,"lastAdBreak",void 0),At(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Dp(this.context),this.adsActionDetection=new Np(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new Kp(t),this.requestContext=new el(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return w(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new zp(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new Lp(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new Hp(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new $p(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return w(this,null,function*(){var r,n,i,o,a,s,l,c,d,u;let p=Date.now();if(p-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&&p-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=p,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 f=yield this.adsRequest.getAFGAdsInfo(t.type);if(f){let m=f.sort((b,I)=>b.seq-I.seq);if(m.length===0){(l=t.adBreakDone)==null||l.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let g=!0,_=null,v=new Rp(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;m.length>0;){let b=m.shift(),I=this.providers[b.provider];if(I){let[A,P]=yield v.callAdBreakAndContinue(I,t,b,O=>{var E;this.adsIsShowing=O,(E=this.context.eventEmitter)==null||E.emit("isAdShowing",O)});g=A,_=P}else g=!0,_={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!g)break}g&&_&&((c=t.adBreakDone)==null||c.call(t,_))}else{(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}}catch(f){(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(u=this.context.eventEmitter)==null||u.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.")}},UY=qn`
|
|
772
|
-
${
|
|
771
|
+
`,cH=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=Qo(!1),p=m=>{var g,_,v,b;u(!1),l.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((_=i.value)==null||_.call(i)),(v=r.value)==null||v.call(r),(b=o.value)==null||b.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return On("appsrockets_ad_dismissed",()=>p("dismiss")),On("appsrockets_ad_rewarded",()=>p("viewed")),On("appsrockets_ad_completed",()=>p("viewed")),On("appsrockets_ad_skipped",()=>p("viewed")),On("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),On("appsrockets_ad_loaded",()=>u(!0)),l.value?ve("div",{className:lH,style:{display:d?"flex":"none"},children:l.value&&ve("iframe",{src:c.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};$p=class{constructor(t,r){or(this,"name","APPSROCKETS"),or(this,"initialized",!1),or(this,"initCompleter",null),or(this,"context",void 0),or(this,"adsOverlay",null),or(this,"adsIsShowing",!1),or(this,"lastUnDisplayedAdBreak",null),or(this,"state",sH()),or(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return w(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),iu(ve(cH,{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,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let p=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},f=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},m=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};ot(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=m,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.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),(c=t.beforeAd)==null||c.call(t);let p=()=>{var I;this.adsIsShowing=!1,(I=t.afterAd)==null||I.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var I;this.adsIsShowing=!1,f.breakStatus="dismissed",(I=t.adDismissed)==null||I.call(t)},g=()=>{var I;this.adsIsShowing=!1,f.breakStatus="viewed",(I=t.adViewed)==null||I.call(t)},_=()=>{var I;this.adsIsShowing=!1,(I=t.adBreakDone)==null||I.call(t,f)},v=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};ot(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=m,this.state.adViewed.value=g,this.state.adBreakDone.value=_,this.state.adLinkClicked.value=u,this.state.adError.value=v});let b=()=>{var I;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(I=t.adBreakDone)==null||I.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,ot(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,b);break}}}},mA=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};Vp=class{constructor(t,r,n){$e(this,"adUnit",void 0),$e(this,"project",void 0),$e(this,"keyValue",void 0),$e(this,"adsContext",null),$e(this,"rewardedSlot",null),$e(this,"rewardedPayload",null),$e(this,"readyEvent",null),$e(this,"withCommand",function(){googletag.cmd.push(...arguments)}),$e(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))}),$e(this,"destroy",i=>{var o,a;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,i),this.adsContext=null}),$e(this,"reinit",i=>{this.destroy(i),this.init()}),$e(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),$e(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)})}}),$e(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),$e(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),$e(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext&&this.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,l,c;(l=(s=this.adsContext)==null?void 0:s.beforeAd)==null||l.call(s),(c=this.readyEvent)==null||c.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,mA(),this.withCommand(()=>{this.init()})}};Gp=class{constructor(t,r,n){var i=this;it(this,"adUnit",void 0),it(this,"project",void 0),it(this,"keyValue",void 0),it(this,"adsContext",null),it(this,"gamingInterstitialSlot",null),it(this,"readyEvent",null),it(this,"isRetrying",!1),it(this,"withCommand",function(){googletag.cmd.push(...arguments)}),it(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))}),it(this,"destroy",function(o){var a,s;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o),i.adsContext=null),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),it(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),it(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),it(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")}))}),it(this,"requestAds",o=>{this.withCommand(()=>{var a,s,l;if(this.adsContext&&this.reinit("ignored"),this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((l=(s=this.adsContext).onEnd)==null||l.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)))})}),mA(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};zp=class{constructor(t,r){$r(this,"name","GOOGLE_GPT"),$r(this,"context",void 0),$r(this,"contextInfo",void 0),$r(this,"initParams",void 0),$r(this,"rewardAdManager",void 0),$r(this,"interstitialManager",void 0),$r(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 w(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 Vp(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new Gp(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}}}};Wp=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Ap(this,"context",void 0),Ap(this,"placement","GAME"),Ap(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:Gk.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:$k.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:Vk.WebSDK};return R3(i)}};el=class{constructor(t){Ye(this,"context",void 0),Ye(this,"adsTrackSerializer",void 0),Ye(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new Wp(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}}},Kp=class{constructor(t,r){var n=this;Ye(this,"context",void 0),Ye(this,"contextInfo",void 0),Ye(this,"requestContext",void 0),Ye(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),Ye(this,"pendingAFVAdsInfo",Promise.resolve(null)),Ye(this,"doFetchAdsInfo",i=>w(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:l,code:c}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return c==="SUCCESS"||c==="BYPASS_ADS"?{code:c,data:l}:null})),Ye(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),Ye(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),Ye(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),Ye(this,"cacheNextAFGAdsInfo",i=>w(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),Ye(this,"getAFGAdsInfo",i=>w(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),Ye(this,"getAFVAdsInfo",function(){return w(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new el(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};tl=class{constructor(t){if(At(this,"context",void 0),At(this,"contextInfo",void 0),At(this,"providers",{}),At(this,"channelPolicy",void 0),At(this,"adsActionDetection",void 0),At(this,"requestContext",void 0),At(this,"adsRequest",void 0),At(this,"initialized",!1),At(this,"adsIsShowing",!1),At(this,"lastAdBreak",void 0),At(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Dp(this.context),this.adsActionDetection=new Np(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new Kp(t),this.requestContext=new el(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return w(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new zp(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new Lp(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new Hp(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new $p(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return w(this,null,function*(){var r,n,i,o,a,s,l,c,d,u,p,f,m,g;let _=Date.now();if(_-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&&_-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=_,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let v=yield this.adsRequest.getAFGAdsInfo(t.type),b=v==null?void 0:v.data,I=v==null?void 0:v.code;if(I==="BYPASS_ADS"){switch(t.type){case"preroll":{(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var A,C,O,E;(A=t.beforeAd)==null||A.call(t),(C=t.adViewed)==null||C.call(t),(O=t.afterAd)==null||O.call(t),(E=t.adBreakDone)==null||E.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(l=t.beforeAd)==null||l.call(t),(c=t.afterAd)==null||c.call(t),(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!b||I!=="SUCCESS"){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let A=b.sort((P,B)=>P.seq-B.seq);if(A.length===0){(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let C=!0,O=null,E=new Rp(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;A.length>0;){let P=A.shift(),B=this.providers[P.provider];if(B){let[ze,L]=yield E.callAdBreakAndContinue(B,t,P,Oe=>{var Re;this.adsIsShowing=Oe,(Re=this.context.eventEmitter)==null||Re.emit("isAdShowing",Oe)});C=ze,O=L}else C=!0,O={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!C)break}C&&O&&((f=t.adBreakDone)==null||f.call(t,O))}}catch(v){(m=t.adBreakDone)==null||m.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(g=this.context.eventEmitter)==null||g.emit("isAdShowing",!1),this.adsActionDetection.adBreakIsShowing=!1}})}adUnit(t){console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.")}},UY=qn`
|
|
772
|
+
${Ge}
|
|
773
773
|
position: fixed;
|
|
774
774
|
left: 0;
|
|
775
775
|
top: 0;
|
|
@@ -784,7 +784,7 @@ or `);this.errors.push(o)}return n}},Ss=class extends Ie{constructor(...t){super
|
|
|
784
784
|
}
|
|
785
785
|
|
|
786
786
|
.ads-wrapper {
|
|
787
|
-
${
|
|
787
|
+
${Ge}
|
|
788
788
|
position: relative;
|
|
789
789
|
width: 100%;
|
|
790
790
|
height: 100%;
|
|
@@ -807,7 +807,7 @@ or `);this.errors.push(o)}return n}},Ss=class extends Ie{constructor(...t){super
|
|
|
807
807
|
}
|
|
808
808
|
|
|
809
809
|
.retry-button {
|
|
810
|
-
${
|
|
810
|
+
${Ge}
|
|
811
811
|
position: absolute;
|
|
812
812
|
width: 100%;
|
|
813
813
|
height: 100%;
|
|
@@ -817,4 +817,4 @@ or `);this.errors.push(o)}return n}},Ss=class extends Ie{constructor(...t){super
|
|
|
817
817
|
cursor: pointer;
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
|
-
`});function yA(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return w(this,null,function*(){return yield i.reduce((s,l)=>w(this,null,function*(){let c=yield s;if(c===!0)return!0;gA&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return gA&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return w(this,null,function*(){t=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return w(this,null,function*(){r=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:An,loginGuide:Tn}}})})},getRewardsTypes(...i){return w(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return w(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:An,loginGuide:Tn}})}}}var gA,_A=k(()=>{"use strict";K();We();gA=S.testMode});var xH,EH,bA,wA,IA=k(()=>{"use strict";We();xH=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,EH=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(xH()):["ADS"],bA=e=>{e.registerRewardsFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=["ADS"];try{let s=yield t.post("/api/games/unlock-options",{});if(s.code!=="SUCCESS")return r;L.emit(Ds,{options:((n=s.data)==null?void 0:n.unlockOptions)||[],userJoliCoin:((i=s.extra)==null?void 0:i.joliCoin)||{balance:0,enableAutoDeduct:!1}});let l=((a=(o=s.data)==null?void 0:o.unlockOptions)==null?void 0:a.map(c=>c.type))||Array.from(r);return EH(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))},wA=e=>{e.registerRewardFrequencyConfigFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return L.emit(br,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||An,loginGuide:((i=r.data)==null?void 0:i.loginGuide)||Tn}),{joliCoinUseAndCharge:((o=r.data)==null?void 0:o.joliCoinUseAndCharge)||An,loginGuide:((a=r.data)==null?void 0:a.loginGuide)||Tn}}))}});var SA,xA=k(()=>{"use strict";SA=e=>t=>w(void 0,null,function*(){return console.log("trigger @jolibox/ads reward",t),e.adBreak(t),!0})});var wt,Un=k(()=>{"use strict";We();wr();We();wt=tt(L,Ds)});var Er,po=k(()=>{"use strict";D();Er=ee()});var ef,fo,EA=k(()=>{"use strict";po();Un();wr();We();We();ef=(e,t)=>{let{showUnlockWithJolicoinModal:r}=t;Er.registerCommand(`Rewards.${e}.useJolicoin`,()=>w(void 0,null,function*(){var s,l,c,d;let n=yield wt.getData(),i=!!((s=n==null?void 0:n.userJoliCoin)!=null&&s.enableAutoDeduct),o=(d=(c=(l=n==null?void 0:n.options)==null?void 0:l.find(u=>u.type==="JOLI_COIN"))==null?void 0:c.joliCoinChoices[0].joliCoinQuantity)!=null?d:0;return console.log("-----unlockOptions usemodal-----",n,i,o),(yield r({enableAutoDeduct:i,userJoliCoin:n==null?void 0:n.userJoliCoin,joliCoinQuantity:o}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},fo=(e,t)=>r=>w(void 0,null,function*(){let n=tt(L,Jr);return L.emit(qs,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var al,tf=k(()=>{"use strict";al=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-coin/balance",{query:{type:"JOLI_COIN"}})).data})});var kA,AA=k(()=>{"use strict";kA=(e,t)=>e.some(r=>r.type==="JOLI_COIN"&&r.joliCoinChoices.some(n=>{var i;return n.joliCoinQuantity<=((i=t==null?void 0:t.balance)!=null?i:0)}))});var rf,ho,TA=k(()=>{"use strict";tf();po();Un();AA();We();wr();We();rf=(e,t)=>{let{httpClient:r,initiateAndAwaitPayment:n}=t;Er.registerCommand(`Rewards.${e}.usePayment`,()=>w(void 0,null,function*(){var l,c,d,u,p,f;let i=yield wt.getData(),o=yield al(r),a=(d=(c=(l=i==null?void 0:i.options)==null?void 0:l.find(m=>m.type==="JOLI_COIN"))==null?void 0:c.joliCoinChoices[0].joliCoinQuantity)!=null?d:0,s={balance:(u=o==null?void 0:o.balance)!=null?u:0,enableAutoDeduct:(f=(p=i==null?void 0:i.userJoliCoin)==null?void 0:p.enableAutoDeduct)!=null?f:!1};return wt.updateData({userJoliCoin:s}),console.log("-----unlockOptions payment-----",i,s,a),kA((i==null?void 0:i.options)||[],s)?{result:"CONTINUE"}:{result:(yield n({userJoliCoin:s,joliCoinQuantity:a}))==="SUCCESS"?"SUCCESS":"FAILED"}}))},ho=(e,t)=>r=>w(void 0,null,function*(){let n=tt(L,kt);return L.emit(Ls,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult})});var nf,mo,CA=k(()=>{"use strict";K();po();wr();We();We();D();tf();Un();nf=(e,t)=>{let{showUnloginModal:r,httpClient:n}=t;Er.registerCommand(`Rewards.${e}.useUnloginModal`,()=>w(void 0,null,function*(){var a,s,l,c,d,u,p,f,m;let i=(a=S.hostUserInfo)==null?void 0:a.isLogin,o=yield wt.getData();if(console.log("-----isLogin-----",!!i),!i){let g=yield r();if(console.log("-----unloginModalResult-----",g),g.result=="FAILED"||g.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:_,claimedRewardValue:v}=(l=(s=g.rewards)==null?void 0:s.jolicoin)!=null?l:{};if(g.result=="SUCCESS"){_&&v&&(yield Uf(3e3));let b=yield al(n),I=(u=(d=(c=o==null?void 0:o.options)==null?void 0:c.find(P=>P.type==="JOLI_COIN"))==null?void 0:d.joliCoinChoices[0].joliCoinQuantity)!=null?u:0,A={balance:(p=b==null?void 0:b.balance)!=null?p:0,enableAutoDeduct:(m=(f=o==null?void 0:o.userJoliCoin)==null?void 0:f.enableAutoDeduct)!=null?m:!1};if(wt.updateData({userJoliCoin:A}),A.balance>=I)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},mo=(e,t)=>()=>w(void 0,null,function*(){let r=tt(L,rr);return L.emit(Fs,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),yield r.getFreshData()})});var sl=k(()=>{"use strict";EA();TA();CA()});var ll,of=k(()=>{"use strict";K();D();sl();po();ll=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:a,showUnloginModal:s}})=>(nf(e,{httpClient:t,showUnloginModal:s}),rf(e,{httpClient:t,initiateAndAwaitPayment:o}),ef(e,{showUnlockWithJolicoinModal:a}),l=>w(void 0,null,function*(){var c,d,u;try{let p=!0,f=[`Rewards.${e}.useUnloginModal`,`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];for(let g of f){let _=yield Er.executeCommand(g);if(p=p&&_.result!=="FAILED",_.result!=="CONTINUE")break}if(!p)return n==null||n(l),!1;let m=yield t.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${Co()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});return console.log("-----unlockWithJolicoin request result-----",m),m.code=="SUCCESS"?((d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakName:"name"in l&&(c=l.name)!=null?c:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in l&&((u=l.adViewed)==null||u.call(l)),r==null||r({quantity:m.data.quantity,balance:m.data.balance}),!0):(n==null||n(l),!1)}catch(p){if(console.info("JolicoinRewardHandler error:",p),p instanceof Error&&p.message=="CANCEL")throw p;return n==null||n(l),!1}finally{i.clearCache()}}))});var PA,OA=k(()=>{"use strict";Un();of();sl();PA=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=fo("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=ho("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=mo("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return ll("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:wt,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:i,showUnloginModal:a}})}});var RA,NA=k(()=>{"use strict";of();Un();sl();RA=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=fo("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=ho("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=mo("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return ll("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:wt,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:i,showUnloginModal:a}})}});var sr,DA=k(()=>{"use strict";_A();IA();xA();OA();NA();sr=yA();bA(sr);wA(sr)});var cl,kH,vo,AH,go,LA,TH,CH,af,PH,OH,qA=k(()=>{"use strict";D();dt();er();mk();vA();gt();K();vt();xe();DA();tc();cl=ee(),kH=()=>{let{data:e}=j("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},vo={get:(e,t)=>te(e,T({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>te(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},AH={httpClient:vo,checkNetwork:kH,track:U,eventEmitter:No,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,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:(l=S.joliSource)!=null?l:""}}},go=new tl(AH);sr.getRewardFrequencyConfig(vo).then(e=>{console.log("getRewardFrequencyConfig",e)});sr.registerRewardHandler("ADS",SA(go));sr.registerRewardHandler("JOLI_COIN",PA(vo,{onUnlockSuccess:e=>{LA(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));sr.registerRewardHandler("JOLI_COIN_ONLY",RA(vo,{onUnlockSuccess:e=>{LA(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));LA=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Br(r,{customStyle:{mark:{marginRight:"8px"}},i18nParams:{text:"Jolicoin Used"}})},TH=$("adInit",{implement:e=>{go.init(e)}}),CH=$("adConfig",{implement:e=>{go.adConfig(e)}}),af=!1,PH=$("adBreak",{implement:e=>{if(e.type==="reward"){if(af)return;af=!0,sr.getRewardsTypes(vo).then(t=>{sr.handleReward(t,e).catch(r=>{var n;console.info("handleReward failed in native",r),(n=e.adBreakDone)==null||n.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{af=!1})})}else go.adBreak(e)}}),OH=$("adUnit",{implement:e=>{go.adUnit(e)}});cl.registerCommand("AdsSDK.init",TH);cl.registerCommand("AdsSDK.adConfig",CH);cl.registerCommand("AdsSDK.adBreak",PH);cl.registerCommand("AdsSDK.adUnit",OH);q("AdsSDK.init",{version:"1.0.0"});q("AdsSDK.adConfig",{version:"1.0.0"});q("AdsSDK.adBreak",{version:"1.0.0"});q("AdsSDK.adUnit",{version:"1.0.0"})});var yo,RH,NH,DH,LH,qH,FA=k(()=>{"use strict";D();xe();dt();K();yo=ee(),RH=$("openSchemaSync",{paramsSchema:x.tuple(x.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=j("openSchemaSync",{schema:t});if(r.errNo!==0)throw new zr(r.errMsg,r.errNo)}}),NH=$("openPageSync",{paramsSchema:x.tuple(x.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=j("openPageSync",{url:e});if(t!==0||!n)throw new zr(r,t);return{webviewId:n.webviewId}}}),DH=$("closePageSync",{paramsSchema:x.tuple(x.number()),implement:e=>{let{errNo:t,errMsg:r}=j("closePageSync",{webviewId:e});if(t!==0)throw new zr(r,t)}}),LH=$("interceptSystemExitSync",{paramsSchema:x.tuple(x.boolean()),implement:e=>{Ee.emit("onInterceptSystemExit",{intercept:e}),Ee.emit("onInterceptBackPress",{intercept:e})}}),qH=$("navigateToNativePage",{paramsSchema:x.tuple(x.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed"),x.object()),implement:(e,t)=>{let{errNo:r,errMsg:n}=j("callHostMethodAsync",{method:e,params:T({},t)});if(r!==0)throw new zr(n,r)}});yo.registerCommand("RouterSDK.openSchema",RH);yo.registerCommand("RouterSDK.openPage",NH);yo.registerCommand("RouterSDK.closePage",DH);yo.registerCommand("RouterSDK.interceptSystemExit",LH);yo.registerCommand("RouterSDK.navigateToNativePage",qH);q("router.openSchema",{version:"1.1.10"});q("router.openPage",{version:"1.1.10"});q("router.closePage",{version:"1.1.10"});q("router.interceptSystemExit",{version:"1.1.18"});q("router.navigateToNativePage",{version:"1.1.19"})});function UH(e){Pl("cpLoadProgressEvent",{progress:e},S.webviewId,!0)}var UA,FH,ul,sf,MA,MH,jH,jA=k(()=>{"use strict";D();dt();xe();K();gt();UA=ee(),FH=$("onLoadFinished",{implement:()=>{Pl("cpLoadFinishEvent",{},S.webviewId,!0),U("loadFinished",{duration:performance.now()})}}),ul=null,sf=!1,MA=0,MH=200;jH=$("onLoadProgress",{paramsSchema:x.tuple(x.number()),implement:e=>{ul=e,sf||(sf=!0,requestAnimationFrame(function t(){let r=Date.now();r-MA>=MH?(ul!==null&&(UH(ul),MA=r,ul=null),sf=!1):requestAnimationFrame(t)}))}});UA.registerCommand("RuntimeSDK.loadFinishedEvent",FH);UA.registerCommand("RuntimeSDK.loadProgressEvent",jH)});var BH,JH,HH,BA=k(()=>{"use strict";D();dt();K();BH=ee(),JH="isNativeSupport",HH=$(JH,{paramsSchema:x.tuple(x.object({version:x.string()})),implement:e=>{let t=S.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:Xf(tp(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});BH.registerCommand("API.isNativeSupport",HH);q("isNativeSupport",{version:"1.1.46"})});var $H={};var HZ,zZ,JA=k(()=>{"use strict";kE();HZ=oe(AE());DE();ap();UE();zZ=oe(jE());Os();qA();FA();jA();BA()});var HA=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[HA])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[HA]=!0;w(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(gE(),vE)),Promise.resolve().then(()=>(JA(),$H)),Promise.resolve().then(()=>(gt(),Th))]);e()});
|
|
820
|
+
`});function yA(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return w(this,null,function*(){return yield i.reduce((s,l)=>w(this,null,function*(){let c=yield s;if(c===!0)return!0;gA&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return gA&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return w(this,null,function*(){t=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return w(this,null,function*(){r=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:An,loginGuide:Tn}}})})},getRewardsTypes(...i){return w(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return w(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:An,loginGuide:Tn}})}}}var gA,_A=k(()=>{"use strict";K();Qe();gA=S.testMode});var xH,EH,bA,wA,IA=k(()=>{"use strict";Qe();xH=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,EH=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(xH()):["ADS"],bA=e=>{e.registerRewardsFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=["ADS"];try{let s=yield t.post("/api/games/unlock-options",{});if(s.code!=="SUCCESS")return r;q.emit(Ds,{options:((n=s.data)==null?void 0:n.unlockOptions)||[],userJoliCoin:((i=s.extra)==null?void 0:i.joliCoin)||{balance:0,enableAutoDeduct:!1}});let l=((a=(o=s.data)==null?void 0:o.unlockOptions)==null?void 0:a.map(c=>c.type))||Array.from(r);return EH(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))},wA=e=>{e.registerRewardFrequencyConfigFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return q.emit(br,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||An,loginGuide:((i=r.data)==null?void 0:i.loginGuide)||Tn}),{joliCoinUseAndCharge:((o=r.data)==null?void 0:o.joliCoinUseAndCharge)||An,loginGuide:((a=r.data)==null?void 0:a.loginGuide)||Tn}}))}});var SA,xA=k(()=>{"use strict";SA=e=>t=>w(void 0,null,function*(){return console.log("trigger @jolibox/ads reward",t),e.adBreak(t),!0})});var wt,jn=k(()=>{"use strict";Qe();wr();Qe();wt=rt(q,Ds)});var Er,po=k(()=>{"use strict";D();Er=ee()});var ef,fo,EA=k(()=>{"use strict";po();jn();wr();Qe();Qe();ef=(e,t)=>{let{showUnlockWithJolicoinModal:r}=t;Er.registerCommand(`Rewards.${e}.useJolicoin`,()=>w(void 0,null,function*(){var s,l,c,d;let n=yield wt.getData(),i=!!((s=n==null?void 0:n.userJoliCoin)!=null&&s.enableAutoDeduct),o=(d=(c=(l=n==null?void 0:n.options)==null?void 0:l.find(u=>u.type==="JOLI_COIN"))==null?void 0:c.joliCoinChoices[0].joliCoinQuantity)!=null?d:0;return console.log("-----unlockOptions usemodal-----",n,i,o),(yield r({enableAutoDeduct:i,userJoliCoin:n==null?void 0:n.userJoliCoin,joliCoinQuantity:o}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},fo=(e,t)=>r=>w(void 0,null,function*(){let n=rt(q,Jr);return q.emit(qs,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var al,tf=k(()=>{"use strict";al=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-coin/balance",{query:{type:"JOLI_COIN"}})).data})});var kA,AA=k(()=>{"use strict";kA=(e,t)=>e.some(r=>r.type==="JOLI_COIN"&&r.joliCoinChoices.some(n=>{var i;return n.joliCoinQuantity<=((i=t==null?void 0:t.balance)!=null?i:0)}))});var rf,ho,TA=k(()=>{"use strict";tf();po();jn();AA();Qe();wr();Qe();rf=(e,t)=>{let{httpClient:r,initiateAndAwaitPayment:n}=t;Er.registerCommand(`Rewards.${e}.usePayment`,()=>w(void 0,null,function*(){var l,c,d,u,p,f;let i=yield wt.getData(),o=yield al(r),a=(d=(c=(l=i==null?void 0:i.options)==null?void 0:l.find(m=>m.type==="JOLI_COIN"))==null?void 0:c.joliCoinChoices[0].joliCoinQuantity)!=null?d:0,s={balance:(u=o==null?void 0:o.balance)!=null?u:0,enableAutoDeduct:(f=(p=i==null?void 0:i.userJoliCoin)==null?void 0:p.enableAutoDeduct)!=null?f:!1};return wt.updateData({userJoliCoin:s}),console.log("-----unlockOptions payment-----",i,s,a),kA((i==null?void 0:i.options)||[],s)?{result:"CONTINUE"}:{result:(yield n({userJoliCoin:s,joliCoinQuantity:a}))==="SUCCESS"?"SUCCESS":"FAILED"}}))},ho=(e,t)=>r=>w(void 0,null,function*(){let n=rt(q,kt);return q.emit(Ls,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult})});var nf,mo,CA=k(()=>{"use strict";K();po();wr();Qe();Qe();D();tf();jn();nf=(e,t)=>{let{showUnloginModal:r,httpClient:n}=t;Er.registerCommand(`Rewards.${e}.useUnloginModal`,()=>w(void 0,null,function*(){var a,s,l,c,d,u,p,f,m;let i=(a=S.hostUserInfo)==null?void 0:a.isLogin,o=yield wt.getData();if(console.log("-----isLogin-----",!!i),!i){let g=yield r();if(console.log("-----unloginModalResult-----",g),g.result=="FAILED"||g.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:_,claimedRewardValue:v}=(l=(s=g.rewards)==null?void 0:s.jolicoin)!=null?l:{};if(g.result=="SUCCESS"){_&&v&&(yield jf(3e3));let b=yield al(n),I=(u=(d=(c=o==null?void 0:o.options)==null?void 0:c.find(C=>C.type==="JOLI_COIN"))==null?void 0:d.joliCoinChoices[0].joliCoinQuantity)!=null?u:0,A={balance:(p=b==null?void 0:b.balance)!=null?p:0,enableAutoDeduct:(m=(f=o==null?void 0:o.userJoliCoin)==null?void 0:f.enableAutoDeduct)!=null?m:!1};if(wt.updateData({userJoliCoin:A}),A.balance>=I)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},mo=(e,t)=>()=>w(void 0,null,function*(){let r=rt(q,rr);return q.emit(Fs,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),yield r.getFreshData()})});var sl=k(()=>{"use strict";EA();TA();CA()});var ll,of=k(()=>{"use strict";K();D();sl();po();ll=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:a,showUnloginModal:s}})=>(nf(e,{httpClient:t,showUnloginModal:s}),rf(e,{httpClient:t,initiateAndAwaitPayment:o}),ef(e,{showUnlockWithJolicoinModal:a}),l=>w(void 0,null,function*(){var c,d,u;try{let p=!0,f=[`Rewards.${e}.useUnloginModal`,`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];for(let g of f){let _=yield Er.executeCommand(g);if(p=p&&_.result!=="FAILED",_.result!=="CONTINUE")break}if(!p)return n==null||n(l),!1;let m=yield t.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${Co()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});return console.log("-----unlockWithJolicoin request result-----",m),m.code=="SUCCESS"?((d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakName:"name"in l&&(c=l.name)!=null?c:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in l&&((u=l.adViewed)==null||u.call(l)),r==null||r({quantity:m.data.quantity,balance:m.data.balance}),!0):(n==null||n(l),!1)}catch(p){if(console.info("JolicoinRewardHandler error:",p),p instanceof Error&&p.message=="CANCEL")throw p;return n==null||n(l),!1}finally{i.clearCache()}}))});var PA,OA=k(()=>{"use strict";jn();of();sl();PA=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=fo("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=ho("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=mo("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return ll("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:wt,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:i,showUnloginModal:a}})}});var RA,NA=k(()=>{"use strict";of();jn();sl();RA=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=fo("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=ho("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=mo("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return ll("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:wt,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:i,showUnloginModal:a}})}});var sr,DA=k(()=>{"use strict";_A();IA();xA();OA();NA();sr=yA();bA(sr);wA(sr)});var cl,kH,vo,AH,go,LA,TH,CH,af,PH,OH,qA=k(()=>{"use strict";D();dt();er();mk();vA();gt();K();vt();xe();DA();tc();cl=ee(),kH=()=>{let{data:e}=U("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},vo={get:(e,t)=>te(e,T({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>te(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},AH={httpClient:vo,checkNetwork:kH,track:j,eventEmitter:No,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,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:(l=S.joliSource)!=null?l:""}}},go=new tl(AH);sr.getRewardFrequencyConfig(vo).then(e=>{console.log("getRewardFrequencyConfig",e)});sr.registerRewardHandler("ADS",SA(go));sr.registerRewardHandler("JOLI_COIN",PA(vo,{onUnlockSuccess:e=>{LA(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));sr.registerRewardHandler("JOLI_COIN_ONLY",RA(vo,{onUnlockSuccess:e=>{LA(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));LA=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Br(r,{customStyle:{mark:{marginRight:"8px"}},i18nParams:{text:"Jolicoin Used"}})},TH=V("adInit",{implement:e=>{go.init(e)}}),CH=V("adConfig",{implement:e=>{go.adConfig(e)}}),af=!1,PH=V("adBreak",{implement:e=>{if(e.type==="reward"){if(af)return;af=!0,sr.getRewardsTypes(vo).then(t=>{sr.handleReward(t,e).catch(r=>{var n;console.info("handleReward failed in native",r),(n=e.adBreakDone)==null||n.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{af=!1})})}else go.adBreak(e)}}),OH=V("adUnit",{implement:e=>{go.adUnit(e)}});cl.registerCommand("AdsSDK.init",TH);cl.registerCommand("AdsSDK.adConfig",CH);cl.registerCommand("AdsSDK.adBreak",PH);cl.registerCommand("AdsSDK.adUnit",OH);F("AdsSDK.init",{version:"1.0.0"});F("AdsSDK.adConfig",{version:"1.0.0"});F("AdsSDK.adBreak",{version:"1.0.0"});F("AdsSDK.adUnit",{version:"1.0.0"})});var yo,RH,NH,DH,LH,qH,FA=k(()=>{"use strict";D();xe();dt();K();yo=ee(),RH=V("openSchemaSync",{paramsSchema:x.tuple(x.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=U("openSchemaSync",{schema:t});if(r.errNo!==0)throw new zr(r.errMsg,r.errNo)}}),NH=V("openPageSync",{paramsSchema:x.tuple(x.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=U("openPageSync",{url:e});if(t!==0||!n)throw new zr(r,t);return{webviewId:n.webviewId}}}),DH=V("closePageSync",{paramsSchema:x.tuple(x.number()),implement:e=>{let{errNo:t,errMsg:r}=U("closePageSync",{webviewId:e});if(t!==0)throw new zr(r,t)}}),LH=V("interceptSystemExitSync",{paramsSchema:x.tuple(x.boolean()),implement:e=>{Ee.emit("onInterceptSystemExit",{intercept:e}),Ee.emit("onInterceptBackPress",{intercept:e})}}),qH=V("navigateToNativePage",{paramsSchema:x.tuple(x.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed"),x.object()),implement:(e,t)=>{let{errNo:r,errMsg:n}=U("callHostMethodAsync",{method:e,params:T({},t)});if(r!==0)throw new zr(n,r)}});yo.registerCommand("RouterSDK.openSchema",RH);yo.registerCommand("RouterSDK.openPage",NH);yo.registerCommand("RouterSDK.closePage",DH);yo.registerCommand("RouterSDK.interceptSystemExit",LH);yo.registerCommand("RouterSDK.navigateToNativePage",qH);F("router.openSchema",{version:"1.1.10"});F("router.openPage",{version:"1.1.10"});F("router.closePage",{version:"1.1.10"});F("router.interceptSystemExit",{version:"1.1.18"});F("router.navigateToNativePage",{version:"1.1.19"})});function jH(e){Pl("cpLoadProgressEvent",{progress:e},S.webviewId,!0)}var jA,FH,ul,sf,MA,MH,UH,UA=k(()=>{"use strict";D();dt();xe();K();gt();jA=ee(),FH=V("onLoadFinished",{implement:()=>{Pl("cpLoadFinishEvent",{},S.webviewId,!0),j("loadFinished",{duration:performance.now()})}}),ul=null,sf=!1,MA=0,MH=200;UH=V("onLoadProgress",{paramsSchema:x.tuple(x.number()),implement:e=>{ul=e,sf||(sf=!0,requestAnimationFrame(function t(){let r=Date.now();r-MA>=MH?(ul!==null&&(jH(ul),MA=r,ul=null),sf=!1):requestAnimationFrame(t)}))}});jA.registerCommand("RuntimeSDK.loadFinishedEvent",FH);jA.registerCommand("RuntimeSDK.loadProgressEvent",UH)});var BH,JH,HH,BA=k(()=>{"use strict";D();dt();K();BH=ee(),JH="isNativeSupport",HH=V(JH,{paramsSchema:x.tuple(x.object({version:x.string()})),implement:e=>{let t=S.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:Xf(tp(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});BH.registerCommand("API.isNativeSupport",HH);F("isNativeSupport",{version:"1.1.46"})});var $H={};var $Z,WZ,JA=k(()=>{"use strict";kE();$Z=oe(AE());DE();ap();jE();WZ=oe(UE());Os();qA();FA();UA();BA()});var HA=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[HA])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[HA]=!0;w(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(gE(),vE)),Promise.resolve().then(()=>(JA(),$H)),Promise.resolve().then(()=>(gt(),Th))]);e()});
|