@jolibox/implement 1.1.19-beta.1 → 1.1.19-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rush/temp/package-deps_build.json +22 -15
- package/.rush/temp/shrinkwrap-deps.json +1 -1
- package/dist/common/rewards/index.d.ts +1 -10
- package/dist/common/rewards/registers/use-ads.d.ts +3 -2
- package/dist/common/rewards/registers/use-jolicoin-only.d.ts +10 -0
- package/dist/common/rewards/registers/utils/coins/index.d.ts +32 -0
- package/dist/common/rewards/registers/utils/event-listener.d.ts +15 -0
- package/dist/common/rewards/registers/utils/index.d.ts +1 -0
- package/dist/common/rewards/reward-emitter.d.ts +58 -0
- package/dist/common/rewards/reward-helper.d.ts +2 -1
- package/dist/common/utils/index.d.ts +49 -2
- package/dist/h5/api/ads.d.ts +1 -1
- package/dist/h5/http/index.d.ts +1 -1
- package/dist/h5/rewards/index.d.ts +4 -0
- package/dist/index.js +197 -3
- package/dist/index.native.js +402 -21
- package/dist/native/api/ads.d.ts +1 -1
- package/dist/native/api/login.d.ts +4 -1
- package/dist/native/rewards/index.d.ts +4 -0
- package/dist/native/ui/modal-iframe.d.ts +26 -0
- package/implement.build.log +2 -2
- package/package.json +5 -4
- package/src/common/context/index.ts +3 -3
- package/src/common/rewards/fetch-reward.ts +9 -3
- package/src/common/rewards/index.ts +1 -12
- package/src/common/rewards/registers/use-ads.ts +3 -2
- package/src/common/rewards/registers/use-jolicoin-only.ts +57 -0
- package/src/common/rewards/registers/use-jolicoin.ts +27 -77
- package/src/common/rewards/registers/utils/coins/index.ts +186 -0
- package/src/common/rewards/registers/utils/event-listener.ts +66 -0
- package/src/common/rewards/registers/utils/index.ts +8 -0
- package/src/common/rewards/reward-emitter.ts +79 -0
- package/src/common/rewards/reward-helper.ts +3 -2
- package/src/common/utils/index.ts +117 -4
- package/src/h5/api/ads.ts +65 -12
- package/src/h5/http/index.ts +2 -2
- package/src/h5/rewards/index.ts +69 -0
- package/src/native/api/ads.ts +95 -33
- package/src/native/api/login.ts +1 -1
- package/src/native/bootstrap/index.ts +5 -0
- package/src/native/rewards/index.ts +138 -0
- package/src/native/ui/modal-iframe.ts +271 -0
package/dist/index.native.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var TS=Object.create;var fn=Object.defineProperty,RS=Object.defineProperties,AS=Object.getOwnPropertyDescriptor,qS=Object.getOwnPropertyDescriptors,kS=Object.getOwnPropertyNames,dn=Object.getOwnPropertySymbols,OS=Object.getPrototypeOf,Io=Object.prototype.hasOwnProperty,$u=Object.prototype.propertyIsEnumerable;var Bu=(e,r,t)=>r in e?fn(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,T=(e,r)=>{for(var t in r||(r={}))Io.call(r,t)&&Bu(e,t,r[t]);if(dn)for(var t of dn(r))$u.call(r,t)&&Bu(e,t,r[t]);return e},C=(e,r)=>RS(e,qS(r));var qe=(e,r)=>{var t={};for(var n in e)Io.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&dn)for(var n of dn(e))r.indexOf(n)<0&&$u.call(e,n)&&(t[n]=e[n]);return t};var R=(e,r)=>()=>(e&&(r=e(e=0)),r);var f=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Hu=(e,r)=>{for(var t in r)fn(e,t,{get:r[t],enumerable:!0})},PS=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of kS(r))!Io.call(e,i)&&i!==t&&fn(e,i,{get:()=>r[i],enumerable:!(n=AS(r,i))||n.enumerable});return e};var B=(e,r,t)=>(t=e!=null?TS(OS(e)):{},PS(r||!e||!e.__esModule?fn(t,"default",{value:e,enumerable:!0}):t,e));var E=(e,r,t)=>new Promise((n,i)=>{var o=u=>{try{s(t.next(u))}catch(c){i(c)}},a=u=>{try{s(t.throw(u))}catch(c){i(c)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,a);s((t=t.apply(e,r)).next())});function jS(e){return!!(e!=null&&e.__nativeBuffers__)}function Po(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(t){return{}}if(typeof e!="object"||e===null)return{};if(!jS(e))return e;let r=e.__nativeBuffers__;if(delete e.__nativeBuffers__,r)for(let t=0;t<r.length;t++){let n=r[t];if(n){let i;n.value?i=n.value:n.base64&&(i=US(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function BS(e={},r=!1){let t=e,n=[];for(let[i,o]of Object.entries(t))if(o!==void 0&&o instanceof ArrayBuffer&&o.byteLength!==void 0){let a=r?{value:o,key:i}:{base64:MS(o),key:i};n.push(a),delete t[i]}return n.length>0&&(t.__nativeBuffers__=n),t}function GS(e){return new Promise(r=>{setTimeout(()=>{r()},e)})}function rc(e){return typeof e=="string"}function dt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function JS(e){return typeof e=="undefined"}function WS(e){return JS(e)||e===null}function tc(e){return typeof e=="function"}function zS(e){return dt(e)&&tc(e.then)}function nc(e){let r=e,t=null,n=function(...i){return t||(t=new r(...i)),t};return n.prototype=r.prototype,n}function ct(e){return(...r)=>{var t,n;((n=(t=globalThis.VConsole)==null?void 0:t[e])!=null?n:globalThis.console[e])(...r)}}function ox(){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 r=Window.prototype,t=Object.getOwnPropertyDescriptor(r,"localStorage");if(t&&t.get){let n=t.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 lx(e){return new Promise(r=>ic(e)(r))}function ic(e){return(r,t=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,r.call(t,i)},null)}}function dx(e,r){return(t=>{let n,i={onWillAddFirstListener(){n=t(o.fire,o)}},o=new pt(i);return o.event})((t,n=null)=>e(i=>r(i)&&t.call(n,i),null))}function px(e,r){let t=Math.min(e.length,r.length);for(let n=0;n<t;n++)mx(e[n],r[n])}function mx(e,r){if(rc(r)){if(typeof e!==r)throw new Error(`argument does not match constraint: typeof ${r}`)}else if(tc(r)){try{if(e instanceof r)return}catch(t){}if(!WS(e)&&e.constructor===r||r.length===1&&r.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 Ju(e,r){return`[${e}]:${r}`}function bx(e,r){Wu||(Ao=new mn({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),qo=new mn({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),ko=new mn({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),r("onJoliboxEnterBackground",()=>{Ao.flush(),qo.flush(),ko.flush()}),Wu=!0);function t(i){var o,a;let{method:s,args:u,startTime:c,isForeground:d,errMsg:l=`${s}:fail no errMsg`,errNo:p=0,__timing:m={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:h,invokeCallback:y}=m,v=(a=(o=l.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Ao.report({status:v,method:n(s,u),errNo:`${p}`,errMsg:l,isForeground:d,duration:Date.now()-c}),c&&h&&y&&(qo.report({status:v,method:s,isForeground:d,duration:Number((h-c).toFixed(3))}),ko.report({status:v,method:s,isForeground:d,duration:Number((Date.now()-y).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return t}function Ex(e,r){let t=0,n=!0,i=xx.resolveMap,o=bx(e,r);r("onJoliboxEnterBackground",()=>{n=!1}),r("onJoliboxEnterForeground",()=>{n=!0,Oo.forEach(u=>Uo(this,[u],function*({method:c,args:d,resolve:l}){let p=yield s(c,d);l(p)})),Oo.length=0});let a=(u,c)=>{let d=i.get(Number(u));if(!d)return;let l=Po(c);d(l),i.delete(Number(u))},s=(u,c)=>{var d,l;let p=Date.now(),m=`${n}`;t+=1;let h=new VS;if(i.set(t,h.resolve),!n&&gx.includes(u))return new Promise(q=>{Oo.push({method:u,args:c,resolve:q})});let y=LS(tr({},{method:u,startTime:p,args:c,isForeground:m}),{invokeType:"js-bridge"}),v=!wx&&vx.includes(u),g=BS(c,v),_=v?g:JSON.stringify(g),x;if(u.endsWith("Sync")||yx.includes(u)?x=(d=e.call)==null?void 0:d.call(e,u,g,t):typeof _=="string"?x=e.invoke(u,_,t):x=(l=e.call)==null?void 0:l.call(e,u,_,t),x){try{typeof x=="string"&&(x=JSON.parse(x)),x=Po(x)}catch(q){Mo.error(q)}return i.delete(t),x.errorCode&&(x.errorCode=Ju(u,x.errorCode)),o(tr(tr({},y),x)),x}return u.endsWith("Sync")&&i.delete(t),h.promise.then(q=>(q.errorCode&&(q.errorCode=Ju(u,q.errorCode)),o(tr(tr({},y),q)),q))};return{invokeNative:s,applyNative:(u,c)=>{let d=s(u,c);return zS(d)?d.then(l=>zu(u,l)):zu(u,d)},invokeHandler:a}}function zu(e,r){if(!dt(r)){Mo.warn(`[Jolibox SDK]${e} no response value`);return}let t=r,{errMsg:n,errNo:i,errorType:o,errorCode:a}=t,s=FS(t,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new ZS(n,i,o,a);return s}function Ix(e){if(globalThis[pn])return globalThis[pn];let r=new Do,t=new Do,n=new mn({eventName:"jolibox_publish",tagNameOrder:["type","event"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}});return r.on("onJoliboxEnterBackground",()=>{n.flush()}),globalThis[pn]={onNative:r.on.bind(r),offNative:r.off.bind(r),subscribe:t.on.bind(t),unsubscribe:t.off.bind(t),subscribeHandler(i,o,a){let s=Po(o),u;if(s.__extra){u=s.params;let{type:c,startTime:d}=s.__extra;n.report({type:c,event:i,duration:Date.now()-d})}else u=s;if(i===oc){u.forEach(c=>{let[d,l]=c;try{t.emit(d.slice(ft.length),l,a)}catch(p){}});return}if(i.startsWith(ft)){t.emit(i.slice(ft.length),u,a);return}r.emit(i,u,a)}},globalThis[pn]}function Tx(e){let r=new Map,t;return(n,i,o,a)=>{if(a){let u=o?[o]:"*";e.publish(`${ft}${n}`,i,u);return}t||(t=Promise.resolve().then(()=>{r.forEach((u,c)=>{try{let d=c?[c]:"*";e.publish(oc,u,d)}catch(d){}}),t=void 0,r.clear()}));let s=r.get(o);s||(s=[],r.set(o,s)),s.push([`${ft}${n}`,i])}}function Rx(e){let{subscribeHandler:r,onNative:t,offNative:n,subscribe:i,unsubscribe:o}=Ix(e),{invokeNative:a,invokeHandler:s,applyNative:u}=Ex(e,t),c=Tx(e);return{invokeHandler:s,subscribeHandler:r,applyNative:u,invokeNative:a,onNative:t,offNative:n,publish:c,subscribe:i,unsubscribe:o}}function ac(e,r){return{params:e,__extra:{startTime:Date.now(),type:r}}}var CS,NS,DS,hn,Qu,Xu,Ku,tr,LS,FS,Uo,US,MS,Zu,$S,HS,ec,KS,VS,YS,QS,vn,XS,ZS,ex,To,Mo,Gu,rx,tx,nx,ix,ax,NF,Co,$,sx,ux,lt,pt,Do,Lo,cx,Ro,fx,DF,Fo,Vu,LF,hx,ft,vx,gx,yx,oc,_x,mn,Wu,Ao,qo,ko,Oo,wx,jo,Sx,xx,pn,Bo,Ve,sc,uc,Ax,cc,Yu,pe,F,ke,FF,qx,lc,jF,UF,me=R(()=>{"use strict";CS=Object.defineProperty,NS=Object.defineProperties,DS=Object.getOwnPropertyDescriptors,hn=Object.getOwnPropertySymbols,Qu=Object.prototype.hasOwnProperty,Xu=Object.prototype.propertyIsEnumerable,Ku=(e,r,t)=>r in e?CS(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,tr=(e,r)=>{for(var t in r||(r={}))Qu.call(r,t)&&Ku(e,t,r[t]);if(hn)for(var t of hn(r))Xu.call(r,t)&&Ku(e,t,r[t]);return e},LS=(e,r)=>NS(e,DS(r)),FS=(e,r)=>{var t={};for(var n in e)Qu.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&hn)for(var n of hn(e))r.indexOf(n)<0&&Xu.call(e,n)&&(t[n]=e[n]);return t},Uo=(e,r,t)=>new Promise((n,i)=>{var o=u=>{try{s(t.next(u))}catch(c){i(c)}},a=u=>{try{s(t.throw(u))}catch(c){i(c)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,a);s((t=t.apply(e,r)).next())});US=e=>{let r=atob(e),t=r.length,n=new Uint8Array(t);for(let i=0;i<t;i++)n[i]=r.charCodeAt(i);return n.buffer};MS=e=>{let r="",t=new Uint8Array(e),n=t.byteLength;for(let i=0;i<n;i++)r+=String.fromCharCode(t[i]);return btoa(r)};Zu=Object.defineProperty,$S=Object.getOwnPropertyDescriptor,HS=(e,r)=>{for(var t in r)Zu(e,t,{get:r[t],enumerable:!0})},ec=(e,r,t,n)=>{for(var i=n>1?void 0:n?$S(r,t):r,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(r,t,i):a(i))||i);return n&&i&&Zu(r,t,i),i},KS=(e,r,t)=>new Promise((n,i)=>{var o=u=>{try{s(t.next(u))}catch(c){i(c)}},a=u=>{try{s(t.throw(u))}catch(c){i(c)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,a);s((t=t.apply(e,r)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new r};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let t=new Event("abort");this.signal.dispatchEvent(t)};let r=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(r.prototype,"aborted",{get:function(){return this._aborted}}),r.prototype.addEventListener=function(t,n){this._eventListeners[t]||(this._eventListeners[t]=[]),this._eventListeners[t].push(n)},r.prototype.removeEventListener=function(t,n){if(!this._eventListeners[t])return;let i=this._eventListeners[t].indexOf(n);i!==-1&&this._eventListeners[t].splice(i,1)},r.prototype.dispatchEvent=function(t){if(this._eventListeners[t.type])for(let n of this._eventListeners[t.type])n.call(this,t)},window.AbortController=e,window.AbortSignal=r}VS=class{constructor(){this.state="pending",this.promise=new Promise((e,r)=>{this.resolve=t=>{this.state==="pending"&&(this.state="fulfilled",e(t))},this.reject=t=>{this.state==="pending"&&(this.state="rejected",r(t))}})}};YS=(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))(YS||{}),QS=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}},vn=class extends QS{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},XS=class extends vn{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},ZS=class extends vn{constructor(e,r,t,n){super(e),this.errNo=r,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=t,this.errorCode=n}},ex=class extends vn{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},To=class extends vn{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Mo={log:ct("log"),warn:ct("warn"),info:ct("info"),error:ct("error"),debug:ct("debug")};Object.assign(globalThis,{logger:Mo});Gu=Symbol.for("Jolibox.canIUseMap"),rx={};globalThis[Gu]||(globalThis[Gu]=rx);tx=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(tx||{}),nx=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(nx||{}),ix=(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))(ix||{});ox();ax=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),NF={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")},Co=class No{constructor(r){this.element=r,this.next=No.Undefined,this.prev=No.Undefined}};Co.Undefined=new Co(void 0);$=Co,sx=class{constructor(){this._first=$.Undefined,this._last=$.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===$.Undefined}clear(){let e=this._first;for(;e!==$.Undefined;){let r=e.next;e.prev=$.Undefined,e.next=$.Undefined,e=r}this._first=$.Undefined,this._last=$.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,r){let t=new $(e);if(this._first===$.Undefined)this._first=t,this._last=t;else if(r){let i=this._last;this._last=t,t.prev=i,i.next=t}else{let i=this._first;this._first=t,t.next=i,i.prev=t}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(t))}}shift(){if(this._first!==$.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==$.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==$.Undefined&&e.next!==$.Undefined){let r=e.prev;r.next=e.next,e.next.prev=r}else e.prev===$.Undefined&&e.next===$.Undefined?(this._first=$.Undefined,this._last=$.Undefined):e.next===$.Undefined?(this._last=this._last.prev,this._last.next=$.Undefined):e.prev===$.Undefined&&(this._first=this._first.next,this._first.prev=$.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==$.Undefined;)yield e.element,e=e.next}},ux=0,lt=class{constructor(e){this.value=e,this.id=ux++}},pt=class{constructor(e){this.options=e,this._size=0}dispose(e){var r,t;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof lt&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(t=(r=this.options)==null?void 0:r.onDidRemoveLastListener)==null||t.call(r))}get event(){var e;return(e=this._event)!=null||(this._event=(r,t)=>{var n,i,o,a,s,u;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(r=r.bind(t));let c=new lt(r);return this._listeners?this._listeners instanceof lt?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)),(u=(s=this.options)==null?void 0:s.onDidAddListener)==null||u.call(s,this),this._size++,()=>{var d,l,p,m;if(!this._disposed){if(this._listeners instanceof lt)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(l=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||l.call(d));else if(this._listeners){let h=this._listeners.indexOf(c);h>=0&&(this._listeners.splice(h,1),this._size--,this._size===0&&((m=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||m.call(p)))}}}}),this._event}_deliver(e,r){var t;if(!e)return;let n=((t=this.options)==null?void 0:t.onListenerError)||Error.constructor;if(!n){e.value(r);return}try{e.value(r)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof lt?this._deliver(this._listeners,e):this._listeners.forEach(r=>this._deliver(r,e)))}hasListeners(){return this._size>0}},Do=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,r){var t;let n=(t=this.listeners.get(e))!=null?t:new pt,i=s=>r(...s.args),o=n.event(i);this.listerHandlerMap.set(r,{handler:i,dispose:o}),this.listeners.set(e,n);let a=this.cachedEventQueue.get(e);if(a)for(let s of a)r(...s.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,r){let t=this.listerHandlerMap.get(r);t&&(t.dispose(),this.listerHandlerMap.delete(r))}emit(e,...r){let t=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new sx,this.cachedEventQueue.set(e,n)),n.push({args:r}),t&&t.fire({event:e,args:r})}},Lo={};HS(Lo,{None:()=>cx,filter:()=>dx,once:()=>ic,toPromise:()=>lx});cx=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ro=Symbol.for("Jolibox.hostEmitter"),fx=()=>{let e=new Do;return globalThis[Ro]||(globalThis[Ro]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e)}),globalThis[Ro]},DF=fx();Fo=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new pt,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 t=[];for(let i of e.metadata.args)t.push(i.constraint);let n=e.handler;e.handler=function(...i){return px(i,t),n(...i)}}let{id:r}=e;this._commands.get(r)&&console.info(`[Jolibox SDK] duplicated command is registered ${r}`),this._commands.set(r,e),this._onDidRegisterCommand.fire(r)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let r of this._commands.keys()){let t=this.getCommand(r);t&&e.set(r,t)}return e}};Fo=ec([nc],Fo);Vu=class{constructor(){this._onWillExecuteCommand=new pt,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new pt,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Fo,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=GS(3e4)),this._starActivation}executeCommand(e,...r){return KS(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Lo.toPromise(Lo.filter(this.registry.onDidRegisterCommand,t=>t===e))])]),this._tryExecuteCommand(e,r))})}executeCommandThowErr(e,...r){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let t=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:r});let n=this.invokeFunction(t.handler,...r);return this._onDidExecuteCommand.fire({commandId:e,args:r}),n}_tryExecuteCommand(e,r){let t=this.registry.getCommand(e);if(!t)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:r});let n=this.invokeFunction(t.handler,...r);return this._onDidExecuteCommand.fire({commandId:e,args:r}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...r){let t=!1;try{return e(...r)}finally{t=!0}}};Vu=ec([nc],Vu);LF=Symbol.for("Jolibox.commands");hx=()=>ax(),ft="custom_event_",vx=[],gx=[],yx=["env","createRequestTask","login"],oc="__batch_event__",_x=e=>e==="pv"?e:"default",mn=class{constructor(e){this.interval=30,this.lastReportTime=0,this.cache={};let{reporter:r,interval:t=30,eventName:n,tagNameOrder:i,metricName:o,type:a}=e;this.reporter=r,this.interval=t,this.eventName=n,this.tagNameOrder=i,this.metricName=o,this.type=_x(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 r=(t,n,i,o)=>{let a=n.shift();if(a){let s=o[a];t[s]||(t[s]={}),r(t[s],n,i,o)}else t[i]||(t[i]=[]),t[i].push(o[i])};r(this.cache,[...this.tagNameOrder],this.metricName,e)}addPVPoint(e){let r=(n,i,o,a)=>{let s=i.shift();if(!s&&dt(a))throw new To(`report value failed to match tagNameOrder, ${JSON.stringify(t)}`);if(s){let u=[];if(dt(a))u.push(...Object.keys(a));else if(rc(a)){if(i.length>0)throw new To(`report value failed to match tagNameOrder, ${JSON.stringify(t)}`);u.push(a)}else throw new To(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(t)}`);u.forEach(c=>{n[c]||(n[c]={});let d=dt(a)?a[c]:a;r(n[c],[...i],o,d)})}else n[o]?n[o]++:n[o]=1},t={point:e,metricName:this.metricName,tagNameOrder:this.tagNameOrder};r(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={}}},Wu=!1;Oo=[],wx=!1,jo=Symbol.for("Jolibox.invokeResolverInstance"),Sx=new Map;globalThis[jo]||(globalThis[jo]=Sx);xx={get resolveMap(){return globalThis[jo]}};pn=Symbol.for("Jolibox.subscribeInstance");Ve={trigger(){},exit(){return Promise.resolve(!1)},onReady(e){Ve.trigger=e},onDoExit(e){Ve.exit=e}},sc=e=>{let r=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!r)e.onError(new XS("native env failed"));else{let{data:t}=JSON.parse(r);return t!=null?t:void 0}};if(window.webkit){let e=window.webkit.messageHandlers,r=(i="")=>{Ve.trigger(),e.onDocumentReady.postMessage({path:i})},t=i=>Uo(void 0,null,function*(){let o=yield Ve.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Bo={onDocumentReady:r,doExit:t,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=ac(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:r,env:sc,doExit:t};globalThis.joliboxJSCore=tr({},n)}if(window.JoliAndroidSDKBridge){let e=window.JoliAndroidSDKBridge,r=(i="")=>{Ve.trigger(),e.onDocumentReady(JSON.stringify({path:i}))},t=i=>Uo(void 0,null,function*(){let o=yield Ve.exit();e.doExit(JSON.stringify({uuid:i,shouldInterrupt:o}))});Bo={onDocumentReady:r,invoke(i,o,a){e.invoke(JSON.stringify({event:i,paramsString:o,callbackId:a}))},doExit:t,publish(i,o,a){let s=ac(o,"joliboxJSCore");e.publish({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:r,env:sc,doExit:t};globalThis.joliboxJSCore=tr({},n)}uc=Bo;if(!uc&&hx())throw new ex("No joliboxJScore is found, native bridge not found.");Ax=tr({},uc),cc=Rx(Ax),{invokeHandler:Yu}=cc,{applyNative:pe,invokeNative:F,onNative:ke,offNative:FF,subscribeHandler:qx,publish:lc,subscribe:jF,unsubscribe:UF}=cc;globalThis.joliboxJSBridge={callHandler:Yu,invokeHandler:Yu,subscribeHandler:qx}});function Lx(e){return new Promise(r=>{setTimeout(()=>{r()},e)})}function gt(e){return typeof e=="string"}function yr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function hc(e){return typeof e=="object"&&Array.isArray(e)}function yt(e){return e===!0||e===!1}function vc(e){return typeof e=="undefined"}function Fx(e){return vc(e)||e===null}function jx(e){return typeof e=="function"}function gc(e){let r=e,t=null,n=function(...i){return t||(t=new r(...i)),t};return n.prototype=r.prototype,n}function yc(e,r,t){if(typeof t!="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],u=o[a],c=t(s,u,a,i,o);c!==void 0?i[a]=c:pc(u)&&pc(s)?i[a]=n(Cx({},s),u):Array.isArray(u)&&Array.isArray(s)?i[a]=[...s,...u]:i[a]=u}return i}return n(e,r)}function pc(e){return e&&typeof e=="object"&&e.constructor===Object}function _c(e,r){if(Array.isArray(e))return e.concat(r)}function _t(e,r,t={}){let n=null,i,o,a,{leading:s=!1,trailing:u=!0}=t,c=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...l){i=l,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,u&&!p&&c()},r),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 Mx(e,r){return(...t)=>r(e,...t)}function yn(e){return r=>Mx(r,function(t,...n){if(typeof t=="function")try{return t.apply(this,n)}catch(i){e(new bt(`${i}`))}})}function mt(e){return(...r)=>{var t,n;((n=(t=globalThis.VConsole)==null?void 0:t[e])!=null?n:globalThis.console[e])(...r)}}function ea(){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 r=Window.prototype,t=Object.getOwnPropertyDescriptor(r,"localStorage");if(t&&t.get){let n=t.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 zx(e){return new Promise(r=>Ic(e)(r))}function Ic(e){return(r,t=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,r.call(t,i)},null)}}function Yx(e,r){return(t=>{let n,i={onWillAddFirstListener(){n=t(o.fire,o)}},o=new vt(i);return o.event})((t,n=null)=>e(i=>r(i)&&t.call(n,i),null))}function Xx(e,r){let t=Math.min(e.length,r.length);for(let n=0;n<t;n++)Zx(e[n],r[n])}function Zx(e,r){if(gt(r)){if(typeof e!==r)throw new Error(`argument does not match constraint: typeof ${r}`)}else if(jx(r)){try{if(e instanceof r)return}catch(t){}if(!Fx(e)&&e.constructor===r||r.length===1&&r.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 e0(){return typeof globalThis!="undefined"?globalThis[Tc]:void 0}function r0(e){typeof globalThis!="undefined"&&(globalThis[Tc]=e)}function z(){let e=e0();if(e)return e;let r=new gn,t=new Jo,n={registerCommand(i,o,a){r.registerCommand({id:i,handler:o,metadata:a})},executeCommand(i,...o){return t.executeCommand(i,...o)},excuteCommandSync(i,...o){return t.executeCommandThowErr(i,...o)}};return r0(n),n}var Wo,kx,dc,Ox,Px,fc,Cx,Nx,mc,Dx,nr,Ux,zo,Yo,bc,wc,bt,Sc,xc,wt,Qo,De,Ho,Bx,Xo,$x,Zo,Hx,_n,rj,Kx,Gx,Ec,Ko,H,Vx,Jx,ht,vt,Le,Vo,Wx,$o,Qx,we,gn,Jo,Tc,P=R(()=>{"use strict";Wo=Object.defineProperty,kx=Object.getOwnPropertyDescriptor,dc=Object.getOwnPropertySymbols,Ox=Object.prototype.hasOwnProperty,Px=Object.prototype.propertyIsEnumerable,fc=(e,r,t)=>r in e?Wo(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Cx=(e,r)=>{for(var t in r||(r={}))Ox.call(r,t)&&fc(e,t,r[t]);if(dc)for(var t of dc(r))Px.call(r,t)&&fc(e,t,r[t]);return e},Nx=(e,r)=>{for(var t in r)Wo(e,t,{get:r[t],enumerable:!0})},mc=(e,r,t,n)=>{for(var i=n>1?void 0:n?kx(r,t):r,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(r,t,i):a(i))||i);return n&&i&&Wo(r,t,i),i},Dx=(e,r,t)=>new Promise((n,i)=>{var o=u=>{try{s(t.next(u))}catch(c){i(c)}},a=u=>{try{s(t.throw(u))}catch(c){i(c)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,a);s((t=t.apply(e,r)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new r};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let t=new Event("abort");this.signal.dispatchEvent(t)};let r=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(r.prototype,"aborted",{get:function(){return this._aborted}}),r.prototype.addEventListener=function(t,n){this._eventListeners[t]||(this._eventListeners[t]=[]),this._eventListeners[t].push(n)},r.prototype.removeEventListener=function(t,n){if(!this._eventListeners[t])return;let i=this._eventListeners[t].indexOf(n);i!==-1&&this._eventListeners[t].splice(i,1)},r.prototype.dispatchEvent=function(t){if(this._eventListeners[t.type])for(let n of this._eventListeners[t.type])n.call(this,t)},window.AbortController=e,window.AbortSignal=r}nr=class{constructor(){this.state="pending",this.promise=new Promise((e,r)=>{this.resolve=t=>{this.state==="pending"&&(this.state="fulfilled",e(t))},this.reject=t=>{this.state==="pending"&&(this.state="rejected",r(t))}})}};Ux=(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))(Ux||{}),zo=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}},Yo=class extends zo{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},bc=class extends zo{constructor(){super(...arguments),this.kind="USER_ERROR"}},wc=class extends bc{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},bt=class extends bc{constructor(e,r,t){super(e),this.message=e,this.errNo=r,this.name="USER_CUSTOM_ERROR",this.errMsg=e,t&&(this.extra=Object.assign({},this.extra,t))}},Sc=class extends Yo{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},xc=class extends Yo{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},wt=class extends zo{constructor(e,r,t,n,i){super(e),this.message=e,this.code=r,this.kind="API_ERROR",this.name="API_ERROR",t&&(this.errorType=t),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}}},Qo=class extends Yo{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};De={log:mt("log"),warn:mt("warn"),info:mt("info"),error:mt("error"),debug:mt("debug")};Object.assign(globalThis,{logger:De});Ho=Symbol.for("Jolibox.canIUseMap"),Bx={};globalThis[Ho]||(globalThis[Ho]=Bx);Xo={get config(){return globalThis[Ho]}},$x=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))($x||{}),Zo=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Zo||{}),Hx=(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))(Hx||{}),_n=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)});ea();rj={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")},Kx="device_id",Gx=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,_n()),window.__joliboxLocalStorage__.getItem(e)),Ec=()=>new URLSearchParams(window.location.search).get("deviceId")||Gx(Kx),Ko=class Go{constructor(r){this.element=r,this.next=Go.Undefined,this.prev=Go.Undefined}};Ko.Undefined=new Ko(void 0);H=Ko,Vx=class{constructor(){this._first=H.Undefined,this._last=H.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===H.Undefined}clear(){let e=this._first;for(;e!==H.Undefined;){let r=e.next;e.prev=H.Undefined,e.next=H.Undefined,e=r}this._first=H.Undefined,this._last=H.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,r){let t=new H(e);if(this._first===H.Undefined)this._first=t,this._last=t;else if(r){let i=this._last;this._last=t,t.prev=i,i.next=t}else{let i=this._first;this._first=t,t.next=i,i.prev=t}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(t))}}shift(){if(this._first!==H.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==H.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==H.Undefined&&e.next!==H.Undefined){let r=e.prev;r.next=e.next,e.next.prev=r}else e.prev===H.Undefined&&e.next===H.Undefined?(this._first=H.Undefined,this._last=H.Undefined):e.next===H.Undefined?(this._last=this._last.prev,this._last.next=H.Undefined):e.prev===H.Undefined&&(this._first=this._first.next,this._first.prev=H.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==H.Undefined;)yield e.element,e=e.next}},Jx=0,ht=class{constructor(e){this.value=e,this.id=Jx++}},vt=class{constructor(e){this.options=e,this._size=0}dispose(e){var r,t;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof ht&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(t=(r=this.options)==null?void 0:r.onDidRemoveLastListener)==null||t.call(r))}get event(){var e;return(e=this._event)!=null||(this._event=(r,t)=>{var n,i,o,a,s,u;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(r=r.bind(t));let c=new ht(r);return this._listeners?this._listeners instanceof ht?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)),(u=(s=this.options)==null?void 0:s.onDidAddListener)==null||u.call(s,this),this._size++,()=>{var d,l,p,m;if(!this._disposed){if(this._listeners instanceof ht)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(l=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||l.call(d));else if(this._listeners){let h=this._listeners.indexOf(c);h>=0&&(this._listeners.splice(h,1),this._size--,this._size===0&&((m=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||m.call(p)))}}}}),this._event}_deliver(e,r){var t;if(!e)return;let n=((t=this.options)==null?void 0:t.onListenerError)||Error.constructor;if(!n){e.value(r);return}try{e.value(r)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof ht?this._deliver(this._listeners,e):this._listeners.forEach(r=>this._deliver(r,e)))}hasListeners(){return this._size>0}},Le=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,r){var t;let n=(t=this.listeners.get(e))!=null?t:new vt,i=s=>r(...s.args),o=n.event(i);this.listerHandlerMap.set(r,{handler:i,dispose:o}),this.listeners.set(e,n);let a=this.cachedEventQueue.get(e);if(a)for(let s of a)r(...s.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,r){let t=this.listerHandlerMap.get(r);t&&(t.dispose(),this.listerHandlerMap.delete(r))}emit(e,...r){let t=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new Vx,this.cachedEventQueue.set(e,n)),n.push({args:r}),t&&t.fire({event:e,args:r})}},Vo={};Nx(Vo,{None:()=>Wx,filter:()=>Yx,once:()=>Ic,toPromise:()=>zx});Wx=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});$o=Symbol.for("Jolibox.hostEmitter"),Qx=()=>{let e=new Le;return globalThis[$o]||(globalThis[$o]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e)}),globalThis[$o]},we=Qx();gn=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new vt,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 t=[];for(let i of e.metadata.args)t.push(i.constraint);let n=e.handler;e.handler=function(...i){return Xx(i,t),n(...i)}}let{id:r}=e;this._commands.get(r)&&console.info(`[Jolibox SDK] duplicated command is registered ${r}`),this._commands.set(r,e),this._onDidRegisterCommand.fire(r)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let r of this._commands.keys()){let t=this.getCommand(r);t&&e.set(r,t)}return e}};gn=mc([gc],gn);Jo=class{constructor(){this._onWillExecuteCommand=new vt,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new vt,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new gn,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=Lx(3e4)),this._starActivation}executeCommand(e,...r){return Dx(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Vo.toPromise(Vo.filter(this.registry.onDidRegisterCommand,t=>t===e))])]),this._tryExecuteCommand(e,r))})}executeCommandThowErr(e,...r){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let t=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:r});let n=this.invokeFunction(t.handler,...r);return this._onDidExecuteCommand.fire({commandId:e,args:r}),n}_tryExecuteCommand(e,r){let t=this.registry.getCommand(e);if(!t)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:r});let n=this.invokeFunction(t.handler,...r);return this._onDidExecuteCommand.fire({commandId:e,args:r}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...r){let t=!1;try{return e(...r)}finally{t=!0}}};Jo=mc([gc],Jo);Tc=Symbol.for("Jolibox.commands")});function le(e,r={}){ra.emit("ERROR_REPORT",{error:e,options:r})}var ra,_r,Fe=R(()=>{"use strict";P();P();ra=new Le,_r=new Le;le.debounce=_t(le,50,{leading:!0})});var ta,t0,Rc,Ac,qc=R(()=>{"use strict";P();Fe();ta=e=>{let r=e.replace(/-/g,"+").replace(/_/g,"/"),t=r.length%4===0?"":"=".repeat(4-r.length%4),n=atob(r+t);try{return JSON.parse(n)}catch(i){return{}}},t0=e=>{let r=JSON.stringify(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Rc=e=>{var r;try{let i=(r=new URL(e).searchParams.get("joliSource"))==null?void 0:r.split(".");if(i!=null&&i.length){let[o,a,s]=i;return{headerJson:ta(o),payloadJson:ta(a),signature:ta(s)}}else throw"joli_source is missing"}catch(t){return le(new Sc(`${e} not a valid schema: ${t}`)),{headerJson:{},payloadJson:{},signature:{}}}},Ac=(e,r)=>{let t=r.split(".");if(t&&t.length===3){let n=t[0],i=t0(e),o=t[2];return`${n}.${i}.${o}`}return r}});var n0,na,kc=R(()=>{"use strict";P();n0="1.1.19-beta.1",na=()=>n0});var i0,Oc,ia,Pc,de,o0,S,ae=R(()=>{"use strict";P();qc();kc();P();i0={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Ec(),pixelRatio:window.devicePixelRatio||1,platform:"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:na()},schema:window.location.href,platform:"h5"},ia=(Oc=globalThis.joliboxJSCore)==null?void 0:Oc.env,de=Object.assign({},(Pc=ia==null?void 0:ia())!=null?Pc:i0),o0=()=>{var p,m,h,y,v,g,_,x,q,V,I;let{payloadJson:e,headerJson:r,signature:t}=de.schema.length?Rc(de.schema):{},n=`${de.deviceInfo.did}-${new Date().getTime()}`,o=new URL(de.schema.length?de.schema:window.location.href).searchParams,a=(h=(m=(p=o.get("mpId"))!=null?p:o.get("appId"))!=null?m:o.get("gameId"))!=null?h:"",s=(g=(v=(y=de.clientSessionId)!=null?y:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?g:n,u=!!((x=(_=e==null?void 0:e.testAdsMode)!=null?_:e==null?void 0:e.__testAdsMode)!=null?x:o.get("testAdsMode")==="true"),c=(I=(V=(q=e==null?void 0:e.joliboxEnv)!=null?q:e==null?void 0:e.__joliboxEnv)!=null?V:o.get("joliboxEnv"))!=null?I:"production",d=c==="staging",l=r==null?void 0:r.channel;return{get testMode(){return d},get testAdsMode(){return u},get joliboxEnv(){return c},get joliSource(){var w;return(w=o.get("joliSource"))!=null?w:null},get mpId(){var w;return(w=a!=null?a:e==null?void 0:e.id)!=null?w:""},get mpVersion(){var w;return(w=r==null?void 0:r.ver)!=null?w:na()},get mpType(){var w,K;return(K=(w=r==null?void 0:r.__mpType)!=null?w:e==null?void 0:e.__mpType)!=null?K:"game"},get platform(){var w;return((w=de.platform)!=null?w:de.deviceInfo.platform).toLowerCase()},get deviceInfo(){return de.deviceInfo},get sdkInfo(){return de.sdkInfo},get hostInfo(){return de.hostInfo},get hostUserInfo(){return de.hostUserInfo},get sessionId(){var w,K;return(K=(w=de.clientSessionId)!=null?w:s)!=null?K:n},get channel(){return l},get webviewId(){var w;return(w=de.webviewId)!=null?w:-1},get shouldInterupt(){return e==null?void 0:e.__shouldInterupt},get from(){return e==null?void 0:e.__from},get baseApiHost(){return d?"https://stg-api.jolibox.com":"https://api.jolibox.com"},onEnvConfigChanged:w=>{yc(de,w,_c)},encodeJoliSourceQuery:w=>{var K,Ee;return r&&t?Ac(T(T({},e),w),(K=o.get("joliSource"))!=null?K:""):(Ee=o.get("joliSource"))!=null?Ee:""}}},S=o0()});var oa,Nc,a0,s0,Cc,u0,Dc=R(()=>{"use strict";P();Fe();ae();P();oa=!1,Nc=(e,r)=>e==null?!1:r in e,a0=e=>Nc(e,"kind"),s0=e=>{let r=e.toLowerCase().split("_");return r[0]+r.slice(1).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")},Cc=(e,r={},t)=>{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:s0(e.name)},i=C(T({},n),{env:r.environment,isFromUser:t});t?_r.emit("GLOBAL_USER_ERROR",e,i):_r.emit("GLOBAL_ERROR",e,i)},u0=e=>Nc(e,"kind")&&e.kind==="USER_ERROR";ra.on("ERROR_REPORT",({error:e,options:r})=>{if(oa)return;oa=!0;let t=a0(e)&&e.raw?e.raw:e;try{let n=u0(e);Cc(e,r,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new Qo(`${i}, origin error: ${t.message}`);De.error(o),Cc(new Qo(o.message),{environment:r.environment},!1)}finally{oa=!1}})});var ir,aa,Nr=R(()=>{"use strict";Fe();P();Fe();ir=(e,r)=>{var t,n;return new wt((n=(t=r==null?void 0:r.errMsg)!=null?t:e.msg)!=null?n:"",e.code,e.type)},aa=e=>new wc(e)});var Lc=R(()=>{"use strict";Dc();Nr();P();me();_r.on("GLOBAL_ERROR",(e,r)=>{var n;let t={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};F("trackAsync",{event:"reportJsError",data:t})});_r.on("GLOBAL_USER_ERROR",(e,r)=>{De.log("UserError",e,r)})});var sa=R(()=>{"use strict"});function Fc(e,r){let t=(n,i,o)=>{let a=C(T({tag:n},r),{extra:T({},i)});n=="globalJsError"?le(new xc(JSON.stringify(a))):e("systemLog",a,o)};return t.debounce=_t(t,500,{leading:!0}),t}function jc(e){let r=(t,n,i)=>{var s;let o=(s=i&&JSON.stringify(i))!=null?s:0,a={speed_value_type:t,total_duration:n};o&&Object.assign(a,{extra:o}),e("joliboxSpeedAnalysis",a)};return r.debounce=_t(r,500,{leading:!0}),r}var Uc=R(()=>{"use strict";P();P();Fe()});function Mc(e,r){let t=Fc(e,r),n=jc(t);return{track:t,trackPerformance:n}}var Bc=R(()=>{"use strict";Uc()});var $c=R(()=>{"use strict";ae();P();P()});var Hc=R(()=>{"use strict";Bc();sa();$c()});var bn,Kc=R(()=>{"use strict";bn=class{constructor(r,t){this.eventEmitter=r;this.lastReportTime=0;this.visible=!0;this.timer=this.createRAFTimer(r=>{this.reporter({event:"PLAY_GAME",params:{duration:r}}),this.tracker("PlayGame",{duration:r})});this.interval=t!=null?t:5*1e3,r.on("visible",n=>{this.visible=n})}start(r){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:r!=null?r:0}}),this.tracker("OpenGame",{duration:r!=null?r:0}),this.timer.start()}close(r){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:r}}),this.tracker("CloseGame",{duration:r}),this.timer.stop()}createRAFTimer(r){let t=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let m=Date.now(),h=m-t;h>=this.interval&&(this.visible&&(a+=h,r(a)),t=m),n=requestAnimationFrame(s)},u=()=>{d(),t=Date.now(),i=window.setInterval(()=>{if(!o)return;let m=Date.now();m-t>=this.interval&&(t=m)},this.interval)},c=()=>{l(),t=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},l=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",m=>{o&&(console.log("visible",m),m?c():u())});let p=this.visible;return{start(){o||(o=!0,p?c():u())},stop(){o=!1,d(),l()}}}}});var ua=R(()=>{"use strict"});function Vc(e,r,t){let{response:n,startTime:i,endTime:o,requestFrom:a}=t,{errMsg:s="",profile:u={}}=n,d={duration:o-i,request_type:e,url:r.split("?")[0],result:t.state,error_msg:t.state==="fail"?s:"",socket_reused:u.socketReused?1:0,request_from:a};(a==="public"&&Gc<l0||a==="inner")&&(d.joli_request_number=Gc++,setTimeout(()=>{Se("joliboxNetRequestResult",d)},500))}var Gc,l0,Jc=R(()=>{"use strict";ua();or();Gc=0,l0=10});function wn(e,r,t){var u,c,d;let n=new Map,i=(u=t==null?void 0:t.baseUrl)!=null?u:"https://api.jolibox.com",o=(c=t==null?void 0:t.type)!=null?c:"public",a=(d=t==null?void 0:t.defaultHeaders)!=null?d:{};return ke("onRequestTaskStateChange",l=>{if(typeof l.requestTaskId!="string")return;let p=n.get(l.requestTaskId);if(p)if(l.state==="success"){let m=l,{requestTaskId:y,state:v}=m,g=qe(m,["requestTaskId","state"]);l.statusCode===200?p.resolve(g):p.reject(g),n.delete(y)}else if(l.state==="fail"){let h=l,{requestTaskId:y,state:v}=h,g=qe(h,["requestTaskId","state"]);p.reject(g),n.delete(y)}else De.warn("onRequestTaskStateChange unknown event",l)}),we.on("onLoginComplete",({isLogin:l,token:p})=>{l&&p&&(a["X-JOLI-TOKEN"]=p)}),(m,...h)=>E(this,[m,...h],function*(l,p={}){let y=Date.now(),v=d0(l,C(T({},p),{baseUrl:i})),{method:g="GET",responseType:_="text",dataType:x="json",timeout:q,enableCache:V=!1,appendHostCookie:I=!0}=p,w=Object.assign({"content-type":"application/json"},a,p.header),K={url:v,method:g,header:w,enableCache:V,responseType:_,appendHostCookie:I};if(g=="POST"||g=="PUT"){let Ne=p0(p.data,w["content-type"]);K.data=Ne}q&&Object.assign(K,{timeout:q});let{data:{requestTaskId:Ee}}=F(e,K);if(typeof Ee!="string")throw ir({code:-1,msg:"requestTaskId is not a string"});let Cr=(Ne,Ge)=>{Vc("request",v,{state:Ne,startTime:y,endTime:Date.now(),params:K,response:Ge,requestId:Ee,requestFrom:o=="public"?"public":"inner"})},{resolve:Ie,reject:gr,promise:SS}=new nr;n.set(Ee,{resolve:Ie,reject:gr});try{let Ne=yield SS;Cr("success",Ne);let{data:Ge}=Ne;return x==="json"&&typeof Ge=="string"&&(Ge=f0(Ge)),{url:v,timeout:q,method:g,response:C(T({},Ne),{data:Ge})}}catch(Ne){let Ge=Ne;if(yr(Ge)){let{errMsg:ln,prefetchDetail:xS,isPrefetch:ES,errNo:IS}=Ge;gt(ln)&&(Cr("fail",{errMsg:ln,isPrefetch:ES,prefetchDetail:xS}),le(ir({code:-1,msg:ln},{errNo:IS,errMsg:ln})))}throw Ne}})}function f0(e){try{return JSON.parse(e.trim())}catch(r){return e}}function p0(e,r="application/json"){let t=r.toLowerCase();return e===void 0?"":typeof e=="string"||e instanceof ArrayBuffer?e:t.includes("application/x-www-form-urlencoded")||t.includes("application/json")||typeof e=="object"?JSON.stringify(e):String(e)}var d0,ca=R(()=>{"use strict";P();Jc();ua();me();Fe();Nr();d0=(e,r)=>{if(/^https?:\/\//.test(e))return e;let t=r==null?void 0:r.query,i=new URLSearchParams(t).toString();return r!=null&&r.baseUrl?`${r.baseUrl}${e}${i?`?${i}`:""}`:`${e}${i?`?${i}`:""}`}});var la,Wc,he,Dr=R(()=>{"use strict";ca();ae();la={};(Wc=S.hostUserInfo)!=null&&Wc.token&&(la["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(la["x-joli-source"]=S.joliSource);he=wn("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:S.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:la})});var Sn,zc=R(()=>{"use strict";ae();Kc();Dr();me();Sn=class extends bn{constructor(r,t,n){super(t,n),this.gameId=S.mpId,this.sessionId=S.sessionId,this.track=r,this.taskUrl=S.testMode?"https://stg-api.jolibox.com/api/base/app-event":"https://api.jolibox.com/api/base/app-event"}reporter(r){return E(this,null,function*(){let{event:t,params:n}=r,i={eventType:t,gameInfo:T({gameId:this.gameId,sessionId:this.sessionId},n)};yield S.platform==="android"?he("/api/base/app-event",{method:"POST",data:i}):pe("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(i)})})}reportToNative(r){return E(this,null,function*(){let{event:t,params:n}=r;yield pe("userTrackAsync",{event:t,params:T({},n),gameId:this.gameId})})}tracker(r,t=null){this.track(r,t)}}});var el={};Hu(el,{nativeTaskEmitter:()=>St,taskTracker:()=>ve,track:()=>Se,trackPerformance:()=>Xc});var m0,Yc,Qc,Se,Xc,Zc,St,ve,or=R(()=>{"use strict";Lc();P();sa();Hc();ae();zc();me();m0=(e,r,t)=>{var a,s;let n=r,i=yr(n.extra)?n.extra:gt(n.extra)?JSON.parse(n.extra):{},o=C(T({},i),{mp_id:(a=n.mp_id)!=null?a:"",mp_version:(s=n.mp_version)!=null?s:""});F("trackAsync",{event:e,data:o,webviewId:t})},{track:Se,trackPerformance:Xc}=Mc(m0,{type:Zo.AppSDK,platform:"native",jssdk_version:(Qc=(Yc=S.sdkInfo)==null?void 0:Yc.jssdkVersion)!=null?Qc:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Zc=z();Zc.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:r,extra:t})=>{Xc(e,r,t)});Zc.registerCommand("ReportSDK.traceSystem",({event:e,info:r})=>{Se(e,r)});St=new Le,ve=new Sn(Se,St)});function rl(){let e=null,r=window.fetch,t=()=>{e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let o=`
|
|
1
|
+
var rS=Object.create;var vi=Object.defineProperty,nS=Object.defineProperties,iS=Object.getOwnPropertyDescriptor,oS=Object.getOwnPropertyDescriptors,aS=Object.getOwnPropertyNames,mi=Object.getOwnPropertySymbols,sS=Object.getPrototypeOf,Xa=Object.prototype.hasOwnProperty,Qc=Object.prototype.propertyIsEnumerable;var Yc=(e,t,r)=>t in e?vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t)=>{for(var r in t||(t={}))Xa.call(t,r)&&Yc(e,r,t[r]);if(mi)for(var r of mi(t))Qc.call(t,r)&&Yc(e,r,t[r]);return e},D=(e,t)=>nS(e,oS(t));var at=(e,t)=>{var r={};for(var n in e)Xa.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&mi)for(var n of mi(e))t.indexOf(n)<0&&Qc.call(e,n)&&(r[n]=e[n]);return r};var k=(e,t)=>()=>(e&&(t=e(e=0)),t);var f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Xc=(e,t)=>{for(var r in t)vi(e,r,{get:t[r],enumerable:!0})},lS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of aS(t))!Xa.call(e,i)&&i!==r&&vi(e,i,{get:()=>t[i],enumerable:!(n=iS(t,i))||n.enumerable});return e};var J=(e,t,r)=>(r=e!=null?rS(sS(e)):{},lS(t||!e||!e.__esModule?vi(r,"default",{value:e,enumerable:!0}):r,e));var I=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(u){i(u)}},a=l=>{try{s(r.throw(l))}catch(u){i(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});function hS(e){return!!(e!=null&&e.__nativeBuffers__)}function os(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!hS(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=mS(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function gS(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:vS(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function wS(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function cd(e){return typeof e=="string"}function rn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function xS(e){return typeof e=="undefined"}function AS(e){return xS(e)||e===null}function dd(e){return typeof e=="function"}function SS(e){return rn(e)&&dd(e.then)}function fd(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function en(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function DS(){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 FS(e){return new Promise(t=>pd(e)(t))}function pd(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function BS(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new on(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function HS(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)VS(e[n],t[n])}function VS(e,t){if(cd(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(dd(t)){try{if(e instanceof t)return}catch(r){}if(!AS(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 rd(e,t){return`[${e}]:${t}`}function YS(e,t){nd||(ts=new yi({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),rs=new yi({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),ns=new yi({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{ts.flush(),rs.flush(),ns.flush()}),nd=!0);function r(i){var o,a;let{method:s,args:l,startTime:u,isForeground:d,errMsg:c=`${s}:fail no errMsg`,errNo:p=0,__timing:h={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=h,y=(a=(o=c.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";ts.report({status:y,method:n(s,l),errNo:`${p}`,errMsg:c,isForeground:d,duration:Date.now()-u}),u&&m&&g&&(rs.report({status:y,method:s,isForeground:d,duration:Number((m-u).toFixed(3))}),ns.report({status:y,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 eI(e,t){let r=0,n=!0,i=ZS.resolveMap,o=YS(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,is.forEach(l=>fs(this,[l],function*({method:u,args:d,resolve:c}){let p=yield s(u,d);c(p)})),is.length=0});let a=(l,u)=>{let d=i.get(Number(l));if(!d)return;let c=os(u);d(c),i.delete(Number(l))},s=(l,u)=>{var d,c;let p=Date.now(),h=`${n}`;r+=1;let m=new ES;if(i.set(r,m.resolve),!n&&GS.includes(l))return new Promise(R=>{is.push({method:l,args:u,resolve:R})});let g=fS(Pt({},{method:l,startTime:p,args:u,isForeground:h}),{invokeType:"js-bridge"}),y=!QS&&KS.includes(l),v=gS(u,y),_=y?v:JSON.stringify(v),x;if(l.endsWith("Sync")||WS.includes(l)?x=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof _=="string"?x=e.invoke(l,_,r):x=(c=e.call)==null?void 0:c.call(e,l,_,r),x){try{typeof x=="string"&&(x=JSON.parse(x)),x=os(x)}catch(R){ps.error(R)}return i.delete(r),x.errorCode&&(x.errorCode=rd(l,x.errorCode)),o(Pt(Pt({},g),x)),x}return l.endsWith("Sync")&&i.delete(r),m.promise.then(R=>(R.errorCode&&(R.errorCode=rd(l,R.errorCode)),o(Pt(Pt({},g),R)),R))};return{invokeNative:s,applyNative:(l,u)=>{let d=s(l,u);return SS(d)?d.then(c=>id(l,c)):id(l,d)},invokeHandler:a}}function id(e,t){if(!rn(t)){ps.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=pS(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new kS(n,i,o,a);return s}function tI(e){if(globalThis[gi])return globalThis[gi];let t=new ls,r=new ls,n=new yi({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[gi]={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=os(o),l;if(s.__extra){l=s.params;let{type:u,startTime:d}=s.__extra;n.report({type:u,event:i,duration:Date.now()-d})}else l=s;if(i===hd){l.forEach(u=>{let[d,c]=u;try{r.emit(d.slice(nn.length),c,a)}catch(p){}});return}if(i.startsWith(nn)){r.emit(i.slice(nn.length),l,a);return}t.emit(i,l,a)}},globalThis[gi]}function rI(e){let t=new Map,r;return(n,i,o,a)=>{if(a){let l=o?[o]:"*";e.publish(`${nn}${n}`,i,l);return}r||(r=Promise.resolve().then(()=>{t.forEach((l,u)=>{try{let d=u?[u]:"*";e.publish(hd,l,d)}catch(d){}}),r=void 0,t.clear()}));let s=t.get(o);s||(s=[],t.set(o,s)),s.push([`${nn}${n}`,i])}}function nI(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=tI(e),{invokeNative:a,invokeHandler:s,applyNative:l}=eI(e,r),u=rI(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,publish:u,subscribe:i,unsubscribe:o}}function md(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var uS,cS,dS,_i,ad,sd,Zc,Pt,fS,pS,fs,mS,vS,ld,yS,_S,ud,bS,ES,IS,TS,bi,RS,kS,OS,Za,ps,ed,CS,PS,NS,qS,LS,O3,as,Y,MS,jS,tn,on,ls,us,US,es,$S,C3,cs,td,P3,JS,nn,KS,GS,WS,hd,zS,yi,nd,ts,rs,ns,is,QS,ds,XS,ZS,gi,hs,yt,vd,gd,iI,yd,od,qe,L,tt,N3,oI,_d,q3,D3,ke=k(()=>{"use strict";uS=Object.defineProperty,cS=Object.defineProperties,dS=Object.getOwnPropertyDescriptors,_i=Object.getOwnPropertySymbols,ad=Object.prototype.hasOwnProperty,sd=Object.prototype.propertyIsEnumerable,Zc=(e,t,r)=>t in e?uS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pt=(e,t)=>{for(var r in t||(t={}))ad.call(t,r)&&Zc(e,r,t[r]);if(_i)for(var r of _i(t))sd.call(t,r)&&Zc(e,r,t[r]);return e},fS=(e,t)=>cS(e,dS(t)),pS=(e,t)=>{var r={};for(var n in e)ad.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&_i)for(var n of _i(e))t.indexOf(n)<0&&sd.call(e,n)&&(r[n]=e[n]);return r},fs=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(u){i(u)}},a=l=>{try{s(r.throw(l))}catch(u){i(u)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});mS=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};vS=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)};ld=Object.defineProperty,yS=Object.getOwnPropertyDescriptor,_S=(e,t)=>{for(var r in t)ld(e,r,{get:t[r],enumerable:!0})},ud=(e,t,r,n)=>{for(var i=n>1?void 0:n?yS(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&&ld(t,r,i),i},bS=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(u){i(u)}},a=l=>{try{s(r.throw(l))}catch(u){i(u)}},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}ES=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))}})}};IS=(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))(IS||{}),TS=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}},bi=class extends TS{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},RS=class extends bi{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},kS=class extends bi{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},OS=class extends bi{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Za=class extends bi{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};ps={log:en("log"),warn:en("warn"),info:en("info"),error:en("error"),debug:en("debug")};Object.assign(globalThis,{logger:ps});ed=Symbol.for("Jolibox.canIUseMap"),CS={};globalThis[ed]||(globalThis[ed]=CS);PS=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(PS||{}),NS=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(NS||{}),qS=(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))(qS||{});DS();LS=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),O3={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")},as=class ss{constructor(t){this.element=t,this.next=ss.Undefined,this.prev=ss.Undefined}};as.Undefined=new as(void 0);Y=as,MS=class{constructor(){this._first=Y.Undefined,this._last=Y.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Y.Undefined}clear(){let e=this._first;for(;e!==Y.Undefined;){let t=e.next;e.prev=Y.Undefined,e.next=Y.Undefined,e=t}this._first=Y.Undefined,this._last=Y.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new Y(e);if(this._first===Y.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!==Y.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Y.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Y.Undefined&&e.next!==Y.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Y.Undefined&&e.next===Y.Undefined?(this._first=Y.Undefined,this._last=Y.Undefined):e.next===Y.Undefined?(this._last=this._last.prev,this._last.next=Y.Undefined):e.prev===Y.Undefined&&(this._first=this._first.next,this._first.prev=Y.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Y.Undefined;)yield e.element,e=e.next}},jS=0,tn=class{constructor(e){this.value=e,this.id=jS++}},on=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 tn&&(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 u=new tn(t);return this._listeners?this._listeners instanceof tn?this._listeners=[this._listeners,u]:this._listeners.push(u):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=u,(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,c,p,h;if(!this._disposed){if(this._listeners instanceof tn)this._listeners.id===u.id&&(this._listeners=void 0,this._size=0,(c=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||c.call(d));else if(this._listeners){let m=this._listeners.indexOf(u);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((h=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||h.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 tn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},ls=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t){var r;let n=(r=this.listeners.get(e))!=null?r:new on,i=s=>t(...s.args),o=n.event(i);this.listerHandlerMap.set(t,{handler:i,dispose:o}),this.listeners.set(e,n);let a=this.cachedEventQueue.get(e);if(a)for(let s of a)t(...s.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 MS,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}},us={};_S(us,{None:()=>US,filter:()=>BS,once:()=>pd,toPromise:()=>FS});US=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});es=Symbol.for("Jolibox.hostEmitter"),$S=()=>{let e=new ls;return globalThis[es]||(globalThis[es]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e)}),globalThis[es]},C3=$S();cs=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new on,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 HS(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}};cs=ud([fd],cs);td=class{constructor(){this._onWillExecuteCommand=new on,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new on,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new cs,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=wS(3e4)),this._starActivation}executeCommand(e,...t){return bS(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),us.toPromise(us.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}}};td=ud([fd],td);P3=Symbol.for("Jolibox.commands");JS=()=>LS(),nn="custom_event_",KS=[],GS=[],WS=["env","createRequestTask","login"],hd="__batch_event__",zS=e=>e==="pv"?e:"default",yi=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=zS(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&&rn(a))throw new Za(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(rn(a))l.push(...Object.keys(a));else if(cd(a)){if(i.length>0)throw new Za(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new Za(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);l.forEach(u=>{n[u]||(n[u]={});let d=rn(a)?a[u]:a;t(n[u],[...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={}}},nd=!1;is=[],QS=!1,ds=Symbol.for("Jolibox.invokeResolverInstance"),XS=new Map;globalThis[ds]||(globalThis[ds]=XS);ZS={get resolveMap(){return globalThis[ds]}};gi=Symbol.for("Jolibox.subscribeInstance");yt={trigger(){},exit(){return Promise.resolve(!1)},onReady(e){yt.trigger=e},onDoExit(e){yt.exit=e}},vd=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new RS("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="")=>{yt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>fs(void 0,null,function*(){let o=yield yt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});hs={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=md(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:vd,doExit:r};globalThis.joliboxJSCore=Pt({},n)}if(window.JoliAndroidSDKBridge){let e=window.JoliAndroidSDKBridge,t=(i="")=>{yt.trigger(),e.onDocumentReady(JSON.stringify({path:i}))},r=i=>fs(void 0,null,function*(){let o=yield yt.exit();e.doExit(JSON.stringify({uuid:i,shouldInterrupt:o}))});hs={onDocumentReady:t,invoke(i,o,a){e.invoke(JSON.stringify({event:i,paramsString:o,callbackId:a}))},doExit:r,publish(i,o,a){let s=md(o,"joliboxJSCore");e.publish({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:vd,doExit:r};globalThis.joliboxJSCore=Pt({},n)}gd=hs;if(!gd&&JS())throw new OS("No joliboxJScore is found, native bridge not found.");iI=Pt({},gd),yd=nI(iI),{invokeHandler:od}=yd,{applyNative:qe,invokeNative:L,onNative:tt,offNative:N3,subscribeHandler:oI,publish:_d,subscribe:q3,unsubscribe:D3}=yd;globalThis.joliboxJSBridge={callHandler:od,invokeHandler:od,subscribeHandler:oI}});function fI(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function un(e){return typeof e=="string"}function Yt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Ad(e){return typeof e=="object"&&Array.isArray(e)}function cn(e){return e===!0||e===!1}function Sd(e){return typeof e=="undefined"}function pI(e){return Sd(e)||e===null}function hI(e){return typeof e=="function"}function Id(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Td(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],u=r(s,l,a,i,o);u!==void 0?i[a]=u:Ed(l)&&Ed(s)?i[a]=n(uI({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Ed(e){return e&&typeof e=="object"&&e.constructor===Object}function Rd(e,t){if(Array.isArray(e))return e.concat(t)}function dn(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:l=!0}=r,u=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...c){i=c,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!p&&u()},t),p)return u()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,u()},d}function vI(e,t){return(...r)=>t(e,...r)}function Ei(e){return t=>vI(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new fn(`${i}`))}})}function an(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Ts(){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 SI(e){return new Promise(t=>qd(e)(t))}function qd(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function II(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new ln(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function RI(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)kI(e[n],t[n])}function kI(e,t){if(un(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(hI(t)){try{if(e instanceof t)return}catch(r){}if(!pI(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 OI(){return typeof globalThis!="undefined"?globalThis[Dd]:void 0}function CI(e){typeof globalThis!="undefined"&&(globalThis[Dd]=e)}function ne(){let e=OI();if(e)return e;let t=new wi,r=new bs,n={registerCommand(i,o,a){t.registerCommand({id:i,handler:o,metadata:a})},executeCommand(i,...o){return r.executeCommand(i,...o)},excuteCommandSync(i,...o){return r.executeCommandThowErr(i,...o)}};return CI(n),n}var ws,aI,bd,sI,lI,wd,uI,cI,xd,dI,Nt,mI,Es,xs,kd,Od,fn,Cd,Pd,pn,As,st,vs,gI,Ss,yI,Is,_I,xi,hn,bI,wI,Nd,gs,Q,EI,xI,sn,ln,lt,_s,AI,ms,TI,Se,wi,bs,Dd,q=k(()=>{"use strict";ws=Object.defineProperty,aI=Object.getOwnPropertyDescriptor,bd=Object.getOwnPropertySymbols,sI=Object.prototype.hasOwnProperty,lI=Object.prototype.propertyIsEnumerable,wd=(e,t,r)=>t in e?ws(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uI=(e,t)=>{for(var r in t||(t={}))sI.call(t,r)&&wd(e,r,t[r]);if(bd)for(var r of bd(t))lI.call(t,r)&&wd(e,r,t[r]);return e},cI=(e,t)=>{for(var r in t)ws(e,r,{get:t[r],enumerable:!0})},xd=(e,t,r,n)=>{for(var i=n>1?void 0:n?aI(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&&ws(t,r,i),i},dI=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(u){i(u)}},a=l=>{try{s(r.throw(l))}catch(u){i(u)}},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}Nt=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};mI=(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))(mI||{}),Es=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}},xs=class extends Es{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},kd=class extends Es{constructor(){super(...arguments),this.kind="USER_ERROR"}},Od=class extends kd{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},fn=class extends kd{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))}},Cd=class extends xs{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Pd=class extends xs{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},pn=class extends Es{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}}},As=class extends xs{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};st={log:an("log"),warn:an("warn"),info:an("info"),error:an("error"),debug:an("debug")};Object.assign(globalThis,{logger:st});vs=Symbol.for("Jolibox.canIUseMap"),gI={};globalThis[vs]||(globalThis[vs]=gI);Ss={get config(){return globalThis[vs]}},yI=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(yI||{}),Is=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Is||{}),_I=(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))(_I||{}),xi=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});Ts();hn={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")},bI="device_id",wI=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,xi()),window.__joliboxLocalStorage__.getItem(e)),Nd=()=>new URLSearchParams(window.location.search).get("deviceId")||wI(bI),gs=class ys{constructor(t){this.element=t,this.next=ys.Undefined,this.prev=ys.Undefined}};gs.Undefined=new gs(void 0);Q=gs,EI=class{constructor(){this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Q.Undefined}clear(){let e=this._first;for(;e!==Q.Undefined;){let t=e.next;e.prev=Q.Undefined,e.next=Q.Undefined,e=t}this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new Q(e);if(this._first===Q.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!==Q.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Q.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Q.Undefined&&e.next!==Q.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Q.Undefined&&e.next===Q.Undefined?(this._first=Q.Undefined,this._last=Q.Undefined):e.next===Q.Undefined?(this._last=this._last.prev,this._last.next=Q.Undefined):e.prev===Q.Undefined&&(this._first=this._first.next,this._first.prev=Q.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Q.Undefined;)yield e.element,e=e.next}},xI=0,sn=class{constructor(e){this.value=e,this.id=xI++}},ln=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 sn&&(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 u=new sn(t);return this._listeners?this._listeners instanceof sn?this._listeners=[this._listeners,u]:this._listeners.push(u):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=u,(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,c,p,h;if(!this._disposed){if(this._listeners instanceof sn)this._listeners.id===u.id&&(this._listeners=void 0,this._size=0,(c=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||c.call(d));else if(this._listeners){let m=this._listeners.indexOf(u);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((h=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||h.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 sn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},lt=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t){var r;let n=(r=this.listeners.get(e))!=null?r:new ln,i=s=>t(...s.args),o=n.event(i);this.listerHandlerMap.set(t,{handler:i,dispose:o}),this.listeners.set(e,n);let a=this.cachedEventQueue.get(e);if(a)for(let s of a)t(...s.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 EI,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}},_s={};cI(_s,{None:()=>AI,filter:()=>II,once:()=>qd,toPromise:()=>SI});AI=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});ms=Symbol.for("Jolibox.hostEmitter"),TI=()=>{let e=new lt;return globalThis[ms]||(globalThis[ms]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e)}),globalThis[ms]},Se=TI();wi=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ln,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 RI(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}};wi=xd([Id],wi);bs=class{constructor(){this._onWillExecuteCommand=new ln,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ln,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new wi,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=fI(3e4)),this._starActivation}executeCommand(e,...t){return dI(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),_s.toPromise(_s.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}}};bs=xd([Id],bs);Dd=Symbol.for("Jolibox.commands")});function Oe(e,t={}){Rs.emit("ERROR_REPORT",{error:e,options:t})}var Rs,Qt,ut=k(()=>{"use strict";q();q();Rs=new lt,Qt=new lt;Oe.debounce=dn(Oe,50,{leading:!0})});var ks,PI,Ld,Md,jd=k(()=>{"use strict";q();ut();ks=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{}}},PI=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Ld=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:ks(o),payloadJson:ks(a),signature:ks(s)}}else throw"joli_source is missing"}catch(r){return Oe(new Cd(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Md=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=PI(e),o=r[2];return`${n}.${i}.${o}`}return t}});var NI,Os,Ud=k(()=>{"use strict";q();NI="1.1.19-beta.6",Os=()=>NI});var qI,Fd,Cs,Bd,Ce,DI,A,ie=k(()=>{"use strict";q();jd();Ud();q();qI={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Nd(),pixelRatio:window.devicePixelRatio||1,platform:hn.isAndroid?"android":hn.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Os()},schema:window.location.href,platform:hn.isAndroid?"android":hn.isiOS?"ios":"h5"},Cs=(Fd=globalThis.joliboxJSCore)==null?void 0:Fd.env,Ce=Object.assign({},(Bd=Cs==null?void 0:Cs())!=null?Bd:qI),DI=()=>{var p,h,m,g,y,v,_,x,R,C,S;let{payloadJson:e,headerJson:t,signature:r}=Ce.schema.length?Ld(Ce.schema):{},n=`${Ce.deviceInfo.did}-${new Date().getTime()}`,o=new URL(Ce.schema.length?Ce.schema:window.location.href).searchParams,a=(m=(h=(p=o.get("mpId"))!=null?p:o.get("appId"))!=null?h:o.get("gameId"))!=null?m:"",s=(v=(y=(g=Ce.clientSessionId)!=null?g:e==null?void 0:e.sessionId)!=null?y:o.get("sessionId"))!=null?v:n,l=!!((x=(_=e==null?void 0:e.testAdsMode)!=null?_:e==null?void 0:e.__testAdsMode)!=null?x:o.get("testAdsMode")==="true"),u=(S=(C=(R=e==null?void 0:e.joliboxEnv)!=null?R:e==null?void 0:e.__joliboxEnv)!=null?C:o.get("joliboxEnv"))!=null?S:"production",d=u==="staging",c=t==null?void 0:t.channel;return{get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return u},get joliSource(){var w;return(w=o.get("joliSource"))!=null?w:null},get mpId(){var w;return(w=a!=null?a:e==null?void 0:e.id)!=null?w:""},get mpVersion(){var w;return(w=t==null?void 0:t.ver)!=null?w:Os()},get mpType(){var w,B;return(B=(w=t==null?void 0:t.__mpType)!=null?w:e==null?void 0:e.__mpType)!=null?B:"game"},get platform(){var w;return((w=Ce.platform)!=null?w:Ce.deviceInfo.platform).toLowerCase()},get deviceInfo(){return Ce.deviceInfo},get sdkInfo(){return Ce.sdkInfo},get hostInfo(){return Ce.hostInfo},get hostUserInfo(){return Ce.hostUserInfo},get sessionId(){var w,B;return(B=(w=Ce.clientSessionId)!=null?w:s)!=null?B:n},get channel(){return c},get webviewId(){var w;return(w=Ce.webviewId)!=null?w:-1},get shouldInterupt(){return e==null?void 0:e.__shouldInterupt},get from(){return e==null?void 0:e.__from},get baseApiHost(){return d?"https://stg-api.jolibox.com":"https://api.jolibox.com"},onEnvConfigChanged:w=>{Td(Ce,w,Rd)},encodeJoliSourceQuery:w=>{var B,Je;return t&&r?Md(O(O({},e),w),(B=o.get("joliSource"))!=null?B:""):(Je=o.get("joliSource"))!=null?Je:""}}},A=DI()});var Ps,Hd,LI,MI,$d,jI,Vd=k(()=>{"use strict";q();ut();ie();q();Ps=!1,Hd=(e,t)=>e==null?!1:t in e,LI=e=>Hd(e,"kind"),MI=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},$d=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=A.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=A.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:MI(e.name)},i=D(O({},n),{env:t.environment,isFromUser:r});r?Qt.emit("GLOBAL_USER_ERROR",e,i):Qt.emit("GLOBAL_ERROR",e,i)},jI=e=>Hd(e,"kind")&&e.kind==="USER_ERROR";Rs.on("ERROR_REPORT",({error:e,options:t})=>{if(Ps)return;Ps=!0;let r=LI(e)&&e.raw?e.raw:e;try{let n=jI(e);$d(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new As(`${i}, origin error: ${r.message}`);st.error(o),$d(new As(o.message),{environment:t.environment},!1)}finally{Ps=!1}})});var qt,Ns,vr=k(()=>{"use strict";ut();q();ut();qt=(e,t)=>{var r,n;return new pn((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Ns=e=>new Od(e)});var Jd=k(()=>{"use strict";Vd();vr();q();ke();Qt.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};L("trackAsync",{event:"reportJsError",data:r})});Qt.on("GLOBAL_USER_ERROR",(e,t)=>{st.log("UserError",e,t)})});var qs=k(()=>{"use strict"});function Kd(e,t){let r=(n,i,o)=>{let a=D(O({tag:n},t),{extra:O({},i)});n=="globalJsError"?Oe(new Pd(JSON.stringify(a))):e("systemLog",a,o)};return r.debounce=dn(r,500,{leading:!0}),r}function Gd(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=dn(t,500,{leading:!0}),t}var Wd=k(()=>{"use strict";q();q();ut()});function zd(e,t){let r=Kd(e,t),n=Gd(r);return{track:r,trackPerformance:n}}var Yd=k(()=>{"use strict";Wd()});var Qd=k(()=>{"use strict";ie();q();q()});var Xd=k(()=>{"use strict";Yd();qs();Qd()});var Ai,Zd=k(()=>{"use strict";Ai=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 h=Date.now(),m=h-r;m>=this.interval&&(this.visible&&(a+=m,t(a)),r=h),n=requestAnimationFrame(s)},l=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let h=Date.now();h-r>=this.interval&&(r=h)},this.interval)},u=()=>{c(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},c=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",h=>{o&&(console.log("visible",h),h?u():l())});let p=this.visible;return{start(){o||(o=!0,p?u():l())},stop(){o=!1,d(),c()}}}}});var Ds=k(()=>{"use strict"});function tf(e,t,r){let{response:n,startTime:i,endTime:o,requestFrom:a}=r,{errMsg:s="",profile:l={}}=n,d={duration:o-i,request_type:e,url:t.split("?")[0],result:r.state,error_msg:r.state==="fail"?s:"",socket_reused:l.socketReused?1:0,request_from:a};(a==="public"&&ef<FI||a==="inner")&&(d.joli_request_number=ef++,setTimeout(()=>{$e("joliboxNetRequestResult",d)},500))}var ef,FI,rf=k(()=>{"use strict";Ds();Dt();ef=0,FI=10});function Si(e,t,r){var l,u,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:"https://api.jolibox.com",o=(u=r==null?void 0:r.type)!=null?u:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return tt("onRequestTaskStateChange",c=>{if(typeof c.requestTaskId!="string")return;let p=n.get(c.requestTaskId);if(p)if(c.state==="success"){let h=c,{requestTaskId:g,state:y}=h,v=at(h,["requestTaskId","state"]);c.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(c.state==="fail"){let m=c,{requestTaskId:g,state:y}=m,v=at(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else st.warn("onRequestTaskStateChange unknown event",c)}),Se.on("onLoginComplete",({isLogin:c,token:p})=>{c&&p&&(a["X-JOLI-TOKEN"]=p)}),(h,...m)=>I(this,[h,...m],function*(c,p={}){let g=Date.now(),y=BI(c,D(O({},p),{baseUrl:i})),{method:v="GET",responseType:_="text",dataType:x="json",timeout:R,enableCache:C=!1,appendHostCookie:S=!0}=p,w=Object.assign({"content-type":"application/json"},a,p.header),B={url:y,method:v,header:w,enableCache:C,responseType:_,appendHostCookie:S};if(v=="POST"||v=="PUT"){let ot=HI(p.data,w["content-type"]);B.data=ot}R&&Object.assign(B,{timeout:R});let{data:{requestTaskId:Je}}=L(e,B);if(typeof Je!="string")throw qt({code:-1,msg:"requestTaskId is not a string"});let mr=(ot,gt)=>{tf("request",y,{state:ot,startTime:g,endTime:Date.now(),params:B,response:gt,requestId:Je,requestFrom:o=="public"?"public":"inner"})},{resolve:Ke,reject:zt,promise:XA}=new Nt;n.set(Je,{resolve:Ke,reject:zt});try{let ot=yield XA;mr("success",ot);let{data:gt}=ot;return x==="json"&&typeof gt=="string"&&(gt=$I(gt)),{url:y,timeout:R,method:v,response:D(O({},ot),{data:gt})}}catch(ot){let gt=ot;if(Yt(gt)){let{errMsg:hi,prefetchDetail:ZA,isPrefetch:eS,errNo:tS}=gt;un(hi)&&(mr("fail",{errMsg:hi,isPrefetch:eS,prefetchDetail:ZA}),Oe(qt({code:-1,msg:hi},{errNo:tS,errMsg:hi})))}throw ot}})}function $I(e){try{return JSON.parse(e.trim())}catch(t){return e}}function HI(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 BI,Ls=k(()=>{"use strict";q();rf();Ds();ke();ut();vr();BI=(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 Ms,nf,Ie,Xt=k(()=>{"use strict";Ls();ie();Ms={};(nf=A.hostUserInfo)!=null&&nf.token&&(Ms["x-joli-token"]=A.hostUserInfo.token);A.joliSource&&(Ms["x-joli-source"]=A.joliSource);Ie=Si("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:A.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:Ms})});var Ii,of=k(()=>{"use strict";ie();Zd();Xt();ke();Ii=class extends Ai{constructor(t,r,n){super(r,n),this.gameId=A.mpId,this.sessionId=A.sessionId,this.track=t,this.taskUrl=A.testMode?"https://stg-api.jolibox.com/api/base/app-event":"https://api.jolibox.com/api/base/app-event"}reporter(t){return I(this,null,function*(){let{event:r,params:n}=t,i={eventType:r,gameInfo:O({gameId:this.gameId,sessionId:this.sessionId},n)};yield A.platform==="android"?Ie("/api/base/app-event",{method:"POST",data:i}):qe("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(i)})})}reportToNative(t){return I(this,null,function*(){let{event:r,params:n}=t;yield qe("userTrackAsync",{event:r,params:O({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var cf={};Xc(cf,{nativeTaskEmitter:()=>mn,taskTracker:()=>De,track:()=>$e,trackPerformance:()=>lf});var VI,af,sf,$e,lf,uf,mn,De,Dt=k(()=>{"use strict";Jd();q();qs();Xd();ie();of();ke();VI=(e,t,r)=>{var a,s;let n=t,i=Yt(n.extra)?n.extra:un(n.extra)?JSON.parse(n.extra):{},o=D(O({},i),{mp_id:(a=n.mp_id)!=null?a:"",mp_version:(s=n.mp_version)!=null?s:""});L("trackAsync",{event:e,data:o,webviewId:r})},{track:$e,trackPerformance:lf}=zd(VI,{type:Is.AppSDK,platform:"native",jssdk_version:(sf=(af=A.sdkInfo)==null?void 0:af.jssdkVersion)!=null?sf:"1.0.0",mp_id:A.mpId,mp_version:A.mpVersion}),uf=ne();uf.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{lf(e,t,r)});uf.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{$e(e,t)});mn=new lt,De=new Ii($e,mn)});function df(){let e=null,t=window.fetch,r=()=>{e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let o=`
|
|
2
2
|
html[data-jolibox-root] {
|
|
3
3
|
height: 100%;
|
|
4
4
|
margin: 0;
|
|
@@ -16,8 +16,8 @@ var TS=Object.create;var fn=Object.defineProperty,RS=Object.defineProperties,AS=
|
|
|
16
16
|
min-height: 100dvh;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
`;e.textContent=o;let a=document.head||document.getElementsByTagName("head")[0];a.insertBefore(e,a.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},n=()=>{function o(s){return E(this,null,function*(){let u=s instanceof URL?s.href:s,c=new Promise((d,l)=>{let p=new XMLHttpRequest;p.open("GET",u),p.responseType="arraybuffer",p.addEventListener("load",()=>d(p.response)),p.addEventListener("error",l),p.send()});try{let d=yield c;return new Response(d,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(d){throw console.error("Failed to load wasm:",d),d}})}let a=window.fetch;window.fetch=(s,u)=>{let c=s instanceof URL?s.href:s.toString();return c.endsWith(".wasm")?o(c):a(s,u)}},i=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),document.documentElement.removeAttribute("data-jolibox-root"),window.fetch=r};return t(),n(),i}var tl=R(()=>{"use strict"});var xn,nl=R(()=>{"use strict";xn=class{constructor(r){this.track=r;this.adBreakIsShowing=!1;this.reportPageJumpOut=()=>{this.track("AdBreakJumpOut",{context:"AdsActionDetection"})};this.reportPageHide=()=>{this.track("AdBreakHide",{context:"AdsActionDetection"})};window.addEventListener("visibilitychange",()=>{document.hidden&&this.adBreakIsShowing&&this.reportPageHide()}),window.addEventListener("beforeunload",t=>{this.adBreakIsShowing&&this.reportPageJumpOut()})}}});var En,h0,v0,g0,y0,il=R(()=>{"use strict";P();ea();En=class{constructor(r,t,n,i){this.track=r;this.httpClient=t;this.checkNetwork=n;this.checkAdsDisplayPermission=r=>{if(!this.checkNetwork())return{reason:"NETWORK_NOT_OK"};let t=this.checkShouldBanInitial();if(t)return{reason:t};let n=this.checkShouldBanForSession(r);if(n)return{reason:n};let i=this.checkShouldBanHighFreq(r);if(i)return i;let o=this.checkShouldBanForTime(r);return o?{reason:o}:{reason:"ALLOWED"}};var p,m,h,y,v,g,_;let o=(p=i==null?void 0:i.maxAllowedAdsForTime)!=null?p:8,a=(m=i==null?void 0:i.banForTimeThreshold)!=null?m:6e4,s=(h=i==null?void 0:i.bannedReleaseTime)!=null?h:6e4,u=(y=i==null?void 0:i.maxAllowedAdsForSession)!=null?y:200,c=(v=i==null?void 0:i.banForSessionThreshold)!=null?v:6e5,d=(g=i==null?void 0:i.initialThreshold)!=null?g:2e3,l=(_=i==null?void 0:i.highFreqThreshold)!=null?_:2e3;this.checkShouldBanInitial=g0(d),this.checkShouldBanHighFreq=y0(l),this.checkShouldBanForTime=v0(o,a,s),this.checkShouldBanForSession=h0(u,c)}report(r,t){let n=t?{reason:r,count:t}:{reason:r};this.track("PreventAdsCheating",n),this.httpClient.post("/api/base/app-event",{data:{eventType:"PREVENT_ADS_CHEATING",adsInfo:n}})}},h0=(e,r)=>{let t=!1,n=[];return o=>{if(t)return"BANNED_FOR_SESSION";let a=Date.now();if(n=n.concat({timestamp:a,type:o}),n.length!==1&&(n.length>e&&(n=n.slice(-e)),n.length===e&&a-n[0].timestamp<=r))return t=!0,"BANNED_FOR_SESSION"}},v0=(e,r,t)=>{let n=null,i=d=>{n&&(window.clearTimeout(n),n=null),n=window.setTimeout(()=>{u.value=!1,n=null},d)},o="jolibox-sdk-ads-callbreak-timestamps",a="jolibox-sdk-ads-ban-for-time",s={_records:[],init(){var d;try{let l=JSON.parse((d=window.__joliboxLocalStorage__.getItem(o))!=null?d:"[]");Array.isArray(l)?this._records=l:this._records=[]}catch(l){this._records=[]}},get values(){return this._records},set values(d){try{window.__joliboxLocalStorage__.setItem(o,JSON.stringify(d))}catch(l){}this._records=d}},u={_record:!1,init(){var d;try{let l=JSON.parse((d=window.__joliboxLocalStorage__.getItem(a))!=null?d:"false");typeof l=="boolean"&&(this._record=l)}catch(l){this._record=!1}if(this._record){let l=s.values[s.values.length-1],p=l?Date.now()-l.timestamp:t;p<=t&&p>0?i(p):this._record=!1}},get value(){return this._record},set value(d){try{window.__joliboxLocalStorage__.setItem(a,JSON.stringify(d))}catch(l){}this._record=d}};return s.init(),u.init(),d=>{if(u.value)return"WAITING_BANNED_RELEASE";let l=Date.now();if(s.values=s.values.concat({timestamp:l,type:d}),s.values.length!==1&&(s.values.length>e&&(s.values=s.values.slice(-e)),s.values.length===e&&l-s.values[0].timestamp<=r))return u.value=!0,i(t),"BANNED_FOR_TIME"}},g0=e=>{let r=Date.now();return()=>{if(Date.now()-r<=e)return"BLOCK_INITIAL"}},y0=(e=2e3)=>{let r=0,t=null;return i=>{if(i==="reward"){if(t)return r+=1,{reason:"HOLDING_HIGH_FREQ",info:{count:r}};t=window.setTimeout(()=>{t&&(window.clearTimeout(t),t=0,r=0)},e)}}}});var In,ol=R(()=>{"use strict";ae();In=class{constructor(r){this.httpClient=r;this.configs=null;this.firstRun=!0;this.init()}init(){return E(this,null,function*(){try{this.configs=yield this.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config")}catch(r){}})}shouldBypassCallingInterstitial(){var t,n;let r;if(!this.configs)this.init(),r=!this.firstRun;else{let i=(t=S.channel)!=null?t:"",o=this.configs[i],a=(n=o==null?void 0:o.interstitialRate)!=null?n:1;r=Math.random()<a}return this.firstRun=!1,r}}});var Lr,Tn,da=R(()=>{"use strict";nl();il();ae();ol();P();Lr=new Le,Tn=class{constructor(r,t,n){this.track=r;this.httpClient=t;this.checkNetwork=n;this.configured=!1;this.config={};this.getGameId=()=>S.mpId;this.getTestAdsMode=()=>S.testAdsMode;this.asyncLoad=()=>E(this,null,function*(){var a,s,u,c,d;let r="ca-pub-7171363994453626",t,n,i=window.encodeURIComponent(window.btoa((a=this.getGameId())!=null?a:"")),o=(s=this.getTestAdsMode())!=null?s:!1;try{let l=yield this.httpClient.get("/public/ads",{query:{objectId:i,testAdsMode:`${o}`}});r=(u=l.data)==null?void 0:u.clientId,t=(c=l.data)==null?void 0:c.channelId,n=(d=l.data)==null?void 0:d.unitId}catch(l){console.error("Failed to fetch client info",l)}this.clientId=r,this.channelId=t,this.unitId=n});this.asyncInit=r=>E(this,null,function*(){var i;if(typeof window=="undefined")return;yield this.asyncLoad();let t="google-adsense",n=(i=this.getTestAdsMode())!=null?i:!1;if(!document.getElementById(t)&&this.clientId){let o=document.createElement("script");o.id=t,o.async=!0,o.crossOrigin="anonymous",o.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.clientId}`,n&&o.setAttribute("data-adbreak-test","on"),this.channelId&&o.setAttribute("data-ad-channel",this.channelId),document.head.appendChild(o),this.track("LoadAdsenseCompleted",null)}});this.push=(r={})=>{window.adsbygoogle.push(r)};this.wrapAdBreakParams=r=>{let t=!1,n=r.adBreakDone,i=a=>{var s;t=!0,this.adsActionDetection.adBreakIsShowing=!1,this.track("CallAdBreakDone",{breakType:a.breakType,breakName:(s=a.breakName)!=null?s:"",breakFormat:a.breakFormat,breakStatus:a.breakStatus}),n&&n(a)};if(r.adBreakDone=i,r.type==="reward"){let a=r.beforeReward,s=c=>()=>{this.track("CallShowAdFn",null),c()},u=c=>{t=!0,a&&a(s(c))};r.beforeReward=u,window.setTimeout(()=>{var c,d;t||(this.track("CallAdBreakTimeout",{type:r.type}),(d=r.adBreakDone)==null||d.call(r,{breakType:r.type,breakName:(c=r.name)!=null?c:"",breakFormat:"reward",breakStatus:"timeout"}))},5e3)}if((a=>a.type==="preroll")(r)){Lr.emit("isAdShowing",!0);let a=r.adBreakDone,s=u=>{Lr.emit("isAdShowing",!1),a&&a(u)};return C(T({},r),{adBreakDone:s})}else{let a=r.beforeAd,s=r.afterAd,u=()=>{var d;t=!0,Lr.emit("isAdShowing",!0),this.track("CallBeforeAd",{type:r.type,name:(d=r.name)!=null?d:""}),a&&a()},c=()=>{var d;t=!0,Lr.emit("isAdShowing",!1),this.track("CallAfterAd",{type:r.type,name:(d=r.name)!=null?d:""}),s&&s()};return C(T({},r),{beforeAd:u,afterAd:c})}};this.adConfig=r=>{let i=r,{onReady:t}=i,n=qe(i,["onReady"]);this.track("CallAdConfig",n),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(r))};this.adBreak=r=>{var s,u,c,d,l,p;if(!this.getGameId()){console.warn("Game ID is not set, skip calling adBreak");return}if(r.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(s=r.adBreakDone)==null||s.call(r,{breakType:r.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}let{reason:t,info:n}=this.antiCheating.checkAdsDisplayPermission(r.type==="reward"?"reward":"interstitial");switch(t){case"NETWORK_NOT_OK":case"BANNED_FOR_SESSION":(u=r.adBreakDone)==null||u.call(r,{breakType:r.type,breakName:t,breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"}),this.antiCheating.report(t);return;case"BLOCK_INITIAL":case"BANNED_FOR_TIME":case"WAITING_BANNED_RELEASE":(c=r.adBreakDone)==null||c.call(r,{breakType:r.type,breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"}),this.antiCheating.report(t);return;case"HOLDING_HIGH_FREQ":(l=r.adBreakDone)==null||l.call(r,{breakFormat:r.type==="reward"?"reward":"interstitial",breakName:"",breakStatus:((d=n==null?void 0:n.count)!=null?d:0)>6?"other":"frequencyCapped",breakType:r.type}),n!=null&&n.count&&n.count!==0&&n.count%3===0&&this.antiCheating.report(t,n==null?void 0:n.count);return;default:break}let i=r.type,o;switch(i){case"preroll":o={type:i};break;case"start":case"pause":case"next":case"browse":case"reward":o={type:i,name:(p=r.name)!=null?p:""};break}this.adsActionDetection.adBreakIsShowing=!0,this.track("CallAdBreak",o);let a=this.wrapAdBreakParams(r);this.push(a),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")};this.adUnit=r=>E(this,null,function*(){var p,m,h,y;if(this.track("CallAdUnit",{adFormat:(m=(p=r.adFormat)==null?void 0:p.toString())!=null?m:null,fullWidthResponsive:(h=r.fullWidthResponsive)!=null?h:null}),this.clientId||(yield this.asyncLoad()),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:t,slot:n,adFormat:i,fullWidthResponsive:o,style:a}=r,s;if(!t)throw new Error("targeting element is required");if(typeof t=="string"?s=document.querySelector(t):s=t,!s)throw new Error("targeting element not found");let u=n;if(u||(u=this.unitId),!u)throw new Error("slot is required");let c=typeof i=="object"&&Array.isArray(i)?i.join(", "):i,d=document.createElement("ins");if(d.className="adsbygoogle",d.id="jolibox-ads",d.style.display="block",d.setAttribute("data-ad-client",this.clientId),d.setAttribute("data-ad-slot",u),c&&d.setAttribute("data-ad-format",c),o&&d.setAttribute("data-full-width-responsive",o),a&&d.setAttribute("style",a),(y=this.getTestAdsMode())!=null?y:!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",d.style.position="relative",s.appendChild(d),d.appendChild(v)}else s.appendChild(d),new MutationObserver(g=>{g.forEach(_=>{if(_.type==="attributes"&&_.attributeName==="data-ad-status"){let x=d.getAttribute("data-ad-status");this.track("AdSenseUnitStatusChanged",{status:x!=null?x:"null"})}})}).observe(d,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})});this.antiCheating=new En(r,t,n),this.adsActionDetection=new xn(this.track),this.channelPolicy=new In(t)}init(r){this.track("CallAdsInit",null),typeof window!="undefined"&&(this.config=r!=null?r:{},window.adsbygoogle=window.adsbygoogle||[],this.asyncInit(r))}}});function Je(e,r){for(var t in r)e[t]=r[t];return e}function ha(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function We(e,r,t){var n,i,o,a={};for(o in r)o=="key"?n=r[o]:o=="ref"?i=r[o]:a[o]=r[o];if(arguments.length>2&&(a.children=arguments.length>3?kn.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return An(e,a,n,i,null)}function An(e,r,t,n,i){var o={type:e,props:r,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++ll:i,__i:-1,__u:0};return i==null&&k.vnode!=null&&k.vnode(o),o}function ar(e){return e.children}function je(e,r){this.props=e,this.context=r}function Fr(e,r){if(r==null)return e.__?Fr(e.__,e.__i+1):null;for(var t;r<e.__k.length;r++)if((t=e.__k[r])!=null&&t.__e!=null)return t.__e;return typeof e.type=="function"?Fr(e):null}function hl(e){var r,t;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,r=0;r<e.__k.length;r++)if((t=e.__k[r])!=null&&t.__e!=null){e.__e=e.__c.base=t.__e;break}return hl(e)}}function sl(e){(!e.__d&&(e.__d=!0)&&br.push(e)&&!qn.__r++||al!==k.debounceRendering)&&((al=k.debounceRendering)||dl)(qn)}function qn(){for(var e,r,t,n,i,o,a,s=1;br.length;)br.length>s&&br.sort(fl),e=br.shift(),s=br.length,e.__d&&(t=void 0,i=(n=(r=e).__v).__e,o=[],a=[],r.__P&&((t=Je({},n)).__v=n.__v+1,k.vnode&&k.vnode(t),va(r.__P,t,n,r.__n,r.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Fr(n):i,!!(32&n.__u),a),t.__v=n.__v,t.__.__k[t.__i]=t,yl(o,t,a),t.__e!=i&&hl(t)));qn.__r=0}function vl(e,r,t,n,i,o,a,s,u,c,d){var l,p,m,h,y,v,g=n&&n.__k||ml,_=r.length;for(u=S0(t,r,g,u,_),l=0;l<_;l++)(m=t.__k[l])!=null&&(p=m.__i===-1?xt:g[m.__i]||xt,m.__i=l,v=va(e,m,p,i,o,a,s,u,c,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&ga(p.ref,null,m),d.push(m.ref,m.__c||h,m)),y==null&&h!=null&&(y=h),4&m.__u||p.__k===m.__k?u=gl(m,u,e):typeof m.type=="function"&&v!==void 0?u=v:h&&(u=h.nextSibling),m.__u&=-7);return t.__e=y,u}function S0(e,r,t,n,i){var o,a,s,u,c,d=t.length,l=d,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=r[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(u=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?An(null,a,null,null,null):Et(a)?An(ar,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?An(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=x0(a,t,u,l))!==-1&&(l--,(s=t[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!=u&&(c==u-1?p--:c==u+1?p++:(c>u?p--:p++,a.__u|=4))):e.__k[o]=null;if(l)for(o=0;o<d;o++)(s=t[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=Fr(s)),bl(s,s));return n}function gl(e,r,t){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,r=gl(n[i],r,t));return r}e.__e!=r&&(r&&e.type&&!t.contains(r)&&(r=Fr(e)),t.insertBefore(e.__e,r||null),r=e.__e);do r=r&&r.nextSibling;while(r!=null&&r.nodeType==8);return r}function It(e,r){return r=r||[],e==null||typeof e=="boolean"||(Et(e)?e.some(function(t){It(t,r)}):r.push(e)),r}function x0(e,r,t,n){var i,o,a=e.key,s=e.type,u=r[t];if(u===null&&e.key==null||u&&a==u.key&&s===u.type&&!(2&u.__u))return t;if(n>(u!=null&&!(2&u.__u)?1:0))for(i=t-1,o=t+1;i>=0||o<r.length;){if(i>=0){if((u=r[i])&&!(2&u.__u)&&a==u.key&&s===u.type)return i;i--}if(o<r.length){if((u=r[o])&&!(2&u.__u)&&a==u.key&&s===u.type)return o;o++}}return-1}function ul(e,r,t){r[0]=="-"?e.setProperty(r,t==null?"":t):e[r]=t==null?"":typeof t!="number"||w0.test(r)?t:t+"px"}function Rn(e,r,t,n,i){var o;e:if(r=="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(r in n)t&&r in t||ul(e.style,r,"");if(t)for(r in t)n&&t[r]===n[r]||ul(e.style,r,t[r])}else if(r[0]=="o"&&r[1]=="n")o=r!=(r=r.replace(pl,"$1")),r=r.toLowerCase()in e||r=="onFocusOut"||r=="onFocusIn"?r.toLowerCase().slice(2):r.slice(2),e.l||(e.l={}),e.l[r+o]=t,t?n?t.t=n.t:(t.t=ma,e.addEventListener(r,o?pa:fa,o)):e.removeEventListener(r,o?pa:fa,o);else{if(i=="http://www.w3.org/2000/svg")r=r.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(r!="width"&&r!="height"&&r!="href"&&r!="list"&&r!="form"&&r!="tabIndex"&&r!="download"&&r!="rowSpan"&&r!="colSpan"&&r!="role"&&r!="popover"&&r in e)try{e[r]=t==null?"":t;break e}catch(a){}typeof t=="function"||(t==null||t===!1&&r[4]!="-"?e.removeAttribute(r):e.setAttribute(r,r=="popover"&&t==1?"":t))}}function cl(e){return function(r){if(this.l){var t=this.l[r.type+e];if(r.u==null)r.u=ma++;else if(r.u<t.t)return;return t(k.event?k.event(r):r)}}}function va(e,r,t,n,i,o,a,s,u,c){var d,l,p,m,h,y,v,g,_,x,q,V,I,w,K,Ee,Cr,Ie=r.type;if(r.constructor!==void 0)return null;128&t.__u&&(u=!!(32&t.__u),o=[s=r.__e=t.__e]),(d=k.__b)&&d(r);e:if(typeof Ie=="function")try{if(g=r.props,_="prototype"in Ie&&Ie.prototype.render,x=(d=Ie.contextType)&&n[d.__c],q=d?x?x.props.value:d.__:n,t.__c?v=(l=r.__c=t.__c).__=l.__E:(_?r.__c=l=new Ie(g,q):(r.__c=l=new je(g,q),l.constructor=Ie,l.render=I0),x&&x.sub(l),l.props=g,l.state||(l.state={}),l.context=q,l.__n=n,p=l.__d=!0,l.__h=[],l._sb=[]),_&&l.__s==null&&(l.__s=l.state),_&&Ie.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Je({},l.__s)),Je(l.__s,Ie.getDerivedStateFromProps(g,l.__s))),m=l.props,h=l.state,l.__v=r,p)_&&Ie.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),_&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(_&&Ie.getDerivedStateFromProps==null&&g!==m&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,q),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,q)===!1||r.__v==t.__v)){for(r.__v!=t.__v&&(l.props=g,l.state=l.__s,l.__d=!1),r.__e=t.__e,r.__k=t.__k,r.__k.some(function(gr){gr&&(gr.__=r)}),V=0;V<l._sb.length;V++)l.__h.push(l._sb[V]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,q),_&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(m,h,y)})}if(l.context=q,l.props=g,l.__P=e,l.__e=!1,I=k.__r,w=0,_){for(l.state=l.__s,l.__d=!1,I&&I(r),d=l.render(l.props,l.state,l.context),K=0;K<l._sb.length;K++)l.__h.push(l._sb[K]);l._sb=[]}else do l.__d=!1,I&&I(r),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++w<25);l.state=l.__s,l.getChildContext!=null&&(n=Je(Je({},n),l.getChildContext())),_&&!p&&l.getSnapshotBeforeUpdate!=null&&(y=l.getSnapshotBeforeUpdate(m,h)),Ee=d,d!=null&&d.type===ar&&d.key==null&&(Ee=_l(d.props.children)),s=vl(e,Et(Ee)?Ee:[Ee],r,t,n,i,o,a,s,u,c),l.base=r.__e,r.__u&=-161,l.__h.length&&a.push(l),v&&(l.__E=l.__=null)}catch(gr){if(r.__v=null,u||o!=null)if(gr.then){for(r.__u|=u?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,r.__e=s}else for(Cr=o.length;Cr--;)ha(o[Cr]);else r.__e=t.__e,r.__k=t.__k;k.__e(gr,r,t)}else o==null&&r.__v==t.__v?(r.__k=t.__k,r.__e=t.__e):s=r.__e=E0(t.__e,r,t,n,i,o,a,u,c);return(d=k.diffed)&&d(r),128&r.__u?void 0:s}function yl(e,r,t){for(var n=0;n<t.length;n++)ga(t[n],t[++n],t[++n]);k.__c&&k.__c(r,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){k.__e(o,i.__v)}})}function _l(e){return typeof e!="object"||e==null?e:Et(e)?e.map(_l):Je({},e)}function E0(e,r,t,n,i,o,a,s,u){var c,d,l,p,m,h,y,v=t.props,g=r.props,_=r.type;if(_=="svg"?i="http://www.w3.org/2000/svg":_=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((m=o[c])&&"setAttribute"in m==!!_&&(_?m.localName==_:m.nodeType==3)){e=m,o[c]=null;break}}if(e==null){if(_==null)return document.createTextNode(g);e=document.createElementNS(i,_,g.is&&g),s&&(k.__m&&k.__m(r,o),s=!1),o=null}if(_===null)v===g||s&&e.data===g||(e.data=g);else{if(o=o&&kn.call(e.childNodes),v=t.props||xt,!s&&o!=null)for(v={},c=0;c<e.attributes.length;c++)v[(m=e.attributes[c]).name]=m.value;for(c in v)if(m=v[c],c!="children"){if(c=="dangerouslySetInnerHTML")l=m;else if(!(c in g)){if(c=="value"&&"defaultValue"in g||c=="checked"&&"defaultChecked"in g)continue;Rn(e,c,null,m,i)}}for(c in g)m=g[c],c=="children"?p=m:c=="dangerouslySetInnerHTML"?d=m:c=="value"?h=m:c=="checked"?y=m:s&&typeof m!="function"||v[c]===m||Rn(e,c,m,v[c],i);if(d)s||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),r.__k=[];else if(l&&(e.innerHTML=""),vl(r.type==="template"?e.content:e,Et(p)?p:[p],r,t,n,_=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:t.__k&&Fr(t,0),s,u),o!=null)for(c=o.length;c--;)ha(o[c]);s||(c="value",_=="progress"&&h==null?e.removeAttribute("value"):h!==void 0&&(h!==e[c]||_=="progress"&&!h||_=="option"&&h!==v[c])&&Rn(e,c,h,v[c],i),c="checked",y!==void 0&&y!==e[c]&&Rn(e,c,y,v[c],i))}return e}function ga(e,r,t){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&r==null||(e.__u=e(r))}else e.current=r}catch(i){k.__e(i,t)}}function bl(e,r,t){var n,i;if(k.unmount&&k.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||ga(n,null,r)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){k.__e(o,r)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&bl(n[i],r,t||typeof e.type!="function");t||ha(e.__e),e.__c=e.__=e.__e=void 0}function I0(e,r,t){return this.constructor(e,t)}function Tt(e,r,t){var n,i,o,a;r==document&&(r=document.documentElement),k.__&&k.__(e,r),i=(n=typeof t=="function")?null:t&&t.__k||r.__k,o=[],a=[],va(r,e=(!n&&t||r).__k=We(ar,null,[e]),i||xt,xt,r.namespaceURI,!n&&t?[t]:i?null:r.firstChild?kn.call(r.childNodes):null,o,!n&&t?t:i?i.__e:r.firstChild,n,a),yl(o,e,a)}var kn,k,ll,_0,br,al,dl,fl,pl,ma,fa,pa,b0,xt,ml,w0,Et,wl=R(()=>{xt={},ml=[],w0=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Et=Array.isArray;kn=ml.slice,k={__e:function(e,r,t,n){for(var i,o,a;r=r.__;)if((i=r.__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}},ll=0,_0=function(e){return e!=null&&e.constructor==null},je.prototype.setState=function(e,r){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Je({},this.state),typeof e=="function"&&(e=e(Je({},t),this.props)),e&&Je(t,e),e!=null&&this.__v&&(r&&this._sb.push(r),sl(this))},je.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),sl(this))},je.prototype.render=ar,br=[],dl=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,fl=function(e,r){return e.__v.__b-r.__v.__b},qn.__r=0,pl=/(PointerCapture)$|Capture$/i,ma=0,fa=cl(!1),pa=cl(!0),b0=0});var j=f((vM,Sl)=>{"use strict";Sl.exports=function(e){try{return!!e()}catch(r){return!0}}});var jr=f((gM,xl)=>{"use strict";var T0=j();xl.exports=!T0(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var U=f((yM,Tl)=>{"use strict";var El=jr(),Il=Function.prototype,ya=Il.call,R0=El&&Il.bind.bind(ya,ya);Tl.exports=El?R0:function(e){return function(){return ya.apply(e,arguments)}}});var te=f((_M,Rl)=>{"use strict";var A0=U();Rl.exports=A0({}.isPrototypeOf)});var G=f((_a,Al)=>{"use strict";var Rt=function(e){return e&&e.Math===Math&&e};Al.exports=Rt(typeof globalThis=="object"&&globalThis)||Rt(typeof window=="object"&&window)||Rt(typeof self=="object"&&self)||Rt(typeof global=="object"&&global)||Rt(typeof _a=="object"&&_a)||function(){return this}()||Function("return this")()});var On=f((bM,Pl)=>{"use strict";var q0=jr(),Ol=Function.prototype,ql=Ol.apply,kl=Ol.call;Pl.exports=typeof Reflect=="object"&&Reflect.apply||(q0?kl.bind(ql):function(){return kl.apply(ql,arguments)})});var Ue=f((wM,Nl)=>{"use strict";var Cl=U(),k0=Cl({}.toString),O0=Cl("".slice);Nl.exports=function(e){return O0(k0(e),8,-1)}});var At=f((SM,Dl)=>{"use strict";var P0=Ue(),C0=U();Dl.exports=function(e){if(P0(e)==="Function")return C0(e)}});var Z=f((xM,Ll)=>{"use strict";var ba=typeof document=="object"&&document.all;Ll.exports=typeof ba=="undefined"&&ba!==void 0?function(e){return typeof e=="function"||e===ba}:function(e){return typeof e=="function"}});var ne=f((EM,Fl)=>{"use strict";var N0=j();Fl.exports=!N0(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Te=f((IM,jl)=>{"use strict";var D0=jr(),Pn=Function.prototype.call;jl.exports=D0?Pn.bind(Pn):function(){return Pn.apply(Pn,arguments)}});var Cn=f(Bl=>{"use strict";var Ul={}.propertyIsEnumerable,Ml=Object.getOwnPropertyDescriptor,L0=Ml&&!Ul.call({1:2},1);Bl.f=L0?function(r){var t=Ml(this,r);return!!t&&t.enumerable}:Ul});var Ur=f((RM,$l)=>{"use strict";$l.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var Nn=f((AM,Hl)=>{"use strict";var F0=U(),j0=j(),U0=Ue(),wa=Object,M0=F0("".split);Hl.exports=j0(function(){return!wa("z").propertyIsEnumerable(0)})?function(e){return U0(e)==="String"?M0(e,""):wa(e)}:wa});var wr=f((qM,Kl)=>{"use strict";Kl.exports=function(e){return e==null}});var sr=f((kM,Gl)=>{"use strict";var B0=wr(),$0=TypeError;Gl.exports=function(e){if(B0(e))throw new $0("Can't call method on "+e);return e}});var ze=f((OM,Vl)=>{"use strict";var H0=Nn(),K0=sr();Vl.exports=function(e){return H0(K0(e))}});var ee=f((PM,Jl)=>{"use strict";var G0=Z();Jl.exports=function(e){return typeof e=="object"?e!==null:G0(e)}});var ge=f((CM,Wl)=>{"use strict";Wl.exports={}});var Me=f((NM,Yl)=>{"use strict";var Sa=ge(),xa=G(),V0=Z(),zl=function(e){return V0(e)?e:void 0};Yl.exports=function(e,r){return arguments.length<2?zl(Sa[e])||zl(xa[e]):Sa[e]&&Sa[e][r]||xa[e]&&xa[e][r]}});var Dn=f((DM,Zl)=>{"use strict";var J0=G(),Ql=J0.navigator,Xl=Ql&&Ql.userAgent;Zl.exports=Xl?String(Xl):""});var Fn=f((LM,od)=>{"use strict";var id=G(),Ea=Dn(),ed=id.process,rd=id.Deno,td=ed&&ed.versions||rd&&rd.version,nd=td&&td.v8,Oe,Ln;nd&&(Oe=nd.split("."),Ln=Oe[0]>0&&Oe[0]<4?1:+(Oe[0]+Oe[1]));!Ln&&Ea&&(Oe=Ea.match(/Edge\/(\d+)/),(!Oe||Oe[1]>=74)&&(Oe=Ea.match(/Chrome\/(\d+)/),Oe&&(Ln=+Oe[1])));od.exports=Ln});var Sr=f((FM,sd)=>{"use strict";var ad=Fn(),W0=j(),z0=G(),Y0=z0.String;sd.exports=!!Object.getOwnPropertySymbols&&!W0(function(){var e=Symbol("symbol detection");return!Y0(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ad&&ad<41})});var Ia=f((jM,ud)=>{"use strict";var Q0=Sr();ud.exports=Q0&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var qt=f((UM,cd)=>{"use strict";var X0=Me(),Z0=Z(),eE=te(),rE=Ia(),tE=Object;cd.exports=rE?function(e){return typeof e=="symbol"}:function(e){var r=X0("Symbol");return Z0(r)&&eE(r.prototype,tE(e))}});var Mr=f((MM,ld)=>{"use strict";var nE=String;ld.exports=function(e){try{return nE(e)}catch(r){return"Object"}}});var xr=f((BM,dd)=>{"use strict";var iE=Z(),oE=Mr(),aE=TypeError;dd.exports=function(e){if(iE(e))return e;throw new aE(oE(e)+" is not a function")}});var jn=f(($M,fd)=>{"use strict";var sE=xr(),uE=wr();fd.exports=function(e,r){var t=e[r];return uE(t)?void 0:sE(t)}});var md=f((HM,pd)=>{"use strict";var Ta=Te(),Ra=Z(),Aa=ee(),cE=TypeError;pd.exports=function(e,r){var t,n;if(r==="string"&&Ra(t=e.toString)&&!Aa(n=Ta(t,e))||Ra(t=e.valueOf)&&!Aa(n=Ta(t,e))||r!=="string"&&Ra(t=e.toString)&&!Aa(n=Ta(t,e)))return n;throw new cE("Can't convert object to primitive value")}});var ur=f((KM,hd)=>{"use strict";hd.exports=!0});var yd=f((GM,gd)=>{"use strict";var vd=G(),lE=Object.defineProperty;gd.exports=function(e,r){try{lE(vd,e,{value:r,configurable:!0,writable:!0})}catch(t){vd[e]=r}return r}});var kt=f((VM,wd)=>{"use strict";var dE=ur(),fE=G(),pE=yd(),_d="__core-js_shared__",bd=wd.exports=fE[_d]||pE(_d,{});(bd.versions||(bd.versions=[])).push({version:"3.41.0",mode:dE?"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 Br=f((JM,xd)=>{"use strict";var Sd=kt();xd.exports=function(e,r){return Sd[e]||(Sd[e]=r||{})}});var cr=f((WM,Ed)=>{"use strict";var mE=sr(),hE=Object;Ed.exports=function(e){return hE(mE(e))}});var se=f((zM,Id)=>{"use strict";var vE=U(),gE=cr(),yE=vE({}.hasOwnProperty);Id.exports=Object.hasOwn||function(r,t){return yE(gE(r),t)}});var Ot=f((YM,Td)=>{"use strict";var _E=U(),bE=0,wE=Math.random(),SE=_E(1 .toString);Td.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+SE(++bE+wE,36)}});var re=f((QM,Ad)=>{"use strict";var xE=G(),EE=Br(),Rd=se(),IE=Ot(),TE=Sr(),RE=Ia(),$r=xE.Symbol,qa=EE("wks"),AE=RE?$r.for||$r:$r&&$r.withoutSetter||IE;Ad.exports=function(e){return Rd(qa,e)||(qa[e]=TE&&Rd($r,e)?$r[e]:AE("Symbol."+e)),qa[e]}});var Pd=f((XM,Od)=>{"use strict";var qE=Te(),qd=ee(),kd=qt(),kE=jn(),OE=md(),PE=re(),CE=TypeError,NE=PE("toPrimitive");Od.exports=function(e,r){if(!qd(e)||kd(e))return e;var t=kE(e,NE),n;if(t){if(r===void 0&&(r="default"),n=qE(t,e,r),!qd(n)||kd(n))return n;throw new CE("Can't convert object to primitive value")}return r===void 0&&(r="number"),OE(e,r)}});var Un=f((ZM,Cd)=>{"use strict";var DE=Pd(),LE=qt();Cd.exports=function(e){var r=DE(e,"string");return LE(r)?r:r+""}});var Oa=f((eB,Dd)=>{"use strict";var FE=G(),Nd=ee(),ka=FE.document,jE=Nd(ka)&&Nd(ka.createElement);Dd.exports=function(e){return jE?ka.createElement(e):{}}});var Pa=f((rB,Ld)=>{"use strict";var UE=ne(),ME=j(),BE=Oa();Ld.exports=!UE&&!ME(function(){return Object.defineProperty(BE("div"),"a",{get:function(){return 7}}).a!==7})});var Mn=f(jd=>{"use strict";var $E=ne(),HE=Te(),KE=Cn(),GE=Ur(),VE=ze(),JE=Un(),WE=se(),zE=Pa(),Fd=Object.getOwnPropertyDescriptor;jd.f=$E?Fd:function(r,t){if(r=VE(r),t=JE(t),zE)try{return Fd(r,t)}catch(n){}if(WE(r,t))return GE(!HE(KE.f,r,t),r[t])}});var Md=f((nB,Ud)=>{"use strict";var YE=j(),QE=Z(),XE=/#|\.prototype\./,Pt=function(e,r){var t=eI[ZE(e)];return t===tI?!0:t===rI?!1:QE(r)?YE(r):!!r},ZE=Pt.normalize=function(e){return String(e).replace(XE,".").toLowerCase()},eI=Pt.data={},rI=Pt.NATIVE="N",tI=Pt.POLYFILL="P";Ud.exports=Pt});var Ct=f((iB,$d)=>{"use strict";var Bd=At(),nI=xr(),iI=jr(),oI=Bd(Bd.bind);$d.exports=function(e,r){return nI(e),r===void 0?e:iI?oI(e,r):function(){return e.apply(r,arguments)}}});var Ca=f((oB,Hd)=>{"use strict";var aI=ne(),sI=j();Hd.exports=aI&&sI(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Ye=f((aB,Kd)=>{"use strict";var uI=ee(),cI=String,lI=TypeError;Kd.exports=function(e){if(uI(e))return e;throw new lI(cI(e)+" is not an object")}});var Re=f(Vd=>{"use strict";var dI=ne(),fI=Pa(),pI=Ca(),Bn=Ye(),Gd=Un(),mI=TypeError,Na=Object.defineProperty,hI=Object.getOwnPropertyDescriptor,Da="enumerable",La="configurable",Fa="writable";Vd.f=dI?pI?function(r,t,n){if(Bn(r),t=Gd(t),Bn(n),typeof r=="function"&&t==="prototype"&&"value"in n&&Fa in n&&!n[Fa]){var i=hI(r,t);i&&i[Fa]&&(r[t]=n.value,n={configurable:La in n?n[La]:i[La],enumerable:Da in n?n[Da]:i[Da],writable:!1})}return Na(r,t,n)}:Na:function(r,t,n){if(Bn(r),t=Gd(t),Bn(n),fI)try{return Na(r,t,n)}catch(i){}if("get"in n||"set"in n)throw new mI("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var Er=f((uB,Jd)=>{"use strict";var vI=ne(),gI=Re(),yI=Ur();Jd.exports=vI?function(e,r,t){return gI.f(e,r,yI(1,t))}:function(e,r,t){return e[r]=t,e}});var L=f((cB,zd)=>{"use strict";var Nt=G(),_I=On(),bI=At(),wI=Z(),SI=Mn().f,xI=Md(),Hr=ge(),EI=Ct(),Kr=Er(),Wd=se();kt();var II=function(e){var r=function(t,n,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return _I(e,this,arguments)};return r.prototype=e.prototype,r};zd.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Nt:i?Nt[t]:Nt[t]&&Nt[t].prototype,s=n?Hr:Hr[t]||Kr(Hr,t,{})[t],u=s.prototype,c,d,l,p,m,h,y,v,g;for(p in r)c=xI(n?p:t+(i?".":"#")+p,e.forced),d=!c&&a&&Wd(a,p),h=s[p],d&&(e.dontCallGetSet?(g=SI(a,p),y=g&&g.value):y=a[p]),m=d&&y?y:r[p],!(!c&&!o&&typeof h==typeof m)&&(e.bind&&d?v=EI(m,Nt):e.wrap&&d?v=II(m):o&&wI(m)?v=bI(m):v=m,(e.sham||m&&m.sham||h&&h.sham)&&Kr(v,"sham",!0),Kr(s,p,v),o&&(l=t+"Prototype",Wd(Hr,l)||Kr(Hr,l,{}),Kr(Hr[l],p,m),e.real&&u&&(c||!u[p])&&Kr(u,p,m)))}});var Qd=f((lB,Yd)=>{"use strict";var TI=Math.ceil,RI=Math.floor;Yd.exports=Math.trunc||function(r){var t=+r;return(t>0?RI:TI)(t)}});var Dt=f((dB,Xd)=>{"use strict";var AI=Qd();Xd.exports=function(e){var r=+e;return r!==r||r===0?0:AI(r)}});var ja=f((fB,Zd)=>{"use strict";var qI=Dt(),kI=Math.min;Zd.exports=function(e){var r=qI(e);return r>0?kI(r,9007199254740991):0}});var Ir=f((pB,ef)=>{"use strict";var OI=ja();ef.exports=function(e){return OI(e.length)}});var lr=f((mB,rf)=>{"use strict";var PI=Ue();rf.exports=Array.isArray||function(r){return PI(r)==="Array"}});var $n=f((hB,nf)=>{"use strict";var CI=re(),NI=CI("toStringTag"),tf={};tf[NI]="z";nf.exports=String(tf)==="[object z]"});var Gr=f((vB,of)=>{"use strict";var DI=$n(),LI=Z(),Hn=Ue(),FI=re(),jI=FI("toStringTag"),UI=Object,MI=Hn(function(){return arguments}())==="Arguments",BI=function(e,r){try{return e[r]}catch(t){}};of.exports=DI?Hn:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=BI(r=UI(e),jI))=="string"?t:MI?Hn(r):(n=Hn(r))==="Object"&&LI(r.callee)?"Arguments":n}});var sf=f((gB,af)=>{"use strict";var $I=U(),HI=Z(),Ua=kt(),KI=$I(Function.toString);HI(Ua.inspectSource)||(Ua.inspectSource=function(e){return KI(e)});af.exports=Ua.inspectSource});var Ba=f((yB,ff)=>{"use strict";var GI=U(),VI=j(),uf=Z(),JI=Gr(),WI=Me(),zI=sf(),cf=function(){},lf=WI("Reflect","construct"),Ma=/^\s*(?:class|function)\b/,YI=GI(Ma.exec),QI=!Ma.test(cf),Lt=function(r){if(!uf(r))return!1;try{return lf(cf,[],r),!0}catch(t){return!1}},df=function(r){if(!uf(r))return!1;switch(JI(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return QI||!!YI(Ma,zI(r))}catch(t){return!0}};df.sham=!0;ff.exports=!lf||VI(function(){var e;return Lt(Lt.call)||!Lt(Object)||!Lt(function(){e=!0})||e})?df:Lt});var vf=f((_B,hf)=>{"use strict";var pf=lr(),XI=Ba(),ZI=ee(),eT=re(),rT=eT("species"),mf=Array;hf.exports=function(e){var r;return pf(e)&&(r=e.constructor,XI(r)&&(r===mf||pf(r.prototype))?r=void 0:ZI(r)&&(r=r[rT],r===null&&(r=void 0))),r===void 0?mf:r}});var Kn=f((bB,gf)=>{"use strict";var tT=vf();gf.exports=function(e,r){return new(tT(e))(r===0?0:r)}});var Qe=f((wB,_f)=>{"use strict";var nT=Ct(),iT=U(),oT=Nn(),aT=cr(),sT=Ir(),uT=Kn(),yf=iT([].push),dr=function(e){var r=e===1,t=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(u,c,d,l){for(var p=aT(u),m=oT(p),h=sT(m),y=nT(c,d),v=0,g=l||uT,_=r?g(u,h):t||a?g(u,0):void 0,x,q;h>v;v++)if((s||v in m)&&(x=m[v],q=y(x,v,p),e))if(r)_[v]=q;else if(q)switch(e){case 3:return!0;case 5:return x;case 6:return v;case 2:yf(_,x)}else switch(e){case 4:return!1;case 7:yf(_,x)}return o?-1:n||i?i:_}};_f.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 Vr=f((SB,bf)=>{"use strict";var cT=j(),lT=re(),dT=Fn(),fT=lT("species");bf.exports=function(e){return dT>=51||!cT(function(){var r=[],t=r.constructor={};return t[fT]=function(){return{foo:1}},r[e](Boolean).foo!==1})}});var wf=f(()=>{"use strict";var pT=L(),mT=Qe().filter,hT=Vr(),vT=hT("filter");pT({target:"Array",proto:!0,forced:!vT},{filter:function(r){return mT(this,r,arguments.length>1?arguments[1]:void 0)}})});var ye=f((IB,Sf)=>{"use strict";var gT=G(),yT=ge();Sf.exports=function(e,r){var t=yT[e+"Prototype"],n=t&&t[r];if(n)return n;var i=gT[e],o=i&&i.prototype;return o&&o[r]}});var Ef=f((TB,xf)=>{"use strict";wf();var _T=ye();xf.exports=_T("Array","filter")});var Tf=f((RB,If)=>{"use strict";var bT=te(),wT=Ef(),$a=Array.prototype;If.exports=function(e){var r=e.filter;return e===$a||bT($a,e)&&r===$a.filter?wT:r}});var Af=f((AB,Rf)=>{"use strict";var ST=Tf();Rf.exports=ST});var kf=f((qB,qf)=>{qf.exports=Af()});var Ft=f((kB,Of)=>{"use strict";var xT=j();Of.exports=function(e,r){var t=[][e];return!!t&&xT(function(){t.call(null,r||function(){return 1},1)})}});var Pf=f(()=>{"use strict";var ET=L(),IT=Qe().every,TT=Ft(),RT=TT("every");ET({target:"Array",proto:!0,forced:!RT},{every:function(r){return IT(this,r,arguments.length>1?arguments[1]:void 0)}})});var Nf=f((CB,Cf)=>{"use strict";Pf();var AT=ye();Cf.exports=AT("Array","every")});var Lf=f((NB,Df)=>{"use strict";var qT=te(),kT=Nf(),Ha=Array.prototype;Df.exports=function(e){var r=e.every;return e===Ha||qT(Ha,e)&&r===Ha.every?kT:r}});var jf=f((DB,Ff)=>{"use strict";var OT=Lf();Ff.exports=OT});var Mf=f((LB,Uf)=>{Uf.exports=jf()});var $f=f((FB,Bf)=>{"use strict";var PT=Qe().forEach,CT=Ft(),NT=CT("forEach");Bf.exports=NT?[].forEach:function(r){return PT(this,r,arguments.length>1?arguments[1]:void 0)}});var Kf=f(()=>{"use strict";var DT=L(),Hf=$f();DT({target:"Array",proto:!0,forced:[].forEach!==Hf},{forEach:Hf})});var Vf=f((MB,Gf)=>{"use strict";Kf();var LT=ye();Gf.exports=LT("Array","forEach")});var Wf=f((BB,Jf)=>{"use strict";var FT=Vf();Jf.exports=FT});var zf=f(()=>{});var Qf=f((KB,Yf)=>{"use strict";var jT=Gr(),UT=se(),MT=te(),BT=Wf();zf();var Ka=Array.prototype,$T={DOMTokenList:!0,NodeList:!0};Yf.exports=function(e){var r=e.forEach;return e===Ka||MT(Ka,e)&&r===Ka.forEach||UT($T,jT(e))?BT:r}});var Zf=f((GB,Xf)=>{Xf.exports=Qf()});var Ga=f((VB,ep)=>{"use strict";var HT=TypeError,KT=9007199254740991;ep.exports=function(e){if(e>KT)throw HT("Maximum allowed index exceeded");return e}});var Gn=f((JB,rp)=>{"use strict";var GT=ne(),VT=Re(),JT=Ur();rp.exports=function(e,r,t){GT?VT.f(e,r,JT(0,t)):e[r]=t}});var Va=f(()=>{"use strict";var WT=L(),zT=j(),YT=lr(),QT=ee(),XT=cr(),ZT=Ir(),tp=Ga(),np=Gn(),eR=Kn(),rR=Vr(),tR=re(),nR=Fn(),ip=tR("isConcatSpreadable"),iR=nR>=51||!zT(function(){var e=[];return e[ip]=!1,e.concat()[0]!==e}),oR=function(e){if(!QT(e))return!1;var r=e[ip];return r!==void 0?!!r:YT(e)},aR=!iR||!rR("concat");WT({target:"Array",proto:!0,arity:1,forced:aR},{concat:function(r){var t=XT(this),n=eR(t,0),i=0,o,a,s,u,c;for(o=-1,s=arguments.length;o<s;o++)if(c=o===-1?t:arguments[o],oR(c))for(u=ZT(c),tp(i+u),a=0;a<u;a++,i++)a in c&&np(n,i,c[a]);else tp(i+1),np(n,i++,c);return n.length=i,n}})});var ap=f((YB,op)=>{"use strict";Va();var sR=ye();op.exports=sR("Array","concat")});var up=f((QB,sp)=>{"use strict";var uR=te(),cR=ap(),Ja=Array.prototype;sp.exports=function(e){var r=e.concat;return e===Ja||uR(Ja,e)&&r===Ja.concat?cR:r}});var lp=f((XB,cp)=>{"use strict";var lR=up();cp.exports=lR});var fp=f((ZB,dp)=>{dp.exports=lp()});var pp=f(()=>{"use strict";var dR=L(),fR=Qe().some,pR=Ft(),mR=pR("some");dR({target:"Array",proto:!0,forced:!mR},{some:function(r){return fR(this,r,arguments.length>1?arguments[1]:void 0)}})});var hp=f((t$,mp)=>{"use strict";pp();var hR=ye();mp.exports=hR("Array","some")});var gp=f((n$,vp)=>{"use strict";var vR=te(),gR=hp(),Wa=Array.prototype;vp.exports=function(e){var r=e.some;return e===Wa||vR(Wa,e)&&r===Wa.some?gR:r}});var _p=f((i$,yp)=>{"use strict";var yR=gp();yp.exports=yR});var wp=f((o$,bp)=>{bp.exports=_p()});var xp=f((a$,Sp)=>{"use strict";var jt=G(),_R=Dn(),bR=Ue(),Vn=function(e){return _R.slice(0,e.length)===e};Sp.exports=function(){return Vn("Bun/")?"BUN":Vn("Cloudflare-Workers")?"CLOUDFLARE":Vn("Deno/")?"DENO":Vn("Node.js/")?"NODE":jt.Bun&&typeof Bun.version=="string"?"BUN":jt.Deno&&typeof Deno.version=="object"?"DENO":bR(jt.process)==="process"?"NODE":jt.window&&jt.document?"BROWSER":"REST"}()});var Jr=f((s$,Ep)=>{"use strict";var wR=U();Ep.exports=wR([].slice)});var Tp=f((u$,Ip)=>{"use strict";var SR=TypeError;Ip.exports=function(e,r){if(e<r)throw new SR("Not enough arguments");return e}});var za=f((c$,Ap)=>{"use strict";var Rp=G(),xR=On(),ER=Z(),IR=xp(),TR=Dn(),RR=Jr(),AR=Tp(),qR=Rp.Function,kR=/MSIE .\./.test(TR)||IR==="BUN"&&function(){var e=Rp.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();Ap.exports=function(e,r){var t=r?2:1;return kR?function(n,i){var o=AR(arguments.length,1)>t,a=ER(n)?n:qR(n),s=o?RR(arguments,t):[],u=o?function(){xR(a,this,s)}:a;return r?e(u,i):e(u)}:e}});var Op=f(()=>{"use strict";var OR=L(),kp=G(),PR=za(),qp=PR(kp.setInterval,!0);OR({global:!0,bind:!0,forced:kp.setInterval!==qp},{setInterval:qp})});var Np=f(()=>{"use strict";var CR=L(),Cp=G(),NR=za(),Pp=NR(Cp.setTimeout,!0);CR({global:!0,bind:!0,forced:Cp.setTimeout!==Pp},{setTimeout:Pp})});var Dp=f(()=>{"use strict";Op();Np()});var Fp=f((v$,Lp)=>{"use strict";Dp();var DR=ge();Lp.exports=DR.setTimeout});var Up=f((g$,jp)=>{jp.exports=Fp()});var Jn=f(()=>{});var fr=f((b$,Mp)=>{"use strict";var LR=Gr(),FR=String;Mp.exports=function(e){if(LR(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return FR(e)}});var Wn=f((w$,Bp)=>{"use strict";var jR=Dt(),UR=Math.max,MR=Math.min;Bp.exports=function(e,r){var t=jR(e);return t<0?UR(t+r,0):MR(t,r)}});var Ya=f((S$,Hp)=>{"use strict";var BR=ze(),$R=Wn(),HR=Ir(),$p=function(e){return function(r,t,n){var i=BR(r),o=HR(i);if(o===0)return!e&&-1;var a=$R(n,o),s;if(e&&t!==t){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===t)return e||a||0;return!e&&-1}};Hp.exports={includes:$p(!0),indexOf:$p(!1)}});var Wr=f((x$,Kp)=>{"use strict";Kp.exports={}});var Xa=f((E$,Vp)=>{"use strict";var KR=U(),Qa=se(),GR=ze(),VR=Ya().indexOf,JR=Wr(),Gp=KR([].push);Vp.exports=function(e,r){var t=GR(e),n=0,i=[],o;for(o in t)!Qa(JR,o)&&Qa(t,o)&&Gp(i,o);for(;r.length>n;)Qa(t,o=r[n++])&&(~VR(i,o)||Gp(i,o));return i}});var zn=f((I$,Jp)=>{"use strict";Jp.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Yn=f((T$,Wp)=>{"use strict";var WR=Xa(),zR=zn();Wp.exports=Object.keys||function(r){return WR(r,zR)}});var Za=f(zp=>{"use strict";var YR=ne(),QR=Ca(),XR=Re(),ZR=Ye(),eA=ze(),rA=Yn();zp.f=YR&&!QR?Object.defineProperties:function(r,t){ZR(r);for(var n=eA(t),i=rA(t),o=i.length,a=0,s;o>a;)XR.f(r,s=i[a++],n[s]);return r}});var Qp=f((A$,Yp)=>{"use strict";var tA=Me();Yp.exports=tA("document","documentElement")});var Ut=f((q$,Zp)=>{"use strict";var nA=Br(),iA=Ot(),Xp=nA("keys");Zp.exports=function(e){return Xp[e]||(Xp[e]=iA(e))}});var zr=f((k$,am)=>{"use strict";var oA=Ye(),aA=Za(),em=zn(),sA=Wr(),uA=Qp(),cA=Oa(),lA=Ut(),rm=">",tm="<",rs="prototype",ts="script",im=lA("IE_PROTO"),es=function(){},om=function(e){return tm+ts+rm+e+tm+"/"+ts+rm},nm=function(e){e.write(om("")),e.close();var r=e.parentWindow.Object;return e=null,r},dA=function(){var e=cA("iframe"),r="java"+ts+":",t;return e.style.display="none",uA.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(om("document.F=Object")),t.close(),t.F},Qn,Xn=function(){try{Qn=new ActiveXObject("htmlfile")}catch(r){}Xn=typeof document!="undefined"?document.domain&&Qn?nm(Qn):dA():nm(Qn);for(var e=em.length;e--;)delete Xn[rs][em[e]];return Xn()};sA[im]=!0;am.exports=Object.create||function(r,t){var n;return r!==null?(es[rs]=oA(r),n=new es,es[rs]=null,n[im]=r):n=Xn(),t===void 0?n:aA.f(n,t)}});var Zn=f(sm=>{"use strict";var fA=Xa(),pA=zn(),mA=pA.concat("length","prototype");sm.f=Object.getOwnPropertyNames||function(r){return fA(r,mA)}});var ns=f((P$,lm)=>{"use strict";var hA=Ue(),vA=ze(),um=Zn().f,gA=Jr(),cm=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yA=function(e){try{return um(e)}catch(r){return gA(cm)}};lm.exports.f=function(r){return cm&&hA(r)==="Window"?yA(r):um(vA(r))}});var ei=f(dm=>{"use strict";dm.f=Object.getOwnPropertySymbols});var Yr=f((N$,fm)=>{"use strict";var _A=Er();fm.exports=function(e,r,t,n){return n&&n.enumerable?e[r]=t:_A(e,r,t),e}});var ri=f((D$,pm)=>{"use strict";var bA=Re();pm.exports=function(e,r,t){return bA.f(e,r,t)}});var is=f(mm=>{"use strict";var wA=re();mm.f=wA});var fe=f((F$,vm)=>{"use strict";var hm=ge(),SA=se(),xA=is(),EA=Re().f;vm.exports=function(e){var r=hm.Symbol||(hm.Symbol={});SA(r,e)||EA(r,e,{value:xA.f(e)})}});var os=f((j$,gm)=>{"use strict";var IA=Te(),TA=Me(),RA=re(),AA=Yr();gm.exports=function(){var e=TA("Symbol"),r=e&&e.prototype,t=r&&r.valueOf,n=RA("toPrimitive");r&&!r[n]&&AA(r,n,function(i){return IA(t,this)},{arity:1})}});var _m=f((U$,ym)=>{"use strict";var qA=$n(),kA=Gr();ym.exports=qA?{}.toString:function(){return"[object "+kA(this)+"]"}});var pr=f((M$,wm)=>{"use strict";var OA=$n(),PA=Re().f,CA=Er(),NA=se(),DA=_m(),LA=re(),bm=LA("toStringTag");wm.exports=function(e,r,t,n){var i=t?e:e&&e.prototype;i&&(NA(i,bm)||PA(i,bm,{configurable:!0,value:r}),n&&!OA&&CA(i,"toString",DA))}});var as=f((B$,xm)=>{"use strict";var FA=G(),jA=Z(),Sm=FA.WeakMap;xm.exports=jA(Sm)&&/native code/.test(String(Sm))});var mr=f(($$,Tm)=>{"use strict";var UA=as(),Im=G(),MA=ee(),BA=Er(),ss=se(),us=kt(),$A=Ut(),HA=Wr(),Em="Object already initialized",cs=Im.TypeError,KA=Im.WeakMap,ti,Mt,ni,GA=function(e){return ni(e)?Mt(e):ti(e,{})},VA=function(e){return function(r){var t;if(!MA(r)||(t=Mt(r)).type!==e)throw new cs("Incompatible receiver, "+e+" required");return t}};UA||us.state?(Pe=us.state||(us.state=new KA),Pe.get=Pe.get,Pe.has=Pe.has,Pe.set=Pe.set,ti=function(e,r){if(Pe.has(e))throw new cs(Em);return r.facade=e,Pe.set(e,r),r},Mt=function(e){return Pe.get(e)||{}},ni=function(e){return Pe.has(e)}):(Tr=$A("state"),HA[Tr]=!0,ti=function(e,r){if(ss(e,Tr))throw new cs(Em);return r.facade=e,BA(e,Tr,r),r},Mt=function(e){return ss(e,Tr)?e[Tr]:{}},ni=function(e){return ss(e,Tr)});var Pe,Tr;Tm.exports={set:ti,get:Mt,has:ni,enforce:GA,getterFor:VA}});var Hm=f(()=>{"use strict";var ii=L(),Ht=G(),ys=Te(),JA=U(),WA=ur(),Qr=ne(),Xr=Sr(),zA=j(),ie=se(),YA=te(),ps=Ye(),oi=ze(),_s=Un(),QA=fr(),ms=Ur(),Zr=zr(),qm=Yn(),XA=Zn(),km=ns(),ZA=ei(),Om=Mn(),Pm=Re(),eq=Za(),Cm=Cn(),ls=Yr(),rq=ri(),bs=Br(),tq=Ut(),Nm=Wr(),Rm=Ot(),nq=re(),iq=is(),oq=fe(),aq=os(),sq=pr(),Dm=mr(),ai=Qe().forEach,_e=tq("hidden"),si="Symbol",$t="prototype",uq=Dm.set,Am=Dm.getterFor(si),Ae=Object[$t],Rr=Ht.Symbol,Bt=Rr&&Rr[$t],cq=Ht.RangeError,lq=Ht.TypeError,ds=Ht.QObject,Lm=Om.f,Ar=Pm.f,Fm=km.f,dq=Cm.f,jm=JA([].push),Xe=bs("symbols"),Kt=bs("op-symbols"),fq=bs("wks"),hs=!ds||!ds[$t]||!ds[$t].findChild,Um=function(e,r,t){var n=Lm(Ae,r);n&&delete Ae[r],Ar(e,r,t),n&&e!==Ae&&Ar(Ae,r,n)},vs=Qr&&zA(function(){return Zr(Ar({},"a",{get:function(){return Ar(this,"a",{value:7}).a}})).a!==7})?Um:Ar,fs=function(e,r){var t=Xe[e]=Zr(Bt);return uq(t,{type:si,tag:e,description:r}),Qr||(t.description=r),t},ui=function(r,t,n){r===Ae&&ui(Kt,t,n),ps(r);var i=_s(t);return ps(n),ie(Xe,i)?(n.enumerable?(ie(r,_e)&&r[_e][i]&&(r[_e][i]=!1),n=Zr(n,{enumerable:ms(0,!1)})):(ie(r,_e)||Ar(r,_e,ms(1,Zr(null))),r[_e][i]=!0),vs(r,i,n)):Ar(r,i,n)},ws=function(r,t){ps(r);var n=oi(t),i=qm(n).concat($m(n));return ai(i,function(o){(!Qr||ys(gs,n,o))&&ui(r,o,n[o])}),r},pq=function(r,t){return t===void 0?Zr(r):ws(Zr(r),t)},gs=function(r){var t=_s(r),n=ys(dq,this,t);return this===Ae&&ie(Xe,t)&&!ie(Kt,t)?!1:n||!ie(this,t)||!ie(Xe,t)||ie(this,_e)&&this[_e][t]?n:!0},Mm=function(r,t){var n=oi(r),i=_s(t);if(!(n===Ae&&ie(Xe,i)&&!ie(Kt,i))){var o=Lm(n,i);return o&&ie(Xe,i)&&!(ie(n,_e)&&n[_e][i])&&(o.enumerable=!0),o}},Bm=function(r){var t=Fm(oi(r)),n=[];return ai(t,function(i){!ie(Xe,i)&&!ie(Nm,i)&&jm(n,i)}),n},$m=function(e){var r=e===Ae,t=Fm(r?Kt:oi(e)),n=[];return ai(t,function(i){ie(Xe,i)&&(!r||ie(Ae,i))&&jm(n,Xe[i])}),n};Xr||(Rr=function(){if(YA(Bt,this))throw new lq("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:QA(arguments[0]),t=Rm(r),n=function(i){var o=this===void 0?Ht:this;o===Ae&&ys(n,Kt,i),ie(o,_e)&&ie(o[_e],t)&&(o[_e][t]=!1);var a=ms(1,i);try{vs(o,t,a)}catch(s){if(!(s instanceof cq))throw s;Um(o,t,a)}};return Qr&&hs&&vs(Ae,t,{configurable:!0,set:n}),fs(t,r)},Bt=Rr[$t],ls(Bt,"toString",function(){return Am(this).tag}),ls(Rr,"withoutSetter",function(e){return fs(Rm(e),e)}),Cm.f=gs,Pm.f=ui,eq.f=ws,Om.f=Mm,XA.f=km.f=Bm,ZA.f=$m,iq.f=function(e){return fs(nq(e),e)},Qr&&(rq(Bt,"description",{configurable:!0,get:function(){return Am(this).description}}),WA||ls(Ae,"propertyIsEnumerable",gs,{unsafe:!0})));ii({global:!0,constructor:!0,wrap:!0,forced:!Xr,sham:!Xr},{Symbol:Rr});ai(qm(fq),function(e){oq(e)});ii({target:si,stat:!0,forced:!Xr},{useSetter:function(){hs=!0},useSimple:function(){hs=!1}});ii({target:"Object",stat:!0,forced:!Xr,sham:!Qr},{create:pq,defineProperty:ui,defineProperties:ws,getOwnPropertyDescriptor:Mm});ii({target:"Object",stat:!0,forced:!Xr},{getOwnPropertyNames:Bm});aq();sq(Rr,si);Nm[_e]=!0});var Ss=f((G$,Km)=>{"use strict";var mq=Sr();Km.exports=mq&&!!Symbol.for&&!!Symbol.keyFor});var Vm=f(()=>{"use strict";var hq=L(),vq=Me(),gq=se(),yq=fr(),Gm=Br(),_q=Ss(),xs=Gm("string-to-symbol-registry"),bq=Gm("symbol-to-string-registry");hq({target:"Symbol",stat:!0,forced:!_q},{for:function(e){var r=yq(e);if(gq(xs,r))return xs[r];var t=vq("Symbol")(r);return xs[r]=t,bq[t]=r,t}})});var Wm=f(()=>{"use strict";var wq=L(),Sq=se(),xq=qt(),Eq=Mr(),Iq=Br(),Tq=Ss(),Jm=Iq("symbol-to-string-registry");wq({target:"Symbol",stat:!0,forced:!Tq},{keyFor:function(r){if(!xq(r))throw new TypeError(Eq(r)+" is not a symbol");if(Sq(Jm,r))return Jm[r]}})});var Zm=f((Y$,Xm)=>{"use strict";var Rq=U(),zm=lr(),Aq=Z(),Ym=Ue(),qq=fr(),Qm=Rq([].push);Xm.exports=function(e){if(Aq(e))return e;if(zm(e)){for(var r=e.length,t=[],n=0;n<r;n++){var i=e[n];typeof i=="string"?Qm(t,i):(typeof i=="number"||Ym(i)==="Number"||Ym(i)==="String")&&Qm(t,qq(i))}var o=t.length,a=!0;return function(s,u){if(a)return a=!1,u;if(zm(this))return u;for(var c=0;c<o;c++)if(t[c]===s)return u}}}});var dh=f(()=>{"use strict";var kq=L(),sh=Me(),uh=On(),Oq=Te(),Gt=U(),ch=j(),eh=Z(),rh=qt(),lh=Jr(),Pq=Zm(),Cq=Sr(),Nq=String,hr=sh("JSON","stringify"),ci=Gt(/./.exec),th=Gt("".charAt),Dq=Gt("".charCodeAt),Lq=Gt("".replace),Fq=Gt(1 .toString),jq=/[\uD800-\uDFFF]/g,nh=/^[\uD800-\uDBFF]$/,ih=/^[\uDC00-\uDFFF]$/,oh=!Cq||ch(function(){var e=sh("Symbol")("stringify detection");return hr([e])!=="[null]"||hr({a:e})!=="{}"||hr(Object(e))!=="{}"}),ah=ch(function(){return hr("\uDF06\uD834")!=='"\\udf06\\ud834"'||hr("\uDEAD")!=='"\\udead"'}),Uq=function(e,r){var t=lh(arguments),n=Pq(r);if(!(!eh(n)&&(e===void 0||rh(e))))return t[1]=function(i,o){if(eh(n)&&(o=Oq(n,this,Nq(i),o)),!rh(o))return o},uh(hr,null,t)},Mq=function(e,r,t){var n=th(t,r-1),i=th(t,r+1);return ci(nh,e)&&!ci(ih,i)||ci(ih,e)&&!ci(nh,n)?"\\u"+Fq(Dq(e,0),16):e};hr&&kq({target:"JSON",stat:!0,arity:3,forced:oh||ah},{stringify:function(r,t,n){var i=lh(arguments),o=uh(oh?Uq:hr,null,i);return ah&&typeof o=="string"?Lq(o,jq,Mq):o}})});var ph=f(()=>{"use strict";var Bq=L(),$q=Sr(),Hq=j(),fh=ei(),Kq=cr(),Gq=!$q||Hq(function(){fh.f(1)});Bq({target:"Object",stat:!0,forced:Gq},{getOwnPropertySymbols:function(r){var t=fh.f;return t?t(Kq(r)):[]}})});var Es=f(()=>{"use strict";Hm();Vm();Wm();dh();ph()});var mh=f(()=>{"use strict";var Vq=fe();Vq("asyncIterator")});var hh=f(()=>{});var vh=f(()=>{"use strict";var Jq=fe();Jq("hasInstance")});var gh=f(()=>{"use strict";var Wq=fe();Wq("isConcatSpreadable")});var yh=f(()=>{"use strict";var zq=fe();zq("iterator")});var _h=f(()=>{"use strict";var Yq=fe();Yq("match")});var bh=f(()=>{"use strict";var Qq=fe();Qq("matchAll")});var wh=f(()=>{"use strict";var Xq=fe();Xq("replace")});var Sh=f(()=>{"use strict";var Zq=fe();Zq("search")});var xh=f(()=>{"use strict";var ek=fe();ek("species")});var Eh=f(()=>{"use strict";var rk=fe();rk("split")});var Ih=f(()=>{"use strict";var tk=fe(),nk=os();tk("toPrimitive");nk()});var Th=f(()=>{"use strict";var ik=Me(),ok=fe(),ak=pr();ok("toStringTag");ak(ik("Symbol"),"Symbol")});var Rh=f(()=>{"use strict";var sk=fe();sk("unscopables")});var Ah=f(()=>{"use strict";var uk=G(),ck=pr();ck(uk.JSON,"JSON",!0)});var qh=f(()=>{});var kh=f(()=>{});var Ph=f((F2,Oh)=>{"use strict";Va();Jn();Es();mh();hh();vh();gh();yh();_h();bh();wh();Sh();xh();Eh();Ih();Th();Rh();Ah();qh();kh();var lk=ge();Oh.exports=lk.Symbol});var Nh=f((j2,Ch)=>{"use strict";Ch.exports=function(){}});var qr=f((U2,Dh)=>{"use strict";Dh.exports={}});var Rs=f((M2,Fh)=>{"use strict";var Is=ne(),dk=se(),Lh=Function.prototype,fk=Is&&Object.getOwnPropertyDescriptor,Ts=dk(Lh,"name"),pk=Ts&&(function(){}).name==="something",mk=Ts&&(!Is||Is&&fk(Lh,"name").configurable);Fh.exports={EXISTS:Ts,PROPER:pk,CONFIGURABLE:mk}});var Uh=f((B2,jh)=>{"use strict";var hk=j();jh.exports=!hk(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var qs=f(($2,Bh)=>{"use strict";var vk=se(),gk=Z(),yk=cr(),_k=Ut(),bk=Uh(),Mh=_k("IE_PROTO"),As=Object,wk=As.prototype;Bh.exports=bk?As.getPrototypeOf:function(e){var r=yk(e);if(vk(r,Mh))return r[Mh];var t=r.constructor;return gk(t)&&r instanceof t?t.prototype:r instanceof As?wk:null}});var Cs=f((H2,Kh)=>{"use strict";var Sk=j(),xk=Z(),Ek=ee(),Ik=zr(),$h=qs(),Tk=Yr(),Rk=re(),Ak=ur(),Ps=Rk("iterator"),Hh=!1,Ze,ks,Os;[].keys&&(Os=[].keys(),"next"in Os?(ks=$h($h(Os)),ks!==Object.prototype&&(Ze=ks)):Hh=!0);var qk=!Ek(Ze)||Sk(function(){var e={};return Ze[Ps].call(e)!==e});qk?Ze={}:Ak&&(Ze=Ik(Ze));xk(Ze[Ps])||Tk(Ze,Ps,function(){return this});Kh.exports={IteratorPrototype:Ze,BUGGY_SAFARI_ITERATORS:Hh}});var Vh=f((K2,Gh)=>{"use strict";var kk=Cs().IteratorPrototype,Ok=zr(),Pk=Ur(),Ck=pr(),Nk=qr(),Dk=function(){return this};Gh.exports=function(e,r,t,n){var i=r+" Iterator";return e.prototype=Ok(kk,{next:Pk(+!n,t)}),Ck(e,i,!1,!0),Nk[i]=Dk,e}});var Wh=f((G2,Jh)=>{"use strict";var Lk=U(),Fk=xr();Jh.exports=function(e,r,t){try{return Lk(Fk(Object.getOwnPropertyDescriptor(e,r)[t]))}catch(n){}}});var Yh=f((V2,zh)=>{"use strict";var jk=ee();zh.exports=function(e){return jk(e)||e===null}});var Xh=f((J2,Qh)=>{"use strict";var Uk=Yh(),Mk=String,Bk=TypeError;Qh.exports=function(e){if(Uk(e))return e;throw new Bk("Can't set "+Mk(e)+" as a prototype")}});var ev=f((W2,Zh)=>{"use strict";var $k=Wh(),Hk=ee(),Kk=sr(),Gk=Xh();Zh.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=$k(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(n){}return function(i,o){return Kk(i),Gk(o),Hk(i)&&(e?t(i,o):i.__proto__=o),i}}():void 0)});var fi=f((z2,lv)=>{"use strict";var Vk=L(),Jk=Te(),li=ur(),uv=Rs(),Wk=Z(),zk=Vh(),rv=qs(),tv=ev(),Yk=pr(),Qk=Er(),Ns=Yr(),Xk=re(),nv=qr(),cv=Cs(),Zk=uv.PROPER,eO=uv.CONFIGURABLE,iv=cv.IteratorPrototype,di=cv.BUGGY_SAFARI_ITERATORS,Vt=Xk("iterator"),ov="keys",Jt="values",av="entries",sv=function(){return this};lv.exports=function(e,r,t,n,i,o,a){zk(t,r,n);var s=function(g){if(g===i&&p)return p;if(!di&&g&&g in d)return d[g];switch(g){case ov:return function(){return new t(this,g)};case Jt:return function(){return new t(this,g)};case av:return function(){return new t(this,g)}}return function(){return new t(this)}},u=r+" Iterator",c=!1,d=e.prototype,l=d[Vt]||d["@@iterator"]||i&&d[i],p=!di&&l||s(i),m=r==="Array"&&d.entries||l,h,y,v;if(m&&(h=rv(m.call(new e)),h!==Object.prototype&&h.next&&(!li&&rv(h)!==iv&&(tv?tv(h,iv):Wk(h[Vt])||Ns(h,Vt,sv)),Yk(h,u,!0,!0),li&&(nv[u]=sv))),Zk&&i===Jt&&l&&l.name!==Jt&&(!li&&eO?Qk(d,"name",Jt):(c=!0,p=function(){return Jk(l,this)})),i)if(y={values:s(Jt),keys:o?p:s(ov),entries:s(av)},a)for(v in y)(di||c||!(v in d))&&Ns(d,v,y[v]);else Vk({target:r,proto:!0,forced:di||c},y);return(!li||a)&&d[Vt]!==p&&Ns(d,Vt,p,{name:i}),nv[r]=p,y}});var pi=f((Y2,dv)=>{"use strict";dv.exports=function(e,r){return{value:e,done:r}}});var hi=f((Q2,vv)=>{"use strict";var rO=ze(),Ds=Nh(),fv=qr(),mv=mr(),tO=Re().f,nO=fi(),mi=pi(),iO=ur(),oO=ne(),hv="Array Iterator",aO=mv.set,sO=mv.getterFor(hv);vv.exports=nO(Array,"Array",function(e,r){aO(this,{type:hv,target:rO(e),index:0,kind:r})},function(){var e=sO(this),r=e.target,t=e.index++;if(!r||t>=r.length)return e.target=null,mi(void 0,!0);switch(e.kind){case"keys":return mi(t,!1);case"values":return mi(r[t],!1)}return mi([t,r[t]],!1)},"values");var pv=fv.Arguments=fv.Array;Ds("keys");Ds("values");Ds("entries");if(!iO&&oO&&pv.name!=="values")try{tO(pv,"name",{value:"values"})}catch(e){}});var yv=f((X2,gv)=>{"use strict";gv.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 gi=f(()=>{"use strict";hi();var uO=yv(),cO=G(),lO=pr(),_v=qr();for(vi in uO)lO(cO[vi],vi),_v[vi]=_v.Array;var vi});var wv=f((rH,bv)=>{"use strict";var dO=Ph();gi();bv.exports=dO});var xv=f((tH,Sv)=>{Sv.exports=wv()});var Iv=f((nH,Ev)=>{"use strict";Es();var fO=ge();Ev.exports=fO.Symbol.for});var Rv=f((iH,Tv)=>{"use strict";var pO=Iv();Tv.exports=pO});var qv=f((oH,Av)=>{Av.exports=Rv()});var kv=f(()=>{"use strict";var mO=L(),hO=Qe().map,vO=Vr(),gO=vO("map");mO({target:"Array",proto:!0,forced:!gO},{map:function(r){return hO(this,r,arguments.length>1?arguments[1]:void 0)}})});var Pv=f((uH,Ov)=>{"use strict";kv();var yO=ye();Ov.exports=yO("Array","map")});var Nv=f((cH,Cv)=>{"use strict";var _O=te(),bO=Pv(),Ls=Array.prototype;Cv.exports=function(e){var r=e.map;return e===Ls||_O(Ls,e)&&r===Ls.map?bO:r}});var Lv=f((lH,Dv)=>{"use strict";var wO=Nv();Dv.exports=wO});var jv=f((dH,Fv)=>{Fv.exports=Lv()});var Mv=f((fH,Uv)=>{"use strict";var SO=ne(),xO=lr(),EO=TypeError,IO=Object.getOwnPropertyDescriptor,TO=SO&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();Uv.exports=TO?function(e,r){if(xO(e)&&!IO(e,"length").writable)throw new EO("Cannot set read only .length");return e.length=r}:function(e,r){return e.length=r}});var Hv=f((pH,$v)=>{"use strict";var Bv=Mr(),RO=TypeError;$v.exports=function(e,r){if(!delete e[r])throw new RO("Cannot delete property "+Bv(r)+" of "+Bv(e))}});var Kv=f(()=>{"use strict";var AO=L(),qO=cr(),kO=Wn(),OO=Dt(),PO=Ir(),CO=Mv(),NO=Ga(),DO=Kn(),LO=Gn(),Fs=Hv(),FO=Vr(),jO=FO("splice"),UO=Math.max,MO=Math.min;AO({target:"Array",proto:!0,forced:!jO},{splice:function(r,t){var n=qO(this),i=PO(n),o=kO(r,i),a=arguments.length,s,u,c,d,l,p;for(a===0?s=u=0:a===1?(s=0,u=i-o):(s=a-2,u=MO(UO(OO(t),0),i-o)),NO(i+s-u),c=DO(n,u),d=0;d<u;d++)l=o+d,l in n&&LO(c,d,n[l]);if(c.length=u,s<u){for(d=o;d<i-u;d++)l=d+u,p=d+s,l in n?n[p]=n[l]:Fs(n,p);for(d=i;d>i-u+s;d--)Fs(n,d-1)}else if(s>u)for(d=i-u;d>o;d--)l=d+u-1,p=d+s-1,l in n?n[p]=n[l]:Fs(n,p);for(d=0;d<s;d++)n[d+o]=arguments[d+2];return CO(n,i-u+s),c}})});var Vv=f((vH,Gv)=>{"use strict";Kv();var BO=ye();Gv.exports=BO("Array","splice")});var Wv=f((gH,Jv)=>{"use strict";var $O=te(),HO=Vv(),js=Array.prototype;Jv.exports=function(e){var r=e.splice;return e===js||$O(js,e)&&r===js.splice?HO:r}});var Yv=f((yH,zv)=>{"use strict";var KO=Wv();zv.exports=KO});var Xv=f((_H,Qv)=>{Qv.exports=Yv()});var eg=f(()=>{"use strict";var GO=L(),VO=At(),JO=Ya().indexOf,WO=Ft(),Us=VO([].indexOf),Zv=!!Us&&1/Us([1],1,-0)<0,zO=Zv||!WO("indexOf");GO({target:"Array",proto:!0,forced:zO},{indexOf:function(r){var t=arguments.length>1?arguments[1]:void 0;return Zv?Us(this,r,t)||0:JO(this,r,t)}})});var tg=f((SH,rg)=>{"use strict";eg();var YO=ye();rg.exports=YO("Array","indexOf")});var ig=f((xH,ng)=>{"use strict";var QO=te(),XO=tg(),Ms=Array.prototype;ng.exports=function(e){var r=e.indexOf;return e===Ms||QO(Ms,e)&&r===Ms.indexOf?XO:r}});var ag=f((EH,og)=>{"use strict";var ZO=ig();og.exports=ZO});var ug=f((IH,sg)=>{sg.exports=ag()});var lg=f((TH,cg)=>{"use strict";var eP=j();cg.exports=eP(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var pg=f((RH,fg)=>{"use strict";var rP=j(),tP=ee(),nP=Ue(),dg=lg(),yi=Object.isExtensible,iP=rP(function(){yi(1)});fg.exports=iP||dg?function(r){return!tP(r)||dg&&nP(r)==="ArrayBuffer"?!1:yi?yi(r):!0}:yi});var Bs=f((AH,mg)=>{"use strict";var oP=j();mg.exports=!oP(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Wt=f((qH,gg)=>{"use strict";var aP=L(),sP=U(),uP=Wr(),cP=ee(),$s=se(),lP=Re().f,hg=Zn(),dP=ns(),Hs=pg(),fP=Ot(),pP=Bs(),vg=!1,er=fP("meta"),mP=0,Ks=function(e){lP(e,er,{value:{objectID:"O"+mP++,weakData:{}}})},hP=function(e,r){if(!cP(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!$s(e,er)){if(!Hs(e))return"F";if(!r)return"E";Ks(e)}return e[er].objectID},vP=function(e,r){if(!$s(e,er)){if(!Hs(e))return!0;if(!r)return!1;Ks(e)}return e[er].weakData},gP=function(e){return pP&&vg&&Hs(e)&&!$s(e,er)&&Ks(e),e},yP=function(){_P.enable=function(){},vg=!0;var e=hg.f,r=sP([].splice),t={};t[er]=1,e(t).length&&(hg.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===er){r(i,o,1);break}return i},aP({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:dP.f}))},_P=gg.exports={enable:yP,fastKey:hP,getWeakData:vP,onFreeze:gP};uP[er]=!0});var _g=f((kH,yg)=>{"use strict";var bP=re(),wP=qr(),SP=bP("iterator"),xP=Array.prototype;yg.exports=function(e){return e!==void 0&&(wP.Array===e||xP[SP]===e)}});var Gs=f((OH,wg)=>{"use strict";var EP=Gr(),bg=jn(),IP=wr(),TP=qr(),RP=re(),AP=RP("iterator");wg.exports=function(e){if(!IP(e))return bg(e,AP)||bg(e,"@@iterator")||TP[EP(e)]}});var xg=f((PH,Sg)=>{"use strict";var qP=Te(),kP=xr(),OP=Ye(),PP=Mr(),CP=Gs(),NP=TypeError;Sg.exports=function(e,r){var t=arguments.length<2?CP(e):r;if(kP(t))return OP(qP(t,e));throw new NP(PP(e)+" is not iterable")}});var Tg=f((CH,Ig)=>{"use strict";var DP=Te(),Eg=Ye(),LP=jn();Ig.exports=function(e,r,t){var n,i;Eg(e);try{if(n=LP(e,"return"),!n){if(r==="throw")throw t;return t}n=DP(n,e)}catch(o){i=!0,n=o}if(r==="throw")throw t;if(i)throw n;return Eg(n),t}});var zt=f((NH,kg)=>{"use strict";var FP=Ct(),jP=Te(),UP=Ye(),MP=Mr(),BP=_g(),$P=Ir(),Rg=te(),HP=xg(),KP=Gs(),Ag=Tg(),GP=TypeError,_i=function(e,r){this.stopped=e,this.result=r},qg=_i.prototype;kg.exports=function(e,r,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),o=!!(t&&t.IS_RECORD),a=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),u=FP(r,n),c,d,l,p,m,h,y,v=function(_){return c&&Ag(c,"normal",_),new _i(!0,_)},g=function(_){return i?(UP(_),s?u(_[0],_[1],v):u(_[0],_[1])):s?u(_,v):u(_)};if(o)c=e.iterator;else if(a)c=e;else{if(d=KP(e),!d)throw new GP(MP(e)+" is not iterable");if(BP(d)){for(l=0,p=$P(e);p>l;l++)if(m=g(e[l]),m&&Rg(qg,m))return m;return new _i(!1)}c=HP(e,d)}for(h=o?e.next:c.next;!(y=jP(h,c)).done;){try{m=g(y.value)}catch(_){Ag(c,"throw",_)}if(typeof m=="object"&&m&&Rg(qg,m))return m}return new _i(!1)}});var bi=f((DH,Og)=>{"use strict";var VP=te(),JP=TypeError;Og.exports=function(e,r){if(VP(r,e))return e;throw new JP("Incorrect invocation")}});var Vs=f((LH,Cg)=>{"use strict";var WP=L(),zP=G(),YP=Wt(),QP=j(),XP=Er(),ZP=zt(),e1=bi(),r1=Z(),t1=ee(),n1=wr(),i1=pr(),o1=Re().f,a1=Qe().forEach,s1=ne(),Pg=mr(),u1=Pg.set,c1=Pg.getterFor;Cg.exports=function(e,r,t){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=zP[e],s=a&&a.prototype,u={},c;if(!s1||!r1(a)||!(i||s.forEach&&!QP(function(){new a().entries().next()})))c=t.getConstructor(r,e,n,o),YP.enable();else{c=r(function(p,m){u1(e1(p,d),{type:e,collection:new a}),n1(m)||ZP(m,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,l=c1(e);a1(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var m=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&XP(d,p,function(h,y){var v=l(this).collection;if(!m&&i&&!t1(h))return p==="get"?void 0:!1;var g=v[p](h===0?0:h,y);return m?this:g})}),i||o1(d,"size",{configurable:!0,get:function(){return l(this).collection.size}})}return i1(c,e,!1,!0),u[e]=c,WP({global:!0,forced:!0},u),i||t.setStrong(c,e,n),c}});var wi=f((FH,Ng)=>{"use strict";var l1=Yr();Ng.exports=function(e,r,t){for(var n in r)t&&t.unsafe&&e[n]?e[n]=r[n]:l1(e,n,r[n],t);return e}});var Fg=f((jH,Lg)=>{"use strict";var d1=Me(),f1=ri(),p1=re(),m1=ne(),Dg=p1("species");Lg.exports=function(e){var r=d1(e);m1&&r&&!r[Dg]&&f1(r,Dg,{configurable:!0,get:function(){return this}})}});var Kg=f((UH,Hg)=>{"use strict";var jg=zr(),h1=ri(),Ug=wi(),v1=Ct(),g1=bi(),y1=wr(),_1=zt(),b1=fi(),Si=pi(),w1=Fg(),Yt=ne(),Mg=Wt().fastKey,$g=mr(),Bg=$g.set,Js=$g.getterFor;Hg.exports={getConstructor:function(e,r,t,n){var i=e(function(c,d){g1(c,o),Bg(c,{type:r,index:jg(null),first:null,last:null,size:0}),Yt||(c.size=0),y1(d)||_1(d,c[n],{that:c,AS_ENTRIES:t})}),o=i.prototype,a=Js(r),s=function(c,d,l){var p=a(c),m=u(c,d),h,y;return m?m.value=l:(p.last=m={index:y=Mg(d,!0),key:d,value:l,previous:h=p.last,next:null,removed:!1},p.first||(p.first=m),h&&(h.next=m),Yt?p.size++:c.size++,y!=="F"&&(p.index[y]=m)),c},u=function(c,d){var l=a(c),p=Mg(d),m;if(p!=="F")return l.index[p];for(m=l.first;m;m=m.next)if(m.key===d)return m};return Ug(o,{clear:function(){for(var d=this,l=a(d),p=l.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;l.first=l.last=null,l.index=jg(null),Yt?l.size=0:d.size=0},delete:function(c){var d=this,l=a(d),p=u(d,c);if(p){var m=p.next,h=p.previous;delete l.index[p.index],p.removed=!0,h&&(h.next=m),m&&(m.previous=h),l.first===p&&(l.first=m),l.last===p&&(l.last=h),Yt?l.size--:d.size--}return!!p},forEach:function(d){for(var l=a(this),p=v1(d,arguments.length>1?arguments[1]:void 0),m;m=m?m.next:l.first;)for(p(m.value,m.key,this);m&&m.removed;)m=m.previous},has:function(d){return!!u(this,d)}}),Ug(o,t?{get:function(d){var l=u(this,d);return l&&l.value},set:function(d,l){return s(this,d===0?0:d,l)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),Yt&&h1(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,r,t){var n=r+" Iterator",i=Js(r),o=Js(n);b1(e,r,function(a,s){Bg(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,u=a.last;u&&u.removed;)u=u.previous;return!a.target||!(a.last=u=u?u.next:a.state.first)?(a.target=null,Si(void 0,!0)):Si(s==="keys"?u.key:s==="values"?u.value:[u.key,u.value],!1)},t?"entries":"values",!t,!0),w1(r)}}});var Gg=f(()=>{"use strict";var S1=Vs(),x1=Kg();S1("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},x1)});var Vg=f(()=>{"use strict";Gg()});var Wg=f((KH,Jg)=>{"use strict";Jg.exports=function(e,r){return r===1?function(t,n){return t[e](n)}:function(t,n,i){return t[e](n,i)}}});var Qg=f((GH,Yg)=>{"use strict";var E1=Me(),xi=Wg(),zg=E1("Map");Yg.exports={Map:zg,set:xi("set",2),get:xi("get",1),has:xi("has",1),remove:xi("delete",1),proto:zg.prototype}});var ey=f(()=>{"use strict";var I1=L(),T1=U(),R1=xr(),A1=sr(),q1=zt(),Ei=Qg(),Xg=ur(),k1=j(),Zg=Ei.Map,O1=Ei.has,P1=Ei.get,C1=Ei.set,N1=T1([].push),D1=Xg||k1(function(){return Zg.groupBy("ab",function(e){return e}).get("a").length!==1});I1({target:"Map",stat:!0,forced:Xg||D1},{groupBy:function(r,t){A1(r),R1(t);var n=new Zg,i=0;return q1(r,function(o){var a=t(o,i++);O1(n,a)?N1(P1(n,a),o):C1(n,a,[o])}),n}})});var iy=f((WH,ny)=>{"use strict";var Ws=U(),L1=Dt(),F1=fr(),j1=sr(),U1=Ws("".charAt),ry=Ws("".charCodeAt),M1=Ws("".slice),ty=function(e){return function(r,t){var n=F1(j1(r)),i=L1(t),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=ry(n,i),a<55296||a>56319||i+1===o||(s=ry(n,i+1))<56320||s>57343?e?U1(n,i):a:e?M1(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};ny.exports={codeAt:ty(!1),charAt:ty(!0)}});var uy=f(()=>{"use strict";var B1=iy().charAt,$1=fr(),ay=mr(),H1=fi(),oy=pi(),sy="String Iterator",K1=ay.set,G1=ay.getterFor(sy);H1(String,"String",function(e){K1(this,{type:sy,string:$1(e),index:0})},function(){var r=G1(this),t=r.string,n=r.index,i;return n>=t.length?oy(void 0,!0):(i=B1(t,n),r.index+=i.length,oy(i,!1))})});var ly=f((QH,cy)=>{"use strict";hi();Vg();ey();Jn();uy();var V1=ge();cy.exports=V1.Map});var fy=f((XH,dy)=>{"use strict";var J1=ly();gi();dy.exports=J1});var my=f((ZH,py)=>{py.exports=fy()});var vy=f(()=>{"use strict";var W1=L(),z1=U(),Y1=lr(),Q1=z1([].reverse),hy=[1,2];W1({target:"Array",proto:!0,forced:String(hy)===String(hy.reverse())},{reverse:function(){return Y1(this)&&(this.length=this.length),Q1(this)}})});var yy=f((tK,gy)=>{"use strict";vy();var X1=ye();gy.exports=X1("Array","reverse")});var by=f((nK,_y)=>{"use strict";var Z1=te(),eC=yy(),zs=Array.prototype;_y.exports=function(e){var r=e.reverse;return e===zs||Z1(zs,e)&&r===zs.reverse?eC:r}});var Sy=f((iK,wy)=>{"use strict";var rC=by();wy.exports=rC});var Ey=f((oK,xy)=>{xy.exports=Sy()});var Ty=f(()=>{"use strict";var tC=L(),nC=ne(),Iy=Re().f;tC({target:"Object",stat:!0,forced:Object.defineProperty!==Iy,sham:!nC},{defineProperty:Iy})});var qy=f((uK,Ay)=>{"use strict";Ty();var iC=ge(),Ry=iC.Object,oC=Ay.exports=function(r,t,n){return Ry.defineProperty(r,t,n)};Ry.defineProperty.sham&&(oC.sham=!0)});var Oy=f((cK,ky)=>{"use strict";var aC=qy();ky.exports=aC});var Cy=f((lK,Py)=>{Py.exports=Oy()});var Ny=f(()=>{"use strict";var sC=L(),uC=lr();sC({target:"Array",stat:!0},{isArray:uC})});var Ly=f((pK,Dy)=>{"use strict";Ny();var cC=ge();Dy.exports=cC.Array.isArray});var jy=f((mK,Fy)=>{"use strict";var lC=Ly();Fy.exports=lC});var My=f((hK,Uy)=>{Uy.exports=jy()});var Gy=f((vK,Ky)=>{"use strict";var $y=U(),dC=xr(),fC=ee(),pC=se(),By=Jr(),mC=jr(),Hy=Function,hC=$y([].concat),vC=$y([].join),Ys={},gC=function(e,r,t){if(!pC(Ys,r)){for(var n=[],i=0;i<r;i++)n[i]="a["+i+"]";Ys[r]=Hy("C,a","return new C("+vC(n,",")+")")}return Ys[r](e,t)};Ky.exports=mC?Hy.bind:function(r){var t=dC(this),n=t.prototype,i=By(arguments,1),o=function(){var s=hC(i,By(arguments));return this instanceof o?gC(t,s.length,s):t.apply(r,s)};return fC(n)&&(o.prototype=n),o}});var Jy=f(()=>{"use strict";var yC=L(),Vy=Gy();yC({target:"Function",proto:!0,forced:Function.bind!==Vy},{bind:Vy})});var zy=f((_K,Wy)=>{"use strict";Jy();var _C=ye();Wy.exports=_C("Function","bind")});var Qy=f((bK,Yy)=>{"use strict";var bC=te(),wC=zy(),Qs=Function.prototype;Yy.exports=function(e){var r=e.bind;return e===Qs||bC(Qs,e)&&r===Qs.bind?wC:r}});var Zy=f((wK,Xy)=>{"use strict";var SC=Qy();Xy.exports=SC});var r_=f((SK,e_)=>{e_.exports=Zy()});var n_=f((xK,t_)=>{"use strict";var xC=ee(),EC=Ue(),IC=re(),TC=IC("match");t_.exports=function(e){var r;return xC(e)&&((r=e[TC])!==void 0?!!r:EC(e)==="RegExp")}});var o_=f((EK,i_)=>{"use strict";var RC=n_(),AC=TypeError;i_.exports=function(e){if(RC(e))throw new AC("The method doesn't accept regular expressions");return e}});var s_=f((IK,a_)=>{"use strict";var qC=re(),kC=qC("match");a_.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[kC]=!1,"/./"[e](r)}catch(n){}}return!1}});var l_=f(()=>{"use strict";var OC=L(),PC=At(),CC=Mn().f,NC=ja(),u_=fr(),DC=o_(),LC=sr(),FC=s_(),jC=ur(),UC=PC("".slice),MC=Math.min,c_=FC("startsWith"),BC=!jC&&!c_&&!!function(){var e=CC(String.prototype,"startsWith");return e&&!e.writable}();OC({target:"String",proto:!0,forced:!BC&&!c_},{startsWith:function(r){var t=u_(LC(this));DC(r);var n=NC(MC(arguments.length>1?arguments[1]:void 0,t.length)),i=u_(r);return UC(t,n,n+i.length)===i}})});var f_=f((AK,d_)=>{"use strict";l_();var $C=ye();d_.exports=$C("String","startsWith")});var m_=f((qK,p_)=>{"use strict";var HC=te(),KC=f_(),Xs=String.prototype;p_.exports=function(e){var r=e.startsWith;return typeof e=="string"||e===Xs||HC(Xs,e)&&r===Xs.startsWith?KC:r}});var v_=f((kK,h_)=>{"use strict";var GC=m_();h_.exports=GC});var y_=f((OK,g_)=>{g_.exports=v_()});var w_=f(()=>{"use strict";var VC=L(),__=lr(),JC=Ba(),WC=ee(),b_=Wn(),zC=Ir(),YC=ze(),QC=Gn(),XC=re(),ZC=Vr(),eN=Jr(),rN=ZC("slice"),tN=XC("species"),Zs=Array,nN=Math.max;VC({target:"Array",proto:!0,forced:!rN},{slice:function(r,t){var n=YC(this),i=zC(n),o=b_(r,i),a=b_(t===void 0?i:t,i),s,u,c;if(__(n)&&(s=n.constructor,JC(s)&&(s===Zs||__(s.prototype))?s=void 0:WC(s)&&(s=s[tN],s===null&&(s=void 0)),s===Zs||s===void 0))return eN(n,o,a);for(u=new(s===void 0?Zs:s)(nN(a-o,0)),c=0;o<a;o++,c++)o in n&&QC(u,c,n[o]);return u.length=c,u}})});var x_=f((NK,S_)=>{"use strict";w_();var iN=ye();S_.exports=iN("Array","slice")});var I_=f((DK,E_)=>{"use strict";var oN=te(),aN=x_(),eu=Array.prototype;E_.exports=function(e){var r=e.slice;return e===eu||oN(eu,e)&&r===eu.slice?aN:r}});var R_=f((LK,T_)=>{"use strict";var sN=I_();T_.exports=sN});var q_=f((FK,A_)=>{A_.exports=R_()});var L_=f((jK,D_)=>{"use strict";var uN=U(),k_=wi(),Ii=Wt().getWeakData,cN=bi(),lN=Ye(),dN=wr(),ru=ee(),fN=zt(),P_=Qe(),O_=se(),C_=mr(),pN=C_.set,mN=C_.getterFor,hN=P_.find,vN=P_.findIndex,gN=uN([].splice),yN=0,Ti=function(e){return e.frozen||(e.frozen=new N_)},N_=function(){this.entries=[]},tu=function(e,r){return hN(e.entries,function(t){return t[0]===r})};N_.prototype={get:function(e){var r=tu(this,e);if(r)return r[1]},has:function(e){return!!tu(this,e)},set:function(e,r){var t=tu(this,e);t?t[1]=r:this.entries.push([e,r])},delete:function(e){var r=vN(this.entries,function(t){return t[0]===e});return~r&&gN(this.entries,r,1),!!~r}};D_.exports={getConstructor:function(e,r,t,n){var i=e(function(u,c){cN(u,o),pN(u,{type:r,id:yN++,frozen:null}),dN(c)||fN(c,u[n],{that:u,AS_ENTRIES:t})}),o=i.prototype,a=mN(r),s=function(u,c,d){var l=a(u),p=Ii(lN(c),!0);return p===!0?Ti(l).set(c,d):p[l.id]=d,u};return k_(o,{delete:function(u){var c=a(this);if(!ru(u))return!1;var d=Ii(u);return d===!0?Ti(c).delete(u):d&&O_(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!ru(c))return!1;var l=Ii(c);return l===!0?Ti(d).has(c):l&&O_(l,d.id)}}),k_(o,t?{get:function(c){var d=a(this);if(ru(c)){var l=Ii(c);if(l===!0)return Ti(d).get(c);if(l)return l[d.id]}},set:function(c,d){return s(this,c,d)}}:{add:function(c){return s(this,c,!0)}}),i}}});var K_=f(()=>{"use strict";var _N=Bs(),F_=G(),ki=U(),j_=wi(),bN=Wt(),wN=Vs(),U_=L_(),Ri=ee(),Ai=mr().enforce,SN=j(),xN=as(),Zt=Object,EN=Array.isArray,qi=Zt.isExtensible,M_=Zt.isFrozen,IN=Zt.isSealed,B_=Zt.freeze,TN=Zt.seal,RN=!F_.ActiveXObject&&"ActiveXObject"in F_,Qt,$_=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},H_=wN("WeakMap",$_,U_),et=H_.prototype,Oi=ki(et.set),AN=function(){return _N&&SN(function(){var e=B_([]);return Oi(new H_,e,1),!M_(e)})};xN&&(RN?(Qt=U_.getConstructor($_,"WeakMap",!0),bN.enable(),nu=ki(et.delete),Xt=ki(et.has),iu=ki(et.get),j_(et,{delete:function(e){if(Ri(e)&&!qi(e)){var r=Ai(this);return r.frozen||(r.frozen=new Qt),nu(this,e)||r.frozen.delete(e)}return nu(this,e)},has:function(r){if(Ri(r)&&!qi(r)){var t=Ai(this);return t.frozen||(t.frozen=new Qt),Xt(this,r)||t.frozen.has(r)}return Xt(this,r)},get:function(r){if(Ri(r)&&!qi(r)){var t=Ai(this);return t.frozen||(t.frozen=new Qt),Xt(this,r)?iu(this,r):t.frozen.get(r)}return iu(this,r)},set:function(r,t){if(Ri(r)&&!qi(r)){var n=Ai(this);n.frozen||(n.frozen=new Qt),Xt(this,r)?Oi(this,r,t):n.frozen.set(r,t)}else Oi(this,r,t);return this}})):AN()&&j_(et,{set:function(r,t){var n;return EN(r)&&(M_(r)?n=B_:IN(r)&&(n=TN)),Oi(this,r,t),n&&n(r),this}}));var nu,Xt,iu});var G_=f(()=>{"use strict";K_()});var J_=f((HK,V_)=>{"use strict";hi();Jn();G_();var qN=ge();V_.exports=qN.WeakMap});var z_=f((KK,W_)=>{"use strict";var kN=J_();gi();W_.exports=kN});var Q_=f((GK,Y_)=>{Y_.exports=z_()});var X_=f(()=>{"use strict";var ON=L(),PN=ne(),CN=zr();ON({target:"Object",stat:!0,sham:!PN},{create:CN})});var eb=f((WK,Z_)=>{"use strict";X_();var NN=ge(),DN=NN.Object;Z_.exports=function(r,t){return DN.create(r,t)}});var tb=f((zK,rb)=>{"use strict";var LN=eb();rb.exports=LN});var ib=f((YK,nb)=>{nb.exports=tb()});var ub=f((QK,sb)=>{"use strict";var ob=ne(),FN=U(),jN=Te(),UN=j(),ou=Yn(),MN=ei(),BN=Cn(),$N=cr(),HN=Nn(),rt=Object.assign,ab=Object.defineProperty,KN=FN([].concat);sb.exports=!rt||UN(function(){if(ob&&rt({b:1},rt(ab({},"a",{enumerable:!0,get:function(){ab(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},r={},t=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[t]=7,n.split("").forEach(function(i){r[i]=i}),rt({},e)[t]!==7||ou(rt({},r)).join("")!==n})?function(r,t){for(var n=$N(r),i=arguments.length,o=1,a=MN.f,s=BN.f;i>o;)for(var u=HN(arguments[o++]),c=a?KN(ou(u),a(u)):ou(u),d=c.length,l=0,p;d>l;)p=c[l++],(!ob||jN(s,u,p))&&(n[p]=u[p]);return n}:rt});var lb=f(()=>{"use strict";var GN=L(),cb=ub();GN({target:"Object",stat:!0,arity:2,forced:Object.assign!==cb},{assign:cb})});var fb=f((eG,db)=>{"use strict";lb();var VN=ge();db.exports=VN.Object.assign});var mb=f((rG,pb)=>{"use strict";var JN=fb();pb.exports=JN});var vb=f((tG,hb)=>{hb.exports=mb()});var au=f((nG,gb)=>{"use strict";gb.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 bb=f((iG,_b)=>{"use strict";var WN=U(),zN=sr(),YN=fr(),uu=au(),yb=WN("".replace),QN=RegExp("^["+uu+"]+"),XN=RegExp("(^|[^"+uu+"])["+uu+"]+$"),su=function(e){return function(r){var t=YN(zN(r));return e&1&&(t=yb(t,QN,"")),e&2&&(t=yb(t,XN,"$1")),t}};_b.exports={start:su(1),end:su(2),trim:su(3)}});var Eb=f((oG,xb)=>{"use strict";var ZN=Rs().PROPER,eD=j(),wb=au(),Sb="\u200B\x85\u180E";xb.exports=function(e){return eD(function(){return!!wb[e]()||Sb[e]()!==Sb||ZN&&wb[e].name!==e})}});var Ib=f(()=>{"use strict";var rD=L(),tD=bb().trim,nD=Eb();rD({target:"String",proto:!0,forced:nD("trim")},{trim:function(){return tD(this)}})});var Rb=f((uG,Tb)=>{"use strict";Ib();var iD=ye();Tb.exports=iD("String","trim")});var qb=f((cG,Ab)=>{"use strict";var oD=te(),aD=Rb(),cu=String.prototype;Ab.exports=function(e){var r=e.trim;return typeof e=="string"||e===cu||oD(cu,e)&&r===cu.trim?aD:r}});var Ob=f((lG,kb)=>{"use strict";var sD=qb();kb.exports=sD});var Cb=f((dG,Pb)=>{Pb.exports=Ob()});function Iu(e,r){Y.__h&&Y.__h(J,e,an||r),an=0;var t=J.__H||(J.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function Mi(e){return an=1,uD(vw,e)}function uD(e,r,t){var n=Iu(on++,2);if(n.t=e,!n.__c&&(n.__=[t?t(r):vw(void 0,r),function(s){var u=n.__N?n.__N[0]:n.__[0],c=n.t(u,s);u!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=J,!J.__f)){var i=function(s,u,c){var d;if(!n.__c.__H)return!0;var l=(0,Eu.default)(d=n.__c.__H.__).call(d,function(m){return!!m.__c});if((0,iw.default)(l).call(l,function(m){return!m.__N}))return!o||o.call(this,s,u,c);var p=n.__c.props!==s;return(0,W.default)(l).call(l,function(m){if(m.__N){var h=m.__[0];m.__=m.__N,m.__N=void 0,h!==m.__[0]&&(p=!0)}}),o&&o.call(this,s,u,c)||p};J.__f=!0;var o=J.shouldComponentUpdate,a=J.componentWillUpdate;J.componentWillUpdate=function(s,u,c){if(this.__e){var d=o;o=void 0,i(s,u,c),o=d}a&&a.call(this,s,u,c)},J.shouldComponentUpdate=i}return n.__N||n.__}function kr(e,r){var t=Iu(on++,3);!Y.__s&&hw(t.__H,r)&&(t.__=e,t.u=r,J.__H.__h.push(t))}function Bi(e){return an=5,mw(function(){return{current:e}},[])}function mw(e,r){var t=Iu(on++,7);return hw(t.__H,r)&&(t.__=e(),t.__H=r,t.__h=e),t.__}function Ce(e,r){return an=8,mw(function(){return e},r)}function cD(){for(var e;e=pw.shift();)if(e.__P&&e.__H)try{var r,t;(0,W.default)(r=e.__H.__h).call(r,Ni),(0,W.default)(t=e.__H.__h).call(t,yu),e.__H.__h=[]}catch(n){e.__H.__h=[],Y.__e(n,e.__v)}}function lD(e){var r,t=function(){clearTimeout(n),Bb&&cancelAnimationFrame(r),(0,vu.default)(e)},n=(0,vu.default)(t,100);Bb&&(r=requestAnimationFrame(t))}function Ni(e){var r=J,t=e.__c;typeof t=="function"&&(e.__c=void 0,t()),J=r}function yu(e){var r=J;e.__c=e.__(),J=r}function hw(e,r){return!e||e.length!==r.length||(0,ji.default)(r).call(r,function(t,n){return t!==e[n]})}function vw(e,r){return typeof r=="function"?r(e):r}function gw(e,r){for(var t in r)e[t]=r[t];return e}function _u(e,r){for(var t in e)if(t!=="__source"&&!(t in r))return!0;for(var n in r)if(n!=="__source"&&e[n]!==r[n])return!0;return!1}function Hb(e,r){this.props=e,this.context=r}function dD(e,r){function t(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),r?!r(this.props,i)||!a:_u(this.props,i)}function n(i){return this.shouldComponentUpdate=t,We(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function pD(e){function r(t){var n=gw({},t);return delete n.ref,e(n,t.ref||null)}return r.$$typeof=fD,r.render=r,r.prototype.isReactComponent=r.__f=!0,r.displayName="ForwardRef("+(e.displayName||e.name)+")",r}function yw(e,r,t){var n,i;return e&&(e.__c&&e.__c.__H&&((0,W.default)(n=e.__c.__H.__).call(n,function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=gw({},e)).__c!=null&&(e.__c.__P===t&&(e.__c.__P=r),e.__c=null),e.__k=e.__k&&(0,Ki.default)(i=e.__k).call(i,function(o){return yw(o,r,t)})),e}function _w(e,r,t){var n;return e&&t&&(e.__v=null,e.__k=e.__k&&(0,Ki.default)(n=e.__k).call(n,function(i){return _w(i,r,t)}),e.__c&&e.__c.__P===r&&(e.__e&&t.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=t)),e}function du(){this.__u=0,this.o=null,this.__b=null}function bw(e){var r=e.__.__c;return r&&r.__a&&r.__a(e)}function Pi(){this.i=null,this.l=null}function wD(){}function SD(){return this.cancelBubble}function xD(){return this.defaultPrevented}function A(e,r,t,n,i,o){r||(r={});var a,s,u=r;if("ref"in u)for(s in u={},r)s=="ref"?a=r[s]:u[s]=r[s];var c={type:e,props:u,key:t,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--ID,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)u[s]===void 0&&(u[s]=a[s]);return k.vnode&&k.vnode(c),c}function qD(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function kD(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}function LD(e,r){return ue(e,0)^45?(((r<<2^ue(e,0))<<2^ue(e,1))<<2^ue(e,2))<<2^ue(e,3):0}function xw(e){return(0,fw.default)(e).call(e)}function FD(e,r){return(e=r.exec(e))?e[0]:e}function D(e,r,t){return e.replace(r,t)}function bu(e,r){return(0,tt.default)(e).call(e,r)}function ue(e,r){return e.charCodeAt(r)|0}function sn(e,r,t){return(0,uw.default)(e).call(e,r,t)}function $e(e){return e.length}function Au(e){return e.length}function Ci(e,r){return r.push(e),e}function jD(e,r){return(0,Ki.default)(e).call(e,r).join("")}function Ji(e,r,t,n,i,o,a){return{value:e,root:r,parent:t,type:n,props:i,children:o,line:Vi,column:it,length:a,return:""}}function en(e,r){return DD(Ji("",null,null,"",null,null,0),e,{length:-e.length},r)}function UD(){return Q}function MD(){return Q=be>0?ue(ot,--be):0,it--,Q===10&&(it=1,Vi--),Q}function xe(){return Q=be<Ew?ue(ot,be++):0,it++,Q===10&&(it=1,Vi++),Q}function He(){return ue(ot,be)}function Di(){return be}function cn(e,r){return sn(ot,e,r)}function un(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 Iw(e){return Vi=it=1,Ew=$e(ot=e),be=0,[]}function Tw(e){return ot="",e}function Li(e){return xw(cn(be-1,wu(e===91?e+2:e===40?e+1:e)))}function BD(e){for(;(Q=He())&&Q<33;)xe();return un(e)>2||un(Q)>3?"":" "}function $D(e,r){for(;--r&&xe()&&!(Q<48||Q>102||Q>57&&Q<65||Q>70&&Q<97););return cn(e,Di()+(r<6&&He()==32&&xe()==32))}function wu(e){for(;xe();)switch(Q){case e:return be;case 34:case 39:e!==34&&e!==39&&wu(Q);break;case 40:e===41&&wu(e);break;case 92:xe();break}return be}function HD(e,r){for(;xe()&&e+Q!==57&&!(e+Q===84&&He()===47););return"/*"+cn(r,be-1)+"*"+Gi(e===47?e:xe())}function KD(e){for(;!un(He());)xe();return cn(e,be)}function GD(e){return Tw(Fi("",null,null,null,[""],e=Iw(e),0,[0],e))}function Fi(e,r,t,n,i,o,a,s,u){for(var c=0,d=0,l=a,p=0,m=0,h=0,y=1,v=1,g=1,_=0,x="",q=i,V=o,I=n,w=x;v;)switch(h=_,_=xe()){case 40:if(h!=108&&ue(w,l-1)==58){bu(w+=D(Li(_),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:w+=Li(_);break;case 9:case 10:case 13:case 32:w+=BD(h);break;case 92:w+=$D(Di()-1,7);continue;case 47:switch(He()){case 42:case 47:Ci(VD(HD(xe(),Di()),r,t),u);break;default:w+="/"}break;case 123*y:s[c++]=$e(w)*g;case 125*y:case 59:case 0:switch(_){case 0:case 125:v=0;case 59+d:g==-1&&(w=D(w,/\f/g,"")),m>0&&$e(w)-l&&Ci(m>32?Xb(w+";",n,t,l-1):Xb(D(w," ","")+";",n,t,l-2),u);break;case 59:w+=";";default:if(Ci(I=Qb(w,r,t,c,d,i,s,x,q=[],V=[],l),o),_===123)if(d===0)Fi(w,r,I,I,q,o,l,s,V);else switch(p===99&&ue(w,3)===110?100:p){case 100:case 108:case 109:case 115:Fi(e,I,I,n&&Ci(Qb(e,I,I,0,0,i,s,x,i,q=[],l),V),i,V,l,s,n?q:V);break;default:Fi(w,I,I,I,[""],V,0,s,V)}}c=d=m=0,y=g=1,x=w="",l=a;break;case 58:l=1+$e(w),m=h;default:if(y<1){if(_==123)--y;else if(_==125&&y++==0&&MD()==125)continue}switch(w+=Gi(_),_*y){case 38:g=d>0?1:(w+="\f",-1);break;case 44:s[c++]=($e(w)-1)*g,g=1;break;case 64:He()===45&&(w+=Li(xe())),p=He(),d=l=$e(x=w+=KD(Di())),_++;break;case 45:h===45&&$e(w)==2&&(y=0)}}return o}function Qb(e,r,t,n,i,o,a,s,u,c,d){for(var l=i-1,p=i===0?o:[""],m=Au(p),h=0,y=0,v=0;h<n;++h)for(var g=0,_=sn(e,l+1,l=ND(y=a[h])),x=e;g<m;++g)(x=xw(y>0?p[g]+" "+_:D(_,/&\f/g,p[g])))&&(u[v++]=x);return Ji(e,r,t,i===0?Tu:s,u,c,d)}function VD(e,r,t){return Ji(e,r,t,ww,Gi(UD()),sn(e,2,-2),0)}function Xb(e,r,t,n){return Ji(e,r,t,Ru,sn(e,0,n),sn(e,n+1,-1),n)}function nt(e,r){for(var t="",n=Au(e),i=0;i<n;i++)t+=r(e[i],i,e,r)||"";return t}function JD(e,r,t,n){switch(e.type){case CD:if(e.children.length)break;case PD:case Ru:return e.return=e.return||e.value;case ww:return"";case Sw:return e.return=e.value+"{"+nt(e.children,n)+"}";case Tu:e.value=e.props.join(",")}return $e(t=nt(e.children,n))?e.return=e.value+"{"+t+"}":""}function WD(e){var r=Au(e);return function(t,n,i,o){for(var a="",s=0;s<r;s++)a+=e[s](t,n,i,o)||"";return a}}function zD(e){return function(r){r.root||(r=r.return)&&e(r)}}function YD(e){var r=(0,lw.default)(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}function Rw(e,r){switch(LD(e,r)){case 5103:return N+"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 N+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return N+e+$i+e+ce+e+e;case 6828:case 4268:return N+e+ce+e+e;case 6165:return N+e+ce+"flex-"+e+e;case 5187:return N+e+D(e,/(\w+).+(:[^]+)/,N+"box-$1$2"+ce+"flex-$1$2")+e;case 5443:return N+e+ce+"flex-item-"+D(e,/flex-|-self/,"")+e;case 4675:return N+e+ce+"flex-line-pack"+D(e,/align-content|flex-|-self/,"")+e;case 5548:return N+e+ce+D(e,"shrink","negative")+e;case 5292:return N+e+ce+D(e,"basis","preferred-size")+e;case 6060:return N+"box-"+D(e,"-grow","")+N+e+ce+D(e,"grow","positive")+e;case 4554:return N+D(e,/([^-])(transform)/g,"$1"+N+"$2")+e;case 6187:return D(D(D(e,/(zoom-|grab)/,N+"$1"),/(image-set)/,N+"$1"),e,"")+e;case 5495:case 3959:return D(e,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return D(D(e,/(.+:)(flex-)?(.*)/,N+"box-pack:$3"+ce+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+N+e+e;case 4095:case 3583:case 4068:case 2532:return D(e,/(.+)-inline(.+)/,N+"$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($e(e)-1-r>6)switch(ue(e,r+1)){case 109:if(ue(e,r+4)!==45)break;case 102:return D(e,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+$i+(ue(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~bu(e,"stretch")?Rw(D(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(ue(e,r+1)!==115)break;case 6444:switch(ue(e,$e(e)-3-(~bu(e,"!important")&&10))){case 107:return D(e,":",":"+N)+e;case 101:return D(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(ue(e,14)===45?"inline-":"")+"box$3$1"+N+"$2$3$1"+ce+"$2box$3")+e}break;case 5936:switch(ue(e,r+11)){case 114:return N+e+ce+D(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return N+e+ce+D(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return N+e+ce+D(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return N+e+ce+e+e}return e}function oL(e){for(var r=0,t,n=0,i=e.length;i>=4;++n,i-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}function Hi(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var i=t;if(i.anim===1)return vr={name:i.name,styles:i.styles,next:vr},i.name;var o=t;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)vr={name:a.name,styles:a.styles,next:vr},a=a.next;var s=o.styles+";";return s}return cL(e,r,t)}}var u=t;if(r==null)return u;var c=r[u];return c!==void 0?c:u}function cL(e,r,t){var n="";if((0,nn.default)(t))for(var i=0;i<t.length;i++)n+=Hi(e,r,t[i])+";";else for(var o in t){var a=t[o];if(typeof a!="object"){var s=a;r!=null&&r[s]!==void 0?n+=o+"{"+r[s]+"}":ew(s)&&(n+=pu(o)+":"+rw(o,s)+";")}else if((0,nn.default)(a)&&typeof a[0]=="string"&&(r==null||r[a[0]]===void 0))for(var u=0;u<a.length;u++)ew(a[u])&&(n+=pu(o)+":"+rw(o,a[u])+";");else{var c=Hi(e,r,a);switch(o){case"animation":case"animationName":{n+=pu(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function mu(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";vr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Hi(t,r,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Hi(t,r,e[s]),n){var u=o;i+=u[s]}tw.lastIndex=0;for(var c="",d;(d=tw.exec(i))!==null;)c+="-"+d[1];var l=oL(i)+c;return{name:l,styles:i,next:vr}}function Su(e,r,t){var n,i="";return(0,W.default)(n=t.split(" ")).call(n,function(o){e[o]!==void 0?r.push(e[o]+";"):o&&(i+=o+" ")}),i}function nw(e,r){if(e.inserted[r.name]===void 0)return e.insert("",r,e.sheet,!0)}function hu(e,r,t){var n=[],i=Su(e,n,t);return n.length<2?t:i+r(n)}function _L(s){var u=s,{elementTag:e="Image",src:r="",children:t,handleExposure:n,className:i,imgStyle:o}=u,a=qe(u,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=yL(()=>{r&&n()});return e==="Image"?A("div",{className:i,style:{borderRadius:"8px"},children:We("img",C(T({},a),{ref:c,src:r!=null?r:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):A("div",C(T({},a),{ref:c,className:i,children:t}))}function bL(e,r){if(!e)return null;let t=Array.isArray(r)?r[0]:r,n=Array.isArray(r)?r[1]:0;return Array.isArray(e)?e.map((i,o)=>i&&typeof i=="object"&&"type"in i?We(i.type,C(T({},i.props),{style:C(T({},i.props.style||{}),{paddingLeft:t>0?`${t/2}px`:void 0,paddingRight:t>0?`${t/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?We(e.type,C(T({},e.props),{style:C(T({},e.props.style||{}),{paddingLeft:t>0?`${t/2}px`:void 0,paddingRight:t>0?`${t/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}var Eu,iw,W,ow,ji,vu,rn,tn,Ki,pG,tt,aw,sw,Ui,nn,gu,mG,uw,cw,lw,dw,fw,on,J,lu,Nb,an,pw,Y,Db,Lb,Fb,jb,Ub,Mb,Bb,$b,Kb,fD,mD,Gb,Vb,hD,vD,gD,yD,_D,bD,Jb,ED,Wb,zb,Yb,ID,fu,TD,RD,AD,OD,ce,$i,N,ww,Tu,Ru,PD,Sw,CD,ND,Gi,DD,Vi,it,Ew,be,Q,ot,QD,XD,ZD,Zb,eL,rL,tL,nL,iL,aL,sL,uL,Aw,ew,pu,rw,tw,vr,lL,dL,fL,pL,mL,Be,hL,vL,gL,yL,qw,kw,wL,SL,xL,EL,xu,IL,Ow,Pw,Cw,TL,RL,AL,Nw,qu=R(()=>{"use strict";wl();Eu=B(kf(),1),iw=B(Mf(),1),W=B(Zf(),1),ow=B(fp(),1),ji=B(wp(),1),vu=B(Up(),1),rn=B(xv(),1),tn=B(qv(),1),Ki=B(jv(),1),pG=B(Xv(),1),tt=B(ug(),1),aw=B(my(),1),sw=B(Ey(),1),Ui=B(Cy(),1),nn=B(My(),1),gu=B(r_(),1),mG=B(y_(),1),uw=B(q_(),1),cw=B(Q_(),1),lw=B(ib(),1),dw=B(vb(),1),fw=B(Cb(),1),an=0,pw=[],Y=k,Db=Y.__b,Lb=Y.__r,Fb=Y.diffed,jb=Y.__c,Ub=Y.unmount,Mb=Y.__;Y.__b=function(e){J=null,Db&&Db(e)},Y.__=function(e,r){e&&r.__k&&r.__k.__m&&(e.__m=r.__k.__m),Mb&&Mb(e,r)},Y.__r=function(e){var r,t,n;Lb&&Lb(e),on=0;var i=(J=e.__c).__H;i&&(lu===J?(i.__h=[],J.__h=[],(0,W.default)(r=i.__).call(r,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,W.default)(t=i.__h).call(t,Ni),(0,W.default)(n=i.__h).call(n,yu),i.__h=[],on=0)),lu=J},Y.diffed=function(e){var r;Fb&&Fb(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(pw.push(t)!==1&&Nb===Y.requestAnimationFrame||((Nb=Y.requestAnimationFrame)||lD)(cD)),(0,W.default)(r=t.__H.__).call(r,function(n){n.u&&(n.__H=n.u),n.u=void 0})),lu=J=null},Y.__c=function(e,r){(0,ji.default)(r).call(r,function(t){try{var n,i;(0,W.default)(n=t.__h).call(n,Ni),t.__h=(0,Eu.default)(i=t.__h).call(i,function(o){return!o.__||yu(o)})}catch(o){(0,ji.default)(r).call(r,function(a){a.__h&&(a.__h=[])}),r=[],Y.__e(o,t.__v)}}),jb&&jb(e,r)},Y.unmount=function(e){var r;Ub&&Ub(e);var t,n=e.__c;n&&n.__H&&((0,W.default)(r=n.__H.__).call(r,function(i){try{Ni(i)}catch(o){t=o}}),n.__H=void 0,t&&Y.__e(t,n.__v))};Bb=typeof requestAnimationFrame=="function";(Hb.prototype=new je).isPureReactComponent=!0,Hb.prototype.shouldComponentUpdate=function(e,r){return _u(this.props,e)||_u(this.state,r)};Kb=k.__b;k.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Kb&&Kb(e)};fD=typeof rn.default<"u"&&tn.default&&(0,tn.default)("react.forward_ref")||3911;mD=k.__e;k.__e=function(e,r,t,n){if(e.then){for(var i,o=r;o=o.__;)if((i=o.__c)&&i.__c)return r.__e==null&&(r.__e=t.__e,r.__k=t.__k),i.__c(e,r)}mD(e,r,t,n)};Gb=k.unmount;k.unmount=function(e){var r=e.__c;r&&r.__R&&r.__R(),r&&32&e.__u&&(e.type=null),Gb&&Gb(e)},(du.prototype=new je).__c=function(e,r){var t=r.__c,n=this;n.o==null&&(n.o=[]),n.o.push(t);var i=bw(n.__v),o=!1,a=function(){o||(o=!0,t.__R=null,i?i(s):s())};t.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=_w(u,u.__c.__P,u.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&r.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},du.prototype.componentWillUnmount=function(){this.o=[]},du.prototype.render=function(e,r){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=yw(this.__b,t,n.__O=n.__P)}this.__b=null}var i=r.__a&&We(ar,null,e.fallback);return i&&(i.__u&=-33),[We(ar,null,r.__a?null:e.children),i]};Vb=function(e,r,t){if(++t[1]===t[0]&&e.l.delete(r),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(t=e.i;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.i=t=t[2]}};(Pi.prototype=new je).__a=function(e){var r=this,t=bw(r.__v),n=r.l.get(e);return n[0]++,function(i){var o=function(){r.props.revealOrder?(n.push(i),Vb(r,e,n)):i()};t?t(o):o()}},Pi.prototype.render=function(e){this.i=null,this.l=new aw.default;var r=It(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&(0,sw.default)(r).call(r);for(var t=r.length;t--;)this.l.set(r[t],this.i=[1,0,this.i]);return e.children},Pi.prototype.componentDidUpdate=Pi.prototype.componentDidMount=function(){var e,r=this;(0,W.default)(e=this.l).call(e,function(t,n){Vb(r,n,t)})};hD=typeof rn.default<"u"&&tn.default&&(0,tn.default)("react.element")||60103,vD=/^(?: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]/,gD=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,yD=/[A-Z0-9]/g,_D=typeof document<"u",bD=function(e){return(typeof rn.default<"u"&&typeof(0,rn.default)()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};je.prototype.isReactComponent={},(0,W.default)($b=["componentWillMount","componentWillReceiveProps","componentWillUpdate"]).call($b,function(e){(0,Ui.default)(je.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(r){(0,Ui.default)(this,e,{configurable:!0,writable:!0,value:r})}})});Jb=k.event;k.event=function(e){return Jb&&(e=Jb(e)),e.persist=wD,e.isPropagationStopped=SD,e.isDefaultPrevented=xD,e.nativeEvent=e};ED={enumerable:!1,configurable:!0,get:function(){return this.class}},Wb=k.vnode;k.vnode=function(e){typeof e.type=="string"&&function(r,t,n){var i=r.props,o=r.type,a={},s=(0,tt.default)(o).call(o,"-")===-1;for(var u in i){var c=i[u];if(!(u==="value"&&"defaultValue"in i&&c==null||_D&&u==="children"&&o==="noscript"||u==="class"||u==="className")){var d=u.toLowerCase();u==="defaultValue"&&"value"in i&&i.value==null?u="value":u==="download"&&c===!0?c="":d==="translate"&&c==="no"?c=!1:d[0]==="o"&&d[1]==="n"?d==="ondoubleclick"?u="ondblclick":d!=="onchange"||o!=="input"&&o!=="textarea"||bD(i.type)?d==="onfocus"?u="onfocusin":d==="onblur"?u="onfocusout":gD.test(u)&&(u=d):d=u="oninput":s&&vD.test(u)?u=u.replace(yD,"-$&").toLowerCase():c===null&&(c=void 0),d==="oninput"&&a[u=d]&&(u="oninputCapture"),a[u]=c}}o=="select"&&a.multiple&&(0,nn.default)(a.value)&&(a.value=(0,W.default)(t=It(i.children)).call(t,function(l){var p;l.props.selected=(0,tt.default)(p=a.value).call(p,l.props.value)!=-1})),o=="select"&&a.defaultValue!=null&&(a.value=(0,W.default)(n=It(i.children)).call(n,function(l){var p;l.props.selected=a.multiple?(0,tt.default)(p=a.defaultValue).call(p,l.props.value)!=-1:a.defaultValue==l.props.value})),i.class&&!i.className?(a.class=i.class,(0,Ui.default)(a,"className",ED)):(i.className&&!i.class||i.class&&i.className)&&(a.class=a.className=i.className),r.props=a}(e),e.$$typeof=hD,Wb&&Wb(e)};zb=k.__r;k.__r=function(e){zb&&zb(e),e.__c};Yb=k.diffed;k.diffed=function(e){Yb&&Yb(e);var r=e.props,t=e.__e;t!=null&&e.type==="textarea"&&"value"in r&&r.value!==t.value&&(t.value=r.value==null?"":r.value)};ID=0;fu={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"white",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 -2px 10px rgba(0, 0, 0, 0.1)",display:"flex",flexDirection:"column",margin:"0 auto"},drawerContent:{flex:1,width:"100%",height:"100%",overflow:"auto",margin:"0 auto"}},TD=`
|
|
19
|
+
`;e.textContent=o;let a=document.head||document.getElementsByTagName("head")[0];a.insertBefore(e,a.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},n=()=>{function o(s){return I(this,null,function*(){let l=s instanceof URL?s.href:s,u=new Promise((d,c)=>{let p=new XMLHttpRequest;p.open("GET",l),p.responseType="arraybuffer",p.addEventListener("load",()=>d(p.response)),p.addEventListener("error",c),p.send()});try{let d=yield u;return new Response(d,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(d){throw console.error("Failed to load wasm:",d),d}})}let a=window.fetch;window.fetch=(s,l)=>{let u=s instanceof URL?s.href:s.toString();return u.endsWith(".wasm")?o(u):a(s,l)}},i=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),document.documentElement.removeAttribute("data-jolibox-root"),window.fetch=t};return r(),n(),i}var ff=k(()=>{"use strict"});var pf=k(()=>{"use strict"});var hf=k(()=>{"use strict";q();Ts()});var mf=k(()=>{"use strict";ie()});var vf,gf=k(()=>{"use strict";pf();hf();ie();mf();q();vf=new lt});function _t(e,t){for(var r in t)e[r]=t[r];return e}function $s(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ge(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?Oi.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 Ri(e,a,n,i,null)}function Ri(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?++Ef:i,__i:-1,__u:0};return i==null&&T.vnode!=null&&T.vnode(o),o}function rt(e){return e.children}function _e(e,t){this.props=e,this.context=t}function gr(e,t){if(t==null)return e.__?gr(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"?gr(e):null}function Tf(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 Tf(e)}}function _f(e){(!e.__d&&(e.__d=!0)&&Zt.push(e)&&!ki.__r++||yf!==T.debounceRendering)&&((yf=T.debounceRendering)||xf)(ki)}function ki(){for(var e,t,r,n,i,o,a,s=1;Zt.length;)Zt.length>s&&Zt.sort(Af),e=Zt.shift(),s=Zt.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=_t({},n)).__v=n.__v+1,T.vnode&&T.vnode(r),Hs(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?gr(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Of(o,r,a),r.__e!=i&&Tf(r)));ki.__r=0}function Rf(e,t,r,n,i,o,a,s,l,u,d){var c,p,h,m,g,y,v=n&&n.__k||If,_=t.length;for(l=GI(r,t,v,l,_),c=0;c<_;c++)(h=r.__k[c])!=null&&(p=h.__i===-1?vn:v[h.__i]||vn,h.__i=c,y=Hs(e,h,p,i,o,a,s,l,u,d),m=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&Vs(p.ref,null,h),d.push(h.ref,h.__c||m,h)),g==null&&m!=null&&(g=m),4&h.__u||p.__k===h.__k?l=kf(h,l,e):typeof h.type=="function"&&y!==void 0?l=y:m&&(l=m.nextSibling),h.__u&=-7);return r.__e=g,l}function GI(e,t,r,n,i){var o,a,s,l,u,d=r.length,c=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?Ri(null,a,null,null,null):gn(a)?Ri(rt,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Ri(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(u=a.__i=WI(a,r,l,c))!==-1&&(c--,(s=r[u])&&(s.__u|=2)),s==null||s.__v===null?(u==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):u!=l&&(u==l-1?p--:u==l+1?p++:(u>l?p--:p++,a.__u|=4))):e.__k[o]=null;if(c)for(o=0;o<d;o++)(s=r[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=gr(s)),Pf(s,s));return n}function kf(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=kf(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=gr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function bt(e,t){return t=t||[],e==null||typeof e=="boolean"||(gn(e)?e.some(function(r){bt(r,t)}):t.push(e)),t}function WI(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 bf(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||KI.test(t)?r:r+"px"}function Ti(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||bf(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||bf(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Sf,"$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=Bs,e.addEventListener(t,o?Us:js,o)):e.removeEventListener(t,o?Us:js,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 wf(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Bs++;else if(t.u<r.t)return;return r(T.event?T.event(t):t)}}}function Hs(e,t,r,n,i,o,a,s,l,u){var d,c,p,h,m,g,y,v,_,x,R,C,S,w,B,Je,mr,Ke=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=T.__b)&&d(t);e:if(typeof Ke=="function")try{if(v=t.props,_="prototype"in Ke&&Ke.prototype.render,x=(d=Ke.contextType)&&n[d.__c],R=d?x?x.props.value:d.__:n,r.__c?y=(c=t.__c=r.__c).__=c.__E:(_?t.__c=c=new Ke(v,R):(t.__c=c=new _e(v,R),c.constructor=Ke,c.render=YI),x&&x.sub(c),c.props=v,c.state||(c.state={}),c.context=R,c.__n=n,p=c.__d=!0,c.__h=[],c._sb=[]),_&&c.__s==null&&(c.__s=c.state),_&&Ke.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=_t({},c.__s)),_t(c.__s,Ke.getDerivedStateFromProps(v,c.__s))),h=c.props,m=c.state,c.__v=t,p)_&&Ke.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),_&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(_&&Ke.getDerivedStateFromProps==null&&v!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(v,R),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(v,c.__s,R)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(c.props=v,c.state=c.__s,c.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(zt){zt&&(zt.__=t)}),C=0;C<c._sb.length;C++)c.__h.push(c._sb[C]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(v,c.__s,R),_&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,m,g)})}if(c.context=R,c.props=v,c.__P=e,c.__e=!1,S=T.__r,w=0,_){for(c.state=c.__s,c.__d=!1,S&&S(t),d=c.render(c.props,c.state,c.context),B=0;B<c._sb.length;B++)c.__h.push(c._sb[B]);c._sb=[]}else do c.__d=!1,S&&S(t),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++w<25);c.state=c.__s,c.getChildContext!=null&&(n=_t(_t({},n),c.getChildContext())),_&&!p&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(h,m)),Je=d,d!=null&&d.type===rt&&d.key==null&&(Je=Cf(d.props.children)),s=Rf(e,gn(Je)?Je:[Je],t,r,n,i,o,a,s,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&a.push(c),y&&(c.__E=c.__=null)}catch(zt){if(t.__v=null,l||o!=null)if(zt.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(mr=o.length;mr--;)$s(o[mr]);else t.__e=r.__e,t.__k=r.__k;T.__e(zt,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=zI(r.__e,t,r,n,i,o,a,l,u);return(d=T.diffed)&&d(t),128&t.__u?void 0:s}function Of(e,t,r){for(var n=0;n<r.length;n++)Vs(r[n],r[++n],r[++n]);T.__c&&T.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){T.__e(o,i.__v)}})}function Cf(e){return typeof e!="object"||e==null?e:gn(e)?e.map(Cf):_t({},e)}function zI(e,t,r,n,i,o,a,s,l){var u,d,c,p,h,m,g,y=r.props,v=t.props,_=t.type;if(_=="svg"?i="http://www.w3.org/2000/svg":_=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((h=o[u])&&"setAttribute"in h==!!_&&(_?h.localName==_:h.nodeType==3)){e=h,o[u]=null;break}}if(e==null){if(_==null)return document.createTextNode(v);e=document.createElementNS(i,_,v.is&&v),s&&(T.__m&&T.__m(t,o),s=!1),o=null}if(_===null)y===v||s&&e.data===v||(e.data=v);else{if(o=o&&Oi.call(e.childNodes),y=r.props||vn,!s&&o!=null)for(y={},u=0;u<e.attributes.length;u++)y[(h=e.attributes[u]).name]=h.value;for(u in y)if(h=y[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=h;else if(!(u in v)){if(u=="value"&&"defaultValue"in v||u=="checked"&&"defaultChecked"in v)continue;Ti(e,u,null,h,i)}}for(u in v)h=v[u],u=="children"?p=h:u=="dangerouslySetInnerHTML"?d=h:u=="value"?m=h:u=="checked"?g=h:s&&typeof h!="function"||y[u]===h||Ti(e,u,h,y[u],i);if(d)s||c&&(d.__html===c.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(c&&(e.innerHTML=""),Rf(t.type==="template"?e.content:e,gn(p)?p:[p],t,r,n,_=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&gr(r,0),s,l),o!=null)for(u=o.length;u--;)$s(o[u]);s||(u="value",_=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[u]||_=="progress"&&!m||_=="option"&&m!==y[u])&&Ti(e,u,m,y[u],i),u="checked",g!==void 0&&g!==e[u]&&Ti(e,u,g,y[u],i))}return e}function Vs(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){T.__e(i,r)}}function Pf(e,t,r){var n,i;if(T.unmount&&T.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Vs(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){T.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Pf(n[i],t,r||typeof e.type!="function");r||$s(e.__e),e.__c=e.__=e.__e=void 0}function YI(e,t,r){return this.constructor(e,r)}function yr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),T.__&&T.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Hs(t,e=(!n&&r||t).__k=Ge(rt,null,[e]),i||vn,vn,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Oi.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Of(o,e,a)}var Oi,T,Ef,Fs,Zt,yf,xf,Af,Sf,Bs,js,Us,JI,vn,If,KI,gn,Js=k(()=>{vn={},If=[],KI=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,gn=Array.isArray;Oi=If.slice,T={__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}},Ef=0,Fs=function(e){return e!=null&&e.constructor==null},_e.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=_t({},this.state),typeof e=="function"&&(e=e(_t({},r),this.props)),e&&_t(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),_f(this))},_e.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_f(this))},_e.prototype.render=rt,Zt=[],xf=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Af=function(e,t){return e.__v.__b-t.__v.__b},ki.__r=0,Sf=/(PointerCapture)$|Capture$/i,Bs=0,js=wf(!1),Us=wf(!0),JI=0});var K=f((h4,Nf)=>{"use strict";Nf.exports=function(e){try{return!!e()}catch(t){return!0}}});var _r=f((m4,qf)=>{"use strict";var QI=K();qf.exports=!QI(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var G=f((v4,Mf)=>{"use strict";var Df=_r(),Lf=Function.prototype,Ks=Lf.call,XI=Df&&Lf.bind.bind(Ks,Ks);Mf.exports=Df?XI:function(e){return function(){return Ks.apply(e,arguments)}}});var he=f((g4,jf)=>{"use strict";var ZI=G();jf.exports=ZI({}.isPrototypeOf)});var Z=f((Gs,Uf)=>{"use strict";var yn=function(e){return e&&e.Math===Math&&e};Uf.exports=yn(typeof globalThis=="object"&&globalThis)||yn(typeof window=="object"&&window)||yn(typeof self=="object"&&self)||yn(typeof global=="object"&&global)||yn(typeof Gs=="object"&&Gs)||function(){return this}()||Function("return this")()});var Ci=f((y4,Hf)=>{"use strict";var eT=_r(),$f=Function.prototype,Ff=$f.apply,Bf=$f.call;Hf.exports=typeof Reflect=="object"&&Reflect.apply||(eT?Bf.bind(Ff):function(){return Bf.apply(Ff,arguments)})});var ct=f((_4,Jf)=>{"use strict";var Vf=G(),tT=Vf({}.toString),rT=Vf("".slice);Jf.exports=function(e){return rT(tT(e),8,-1)}});var _n=f((b4,Kf)=>{"use strict";var nT=ct(),iT=G();Kf.exports=function(e){if(nT(e)==="Function")return iT(e)}});var de=f((w4,Gf)=>{"use strict";var Ws=typeof document=="object"&&document.all;Gf.exports=typeof Ws=="undefined"&&Ws!==void 0?function(e){return typeof e=="function"||e===Ws}:function(e){return typeof e=="function"}});var me=f((E4,Wf)=>{"use strict";var oT=K();Wf.exports=!oT(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var We=f((x4,zf)=>{"use strict";var aT=_r(),Pi=Function.prototype.call;zf.exports=aT?Pi.bind(Pi):function(){return Pi.apply(Pi,arguments)}});var Ni=f(Xf=>{"use strict";var Yf={}.propertyIsEnumerable,Qf=Object.getOwnPropertyDescriptor,sT=Qf&&!Yf.call({1:2},1);Xf.f=sT?function(t){var r=Qf(this,t);return!!r&&r.enumerable}:Yf});var br=f((S4,Zf)=>{"use strict";Zf.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var qi=f((I4,ep)=>{"use strict";var lT=G(),uT=K(),cT=ct(),zs=Object,dT=lT("".split);ep.exports=uT(function(){return!zs("z").propertyIsEnumerable(0)})?function(e){return cT(e)==="String"?dT(e,""):zs(e)}:zs});var er=f((T4,tp)=>{"use strict";tp.exports=function(e){return e==null}});var Lt=f((R4,rp)=>{"use strict";var fT=er(),pT=TypeError;rp.exports=function(e){if(fT(e))throw new pT("Can't call method on "+e);return e}});var wt=f((k4,np)=>{"use strict";var hT=qi(),mT=Lt();np.exports=function(e){return hT(mT(e))}});var fe=f((O4,ip)=>{"use strict";var vT=de();ip.exports=function(e){return typeof e=="object"?e!==null:vT(e)}});var Le=f((C4,op)=>{"use strict";op.exports={}});var dt=f((P4,sp)=>{"use strict";var Ys=Le(),Qs=Z(),gT=de(),ap=function(e){return gT(e)?e:void 0};sp.exports=function(e,t){return arguments.length<2?ap(Ys[e])||ap(Qs[e]):Ys[e]&&Ys[e][t]||Qs[e]&&Qs[e][t]}});var Di=f((N4,cp)=>{"use strict";var yT=Z(),lp=yT.navigator,up=lp&&lp.userAgent;cp.exports=up?String(up):""});var Mi=f((q4,vp)=>{"use strict";var mp=Z(),Xs=Di(),dp=mp.process,fp=mp.Deno,pp=dp&&dp.versions||fp&&fp.version,hp=pp&&pp.v8,nt,Li;hp&&(nt=hp.split("."),Li=nt[0]>0&&nt[0]<4?1:+(nt[0]+nt[1]));!Li&&Xs&&(nt=Xs.match(/Edge\/(\d+)/),(!nt||nt[1]>=74)&&(nt=Xs.match(/Chrome\/(\d+)/),nt&&(Li=+nt[1])));vp.exports=Li});var tr=f((D4,yp)=>{"use strict";var gp=Mi(),_T=K(),bT=Z(),wT=bT.String;yp.exports=!!Object.getOwnPropertySymbols&&!_T(function(){var e=Symbol("symbol detection");return!wT(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gp&&gp<41})});var Zs=f((L4,_p)=>{"use strict";var ET=tr();_p.exports=ET&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var bn=f((M4,bp)=>{"use strict";var xT=dt(),AT=de(),ST=he(),IT=Zs(),TT=Object;bp.exports=IT?function(e){return typeof e=="symbol"}:function(e){var t=xT("Symbol");return AT(t)&&ST(t.prototype,TT(e))}});var wr=f((j4,wp)=>{"use strict";var RT=String;wp.exports=function(e){try{return RT(e)}catch(t){return"Object"}}});var rr=f((U4,Ep)=>{"use strict";var kT=de(),OT=wr(),CT=TypeError;Ep.exports=function(e){if(kT(e))return e;throw new CT(OT(e)+" is not a function")}});var ji=f((F4,xp)=>{"use strict";var PT=rr(),NT=er();xp.exports=function(e,t){var r=e[t];return NT(r)?void 0:PT(r)}});var Sp=f((B4,Ap)=>{"use strict";var el=We(),tl=de(),rl=fe(),qT=TypeError;Ap.exports=function(e,t){var r,n;if(t==="string"&&tl(r=e.toString)&&!rl(n=el(r,e))||tl(r=e.valueOf)&&!rl(n=el(r,e))||t!=="string"&&tl(r=e.toString)&&!rl(n=el(r,e)))return n;throw new qT("Can't convert object to primitive value")}});var Mt=f(($4,Ip)=>{"use strict";Ip.exports=!0});var kp=f((H4,Rp)=>{"use strict";var Tp=Z(),DT=Object.defineProperty;Rp.exports=function(e,t){try{DT(Tp,e,{value:t,configurable:!0,writable:!0})}catch(r){Tp[e]=t}return t}});var wn=f((V4,Pp)=>{"use strict";var LT=Mt(),MT=Z(),jT=kp(),Op="__core-js_shared__",Cp=Pp.exports=MT[Op]||jT(Op,{});(Cp.versions||(Cp.versions=[])).push({version:"3.41.0",mode:LT?"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 Er=f((J4,qp)=>{"use strict";var Np=wn();qp.exports=function(e,t){return Np[e]||(Np[e]=t||{})}});var jt=f((K4,Dp)=>{"use strict";var UT=Lt(),FT=Object;Dp.exports=function(e){return FT(UT(e))}});var be=f((G4,Lp)=>{"use strict";var BT=G(),$T=jt(),HT=BT({}.hasOwnProperty);Lp.exports=Object.hasOwn||function(t,r){return HT($T(t),r)}});var En=f((W4,Mp)=>{"use strict";var VT=G(),JT=0,KT=Math.random(),GT=VT(1 .toString);Mp.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+GT(++JT+KT,36)}});var pe=f((z4,Up)=>{"use strict";var WT=Z(),zT=Er(),jp=be(),YT=En(),QT=tr(),XT=Zs(),xr=WT.Symbol,nl=zT("wks"),ZT=XT?xr.for||xr:xr&&xr.withoutSetter||YT;Up.exports=function(e){return jp(nl,e)||(nl[e]=QT&&jp(xr,e)?xr[e]:ZT("Symbol."+e)),nl[e]}});var Hp=f((Y4,$p)=>{"use strict";var e1=We(),Fp=fe(),Bp=bn(),t1=ji(),r1=Sp(),n1=pe(),i1=TypeError,o1=n1("toPrimitive");$p.exports=function(e,t){if(!Fp(e)||Bp(e))return e;var r=t1(e,o1),n;if(r){if(t===void 0&&(t="default"),n=e1(r,e,t),!Fp(n)||Bp(n))return n;throw new i1("Can't convert object to primitive value")}return t===void 0&&(t="number"),r1(e,t)}});var Ui=f((Q4,Vp)=>{"use strict";var a1=Hp(),s1=bn();Vp.exports=function(e){var t=a1(e,"string");return s1(t)?t:t+""}});var ol=f((X4,Kp)=>{"use strict";var l1=Z(),Jp=fe(),il=l1.document,u1=Jp(il)&&Jp(il.createElement);Kp.exports=function(e){return u1?il.createElement(e):{}}});var al=f((Z4,Gp)=>{"use strict";var c1=me(),d1=K(),f1=ol();Gp.exports=!c1&&!d1(function(){return Object.defineProperty(f1("div"),"a",{get:function(){return 7}}).a!==7})});var Fi=f(zp=>{"use strict";var p1=me(),h1=We(),m1=Ni(),v1=br(),g1=wt(),y1=Ui(),_1=be(),b1=al(),Wp=Object.getOwnPropertyDescriptor;zp.f=p1?Wp:function(t,r){if(t=g1(t),r=y1(r),b1)try{return Wp(t,r)}catch(n){}if(_1(t,r))return v1(!h1(m1.f,t,r),t[r])}});var Qp=f((tH,Yp)=>{"use strict";var w1=K(),E1=de(),x1=/#|\.prototype\./,xn=function(e,t){var r=S1[A1(e)];return r===T1?!0:r===I1?!1:E1(t)?w1(t):!!t},A1=xn.normalize=function(e){return String(e).replace(x1,".").toLowerCase()},S1=xn.data={},I1=xn.NATIVE="N",T1=xn.POLYFILL="P";Yp.exports=xn});var An=f((rH,Zp)=>{"use strict";var Xp=_n(),R1=rr(),k1=_r(),O1=Xp(Xp.bind);Zp.exports=function(e,t){return R1(e),t===void 0?e:k1?O1(e,t):function(){return e.apply(t,arguments)}}});var sl=f((nH,eh)=>{"use strict";var C1=me(),P1=K();eh.exports=C1&&P1(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Et=f((iH,th)=>{"use strict";var N1=fe(),q1=String,D1=TypeError;th.exports=function(e){if(N1(e))return e;throw new D1(q1(e)+" is not an object")}});var ze=f(nh=>{"use strict";var L1=me(),M1=al(),j1=sl(),Bi=Et(),rh=Ui(),U1=TypeError,ll=Object.defineProperty,F1=Object.getOwnPropertyDescriptor,ul="enumerable",cl="configurable",dl="writable";nh.f=L1?j1?function(t,r,n){if(Bi(t),r=rh(r),Bi(n),typeof t=="function"&&r==="prototype"&&"value"in n&&dl in n&&!n[dl]){var i=F1(t,r);i&&i[dl]&&(t[r]=n.value,n={configurable:cl in n?n[cl]:i[cl],enumerable:ul in n?n[ul]:i[ul],writable:!1})}return ll(t,r,n)}:ll:function(t,r,n){if(Bi(t),r=rh(r),Bi(n),M1)try{return ll(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new U1("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var nr=f((aH,ih)=>{"use strict";var B1=me(),$1=ze(),H1=br();ih.exports=B1?function(e,t,r){return $1.f(e,t,H1(1,r))}:function(e,t,r){return e[t]=r,e}});var $=f((sH,ah)=>{"use strict";var Sn=Z(),V1=Ci(),J1=_n(),K1=de(),G1=Fi().f,W1=Qp(),Ar=Le(),z1=An(),Sr=nr(),oh=be();wn();var Y1=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return V1(e,this,arguments)};return t.prototype=e.prototype,t};ah.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Sn:i?Sn[r]:Sn[r]&&Sn[r].prototype,s=n?Ar:Ar[r]||Sr(Ar,r,{})[r],l=s.prototype,u,d,c,p,h,m,g,y,v;for(p in t)u=W1(n?p:r+(i?".":"#")+p,e.forced),d=!u&&a&&oh(a,p),m=s[p],d&&(e.dontCallGetSet?(v=G1(a,p),g=v&&v.value):g=a[p]),h=d&&g?g:t[p],!(!u&&!o&&typeof m==typeof h)&&(e.bind&&d?y=z1(h,Sn):e.wrap&&d?y=Y1(h):o&&K1(h)?y=J1(h):y=h,(e.sham||h&&h.sham||m&&m.sham)&&Sr(y,"sham",!0),Sr(s,p,y),o&&(c=r+"Prototype",oh(Ar,c)||Sr(Ar,c,{}),Sr(Ar[c],p,h),e.real&&l&&(u||!l[p])&&Sr(l,p,h)))}});var lh=f((lH,sh)=>{"use strict";var Q1=Math.ceil,X1=Math.floor;sh.exports=Math.trunc||function(t){var r=+t;return(r>0?X1:Q1)(r)}});var In=f((uH,uh)=>{"use strict";var Z1=lh();uh.exports=function(e){var t=+e;return t!==t||t===0?0:Z1(t)}});var fl=f((cH,ch)=>{"use strict";var eR=In(),tR=Math.min;ch.exports=function(e){var t=eR(e);return t>0?tR(t,9007199254740991):0}});var ir=f((dH,dh)=>{"use strict";var rR=fl();dh.exports=function(e){return rR(e.length)}});var Ut=f((fH,fh)=>{"use strict";var nR=ct();fh.exports=Array.isArray||function(t){return nR(t)==="Array"}});var $i=f((pH,hh)=>{"use strict";var iR=pe(),oR=iR("toStringTag"),ph={};ph[oR]="z";hh.exports=String(ph)==="[object z]"});var Ir=f((hH,mh)=>{"use strict";var aR=$i(),sR=de(),Hi=ct(),lR=pe(),uR=lR("toStringTag"),cR=Object,dR=Hi(function(){return arguments}())==="Arguments",fR=function(e,t){try{return e[t]}catch(r){}};mh.exports=aR?Hi:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=fR(t=cR(e),uR))=="string"?r:dR?Hi(t):(n=Hi(t))==="Object"&&sR(t.callee)?"Arguments":n}});var gh=f((mH,vh)=>{"use strict";var pR=G(),hR=de(),pl=wn(),mR=pR(Function.toString);hR(pl.inspectSource)||(pl.inspectSource=function(e){return mR(e)});vh.exports=pl.inspectSource});var ml=f((vH,Eh)=>{"use strict";var vR=G(),gR=K(),yh=de(),yR=Ir(),_R=dt(),bR=gh(),_h=function(){},bh=_R("Reflect","construct"),hl=/^\s*(?:class|function)\b/,wR=vR(hl.exec),ER=!hl.test(_h),Tn=function(t){if(!yh(t))return!1;try{return bh(_h,[],t),!0}catch(r){return!1}},wh=function(t){if(!yh(t))return!1;switch(yR(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ER||!!wR(hl,bR(t))}catch(r){return!0}};wh.sham=!0;Eh.exports=!bh||gR(function(){var e;return Tn(Tn.call)||!Tn(Object)||!Tn(function(){e=!0})||e})?wh:Tn});var Ih=f((gH,Sh)=>{"use strict";var xh=Ut(),xR=ml(),AR=fe(),SR=pe(),IR=SR("species"),Ah=Array;Sh.exports=function(e){var t;return xh(e)&&(t=e.constructor,xR(t)&&(t===Ah||xh(t.prototype))?t=void 0:AR(t)&&(t=t[IR],t===null&&(t=void 0))),t===void 0?Ah:t}});var Vi=f((yH,Th)=>{"use strict";var TR=Ih();Th.exports=function(e,t){return new(TR(e))(t===0?0:t)}});var xt=f((_H,kh)=>{"use strict";var RR=An(),kR=G(),OR=qi(),CR=jt(),PR=ir(),NR=Vi(),Rh=kR([].push),Ft=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,u,d,c){for(var p=CR(l),h=OR(p),m=PR(h),g=RR(u,d),y=0,v=c||NR,_=t?v(l,m):r||a?v(l,0):void 0,x,R;m>y;y++)if((s||y in h)&&(x=h[y],R=g(x,y,p),e))if(t)_[y]=R;else if(R)switch(e){case 3:return!0;case 5:return x;case 6:return y;case 2:Rh(_,x)}else switch(e){case 4:return!1;case 7:Rh(_,x)}return o?-1:n||i?i:_}};kh.exports={forEach:Ft(0),map:Ft(1),filter:Ft(2),some:Ft(3),every:Ft(4),find:Ft(5),findIndex:Ft(6),filterReject:Ft(7)}});var Tr=f((bH,Oh)=>{"use strict";var qR=K(),DR=pe(),LR=Mi(),MR=DR("species");Oh.exports=function(e){return LR>=51||!qR(function(){var t=[],r=t.constructor={};return r[MR]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Ch=f(()=>{"use strict";var jR=$(),UR=xt().filter,FR=Tr(),BR=FR("filter");jR({target:"Array",proto:!0,forced:!BR},{filter:function(t){return UR(this,t,arguments.length>1?arguments[1]:void 0)}})});var Me=f((xH,Ph)=>{"use strict";var $R=Z(),HR=Le();Ph.exports=function(e,t){var r=HR[e+"Prototype"],n=r&&r[t];if(n)return n;var i=$R[e],o=i&&i.prototype;return o&&o[t]}});var qh=f((AH,Nh)=>{"use strict";Ch();var VR=Me();Nh.exports=VR("Array","filter")});var Lh=f((SH,Dh)=>{"use strict";var JR=he(),KR=qh(),vl=Array.prototype;Dh.exports=function(e){var t=e.filter;return e===vl||JR(vl,e)&&t===vl.filter?KR:t}});var jh=f((IH,Mh)=>{"use strict";var GR=Lh();Mh.exports=GR});var Fh=f((TH,Uh)=>{Uh.exports=jh()});var Rn=f((RH,Bh)=>{"use strict";var WR=K();Bh.exports=function(e,t){var r=[][e];return!!r&&WR(function(){r.call(null,t||function(){return 1},1)})}});var $h=f(()=>{"use strict";var zR=$(),YR=xt().every,QR=Rn(),XR=QR("every");zR({target:"Array",proto:!0,forced:!XR},{every:function(t){return YR(this,t,arguments.length>1?arguments[1]:void 0)}})});var Vh=f((CH,Hh)=>{"use strict";$h();var ZR=Me();Hh.exports=ZR("Array","every")});var Kh=f((PH,Jh)=>{"use strict";var ek=he(),tk=Vh(),gl=Array.prototype;Jh.exports=function(e){var t=e.every;return e===gl||ek(gl,e)&&t===gl.every?tk:t}});var Wh=f((NH,Gh)=>{"use strict";var rk=Kh();Gh.exports=rk});var Yh=f((qH,zh)=>{zh.exports=Wh()});var Xh=f((DH,Qh)=>{"use strict";var nk=xt().forEach,ik=Rn(),ok=ik("forEach");Qh.exports=ok?[].forEach:function(t){return nk(this,t,arguments.length>1?arguments[1]:void 0)}});var em=f(()=>{"use strict";var ak=$(),Zh=Xh();ak({target:"Array",proto:!0,forced:[].forEach!==Zh},{forEach:Zh})});var rm=f((jH,tm)=>{"use strict";em();var sk=Me();tm.exports=sk("Array","forEach")});var im=f((UH,nm)=>{"use strict";var lk=rm();nm.exports=lk});var om=f(()=>{});var sm=f(($H,am)=>{"use strict";var uk=Ir(),ck=be(),dk=he(),fk=im();om();var yl=Array.prototype,pk={DOMTokenList:!0,NodeList:!0};am.exports=function(e){var t=e.forEach;return e===yl||dk(yl,e)&&t===yl.forEach||ck(pk,uk(e))?fk:t}});var um=f((HH,lm)=>{lm.exports=sm()});var _l=f((VH,cm)=>{"use strict";var hk=TypeError,mk=9007199254740991;cm.exports=function(e){if(e>mk)throw hk("Maximum allowed index exceeded");return e}});var Ji=f((JH,dm)=>{"use strict";var vk=me(),gk=ze(),yk=br();dm.exports=function(e,t,r){vk?gk.f(e,t,yk(0,r)):e[t]=r}});var bl=f(()=>{"use strict";var _k=$(),bk=K(),wk=Ut(),Ek=fe(),xk=jt(),Ak=ir(),fm=_l(),pm=Ji(),Sk=Vi(),Ik=Tr(),Tk=pe(),Rk=Mi(),hm=Tk("isConcatSpreadable"),kk=Rk>=51||!bk(function(){var e=[];return e[hm]=!1,e.concat()[0]!==e}),Ok=function(e){if(!Ek(e))return!1;var t=e[hm];return t!==void 0?!!t:wk(e)},Ck=!kk||!Ik("concat");_k({target:"Array",proto:!0,arity:1,forced:Ck},{concat:function(t){var r=xk(this),n=Sk(r,0),i=0,o,a,s,l,u;for(o=-1,s=arguments.length;o<s;o++)if(u=o===-1?r:arguments[o],Ok(u))for(l=Ak(u),fm(i+l),a=0;a<l;a++,i++)a in u&&pm(n,i,u[a]);else fm(i+1),pm(n,i++,u);return n.length=i,n}})});var vm=f((WH,mm)=>{"use strict";bl();var Pk=Me();mm.exports=Pk("Array","concat")});var ym=f((zH,gm)=>{"use strict";var Nk=he(),qk=vm(),wl=Array.prototype;gm.exports=function(e){var t=e.concat;return e===wl||Nk(wl,e)&&t===wl.concat?qk:t}});var bm=f((YH,_m)=>{"use strict";var Dk=ym();_m.exports=Dk});var Em=f((QH,wm)=>{wm.exports=bm()});var xm=f(()=>{"use strict";var Lk=$(),Mk=xt().some,jk=Rn(),Uk=jk("some");Lk({target:"Array",proto:!0,forced:!Uk},{some:function(t){return Mk(this,t,arguments.length>1?arguments[1]:void 0)}})});var Sm=f((eV,Am)=>{"use strict";xm();var Fk=Me();Am.exports=Fk("Array","some")});var Tm=f((tV,Im)=>{"use strict";var Bk=he(),$k=Sm(),El=Array.prototype;Im.exports=function(e){var t=e.some;return e===El||Bk(El,e)&&t===El.some?$k:t}});var km=f((rV,Rm)=>{"use strict";var Hk=Tm();Rm.exports=Hk});var Cm=f((nV,Om)=>{Om.exports=km()});var Nm=f((iV,Pm)=>{"use strict";var kn=Z(),Vk=Di(),Jk=ct(),Ki=function(e){return Vk.slice(0,e.length)===e};Pm.exports=function(){return Ki("Bun/")?"BUN":Ki("Cloudflare-Workers")?"CLOUDFLARE":Ki("Deno/")?"DENO":Ki("Node.js/")?"NODE":kn.Bun&&typeof Bun.version=="string"?"BUN":kn.Deno&&typeof Deno.version=="object"?"DENO":Jk(kn.process)==="process"?"NODE":kn.window&&kn.document?"BROWSER":"REST"}()});var Rr=f((oV,qm)=>{"use strict";var Kk=G();qm.exports=Kk([].slice)});var Lm=f((aV,Dm)=>{"use strict";var Gk=TypeError;Dm.exports=function(e,t){if(e<t)throw new Gk("Not enough arguments");return e}});var xl=f((sV,jm)=>{"use strict";var Mm=Z(),Wk=Ci(),zk=de(),Yk=Nm(),Qk=Di(),Xk=Rr(),Zk=Lm(),eO=Mm.Function,tO=/MSIE .\./.test(Qk)||Yk==="BUN"&&function(){var e=Mm.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();jm.exports=function(e,t){var r=t?2:1;return tO?function(n,i){var o=Zk(arguments.length,1)>r,a=zk(n)?n:eO(n),s=o?Xk(arguments,r):[],l=o?function(){Wk(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var Bm=f(()=>{"use strict";var rO=$(),Fm=Z(),nO=xl(),Um=nO(Fm.setInterval,!0);rO({global:!0,bind:!0,forced:Fm.setInterval!==Um},{setInterval:Um})});var Vm=f(()=>{"use strict";var iO=$(),Hm=Z(),oO=xl(),$m=oO(Hm.setTimeout,!0);iO({global:!0,bind:!0,forced:Hm.setTimeout!==$m},{setTimeout:$m})});var Jm=f(()=>{"use strict";Bm();Vm()});var Gm=f((hV,Km)=>{"use strict";Jm();var aO=Le();Km.exports=aO.setTimeout});var zm=f((mV,Wm)=>{Wm.exports=Gm()});var Gi=f(()=>{});var Bt=f((yV,Ym)=>{"use strict";var sO=Ir(),lO=String;Ym.exports=function(e){if(sO(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return lO(e)}});var Wi=f((_V,Qm)=>{"use strict";var uO=In(),cO=Math.max,dO=Math.min;Qm.exports=function(e,t){var r=uO(e);return r<0?cO(r+t,0):dO(r,t)}});var Al=f((bV,Zm)=>{"use strict";var fO=wt(),pO=Wi(),hO=ir(),Xm=function(e){return function(t,r,n){var i=fO(t),o=hO(i);if(o===0)return!e&&-1;var a=pO(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}};Zm.exports={includes:Xm(!0),indexOf:Xm(!1)}});var kr=f((wV,ev)=>{"use strict";ev.exports={}});var Il=f((EV,rv)=>{"use strict";var mO=G(),Sl=be(),vO=wt(),gO=Al().indexOf,yO=kr(),tv=mO([].push);rv.exports=function(e,t){var r=vO(e),n=0,i=[],o;for(o in r)!Sl(yO,o)&&Sl(r,o)&&tv(i,o);for(;t.length>n;)Sl(r,o=t[n++])&&(~gO(i,o)||tv(i,o));return i}});var zi=f((xV,nv)=>{"use strict";nv.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Yi=f((AV,iv)=>{"use strict";var _O=Il(),bO=zi();iv.exports=Object.keys||function(t){return _O(t,bO)}});var Tl=f(ov=>{"use strict";var wO=me(),EO=sl(),xO=ze(),AO=Et(),SO=wt(),IO=Yi();ov.f=wO&&!EO?Object.defineProperties:function(t,r){AO(t);for(var n=SO(r),i=IO(r),o=i.length,a=0,s;o>a;)xO.f(t,s=i[a++],n[s]);return t}});var sv=f((IV,av)=>{"use strict";var TO=dt();av.exports=TO("document","documentElement")});var On=f((TV,uv)=>{"use strict";var RO=Er(),kO=En(),lv=RO("keys");uv.exports=function(e){return lv[e]||(lv[e]=kO(e))}});var Or=f((RV,vv)=>{"use strict";var OO=Et(),CO=Tl(),cv=zi(),PO=kr(),NO=sv(),qO=ol(),DO=On(),dv=">",fv="<",kl="prototype",Ol="script",hv=DO("IE_PROTO"),Rl=function(){},mv=function(e){return fv+Ol+dv+e+fv+"/"+Ol+dv},pv=function(e){e.write(mv("")),e.close();var t=e.parentWindow.Object;return e=null,t},LO=function(){var e=qO("iframe"),t="java"+Ol+":",r;return e.style.display="none",NO.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(mv("document.F=Object")),r.close(),r.F},Qi,Xi=function(){try{Qi=new ActiveXObject("htmlfile")}catch(t){}Xi=typeof document!="undefined"?document.domain&&Qi?pv(Qi):LO():pv(Qi);for(var e=cv.length;e--;)delete Xi[kl][cv[e]];return Xi()};PO[hv]=!0;vv.exports=Object.create||function(t,r){var n;return t!==null?(Rl[kl]=OO(t),n=new Rl,Rl[kl]=null,n[hv]=t):n=Xi(),r===void 0?n:CO.f(n,r)}});var Zi=f(gv=>{"use strict";var MO=Il(),jO=zi(),UO=jO.concat("length","prototype");gv.f=Object.getOwnPropertyNames||function(t){return MO(t,UO)}});var Cl=f((OV,bv)=>{"use strict";var FO=ct(),BO=wt(),yv=Zi().f,$O=Rr(),_v=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],HO=function(e){try{return yv(e)}catch(t){return $O(_v)}};bv.exports.f=function(t){return _v&&FO(t)==="Window"?HO(t):yv(BO(t))}});var eo=f(wv=>{"use strict";wv.f=Object.getOwnPropertySymbols});var Cr=f((PV,Ev)=>{"use strict";var VO=nr();Ev.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:VO(e,t,r),e}});var to=f((NV,xv)=>{"use strict";var JO=ze();xv.exports=function(e,t,r){return JO.f(e,t,r)}});var Pl=f(Av=>{"use strict";var KO=pe();Av.f=KO});var Pe=f((DV,Iv)=>{"use strict";var Sv=Le(),GO=be(),WO=Pl(),zO=ze().f;Iv.exports=function(e){var t=Sv.Symbol||(Sv.Symbol={});GO(t,e)||zO(t,e,{value:WO.f(e)})}});var Nl=f((LV,Tv)=>{"use strict";var YO=We(),QO=dt(),XO=pe(),ZO=Cr();Tv.exports=function(){var e=QO("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=XO("toPrimitive");t&&!t[n]&&ZO(t,n,function(i){return YO(r,this)},{arity:1})}});var kv=f((MV,Rv)=>{"use strict";var eC=$i(),tC=Ir();Rv.exports=eC?{}.toString:function(){return"[object "+tC(this)+"]"}});var $t=f((jV,Cv)=>{"use strict";var rC=$i(),nC=ze().f,iC=nr(),oC=be(),aC=kv(),sC=pe(),Ov=sC("toStringTag");Cv.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(oC(i,Ov)||nC(i,Ov,{configurable:!0,value:t}),n&&!rC&&iC(i,"toString",aC))}});var ql=f((UV,Nv)=>{"use strict";var lC=Z(),uC=de(),Pv=lC.WeakMap;Nv.exports=uC(Pv)&&/native code/.test(String(Pv))});var Ht=f((FV,Lv)=>{"use strict";var cC=ql(),Dv=Z(),dC=fe(),fC=nr(),Dl=be(),Ll=wn(),pC=On(),hC=kr(),qv="Object already initialized",Ml=Dv.TypeError,mC=Dv.WeakMap,ro,Cn,no,vC=function(e){return no(e)?Cn(e):ro(e,{})},gC=function(e){return function(t){var r;if(!dC(t)||(r=Cn(t)).type!==e)throw new Ml("Incompatible receiver, "+e+" required");return r}};cC||Ll.state?(it=Ll.state||(Ll.state=new mC),it.get=it.get,it.has=it.has,it.set=it.set,ro=function(e,t){if(it.has(e))throw new Ml(qv);return t.facade=e,it.set(e,t),t},Cn=function(e){return it.get(e)||{}},no=function(e){return it.has(e)}):(or=pC("state"),hC[or]=!0,ro=function(e,t){if(Dl(e,or))throw new Ml(qv);return t.facade=e,fC(e,or,t),t},Cn=function(e){return Dl(e,or)?e[or]:{}},no=function(e){return Dl(e,or)});var it,or;Lv.exports={set:ro,get:Cn,has:no,enforce:vC,getterFor:gC}});var Zv=f(()=>{"use strict";var io=$(),qn=Z(),Kl=We(),yC=G(),_C=Mt(),Pr=me(),Nr=tr(),bC=K(),ve=be(),wC=he(),Bl=Et(),oo=wt(),Gl=Ui(),EC=Bt(),$l=br(),qr=Or(),Uv=Yi(),xC=Zi(),Fv=Cl(),AC=eo(),Bv=Fi(),$v=ze(),SC=Tl(),Hv=Ni(),jl=Cr(),IC=to(),Wl=Er(),TC=On(),Vv=kr(),Mv=En(),RC=pe(),kC=Pl(),OC=Pe(),CC=Nl(),PC=$t(),Jv=Ht(),ao=xt().forEach,je=TC("hidden"),so="Symbol",Nn="prototype",NC=Jv.set,jv=Jv.getterFor(so),Ye=Object[Nn],ar=qn.Symbol,Pn=ar&&ar[Nn],qC=qn.RangeError,DC=qn.TypeError,Ul=qn.QObject,Kv=Bv.f,sr=$v.f,Gv=Fv.f,LC=Hv.f,Wv=yC([].push),At=Wl("symbols"),Dn=Wl("op-symbols"),MC=Wl("wks"),Hl=!Ul||!Ul[Nn]||!Ul[Nn].findChild,zv=function(e,t,r){var n=Kv(Ye,t);n&&delete Ye[t],sr(e,t,r),n&&e!==Ye&&sr(Ye,t,n)},Vl=Pr&&bC(function(){return qr(sr({},"a",{get:function(){return sr(this,"a",{value:7}).a}})).a!==7})?zv:sr,Fl=function(e,t){var r=At[e]=qr(Pn);return NC(r,{type:so,tag:e,description:t}),Pr||(r.description=t),r},lo=function(t,r,n){t===Ye&&lo(Dn,r,n),Bl(t);var i=Gl(r);return Bl(n),ve(At,i)?(n.enumerable?(ve(t,je)&&t[je][i]&&(t[je][i]=!1),n=qr(n,{enumerable:$l(0,!1)})):(ve(t,je)||sr(t,je,$l(1,qr(null))),t[je][i]=!0),Vl(t,i,n)):sr(t,i,n)},zl=function(t,r){Bl(t);var n=oo(r),i=Uv(n).concat(Xv(n));return ao(i,function(o){(!Pr||Kl(Jl,n,o))&&lo(t,o,n[o])}),t},jC=function(t,r){return r===void 0?qr(t):zl(qr(t),r)},Jl=function(t){var r=Gl(t),n=Kl(LC,this,r);return this===Ye&&ve(At,r)&&!ve(Dn,r)?!1:n||!ve(this,r)||!ve(At,r)||ve(this,je)&&this[je][r]?n:!0},Yv=function(t,r){var n=oo(t),i=Gl(r);if(!(n===Ye&&ve(At,i)&&!ve(Dn,i))){var o=Kv(n,i);return o&&ve(At,i)&&!(ve(n,je)&&n[je][i])&&(o.enumerable=!0),o}},Qv=function(t){var r=Gv(oo(t)),n=[];return ao(r,function(i){!ve(At,i)&&!ve(Vv,i)&&Wv(n,i)}),n},Xv=function(e){var t=e===Ye,r=Gv(t?Dn:oo(e)),n=[];return ao(r,function(i){ve(At,i)&&(!t||ve(Ye,i))&&Wv(n,At[i])}),n};Nr||(ar=function(){if(wC(Pn,this))throw new DC("Symbol is not a constructor");var t=!arguments.length||arguments[0]===void 0?void 0:EC(arguments[0]),r=Mv(t),n=function(i){var o=this===void 0?qn:this;o===Ye&&Kl(n,Dn,i),ve(o,je)&&ve(o[je],r)&&(o[je][r]=!1);var a=$l(1,i);try{Vl(o,r,a)}catch(s){if(!(s instanceof qC))throw s;zv(o,r,a)}};return Pr&&Hl&&Vl(Ye,r,{configurable:!0,set:n}),Fl(r,t)},Pn=ar[Nn],jl(Pn,"toString",function(){return jv(this).tag}),jl(ar,"withoutSetter",function(e){return Fl(Mv(e),e)}),Hv.f=Jl,$v.f=lo,SC.f=zl,Bv.f=Yv,xC.f=Fv.f=Qv,AC.f=Xv,kC.f=function(e){return Fl(RC(e),e)},Pr&&(IC(Pn,"description",{configurable:!0,get:function(){return jv(this).description}}),_C||jl(Ye,"propertyIsEnumerable",Jl,{unsafe:!0})));io({global:!0,constructor:!0,wrap:!0,forced:!Nr,sham:!Nr},{Symbol:ar});ao(Uv(MC),function(e){OC(e)});io({target:so,stat:!0,forced:!Nr},{useSetter:function(){Hl=!0},useSimple:function(){Hl=!1}});io({target:"Object",stat:!0,forced:!Nr,sham:!Pr},{create:jC,defineProperty:lo,defineProperties:zl,getOwnPropertyDescriptor:Yv});io({target:"Object",stat:!0,forced:!Nr},{getOwnPropertyNames:Qv});CC();PC(ar,so);Vv[je]=!0});var Yl=f((HV,eg)=>{"use strict";var UC=tr();eg.exports=UC&&!!Symbol.for&&!!Symbol.keyFor});var rg=f(()=>{"use strict";var FC=$(),BC=dt(),$C=be(),HC=Bt(),tg=Er(),VC=Yl(),Ql=tg("string-to-symbol-registry"),JC=tg("symbol-to-string-registry");FC({target:"Symbol",stat:!0,forced:!VC},{for:function(e){var t=HC(e);if($C(Ql,t))return Ql[t];var r=BC("Symbol")(t);return Ql[t]=r,JC[r]=t,r}})});var ig=f(()=>{"use strict";var KC=$(),GC=be(),WC=bn(),zC=wr(),YC=Er(),QC=Yl(),ng=YC("symbol-to-string-registry");KC({target:"Symbol",stat:!0,forced:!QC},{keyFor:function(t){if(!WC(t))throw new TypeError(zC(t)+" is not a symbol");if(GC(ng,t))return ng[t]}})});var ug=f((WV,lg)=>{"use strict";var XC=G(),og=Ut(),ZC=de(),ag=ct(),eP=Bt(),sg=XC([].push);lg.exports=function(e){if(ZC(e))return e;if(og(e)){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];typeof i=="string"?sg(r,i):(typeof i=="number"||ag(i)==="Number"||ag(i)==="String")&&sg(r,eP(i))}var o=r.length,a=!0;return function(s,l){if(a)return a=!1,l;if(og(this))return l;for(var u=0;u<o;u++)if(r[u]===s)return l}}}});var wg=f(()=>{"use strict";var tP=$(),gg=dt(),yg=Ci(),rP=We(),Ln=G(),_g=K(),cg=de(),dg=bn(),bg=Rr(),nP=ug(),iP=tr(),oP=String,Vt=gg("JSON","stringify"),uo=Ln(/./.exec),fg=Ln("".charAt),aP=Ln("".charCodeAt),sP=Ln("".replace),lP=Ln(1 .toString),uP=/[\uD800-\uDFFF]/g,pg=/^[\uD800-\uDBFF]$/,hg=/^[\uDC00-\uDFFF]$/,mg=!iP||_g(function(){var e=gg("Symbol")("stringify detection");return Vt([e])!=="[null]"||Vt({a:e})!=="{}"||Vt(Object(e))!=="{}"}),vg=_g(function(){return Vt("\uDF06\uD834")!=='"\\udf06\\ud834"'||Vt("\uDEAD")!=='"\\udead"'}),cP=function(e,t){var r=bg(arguments),n=nP(t);if(!(!cg(n)&&(e===void 0||dg(e))))return r[1]=function(i,o){if(cg(n)&&(o=rP(n,this,oP(i),o)),!dg(o))return o},yg(Vt,null,r)},dP=function(e,t,r){var n=fg(r,t-1),i=fg(r,t+1);return uo(pg,e)&&!uo(hg,i)||uo(hg,e)&&!uo(pg,n)?"\\u"+lP(aP(e,0),16):e};Vt&&tP({target:"JSON",stat:!0,arity:3,forced:mg||vg},{stringify:function(t,r,n){var i=bg(arguments),o=yg(mg?cP:Vt,null,i);return vg&&typeof o=="string"?sP(o,uP,dP):o}})});var xg=f(()=>{"use strict";var fP=$(),pP=tr(),hP=K(),Eg=eo(),mP=jt(),vP=!pP||hP(function(){Eg.f(1)});fP({target:"Object",stat:!0,forced:vP},{getOwnPropertySymbols:function(t){var r=Eg.f;return r?r(mP(t)):[]}})});var Xl=f(()=>{"use strict";Zv();rg();ig();wg();xg()});var Ag=f(()=>{"use strict";var gP=Pe();gP("asyncIterator")});var Sg=f(()=>{});var Ig=f(()=>{"use strict";var yP=Pe();yP("hasInstance")});var Tg=f(()=>{"use strict";var _P=Pe();_P("isConcatSpreadable")});var Rg=f(()=>{"use strict";var bP=Pe();bP("iterator")});var kg=f(()=>{"use strict";var wP=Pe();wP("match")});var Og=f(()=>{"use strict";var EP=Pe();EP("matchAll")});var Cg=f(()=>{"use strict";var xP=Pe();xP("replace")});var Pg=f(()=>{"use strict";var AP=Pe();AP("search")});var Ng=f(()=>{"use strict";var SP=Pe();SP("species")});var qg=f(()=>{"use strict";var IP=Pe();IP("split")});var Dg=f(()=>{"use strict";var TP=Pe(),RP=Nl();TP("toPrimitive");RP()});var Lg=f(()=>{"use strict";var kP=dt(),OP=Pe(),CP=$t();OP("toStringTag");CP(kP("Symbol"),"Symbol")});var Mg=f(()=>{"use strict";var PP=Pe();PP("unscopables")});var jg=f(()=>{"use strict";var NP=Z(),qP=$t();qP(NP.JSON,"JSON",!0)});var Ug=f(()=>{});var Fg=f(()=>{});var $g=f((DJ,Bg)=>{"use strict";bl();Gi();Xl();Ag();Sg();Ig();Tg();Rg();kg();Og();Cg();Pg();Ng();qg();Dg();Lg();Mg();jg();Ug();Fg();var DP=Le();Bg.exports=DP.Symbol});var Vg=f((LJ,Hg)=>{"use strict";Hg.exports=function(){}});var lr=f((MJ,Jg)=>{"use strict";Jg.exports={}});var tu=f((jJ,Gg)=>{"use strict";var Zl=me(),LP=be(),Kg=Function.prototype,MP=Zl&&Object.getOwnPropertyDescriptor,eu=LP(Kg,"name"),jP=eu&&(function(){}).name==="something",UP=eu&&(!Zl||Zl&&MP(Kg,"name").configurable);Gg.exports={EXISTS:eu,PROPER:jP,CONFIGURABLE:UP}});var zg=f((UJ,Wg)=>{"use strict";var FP=K();Wg.exports=!FP(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var nu=f((FJ,Qg)=>{"use strict";var BP=be(),$P=de(),HP=jt(),VP=On(),JP=zg(),Yg=VP("IE_PROTO"),ru=Object,KP=ru.prototype;Qg.exports=JP?ru.getPrototypeOf:function(e){var t=HP(e);if(BP(t,Yg))return t[Yg];var r=t.constructor;return $P(r)&&t instanceof r?r.prototype:t instanceof ru?KP:null}});var su=f((BJ,ey)=>{"use strict";var GP=K(),WP=de(),zP=fe(),YP=Or(),Xg=nu(),QP=Cr(),XP=pe(),ZP=Mt(),au=XP("iterator"),Zg=!1,St,iu,ou;[].keys&&(ou=[].keys(),"next"in ou?(iu=Xg(Xg(ou)),iu!==Object.prototype&&(St=iu)):Zg=!0);var eN=!zP(St)||GP(function(){var e={};return St[au].call(e)!==e});eN?St={}:ZP&&(St=YP(St));WP(St[au])||QP(St,au,function(){return this});ey.exports={IteratorPrototype:St,BUGGY_SAFARI_ITERATORS:Zg}});var ry=f(($J,ty)=>{"use strict";var tN=su().IteratorPrototype,rN=Or(),nN=br(),iN=$t(),oN=lr(),aN=function(){return this};ty.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=rN(tN,{next:nN(+!n,r)}),iN(e,i,!1,!0),oN[i]=aN,e}});var iy=f((HJ,ny)=>{"use strict";var sN=G(),lN=rr();ny.exports=function(e,t,r){try{return sN(lN(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var ay=f((VJ,oy)=>{"use strict";var uN=fe();oy.exports=function(e){return uN(e)||e===null}});var ly=f((JJ,sy)=>{"use strict";var cN=ay(),dN=String,fN=TypeError;sy.exports=function(e){if(cN(e))return e;throw new fN("Can't set "+dN(e)+" as a prototype")}});var cy=f((KJ,uy)=>{"use strict";var pN=iy(),hN=fe(),mN=Lt(),vN=ly();uy.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=pN(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return mN(i),vN(o),hN(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var po=f((GJ,by)=>{"use strict";var gN=$(),yN=We(),co=Mt(),yy=tu(),_N=de(),bN=ry(),dy=nu(),fy=cy(),wN=$t(),EN=nr(),lu=Cr(),xN=pe(),py=lr(),_y=su(),AN=yy.PROPER,SN=yy.CONFIGURABLE,hy=_y.IteratorPrototype,fo=_y.BUGGY_SAFARI_ITERATORS,Mn=xN("iterator"),my="keys",jn="values",vy="entries",gy=function(){return this};by.exports=function(e,t,r,n,i,o,a){bN(r,t,n);var s=function(v){if(v===i&&p)return p;if(!fo&&v&&v in d)return d[v];switch(v){case my:return function(){return new r(this,v)};case jn:return function(){return new r(this,v)};case vy:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",u=!1,d=e.prototype,c=d[Mn]||d["@@iterator"]||i&&d[i],p=!fo&&c||s(i),h=t==="Array"&&d.entries||c,m,g,y;if(h&&(m=dy(h.call(new e)),m!==Object.prototype&&m.next&&(!co&&dy(m)!==hy&&(fy?fy(m,hy):_N(m[Mn])||lu(m,Mn,gy)),wN(m,l,!0,!0),co&&(py[l]=gy))),AN&&i===jn&&c&&c.name!==jn&&(!co&&SN?EN(d,"name",jn):(u=!0,p=function(){return yN(c,this)})),i)if(g={values:s(jn),keys:o?p:s(my),entries:s(vy)},a)for(y in g)(fo||u||!(y in d))&&lu(d,y,g[y]);else gN({target:t,proto:!0,forced:fo||u},g);return(!co||a)&&d[Mn]!==p&&lu(d,Mn,p,{name:i}),py[t]=p,g}});var ho=f((WJ,wy)=>{"use strict";wy.exports=function(e,t){return{value:e,done:t}}});var vo=f((zJ,Iy)=>{"use strict";var IN=wt(),uu=Vg(),Ey=lr(),Ay=Ht(),TN=ze().f,RN=po(),mo=ho(),kN=Mt(),ON=me(),Sy="Array Iterator",CN=Ay.set,PN=Ay.getterFor(Sy);Iy.exports=RN(Array,"Array",function(e,t){CN(this,{type:Sy,target:IN(e),index:0,kind:t})},function(){var e=PN(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,mo(void 0,!0);switch(e.kind){case"keys":return mo(r,!1);case"values":return mo(t[r],!1)}return mo([r,t[r]],!1)},"values");var xy=Ey.Arguments=Ey.Array;uu("keys");uu("values");uu("entries");if(!kN&&ON&&xy.name!=="values")try{TN(xy,"name",{value:"values"})}catch(e){}});var Ry=f((YJ,Ty)=>{"use strict";Ty.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 yo=f(()=>{"use strict";vo();var NN=Ry(),qN=Z(),DN=$t(),ky=lr();for(go in NN)DN(qN[go],go),ky[go]=ky.Array;var go});var Cy=f((ZJ,Oy)=>{"use strict";var LN=$g();yo();Oy.exports=LN});var Ny=f((e6,Py)=>{Py.exports=Cy()});var Dy=f((t6,qy)=>{"use strict";Xl();var MN=Le();qy.exports=MN.Symbol.for});var My=f((r6,Ly)=>{"use strict";var jN=Dy();Ly.exports=jN});var Uy=f((n6,jy)=>{jy.exports=My()});var Fy=f(()=>{"use strict";var UN=$(),FN=xt().map,BN=Tr(),$N=BN("map");UN({target:"Array",proto:!0,forced:!$N},{map:function(t){return FN(this,t,arguments.length>1?arguments[1]:void 0)}})});var $y=f((a6,By)=>{"use strict";Fy();var HN=Me();By.exports=HN("Array","map")});var Vy=f((s6,Hy)=>{"use strict";var VN=he(),JN=$y(),cu=Array.prototype;Hy.exports=function(e){var t=e.map;return e===cu||VN(cu,e)&&t===cu.map?JN:t}});var Ky=f((l6,Jy)=>{"use strict";var KN=Vy();Jy.exports=KN});var Wy=f((u6,Gy)=>{Gy.exports=Ky()});var Yy=f((c6,zy)=>{"use strict";var GN=me(),WN=Ut(),zN=TypeError,YN=Object.getOwnPropertyDescriptor,QN=GN&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();zy.exports=QN?function(e,t){if(WN(e)&&!YN(e,"length").writable)throw new zN("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}});var Zy=f((d6,Xy)=>{"use strict";var Qy=wr(),XN=TypeError;Xy.exports=function(e,t){if(!delete e[t])throw new XN("Cannot delete property "+Qy(t)+" of "+Qy(e))}});var e_=f(()=>{"use strict";var ZN=$(),eq=jt(),tq=Wi(),rq=In(),nq=ir(),iq=Yy(),oq=_l(),aq=Vi(),sq=Ji(),du=Zy(),lq=Tr(),uq=lq("splice"),cq=Math.max,dq=Math.min;ZN({target:"Array",proto:!0,forced:!uq},{splice:function(t,r){var n=eq(this),i=nq(n),o=tq(t,i),a=arguments.length,s,l,u,d,c,p;for(a===0?s=l=0:a===1?(s=0,l=i-o):(s=a-2,l=dq(cq(rq(r),0),i-o)),oq(i+s-l),u=aq(n,l),d=0;d<l;d++)c=o+d,c in n&&sq(u,d,n[c]);if(u.length=l,s<l){for(d=o;d<i-l;d++)c=d+l,p=d+s,c in n?n[p]=n[c]:du(n,p);for(d=i;d>i-l+s;d--)du(n,d-1)}else if(s>l)for(d=i-l;d>o;d--)c=d+l-1,p=d+s-1,c in n?n[p]=n[c]:du(n,p);for(d=0;d<s;d++)n[d+o]=arguments[d+2];return iq(n,i-l+s),u}})});var r_=f((h6,t_)=>{"use strict";e_();var fq=Me();t_.exports=fq("Array","splice")});var i_=f((m6,n_)=>{"use strict";var pq=he(),hq=r_(),fu=Array.prototype;n_.exports=function(e){var t=e.splice;return e===fu||pq(fu,e)&&t===fu.splice?hq:t}});var a_=f((v6,o_)=>{"use strict";var mq=i_();o_.exports=mq});var l_=f((g6,s_)=>{s_.exports=a_()});var c_=f(()=>{"use strict";var vq=$(),gq=_n(),yq=Al().indexOf,_q=Rn(),pu=gq([].indexOf),u_=!!pu&&1/pu([1],1,-0)<0,bq=u_||!_q("indexOf");vq({target:"Array",proto:!0,forced:bq},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return u_?pu(this,t,r)||0:yq(this,t,r)}})});var f_=f((b6,d_)=>{"use strict";c_();var wq=Me();d_.exports=wq("Array","indexOf")});var h_=f((w6,p_)=>{"use strict";var Eq=he(),xq=f_(),hu=Array.prototype;p_.exports=function(e){var t=e.indexOf;return e===hu||Eq(hu,e)&&t===hu.indexOf?xq:t}});var v_=f((E6,m_)=>{"use strict";var Aq=h_();m_.exports=Aq});var y_=f((x6,g_)=>{g_.exports=v_()});var b_=f((A6,__)=>{"use strict";var Sq=K();__.exports=Sq(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var x_=f((S6,E_)=>{"use strict";var Iq=K(),Tq=fe(),Rq=ct(),w_=b_(),_o=Object.isExtensible,kq=Iq(function(){_o(1)});E_.exports=kq||w_?function(t){return!Tq(t)||w_&&Rq(t)==="ArrayBuffer"?!1:_o?_o(t):!0}:_o});var mu=f((I6,A_)=>{"use strict";var Oq=K();A_.exports=!Oq(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Un=f((T6,T_)=>{"use strict";var Cq=$(),Pq=G(),Nq=kr(),qq=fe(),vu=be(),Dq=ze().f,S_=Zi(),Lq=Cl(),gu=x_(),Mq=En(),jq=mu(),I_=!1,It=Mq("meta"),Uq=0,yu=function(e){Dq(e,It,{value:{objectID:"O"+Uq++,weakData:{}}})},Fq=function(e,t){if(!qq(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!vu(e,It)){if(!gu(e))return"F";if(!t)return"E";yu(e)}return e[It].objectID},Bq=function(e,t){if(!vu(e,It)){if(!gu(e))return!0;if(!t)return!1;yu(e)}return e[It].weakData},$q=function(e){return jq&&I_&&gu(e)&&!vu(e,It)&&yu(e),e},Hq=function(){Vq.enable=function(){},I_=!0;var e=S_.f,t=Pq([].splice),r={};r[It]=1,e(r).length&&(S_.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===It){t(i,o,1);break}return i},Cq({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Lq.f}))},Vq=T_.exports={enable:Hq,fastKey:Fq,getWeakData:Bq,onFreeze:$q};Nq[It]=!0});var k_=f((R6,R_)=>{"use strict";var Jq=pe(),Kq=lr(),Gq=Jq("iterator"),Wq=Array.prototype;R_.exports=function(e){return e!==void 0&&(Kq.Array===e||Wq[Gq]===e)}});var _u=f((k6,C_)=>{"use strict";var zq=Ir(),O_=ji(),Yq=er(),Qq=lr(),Xq=pe(),Zq=Xq("iterator");C_.exports=function(e){if(!Yq(e))return O_(e,Zq)||O_(e,"@@iterator")||Qq[zq(e)]}});var N_=f((O6,P_)=>{"use strict";var eD=We(),tD=rr(),rD=Et(),nD=wr(),iD=_u(),oD=TypeError;P_.exports=function(e,t){var r=arguments.length<2?iD(e):t;if(tD(r))return rD(eD(r,e));throw new oD(nD(e)+" is not iterable")}});var L_=f((C6,D_)=>{"use strict";var aD=We(),q_=Et(),sD=ji();D_.exports=function(e,t,r){var n,i;q_(e);try{if(n=sD(e,"return"),!n){if(t==="throw")throw r;return r}n=aD(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return q_(n),r}});var Fn=f((P6,F_)=>{"use strict";var lD=An(),uD=We(),cD=Et(),dD=wr(),fD=k_(),pD=ir(),M_=he(),hD=N_(),mD=_u(),j_=L_(),vD=TypeError,bo=function(e,t){this.stopped=e,this.result=t},U_=bo.prototype;F_.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=lD(t,n),u,d,c,p,h,m,g,y=function(_){return u&&j_(u,"normal",_),new bo(!0,_)},v=function(_){return i?(cD(_),s?l(_[0],_[1],y):l(_[0],_[1])):s?l(_,y):l(_)};if(o)u=e.iterator;else if(a)u=e;else{if(d=mD(e),!d)throw new vD(dD(e)+" is not iterable");if(fD(d)){for(c=0,p=pD(e);p>c;c++)if(h=v(e[c]),h&&M_(U_,h))return h;return new bo(!1)}u=hD(e,d)}for(m=o?e.next:u.next;!(g=uD(m,u)).done;){try{h=v(g.value)}catch(_){j_(u,"throw",_)}if(typeof h=="object"&&h&&M_(U_,h))return h}return new bo(!1)}});var wo=f((N6,B_)=>{"use strict";var gD=he(),yD=TypeError;B_.exports=function(e,t){if(gD(t,e))return e;throw new yD("Incorrect invocation")}});var bu=f((q6,H_)=>{"use strict";var _D=$(),bD=Z(),wD=Un(),ED=K(),xD=nr(),AD=Fn(),SD=wo(),ID=de(),TD=fe(),RD=er(),kD=$t(),OD=ze().f,CD=xt().forEach,PD=me(),$_=Ht(),ND=$_.set,qD=$_.getterFor;H_.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=bD[e],s=a&&a.prototype,l={},u;if(!PD||!ID(a)||!(i||s.forEach&&!ED(function(){new a().entries().next()})))u=r.getConstructor(t,e,n,o),wD.enable();else{u=t(function(p,h){ND(SD(p,d),{type:e,collection:new a}),RD(h)||AD(h,p[o],{that:p,AS_ENTRIES:n})});var d=u.prototype,c=qD(e);CD(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var h=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&xD(d,p,function(m,g){var y=c(this).collection;if(!h&&i&&!TD(m))return p==="get"?void 0:!1;var v=y[p](m===0?0:m,g);return h?this:v})}),i||OD(d,"size",{configurable:!0,get:function(){return c(this).collection.size}})}return kD(u,e,!1,!0),l[e]=u,_D({global:!0,forced:!0},l),i||r.setStrong(u,e,n),u}});var Eo=f((D6,V_)=>{"use strict";var DD=Cr();V_.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:DD(e,n,t[n],r);return e}});var G_=f((L6,K_)=>{"use strict";var LD=dt(),MD=to(),jD=pe(),UD=me(),J_=jD("species");K_.exports=function(e){var t=LD(e);UD&&t&&!t[J_]&&MD(t,J_,{configurable:!0,get:function(){return this}})}});var eb=f((M6,Z_)=>{"use strict";var W_=Or(),FD=to(),z_=Eo(),BD=An(),$D=wo(),HD=er(),VD=Fn(),JD=po(),xo=ho(),KD=G_(),Bn=me(),Y_=Un().fastKey,X_=Ht(),Q_=X_.set,wu=X_.getterFor;Z_.exports={getConstructor:function(e,t,r,n){var i=e(function(u,d){$D(u,o),Q_(u,{type:t,index:W_(null),first:null,last:null,size:0}),Bn||(u.size=0),HD(d)||VD(d,u[n],{that:u,AS_ENTRIES:r})}),o=i.prototype,a=wu(t),s=function(u,d,c){var p=a(u),h=l(u,d),m,g;return h?h.value=c:(p.last=h={index:g=Y_(d,!0),key:d,value:c,previous:m=p.last,next:null,removed:!1},p.first||(p.first=h),m&&(m.next=h),Bn?p.size++:u.size++,g!=="F"&&(p.index[g]=h)),u},l=function(u,d){var c=a(u),p=Y_(d),h;if(p!=="F")return c.index[p];for(h=c.first;h;h=h.next)if(h.key===d)return h};return z_(o,{clear:function(){for(var d=this,c=a(d),p=c.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;c.first=c.last=null,c.index=W_(null),Bn?c.size=0:d.size=0},delete:function(u){var d=this,c=a(d),p=l(d,u);if(p){var h=p.next,m=p.previous;delete c.index[p.index],p.removed=!0,m&&(m.next=h),h&&(h.previous=m),c.first===p&&(c.first=h),c.last===p&&(c.last=m),Bn?c.size--:d.size--}return!!p},forEach:function(d){for(var c=a(this),p=BD(d,arguments.length>1?arguments[1]:void 0),h;h=h?h.next:c.first;)for(p(h.value,h.key,this);h&&h.removed;)h=h.previous},has:function(d){return!!l(this,d)}}),z_(o,r?{get:function(d){var c=l(this,d);return c&&c.value},set:function(d,c){return s(this,d===0?0:d,c)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),Bn&&FD(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=wu(t),o=wu(n);JD(e,t,function(a,s){Q_(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,xo(void 0,!0)):xo(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),KD(t)}}});var tb=f(()=>{"use strict";var GD=bu(),WD=eb();GD("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},WD)});var rb=f(()=>{"use strict";tb()});var ib=f(($6,nb)=>{"use strict";nb.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var sb=f((H6,ab)=>{"use strict";var zD=dt(),Ao=ib(),ob=zD("Map");ab.exports={Map:ob,set:Ao("set",2),get:Ao("get",1),has:Ao("has",1),remove:Ao("delete",1),proto:ob.prototype}});var cb=f(()=>{"use strict";var YD=$(),QD=G(),XD=rr(),ZD=Lt(),eL=Fn(),So=sb(),lb=Mt(),tL=K(),ub=So.Map,rL=So.has,nL=So.get,iL=So.set,oL=QD([].push),aL=lb||tL(function(){return ub.groupBy("ab",function(e){return e}).get("a").length!==1});YD({target:"Map",stat:!0,forced:lb||aL},{groupBy:function(t,r){ZD(t),XD(r);var n=new ub,i=0;return eL(t,function(o){var a=r(o,i++);rL(n,a)?oL(nL(n,a),o):iL(n,a,[o])}),n}})});var hb=f((K6,pb)=>{"use strict";var Eu=G(),sL=In(),lL=Bt(),uL=Lt(),cL=Eu("".charAt),db=Eu("".charCodeAt),dL=Eu("".slice),fb=function(e){return function(t,r){var n=lL(uL(t)),i=sL(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=db(n,i),a<55296||a>56319||i+1===o||(s=db(n,i+1))<56320||s>57343?e?cL(n,i):a:e?dL(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};pb.exports={codeAt:fb(!1),charAt:fb(!0)}});var yb=f(()=>{"use strict";var fL=hb().charAt,pL=Bt(),vb=Ht(),hL=po(),mb=ho(),gb="String Iterator",mL=vb.set,vL=vb.getterFor(gb);hL(String,"String",function(e){mL(this,{type:gb,string:pL(e),index:0})},function(){var t=vL(this),r=t.string,n=t.index,i;return n>=r.length?mb(void 0,!0):(i=fL(r,n),t.index+=i.length,mb(i,!1))})});var bb=f((z6,_b)=>{"use strict";vo();rb();cb();Gi();yb();var gL=Le();_b.exports=gL.Map});var Eb=f((Y6,wb)=>{"use strict";var yL=bb();yo();wb.exports=yL});var Ab=f((Q6,xb)=>{xb.exports=Eb()});var Ib=f(()=>{"use strict";var _L=$(),bL=G(),wL=Ut(),EL=bL([].reverse),Sb=[1,2];_L({target:"Array",proto:!0,forced:String(Sb)===String(Sb.reverse())},{reverse:function(){return wL(this)&&(this.length=this.length),EL(this)}})});var Rb=f((eK,Tb)=>{"use strict";Ib();var xL=Me();Tb.exports=xL("Array","reverse")});var Ob=f((tK,kb)=>{"use strict";var AL=he(),SL=Rb(),xu=Array.prototype;kb.exports=function(e){var t=e.reverse;return e===xu||AL(xu,e)&&t===xu.reverse?SL:t}});var Pb=f((rK,Cb)=>{"use strict";var IL=Ob();Cb.exports=IL});var qb=f((nK,Nb)=>{Nb.exports=Pb()});var Lb=f(()=>{"use strict";var TL=$(),RL=me(),Db=ze().f;TL({target:"Object",stat:!0,forced:Object.defineProperty!==Db,sham:!RL},{defineProperty:Db})});var Ub=f((aK,jb)=>{"use strict";Lb();var kL=Le(),Mb=kL.Object,OL=jb.exports=function(t,r,n){return Mb.defineProperty(t,r,n)};Mb.defineProperty.sham&&(OL.sham=!0)});var Bb=f((sK,Fb)=>{"use strict";var CL=Ub();Fb.exports=CL});var Hb=f((lK,$b)=>{$b.exports=Bb()});var Vb=f(()=>{"use strict";var PL=$(),NL=Ut();PL({target:"Array",stat:!0},{isArray:NL})});var Kb=f((dK,Jb)=>{"use strict";Vb();var qL=Le();Jb.exports=qL.Array.isArray});var Wb=f((fK,Gb)=>{"use strict";var DL=Kb();Gb.exports=DL});var Yb=f((pK,zb)=>{zb.exports=Wb()});var t0=f((hK,e0)=>{"use strict";var Xb=G(),LL=rr(),ML=fe(),jL=be(),Qb=Rr(),UL=_r(),Zb=Function,FL=Xb([].concat),BL=Xb([].join),Au={},$L=function(e,t,r){if(!jL(Au,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Au[t]=Zb("C,a","return new C("+BL(n,",")+")")}return Au[t](e,r)};e0.exports=UL?Zb.bind:function(t){var r=LL(this),n=r.prototype,i=Qb(arguments,1),o=function(){var s=FL(i,Qb(arguments));return this instanceof o?$L(r,s.length,s):r.apply(t,s)};return ML(n)&&(o.prototype=n),o}});var n0=f(()=>{"use strict";var HL=$(),r0=t0();HL({target:"Function",proto:!0,forced:Function.bind!==r0},{bind:r0})});var o0=f((gK,i0)=>{"use strict";n0();var VL=Me();i0.exports=VL("Function","bind")});var s0=f((yK,a0)=>{"use strict";var JL=he(),KL=o0(),Su=Function.prototype;a0.exports=function(e){var t=e.bind;return e===Su||JL(Su,e)&&t===Su.bind?KL:t}});var u0=f((_K,l0)=>{"use strict";var GL=s0();l0.exports=GL});var d0=f((bK,c0)=>{c0.exports=u0()});var p0=f((wK,f0)=>{"use strict";var WL=fe(),zL=ct(),YL=pe(),QL=YL("match");f0.exports=function(e){var t;return WL(e)&&((t=e[QL])!==void 0?!!t:zL(e)==="RegExp")}});var m0=f((EK,h0)=>{"use strict";var XL=p0(),ZL=TypeError;h0.exports=function(e){if(XL(e))throw new ZL("The method doesn't accept regular expressions");return e}});var g0=f((xK,v0)=>{"use strict";var eM=pe(),tM=eM("match");v0.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[tM]=!1,"/./"[e](t)}catch(n){}}return!1}});var b0=f(()=>{"use strict";var rM=$(),nM=_n(),iM=Fi().f,oM=fl(),y0=Bt(),aM=m0(),sM=Lt(),lM=g0(),uM=Mt(),cM=nM("".slice),dM=Math.min,_0=lM("startsWith"),fM=!uM&&!_0&&!!function(){var e=iM(String.prototype,"startsWith");return e&&!e.writable}();rM({target:"String",proto:!0,forced:!fM&&!_0},{startsWith:function(t){var r=y0(sM(this));aM(t);var n=oM(dM(arguments.length>1?arguments[1]:void 0,r.length)),i=y0(t);return cM(r,n,n+i.length)===i}})});var E0=f((IK,w0)=>{"use strict";b0();var pM=Me();w0.exports=pM("String","startsWith")});var A0=f((TK,x0)=>{"use strict";var hM=he(),mM=E0(),Iu=String.prototype;x0.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Iu||hM(Iu,e)&&t===Iu.startsWith?mM:t}});var I0=f((RK,S0)=>{"use strict";var vM=A0();S0.exports=vM});var R0=f((kK,T0)=>{T0.exports=I0()});var C0=f(()=>{"use strict";var gM=$(),k0=Ut(),yM=ml(),_M=fe(),O0=Wi(),bM=ir(),wM=wt(),EM=Ji(),xM=pe(),AM=Tr(),SM=Rr(),IM=AM("slice"),TM=xM("species"),Tu=Array,RM=Math.max;gM({target:"Array",proto:!0,forced:!IM},{slice:function(t,r){var n=wM(this),i=bM(n),o=O0(t,i),a=O0(r===void 0?i:r,i),s,l,u;if(k0(n)&&(s=n.constructor,yM(s)&&(s===Tu||k0(s.prototype))?s=void 0:_M(s)&&(s=s[TM],s===null&&(s=void 0)),s===Tu||s===void 0))return SM(n,o,a);for(l=new(s===void 0?Tu:s)(RM(a-o,0)),u=0;o<a;o++,u++)o in n&&EM(l,u,n[o]);return l.length=u,l}})});var N0=f((PK,P0)=>{"use strict";C0();var kM=Me();P0.exports=kM("Array","slice")});var D0=f((NK,q0)=>{"use strict";var OM=he(),CM=N0(),Ru=Array.prototype;q0.exports=function(e){var t=e.slice;return e===Ru||OM(Ru,e)&&t===Ru.slice?CM:t}});var M0=f((qK,L0)=>{"use strict";var PM=D0();L0.exports=PM});var U0=f((DK,j0)=>{j0.exports=M0()});var K0=f((LK,J0)=>{"use strict";var NM=G(),F0=Eo(),Io=Un().getWeakData,qM=wo(),DM=Et(),LM=er(),ku=fe(),MM=Fn(),$0=xt(),B0=be(),H0=Ht(),jM=H0.set,UM=H0.getterFor,FM=$0.find,BM=$0.findIndex,$M=NM([].splice),HM=0,To=function(e){return e.frozen||(e.frozen=new V0)},V0=function(){this.entries=[]},Ou=function(e,t){return FM(e.entries,function(r){return r[0]===t})};V0.prototype={get:function(e){var t=Ou(this,e);if(t)return t[1]},has:function(e){return!!Ou(this,e)},set:function(e,t){var r=Ou(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=BM(this.entries,function(r){return r[0]===e});return~t&&$M(this.entries,t,1),!!~t}};J0.exports={getConstructor:function(e,t,r,n){var i=e(function(l,u){qM(l,o),jM(l,{type:t,id:HM++,frozen:null}),LM(u)||MM(u,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=UM(t),s=function(l,u,d){var c=a(l),p=Io(DM(u),!0);return p===!0?To(c).set(u,d):p[c.id]=d,l};return F0(o,{delete:function(l){var u=a(this);if(!ku(l))return!1;var d=Io(l);return d===!0?To(u).delete(l):d&&B0(d,u.id)&&delete d[u.id]},has:function(u){var d=a(this);if(!ku(u))return!1;var c=Io(u);return c===!0?To(d).has(u):c&&B0(c,d.id)}}),F0(o,r?{get:function(u){var d=a(this);if(ku(u)){var c=Io(u);if(c===!0)return To(d).get(u);if(c)return c[d.id]}},set:function(u,d){return s(this,u,d)}}:{add:function(u){return s(this,u,!0)}}),i}}});var ew=f(()=>{"use strict";var VM=mu(),G0=Z(),Co=G(),W0=Eo(),JM=Un(),KM=bu(),z0=K0(),Ro=fe(),ko=Ht().enforce,GM=K(),WM=ql(),Vn=Object,zM=Array.isArray,Oo=Vn.isExtensible,Y0=Vn.isFrozen,YM=Vn.isSealed,Q0=Vn.freeze,QM=Vn.seal,XM=!G0.ActiveXObject&&"ActiveXObject"in G0,$n,X0=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Z0=KM("WeakMap",X0,z0),Dr=Z0.prototype,Po=Co(Dr.set),ZM=function(){return VM&&GM(function(){var e=Q0([]);return Po(new Z0,e,1),!Y0(e)})};WM&&(XM?($n=z0.getConstructor(X0,"WeakMap",!0),JM.enable(),Cu=Co(Dr.delete),Hn=Co(Dr.has),Pu=Co(Dr.get),W0(Dr,{delete:function(e){if(Ro(e)&&!Oo(e)){var t=ko(this);return t.frozen||(t.frozen=new $n),Cu(this,e)||t.frozen.delete(e)}return Cu(this,e)},has:function(t){if(Ro(t)&&!Oo(t)){var r=ko(this);return r.frozen||(r.frozen=new $n),Hn(this,t)||r.frozen.has(t)}return Hn(this,t)},get:function(t){if(Ro(t)&&!Oo(t)){var r=ko(this);return r.frozen||(r.frozen=new $n),Hn(this,t)?Pu(this,t):r.frozen.get(t)}return Pu(this,t)},set:function(t,r){if(Ro(t)&&!Oo(t)){var n=ko(this);n.frozen||(n.frozen=new $n),Hn(this,t)?Po(this,t,r):n.frozen.set(t,r)}else Po(this,t,r);return this}})):ZM()&&W0(Dr,{set:function(t,r){var n;return zM(t)&&(Y0(t)?n=Q0:YM(t)&&(n=QM)),Po(this,t,r),n&&n(t),this}}));var Cu,Hn,Pu});var tw=f(()=>{"use strict";ew()});var nw=f((BK,rw)=>{"use strict";vo();Gi();tw();var ej=Le();rw.exports=ej.WeakMap});var ow=f(($K,iw)=>{"use strict";var tj=nw();yo();iw.exports=tj});var sw=f((HK,aw)=>{aw.exports=ow()});var lw=f(()=>{"use strict";var rj=$(),nj=me(),ij=Or();rj({target:"Object",stat:!0,sham:!nj},{create:ij})});var cw=f((KK,uw)=>{"use strict";lw();var oj=Le(),aj=oj.Object;uw.exports=function(t,r){return aj.create(t,r)}});var fw=f((GK,dw)=>{"use strict";var sj=cw();dw.exports=sj});var hw=f((WK,pw)=>{pw.exports=fw()});var yw=f((zK,gw)=>{"use strict";var mw=me(),lj=G(),uj=We(),cj=K(),Nu=Yi(),dj=eo(),fj=Ni(),pj=jt(),hj=qi(),Lr=Object.assign,vw=Object.defineProperty,mj=lj([].concat);gw.exports=!Lr||cj(function(){if(mw&&Lr({b:1},Lr(vw({},"a",{enumerable:!0,get:function(){vw(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}),Lr({},e)[r]!==7||Nu(Lr({},t)).join("")!==n})?function(t,r){for(var n=pj(t),i=arguments.length,o=1,a=dj.f,s=fj.f;i>o;)for(var l=hj(arguments[o++]),u=a?mj(Nu(l),a(l)):Nu(l),d=u.length,c=0,p;d>c;)p=u[c++],(!mw||uj(s,l,p))&&(n[p]=l[p]);return n}:Lr});var bw=f(()=>{"use strict";var vj=$(),_w=yw();vj({target:"Object",stat:!0,arity:2,forced:Object.assign!==_w},{assign:_w})});var Ew=f((XK,ww)=>{"use strict";bw();var gj=Le();ww.exports=gj.Object.assign});var Aw=f((ZK,xw)=>{"use strict";var yj=Ew();xw.exports=yj});var Iw=f((eG,Sw)=>{Sw.exports=Aw()});var qu=f((tG,Tw)=>{"use strict";Tw.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 Ow=f((rG,kw)=>{"use strict";var _j=G(),bj=Lt(),wj=Bt(),Lu=qu(),Rw=_j("".replace),Ej=RegExp("^["+Lu+"]+"),xj=RegExp("(^|[^"+Lu+"])["+Lu+"]+$"),Du=function(e){return function(t){var r=wj(bj(t));return e&1&&(r=Rw(r,Ej,"")),e&2&&(r=Rw(r,xj,"$1")),r}};kw.exports={start:Du(1),end:Du(2),trim:Du(3)}});var qw=f((nG,Nw)=>{"use strict";var Aj=tu().PROPER,Sj=K(),Cw=qu(),Pw="\u200B\x85\u180E";Nw.exports=function(e){return Sj(function(){return!!Cw[e]()||Pw[e]()!==Pw||Aj&&Cw[e].name!==e})}});var Dw=f(()=>{"use strict";var Ij=$(),Tj=Ow().trim,Rj=qw();Ij({target:"String",proto:!0,forced:Rj("trim")},{trim:function(){return Tj(this)}})});var Mw=f((aG,Lw)=>{"use strict";Dw();var kj=Me();Lw.exports=kj("String","trim")});var Uw=f((sG,jw)=>{"use strict";var Oj=he(),Cj=Mw(),Mu=String.prototype;jw.exports=function(e){var t=e.trim;return typeof e=="string"||e===Mu||Oj(Mu,e)&&t===Mu.trim?Cj:t}});var Bw=f((lG,Fw)=>{"use strict";var Pj=Uw();Fw.exports=Pj});var Hw=f((uG,$w)=>{$w.exports=Bw()});function Zu(e,t){ae.__h&&ae.__h(ee,e,Yn||t),Yn=0;var r=ee.__H||(ee.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Kt(e){return Yn=1,Nj(IE,e)}function Nj(e,t,r){var n=Zu(zn++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):IE(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],u=n.t(l,s);l!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=ee,!ee.__f)){var i=function(s,l,u){var d;if(!n.__c.__H)return!0;var c=(0,Xu.default)(d=n.__c.__H.__).call(d,function(h){return!!h.__c});if((0,hE.default)(c).call(c,function(h){return!h.__N}))return!o||o.call(this,s,l,u);var p=n.__c.props!==s;return(0,te.default)(c).call(c,function(h){if(h.__N){var m=h.__[0];h.__=h.__N,h.__N=void 0,m!==h.__[0]&&(p=!0)}}),o&&o.call(this,s,l,u)||p};ee.__f=!0;var o=ee.shouldComponentUpdate,a=ee.componentWillUpdate;ee.componentWillUpdate=function(s,l,u){if(this.__e){var d=o;o=void 0,i(s,l,u),o=d}a&&a.call(this,s,l,u)},ee.shouldComponentUpdate=i}return n.__N||n.__}function ur(e,t){var r=Zu(zn++,3);!ae.__s&&SE(r.__H,t)&&(r.__=e,r.u=t,ee.__H.__h.push(r))}function Bo(e){return Yn=5,AE(function(){return{current:e}},[])}function AE(e,t){var r=Zu(zn++,7);return SE(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Qe(e,t){return Yn=8,AE(function(){return e},t)}function qj(){for(var e;e=xE.shift();)if(e.__P&&e.__H)try{var t,r;(0,te.default)(t=e.__H.__h).call(t,Do),(0,te.default)(r=e.__H.__h).call(r,Ku),e.__H.__h=[]}catch(n){e.__H.__h=[],ae.__e(n,e.__v)}}function Dj(e){var t,r=function(){clearTimeout(n),Qw&&cancelAnimationFrame(t),(0,Vu.default)(e)},n=(0,Vu.default)(r,100);Qw&&(t=requestAnimationFrame(r))}function Do(e){var t=ee,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ee=t}function Ku(e){var t=ee;e.__c=e.__(),ee=t}function SE(e,t){return!e||e.length!==t.length||(0,Uo.default)(t).call(t,function(r,n){return r!==e[n]})}function IE(e,t){return typeof t=="function"?t(e):t}function TE(e,t){for(var r in t)e[r]=t[r];return e}function Gu(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 Zw(e,t){this.props=e,this.context=t}function RE(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:Gu(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Ge(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Mj(e){function t(r){var n=TE({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=Lj,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function kE(e,t,r){var n,i;return e&&(e.__c&&e.__c.__H&&((0,te.default)(n=e.__c.__H.__).call(n,function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=TE({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&(0,Vo.default)(i=e.__k).call(i,function(o){return kE(o,t,r)})),e}function OE(e,t,r){var n;return e&&r&&(e.__v=null,e.__k=e.__k&&(0,Vo.default)(n=e.__k).call(n,function(i){return OE(i,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Uu(){this.__u=0,this.o=null,this.__b=null}function CE(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function No(){this.i=null,this.l=null}function Jj(){}function Kj(){return this.cancelBubble}function Gj(){return this.defaultPrevented}function b(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 u={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--zj,__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 T.vnode&&T.vnode(u),u}function Zj(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 eU(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 aU(e,t){return we(e,0)^45?(((t<<2^we(e,0))<<2^we(e,1))<<2^we(e,2))<<2^we(e,3):0}function qE(e){return(0,EE.default)(e).call(e)}function sU(e,t){return(e=t.exec(e))?e[0]:e}function j(e,t,r){return e.replace(t,r)}function Wu(e,t){return(0,jr.default)(e).call(e,t)}function we(e,t){return e.charCodeAt(t)|0}function Qn(e,t,r){return(0,yE.default)(e).call(e,t,r)}function ft(e){return e.length}function rc(e){return e.length}function qo(e,t){return t.push(e),e}function lU(e,t){return(0,Vo.default)(e).call(e,t).join("")}function Go(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ko,column:Fr,length:a,return:""}}function Jn(e,t){return oU(Go("",null,null,"",null,null,0),e,{length:-e.length},t)}function uU(){return se}function cU(){return se=Ue>0?we(Br,--Ue):0,Fr--,se===10&&(Fr=1,Ko--),se}function He(){return se=Ue<DE?we(Br,Ue++):0,Fr++,se===10&&(Fr=1,Ko++),se}function pt(){return we(Br,Ue)}function Lo(){return Ue}function Zn(e,t){return Qn(Br,e,t)}function Xn(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 LE(e){return Ko=Fr=1,DE=ft(Br=e),Ue=0,[]}function ME(e){return Br="",e}function Mo(e){return qE(Zn(Ue-1,zu(e===91?e+2:e===40?e+1:e)))}function dU(e){for(;(se=pt())&&se<33;)He();return Xn(e)>2||Xn(se)>3?"":" "}function fU(e,t){for(;--t&&He()&&!(se<48||se>102||se>57&&se<65||se>70&&se<97););return Zn(e,Lo()+(t<6&&pt()==32&&He()==32))}function zu(e){for(;He();)switch(se){case e:return Ue;case 34:case 39:e!==34&&e!==39&&zu(se);break;case 40:e===41&&zu(e);break;case 92:He();break}return Ue}function pU(e,t){for(;He()&&e+se!==57&&!(e+se===84&&pt()===47););return"/*"+Zn(t,Ue-1)+"*"+Jo(e===47?e:He())}function hU(e){for(;!Xn(pt());)He();return Zn(e,Ue)}function mU(e){return ME(jo("",null,null,null,[""],e=LE(e),0,[0],e))}function jo(e,t,r,n,i,o,a,s,l){for(var u=0,d=0,c=a,p=0,h=0,m=0,g=1,y=1,v=1,_=0,x="",R=i,C=o,S=n,w=x;y;)switch(m=_,_=He()){case 40:if(m!=108&&we(w,c-1)==58){Wu(w+=j(Mo(_),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:w+=Mo(_);break;case 9:case 10:case 13:case 32:w+=dU(m);break;case 92:w+=fU(Lo()-1,7);continue;case 47:switch(pt()){case 42:case 47:qo(vU(pU(He(),Lo()),t,r),l);break;default:w+="/"}break;case 123*g:s[u++]=ft(w)*v;case 125*g:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+d:v==-1&&(w=j(w,/\f/g,"")),h>0&&ft(w)-c&&qo(h>32?lE(w+";",n,r,c-1):lE(j(w," ","")+";",n,r,c-2),l);break;case 59:w+=";";default:if(qo(S=sE(w,t,r,u,d,i,s,x,R=[],C=[],c),o),_===123)if(d===0)jo(w,t,S,S,R,o,c,s,C);else switch(p===99&&we(w,3)===110?100:p){case 100:case 108:case 109:case 115:jo(e,S,S,n&&qo(sE(e,S,S,0,0,i,s,x,i,R=[],c),C),i,C,c,s,n?R:C);break;default:jo(w,S,S,S,[""],C,0,s,C)}}u=d=h=0,g=v=1,x=w="",c=a;break;case 58:c=1+ft(w),h=m;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&cU()==125)continue}switch(w+=Jo(_),_*g){case 38:v=d>0?1:(w+="\f",-1);break;case 44:s[u++]=(ft(w)-1)*v,v=1;break;case 64:pt()===45&&(w+=Mo(He())),p=pt(),d=c=ft(x=w+=hU(Lo())),_++;break;case 45:m===45&&ft(w)==2&&(g=0)}}return o}function sE(e,t,r,n,i,o,a,s,l,u,d){for(var c=i-1,p=i===0?o:[""],h=rc(p),m=0,g=0,y=0;m<n;++m)for(var v=0,_=Qn(e,c+1,c=iU(g=a[m])),x=e;v<h;++v)(x=qE(g>0?p[v]+" "+_:j(_,/&\f/g,p[v])))&&(l[y++]=x);return Go(e,t,r,i===0?ec:s,l,u,d)}function vU(e,t,r){return Go(e,t,r,PE,Jo(uU()),Qn(e,2,-2),0)}function lE(e,t,r,n){return Go(e,t,r,tc,Qn(e,0,n),Qn(e,n+1,-1),n)}function Ur(e,t){for(var r="",n=rc(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function gU(e,t,r,n){switch(e.type){case nU:if(e.children.length)break;case rU:case tc:return e.return=e.return||e.value;case PE:return"";case NE:return e.return=e.value+"{"+Ur(e.children,n)+"}";case ec:e.value=e.props.join(",")}return ft(r=Ur(e.children,n))?e.return=e.value+"{"+r+"}":""}function yU(e){var t=rc(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 _U(e){return function(t){t.root||(t=t.return)&&e(t)}}function bU(e){var t=(0,bE.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function jE(e,t){switch(aU(e,t)){case 5103:return M+"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 M+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return M+e+$o+e+Te+e+e;case 6828:case 4268:return M+e+Te+e+e;case 6165:return M+e+Te+"flex-"+e+e;case 5187:return M+e+j(e,/(\w+).+(:[^]+)/,M+"box-$1$2"+Te+"flex-$1$2")+e;case 5443:return M+e+Te+"flex-item-"+j(e,/flex-|-self/,"")+e;case 4675:return M+e+Te+"flex-line-pack"+j(e,/align-content|flex-|-self/,"")+e;case 5548:return M+e+Te+j(e,"shrink","negative")+e;case 5292:return M+e+Te+j(e,"basis","preferred-size")+e;case 6060:return M+"box-"+j(e,"-grow","")+M+e+Te+j(e,"grow","positive")+e;case 4554:return M+j(e,/([^-])(transform)/g,"$1"+M+"$2")+e;case 6187:return j(j(j(e,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),e,"")+e;case 5495:case 3959:return j(e,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return j(j(e,/(.+:)(flex-)?(.*)/,M+"box-pack:$3"+Te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+M+e+e;case 4095:case 3583:case 4068:case 2532:return j(e,/(.+)-inline(.+)/,M+"$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(ft(e)-1-t>6)switch(we(e,t+1)){case 109:if(we(e,t+4)!==45)break;case 102:return j(e,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+$o+(we(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wu(e,"stretch")?jE(j(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(we(e,t+1)!==115)break;case 6444:switch(we(e,ft(e)-3-(~Wu(e,"!important")&&10))){case 107:return j(e,":",":"+M)+e;case 101:return j(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+M+(we(e,14)===45?"inline-":"")+"box$3$1"+M+"$2$3$1"+Te+"$2box$3")+e}break;case 5936:switch(we(e,t+11)){case 114:return M+e+Te+j(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+Te+j(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+Te+j(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return M+e+Te+e+e}return e}function kU(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 Ho(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 Jt={name:i.name,styles:i.styles,next:Jt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Jt={name:a.name,styles:a.styles,next:Jt},a=a.next;var s=o.styles+";";return s}return NU(e,t,r)}}var l=r;if(t==null)return l;var u=t[l];return u!==void 0?u:l}function NU(e,t,r){var n="";if((0,Wn.default)(r))for(var i=0;i<r.length;i++)n+=Ho(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]+"}":cE(s)&&(n+=Bu(o)+":"+dE(o,s)+";")}else if((0,Wn.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)cE(a[l])&&(n+=Bu(o)+":"+dE(o,a[l])+";");else{var u=Ho(e,t,a);switch(o){case"animation":case"animationName":{n+=Bu(o)+":"+u+";";break}default:n+=o+"{"+u+"}"}}}return n}function $u(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="";Jt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Ho(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Ho(r,t,e[s]),n){var l=o;i+=l[s]}fE.lastIndex=0;for(var u="",d;(d=fE.exec(i))!==null;)u+="-"+d[1];var c=kU(i)+u;return{name:c,styles:i,next:Jt}}function Yu(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 pE(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Hu(e,t,r){var n=[],i=Yu(e,n,r);return n.length<2?r:i+t(n)}function $U(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=at(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let u=BU(()=>{t&&n()});return e==="Image"?b("div",{className:i,style:{borderRadius:"8px"},children:Ge("img",D(O({},a),{ref:u,src:t!=null?t:"",style:O({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):b("div",D(O({},a),{ref:u,className:i,children:r}))}function HU(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?Ge(i.type,D(O({},i.props),{style:D(O({},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?Ge(e.type,D(O({},e.props),{style:D(O({},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}var Xu,hE,te,mE,Uo,Vu,Kn,Gn,Vo,dG,jr,vE,gE,Fo,Wn,Ju,fG,yE,_E,bE,wE,EE,zn,ee,ju,Vw,Yn,xE,ae,Jw,Kw,Gw,Ww,zw,Yw,Qw,Xw,eE,Lj,jj,tE,rE,Uj,Fj,Bj,$j,Hj,Vj,nE,Wj,iE,oE,aE,zj,Fu,Yj,Qj,Xj,tU,Te,$o,M,PE,ec,tc,rU,NE,nU,iU,Jo,oU,Ko,Fr,DE,Ue,se,Br,wU,EU,xU,uE,AU,SU,IU,TU,RU,OU,CU,PU,UE,cE,Bu,dE,fE,Jt,qU,DU,LU,MU,jU,N,UU,FU,nc,BU,ic,oc,FE,VU,JU,KU,Qu,GU,BE,$r,Tt,$E,Mr,WU,zU,YU,QU,XU,oe,ZU,eF,HE,VE,JE,KE,tF,rF,GE,Wo=k(()=>{"use strict";Js();Xu=J(Fh(),1),hE=J(Yh(),1),te=J(um(),1),mE=J(Em(),1),Uo=J(Cm(),1),Vu=J(zm(),1),Kn=J(Ny(),1),Gn=J(Uy(),1),Vo=J(Wy(),1),dG=J(l_(),1),jr=J(y_(),1),vE=J(Ab(),1),gE=J(qb(),1),Fo=J(Hb(),1),Wn=J(Yb(),1),Ju=J(d0(),1),fG=J(R0(),1),yE=J(U0(),1),_E=J(sw(),1),bE=J(hw(),1),wE=J(Iw(),1),EE=J(Hw(),1),Yn=0,xE=[],ae=T,Jw=ae.__b,Kw=ae.__r,Gw=ae.diffed,Ww=ae.__c,zw=ae.unmount,Yw=ae.__;ae.__b=function(e){ee=null,Jw&&Jw(e)},ae.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Yw&&Yw(e,t)},ae.__r=function(e){var t,r,n;Kw&&Kw(e),zn=0;var i=(ee=e.__c).__H;i&&(ju===ee?(i.__h=[],ee.__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,Do),(0,te.default)(n=i.__h).call(n,Ku),i.__h=[],zn=0)),ju=ee},ae.diffed=function(e){var t;Gw&&Gw(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(xE.push(r)!==1&&Vw===ae.requestAnimationFrame||((Vw=ae.requestAnimationFrame)||Dj)(qj)),(0,te.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),ju=ee=null},ae.__c=function(e,t){(0,Uo.default)(t).call(t,function(r){try{var n,i;(0,te.default)(n=r.__h).call(n,Do),r.__h=(0,Xu.default)(i=r.__h).call(i,function(o){return!o.__||Ku(o)})}catch(o){(0,Uo.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],ae.__e(o,r.__v)}}),Ww&&Ww(e,t)},ae.unmount=function(e){var t;zw&&zw(e);var r,n=e.__c;n&&n.__H&&((0,te.default)(t=n.__H.__).call(t,function(i){try{Do(i)}catch(o){r=o}}),n.__H=void 0,r&&ae.__e(r,n.__v))};Qw=typeof requestAnimationFrame=="function";(Zw.prototype=new _e).isPureReactComponent=!0,Zw.prototype.shouldComponentUpdate=function(e,t){return Gu(this.props,e)||Gu(this.state,t)};eE=T.__b;T.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),eE&&eE(e)};Lj=typeof Kn.default<"u"&&Gn.default&&(0,Gn.default)("react.forward_ref")||3911;jj=T.__e;T.__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)}jj(e,t,r,n)};tE=T.unmount;T.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),tE&&tE(e)},(Uu.prototype=new _e).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=CE(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]=OE(l,l.__c.__P,l.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.o.pop();)u.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Uu.prototype.componentWillUnmount=function(){this.o=[]},Uu.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]=kE(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Ge(rt,null,e.fallback);return i&&(i.__u&=-33),[Ge(rt,null,t.__a?null:e.children),i]};rE=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]}};(No.prototype=new _e).__a=function(e){var t=this,r=CE(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),rE(t,e,n)):i()};r?r(o):o()}},No.prototype.render=function(e){this.i=null,this.l=new vE.default;var t=bt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&(0,gE.default)(t).call(t);for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},No.prototype.componentDidUpdate=No.prototype.componentDidMount=function(){var e,t=this;(0,te.default)(e=this.l).call(e,function(r,n){rE(t,n,r)})};Uj=typeof Kn.default<"u"&&Gn.default&&(0,Gn.default)("react.element")||60103,Fj=/^(?: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]/,Bj=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,$j=/[A-Z0-9]/g,Hj=typeof document<"u",Vj=function(e){return(typeof Kn.default<"u"&&typeof(0,Kn.default)()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};_e.prototype.isReactComponent={},(0,te.default)(Xw=["componentWillMount","componentWillReceiveProps","componentWillUpdate"]).call(Xw,function(e){(0,Fo.default)(_e.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){(0,Fo.default)(this,e,{configurable:!0,writable:!0,value:t})}})});nE=T.event;T.event=function(e){return nE&&(e=nE(e)),e.persist=Jj,e.isPropagationStopped=Kj,e.isDefaultPrevented=Gj,e.nativeEvent=e};Wj={enumerable:!1,configurable:!0,get:function(){return this.class}},iE=T.vnode;T.vnode=function(e){typeof e.type=="string"&&function(t,r,n){var i=t.props,o=t.type,a={},s=(0,jr.default)(o).call(o,"-")===-1;for(var l in i){var u=i[l];if(!(l==="value"&&"defaultValue"in i&&u==null||Hj&&l==="children"&&o==="noscript"||l==="class"||l==="className")){var d=l.toLowerCase();l==="defaultValue"&&"value"in i&&i.value==null?l="value":l==="download"&&u===!0?u="":d==="translate"&&u==="no"?u=!1:d[0]==="o"&&d[1]==="n"?d==="ondoubleclick"?l="ondblclick":d!=="onchange"||o!=="input"&&o!=="textarea"||Vj(i.type)?d==="onfocus"?l="onfocusin":d==="onblur"?l="onfocusout":Bj.test(l)&&(l=d):d=l="oninput":s&&Fj.test(l)?l=l.replace($j,"-$&").toLowerCase():u===null&&(u=void 0),d==="oninput"&&a[l=d]&&(l="oninputCapture"),a[l]=u}}o=="select"&&a.multiple&&(0,Wn.default)(a.value)&&(a.value=(0,te.default)(r=bt(i.children)).call(r,function(c){var p;c.props.selected=(0,jr.default)(p=a.value).call(p,c.props.value)!=-1})),o=="select"&&a.defaultValue!=null&&(a.value=(0,te.default)(n=bt(i.children)).call(n,function(c){var p;c.props.selected=a.multiple?(0,jr.default)(p=a.defaultValue).call(p,c.props.value)!=-1:a.defaultValue==c.props.value})),i.class&&!i.className?(a.class=i.class,(0,Fo.default)(a,"className",Wj)):(i.className&&!i.class||i.class&&i.className)&&(a.class=a.className=i.className),t.props=a}(e),e.$$typeof=Uj,iE&&iE(e)};oE=T.__r;T.__r=function(e){oE&&oE(e),e.__c};aE=T.diffed;T.diffed=function(e){aE&&aE(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)};zj=0;Fu={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"white",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 -2px 10px rgba(0, 0, 0, 0.1)",display:"flex",flexDirection:"column",margin:"0 auto"},drawerContent:{flex:1,width:"100%",height:"100%",overflow:"auto",margin:"0 auto"}},Yj=`
|
|
21
21
|
@keyframes fadeIn {
|
|
22
22
|
from { opacity: 0; }
|
|
23
23
|
to { opacity: 1; }
|
|
@@ -53,47 +53,47 @@ var TS=Object.create;var fn=Object.defineProperty,RS=Object.defineProperties,AS=
|
|
|
53
53
|
.drawer-leave {
|
|
54
54
|
animation: slideDown 0.3s ease forwards;
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
56
|
+
`,Qj=({children:e,isOpen:t=!1,onClose:r,height:n="50%",className:i="",backdropColor:o},a)=>{let[s,l]=Kt(t),[u,d]=Kt(null),c=Bo(null),p=Bo(!1);ur(()=>{let S=document.createElement("style");return S.innerHTML=Yj,document.head.appendChild(S),()=>{document.head.removeChild(S)}},[]),ur(()=>{t!==s&&!p.current&&(l(t),d(t?"enter":"leave"),t?(document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%"):!t&&!p.current&&(document.body.style.overflow="",document.body.style.position="",document.body.style.width=""))},[t,s]),ur(()=>()=>{document.body.style.overflow="",document.body.style.position="",document.body.style.width=""},[]);let h=Qe(()=>{u==="leave"&&(d(null),l(!1),p.current=!1)},[u]),m=Qe(S=>{S.preventDefault(),S.stopPropagation(),S.target===c.current&&y()},[]),g=Qe(()=>{p.current=!1,l(!0),d("enter")},[]),y=Qe(()=>{p.current=!0,d("leave"),document.body.style.overflow="",document.body.style.position="",document.body.style.width="",r&&r()},[r]),v=Qe(()=>s&&!p.current,[s]);if(ur(()=>{if(a){let S={show:g,hide:y,isOpen:v};typeof a=="function"?a(S):a&&(a.current=S)}},[g,y,v,a]),!s&&!u)return null;let _=D(O({},Fu.drawer),{height:typeof n=="number"?`${n}px`:n,backgroundColor:o||"rgba(255, 255, 255, 1)"}),x=D(O({},Fu.drawerBackdrop),{pointerEvents:"auto"}),R=u?`drawer-${u}`:"",C=u?`backdrop-${u}`:"";return b("div",{ref:c,style:x,className:C,onClick:m,onTouchMove:S=>S.preventDefault(),onTouchStart:S=>S.stopPropagation(),onTouchEnd:S=>S.stopPropagation(),children:b("div",{style:_,className:`${R} ${i}`,onAnimationEnd:h,onClick:S=>S.stopPropagation(),onTouchMove:S=>{S.stopPropagation()},onTouchStart:S=>S.stopPropagation(),onTouchEnd:S=>S.stopPropagation(),children:b("div",{style:D(O({},Fu.drawerContent),{pointerEvents:"auto"}),onTouchMove:S=>S.stopPropagation(),onClick:S=>S.stopPropagation(),children:e})})})},Xj=Mj(Qj);tU=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(eU(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Zj(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}(),Te="-ms-",$o="-moz-",M="-webkit-",PE="comm",ec="rule",tc="decl",rU="@import",NE="@keyframes",nU="@layer",iU=Math.abs,Jo=String.fromCharCode,oU=wE.default;Ko=1,Fr=1,DE=0,Ue=0,se=0,Br="";wU=function(e,t,r){for(var n=0,i=0;n=i,i=pt(),n===38&&i===12&&(t[r]=1),!Xn(i);)He();return Zn(e,Ue)},EU=function(e,t){var r=-1,n=44;do switch(Xn(n)){case 0:n===38&&pt()===12&&(t[r]=1),e[r]+=wU(Ue-1,t,r);break;case 2:e[r]+=Mo(n);break;case 4:if(n===44){e[++r]=pt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Jo(n)}while(n=He());return e},xU=function(e,t){return ME(EU(LE(e),t))},uE=new _E.default,AU=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&&!uE.get(r))&&!n){uE.set(e,!0);for(var i=[],o=xU(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},SU=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};IU=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case tc:e.return=jE(e.value,e.length);break;case NE:return Ur([Jn(e,{value:j(e.value,"@","@"+M)})],n);case ec:if(e.length)return lU(e.props,function(i){switch(sU(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ur([Jn(e,{props:[j(i,/:(read-\w+)/,":"+$o+"$1")]})],n);case"::placeholder":return Ur([Jn(e,{props:[j(i,/:(plac\w+)/,":"+M+"input-$1")]}),Jn(e,{props:[j(i,/:(plac\w+)/,":"+$o+"$1")]}),Jn(e,{props:[j(i,/:(plac\w+)/,Te+"input-$1")]})],n)}return""})}},TU=[IU],RU=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,jr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||TU,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(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[AU,SU];{var u,d=[gU,_U(function(m){u.insert(m)})],c=yU((0,mE.default)(l).call(l,n,d)),p=function(m){return Ur(mU(m),c)};s=function(m,g,y,v){u=y,p(m?m+"{"+g.styles+"}":g.styles),v&&(h.inserted[g.name]=!0)}}var h={key:t,sheet:new tU({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 h.sheet.hydrate(a),h};OU={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},CU=/[A-Z]|^ms/g,PU=/_EMO_([^_]+?)_([^]*?)_EMO_/g,UE=function(e){return e.charCodeAt(1)===45},cE=function(e){return e!=null&&typeof e!="boolean"},Bu=bU(function(e){return UE(e)?e:e.replace(CU,"-$&").toLowerCase()}),dE=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(PU,function(r,n,i){return Jt={name:n,styles:i,next:Jt},n})}return OU[e]!==1&&!UE(e)&&typeof t=="number"&&t!==0?t+"px":t};fE=/label:\s*([^\s;{]+)\s*(;|$)/g;qU=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},DU=function(e,t,r){qU(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)}};LU=function(e){var t=RU(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 u=$u(s,t.registered,void 0);return DU(t,u),t.key+"-"+u.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var u=$u(s,t.registered),d="animation-"+u.name;return pE(t,{name:u.name,styles:"@keyframes "+d+"{"+u.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var u=$u(s,t.registered);pE(t,u)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Hu(t.registered,r,MU(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,Ju.default)(Yu).call(Yu,null,t.registered),merge:(0,Ju.default)(Hu).call(Hu,null,t.registered,r)}},MU=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,Wn.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},jU=LU({key:"css"}),N=jU.css,UU=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s={container:N`
|
|
57
57
|
display: flex;
|
|
58
58
|
flex-direction: column;
|
|
59
59
|
height: 100%;
|
|
60
60
|
width: 100%;
|
|
61
61
|
max-width: 440px;
|
|
62
62
|
margin: 0 auto;
|
|
63
|
-
`,header:
|
|
63
|
+
`,header:N`
|
|
64
64
|
padding: 16px;
|
|
65
65
|
border-bottom: 1px solid #eee;
|
|
66
66
|
display: flex;
|
|
67
67
|
justify-content: space-between;
|
|
68
68
|
align-items: center;
|
|
69
|
-
`,content:
|
|
69
|
+
`,content:N`
|
|
70
70
|
padding: ${i};
|
|
71
71
|
flex: 1;
|
|
72
72
|
overflow: auto;
|
|
73
|
-
`,footer:
|
|
73
|
+
`,footer:N`
|
|
74
74
|
padding: 16px;
|
|
75
75
|
border-top: 1px solid #eee;
|
|
76
76
|
display: flex;
|
|
77
77
|
justify-content: flex-end;
|
|
78
78
|
gap: 8px;
|
|
79
|
-
`,closeButton:
|
|
79
|
+
`,closeButton:N`
|
|
80
80
|
background: none;
|
|
81
81
|
border: none;
|
|
82
82
|
cursor: pointer;
|
|
83
83
|
font-size: 20px;
|
|
84
|
-
`,button:
|
|
84
|
+
`,button:N`
|
|
85
85
|
padding: 8px 16px;
|
|
86
86
|
border-radius: 4px;
|
|
87
87
|
border: 1px solid #ddd;
|
|
88
88
|
cursor: pointer;
|
|
89
|
-
`};return
|
|
89
|
+
`};return b("div",{className:s.container,children:[!r&&b("div",{className:s.header,children:[b("h3",{children:e}),b("button",{className:s.closeButton,onClick:a,children:"\xD7"})]}),b("div",{className:s.content,children:t}),o&&o.length>0&&b("div",{className:s.footer,children:o.map((l,u)=>b("button",{className:N`
|
|
90
90
|
${s.button}
|
|
91
|
-
background-color: ${
|
|
92
|
-
color: ${
|
|
93
|
-
`,onClick:d=>{var
|
|
91
|
+
background-color: ${l.variant==="primary"?"#1677ff":"#fff"};
|
|
92
|
+
color: ${l.variant==="primary"?"#fff":"#333"};
|
|
93
|
+
`,onClick:d=>{var c;return(c=l.onClick)==null?void 0:c.call(l,d,{hide:a})},children:l.text},u))})]})},FU=()=>{let e=document.createElement("div");return e.id=`jolibox-ui-modal-container-${Math.random().toString(36).substring(2,15)}`,e.style.position="absolute",e.style.zIndex=`${1e3+document.querySelectorAll('[id^="jolibox-ui-modal-container-"]').length}`,document.body.appendChild(e),e},nc=e=>{let t=FU(),r=null,n=!1,i=!1,o=()=>{i||(n=!1,e.onClose&&e.onClose(),s(),setTimeout(()=>{i||t.remove()},300))},a=()=>window.innerWidth>window.innerHeight,s=()=>{var u;yr(b(Xj,{ref:d=>{r=d},isOpen:n,onClose:o,height:a()?"90vh":(u=e.height)!=null?u:"50vh",backdropColor:e.backdropColor,children:b(UU,D(O({},e),{onClose:o}))}),t)},l=()=>{!i&&n&&s()};return window.addEventListener("resize",l),s(),{show:()=>{i||(n=!0,s(),setTimeout(()=>{r&&(r.show(),e.onOpen&&e.onOpen())},0))},hide:()=>{i||r&&r.hide()},isOpen:()=>n,destroy:()=>{i=!0,t.remove()}}},BU=(e,t={threshold:.6})=>{let r=Bo(null),n=Bo(!1),i=Qe(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};ic=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=at(a,["children","fluid","className","style"]);let s=O({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return b("div",D(O({className:r,style:s},i),{children:e}))},oc=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=at(l,["children","gutter","justify","align","className","style"]);let u={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"},c=O({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:u[r],alignItems:d[n]},o);if(t){let h=Array.isArray(t)?t[0]:t,m=Array.isArray(t)?t[1]:0;h>0&&(c.marginLeft=`-${h/2}px`,c.marginRight=`-${h/2}px`),m>0&&(c.marginTop=`-${m/2}px`,c.marginBottom=`-${m/2}px`)}let p=t?HU(e,t):e;return b("div",D(O({className:i,style:c},a),{children:p}))};FE=c=>{var p=c,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:l="",style:u={}}=p,d=at(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let h=O({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},u);if(t!==void 0){let m=t/24*100;h.flex=`0 0 ${m}%`,h.maxWidth=`${m}%`}return r!==void 0&&(h.marginLeft=`${r/24*100}%`),b("div",D(O({className:l,style:h},d),{children:e}))},VU=({game:e,layerName:t,routeMode:r,onGameClick:n})=>{var a,s;let i=Qe(l=>{l.preventDefault(),n==null||n(e)},[n,e]),o=Qe(()=>{},[e,t]);return b(FE,{span:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:"16px"},onClick:i,role:"button",tabIndex:0,onTouchEnd:i,children:[b("div",{className:"relative w-full mb-[2px] ion-no-margin",children:b($U,{src:(s=(a=e.logo)!=null?a:e.cover)!=null?s:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:o})}),b("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:"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},JU=o=>{var a=o,{list:e,routeMode:t,layerName:r,onGameClick:n}=a,i=at(a,["list","routeMode","layerName","onGameClick"]);return b(ic,{className:"w-full max-w-[440px] mx-auto flex-grow overflow-y-auto",children:b(oc,{gutter:8,className:N`
|
|
94
94
|
display: flex;
|
|
95
95
|
flex-wrap: wrap;
|
|
96
|
-
`,children:e==null?void 0:e.map(s=>
|
|
96
|
+
`,children:e==null?void 0:e.map(s=>b(VU,{game:s,routeMode:t,layerName:r,onGameClick:n},s.gameId))})})},KU=RE(JU),Qu=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(Qu||{}),GU=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=Kt(null),s=Qe(d=>{i==null||i({type:d.type===Qu.Quit?"quit":"dismiss"})},[i]),l=Qe(d=>{i==null||i({type:"navigate",data:{game:d}})},[i]);if(!t.length)return b(rt,{});let u=Qe(d=>{if(d!==null&&!d.shadowRoot){let c=d.attachShadow({mode:"open"}),p=document.createElement("style");p.textContent=`
|
|
97
97
|
.recommend-panel {
|
|
98
98
|
background-color: #1a1a1a;
|
|
99
99
|
width: 100%;
|
|
@@ -194,18 +194,204 @@ var TS=Object.create;var fn=Object.defineProperty,RS=Object.defineProperties,AS=
|
|
|
194
194
|
background-color: #7817FF;
|
|
195
195
|
color: #fff;
|
|
196
196
|
}
|
|
197
|
-
`;let
|
|
197
|
+
`;let h=document.createElement("div");h.id="recommend-panel-content",c.appendChild(p),c.appendChild(h),a(c)}},[]);return ur(()=>{if(o){let d=o.getElementById("recommend-panel-content");d&&yr(b("div",{className:"recommend-panel",children:b("div",{className:"container",children:[b("p",{className:"title",children:r}),b("div",{className:"games-container",children:b(KU,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l})}),b("div",{className:"buttons-container",children:b(ic,{children:b(oc,{gutter:10,children:(n!=null?n:[]).map((c,p)=>b("div",{className:"button-wrapper",children:b("button",{className:`button ${c.type===Qu.Quit?"quit-button":"action-button"}`,onClick:()=>s(c),children:b("span",{className:"button-text-ellipsis",children:c.text})})},p))})})})]})}),d)}},[o,t,r,n,s,l]),b("div",{ref:u})},BE=e=>{let t=nc({title:e.title,content:b(GU,{games:e.games,title:e.title,buttons:e.buttons,onClose:e.onClose}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"450px",onClose:()=>{console.log("onClose")},onOpen:e.onOpen});return t.show(),t},$r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAUNSURBVHgBfVRZbFRlFP7+e+/cmc5MO22ntGALLZUWhoZFqBgaNUYJMUYehBgwJLw0wRd9MJr4AokvJibG6JtLoompkhgNBoNbERQqVEQLtdu0dN9nptPOcvft98xU3Kje5Cb3vzn/d77zfeccYO1HaG9vr0xlZz+ZvZXJ955TeO8XKh+5oPPRzrR29Uz8fbwCoRC31mW2FuB8PD3HRH/N2Od5NnDLQlmlH9x1sZhU4CvT0XpfEyyf4/GqTOqRp+tr6Y77X6BsfHz8QHip5ht3SBDKDwiYHbQQLpOQHxfBZA5XNFBRK8BeAT58bxg1tTvRtMPlXek32k69fOqnu0B7+3sfb9m+7bx+1hOVqAl3yYcQcei6MIW6xghEDvR0p7Dl3iiEsAxFtTD0M0PN1nUQxGXPt6N7z+HDh3v/DirM3VBc55KDymN+5PtcDAzE8djx3XCzXlE4z2LwvMILXO25DTvZBCE4jdR4GOLmEASW4kdfbBAplBdAhZFLWmLg41TVpr0yMotBhFsW0bprM7jDiyG8AOYUkAFSsnieT2ZIZwm2yjCbTmDDjgYEfcmRpoc3biu6l9fNyn2H6jC27IfujGJPbDOSoyZuXluEp5KGGgETU9ddBeREtyZajuu/TkLnLuoq6sCSDi686TbvPblXYjMzM+96c5UnHVPAwqCKfY9WgOc8pKYNhJqDEKW/1P/t8gx2xkhoKoARHRYETGaB2wJk2YNBMSNfxl+XskOR45lrHkp2SwhIGsxUhKI5bINDDgGDXy9CEFYZlkBG3/AcYg21xSSFfKGN1BkhAT7dh2Alw9Jk2QnJy/lDuXwWK/E8ttaFYemFeBGGSZnzHpqbN8AwXALlxI6kiLq48tU09u/ftCrFBCWv4bDggAUEuitVS4oKqNxACQsjq5oIqqVgzINJcuiaAEnhxUScSvZJDEYYUHQLhu5B9gRqJwZlhr6DHD5iHAoxJhTa5PbCFKrqXSTTBlRFgKLQiJDTjEpU6VujxJrGoVGCPJ0tGzDIQEsDsgs2cssckiPDyJFptUEIkai+MpdLY2XGT2DlyOXpIhnlwY9vO4Yhl7sINJqQa03och66IlEXEGPLo0TUOUmRxPJhflQl5jI+PZ9YYmN9I+8MXYk8m56S4VAvVkU8lAZLCwZT03P0x+NY11QB26YhIOrD8TEcanuoOAQyja2VJMbkvEjv8KSB7qvZV9nBgwdDR9o+U3p+nMATR6sR7wqhdbefSmZ/DpxEujHGV0eP9BbpHPSTniRVzpeCoMtY5AHc6Erwt75rEIXOzk7t0Ak+8dSx9ei+GMa2+1V0/7JEa0eH4VAHkLia5cIkpjZVYpMHkuRBT3m4nUlDTwcQ8PlQKjmIrlevFxMXZvWexsiWvFXGo5V9uPy9g/rmABYWJCgJEs01yWEKpHaSRAvqgo7pcR0TpgJTlxCRAmAxGRNZlZ/+qOXBAt6dJetVxfr2BNe1eEeeCSE1S5O0IYNl0tRwbFgKga3k4IvYsAMGFnUBAY+qipZAaKUBcDRvaPDMxjt79R9LuqPj7K6y/JM3t8dclpnIwsuEyXWvKENqDAhUu3Amy4uxWTuLTW1+XP9B8+T6K43PvXRkCv+z+cXBc4nemepALBD2CzHLQSBMeiYljI66uNjnoIbkMSYs9M+b/W93VO9EcRusvfnv+p9L5V6Dydt7LktRTSFzdMFzBCWRdCc/eP6FB07/Ecv/ffl3auuKkJv2jm0AAAAASUVORK5CYII=",Tt={coinInfo:N`
|
|
198
|
+
display: flex;
|
|
199
|
+
gap: 24px;
|
|
200
|
+
`,coinAmount:N`
|
|
201
|
+
display: flex;
|
|
202
|
+
flex-direction: row;
|
|
203
|
+
gap: 4px;
|
|
204
|
+
`,coinLabel:N`
|
|
205
|
+
font-size: 13px;
|
|
206
|
+
font-weight: 700;
|
|
207
|
+
text-align: center;
|
|
208
|
+
height: 36px;
|
|
209
|
+
width: 100%;
|
|
210
|
+
line-height: 36px;
|
|
211
|
+
`,coinValue:N`
|
|
212
|
+
display: flex;
|
|
213
|
+
align-items: center;
|
|
214
|
+
gap: 8px;
|
|
215
|
+
font-size: 25px;
|
|
216
|
+
font-weight: 900;
|
|
217
|
+
color: #ffd700;
|
|
218
|
+
`,coinIcon:N`
|
|
219
|
+
width: 16px;
|
|
220
|
+
height: 16px;
|
|
221
|
+
`},$E=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=$r,formatter:n=s=>s>999?`${s}+`:`${s}`,hideNeeds:i=!1,hideBalance:o=!1,className:a=""})=>{let s=n(t);return b("div",{className:`${Tt.coinInfo} ${a}`,children:[!i&&b("div",{className:Tt.coinAmount,children:[b("span",{className:Tt.coinLabel,children:"Unlock needs"}),b("div",{className:Tt.coinValue,children:[b("img",{src:r,alt:"Jolicoin",className:Tt.coinIcon}),b("span",{children:e})]})]}),!o&&b("div",{className:Tt.coinAmount,children:[b("span",{className:Tt.coinLabel,children:"Balance"}),b("div",{className:Tt.coinValue,children:[b("img",{src:r,alt:"Jolicoin",className:Tt.coinIcon}),b("span",{children:s})]})]})]})},Mr={card:N`
|
|
222
|
+
display: flex;
|
|
223
|
+
flex-direction: column;
|
|
224
|
+
align-items: center;
|
|
225
|
+
justify-content: center;
|
|
226
|
+
background-color: #222222;
|
|
227
|
+
border-radius: 16px;
|
|
228
|
+
padding: 24px 16px;
|
|
229
|
+
cursor: pointer;
|
|
230
|
+
transition: all 0.2s ease;
|
|
231
|
+
|
|
232
|
+
&:hover {
|
|
233
|
+
background-color: #2a2a2a;
|
|
234
|
+
}
|
|
235
|
+
`,selectedCard:N`
|
|
236
|
+
background-color: rgba(106, 61, 232, 0.2);
|
|
237
|
+
border: 1px solid #6a3de8;
|
|
238
|
+
|
|
239
|
+
&:hover {
|
|
240
|
+
background-color: rgba(106, 61, 232, 0.3);
|
|
241
|
+
}
|
|
242
|
+
`,coinContainer:N`
|
|
243
|
+
display: flex;
|
|
244
|
+
align-items: center;
|
|
245
|
+
margin-bottom: 16px;
|
|
246
|
+
`,coinIcon:N`
|
|
247
|
+
width: 21px;
|
|
248
|
+
height: 21px;
|
|
249
|
+
`,coinValue:N`
|
|
250
|
+
font-size: 24px;
|
|
251
|
+
font-weight: bold;
|
|
252
|
+
color: white;
|
|
253
|
+
`,price:N`
|
|
254
|
+
font-size: 16px;
|
|
255
|
+
color: #a88aff;
|
|
256
|
+
font-weight: bold;
|
|
257
|
+
`},WU=N`
|
|
258
|
+
padding: 5px;
|
|
259
|
+
box-sizing: border-box;
|
|
260
|
+
height: 100%;
|
|
261
|
+
width: 100%;
|
|
262
|
+
margin-bottom: 10px;
|
|
263
|
+
`,zU=N`
|
|
264
|
+
aspect-ratio: 1/1.1; // 强制 1:1 的宽高比
|
|
265
|
+
height: 100%;
|
|
266
|
+
display: flex;
|
|
267
|
+
flex-direction: column;
|
|
268
|
+
justify-content: center;
|
|
269
|
+
`,YU=e=>b("div",{className:WU,children:b("div",{className:zU,children:b("div",{className:`${Mr.card} ${e.option.id===e.selectedId?Mr.selectedCard:""}`,onClick:()=>e.handleSelect(e.option),children:[b("div",{className:Mr.coinContainer,children:[b("img",{src:$r,alt:"Coin",className:Mr.coinIcon}),b("span",{className:Mr.coinValue,children:e.option.coins})]}),b("div",{className:Mr.price,children:e.option.price})]})})}),QU=({options:e,defaultSelectedId:t,onSelect:r})=>{let[n,i]=Kt(t!=null?t:""),o=a=>{i(a.id),r==null||r(a)};return b(ic,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:b(oc,{gutter:[10,10],className:N`
|
|
270
|
+
display: flex;
|
|
271
|
+
flex-wrap: wrap;
|
|
272
|
+
`,children:e.map(a=>b(FE,{span:8,children:b(YU,{option:a,selectedId:n,coinImageSrc:$r,handleSelect:o})},a.id))})})},XU=RE(QU),oe={modal:N`
|
|
273
|
+
font-family: PingFangSC-Regular;
|
|
274
|
+
background-color: #1a1a1a;
|
|
275
|
+
color: white;
|
|
276
|
+
border-radius: 16px 16px 0 0;
|
|
277
|
+
padding: 16px;
|
|
278
|
+
width: calc(100% - 32px);
|
|
279
|
+
max-width: 440px;
|
|
280
|
+
margin: 0 auto;
|
|
281
|
+
display: flex;
|
|
282
|
+
flex-direction: column;
|
|
283
|
+
`,header:N`
|
|
284
|
+
display: flex;
|
|
285
|
+
justify-content: space-between;
|
|
286
|
+
align-items: center;
|
|
287
|
+
`,closeButton:N`
|
|
288
|
+
background: none;
|
|
289
|
+
border: none;
|
|
290
|
+
cursor: pointer;
|
|
291
|
+
color: white;
|
|
292
|
+
padding: 8px;
|
|
293
|
+
`,content:N`
|
|
294
|
+
display: flex;
|
|
295
|
+
flex-direction: column;
|
|
296
|
+
gap: 16px;
|
|
297
|
+
`,title:N`
|
|
298
|
+
font-size: 16px;
|
|
299
|
+
font-weight: 600;
|
|
300
|
+
line-height: 1.2;
|
|
301
|
+
margin: 0;
|
|
302
|
+
`,autoDeductOption:N`
|
|
303
|
+
display: flex;
|
|
304
|
+
justify-content: space-between;
|
|
305
|
+
align-items: center;
|
|
306
|
+
`,toggleSwitch:N`
|
|
307
|
+
position: relative;
|
|
308
|
+
display: inline-block;
|
|
309
|
+
width: 33px;
|
|
310
|
+
height: 18px;
|
|
311
|
+
`,toggleInput:N`
|
|
312
|
+
opacity: 0;
|
|
313
|
+
width: 0;
|
|
314
|
+
height: 0;
|
|
315
|
+
`,toggleSlider:N`
|
|
316
|
+
position: absolute;
|
|
317
|
+
cursor: pointer;
|
|
318
|
+
top: 0;
|
|
319
|
+
left: 0;
|
|
320
|
+
right: 0;
|
|
321
|
+
bottom: 0;
|
|
322
|
+
background-color: #3b3b3b;
|
|
323
|
+
transition: 0.4s;
|
|
324
|
+
border-radius: 34px;
|
|
325
|
+
|
|
326
|
+
&:before {
|
|
327
|
+
position: absolute;
|
|
328
|
+
content: '';
|
|
329
|
+
height: 18px;
|
|
330
|
+
width: 18px;
|
|
331
|
+
left: 0px;
|
|
332
|
+
bottom: 0px;
|
|
333
|
+
background-color: white;
|
|
334
|
+
transition: 0.4s;
|
|
335
|
+
border-radius: 50%;
|
|
336
|
+
}
|
|
337
|
+
`,toggleSliderActive:N`
|
|
338
|
+
background-color: #6a3de8;
|
|
339
|
+
|
|
340
|
+
&:before {
|
|
341
|
+
transform: translateX(18px);
|
|
342
|
+
}
|
|
343
|
+
`,confirmButton:N`
|
|
344
|
+
background-color: #6a3de8;
|
|
345
|
+
color: white;
|
|
346
|
+
border: none;
|
|
347
|
+
border-radius: 40px;
|
|
348
|
+
padding: 12px;
|
|
349
|
+
font-size: 16px;
|
|
350
|
+
font-weight: 600;
|
|
351
|
+
cursor: pointer;
|
|
352
|
+
transition: background-color 0.3s;
|
|
353
|
+
|
|
354
|
+
&:hover {
|
|
355
|
+
background-color: #5730c5;
|
|
356
|
+
}
|
|
357
|
+
`,cancelButton:N`
|
|
358
|
+
background-color: transparent;
|
|
359
|
+
color: white;
|
|
360
|
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
361
|
+
border-radius: 40px;
|
|
362
|
+
padding: 12px;
|
|
363
|
+
font-size: 16px;
|
|
364
|
+
font-weight: 600;
|
|
365
|
+
cursor: pointer;
|
|
366
|
+
transition: background-color 0.3s;
|
|
367
|
+
|
|
368
|
+
&:hover {
|
|
369
|
+
background-color: rgba(255, 255, 255, 0.05);
|
|
370
|
+
}
|
|
371
|
+
`,bottomIndicator:N`
|
|
372
|
+
width: 40px;
|
|
373
|
+
height: 4px;
|
|
374
|
+
background-color: rgba(255, 255, 255, 0.3);
|
|
375
|
+
border-radius: 2px;
|
|
376
|
+
margin: 0 auto;
|
|
377
|
+
`},ZU=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,onConfirm:n,onClose:i,confirmButtonText:o,cancelButtonText:a})=>{let[s,l]=Kt(r),u=()=>{n(s)};return b("div",{className:oe.modal,children:[b("div",{className:oe.header,children:[b($E,{unlockNeedsAmount:e,balanceAmount:t,coinImage:$r}),b("button",{className:oe.closeButton,onClick:i,children:b("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b("path",{d:"M18 6L6 18M6 6L18 18",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),b("div",{className:oe.content,children:[b("h2",{className:oe.title,children:"Unlock with Jolicoin for a better experience"}),b("div",{className:oe.autoDeductOption,children:[b("span",{className:N`
|
|
378
|
+
font-size: 14px;
|
|
379
|
+
font-weight: 400;
|
|
380
|
+
line-height: 1.2;
|
|
381
|
+
`,children:"Deduct Jolicoin automatically for digital items"}),b("label",{className:oe.toggleSwitch,children:[b("input",{className:oe.toggleInput,type:"checkbox",checked:s,onChange:()=>l(!s)}),b("span",{className:`${oe.toggleSlider} ${s?oe.toggleSliderActive:""}`})]})]}),b("button",{className:oe.confirmButton,onClick:u,children:o}),b("button",{className:oe.cancelButton,onClick:i,children:a})]}),b("div",{className:oe.bottomIndicator})]})},eF=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],onConfirm:i,onClose:o,confirmButtonText:a,cancelButtonText:s})=>{let[l,u]=Kt(r),[d,c]=Kt(n[0].productId),p=()=>{i(d)},h=Qe(m=>{console.log(m),c(m)},[]);return b("div",{className:oe.modal,children:[b("div",{className:oe.header,children:[b($E,{unlockNeedsAmount:e,balanceAmount:t,coinImage:$r}),b("button",{className:oe.closeButton,onClick:o,children:b("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b("path",{d:"M18 6L6 18M6 6L18 18",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),b("div",{className:oe.content,children:[b("div",{className:N`
|
|
382
|
+
padding: 0px;
|
|
383
|
+
`,children:b(XU,{options:n.map(m=>({id:m.productId,coins:m.quantity,price:m.totalAmountStr})),defaultSelectedId:n[0].productId,onSelect:m=>h(m.id)})}),b("button",{className:oe.confirmButton,onClick:p,children:a}),b("button",{className:oe.cancelButton,onClick:o,children:s})]}),b("div",{className:oe.bottomIndicator})]})},HE=e=>{let t=nc({title:"",content:b(ZU,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,confirmButtonText:e.buttons.confirm.text,cancelButtonText:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"316px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},VE=e=>{let t=nc({title:"",content:b(eF,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,paymentChoices:e.data.paymentChoices,confirmButtonText:e.buttons.confirm.text,cancelButtonText:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},JE=new Map,KE=(e,t)=>{JE.set(e,t)};KE(/^\{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 b("div",{style:r,children:b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[b("g",{clipPath:"url(#clip0_2247_16523)",children:b("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"})}),b("defs",{children:b("clipPath",{id:"clip0_2247_16523",children:b("rect",{width:"24",height:"24",fill:"white"})})})]})})});KE(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:$r;return b("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});tF=(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,u]of JE.entries()){let d=l.source.startsWith("^")?l.source.slice(1):l.source,c=new RegExp(d,"g");c.lastIndex=n;let p=c.exec(e);p&&p.index<a&&(o=p,a=p.index,s=u)}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=N`
|
|
198
384
|
display: 'flex',
|
|
199
385
|
alignItems: 'center',
|
|
200
386
|
gap: '4px',
|
|
201
387
|
color: '#FFF',
|
|
202
|
-
fontFamily: '
|
|
388
|
+
fontFamily: 'PingFangSC-Regular',
|
|
203
389
|
fontSize: '16px',
|
|
204
390
|
fontStyle: 'normal',
|
|
205
391
|
fontWeight: 600,
|
|
206
392
|
lineHeight: '18px',
|
|
207
393
|
width: 'max-content'
|
|
208
|
-
`;return
|
|
394
|
+
`;return r.length===1?r[0]:b("div",{className:i,children:r})},rF=({message:e,type:t="info",duration:r=3e3,onClose:n})=>{let[i,o]=Kt(!0);ur(()=>{let s=setTimeout(()=>{o(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(s)},[r,n]);let a=N`
|
|
209
395
|
position: fixed;
|
|
210
396
|
top: max(20px, env(safe-area-inset-top));
|
|
211
397
|
left: 50%;
|
|
@@ -213,7 +399,8 @@ var TS=Object.create;var fn=Object.defineProperty,RS=Object.defineProperties,AS=
|
|
|
213
399
|
max-width: min(85vw, 400px);
|
|
214
400
|
min-width: 200px;
|
|
215
401
|
width: auto;
|
|
216
|
-
|
|
402
|
+
font-family: PingFangSC-Regular;
|
|
403
|
+
background: ${t==="success"?"#4caf50":t==="error"?"#f44336":t==="warning"?"#ff9800":"#2F2F3B"};
|
|
217
404
|
color: white;
|
|
218
405
|
border-radius: 8px;
|
|
219
406
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
@@ -223,6 +410,200 @@ var TS=Object.create;var fn=Object.defineProperty,RS=Object.defineProperties,AS=
|
|
|
223
410
|
transform: ${i?"translate(-50%, 0)":"translate(-50%, -20px)"};
|
|
224
411
|
text-align: center;
|
|
225
412
|
word-wrap: break-word;
|
|
226
|
-
`;return A("div",{className:`toast toast-${r} ${i?"toast-visible":"toast-hidden"} ${a}`,children:e})},Nw=(e,r)=>{let t=document.createElement("div");document.body.appendChild(t);let n=()=>{document.body.removeChild(t)},i=RL(e,r);Tt(A(AL,{message:i,type:r==null?void 0:r.type,duration:r==null?void 0:r.duration,onClose:n}),t)}});function Dw(){return E(this,null,function*(){if(ku)return ku;let r=`${S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${S.mpId}&from=GAME_DETAIL`,{response:{data:t}}=yield he(r);return ku=t,t})}function Lw(){return E(this,null,function*(){let e=new nr;if(S.mpType!=="game")return e.resolve(!1),e.promise;let r=yield Dw();if(r.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:t,title:n,buttons:i}=r.data,o=Ow({games:t.games,title:n,buttons:i,onClose:a=>{var s;switch(a.type){case"quit":e.resolve(!1);break;case"dismiss":e.resolve(!0),o.hide();break;case"navigate":(s=a.data)!=null&&s.game?qL(a.data.game):e.resolve(!0),o.hide();break;default:e.resolve(!0);break}}});return e.promise})}var ku,qL,Fw=R(()=>{"use strict";ae();me();P();qu();Dr();ku=null;Dw();qL=e=>{var a;let{data:r}=F("envSync"),t=new URL(r.schema),n=new URLSearchParams(t.search);n.set("gameId",e.gameId),n.set("joliSource",S.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;F("openSchemaSync",{schema:o})}});var Uw={};Hu(Uw,{config:()=>jL});function kL(){Lr.on("isAdShowing",e=>{zi=e,yt(zi)&&F("updateContainerConfigSync",{displayCapsuleButton:!zi,webviewId:S.webviewId})})}function OL(){we.on("onInterceptSystemExit",({intercept:e})=>{jw=e})}function PL(){we.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),Se("onDocumentReady",{start_timestamp:Qi,timestamp:Date.now()})})}function CL(){ke("onI18nChanged",({language:e})=>{we.emit("onI18nChanged",{i18n:e})})}function NL(e){S.mpType==="game"&&ve.start(e)}function DL(){ke("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:r})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),we.emit("LifecycleEvent.onReady",T({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),Se("joliboxServiceReady",{start_timestamp:Qi,timestamp:Date.now()}),NL(r)}),ke("onBeforeExit",({uuid:e})=>{var r;(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function LL(){let e=()=>{Se("onBeforeExit",{timestamp:Date.now()}),Wi==null||Wi(),ve.close(Date.now()-Qi)},r=()=>zi||jw;Ve.onDoExit(()=>E(this,null,function*(){return r()?!0:yt(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):Yi!=null&&Yi.canShowRecommended&&(yield Lw())?!0:(e(),!1)}))}function FL(){return E(this,null,function*(){let e=`${S.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:r}}=yield he(e);r&&(Yi=r)})}function jL(){Qi=Date.now(),DL(),kL(),OL(),LL(),PL(),CL(),FL(),Wi=rl()}var Wi,Qi,zi,Yi,jw,Mw=R(()=>{"use strict";me();ae();P();or();tl();da();Fw();Dr();zi=!1,Yi=null,jw=!1;Ve.onReady(()=>{})});function Bw(e){let r=Xo.config[e];return r||(r={},Xo.config[e]=r),(t,n)=>{if(r[t]){De.warn(`[can i use] ${t} already registered`);return}r[t]=T({},n)}}var $w=R(()=>{"use strict";P()});function Ou(e){Hw=e}function Xi(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(r=>Xi(r)):Object.keys(e).reduce((r,t)=>(r[t]=Xi(e[t]),r),{})}function rr(e){return typeof e=="number"}function Pu(e){let r=Cu(e);switch(r){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${r}`}}function Cu(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var Hw,X,Zi,eo,ro,to,at,no,io,oo,ao,so,uo,co,lo,fo,po,mo,ho,Nu=R(()=>{"use strict";Hw=!1;X=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(r){if(Hw)if(typeof r=="string")this.errors.push(r);else{let t=`${this.path} should be ${r.expect}`;this._optional&&r.expect!=="undefined"?t+=" or undefined, ":t+=", ",t+=`but got ${Pu(r.actual)}`,this.errors.push(t)}return!1}fallback(r){return this.hasFallback=!0,this._fallback=r,this}get fallbackValue(){return Xi(this._fallback)}default(r){return this.hasDefault=!0,this._default=r,this}get defaultValue(){return typeof this._default=="function"?this._default:Xi(this._default)}optional(){return this._optional=!0,this}};Zi=class extends X{validate(r){return this._optional&&r===void 0?!0:rr(r)?rr(this._min)&&r<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):rr(this._max)&&r>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):rr(this._greater)&&r<=this._greater?this.fail(`the value of ${this.path} should be greater than ${this._greater}`):this._isInt&&r!==Math.floor(r)?this.fail(`the value of ${this.path} should be integer but got ${r}`):!0:this.fail({expect:"number",actual:r})}min(r){return this._min=r,this}max(r){return this._max=r,this}isInt(r){return this._isInt=r,this}greater(r){return this._greater=r,this}},eo=class extends X{validate(r){return this._optional&&r===void 0?!0:typeof r!="boolean"?this.fail({expect:"boolean",actual:r}):!0}},ro=class extends X{validate(r){if(this._optional&&r===void 0)return!0;if(typeof r!="string")return this.fail({expect:"string",actual:r});if(rr(this._maxLength)&&r.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(rr(this._minLength)&&r.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(r))return this.fail(`${this.path} should match pattern "${this._pattern}"`)}else if(this._pattern&&!this._pattern.test(r))return this.fail(`${this.path} should match pattern "${this._pattern.toString()}"`);return!0}minLength(r){return this._minLength=r,this}maxLength(r){return this._maxLength=r,this}pattern(r){return this._pattern=r,this}},to=class extends X{validate(r){return this._optional&&r===void 0?!0:typeof r!="symbol"?this.fail({expect:"symbol",actual:r}):!0}},at=class extends X{validate(r){return!0}},no=class extends X{validate(r){return r!==void 0?this.fail({expect:"undefined",actual:r}):!0}},io=class extends X{validate(r){return this._optional&&r===void 0?!0:r!==null?this.fail({expect:"null",actual:r}):!0}},oo=class extends X{validate(r){return this._optional&&r===void 0?!0:typeof r!="function"?this.fail({expect:"function",actual:r}):!0}},ao=class extends X{constructor(...r){super(),this._items=r}validate(r){if(this._optional&&r===void 0)return!0;if(!this._items.includes(r)){let t=this._items.map(n=>JSON.stringify(n)).join(", ");return this.fail(`expect ${this.path} to be one of ${t}, but got ${Pu(r)}`)}return!0}},so=class extends X{constructor(t){super();this._item=t}validate(t){if(this._optional&&t===void 0)return!0;if(!Array.isArray(t))return this.fail({expect:"array",actual:t});if(rr(this._minItems)&&t.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(rr(this._maxItems)&&t.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(rr(this._length)&&t.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(t.forEach((o,a)=>{if(n.path=`${this.path}[${a}]`,n.errors=this.errors,o===void 0&&n.hasDefault){t[a]=n.defaultValue;return}n.validate(o)||(n.hasFallback?t[a]=n.fallbackValue:i=!1)}),this._uniqueItems){let o=new Map;for(let a in t)o.has(t[a])?i=this.fail(`${this.path} should NOT have duplicate items (${this.path}[${o.get(t[a])}] and ${this.path}[${a}] are identical)`):o.set(t[a],a)}return i}minItems(t){return this._minItems=t,this}maxItems(t){return this._maxItems=t,this}uniqueItems(){return this._uniqueItems=!0,this}length(t){return this._length=t,this}},uo=class extends X{constructor(t){super();this._value=t}validate(t){if(this._optional&&t===void 0)return!0;if(Cu(t)!=="object")return this.fail({expect:"object",actual:t});let i=t,o=this._value;o.errors=this.errors;let a=!0;for(let s in i){let u=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}"]`,!(u===void 0&&o._optional)){if(u===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(u)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},co=class extends X{constructor(t={}){super();this._object=t}validate(t){if(this._optional&&t===void 0)return!0;if(Cu(t)!=="object")return this.fail({expect:"object",actual:t});let n=t,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}},lo=class extends X{constructor(t){super();this.value=t}validate(t){return t===void 0&&this._optional?!0:t!==this.value?this.fail({expect:Pu(this.value),actual:t}):!0}},fo=class extends X{constructor(...r){super(),this._items=r}validate(r){if(r===void 0&&this._optional)return!0;let t=[],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(r))t.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=t.join(`
|
|
227
|
-
or `);this.errors.push(o)}return n}},
|
|
228
|
-
`);throw e.errors.length=0,Ou(!1),new TypeError(n)}}var b,Lu=R(()=>{"use strict";Nu();Nu();b={object(e){return new co(e)},array(e){return new so(e)},tuple(...e){return new po(...e)},literal(e){return new lo(e)},or(...e){return new fo(...e)},symbol(){return new to},record(e){return new uo(e)},function(){return new oo},boolean(){return new eo},string(){return new ro},number(){return new Zi},undefined(){return new no},null(){return new io},unknown(){return new at},any(){return new at},as(){return new at},arraybuffer(){return new mo},enum(...e){return new ao(...e)},typedarray(e){return new ho(e)}}});var vo,Kw,Gw=R(()=>{"use strict";P();Fe();Lu();Nr();vo=1,Kw=e=>{function r(n,i){return(...o)=>{var l,p,m,h;let a=Date.now(),s={method:n,trace_id:vo};vo+=1;let u="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Du(i.paramsSchema,o,"params")}catch(_){throw aa(`${n}:fail ${_.message}`)}let y=i.implement(...o),v=y,g=`${n}:ok`;if(y&&"code"in y){let{code:_,data:x,message:q}=y;u=_,v=x,g=q}return{code:u,message:g,data:v}}catch(y){let v=y;d=(p=(l=v.code)!=null?l:v.errNo)!=null?p:2e3,u="FAILURE";let g=(h=(m=v.message)!=null?m:v.errMsg)!=null?h:`${y}`;return c=`${n}:${u} ${g.replace(/^\S+:(fail|cancel)\s?/,"")}`,le(new wt(c,d)),{code:u,message:c}}finally{let y=Date.now()-a;e("apiInvoked",C(T({},s),{duration:y,status:u}))}}}function t(n,i){return(...o)=>E(this,null,function*(){var p,m,h,y;let a=hc(o)?o:[o],s=Date.now(),u={method:n,trace_id:vo};vo+=1;let c=`${n}:ok`,d="SUCCESS",l={code:d,message:c};try{if(i.paramsSchema)try{Du(i.paramsSchema,a,"params")}catch(_){throw aa(_.message)}let g=yield i.implement(...a);if(g&&"code"in g){let{code:_,data:x,message:q}=g;d=_,c=q,g=x}return Object.assign(l,{code:d,message:c,data:g}),l}catch(v){let g=v,_=(m=(p=g.code)!=null?p:g.errNo)!=null?m:2e3;d="FAILURE";let x=(y=(h=g.message)!=null?h:g.errMsg)!=null?y:`${v}`,q=`${n}:${d} ${x.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(l,{code:d,message:q}),le(new wt(q,_)),l}finally{let v=Date.now()-s;e("apiInvoked",C(T({},u),{duration:v,status:d}))}})}return{createAPI:t,createSyncAPI:r}}});var oe,M,O,Ke=R(()=>{"use strict";$w();or();Gw();Lu();({createAPI:oe,createSyncAPI:M}=Kw(Se)),O=Bw("native")});var Vw,ML,BL,$L,HL,Jw=R(()=>{"use strict";P();Ke();me();Vw=z(),ML="env",BL="getSystemInfoSync",$L=M(BL,{implement:()=>{var t;let e=F("envSync"),{data:r}=e;return{system:r.deviceInfo.system,platform:r.deviceInfo.platform.toLowerCase(),version:r.sdkInfo.jssdkVersion,pixelRatio:r.deviceInfo.pixelRatio,language:r.deviceInfo.lang,brand:r.deviceInfo.brand,appName:(t=r.hostInfo)==null?void 0:t.appName,SDKVersion:r.sdkInfo.jssdkVersion}}}),HL=M(ML,{implement:()=>{var r;let e=F("envSync");return(r=e==null?void 0:e.data)!=null?r:void 0}});Vw.registerCommand("API.getSystemInfoSync",$L);Vw.registerCommand("API.env",HL);O("env",{version:"1.0.0"});O("getSystemInfoSync",{version:"1.0.0"})});var Ww=f(Fu=>{"use strict";P();Ke();Fe();me();or();ae();var KL="exitGame",GL="onReady",VL="onJoliboxShow",JL="onJoliboxHide",go=z(),yo=yn(le),WL=oe(KL,{paramsSchema:b.tuple(b.function(),b.boolean().optional().default(!1)),implement:(e,r=!1)=>E(Fu,null,function*(){yo(e).call(Fu),yt(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&lc("onRetentionResult",{shouldStay:r},S.from,!0),yield pe("exitAppAsync")})}),zL=M(VL,{paramsSchema:b.tuple(b.function()),implement(e){let r=yo(e);ke("onJoliboxEnterForeground",()=>{r.call(this),St.emit("visible",!0)})}}),YL=M(JL,{paramsSchema:b.tuple(b.function()),implement(e){let r=yo(e);ke("onJoliboxEnterBackground",()=>{r.call(this),St.emit("visible",!1)})}}),QL=M(GL,{paramsSchema:b.tuple(b.function()),implement(e){let r=yo(e);we.on("LifecycleEvent.onReady",t=>{r(t)})}});go.registerCommand("LifecycleSDK.exit",WL);go.registerCommand("LifecycleSDK.onReady",QL);go.registerCommand("LifecycleSDK.onJoliboxShow",zL);go.registerCommand("LifecycleSDK.onJoliboxHide",YL);O("lifeCycle.exit",{version:"1.0.0"});O("lifeCycle.onReady",{version:"1.0.0"});O("lifeCycle.onJoliboxShow",{version:"1.0.0"});O("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function zw(e){let r={};if(!yr(e))return r;for(let[t,n]of Object.entries(e)){let i=t.toLocaleLowerCase();n?typeof n=="object"?r[i]=Object.prototype.toString.call(n):r[i]=String(n):r[i]=""}return r}function Yw(e="GET"){if(e==="")return"POST";let r=e.toUpperCase();return["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"].includes(r)?r:"GET"}function Qw(e,r=!1){if(e)return r||e>0&&e<=6e4?Math.ceil(e):6e4}function Xw(e,r,t){if(["POST","PUT","PATCH"].includes(r)||!yr(t))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,u]of Object.entries(t))u!=null&&o.append(s,String(u));let a=o.toString();return a?`${n}?${a}`:n}var Zw=R(()=>{"use strict";P()});var XL,ZL,ju,Uu,eS,eF,rF,tF,rS=R(()=>{"use strict";Nr();ca();Ke();Zw();P();Fe();ae();XL=15,ZL=wn("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),ju=0,Uu=[],eS=yn(le),eF=(e,r)=>{let t=e.filter(r),n=e.filter(i=>!r(i));return e.length=0,e.push(...n),t},rF=e=>{let r=new nr,t=()=>{};return M("request",{paramsSchema:b.tuple(b.object({url:b.string(),method:b.string(),headers:b.object(),data:b.object().optional(),query:b.object().optional(),dataType:b.string().default("json"),responseType:b.string().default("text"),enableCache:b.boolean().default(!1),appendHostCookie:b.boolean().default(!0),timeout:b.number().default(3e4),success:b.function(),fail:b.function()})),implement(i){let o=()=>E(this,null,function*(){var s,u;let a=eS(i.fail);try{if(ju+=1,r.state!=="pending")return;let{data:c,dataType:d,responseType:l,enableCache:p,appendHostCookie:m}=i,h=zw(i.headers),y=Yw(i.method),v=Qw(i.timeout),g=Xw(i.url,y,c),_=eS(i.success),x=Object.assign({},i,{method:y,header:h,data:y==="GET"||y==="HEAD"?void 0:c,enableCache:p,query:(s=i.query)!=null?s:{},dataType:d,responseType:l,appendHostCookie:m});v&&(x.timeout=v);let q=ZL(g,x);{let{response:V}=yield q,{code:I,data:w,message:K}=V;if(w&&typeof w=="object"&&"status"in w&&w.status!==200)throw ir({code:w.status||-1,msg:`request:fail status ${w.status}`});r.resolve({code:I!=null?I:"SUCCESS",data:w,message:K!=null?K:"request:ok"}),_({code:"SUCCESS",message:"request:ok",data:w})}}catch(c){r.reject(c),a({code:"FAILURE",message:"httpRequst: failed"})}finally{ju-=1,(u=Uu.shift())==null||u()}});return ju>=XL?(t=()=>{eF(Uu,a=>a===o)},Uu.push(o)):o(),r.promise}})(e),{abort(){r.reject(ir({code:-1,msg:"request:fail abort"})),t()}}},tF=z();tF.registerCommand("HttpSDK.request",rF);O("request",{version:"1.0.0"})});function uF(e){let r=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return sF.includes(r)?r:""}function cF(e,r){try{switch(r){case"string":return e;case"object":return JSON.parse(e);case"number":return parseFloat(e);case"boolean":return e==="true";default:return""}}catch(t){return""}}function lF(e,r){try{switch(r){case"string":case"number":case"boolean":return`${e}`;case"object":return JSON.stringify(e);default:return""}}catch(t){return""}}var _o,nF,iF,oF,aF,O5,P5,sF,tS=R(()=>{"use strict";Ke();me();P();Dr();ae();_o=z(),nF=oe("getLocalStorage",{paramsSchema:b.tuple(b.string()),implement(e){return E(this,null,function*(){let{response:r}=yield he(`/api/games/user-storage/${S.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:t,message:n,data:i}}=yield r;if(t==="SUCCESS")return{code:t,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield pe("getLocalStorageAsync",{key:e}),s=cF(o,a);return{code:t,message:`${n}. fallback to native`,data:s}}catch(o){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get local storage failed",data:null}}})}});_o.registerCommand("StorageSDK.getItem",nF);O("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});iF=oe("setStorage",{paramsSchema:b.tuple(b.string(),b.or(b.string(),b.boolean(),b.number())),implement(e,r){return E(this,null,function*(){let t=S.mpId,n=typeof r=="string"?r:String(r),{response:i}=yield he(`/api/games/user-storage/${t}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=uF(r),u=lF(r,s);return yield pe("setLocalStorageAsync",{key:e,data:u,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});_o.registerCommand("StorageSDK.setItem",iF);O("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});oF=oe("removeStorage",{paramsSchema:b.tuple(b.string()),implement(e){return E(this,null,function*(){let r=S.mpId,{response:t}=yield he(`/api/games/user-storage/${r}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=t;return yield pe("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});_o.registerCommand("StorageSDK.removeItem",oF);O("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});aF=oe("clearStorage",{implement(){return E(this,null,function*(){let e=S.mpId,{response:r}=yield he(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});pe("clearLocalStorageAsync");let{data:{code:t,message:n}}=r;return t==="SUCCESS"?{code:t,message:n}:{code:t,message:`${n}.fallback to native`}})}});_o.registerCommand("StorageSDK.clear",aF);O("storage.clear",{version:"1.0.0"});O5=oe("getStorageInfo",{implement(){return E(this,null,function*(){let{data:e}=yield pe("getStorageInfoAsync");return e})}});O("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});P5=M("getStorageInfoSync",{implement(){return F("getStorageInfoSync")}}),sF=["string","number","boolean","object",""]});var dF,fF,pF,Mu,nS=R(()=>{"use strict";P();me();Ke();dF=M("showKeyboard",{paramsSchema:b.tuple(b.object({defaultValue:b.string().optional().default(""),multiple:b.boolean().optional().default(!1),maxLength:b.unknown().optional().default(1e5)})),implement(e){var n;let r=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:t}=e;t&&r&&(t=t.slice(0,r)),F("showKeyboardSync",C(T({},e),{defaultValue:t,maxLength:r}))}});O("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"}});fF=M("updateKeyboard",{paramsSchema:b.tuple(b.object({value:b.string()})),implement(e){F("updateKeyboardSync",e)}});O("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});pF=M("hideKeyboard",{implement(){F("hideKeyboardSync")}});O("keyboard.hideKeyboard",{version:"1.0.0"});Mu=z();Mu.registerCommand("KeyboardSDK.showKeyboard",dF);Mu.registerCommand("KeyboardSDK.updateKeyboard",fF);Mu.registerCommand("KeyboardSDK.hideKeyboard",pF)});var iS=f(Or=>{"use strict";P();Ke();or();var st=z(),mF=oe("levelFinished",{paramsSchema:b.tuple(b.string(),b.object({result:b.boolean(),duration:b.number()})),implement:(e,r)=>E(Or,null,function*(){let{result:t,duration:n}=r,i=[];i.push(ve.tracker("LevelFinished",{levelId:e,result:t,duration:n})),i.push(ve.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(i)})}),hF=oe("taskFinished",{paramsSchema:b.tuple(b.string(),b.object({duration:b.number()})),implement:(e,r)=>E(Or,null,function*(){let{duration:t}=r;return yield ve.reportToNative({event:"TaskFinished",params:{duration:t,taskId:e}})})}),vF=oe("levelUpgrade",{paramsSchema:b.tuple(b.string(),b.string()),implement:(e,r)=>E(Or,null,function*(){let t=[];t.push(ve.reportToNative({event:"LevelUpgrade",params:{name:r,levelId:e}})),yield Promise.all(t)})}),gF=oe("onHistoryUserLevel",{paramsSchema:b.tuple(b.number()),implement:e=>E(Or,null,function*(){return yield ve.reportToNative({event:"HistoryUserLevel",params:{level:e}})})}),yF=oe("onHistoryUserScore",{paramsSchema:b.tuple(b.number()),implement:e=>E(Or,null,function*(){return yield ve.reportToNative({event:"HistoryUserScore",params:{score:e}})})}),_F=oe("taskEvent",{paramsSchema:b.tuple(b.string(),b.object({tools:b.array(b.object({id:b.string(),name:b.string(),count:b.number(),description:b.string().optional(),price:b.object({amount:b.number(),unit:b.string()}).optional()})).optional(),awards:b.array(b.object({id:b.string(),name:b.string()})).optional()})),implement:(e,r)=>E(Or,null,function*(){var n,i;let t=[];t.push(ve.reportToNative({event:"TaskEvent",params:T({taskId:e},r)})),(i=(n=r.tools)==null?void 0:n.length)!=null&&i&&(t.push(ve.reporter({event:"USE_GAME_ITEM"})),t.push(ve.reportToNative({event:"UseGameItem",params:T({taskId:e},r)}))),yield Promise.all(t)})});st.registerCommand("TaskTrackerSDK.levelFinished",mF);st.registerCommand("TaskTrackerSDK.taskFinished",hF);st.registerCommand("TaskTrackerSDK.levelUpgrade",vF);st.registerCommand("TaskTrackerSDK.historyUserLevel",gF);st.registerCommand("TaskTrackerSDK.historyUserScore",yF);st.registerCommand("TaskTrackerSDK.taskEvent",_F);O("TaskTrackerSDK.onLevelFinished",{version:"1.0.0",properties:{levelId:"1.0.0",params:{result:"1.0.0",duration:"1.0.0"}}});O("TaskTrackerSDK.onTaskFinished",{version:"1.0.0",properties:{taskId:"1.0.0",duration:"1.0.0"}});O("TaskTrackerSDK.onLevelUpgrade",{version:"1.0.0",properties:{levelId:"1.0.0",name:"1.0.0"}});O("TaskTrackerSDK.onHistoryUserLevel",{version:"1.0.0",properties:{level:"1.0.0"}});O("TaskTrackerSDK.onHistoryUserScore",{version:"1.0.0",properties:{score:"1.0.0"}});O("TaskTrackerSDK.onTaskEvent",{version:"1.0.0",properties:{taskId:"1.0.0",params:{tools:{id:"1.0.0",name:"1.0.0",count:"1.0.0",description:"1.0.0",price:{amount:"1.0.0",unit:"1.0.0"}},awards:{id:"1.0.0",name:"1.0.0"}}}})});var bF,wF,oS,aS=R(()=>{"use strict";ae();me();Ke();P();Nr();O("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"}});O("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});bF=oe("login",{implement(){return E(this,null,function*(){var a;let{data:{isLogin:e}}=yield pe("checkLoginAsync");if(e)return{isLogin:!0,token:(a=S.hostUserInfo)==null?void 0:a.token};ke("onLoginStateChange",({isLogin:s,token:u,uuid:c})=>{c==t&&i({isLogin:s,token:u})});let r=F("loginSync"),{data:{uuid:t}}=r;if(!t)throw ir({code:-1,msg:"login failed"});let{promise:n,resolve:i}=new nr,o=yield n;return S.onEnvConfigChanged({hostUserInfo:o}),we.emit("onLoginComplete",o),o})}}),wF=oe("checkSession",{implement(){return E(this,null,function*(){let{data:{isLogin:e}}=yield pe("checkLoginAsync");return{isLogin:e}})}}),oS=z();oS.registerCommand("API.login",bF);oS.registerCommand("API.checkSession",wF)});function uS(){let e=new Map,r;return{registerRewardHandler(n,i){e.set(n,i)},handleReward(n,...i){return E(this,null,function*(){return yield n.reduce((a,s)=>E(this,null,function*(){let u=yield a;if(u===!0)return!0;sS&&console.log(`handleReward ${s}`);let c=e.get(s),d=c?yield c(...i):u;return sS&&console.log(`handleReward ${s} ${d}`),d}),Promise.resolve(!1))})},registerRewardsFetcher(n){return E(this,null,function*(){r=(...i)=>E(this,null,function*(){try{return yield n(...i)}catch(o){return console.error("getRewardOptions error:",o),["ADS"]}})})},getRewardsTypes(...n){return E(this,null,function*(){return r?yield r(...n):["ADS"]})}}}var sS,cS=R(()=>{"use strict";ae();sS=S.testMode});var SF,lS,dS=R(()=>{"use strict";So();SF=()=>(e,r)=>e==="JOLI_COIN"&&r==="ADS"?-1:e==="ADS"&&r==="JOLI_COIN"?1:0,lS=e=>{e.registerRewardsFetcher(r=>E(void 0,null,function*(){var n,i,o,a;let t=["ADS"];try{let s=yield r.post("/api/games/unlock-options",{});return s.code!=="SUCCESS"?t:(wo.emit(bo,{options:((n=s.data)==null?void 0:n.unlockOptions)||[],userJoliCoin:((i=s.extra)==null?void 0:i.joliCoin)||{balance:0,enableAutoDeduct:!1}}),(((a=(o=s.data)==null?void 0:o.unlockOptions)==null?void 0:a.map(c=>c.type))||Array.from(t)).sort(SF()))}catch(s){return console.error("getRewardOptions error:",s),t}}))}});var fS,pS=R(()=>{"use strict";fS=e=>r=>E(void 0,null,function*(){return e.adBreak(r),!0})});var mS,hS=R(()=>{"use strict";mS=(e,r)=>e.some(t=>t.type==="JOLI_COIN"&&t.joliCoinChoices.some(n=>{var i;return n.joliCoinQuantity<=((i=r==null?void 0:r.balance)!=null?i:0)&&!!(r!=null&&r.enableAutoDeduct)}))});var vS,gS=R(()=>{"use strict";ae();P();So();hS();vS=(e,{onUnlockSuccess:r,onUnlockFailed:t})=>{let n=null,i=null,o=null,a=()=>{if(o){n=Promise.resolve(o);return}n=new Promise(s=>{i=s})};return a(),wo.on(bo,s=>{o=s,i&&(i(s),i=null)}),s=>E(void 0,null,function*(){var u,c,d;try{n||a();let l=yield n;if(!mS((l==null?void 0:l.options)||[],l==null?void 0:l.userJoliCoin))return t==null||t(),!1;let p=yield e.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${_n()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});return p.code=="SUCCESS"?((c=s.adBreakDone)==null||c.call(s,{breakType:s.type,breakName:"name"in s&&(u=s.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in s&&((d=s.adViewed)==null||d.call(s)),r==null||r({quantity:p.data.quantity,balance:p.data.balance}),!0):(t==null||t(),!1)}catch(l){return console.error("JolicoinRewardHandler error:",l),t==null||t(),!1}})}});var ut,bo,wo,So=R(()=>{"use strict";cS();dS();P();pS();gS();ut=uS();lS(ut);bo="UNLOCK_OPTIONS_CHANGED",wo=new Le});var xo,xF,Pr,EF,IF,TF,RF,yS=R(()=>{"use strict";P();Ke();qu();da();or();Dr();me();So();xo=z(),xF=()=>{let{data:e}=F("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},Pr=new Tn(Se,{get:(e,r)=>he(e,T({method:"GET",responseType:"json",appendHostCookie:!0},r)).then(t=>t.response.data),post:(e,r,t)=>he(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(n=>n.response.data)},xF);ut.registerRewardHandler("ADS",fS(Pr));ut.registerRewardHandler("JOLI_COIN",vS(Pr.httpClient,{onUnlockSuccess:e=>{let{quantity:r,balance:t}=e,n=t>=1e3?"999+":t;Nw(`{slot-checkmark} \u2212${r} {slot-coin} | Balance: ${n} {slot-coin}`,{customStyle:{mark:{marginRight:"8px"}}})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));EF=M("adInit",{implement:e=>{Pr.init(e)}}),IF=M("adConfig",{implement:e=>{Pr.adConfig(e)}}),TF=M("adBreak",{implement:e=>{e.type==="reward"?ut.getRewardsTypes(Pr.httpClient).then(r=>{ut.handleReward(r,e)}):Pr.adBreak(e)}}),RF=M("adUnit",{implement:e=>{Pr.adUnit(e)}});xo.registerCommand("AdsSDK.init",EF);xo.registerCommand("AdsSDK.adConfig",IF);xo.registerCommand("AdsSDK.adBreak",TF);xo.registerCommand("AdsSDK.adUnit",RF);O("AdsSDK.init",{version:"1.0.0"});O("AdsSDK.adConfig",{version:"1.0.0"});O("AdsSDK.adBreak",{version:"1.0.0"});O("AdsSDK.adUnit",{version:"1.0.0"})});var Eo,AF,qF,kF,OF,_S=R(()=>{"use strict";P();me();Ke();ae();Eo=z(),AF=M("openSchemaSync",{paramsSchema:b.tuple(b.string()),implement:e=>{let r=e;e.match(/^https?:\/\//)||(r=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let t=F("openSchemaSync",{schema:r});if(t.errNo!==0)throw new bt(t.errMsg,t.errNo)}}),qF=M("openPageSync",{paramsSchema:b.tuple(b.string()),implement:e=>{let{errNo:r,errMsg:t,data:n}=F("openPageSync",{url:e});if(r!==0||!n)throw new bt(t,r);return{webviewId:n.webviewId}}}),kF=M("closePageSync",{paramsSchema:b.tuple(b.number()),implement:e=>{let{errNo:r,errMsg:t}=F("closePageSync",{webviewId:e});if(r!==0)throw new bt(t,r)}}),OF=M("interceptSystemExitSync",{paramsSchema:b.tuple(b.boolean()),implement:e=>{we.emit("onInterceptSystemExit",{intercept:e})}});Eo.registerCommand("RouterSDK.openSchema",AF);Eo.registerCommand("RouterSDK.openPage",qF);Eo.registerCommand("RouterSDK.closePage",kF);Eo.registerCommand("RouterSDK.interceptSystemExit",OF);O("router.openSchema",{version:"1.1.10"});O("router.openPage",{version:"1.1.10"});O("router.closePage",{version:"1.1.10"});O("router.interceptSystemExit",{version:"1.1.18"})});var PF={};var jV,$V,bS=R(()=>{"use strict";Jw();jV=B(Ww());rS();tS();nS();$V=B(iS());aS();yS();_S()});var wS=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[wS])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[wS]=!0;E(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(Mw(),Uw)),Promise.resolve().then(()=>(bS(),PF)),Promise.resolve().then(()=>(or(),el))]);e()});
|
|
413
|
+
`;return b("div",{className:`toast toast-${t} ${i?"toast-visible":"toast-hidden"} ${a}`,children:e})},GE=(e,t)=>{let r=document.createElement("div");document.body.appendChild(r);let n=()=>{document.body.removeChild(r)},i=tF(e,t);yr(b(rF,{message:i,type:t==null?void 0:t.type,duration:t==null?void 0:t.duration,onClose:n}),r)}});function WE(){return I(this,null,function*(){if(ac)return ac;let t=`${A.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${A.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield Ie(t);return ac=r,r})}function zE(){return I(this,null,function*(){let e=new Nt;if(A.mpType!=="game")return e.resolve(!1),e.promise;let t=yield WE();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data,o=BE({games:r.games,title:n,buttons:i,onClose:a=>{var s;switch(a.type){case"quit":e.resolve(!1);break;case"dismiss":e.resolve(!0),o.hide();break;case"navigate":(s=a.data)!=null&&s.game?nF(a.data.game):e.resolve(!0),o.hide();break;default:e.resolve(!0);break}}});return e.promise})}var ac,nF,YE=k(()=>{"use strict";ie();ke();q();Wo();Xt();ac=null;WE();nF=e=>{var a;let{data:t}=L("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",A.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;L("openSchemaSync",{schema:o})}});function oF(e){let t=O(O({},iF),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,u=0,d=0,c=!1,p=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},h=()=>a?300:0;function m(){let{overlayTransition:_,containerTransition:x,iframeTransition:R}=p();z=document.createElement("div"),z.id="jolibox-modal-overlay",z.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${_}; opacity:0; visibility:hidden;`,H=document.createElement("div"),H.id="jolibox-modal-container",H.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:${x};`;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 S=document.createElement("style");S.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(S);let w=document.createElement("div");if(w.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",Xe=document.createElement("iframe"),Xe.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${R};`,Xe.src=r,Xe.onload=()=>{C.parentNode&&C.parentNode.removeChild(C),Xe.style.opacity="1",g(),l==null||l(),Se.emit("onModalIframeLoaded",{url:r})},w.appendChild(Xe),w.appendChild(C),H.appendChild(w),i){let B=document.createElement("div");B.style.cssText="position:absolute; top:10px; right:10px; width:30px; height:30px; background:rgba(0,0,0,0.1); border-radius:15px; display:flex; justify-content:center; align-items:center; cursor:pointer; z-index:10;",B.innerHTML="\u2715",B.onclick=v,H.appendChild(B)}z.appendChild(H),document.body.appendChild(z),z.addEventListener("click",function(B){B.target===z&&v()}),o&&y()}function g(){!z||!H||c||(z.style.visibility="visible",a?requestAnimationFrame(()=>{z&&(z.style.opacity="1"),H&&(H.style.transform="translateY(0)"),c=!0}):(z&&(z.style.opacity="1"),H&&(H.style.transform="translateY(0)"),c=!0),L("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:A.webviewId}))}function y(){if(!H)return;let _=C=>{u=C.touches[0].clientY},x=C=>{if(!c)return;d=C.touches[0].clientY;let S=d-u;S>0&&(H&&(H.style.transition="none",H.style.transform=`translateY(${S}px)`),C.preventDefault())},R=()=>{!c||!H||(H.style.transition=a?"transform 0.3s ease":"none",d-u>80?v():H.style.transform="translateY(0)")};H.addEventListener("touchstart",_),H.addEventListener("touchmove",x),H.addEventListener("touchend",R)}function v(){!z||!H||!c||(a?(H.style.transform="translateY(100%)",z.style.opacity="0"):z.style.visibility="hidden",c=!1,L("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:A.webviewId}),setTimeout(()=>{z&&(z.remove(),z=null,H=null,Xe=null,s==null||s(),Se.emit("onModalIframeClosed",{url:r}))},h()))}return m(),{close:v}}function QE(){return window.joliboxUI=D(O({},window.joliboxUI),{createIframeModal:oF}),()=>{window.joliboxUI=void 0,z&&z.parentNode&&z.parentNode.removeChild(z),H&&H.parentNode&&H.parentNode.removeChild(H),Xe&&Xe.parentNode&&Xe.parentNode.removeChild(Xe),z=null,H=null,Xe=null}}var iF,z,H,Xe,XE=k(()=>{"use strict";ke();ie();q();iF={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},z=null,H=null,Xe=null});var ex={};Xc(ex,{config:()=>hF});function aF(){vf.on("isAdShowing",e=>{Qo=e,cn(Qo)&&L("updateContainerConfigSync",{displayCapsuleButton:!Qo,webviewId:A.webviewId})})}function sF(){Se.on("onInterceptSystemExit",({intercept:e})=>{ZE=e})}function lF(){Se.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),$e("onDocumentReady",{start_timestamp:Zo,timestamp:Date.now()})})}function uF(){tt("onI18nChanged",({language:e})=>{Se.emit("onI18nChanged",{i18n:e})})}function cF(e){A.mpType==="game"&&De.start(e)}function dF(){tt("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&A.onEnvConfigChanged({hostUserInfo:e}),Se.emit("LifecycleEvent.onReady",O({},A.hostUserInfo?A.hostUserInfo:{isLogin:!1})),$e("joliboxServiceReady",{start_timestamp:Zo,timestamp:Date.now()}),cF(t)}),tt("onBeforeExit",({uuid:e})=>{var t;(t=globalThis.joliboxJSCore)==null||t.doExit(e)})}function fF(){let e=()=>{$e("onBeforeExit",{timestamp:Date.now()}),zo==null||zo(),Yo==null||Yo(),De.close(Date.now()-Zo)},t=()=>Qo||ZE;yt.onDoExit(()=>I(this,null,function*(){return t()?!0:cn(A.shouldInterupt)?(A.shouldInterupt||e(),A.shouldInterupt):Xo!=null&&Xo.canShowRecommended&&(yield zE())?!0:(e(),!1)}))}function pF(){return I(this,null,function*(){let e=`${A.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield Ie(e);t&&(Xo=t)})}function hF(){Zo=Date.now(),dF(),aF(),sF(),fF(),lF(),uF(),pF(),Yo=QE(),zo=df()}var zo,Yo,Zo,Qo,Xo,ZE,tx=k(()=>{"use strict";ke();ie();q();Dt();ff();gf();YE();Xt();XE();Qo=!1,Xo=null,ZE=!1;yt.onReady(()=>{})});function rx(e){let t=Ss.config[e];return t||(t={},Ss.config[e]=t),(r,n)=>{if(t[r]){st.warn(`[can i use] ${r} already registered`);return}t[r]=O({},n)}}var nx=k(()=>{"use strict";q()});function sc(e){ix=e}function ea(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>ea(t)):Object.keys(e).reduce((t,r)=>(t[r]=ea(e[r]),t),{})}function Rt(e){return typeof e=="number"}function lc(e){let t=uc(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function uc(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var ix,le,ta,ra,na,ia,Hr,oa,aa,sa,la,ua,ca,da,fa,pa,ha,ma,va,cc=k(()=>{"use strict";ix=!1;le=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(ix)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 ${lc(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return ea(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:ea(this._default)}optional(){return this._optional=!0,this}};ta=class extends le{validate(t){return this._optional&&t===void 0?!0:Rt(t)?Rt(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):Rt(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):Rt(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}},ra=class extends le{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},na=class extends le{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(Rt(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(Rt(this._minLength)&&t.length<this._minLength)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minLength}`);if(typeof this._pattern=="string"){if(!new RegExp(this._pattern).test(t))return this.fail(`${this.path} should match pattern "${this._pattern}"`)}else if(this._pattern&&!this._pattern.test(t))return this.fail(`${this.path} should match pattern "${this._pattern.toString()}"`);return!0}minLength(t){return this._minLength=t,this}maxLength(t){return this._maxLength=t,this}pattern(t){return this._pattern=t,this}},ia=class extends le{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},Hr=class extends le{validate(t){return!0}},oa=class extends le{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},aa=class extends le{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},sa=class extends le{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},la=class extends le{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 ${lc(t)}`)}return!0}},ua=class extends le{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(Rt(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(Rt(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(Rt(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}},ca=class extends le{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(uc(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}},da=class extends le{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(uc(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}},fa=class extends le{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:lc(this.value),actual:r}):!0}},pa=class extends le{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(`
|
|
414
|
+
or `);this.errors.push(o)}return n}},ha=class extends le{constructor(...t){super(),this._items=t;let r=0,n=t.length-1;for(;n>=0;n--){let i=t[n];if(i._optional||i.hasDefault)r+=1;else break}this._minItems=t.length-r}validate(t){if(t===void 0&&this._optional)return!0;if(!Array.isArray(t))return this.fail({expect:"array",actual:t});if(t.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);let r=!0;return this._items.forEach((n,i)=>{if(n.path=`${this.path}[${i}]`,n.errors=this.errors,t[i]===void 0&&n.hasDefault){t[i]=n.defaultValue;return}n.validate(t[i])||(n.hasFallback?t[i]=n._fallback:r=!1)}),r}},ma=class extends le{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},va=class extends le{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 dc(e,t,r="param"){if(e.errors=[],e.path=r,sc(!0),!e.validate(t)){let n=e.errors.join(`
|
|
415
|
+
`);throw e.errors.length=0,sc(!1),new TypeError(n)}}var E,fc=k(()=>{"use strict";cc();cc();E={object(e){return new da(e)},array(e){return new ua(e)},tuple(...e){return new ha(...e)},literal(e){return new fa(e)},or(...e){return new pa(...e)},symbol(){return new ia},record(e){return new ca(e)},function(){return new sa},boolean(){return new ra},string(){return new na},number(){return new ta},undefined(){return new oa},null(){return new aa},unknown(){return new Hr},any(){return new Hr},as(){return new Hr},arraybuffer(){return new ma},enum(...e){return new la(...e)},typedarray(e){return new va(e)}}});var ga,ox,ax=k(()=>{"use strict";q();ut();fc();vr();ga=1,ox=e=>{function t(n,i){return(...o)=>{var c,p,h,m;let a=Date.now(),s={method:n,trace_id:ga};ga+=1;let l="SUCCESS",u=`${n}:ok`,d=0;try{if(i.paramsSchema)try{dc(i.paramsSchema,o,"params")}catch(_){throw Ns(`${n}:fail ${_.message}`)}let g=i.implement(...o),y=g,v=`${n}:ok`;if(g&&"code"in g){let{code:_,data:x,message:R}=g;l=_,y=x,v=R}return{code:l,message:v,data:y}}catch(g){let y=g;d=(p=(c=y.code)!=null?c:y.errNo)!=null?p:2e3,l="FAILURE";let v=(m=(h=y.message)!=null?h:y.errMsg)!=null?m:`${g}`;return u=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,Oe(new pn(u,d)),{code:l,message:u}}finally{let g=Date.now()-a;e("apiInvoked",D(O({},s),{duration:g,status:l}))}}}function r(n,i){return(...o)=>I(this,null,function*(){var p,h,m,g;let a=Ad(o)?o:[o],s=Date.now(),l={method:n,trace_id:ga};ga+=1;let u=`${n}:ok`,d="SUCCESS",c={code:d,message:u};try{if(i.paramsSchema)try{dc(i.paramsSchema,a,"params")}catch(_){throw Ns(_.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:_,data:x,message:R}=v;d=_,u=R,v=x}return Object.assign(c,{code:d,message:u,data:v}),c}catch(y){let v=y,_=(h=(p=v.code)!=null?p:v.errNo)!=null?h:2e3;d="FAILURE";let x=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${y}`,R=`${n}:${d} ${x.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(c,{code:d,message:R}),Oe(new pn(R,_)),c}finally{let y=Date.now()-s;e("apiInvoked",D(O({},l),{duration:y,status:d}))}})}return{createAPI:r,createSyncAPI:t}}});var ge,W,P,ht=k(()=>{"use strict";nx();Dt();ax();fc();({createAPI:ge,createSyncAPI:W}=ox($e)),P=rx("native")});var sx,vF,gF,yF,_F,lx=k(()=>{"use strict";q();ht();ke();sx=ne(),vF="env",gF="getSystemInfoSync",yF=W(gF,{implement:()=>{var r;let e=L("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion}}}),_F=W(vF,{implement:()=>{var t;let e=L("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});sx.registerCommand("API.getSystemInfoSync",yF);sx.registerCommand("API.env",_F);P("env",{version:"1.0.0"});P("getSystemInfoSync",{version:"1.0.0"})});var ux=f(pc=>{"use strict";q();ht();ut();ke();Dt();ie();var bF="exitGame",wF="onReady",EF="onJoliboxShow",xF="onJoliboxHide",ya=ne(),_a=Ei(Oe),AF=ge(bF,{paramsSchema:E.tuple(E.function(),E.boolean().optional().default(!1)),implement:(e,t=!1)=>I(pc,null,function*(){_a(e).call(pc),cn(A.shouldInterupt)&&!A.shouldInterupt&&A.from&&_d("onRetentionResult",{shouldStay:t},A.from,!0),yield qe("exitAppAsync")})}),SF=W(EF,{paramsSchema:E.tuple(E.function()),implement(e){let t=_a(e);tt("onJoliboxEnterForeground",()=>{t.call(this),mn.emit("visible",!0)})}}),IF=W(xF,{paramsSchema:E.tuple(E.function()),implement(e){let t=_a(e);tt("onJoliboxEnterBackground",()=>{t.call(this),mn.emit("visible",!1)})}}),TF=W(wF,{paramsSchema:E.tuple(E.function()),implement(e){let t=_a(e);Se.on("LifecycleEvent.onReady",r=>{t(r)})}});ya.registerCommand("LifecycleSDK.exit",AF);ya.registerCommand("LifecycleSDK.onReady",TF);ya.registerCommand("LifecycleSDK.onJoliboxShow",SF);ya.registerCommand("LifecycleSDK.onJoliboxHide",IF);P("lifeCycle.exit",{version:"1.0.0"});P("lifeCycle.onReady",{version:"1.0.0"});P("lifeCycle.onJoliboxShow",{version:"1.0.0"});P("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function cx(e){let t={};if(!Yt(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 dx(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 fx(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function px(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!Yt(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 hx=k(()=>{"use strict";q()});var RF,kF,hc,mc,mx,OF,CF,PF,vx=k(()=>{"use strict";vr();Ls();ht();hx();q();ut();ie();RF=15,kF=Si("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:A.baseApiHost}),hc=0,mc=[],mx=Ei(Oe),OF=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},CF=e=>{let t=new Nt,r=()=>{};return W("request",{paramsSchema:E.tuple(E.object({url:E.string(),method:E.string(),headers:E.object(),data:E.object().optional(),query:E.object().optional(),dataType:E.string().default("json"),responseType:E.string().default("text"),enableCache:E.boolean().default(!1),appendHostCookie:E.boolean().default(!0),timeout:E.number().default(3e4),success:E.function(),fail:E.function()})),implement(i){let o=()=>I(this,null,function*(){var s,l;let a=mx(i.fail);try{if(hc+=1,t.state!=="pending")return;let{data:u,dataType:d,responseType:c,enableCache:p,appendHostCookie:h}=i,m=cx(i.headers),g=dx(i.method),y=fx(i.timeout),v=px(i.url,g,u),_=mx(i.success),x=Object.assign({},i,{method:g,header:m,data:g==="GET"||g==="HEAD"?void 0:u,enableCache:p,query:(s=i.query)!=null?s:{},dataType:d,responseType:c,appendHostCookie:h});y&&(x.timeout=y);let R=kF(v,x);{let{response:C}=yield R,{code:S,data:w,message:B}=C;if(w&&typeof w=="object"&&"status"in w&&w.status!==200)throw qt({code:w.status||-1,msg:`request:fail status ${w.status}`});t.resolve({code:S!=null?S:"SUCCESS",data:w,message:B!=null?B:"request:ok"}),_({code:"SUCCESS",message:"request:ok",data:w})}}catch(u){t.reject(u),a({code:"FAILURE",message:"httpRequst: failed"})}finally{hc-=1,(l=mc.shift())==null||l()}});return hc>=RF?(r=()=>{OF(mc,a=>a===o)},mc.push(o)):o(),t.promise}})(e),{abort(){t.reject(qt({code:-1,msg:"request:fail abort"})),r()}}},PF=ne();PF.registerCommand("HttpSDK.request",CF);P("request",{version:"1.0.0"})});function jF(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return MF.includes(t)?t:""}function UF(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 FF(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 ba,NF,qF,DF,LF,L9,M9,MF,gx=k(()=>{"use strict";ht();ke();q();Xt();ie();ba=ne(),NF=ge("getLocalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return I(this,null,function*(){let{response:t}=yield Ie(`/api/games/user-storage/${A.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 qe("getLocalStorageAsync",{key:e}),s=UF(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}}})}});ba.registerCommand("StorageSDK.getItem",NF);P("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});qF=ge("setStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number())),implement(e,t){return I(this,null,function*(){let r=A.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield Ie(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=jF(t),l=FF(t,s);return yield qe("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});ba.registerCommand("StorageSDK.setItem",qF);P("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});DF=ge("removeStorage",{paramsSchema:E.tuple(E.string()),implement(e){return I(this,null,function*(){let t=A.mpId,{response:r}=yield Ie(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield qe("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});ba.registerCommand("StorageSDK.removeItem",DF);P("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});LF=ge("clearStorage",{implement(){return I(this,null,function*(){let e=A.mpId,{response:t}=yield Ie(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});qe("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});ba.registerCommand("StorageSDK.clear",LF);P("storage.clear",{version:"1.0.0"});L9=ge("getStorageInfo",{implement(){return I(this,null,function*(){let{data:e}=yield qe("getStorageInfoAsync");return e})}});P("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});M9=W("getStorageInfoSync",{implement(){return L("getStorageInfoSync")}}),MF=["string","number","boolean","object",""]});var BF,$F,HF,vc,yx=k(()=>{"use strict";q();ke();ht();BF=W("showKeyboard",{paramsSchema:E.tuple(E.object({defaultValue:E.string().optional().default(""),multiple:E.boolean().optional().default(!1),maxLength:E.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),L("showKeyboardSync",D(O({},e),{defaultValue:r,maxLength:t}))}});P("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"}});$F=W("updateKeyboard",{paramsSchema:E.tuple(E.object({value:E.string()})),implement(e){L("updateKeyboardSync",e)}});P("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});HF=W("hideKeyboard",{implement(){L("hideKeyboardSync")}});P("keyboard.hideKeyboard",{version:"1.0.0"});vc=ne();vc.registerCommand("KeyboardSDK.showKeyboard",BF);vc.registerCommand("KeyboardSDK.updateKeyboard",$F);vc.registerCommand("KeyboardSDK.hideKeyboard",HF)});var _x=f(cr=>{"use strict";q();ht();Dt();var Vr=ne(),VF=ge("levelFinished",{paramsSchema:E.tuple(E.string(),E.object({result:E.boolean(),duration:E.number()})),implement:(e,t)=>I(cr,null,function*(){let{result:r,duration:n}=t,i=[];i.push(De.tracker("LevelFinished",{levelId:e,result:r,duration:n})),i.push(De.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(i)})}),JF=ge("taskFinished",{paramsSchema:E.tuple(E.string(),E.object({duration:E.number()})),implement:(e,t)=>I(cr,null,function*(){let{duration:r}=t;return yield De.reportToNative({event:"TaskFinished",params:{duration:r,taskId:e}})})}),KF=ge("levelUpgrade",{paramsSchema:E.tuple(E.string(),E.string()),implement:(e,t)=>I(cr,null,function*(){let r=[];r.push(De.reportToNative({event:"LevelUpgrade",params:{name:t,levelId:e}})),yield Promise.all(r)})}),GF=ge("onHistoryUserLevel",{paramsSchema:E.tuple(E.number()),implement:e=>I(cr,null,function*(){return yield De.reportToNative({event:"HistoryUserLevel",params:{level:e}})})}),WF=ge("onHistoryUserScore",{paramsSchema:E.tuple(E.number()),implement:e=>I(cr,null,function*(){return yield De.reportToNative({event:"HistoryUserScore",params:{score:e}})})}),zF=ge("taskEvent",{paramsSchema:E.tuple(E.string(),E.object({tools:E.array(E.object({id:E.string(),name:E.string(),count:E.number(),description:E.string().optional(),price:E.object({amount:E.number(),unit:E.string()}).optional()})).optional(),awards:E.array(E.object({id:E.string(),name:E.string()})).optional()})),implement:(e,t)=>I(cr,null,function*(){var n,i;let r=[];r.push(De.reportToNative({event:"TaskEvent",params:O({taskId:e},t)})),(i=(n=t.tools)==null?void 0:n.length)!=null&&i&&(r.push(De.reporter({event:"USE_GAME_ITEM"})),r.push(De.reportToNative({event:"UseGameItem",params:O({taskId:e},t)}))),yield Promise.all(r)})});Vr.registerCommand("TaskTrackerSDK.levelFinished",VF);Vr.registerCommand("TaskTrackerSDK.taskFinished",JF);Vr.registerCommand("TaskTrackerSDK.levelUpgrade",KF);Vr.registerCommand("TaskTrackerSDK.historyUserLevel",GF);Vr.registerCommand("TaskTrackerSDK.historyUserScore",WF);Vr.registerCommand("TaskTrackerSDK.taskEvent",zF);P("TaskTrackerSDK.onLevelFinished",{version:"1.0.0",properties:{levelId:"1.0.0",params:{result:"1.0.0",duration:"1.0.0"}}});P("TaskTrackerSDK.onTaskFinished",{version:"1.0.0",properties:{taskId:"1.0.0",duration:"1.0.0"}});P("TaskTrackerSDK.onLevelUpgrade",{version:"1.0.0",properties:{levelId:"1.0.0",name:"1.0.0"}});P("TaskTrackerSDK.onHistoryUserLevel",{version:"1.0.0",properties:{level:"1.0.0"}});P("TaskTrackerSDK.onHistoryUserScore",{version:"1.0.0",properties:{score:"1.0.0"}});P("TaskTrackerSDK.onTaskEvent",{version:"1.0.0",properties:{taskId:"1.0.0",params:{tools:{id:"1.0.0",name:"1.0.0",count:"1.0.0",description:"1.0.0",price:{amount:"1.0.0",unit:"1.0.0"}},awards:{id:"1.0.0",name:"1.0.0"}}}})});var gc,YF,bx,yc=k(()=>{"use strict";ie();ke();ht();q();vr();P("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"}});P("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});gc=ge("login",{implement(){return I(this,null,function*(){var a;let{data:{isLogin:e}}=yield qe("checkLoginAsync");if(e)return{isLogin:!0,token:(a=A.hostUserInfo)==null?void 0:a.token};tt("onLoginStateChange",({isLogin:s,token:l,uuid:u})=>{u==r&&i({isLogin:s,token:l})});let t=L("loginSync"),{data:{uuid:r}}=t;if(!r)throw qt({code:-1,msg:"login failed"});let{promise:n,resolve:i}=new Nt,o=yield n;return A.onEnvConfigChanged({hostUserInfo:o}),Se.emit("onLoginComplete",o),o})}}),YF=ge("checkSession",{implement(){return I(this,null,function*(){let{data:{isLogin:e}}=yield qe("checkLoginAsync");return{isLogin:e}})}}),bx=ne();bx.registerCommand("API.login",gc);bx.registerCommand("API.checkSession",YF)});var Kr,wa,dr,Ea,ei,Jr,QF,ue,Gr=k(()=>{"use strict";q();Kr="UNLOCK_OPTIONS_CHANGED",wa="INVOKE_PAYMENT",dr="ON_PAYMENT_RESULT",Ea="ON_USE_MODAL_EVENT",ei="ON_USE_MODAL_RESULT",Jr=new lt,QF=()=>({on:Jr.on.bind(Jr),off:Jr.off.bind(Jr),emit:Jr.emit.bind(Jr)}),ue=QF()});var wx=f(xa=>{"use strict";Gr();Wo();Xt();ie();yc();ue.on(Ea,(e,t)=>{e==="ADS-JOLI_COIN"&&console.log("use modal show by frequency");let r=HE({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{ue.emit(ei,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{ue.emit(ei,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}}}})});ue.on(wa,(e,t)=>I(xa,null,function*(){try{e==="ADS-JOLI_COIN"&&console.log("show by frequency");let r=yield XF();if(!r){ue.emit(dr,{paymentResult:"FAILED"});return}let n=VE({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:r.paymentChoices,enableAutoDeduct:r.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:i=>I(xa,null,function*(){var o;if(!((o=A.hostUserInfo)!=null&&o.isLogin)){let{data:a}=yield gc();if(!(a!=null&&a.isLogin)){console.log("login failed");return}}console.log("invokeNativePayment",i),ue.emit(dr,{paymentResult:"SUCCESS"}),n.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:i})=>{ue.emit(dr,{paymentResult:(i!=null?i:"")==="CANCEL"?"CANCEL":"FAILED"}),n.destroy()}}}})}catch(r){console.info("payment failed",r),ue.emit(dr,{paymentResult:"FAILED"})}}));var XF=()=>I(xa,null,function*(){var t;let{response:e}=yield Ie("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function Ze(e,t,r){return(t=r2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r2(e){var t=n2(e,"string");return typeof t=="symbol"?t:t+""}function n2(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 Aa(e,t,r){return(t=i2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i2(e){var t=o2(e,"string");return typeof t=="symbol"?t:t+""}function o2(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 h2(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function m2(e){return typeof e=="string"}function v2(e){return typeof e=="undefined"}function g2(e){return v2(e)||e===null}function y2(e){return typeof e=="function"}function tA(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 ti(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function Ra(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 A2(e){let t=e.location?Ra(e.location,Ix):null,r=e.target?Ra(e.target,Ix):null;return Ra(d2(c2({},e),{location:t,target:r}),E2)}function S2(e){let t=e.events.map(n=>A2(n)),r=Ra(e.device,x2);return[e.protocolVersion,t,r,e.project]}function I2(){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 C2(e){return new Promise(t=>oA(e)(t))}function oA(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 P2(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new ai(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 q2(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)D2(e[n],t[n])}function D2(e,t){if(m2(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(y2(t)){try{if(e instanceof t)return}catch(r){}if(!g2(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 bc(e,t,r){return(t=L2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L2(e){var t=M2(e,"string");return typeof t=="symbol"?t:t+""}function M2(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sa(e,t,r){return(t=j2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j2(e){var t=U2(e,"string");return typeof t=="symbol"?t:t+""}function U2(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 kt(e,t,r){return(t=F2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F2(e){var t=B2(e,"string");return typeof t=="symbol"?t:t+""}function B2(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 $2(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 H2(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 z2(e,t){return xe(e,0)^45?(((t<<2^xe(e,0))<<2^xe(e,1))<<2^xe(e,2))<<2^xe(e,3):0}function lA(e){return e.trim()}function Y2(e,t){return(e=t.exec(e))?e[0]:e}function F(e,t,r){return e.replace(t,r)}function Dc(e,t){return e.indexOf(t)}function xe(e,t){return e.charCodeAt(t)|0}function si(e,t,r){return e.slice(t,r)}function mt(e){return e.length}function Jc(e){return e.length}function Ia(e,t){return t.push(e),e}function Q2(e,t){return e.map(t).join("")}function Ba(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Fa,column:zr,length:a,return:""}}function ni(e,t){return W2(Ba("",null,null,"",null,null,0),e,{length:-e.length},t)}function X2(){return ce}function Z2(){return ce=Be>0?xe(Yr,--Be):0,zr--,ce===10&&(zr=1,Fa--),ce}function Ve(){return ce=Be<uA?xe(Yr,Be++):0,zr++,ce===10&&(zr=1,Fa++),ce}function vt(){return xe(Yr,Be)}function ka(){return Be}function ci(e,t){return si(Yr,e,t)}function li(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 cA(e){return Fa=zr=1,uA=mt(Yr=e),Be=0,[]}function dA(e){return Yr="",e}function Oa(e){return lA(ci(Be-1,Lc(e===91?e+2:e===40?e+1:e)))}function eB(e){for(;(ce=vt())&&ce<33;)Ve();return li(e)>2||li(ce)>3?"":" "}function tB(e,t){for(;--t&&Ve()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return ci(e,ka()+(t<6&&vt()==32&&Ve()==32))}function Lc(e){for(;Ve();)switch(ce){case e:return Be;case 34:case 39:e!==34&&e!==39&&Lc(ce);break;case 40:e===41&&Lc(e);break;case 92:Ve();break}return Be}function rB(e,t){for(;Ve()&&e+ce!==57&&!(e+ce===84&&vt()===47););return"/*"+ci(t,Be-1)+"*"+Ua(e===47?e:Ve())}function nB(e){for(;!li(vt());)Ve();return ci(e,Be)}function iB(e){return dA(Ca("",null,null,null,[""],e=cA(e),0,[0],e))}function Ca(e,t,r,n,i,o,a,s,l){for(var u=0,d=0,c=a,p=0,h=0,m=0,g=1,y=1,v=1,_=0,x="",R=i,C=o,S=n,w=x;y;)switch(m=_,_=Ve()){case 40:if(m!=108&&xe(w,c-1)==58){Dc(w+=F(Oa(_),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:w+=Oa(_);break;case 9:case 10:case 13:case 32:w+=eB(m);break;case 92:w+=tB(ka()-1,7);continue;case 47:switch(vt()){case 42:case 47:Ia(oB(rB(Ve(),ka()),t,r),l);break;default:w+="/"}break;case 123*g:s[u++]=mt(w)*v;case 125*g:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+d:v==-1&&(w=F(w,/\f/g,"")),h>0&&mt(w)-c&&Ia(h>32?kx(w+";",n,r,c-1):kx(F(w," ","")+";",n,r,c-2),l);break;case 59:w+=";";default:if(Ia(S=Rx(w,t,r,u,d,i,s,x,R=[],C=[],c),o),_===123)if(d===0)Ca(w,t,S,S,R,o,c,s,C);else switch(p===99&&xe(w,3)===110?100:p){case 100:case 108:case 109:case 115:Ca(e,S,S,n&&Ia(Rx(e,S,S,0,0,i,s,x,i,R=[],c),C),i,C,c,s,n?R:C);break;default:Ca(w,S,S,S,[""],C,0,s,C)}}u=d=h=0,g=v=1,x=w="",c=a;break;case 58:c=1+mt(w),h=m;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&Z2()==125)continue}switch(w+=Ua(_),_*g){case 38:v=d>0?1:(w+="\f",-1);break;case 44:s[u++]=(mt(w)-1)*v,v=1;break;case 64:vt()===45&&(w+=Oa(Ve())),p=vt(),d=c=mt(x=w+=nB(ka())),_++;break;case 45:m===45&&mt(w)==2&&(g=0)}}return o}function Rx(e,t,r,n,i,o,a,s,l,u,d){for(var c=i-1,p=i===0?o:[""],h=Jc(p),m=0,g=0,y=0;m<n;++m)for(var v=0,_=si(e,c+1,c=G2(g=a[m])),x=e;v<h;++v)(x=lA(g>0?p[v]+" "+_:F(_,/&\f/g,p[v])))&&(l[y++]=x);return Ba(e,t,r,i===0?Hc:s,l,u,d)}function oB(e,t,r){return Ba(e,t,r,aA,Ua(X2()),si(e,2,-2),0)}function kx(e,t,r,n){return Ba(e,t,r,Vc,si(e,0,n),si(e,n+1,-1),n)}function Wr(e,t){for(var r="",n=Jc(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function aB(e,t,r,n){switch(e.type){case K2:if(e.children.length)break;case J2:case Vc:return e.return=e.return||e.value;case aA:return"";case sA:return e.return=e.value+"{"+Wr(e.children,n)+"}";case Hc:e.value=e.props.join(",")}return mt(r=Wr(e.children,n))?e.return=e.value+"{"+r+"}":""}function sB(e){var t=Jc(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 lB(e){return function(t){t.root||(t=t.return)&&e(t)}}function uB(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function fA(e,t){switch(z2(e,t)){case 5103:return U+"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 U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+qa+e+Re+e+e;case 6828:case 4268:return U+e+Re+e+e;case 6165:return U+e+Re+"flex-"+e+e;case 5187:return U+e+F(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+Re+"flex-$1$2")+e;case 5443:return U+e+Re+"flex-item-"+F(e,/flex-|-self/,"")+e;case 4675:return U+e+Re+"flex-line-pack"+F(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+Re+F(e,"shrink","negative")+e;case 5292:return U+e+Re+F(e,"basis","preferred-size")+e;case 6060:return U+"box-"+F(e,"-grow","")+U+e+Re+F(e,"grow","positive")+e;case 4554:return U+F(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return F(F(F(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+Re+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,U+"$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(mt(e)-1-t>6)switch(xe(e,t+1)){case 109:if(xe(e,t+4)!==45)break;case 102:return F(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+qa+(xe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dc(e,"stretch")?fA(F(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(xe(e,t+1)!==115)break;case 6444:switch(xe(e,mt(e)-3-(~Dc(e,"!important")&&10))){case 107:return F(e,":",":"+U)+e;case 101:return F(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(xe(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+Re+"$2box$3")+e}break;case 5936:switch(xe(e,t+11)){case 114:return U+e+Re+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+Re+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+Re+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+Re+e+e}return e}function yB(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 Da(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 Gt={name:i.name,styles:i.styles,next:Gt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Gt={name:a.name,styles:a.styles,next:Gt},a=a.next;var s=o.styles+";";return s}return EB(e,t,r)}}var l=r;if(t==null)return l;var u=t[l];return u!==void 0?u:l}function EB(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Da(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]+"}":Cx(s)&&(n+=wc(o)+":"+Px(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++)Cx(a[l])&&(n+=wc(o)+":"+Px(o,a[l])+";");else{var u=Da(e,t,a);switch(o){case"animation":case"animationName":{n+=wc(o)+":"+u+";";break}default:n+=o+"{"+u+"}"}}}return n}function Ec(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="";Gt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Da(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Da(r,t,e[s]),n){var l=o;i+=l[s]}Nx.lastIndex=0;for(var u="",d;(d=Nx.exec(i))!==null;)u+="-"+d[1];var c=yB(i)+u;return{name:c,styles:i,next:Gt}}function hA(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function qx(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Dx(e,t,r){var n=[],i=hA(e,n,r);return n.length<2?r:i+t(n)}function Kc(e,t){re.__h&&re.__h(Ne,e,Mc||t),Mc=0;var r=Ne.__H||(Ne.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function vA(e,t){var r=Kc(ui++,3);!re.__s&&Gc(r.__H,t)&&(r.__=e,r.u=t,Ne.__H.__h.push(r))}function RB(e,t){var r=Kc(ui++,4);!re.__s&&Gc(r.__H,t)&&(r.__=e,r.u=t,Ne.__h.push(r))}function gA(e){return Mc=5,$a(function(){return{current:e}},[])}function $a(e,t){var r=Kc(ui++,7);return Gc(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function kB(){for(var e;e=mA.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pa),e.__H.__h.forEach(jc),e.__H.__h=[]}catch(t){e.__H.__h=[],re.__e(t,e.__v)}}function OB(e){var t,r=function(){clearTimeout(n),Hx&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Hx&&(t=requestAnimationFrame(r))}function Pa(e){var t=Ne,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Ne=t}function jc(e){var t=Ne;e.__c=e.__(),Ne=t}function Gc(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ha(){if(Wt>1)Wt--;else{for(var e,t=!1;ii!==void 0;){var r=ii;for(ii=void 0,Uc++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&_A(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Uc=0,Wt--,t)throw e}}function et(e){if(Wt>0)return e();Wt++;try{return e()}finally{Ha()}}function yA(e){if(V!==void 0){var t=e.n;if(t===void 0||t.t!==V)return t={i:0,S:e,p:V.s,n:void 0,t:V,e:void 0,x:void 0,r:t},V.s!==void 0&&(V.s.n=t),V.s=t,e.n=t,32&V.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=V.s,t.n=void 0,V.s.n=t,V.s=t),t}}function Ae(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Ee(e){return new Ae(e)}function _A(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 bA(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 wA(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 Qr(e){Ae.call(this,void 0),this.x=e,this.s=void 0,this.g=La-1,this.f=4}function oi(e){return new Qr(e)}function EA(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Wt++;var r=V;V=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Wc(e),n}finally{V=r,Ha()}}}function Wc(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,EA(e)}function PB(e){if(V!==this)throw new Error("Out-of-order effect");wA(this),V=e,this.f&=-2,8&this.f&&Wc(this),Ha()}function fi(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Xr(e){var t=new fi(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Zr(e,t){T[e]=t.bind(null,T[e]||function(){})}function Ma(e){Ac&&Ac(),Ac=e&&e.S()}function SA(e){var t=this,r=e.data,n=IA(r);n.value=r;var i=$a(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var u=oi(function(){var h=n.value.value;return h===0?0:h===!0?"":h||""}),d=oi(function(){return!Array.isArray(u.value)&&!Fs(u.value)}),c=Xr(function(){if(this.N=TA,d.value){var h=u.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=h)}}),p=t.__$u.d;return t.__$u.d=function(){c(),p.call(this)},[d,u]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function NB(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=Ee(r);return{o:function(a,s){o.value=a,n=s},d:Xr(function(){this.N=TA;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function IA(e){return $a(function(){return Ee(e)},[])}function LB(){et(function(){for(var e;e=xA.shift();)zc.call(e)})}function MB(){xA.push(this)===1&&(T.requestAnimationFrame||qB)(LB)}function jB(){et(function(){for(var e;e=AA.shift();)zc.call(e)})}function TA(){AA.push(this)===1&&(T.requestAnimationFrame||DB)(jB)}function UB(e){var t=gA(e);t.current=e,vA(function(){return Xr(function(){return this.N=MB,t.current()})},[])}function FB(e,t){for(var r in t)e[r]=t[r];return e}function Vx(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 Jx(e,t){this.props=e,this.context=t}function RA(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=FB({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return RA(n,t,r)})),e}function kA(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return kA(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 Sc(){this.__u=0,this.o=null,this.__b=null}function OA(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ta(){this.i=null,this.l=null}function WB(e,t,r){return t.__k==null&&(t.textContent=""),yr(e,t),typeof r=="function"&&r(),e?e.__c:null}function zB(){}function YB(){return this.cancelBubble}function QB(){return this.defaultPrevented}function ZB(e,t){let r=gA(e);RB(()=>{r.current=e},[e]),vA(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function ye(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 u={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--e3,__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 T.vnode&&T.vnode(u),u}function Ot(e,t,r){return(t=f3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f3(e){var t=p3(e,"string");return typeof t=="symbol"?t:t+""}function p3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fr(e,t,r){return(t=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=m3(e,"string");return typeof t=="symbol"?t:t+""}function m3(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 Ex,ZF,e2,t2,Ic,Tc,Zx,a2,s2,xx,l2,u2,Ax,c2,d2,f2,eA,p2,_2,b2,Sx,w2,rA,nA,iA,Ix,E2,x2,Rc,X,T2,R2,ri,ai,k2,Oc,O2,_c,N2,Cc,Tx,Pc,Nc,qc,V2,Re,qa,U,aA,Hc,Vc,J2,sA,K2,G2,Ua,W2,Fa,zr,uA,Be,ce,Yr,cB,dB,fB,Ox,pB,hB,mB,vB,gB,_B,bB,wB,pA,Cx,wc,Px,Nx,Gt,xB,AB,SB,IB,TB,di,ui,Ne,xc,Lx,Mc,mA,re,Mx,jx,Ux,Fx,Bx,$x,Hx,CB,V,ii,Wt,Uc,La,zc,Ac,xA,AA,qB,DB,Fe,Kx,BB,Gx,Wx,$B,HB,VB,JB,KB,GB,zx,XB,Yx,Qx,Xx,e3,t3,Ct,Fc,Bc,Na,r3,n3,i3,o3,a3,s3,l3,u3,c3,d3,$c,ja,y8,CA=k(()=>{"use strict";Js();Ex=Object.getOwnPropertySymbols,ZF=Object.prototype.hasOwnProperty,e2=Object.prototype.propertyIsEnumerable,t2=(e,t)=>{var r={};for(var n in e)ZF.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ex)for(var n of Ex(e))t.indexOf(n)<0&&e2.call(e,n)&&(r[n]=e[n]);return r};Ic=class{constructor(t){Ze(this,"context",void 0),Ze(this,"continueCallback",void 0),Ze(this,"isBeforeAdCalled",!1),Ze(this,"isBeforeRewardCalled",!1),Ze(this,"isAdDismissedCalled",!1),Ze(this,"isAdViewedCalled",!1),Ze(this,"isAfterAdCalled",!1),Ze(this,"currentProvider",void 0),Ze(this,"currentClientParams",void 0),Ze(this,"adsHasResponse",!1),Ze(this,"videoChecker",window.document.createElement("video")),Ze(this,"wrapShowAdFn",r=>()=>{this.adsHasResponse=!0;let n=!1;this.videoChecker.play().catch(()=>{n=!1}),n=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:n},this.paramsToTrack)),r()}),this.context=t}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()=>{this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.isBeforeAdCalled||(this.isBeforeAdCalled=!0,t==null||t())}}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;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.continueCallback)==null||a.call(this,[!1,r]);break}default:{(s=this.continueCallback)==null||s.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n){return I(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(i=>{this.continueCallback=i;let o;switch(r.type){case"preroll":{o={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{o={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:{o={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 a,s,l,u;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(s=(a=this.currentProvider)==null?void 0:a.name)!=null?s:null}),(u=this.continueCallback)==null||u.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(l=r.name)!=null?l:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),t.adBreak(o,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Tc=class{constructor(t){Aa(this,"context",void 0),Aa(this,"adBreakIsShowing",!1),Aa(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),Aa(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()})}},Zx=Object.defineProperty,a2=Object.defineProperties,s2=Object.getOwnPropertyDescriptors,xx=Object.getOwnPropertySymbols,l2=Object.prototype.hasOwnProperty,u2=Object.prototype.propertyIsEnumerable,Ax=(e,t,r)=>t in e?Zx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c2=(e,t)=>{for(var r in t||(t={}))l2.call(t,r)&&Ax(e,r,t[r]);if(xx)for(var r of xx(t))u2.call(t,r)&&Ax(e,r,t[r]);return e},d2=(e,t)=>a2(e,s2(t)),f2=(e,t)=>{for(var r in t)Zx(e,r,{get:t[r],enumerable:!0})},eA=(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},p2=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(u){i(u)}},a=l=>{try{s(r.throw(l))}catch(u){i(u)}},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}_2=(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))(_2||{});b2={log:ti("log"),warn:ti("warn"),info:ti("info"),error:ti("error"),debug:ti("debug")};Object.assign(globalThis,{logger:b2});Sx=Symbol.for("Jolibox.canIUseMap"),w2={};globalThis[Sx]||(globalThis[Sx]=w2);rA=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(rA||{}),nA=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(nA||{}),iA=(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))(iA||{}),Ix=["name","params"],E2=["name","type","location","target","extra","timestamp","userId"],x2=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];I2();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");Rc=class kc{constructor(t){this.element=t,this.next=kc.Undefined,this.prev=kc.Undefined}};Rc.Undefined=new Rc(void 0);X=Rc,T2=class{constructor(){this._first=X.Undefined,this._last=X.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===X.Undefined}clear(){let e=this._first;for(;e!==X.Undefined;){let t=e.next;e.prev=X.Undefined,e.next=X.Undefined,e=t}this._first=X.Undefined,this._last=X.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new X(e);if(this._first===X.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!==X.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==X.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==X.Undefined&&e.next!==X.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===X.Undefined&&e.next===X.Undefined?(this._first=X.Undefined,this._last=X.Undefined):e.next===X.Undefined?(this._last=this._last.prev,this._last.next=X.Undefined):e.prev===X.Undefined&&(this._first=this._first.next,this._first.prev=X.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==X.Undefined;)yield e.element,e=e.next}},R2=0,ri=class{constructor(e){this.value=e,this.id=R2++}},ai=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof ri&&(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 ri(e);return this._listeners?this._listeners instanceof ri?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 u,d,c,p;if(!this._disposed){if(this._listeners instanceof ri)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(d=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||d.call(u));else if(this._listeners){let h=this._listeners.indexOf(l);h>=0&&(this._listeners.splice(h,1),this._size--,this._size===0&&((p=(c=this.options)==null?void 0:c.onDidRemoveLastListener)==null||p.call(c)))}}}}),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 ri?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},k2=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t){var r;let n=(r=this.listeners.get(e))!=null?r:new ai,i=s=>t(...s.args),o=n.event(i);this.listerHandlerMap.set(t,{handler:i,dispose:o}),this.listeners.set(e,n);let a=this.cachedEventQueue.get(e);if(a)for(let s of a)t(...s.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 T2,this.cachedEventQueue.set(e,r)),r.push({args:i}),t&&t.fire({event:e,args:i})}},Oc={};f2(Oc,{None:()=>O2,filter:()=>P2,once:()=>oA,toPromise:()=>C2});O2=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});_c=Symbol.for("Jolibox.hostEmitter"),N2=()=>{let e=new k2;return globalThis[_c]||(globalThis[_c]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e)}),globalThis[_c]};N2();Cc=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ai,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return q2(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}};Cc=eA([tA],Cc);Tx=class{constructor(){this._onWillExecuteCommand=new ai,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ai,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Cc,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=h2(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 p2(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Oc.toPromise(Oc.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{}}};Tx=eA([tA],Tx);Pc=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";bc(this,"context",void 0),bc(this,"placement","GAME"),bc(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:iA.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:rA.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:nA.WebSDK};return S2(i)}};Nc=class{constructor(t){Sa(this,"configs",null),Sa(this,"firstRun",!0),Sa(this,"context",void 0),Sa(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return I(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}};qc=class{constructor(t,r){kt(this,"name","ADSENSE"),kt(this,"context",void 0),kt(this,"contextInfo",void 0),kt(this,"configured",!1),kt(this,"initParams",void 0),kt(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),kt(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=t2(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),kt(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),kt(this,"adUnit",n=>I(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:u,adFormat:d,fullWidthResponsive:c,style:p}=n,h;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?h=document.querySelector(l):h=l,!h)throw new Error("targeting element not found");let m=u;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,y=document.createElement("ins");if(y.className="adsbygoogle",y.id="jolibox-ads",y.style.display="block",y.setAttribute("data-ad-client",this.initParams.clientId),y.setAttribute("data-ad-slot",m),g&&y.setAttribute("data-ad-format",g),c&&y.setAttribute("data-full-width-responsive",c),p&&y.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",y.style.position="relative",h.appendChild(y),y.appendChild(v)}else h.appendChild(y),new MutationObserver(v=>{v.forEach(_=>{if(_.type==="attributes"&&_.attributeName==="data-ad-status"){let x=y.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:x!=null?x:"null"})}})}).observe(y,{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 I(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),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};V2=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(H2(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=$2(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}(),Re="-ms-",qa="-moz-",U="-webkit-",aA="comm",Hc="rule",Vc="decl",J2="@import",sA="@keyframes",K2="@layer",G2=Math.abs,Ua=String.fromCharCode,W2=Object.assign;Fa=1,zr=1,uA=0,Be=0,ce=0,Yr="";cB=function(e,t,r){for(var n=0,i=0;n=i,i=vt(),n===38&&i===12&&(t[r]=1),!li(i);)Ve();return ci(e,Be)},dB=function(e,t){var r=-1,n=44;do switch(li(n)){case 0:n===38&&vt()===12&&(t[r]=1),e[r]+=cB(Be-1,t,r);break;case 2:e[r]+=Oa(n);break;case 4:if(n===44){e[++r]=vt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ua(n)}while(n=Ve());return e},fB=function(e,t){return dA(dB(cA(e),t))},Ox=new WeakMap,pB=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&&!Ox.get(r))&&!n){Ox.set(e,!0);for(var i=[],o=fB(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},hB=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};mB=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Vc:e.return=fA(e.value,e.length);break;case sA:return Wr([ni(e,{value:F(e.value,"@","@"+U)})],n);case Hc:if(e.length)return Q2(e.props,function(i){switch(Y2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wr([ni(e,{props:[F(i,/:(read-\w+)/,":"+qa+"$1")]})],n);case"::placeholder":return Wr([ni(e,{props:[F(i,/:(plac\w+)/,":"+U+"input-$1")]}),ni(e,{props:[F(i,/:(plac\w+)/,":"+qa+"$1")]}),ni(e,{props:[F(i,/:(plac\w+)/,Re+"input-$1")]})],n)}return""})}},vB=[mB],gB=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||vB,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(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[pB,hB];{var u,d=[aB,lB(function(m){u.insert(m)})],c=sB(l.concat(n,d)),p=function(m){return Wr(iB(m),c)};s=function(m,g,y,v){u=y,p(m?m+"{"+g.styles+"}":g.styles),v&&(h.inserted[g.name]=!0)}}var h={key:t,sheet:new V2({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 h.sheet.hydrate(a),h};_B={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},bB=/[A-Z]|^ms/g,wB=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pA=function(e){return e.charCodeAt(1)===45},Cx=function(e){return e!=null&&typeof e!="boolean"},wc=uB(function(e){return pA(e)?e:e.replace(bB,"-$&").toLowerCase()}),Px=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(wB,function(r,n,i){return Gt={name:n,styles:i,next:Gt},n})}return _B[e]!==1&&!pA(e)&&typeof t=="number"&&t!==0?t+"px":t};Nx=/label:\s*([^\s;{]+)\s*(;|$)/g;xB=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},AB=function(e,t,r){xB(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)}};SB=function(e){var t=gB(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 u=Ec(s,t.registered,void 0);return AB(t,u),t.key+"-"+u.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var u=Ec(s,t.registered),d="animation-"+u.name;return qx(t,{name:u.name,styles:"@keyframes "+d+"{"+u.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var u=Ec(s,t.registered);qx(t,u)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Dx(t.registered,r,IB(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:hA.bind(null,t.registered),merge:Dx.bind(null,t.registered,r)}},IB=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},TB=SB({key:"css"}),di=TB.css,Mc=0,mA=[],re=T,Mx=re.__b,jx=re.__r,Ux=re.diffed,Fx=re.__c,Bx=re.unmount,$x=re.__;re.__b=function(e){Ne=null,Mx&&Mx(e)},re.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),$x&&$x(e,t)},re.__r=function(e){jx&&jx(e),ui=0;var t=(Ne=e.__c).__H;t&&(xc===Ne?(t.__h=[],Ne.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Pa),t.__h.forEach(jc),t.__h=[],ui=0)),xc=Ne},re.diffed=function(e){Ux&&Ux(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(mA.push(t)!==1&&Lx===re.requestAnimationFrame||((Lx=re.requestAnimationFrame)||OB)(kB)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),xc=Ne=null},re.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Pa),r.__h=r.__h.filter(function(n){return!n.__||jc(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],re.__e(n,r.__v)}}),Fx&&Fx(e,t)},re.unmount=function(e){Bx&&Bx(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Pa(n)}catch(i){t=i}}),r.__H=void 0,t&&re.__e(t,r.__v))};Hx=typeof requestAnimationFrame=="function";CB=Symbol.for("preact-signals");V=void 0,ii=void 0,Wt=0,Uc=0,La=0;Ae.prototype.brand=CB;Ae.prototype.h=function(){return!0};Ae.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)};Ae.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)}};Ae.prototype.subscribe=function(e){var t=this;return Xr(function(){var r=t.value,n=V;V=void 0;try{e(r)}finally{V=n}})};Ae.prototype.valueOf=function(){return this.value};Ae.prototype.toString=function(){return this.value+""};Ae.prototype.toJSON=function(){return this.value};Ae.prototype.peek=function(){var e=V;V=void 0;try{return this.value}finally{V=e}};Object.defineProperty(Ae.prototype,"value",{get:function(){var e=yA(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Uc>100)throw new Error("Cycle detected");this.v=e,this.i++,La++,Wt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ha()}}}});(Qr.prototype=new Ae).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===La))return!0;if(this.g=La,this.f|=1,this.i>0&&!_A(this))return this.f&=-2,!0;var e=V;try{bA(this),V=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 V=e,wA(this),this.f&=-2,!0};Qr.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)}Ae.prototype.S.call(this,e)};Qr.prototype.U=function(e){if(this.t!==void 0&&(Ae.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)}};Qr.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(Qr.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=yA(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});fi.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()}};fi.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,EA(this),bA(this),Wt++;var e=V;return V=this,PB.bind(this,e)};fi.prototype.N=function(){2&this.f||(this.f|=2,this.o=ii,ii=this)};fi.prototype.d=function(){this.f|=8,1&this.f||Wc(this)};xA=[],AA=[];Xr(function(){zc=this.N})();SA.displayName="_st";Object.defineProperties(Ae.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:SA},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Zr("__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 Ae&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Zr("__r",function(e,t){Ma();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return Xr(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Ma(r),e(t)});Zr("__e",function(e,t,r,n){Ma(),e(t,r,n)});Zr("diffed",function(e,t){Ma();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 u=o[l],d=n[l];u===void 0?(u=NB(r,l,d,i),o[l]=u):u.o(d,i)}}}e(t)});Zr("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)});Zr("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});_e.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};qB=typeof requestAnimationFrame=="undefined"?setTimeout:function(e){var t=function(){clearTimeout(r),cancelAnimationFrame(n),e()},r=setTimeout(t,100),n=requestAnimationFrame(t)},DB=function(e){queueMicrotask(function(){queueMicrotask(e)})};Fe=di`
|
|
416
|
+
inset: 0;
|
|
417
|
+
clear: none;
|
|
418
|
+
float: none;
|
|
419
|
+
max-height: none;
|
|
420
|
+
max-width: none;
|
|
421
|
+
opacity: 1;
|
|
422
|
+
overflow: visible;
|
|
423
|
+
visibility: visible;
|
|
424
|
+
padding: 0;
|
|
425
|
+
margin: 0;
|
|
426
|
+
top: 0;
|
|
427
|
+
left: 0;
|
|
428
|
+
padding: 0;
|
|
429
|
+
border: none;
|
|
430
|
+
text-decoration: none;
|
|
431
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
432
|
+
'Helvetica Neue', sans-serif;
|
|
433
|
+
`;(Jx.prototype=new _e).isPureReactComponent=!0,Jx.prototype.shouldComponentUpdate=function(e,t){return Vx(this.props,e)||Vx(this.state,t)};Kx=T.__b;T.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Kx&&Kx(e)};BB=T.__e;T.__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)}BB(e,t,r,n)};Gx=T.unmount;T.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Gx&&Gx(e)},(Sc.prototype=new _e).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=OA(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]=kA(l,l.__c.__P,l.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.o.pop();)u.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Sc.prototype.componentWillUnmount=function(){this.o=[]},Sc.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]=RA(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Ge(rt,null,e.fallback);return i&&(i.__u&=-33),[Ge(rt,null,t.__a?null:e.children),i]};Wx=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]}};(Ta.prototype=new _e).__a=function(e){var t=this,r=OA(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Wx(t,e,n)):i()};r?r(o):o()}},Ta.prototype.render=function(e){this.i=null,this.l=new Map;var t=bt(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},Ta.prototype.componentDidUpdate=Ta.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Wx(e,r,t)})};$B=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,HB=/^(?: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]/,VB=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,JB=/[A-Z0-9]/g,KB=typeof document!="undefined",GB=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};_e.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(_e.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});zx=T.event;T.event=function(e){return zx&&(e=zx(e)),e.persist=zB,e.isPropagationStopped=YB,e.isDefaultPrevented=QB,e.nativeEvent=e};XB={enumerable:!1,configurable:!0,get:function(){return this.class}},Yx=T.vnode;T.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||KB&&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"||GB(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":VB.test(a)&&(a=l):l=a="oninput":o&&HB.test(a)?a=a.replace(JB,"-$&").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=bt(r.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=bt(r.children).forEach(function(u){u.props.selected=i.multiple?i.defaultValue.indexOf(u.props.value)!=-1:i.defaultValue==u.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",XB)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=$B,Yx&&Yx(e)};Qx=T.__r;T.__r=function(e){Qx&&Qx(e),e.__c};Xx=T.diffed;T.diffed=function(e){Xx&&Xx(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)};e3=0;t3=di`
|
|
434
|
+
${Fe}
|
|
435
|
+
position: fixed;
|
|
436
|
+
top: 0;
|
|
437
|
+
left: 0;
|
|
438
|
+
display: flex;
|
|
439
|
+
justify-content: center;
|
|
440
|
+
align-items: center;
|
|
441
|
+
z-index: 998;
|
|
442
|
+
background: rgba(0, 0, 0, 0.5);
|
|
443
|
+
width: 100vw;
|
|
444
|
+
height: 100vh;
|
|
445
|
+
|
|
446
|
+
.card-wrapper {
|
|
447
|
+
${Fe}
|
|
448
|
+
position: relative;
|
|
449
|
+
display: flex;
|
|
450
|
+
flex-direction: column;
|
|
451
|
+
justify-content: center;
|
|
452
|
+
align-items: center;
|
|
453
|
+
background: white;
|
|
454
|
+
border-radius: 8px;
|
|
455
|
+
overflow: hidden;
|
|
456
|
+
width: 250px;
|
|
457
|
+
min-height: 100px;
|
|
458
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
459
|
+
|
|
460
|
+
.body {
|
|
461
|
+
${Fe}
|
|
462
|
+
display: flex;
|
|
463
|
+
flex-direction: column;
|
|
464
|
+
width: 100%;
|
|
465
|
+
padding: 16px;
|
|
466
|
+
min-height: 100px;
|
|
467
|
+
box-sizing: border-box;
|
|
468
|
+
justify-content: center;
|
|
469
|
+
.title {
|
|
470
|
+
${Fe}
|
|
471
|
+
text-align: center;
|
|
472
|
+
font-size: 16px;
|
|
473
|
+
font-weight: bold;
|
|
474
|
+
margin-bottom: 8px;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.content {
|
|
478
|
+
${Fe}
|
|
479
|
+
font-size: 14px;
|
|
480
|
+
color: #888;
|
|
481
|
+
margin-bottom: 16px;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.footer {
|
|
486
|
+
${Fe}
|
|
487
|
+
display: flex;
|
|
488
|
+
align-items: center;
|
|
489
|
+
width: 100%;
|
|
490
|
+
height: 40px;
|
|
491
|
+
button {
|
|
492
|
+
${Fe}
|
|
493
|
+
border: none;
|
|
494
|
+
outline: none;
|
|
495
|
+
height: 100%;
|
|
496
|
+
font-size: 14px;
|
|
497
|
+
padding: 8px 16px;
|
|
498
|
+
flex: 1;
|
|
499
|
+
cursor: pointer;
|
|
500
|
+
|
|
501
|
+
&.confirm-btm {
|
|
502
|
+
background: rgb(120, 23, 255);
|
|
503
|
+
color: white;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
`,Ct=Ee(null),Fc=Ee(""),Bc=Ee(""),Na=Ee(!1),r3=()=>{var e;(e=Ct.value)==null||e.call(Ct,!1)},n3=()=>{var e;(e=Ct.value)==null||e.call(Ct,!0)},i3=e=>I(void 0,null,function*(){let{title:t,content:r}=e;return Ct.value&&(Ct.value(!1),et(()=>{Ct.value=null,Na.value=!1})),et(()=>{Fc.value=t||"",Bc.value=r||"",Na.value=!0}),new Promise(n=>{Ct.value=i=>{et(()=>{Ct.value=null,Na.value=!1,Fc.value="",Bc.value=""}),n(i)}})}),o3=()=>Na.value?ye("div",{className:t3,children:ye("div",{className:"card-wrapper",children:[ye("div",{className:"body",children:[ye("div",{className:"title",children:Fc.value}),ye("div",{className:"content",children:Bc.value})]}),ye("div",{className:"footer",children:[ye("button",{onClick:r3,className:"cancel-btn",children:"Cancel"}),ye("button",{onClick:n3,className:"confirm-btm",children:"Confirm"})]})]})}):null,a3=di`
|
|
509
|
+
${Fe}
|
|
510
|
+
position: relative;
|
|
511
|
+
display: flex;
|
|
512
|
+
align-items: center;
|
|
513
|
+
justify-content: flex-end;
|
|
514
|
+
background: black;
|
|
515
|
+
padding-top: env(safe-area-inset-top, 20px);
|
|
516
|
+
width: 100%;
|
|
517
|
+
height: 60px;
|
|
518
|
+
padding: 0 20px;
|
|
519
|
+
box-sizing: border-box;
|
|
520
|
+
|
|
521
|
+
.timer {
|
|
522
|
+
color: white;
|
|
523
|
+
margin-right: 20px;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
button {
|
|
527
|
+
${Fe}
|
|
528
|
+
padding: 0 20px;
|
|
529
|
+
height: 30px;
|
|
530
|
+
line-height: 30px;
|
|
531
|
+
font-size: 16px;
|
|
532
|
+
background: rgb(120, 23, 255);
|
|
533
|
+
border-radius: 100px;
|
|
534
|
+
color: white;
|
|
535
|
+
|
|
536
|
+
&:disabled {
|
|
537
|
+
opacity: 0.5;
|
|
538
|
+
cursor: not-allowed;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
`,s3=()=>{let e=Ee(!1),t=Ee(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{et(()=>{t.value=Date.now(),e.value=!1})}}},l3=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=IA(t);UB(()=>{o.value&&(s.value=t)}),ZB(()=>{s.value>0?s.value-=1:et(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=oi(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!o.value)return!1;let h=Date.now()-o.value;return s.value>0&&t-s.value>=5&&h>=5e3}),u=oi(()=>{if(r==="interstitial")return!0;if(!o.value)return!1;let h=Date.now()-o.value;return s.value<=0&&h>=(t-1)*1e3&&t>5}),d=oi(()=>r==="interstitial"?!1:!l.value&&!u.value),c=()=>I(void 0,null,function*(){if(a.value=!0,!(yield i3({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),et(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),et(()=>{a.value=!0,s.value=0,o.value=null})};return ye("div",{className:a3,children:[s.value>0&&r!=="interstitial"&&ye("div",{className:"timer",children:[s.value,"s"]}),ye("button",{onClick:l.value?c:u.value?p:void 0,disabled:d.value,children:ye("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ye("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"})})})]})},u3=()=>{let e=Ee(),t=Ee(),r=Ee(),n=Ee(),i=Ee(),o=Ee(!1),a=Ee(15),s=Ee(""),l=Ee("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},c3=di`
|
|
542
|
+
${Fe}
|
|
543
|
+
position: fixed;
|
|
544
|
+
z-index: 2147483647;
|
|
545
|
+
background: white;
|
|
546
|
+
width: 100vw;
|
|
547
|
+
height: 100vh;
|
|
548
|
+
display: flex;
|
|
549
|
+
flex-direction: column;
|
|
550
|
+
|
|
551
|
+
iframe {
|
|
552
|
+
${Fe}
|
|
553
|
+
flex: 1;
|
|
554
|
+
position: relative;
|
|
555
|
+
display: block;
|
|
556
|
+
background: white;
|
|
557
|
+
width: 100%;
|
|
558
|
+
height: 100%;
|
|
559
|
+
}
|
|
560
|
+
`,d3=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,visible:s,countdown:l,src:u,mode:d}=t,c=$a(()=>s3(),[]),p=m=>{var g,y,v,_;s.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((y=i.value)==null||y.call(i)),(v=r.value)==null||v.call(r),(_=o.value)==null||_.call(o)},h=()=>{var m;(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{c.startTimer()},100),(m=a.value)==null||m.call(a)};return s.value?ye("div",{className:c3,children:[ye(l3,{mode:d.value,onClose:p,countdown:l.value,state:c}),s.value&&ye("iframe",{src:u.value,onLoad:h,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"}),ye(o3,{})]}):null};$c=class{constructor(t,r){Ot(this,"name","OKSPIN"),Ot(this,"initialized",!1),Ot(this,"initCompleter",null),Ot(this,"context",void 0),Ot(this,"initParams",void 0),Ot(this,"adsOverlay",null),Ot(this,"adsIsShowing",!1),Ot(this,"lastUnDisplayedAdBreak",null),Ot(this,"state",u3()),this.context=t,this.initParams=r}init(){return I(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),WB(ye(d3,{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 I(this,null,function*(){var n,i,o,a,s,l,u,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 c=()=>{var h;this.adsIsShowing=!1,(h=t.afterAd)==null||h.call(t)},p=()=>{var h;this.adsIsShowing=!1,(h=t.adBreakDone)==null||h.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};et(()=>{this.adsIsShowing=!0,this.state.afterAd.value=c,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),(u=t.beforeAd)==null||u.call(t);let c=()=>{var v;this.adsIsShowing=!1,(v=t.afterAd)==null||v.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},h=()=>{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)};et(()=>{this.state.afterAd.value=c,this.state.adDismissed.value=h,this.state.adViewed.value=m,this.state.adBreakDone.value=g});let y=()=>{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,et(()=>{var _;this.state.countdown.value=(_=r.params.countdown)!=null?_:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,y);break}}})}};ja=class{constructor(t){if(fr(this,"context",void 0),fr(this,"contextInfo",void 0),fr(this,"providers",{}),fr(this,"channelPolicy",void 0),fr(this,"adsActionDetection",void 0),fr(this,"adsTrackSerializer",void 0),fr(this,"initialized",!1),t)this.context=t,this.channelPolicy=new Nc(this.context),this.adsActionDetection=new Tc(this.context),this.adsTrackSerializer=new Pc(this.context),this.contextInfo=this.context.getContextInfo();else throw new Error("JoliboxAdsForGame requires a configuration object")}getRequestContextData(t){var r,n;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"}}getRequestBizParams(){return{objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId}}init(t){return I(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.getRequestContextData("AdsAFGSDKInit"),bizParams:this.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"ADSENSE":{let i=new qc(this.context,n.params);yield i.init(),this.providers.ADSENSE=i;break}case"OKSPIN":{let i=new $c(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}}this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return I(this,null,function*(){var r,n,i,o,a,s,l,u,d;if((r=this.context.eventEmitter)==null||r.emit("isAdShowing",!0),this.adsActionDetection.adBreakIsShowing=!0,this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}this.context.checkNetwork()||(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:"NETWORK_NOT_OK",breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});try{let{data:c,code:p}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.getRequestContextData("AdsAFGSDKAdBreak"),bizParams:this.getRequestBizParams(),adsType:t.type==="reward"?"REWARD":"INTERSTITIAL",testAdsMode:this.contextInfo.testAdsMode,name:t.type==="preroll"?"":t.name}});if(p!=="SUCCESS"){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"UNKNOWN_ERROR",breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let h=c;if(h.length===0){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:"NO_ADS",breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let m=!0,g=null,y=new Ic(this.context);for(;h.length>0;){let v=h.shift(),_=this.providers[v.provider];if(_){let[x,R]=yield y.callAdBreakAndContinue(_,t,v);m=x,g=R}else m=!0,g={breakType:t.type,breakName:t.type==="preroll"?"":(s=t.name)!=null?s:"",breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!m)break}m&&g&&((l=t.adBreakDone)==null||l.call(t,g))}}catch(c){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{(d=this.context.eventEmitter)==null||d.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.")}},y8=di`
|
|
561
|
+
${Fe}
|
|
562
|
+
position: fixed;
|
|
563
|
+
left: 0;
|
|
564
|
+
top: 0;
|
|
565
|
+
display: none;
|
|
566
|
+
z-index: 2147483647;
|
|
567
|
+
background: black;
|
|
568
|
+
width: 100vw;
|
|
569
|
+
height: 100vh;
|
|
570
|
+
|
|
571
|
+
&[data-visible='true'] {
|
|
572
|
+
display: block;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.ads-wrapper {
|
|
576
|
+
${Fe}
|
|
577
|
+
position: relative;
|
|
578
|
+
width: 100%;
|
|
579
|
+
height: 100%;
|
|
580
|
+
display: block;
|
|
581
|
+
|
|
582
|
+
video {
|
|
583
|
+
position: absolute;
|
|
584
|
+
top: 0;
|
|
585
|
+
left: 0;
|
|
586
|
+
width: 100%;
|
|
587
|
+
height: 100%;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
#ad-container {
|
|
591
|
+
position: absolute;
|
|
592
|
+
top: 0;
|
|
593
|
+
left: 0;
|
|
594
|
+
width: 100%;
|
|
595
|
+
height: 100%;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.retry-button {
|
|
599
|
+
${Fe}
|
|
600
|
+
position: absolute;
|
|
601
|
+
width: 100%;
|
|
602
|
+
height: 100%;
|
|
603
|
+
display: flex;
|
|
604
|
+
justify-content: center;
|
|
605
|
+
align-items: center;
|
|
606
|
+
cursor: pointer;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
`});function NA(){let e=new Map,t;return{registerRewardHandler(n,i){e.set(n,i)},handleReward(n,...i){return I(this,null,function*(){return yield n.reduce((a,s)=>I(this,null,function*(){let l=yield a;if(l===!0)return!0;PA&&console.log(`handleReward ${s}`);let u=e.get(s),d=u?yield u(...i):l;return PA&&console.log(`handleReward ${s} ${d}`),d}),Promise.resolve(!1))})},registerRewardsFetcher(n){return I(this,null,function*(){t=(...i)=>I(this,null,function*(){try{return yield n(...i)}catch(o){return console.error("getRewardOptions error:",o),["ADS"]}})})},getRewardsTypes(...n){return I(this,null,function*(){return t?yield t(...n):["ADS"]})}}}var PA,qA=k(()=>{"use strict";ie();PA=A.testMode});var v3,g3,DA,LA=k(()=>{"use strict";Gr();v3=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,g3=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(v3()):["ADS"],DA=e=>{e.registerRewardsFetcher(t=>I(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;ue.emit(Kr,{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(u=>u.type))||Array.from(r);return g3(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))}});var MA,jA=k(()=>{"use strict";MA=e=>t=>I(void 0,null,function*(){return e.adBreak(t),!0})});function pr(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)}}var Va=k(()=>{"use strict"});var UA,FA=k(()=>{"use strict";UA=(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 Ja,Ka,BA,Ga,Wa=k(()=>{"use strict";ie();q();Gr();FA();Va();Ja=(e,t)=>r=>I(void 0,null,function*(){let n=pr(ue,dr);return ue.emit(wa,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult}),Ka=(e,t)=>r=>I(void 0,null,function*(){let n=pr(ue,ei);return ue.emit(Ea,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult}),BA=e=>{if(e=="CANCEL")throw new Error("CANCEL")},Ga=(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:r,unlockOptionsHandler:n,initiateAndAwaitPayment:i,showUnlockWithJolicoinModal:o}})=>a=>I(void 0,null,function*(){var s,l,u,d,c,p,h;try{let m=!1,g=yield n.getData(),y=(u=(l=(s=g==null?void 0:g.options)==null?void 0:s.find(x=>x.type==="JOLI_COIN"))==null?void 0:l.joliCoinChoices[0].joliCoinQuantity)!=null?u:0;if(!UA((g==null?void 0:g.options)||[],g==null?void 0:g.userJoliCoin)){let x=yield i({userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:y});if(BA(x),x!=="SUCCESS")return r==null||r(a),!1;m=!0}let v=!!((d=g==null?void 0:g.userJoliCoin)!=null&&d.enableAutoDeduct);if(!m){let x=yield o({enableAutoDeduct:v,userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:y});if(BA(x),x!=="CONFIRM")return r==null||r(a),!1}let _=yield e.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${xi()}-${A.mpType}-${Date.now()}`,gameInfo:{gameId:A.mpId}}});return _.code=="SUCCESS"?((p=a.adBreakDone)==null||p.call(a,{breakType:a.type,breakName:"name"in a&&(c=a.name)!=null?c:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in a&&((h=a.adViewed)==null||h.call(a)),t==null||t({quantity:_.data.quantity,balance:_.data.balance}),!0):(r==null||r(a),!1)}catch(m){if(console.info("JolicoinRewardHandler error:",m),m instanceof Error&&m.message=="CANCEL")throw m;return r==null||r(a),!1}})});var $A,HA=k(()=>{"use strict";Gr();Va();Wa();Wa();$A=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=pr(ue,Kr),i=()=>{r==null||r()},o=Ka("ADS-JOLI_COIN",{confirmButtonText:"Use Jolicoin",cancelButtonText:"No watch ads"}),a=Ja("ADS-JOLI_COIN",{confirmButtonText:"Pay and unlock",cancelButtonText:"No watch ads"});return Ga(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var VA,JA=k(()=>{"use strict";Gr();Wa();Va();VA=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=pr(ue,Kr),i=l=>{var u;r==null||r(),(u=l.adBreakDone)==null||u.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=Ka("JOLI_COIN",{confirmButtonText:"Use Jolicoin",cancelButtonText:"No thanks"}),a=Ja("JOLI_COIN",{confirmButtonText:"Pay and unlock",cancelButtonText:"No thanks"});return Ga(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var hr,KA=k(()=>{"use strict";qA();LA();jA();HA();JA();hr=NA();DA(hr)});var mW,za,y3,Ya,_3,pi,GA,b3,w3,E3,x3,WA=k(()=>{"use strict";q();ht();Wo();mW=J(wx());CA();Dt();ie();Xt();ke();KA();za=ne(),y3=()=>{let{data:e}=L("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},Ya={get:(e,t)=>Ie(e,O({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>Ie(e,O({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},_3={httpClient:Ya,checkNetwork:y3,track:$e,getContextInfo:()=>{var e,t,r,n,i,o,a,s;return{hostAppId:(t=(e=A.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=A.deviceInfo.did)!=null?r:"",adId:(n=A.deviceInfo.did)!=null?n:"",sessionId:(i=A.sessionId)!=null?i:"",userId:(a=(o=A.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:A.mpId,testAdsMode:A.testAdsMode,channel:(s=A.joliSource)!=null?s:"",deviceBrand:A.deviceInfo.brand,deviceModel:A.deviceInfo.model,osType:A.platform==="android"?"ANDROID":A.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3}}},pi=new ja(_3);hr.registerRewardHandler("ADS",MA(pi));hr.registerRewardHandler("JOLI_COIN",$A(Ya,{onUnlockSuccess:e=>{GA(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));hr.registerRewardHandler("JOLI_COIN_ONLY",VA(Ya,{onUnlockSuccess:e=>{GA(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));GA=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} JoliCoins used`;GE(r,{customStyle:{mark:{marginRight:"8px"}}})},b3=W("adInit",{implement:e=>{pi.init(e)}}),w3=W("adConfig",{implement:e=>{pi.adConfig(e)}}),E3=W("adBreak",{implement:e=>{e.type==="reward"?hr.getRewardsTypes(Ya).then(t=>{hr.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"})})}):pi.adBreak(e)}}),x3=W("adUnit",{implement:e=>{pi.adUnit(e)}});za.registerCommand("AdsSDK.init",b3);za.registerCommand("AdsSDK.adConfig",w3);za.registerCommand("AdsSDK.adBreak",E3);za.registerCommand("AdsSDK.adUnit",x3);P("AdsSDK.init",{version:"1.0.0"});P("AdsSDK.adConfig",{version:"1.0.0"});P("AdsSDK.adBreak",{version:"1.0.0"});P("AdsSDK.adUnit",{version:"1.0.0"})});var Qa,A3,S3,I3,T3,zA=k(()=>{"use strict";q();ke();ht();ie();Qa=ne(),A3=W("openSchemaSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${A.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=L("openSchemaSync",{schema:t});if(r.errNo!==0)throw new fn(r.errMsg,r.errNo)}}),S3=W("openPageSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=L("openPageSync",{url:e});if(t!==0||!n)throw new fn(r,t);return{webviewId:n.webviewId}}}),I3=W("closePageSync",{paramsSchema:E.tuple(E.number()),implement:e=>{let{errNo:t,errMsg:r}=L("closePageSync",{webviewId:e});if(t!==0)throw new fn(r,t)}}),T3=W("interceptSystemExitSync",{paramsSchema:E.tuple(E.boolean()),implement:e=>{Se.emit("onInterceptSystemExit",{intercept:e})}});Qa.registerCommand("RouterSDK.openSchema",A3);Qa.registerCommand("RouterSDK.openPage",S3);Qa.registerCommand("RouterSDK.closePage",I3);Qa.registerCommand("RouterSDK.interceptSystemExit",T3);P("router.openSchema",{version:"1.1.10"});P("router.openPage",{version:"1.1.10"});P("router.closePage",{version:"1.1.10"});P("router.interceptSystemExit",{version:"1.1.18"})});var R3={};var RW,PW,YA=k(()=>{"use strict";lx();RW=J(ux());vx();gx();yx();PW=J(_x());yc();WA();zA()});var QA=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[QA])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[QA]=!0;I(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(tx(),ex)),Promise.resolve().then(()=>(YA(),R3)),Promise.resolve().then(()=>(Dt(),cf))]);e()});
|