@jetthai/cuora 1.0.25 → 1.0.27
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/CHANGELOG.md +4 -0
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +30 -0
- package/package.json +10 -4
- package/src/api/activity.js +46 -0
- package/src/api/auth.js +15 -0
- package/src/api/common.js +4 -0
- package/src/api/game.js +32 -0
- package/src/api/index.js +9 -0
- package/src/api/mailbox.js +20 -0
- package/src/api/payment.js +63 -0
- package/src/api/user.js +19 -0
- package/src/index.js +6 -0
- package/src/machine/activity/activity.js +73 -0
- package/src/machine/activity/continue_deposit_activity.js +132 -0
- package/src/machine/activity/deposit_activity.js +86 -0
- package/src/machine/activity/diamond_shop_activity.js +163 -0
- package/src/machine/activity/fafafa_activity.js +131 -0
- package/src/machine/activity/index.js +21 -0
- package/src/machine/activity/invite_friends_activity.js +121 -0
- package/src/machine/activity/ranking_activity.js +76 -0
- package/src/machine/activity/return_bonus_activity.js +150 -0
- package/src/machine/activity/specify_bets_activity.js +116 -0
- package/src/machine/auth.js +245 -0
- package/src/machine/auth_otp.js +191 -0
- package/src/machine/check.js +113 -0
- package/src/machine/common.js +163 -0
- package/src/machine/deposit.js +236 -0
- package/src/machine/error.js +72 -0
- package/src/machine/game.js +265 -0
- package/src/machine/game_favorite.js +123 -0
- package/src/machine/game_search.js +248 -0
- package/src/machine/inbox.js +246 -0
- package/src/machine/index.js +37 -0
- package/src/machine/merge.js +57 -0
- package/src/machine/payment_data.js +81 -0
- package/src/machine/reward.js +73 -0
- package/src/machine/setting.js +37 -0
- package/src/machine/side.js +147 -0
- package/src/machine/withdraw.js +367 -0
- package/src/request/config.js +18 -0
- package/src/request/cookie.js +52 -0
- package/src/request/request.js +97 -0
- package/webpack.config.js +19 -0
- package/index.js +0 -58
- package/plugin/activity.js +0 -289
- package/plugin/core.js +0 -518
- package/plugin/game.js +0 -474
- package/plugin/inbox.js +0 -216
- package/plugin/information.js +0 -57
- package/plugin/job/network.js +0 -61
- package/plugin/payment.js +0 -257
- package/plugin/request.js +0 -225
- package/plugin/search.js +0 -277
- package/plugin/user.js +0 -198
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.0.27](https://github.com/jetthai/cuora-module/compare/v1.0.26...v1.0.27) (2021-10-14)
|
|
6
|
+
|
|
7
|
+
### [1.0.26](https://github.com/jetthai/cuora-module/compare/v1.0.25...v1.0.26) (2021-10-13)
|
|
8
|
+
|
|
5
9
|
### [1.0.25](https://github.com/jetthai/cuora-module/compare/v1.0.24...v1.0.25) (2021-08-30)
|
|
6
10
|
|
|
7
11
|
### [1.0.24](https://github.com/jetthai/cuora-module/compare/v1.0.23...v1.0.24) (2021-08-25)
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
+
var t={1924:(t,e,r)=>{var n=r(210),i=r(5559),o=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i(r):r}},5559:(t,e,r)=>{var n=r(8612),i=r(210),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),c=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}t.exports=function(t){var e=s(n,a,arguments);if(c&&u){var r=c(e,"length");r.configurable&&u(e,"length",{value:1+l(0,t.length-(arguments.length-1))})}return e};var d=function(){return s(n,o,arguments)};u?u(t.exports,"apply",{value:d}):t.exports.apply=d},6489:(t,e)=>{e.Q=function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var n={},o=e||{},s=t.split(i),c=o.decode||r,u=0;u<s.length;u++){var l=s[u],d=l.indexOf("=");if(!(d<0)){var p=l.substr(0,d).trim(),f=l.substr(++d,l.length).trim();'"'==f[0]&&(f=f.slice(1,-1)),null==n[p]&&(n[p]=a(f,c))}}return n},e.q=function(t,e,r){var i=r||{},a=i.encode||n;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!o.test(t))throw new TypeError("argument name is invalid");var s=a(e);if(s&&!o.test(s))throw new TypeError("argument val is invalid");var c=t+"="+s;if(null!=i.maxAge){var u=i.maxAge-0;if(isNaN(u)||!isFinite(u))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(u)}if(i.domain){if(!o.test(i.domain))throw new TypeError("option domain is invalid");c+="; Domain="+i.domain}if(i.path){if(!o.test(i.path))throw new TypeError("option path is invalid");c+="; Path="+i.path}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw new TypeError("option expires is invalid");c+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(c+="; HttpOnly"),i.secure&&(c+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return c};var r=decodeURIComponent,n=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(t,e){try{return e(t)}catch(e){return t}}},7648:t=>{var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";t.exports=function(t){var o=this;if("function"!=typeof o||n.call(o)!==i)throw new TypeError(e+o);for(var a,s=r.call(arguments,1),c=function(){if(this instanceof a){var e=o.apply(this,s.concat(r.call(arguments)));return Object(e)===e?e:this}return o.apply(t,s.concat(r.call(arguments)))},u=Math.max(0,o.length-s.length),l=[],d=0;d<u;d++)l.push("$"+d);if(a=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(c),o.prototype){var p=function(){};p.prototype=o.prototype,a.prototype=new p,p.prototype=null}return a}},8612:(t,e,r)=>{var n=r(7648);t.exports=Function.prototype.bind||n},210:(t,e,r)=>{var n,i=SyntaxError,o=Function,a=TypeError,s=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(t){c=null}var u=function(){throw new a},l=c?function(){try{return u}catch(t){try{return c(arguments,"callee").get}catch(t){return u}}}():u,d=r(1405)(),p=Object.getPrototypeOf||function(t){return t.__proto__},f={},y="undefined"==typeof Uint8Array?n:p(Uint8Array),g={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?p(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":y,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},h=function t(e){var r;if("%AsyncFunction%"===e)r=s("async function () {}");else if("%GeneratorFunction%"===e)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=s("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(r=p(i.prototype))}return g[e]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=r(8612),w=r(7642),b=m.call(Function.call,Array.prototype.concat),S=m.call(Function.apply,Array.prototype.splice),x=m.call(Function.call,String.prototype.replace),_=m.call(Function.call,String.prototype.slice),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,A=function(t){var e=_(t,0,1),r=_(t,-1);if("%"===e&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return x(t,E,(function(t,e,r,i){n[n.length]=r?x(i,k,"$1"):e||t})),n},T=function(t,e){var r,n=t;if(w(v,n)&&(n="%"+(r=v[n])[0]+"%"),w(g,n)){var o=g[n];if(o===f&&(o=h(n)),void 0===o&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');var r=A(t),n=r.length>0?r[0]:"",o=T("%"+n+"%",e),s=o.name,u=o.value,l=!1,d=o.alias;d&&(n=d[0],S(r,b([0,1],d)));for(var p=1,f=!0;p<r.length;p+=1){var y=r[p],h=_(y,0,1),v=_(y,-1);if(('"'===h||"'"===h||"`"===h||'"'===v||"'"===v||"`"===v)&&h!==v)throw new i("property names with quotes must have matching quotes");if("constructor"!==y&&f||(l=!0),w(g,s="%"+(n+="."+y)+"%"))u=g[s];else if(null!=u){if(!(y in u)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(c&&p+1>=r.length){var m=c(u,y);u=(f=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:u[y]}else f=w(u,y),u=u[y];f&&!l&&(g[s]=u)}}return u}},1405:(t,e,r)=>{var n="undefined"!=typeof Symbol&&Symbol,i=r(5419);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},5419:t=>{t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},7642:(t,e,r)=>{var n=r(8612);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},8552:(t,e,r)=>{var n=r(852)(r(5639),"DataView");t.exports=n},1989:(t,e,r)=>{var n=r(1789),i=r(401),o=r(7667),a=r(1327),s=r(1866);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},8407:(t,e,r)=>{var n=r(7040),i=r(4125),o=r(2117),a=r(7518),s=r(4705);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},7071:(t,e,r)=>{var n=r(852)(r(5639),"Map");t.exports=n},3369:(t,e,r)=>{var n=r(4785),i=r(1285),o=r(6e3),a=r(9916),s=r(5265);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},3818:(t,e,r)=>{var n=r(852)(r(5639),"Promise");t.exports=n},8525:(t,e,r)=>{var n=r(852)(r(5639),"Set");t.exports=n},8668:(t,e,r)=>{var n=r(3369),i=r(619),o=r(2385);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},6384:(t,e,r)=>{var n=r(8407),i=r(7465),o=r(3779),a=r(7599),s=r(4758),c=r(4309);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=i,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,t.exports=u},2705:(t,e,r)=>{var n=r(5639).Symbol;t.exports=n},1149:(t,e,r)=>{var n=r(5639).Uint8Array;t.exports=n},577:(t,e,r)=>{var n=r(852)(r(5639),"WeakMap");t.exports=n},4963:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o}},4636:(t,e,r)=>{var n=r(2545),i=r(5694),o=r(1469),a=r(4144),s=r(5776),c=r(6719),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=o(t),l=!r&&i(t),d=!r&&!l&&a(t),p=!r&&!l&&!d&&c(t),f=r||l||d||p,y=f?n(t.length,String):[],g=y.length;for(var h in t)!e&&!u.call(t,h)||f&&("length"==h||d&&("offset"==h||"parent"==h)||p&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||s(h,g))||y.push(h);return y}},9932:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},2488:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},2908:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},4865:(t,e,r)=>{var n=r(9465),i=r(7813),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];o.call(t,e)&&i(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},8470:(t,e,r)=>{var n=r(7813);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},9465:(t,e,r)=>{var n=r(8777);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},1848:t=>{t.exports=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},7786:(t,e,r)=>{var n=r(1811),i=r(327);t.exports=function(t,e){for(var r=0,o=(e=n(e,t)).length;null!=t&&r<o;)t=t[i(e[r++])];return r&&r==o?t:void 0}},8866:(t,e,r)=>{var n=r(2488),i=r(1469);t.exports=function(t,e,r){var o=e(t);return i(t)?o:n(o,r(t))}},4239:(t,e,r)=>{var n=r(2705),i=r(9607),o=r(2333),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},9454:(t,e,r)=>{var n=r(4239),i=r(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},939:(t,e,r)=>{var n=r(2492),i=r(7005);t.exports=function t(e,r,o,a,s){return e===r||(null==e||null==r||!i(e)&&!i(r)?e!=e&&r!=r:n(e,r,o,a,t,s))}},2492:(t,e,r)=>{var n=r(6384),i=r(7114),o=r(8351),a=r(6096),s=r(4160),c=r(1469),u=r(4144),l=r(6719),d="[object Arguments]",p="[object Array]",f="[object Object]",y=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,g,h,v){var m=c(t),w=c(e),b=m?p:s(t),S=w?p:s(e),x=(b=b==d?f:b)==f,_=(S=S==d?f:S)==f,E=b==S;if(E&&u(t)){if(!u(e))return!1;m=!0,x=!1}if(E&&!x)return v||(v=new n),m||l(t)?i(t,e,r,g,h,v):o(t,e,b,r,g,h,v);if(!(1&r)){var k=x&&y.call(t,"__wrapped__"),A=_&&y.call(e,"__wrapped__");if(k||A){var T=k?t.value():t,O=A?e.value():e;return v||(v=new n),h(T,O,r,g,v)}}return!!E&&(v||(v=new n),a(t,e,r,g,h,v))}},2958:(t,e,r)=>{var n=r(6384),i=r(939);t.exports=function(t,e,r,o){var a=r.length,s=a,c=!o;if(null==t)return!s;for(t=Object(t);a--;){var u=r[a];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++a<s;){var l=(u=r[a])[0],d=t[l],p=u[1];if(c&&u[2]){if(void 0===d&&!(l in t))return!1}else{var f=new n;if(o)var y=o(d,p,l,t,e,f);if(!(void 0===y?i(p,d,3,o,f):y))return!1}}return!0}},8458:(t,e,r)=>{var n=r(3560),i=r(5346),o=r(3218),a=r(346),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,p=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(n(t)?p:s).test(a(t))}},8749:(t,e,r)=>{var n=r(4239),i=r(1780),o=r(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[n(t)]}},7206:(t,e,r)=>{var n=r(1573),i=r(6432),o=r(6557),a=r(1469),s=r(9601);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):n(t):s(t)}},280:(t,e,r)=>{var n=r(5726),i=r(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},313:(t,e,r)=>{var n=r(3218),i=r(5726),o=r(3498),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=i(t),r=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&r.push(s);return r}},1573:(t,e,r)=>{var n=r(2958),i=r(1499),o=r(2634);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},6432:(t,e,r)=>{var n=r(939),i=r(7361),o=r(9095),a=r(5403),s=r(9162),c=r(2634),u=r(327);t.exports=function(t,e){return a(t)&&s(e)?c(u(t),e):function(r){var a=i(r,t);return void 0===a&&a===e?o(r,t):n(e,a,3)}}},3012:(t,e,r)=>{var n=r(7786),i=r(611),o=r(1811);t.exports=function(t,e,r){for(var a=-1,s=e.length,c={};++a<s;){var u=e[a],l=n(t,u);r(l,u)&&i(c,o(u,t),l)}return c}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,r)=>{var n=r(7786);t.exports=function(t){return function(e){return n(e,t)}}},611:(t,e,r)=>{var n=r(4865),i=r(1811),o=r(5776),a=r(3218),s=r(327);t.exports=function(t,e,r,c){if(!a(t))return t;for(var u=-1,l=(e=i(e,t)).length,d=l-1,p=t;null!=p&&++u<l;){var f=s(e[u]),y=r;if("__proto__"===f||"constructor"===f||"prototype"===f)return t;if(u!=d){var g=p[f];void 0===(y=c?c(g,f,p):void 0)&&(y=a(g)?g:o(e[u+1])?[]:{})}n(p,f,y),p=p[f]}return t}},2545:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},531:(t,e,r)=>{var n=r(2705),i=r(9932),o=r(1469),a=r(3448),s=n?n.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},7561:(t,e,r)=>{var n=r(7990),i=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(i,""):t}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},4757:t=>{t.exports=function(t,e){return t.has(e)}},1811:(t,e,r)=>{var n=r(1469),i=r(5403),o=r(5514),a=r(9833);t.exports=function(t,e){return n(t)?t:i(t,e)?[t]:o(a(t))}},4429:(t,e,r)=>{var n=r(5639)["__core-js_shared__"];t.exports=n},8777:(t,e,r)=>{var n=r(852),i=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},7114:(t,e,r)=>{var n=r(8668),i=r(2908),o=r(4757);t.exports=function(t,e,r,a,s,c){var u=1&r,l=t.length,d=e.length;if(l!=d&&!(u&&d>l))return!1;var p=c.get(t),f=c.get(e);if(p&&f)return p==e&&f==t;var y=-1,g=!0,h=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++y<l;){var v=t[y],m=e[y];if(a)var w=u?a(m,v,y,e,t,c):a(v,m,y,t,e,c);if(void 0!==w){if(w)continue;g=!1;break}if(h){if(!i(e,(function(t,e){if(!o(h,e)&&(v===t||s(v,t,r,a,c)))return h.push(e)}))){g=!1;break}}else if(v!==m&&!s(v,m,r,a,c)){g=!1;break}}return c.delete(t),c.delete(e),g}},8351:(t,e,r)=>{var n=r(2705),i=r(1149),o=r(7813),a=r(7114),s=r(8776),c=r(1814),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;t.exports=function(t,e,r,n,u,d,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!d(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var f=s;case"[object Set]":var y=1&n;if(f||(f=c),t.size!=e.size&&!y)return!1;var g=p.get(t);if(g)return g==e;n|=2,p.set(t,e);var h=a(f(t),f(e),n,u,d,p);return p.delete(t),h;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},6096:(t,e,r)=>{var n=r(8234),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,o,a,s){var c=1&r,u=n(t),l=u.length;if(l!=n(e).length&&!c)return!1;for(var d=l;d--;){var p=u[d];if(!(c?p in e:i.call(e,p)))return!1}var f=s.get(t),y=s.get(e);if(f&&y)return f==e&&y==t;var g=!0;s.set(t,e),s.set(e,t);for(var h=c;++d<l;){var v=t[p=u[d]],m=e[p];if(o)var w=c?o(m,v,p,e,t,s):o(v,m,p,t,e,s);if(!(void 0===w?v===m||a(v,m,r,o,s):w)){g=!1;break}h||(h="constructor"==p)}if(g&&!h){var b=t.constructor,S=e.constructor;b==S||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof S&&S instanceof S||(g=!1)}return s.delete(t),s.delete(e),g}},1957:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8234:(t,e,r)=>{var n=r(8866),i=r(9551),o=r(3674);t.exports=function(t){return n(t,o,i)}},6904:(t,e,r)=>{var n=r(8866),i=r(1442),o=r(1704);t.exports=function(t){return n(t,o,i)}},5050:(t,e,r)=>{var n=r(7019);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},1499:(t,e,r)=>{var n=r(9162),i=r(3674);t.exports=function(t){for(var e=i(t),r=e.length;r--;){var o=e[r],a=t[o];e[r]=[o,a,n(a)]}return e}},852:(t,e,r)=>{var n=r(8458),i=r(7801);t.exports=function(t,e){var r=i(t,e);return n(r)?r:void 0}},5924:(t,e,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);t.exports=n},9607:(t,e,r)=>{var n=r(2705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=a.call(t);return n&&(e?t[s]=r:delete t[s]),i}},9551:(t,e,r)=>{var n=r(4963),i=r(479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},1442:(t,e,r)=>{var n=r(2488),i=r(5924),o=r(9551),a=r(479),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,o(t)),t=i(t);return e}:a;t.exports=s},4160:(t,e,r)=>{var n=r(8552),i=r(7071),o=r(3818),a=r(8525),s=r(577),c=r(4239),u=r(346),l="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",y="[object DataView]",g=u(n),h=u(i),v=u(o),m=u(a),w=u(s),b=c;(n&&b(new n(new ArrayBuffer(1)))!=y||i&&b(new i)!=l||o&&b(o.resolve())!=d||a&&b(new a)!=p||s&&b(new s)!=f)&&(b=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case g:return y;case h:return l;case v:return d;case m:return p;case w:return f}return e}),t.exports=b},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,r)=>{var n=r(1811),i=r(5694),o=r(1469),a=r(5776),s=r(1780),c=r(327);t.exports=function(t,e,r){for(var u=-1,l=(e=n(e,t)).length,d=!1;++u<l;){var p=c(e[u]);if(!(d=null!=t&&r(t,p)))break;t=t[p]}return d||++u!=l?d:!!(l=null==t?0:t.length)&&s(l)&&a(p,l)&&(o(t)||i(t))}},1789:(t,e,r)=>{var n=r(4536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,r)=>{var n=r(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},1327:(t,e,r)=>{var n=r(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},1866:(t,e,r)=>{var n=r(4536);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},5403:(t,e,r)=>{var n=r(1469),i=r(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,r)=>{var n,i=r(4429),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!o&&o in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},9162:(t,e,r)=>{var n=r(3218);t.exports=function(t){return t==t&&!n(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,r)=>{var n=r(8470),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():i.call(e,r,1),--this.size,0))}},2117:(t,e,r)=>{var n=r(8470);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7518:(t,e,r)=>{var n=r(8470);t.exports=function(t){return n(this.__data__,t)>-1}},4705:(t,e,r)=>{var n=r(8470);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},4785:(t,e,r)=>{var n=r(1989),i=r(8407),o=r(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},1285:(t,e,r)=>{var n=r(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).get(t)}},9916:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).has(t)}},5265:(t,e,r)=>{var n=r(5050);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},2634:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},4523:(t,e,r)=>{var n=r(8306);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},4536:(t,e,r)=>{var n=r(852)(Object,"create");t.exports=n},6916:(t,e,r)=>{var n=r(5569)(Object.keys,Object);t.exports=n},3498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},1167:(t,e,r)=>{t=r.nmd(t);var n=r(1957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&n.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},5639:(t,e,r)=>{var n=r(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},7465:(t,e,r)=>{var n=r(8407);t.exports=function(){this.__data__=new n,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,r)=>{var n=r(8407),i=r(7071),o=r(3369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(t,e),this.size=r.size,this}},5514:(t,e,r)=>{var n=r(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)})),e}));t.exports=a},327:(t,e,r)=>{var n=r(3448);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7990:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},7436:(t,e,r)=>{var n=r(1848),i=r(7206),o=r(554),a=Math.max,s=Math.min;t.exports=function(t,e,r){var c=null==t?0:t.length;if(!c)return-1;var u=c-1;return void 0!==r&&(u=o(r),u=r<0?a(c+u,0):s(u,c-1)),n(t,i(e,3),u,!0)}},7361:(t,e,r)=>{var n=r(7786);t.exports=function(t,e,r){var i=null==t?void 0:n(t,e);return void 0===i?r:i}},9095:(t,e,r)=>{var n=r(13),i=r(222);t.exports=function(t,e){return null!=t&&i(t,e,n)}},6557:t=>{t.exports=function(t){return t}},5694:(t,e,r)=>{var n=r(9454),i=r(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},1469:t=>{var e=Array.isArray;t.exports=e},1240:(t,e,r)=>{var n=r(3560),i=r(1780);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},4144:(t,e,r)=>{t=r.nmd(t);var n=r(5639),i=r(5062),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,s=a&&a.exports===o?n.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;t.exports=c},3560:(t,e,r)=>{var n=r(4239),i=r(3218);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},3448:(t,e,r)=>{var n=r(4239),i=r(7005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},6719:(t,e,r)=>{var n=r(8749),i=r(1717),o=r(1167),a=o&&o.isTypedArray,s=a?i(a):n;t.exports=s},3674:(t,e,r)=>{var n=r(4636),i=r(280),o=r(1240);t.exports=function(t){return o(t)?n(t):i(t)}},1704:(t,e,r)=>{var n=r(4636),i=r(313),o=r(1240);t.exports=function(t){return o(t)?n(t,!0):i(t)}},8306:(t,e,r)=>{var n=r(3369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,t.exports=i},5937:(t,e,r)=>{var n=r(9932),i=r(7206),o=r(3012),a=r(6904);t.exports=function(t,e){if(null==t)return{};var r=n(a(t),(function(t){return[t]}));return e=i(e),o(t,r,(function(t,r){return e(t,r[0])}))}},9601:(t,e,r)=>{var n=r(371),i=r(9152),o=r(5403),a=r(327);t.exports=function(t){return o(t)?n(a(t)):i(t)}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},8601:(t,e,r)=>{var n=r(4841);t.exports=function(t){return t?Infinity===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},554:(t,e,r)=>{var n=r(8601);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},4841:(t,e,r)=>{var n=r(7561),i=r(3218),o=r(3448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=s.test(t);return r||c.test(t)?u(t.slice(2),r?2:8):a.test(t)?NaN:+t}},9833:(t,e,r)=>{var n=r(531);t.exports=function(t){return null==t?"":n(t)}},631:(t,e,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"==typeof c.get?c.get:null,l=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,g=Object.prototype.toString,h=Function.prototype.toString,v=String.prototype.match,m="function"==typeof BigInt?BigInt.prototype.valueOf:null,w=Object.getOwnPropertySymbols,b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,x=Object.prototype.propertyIsEnumerable,_=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),E=r(4654).custom,k=E&&N(E)?E:null,A="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function T(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function O(t){return String(t).replace(/"/g,""")}function I(t){return!("[object Array]"!==D(t)||A&&"object"==typeof t&&A in t)}function N(t){if(S)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!b)return!1;try{return b.call(t),!0}catch(t){}return!1}t.exports=function t(e,r,n,i){var s=r||{};if(C(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(C(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!C(s,"customInspect")||s.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(C(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return P(e,s);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var g=void 0===s.depth?5:s.depth;if(void 0===n&&(n=0),n>=g&&g>0&&"object"==typeof e)return I(e)?"[Array]":"[Object]";var w,x=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Array(t.indent+1).join(" ")}return{base:r,prev:Array(e+1).join(r)}}(s,n);if(void 0===i)i=[];else if(j(i,e)>=0)return"[Circular]";function E(e,r,o){if(r&&(i=i.slice()).push(r),o){var a={depth:s.depth};return C(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,n+1,i)}return t(e,s,n+1,i)}if("function"==typeof e){var R=function(t){if(t.name)return t.name;var e=v.call(h.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),L=G(e,E);return"[Function"+(R?": "+R:" (anonymous)")+"]"+(L.length>0?" { "+L.join(", ")+" }":"")}if(N(e)){var V=S?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):b.call(e);return"object"!=typeof e||S?V:M(V)}if((w=e)&&"object"==typeof w&&("undefined"!=typeof HTMLElement&&w instanceof HTMLElement||"string"==typeof w.nodeName&&"function"==typeof w.getAttribute)){for(var W="<"+String(e.nodeName).toLowerCase(),q=e.attributes||[],H=0;H<q.length;H++)W+=" "+q[H].name+"="+T(O(q[H].value),"double",s);return W+=">",e.childNodes&&e.childNodes.length&&(W+="..."),W+"</"+String(e.nodeName).toLowerCase()+">"}if(I(e)){if(0===e.length)return"[]";var z=G(e,E);return x&&!function(t){for(var e=0;e<t.length;e++)if(j(t[e],"\n")>=0)return!1;return!0}(z)?"["+B(z,x)+"]":"[ "+z.join(", ")+" ]"}if(function(t){return!("[object Error]"!==D(t)||A&&"object"==typeof t&&A in t)}(e)){var $=G(e,E);return 0===$.length?"["+String(e)+"]":"{ ["+String(e)+"] "+$.join(", ")+" }"}if("object"==typeof e&&c){if(k&&"function"==typeof e[k])return e[k]();if("symbol"!==c&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!o||!t||"object"!=typeof t)return!1;try{o.call(t);try{u.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var Y=[];return a.call(e,(function(t,r){Y.push(E(r,e,!0)+" => "+E(t,e))})),F("Map",o.call(e),Y,x)}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t);try{o.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var K=[];return l.call(e,(function(t){K.push(E(t,e))})),F("Set",u.call(e),K,x)}if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{d.call(t,d);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return U("WeakMap");if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{d.call(t,d)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return U("WeakSet");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{return f.call(t),!0}catch(t){}return!1}(e))return U("WeakRef");if(function(t){return!("[object Number]"!==D(t)||A&&"object"==typeof t&&A in t)}(e))return M(E(Number(e)));if(function(t){if(!t||"object"!=typeof t||!m)return!1;try{return m.call(t),!0}catch(t){}return!1}(e))return M(E(m.call(e)));if(function(t){return!("[object Boolean]"!==D(t)||A&&"object"==typeof t&&A in t)}(e))return M(y.call(e));if(function(t){return!("[object String]"!==D(t)||A&&"object"==typeof t&&A in t)}(e))return M(E(String(e)));if(!function(t){return!("[object Date]"!==D(t)||A&&"object"==typeof t&&A in t)}(e)&&!function(t){return!("[object RegExp]"!==D(t)||A&&"object"==typeof t&&A in t)}(e)){var J=G(e,E),Q=_?_(e)===Object.prototype:e instanceof Object||e.constructor===Object,X=e instanceof Object?"":"null prototype",Z=!Q&&A&&Object(e)===e&&A in e?D(e).slice(8,-1):X?"Object":"",tt=(Q||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(Z||X?"["+[].concat(Z||[],X||[]).join(": ")+"] ":"");return 0===J.length?tt+"{}":x?tt+"{"+B(J,x)+"}":tt+"{ "+J.join(", ")+" }"}return String(e)};var R=Object.prototype.hasOwnProperty||function(t){return t in this};function C(t,e){return R.call(t,e)}function D(t){return g.call(t)}function j(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function P(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return P(t.slice(0,e.maxStringLength),e)+n}return T(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,L),"single",e)}function L(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function M(t){return"Object("+t+")"}function U(t){return t+" { ? }"}function F(t,e,r,n){return t+" ("+e+") {"+(n?B(r,n):r.join(", "))+"}"}function B(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+t.join(","+r)+"\n"+e.prev}function G(t,e){var r=I(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=C(t,i)?e(t[i],t):""}var o,a="function"==typeof w?w(t):[];if(S){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var c in t)C(t,c)&&(r&&String(Number(c))===c&&c<t.length||S&&o["$"+c]instanceof Symbol||(/[^\w$]/.test(c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t))));if("function"==typeof w)for(var u=0;u<a.length;u++)x.call(t,a[u])&&n.push("["+e(a[u])+"]: "+e(t[a[u]],t));return n}},5798:t=>{var e=String.prototype.replace,r=/%20/g,n="RFC3986";t.exports={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:n}},129:(t,e,r)=>{var n=r(8261),i=r(5235),o=r(5798);t.exports={formats:o,parse:i,stringify:n}},5235:(t,e,r)=>{var n=r(2769),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=s?o.slice(0,s.index):o,l=[];if(u){if(!r.plainObjects&&i.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var d=0;r.depth>0&&null!==(s=a.exec(o))&&d<r.depth;){if(d+=1,!r.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+o.slice(s.index)+"]"),function(t,e,r,n){for(var i=n?e:c(e,r),o=t.length-1;o>=0;--o){var a,s=t[o];if("[]"===s&&r.parseArrays)a=[].concat(i);else{a=r.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(u,10);r.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=i:a[u]=i:a={0:i}}i=a}return i}(l,e,r,n)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var r,u={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,d=e.parameterLimit===1/0?void 0:e.parameterLimit,p=l.split(e.delimiter,d),f=-1,y=e.charset;if(e.charsetSentinel)for(r=0;r<p.length;++r)0===p[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[r]?y="utf-8":"utf8=%26%2310003%3B"===p[r]&&(y="iso-8859-1"),f=r,r=p.length);for(r=0;r<p.length;++r)if(r!==f){var g,h,v=p[r],m=v.indexOf("]="),w=-1===m?v.indexOf("="):m+1;-1===w?(g=e.decoder(v,a.decoder,y,"key"),h=e.strictNullHandling?null:""):(g=e.decoder(v.slice(0,w),a.decoder,y,"key"),h=n.maybeMap(c(v.slice(w+1),e),(function(t){return e.decoder(t,a.decoder,y,"value")}))),h&&e.interpretNumericEntities&&"iso-8859-1"===y&&(h=s(h)),v.indexOf("[]=")>-1&&(h=o(h)?[h]:h),i.call(u,g)?u[g]=n.combine(u[g],h):u[g]=h}return u}(t,r):t,d=r.plainObjects?Object.create(null):{},p=Object.keys(l),f=0;f<p.length;++f){var y=p[f],g=u(y,l[y],r,"string"==typeof t);d=n.merge(d,g,r)}return!0===r.allowSparse?d:n.compact(d)}},8261:(t,e,r)=>{var n=r(7478),i=r(2769),o=r(5798),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,u=Array.prototype.push,l=function(t,e){u.apply(t,c(e)?e:[e])},d=Date.prototype.toISOString,p=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(t){return d.call(t)},skipNulls:!1,strictNullHandling:!1},y=function t(e,r,o,a,s,u,d,p,y,g,h,v,m,w,b){var S,x=e;if(b.has(e))throw new RangeError("Cyclic object value");if("function"==typeof d?x=d(r,x):x instanceof Date?x=g(x):"comma"===o&&c(x)&&(x=i.maybeMap(x,(function(t){return t instanceof Date?g(t):t}))),null===x){if(a)return u&&!m?u(r,f.encoder,w,"key",h):r;x=""}if("string"==typeof(S=x)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||i.isBuffer(x))return u?[v(m?r:u(r,f.encoder,w,"key",h))+"="+v(u(x,f.encoder,w,"value",h))]:[v(r)+"="+v(String(x))];var _,E=[];if(void 0===x)return E;if("comma"===o&&c(x))_=[{value:x.length>0?x.join(",")||null:void 0}];else if(c(d))_=d;else{var k=Object.keys(x);_=p?k.sort(p):k}for(var A=0;A<_.length;++A){var T=_[A],O="object"==typeof T&&void 0!==T.value?T.value:x[T];if(!s||null!==O){var I=c(x)?"function"==typeof o?o(r,T):r:r+(y?"."+T:"["+T+"]");b.set(e,!0);var N=n();l(E,t(O,I,o,a,s,u,d,p,y,g,h,v,m,w,N))}}return E};t.exports=function(t,e){var r,i=t,u=function(t){if(!t)return f;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||f.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==t.format){if(!a.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=o.formatters[r],i=f.filter;return("function"==typeof t.filter||c(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===t.allowDots?f.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:f.charsetSentinel,delimiter:void 0===t.delimiter?f.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:f.encode,encoder:"function"==typeof t.encoder?t.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:f.encodeValuesOnly,filter:i,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:f.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:f.strictNullHandling}}(e);"function"==typeof u.filter?i=(0,u.filter)("",i):c(u.filter)&&(r=u.filter);var d,p=[];if("object"!=typeof i||null===i)return"";d=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var g=s[d];r||(r=Object.keys(i)),u.sort&&r.sort(u.sort);for(var h=n(),v=0;v<r.length;++v){var m=r[v];u.skipNulls&&null===i[m]||l(p,y(i[m],m,g,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,h))}var w=p.join(u.delimiter),b=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),w.length>0?b+w:""}},2769:(t,e,r)=>{var n=r(5798),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var i=e[n],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],l=a[u];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(e.push({obj:a,prop:u}),r.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,i,o){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;++u){var l=s.charCodeAt(u);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===n.RFC1738&&(40===l||41===l)?c+=s.charAt(u):l<128?c+=a[l]:l<2048?c+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?c+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(u+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(u)),c+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return c},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(o(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return o(e)&&!o(r)&&(a=s(e,n)),o(e)&&o(r)?(r.forEach((function(r,o){if(i.call(e,o)){var a=e[o];a&&"object"==typeof a&&r&&"object"==typeof r?e[o]=t(a,r,n):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var a=r[o];return i.call(e,o)?e[o]=t(e[o],a,n):e[o]=a,e}),a)}}},7478:(t,e,r)=>{var n=r(210),i=r(1924),o=r(631),a=n("%TypeError%"),s=n("%WeakMap%",!0),c=n("%Map%",!0),u=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),p=i("Map.prototype.get",!0),f=i("Map.prototype.set",!0),y=i("Map.prototype.has",!0),g=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new a("Side channel does not contain "+o(t))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(t)return u(t,n)}else if(c){if(e)return p(e,n)}else if(r)return function(t,e){var r=g(t,e);return r&&r.value}(r,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(t)return d(t,n)}else if(c){if(e)return y(e,n)}else if(r)return function(t,e){return!!g(t,e)}(r,n);return!1},set:function(n,i){s&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new s),l(t,n,i)):c?(e||(e=new c),f(e,n,i)):(r||(r={key:{},next:null}),function(t,e,r){var n=g(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,i))}};return n}},2238:function(t,e,r){var n;!function(i,o){var a="function",s="undefined",c="object",u="string",l="model",d="name",p="type",f="vendor",y="version",g="architecture",h="console",v="mobile",m="tablet",w="smarttv",b="wearable",S="embedded",x={extend:function(t,e){var r={};for(var n in t)e[n]&&e[n].length%2==0?r[n]=e[n].concat(t[n]):r[n]=t[n];return r},has:function(t,e){return typeof t===u&&-1!==e.toLowerCase().indexOf(t.toLowerCase())},lowerize:function(t){return t.toLowerCase()},major:function(t){return typeof t===u?t.replace(/[^\d\.]/g,"").split(".")[0]:o},trim:function(t,e){return t=t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),typeof e===s?t:t.substring(0,255)}},_={rgx:function(t,e){for(var r,n,i,s,u,l,d=0;d<e.length&&!u;){var p=e[d],f=e[d+1];for(r=n=0;r<p.length&&!u;)if(u=p[r++].exec(t))for(i=0;i<f.length;i++)l=u[++n],typeof(s=f[i])===c&&s.length>0?2==s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3==s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):o:this[s[0]]=l?s[1].call(this,l,s[2]):o:4==s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):o):this[s]=l||o;d+=2}},str:function(t,e){for(var r in e)if(typeof e[r]===c&&e[r].length>0){for(var n=0;n<e[r].length;n++)if(x.has(e[r][n],t))return"?"===r?o:r}else if(x.has(e[r],t))return"?"===r?o:r;return t}},E={browser:{oldSafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},oldEdge:{version:{.1:"12.",21:"13.",31:"14.",39:"15.",41:"16.",42:"17.",44:"18."}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},k={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[y,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[y,[d,"Edge"]],[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6})\b.+version\/([\w\.-]+)/i,/(opera)(?:.+version\/|[\/\s]+)([\w\.]+)/i],[d,y],[/opios[\/\s]+([\w\.]+)/i],[y,[d,"Opera Mini"]],[/\sopr\/([\w\.]+)/i],[y,[d,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(ba?idubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i,/(rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,y],[/(?:[\s\/]uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[y,[d,"UCBrowser"]],[/(?:windowswechat)?\sqbcore\/([\w\.]+)\b.*(?:windowswechat)?/i],[y,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[y,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[y,[d,"Konqueror"]],[/trident.+rv[:\s]([\w\.]{1,9})\b.+like\sgecko/i],[y,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[y,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure Browser"],y],[/focus\/([\w\.]+)/i],[y,[d,"Firefox Focus"]],[/opt\/([\w\.]+)/i],[y,[d,"Opera Touch"]],[/coc_coc_browser\/([\w\.]+)/i],[y,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[y,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[y,[d,"Opera Coast"]],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[y,[d,"MIUI Browser"]],[/fxios\/([\w\.-]+)/i],[y,[d,"Firefox"]],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[d,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 Browser"],y],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],y],[/\s(electron)\/([\w\.]+)\ssafari/i,/(tesla)(?:\sqtcarbrowser|\/(20[12]\d\.[\w\.-]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/\s]?([\w\.]+)/i],[d,y],[/(MetaSr)[\/\s]?([\w\.]+)/i,/(LBBROWSER)/i],[d],[/;fbav\/([\w\.]+);/i],[y,[d,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[d,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/\s]([\w\.-]+)/i],[d,y],[/\bgsa\/([\w\.]+)\s.*safari\//i],[y,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[y,[d,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[d,"Chrome WebView"],y],[/droid.+\sversion\/([\w\.]+)\b.+(?:mobile\ssafari|safari)/i],[y,[d,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[d,y],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[y,[d,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[y,d],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[d,[y,_.str,E.browser.oldSafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[d,y],[/(navigator|netscape)\/([\w\.-]+)/i],[[d,"Netscape"],y],[/ile\svr;\srv:([\w\.]+)\).+firefox/i],[y,[d,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[d,y]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,x.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|armv?8e?l?)\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows\s(ce|mobile);\sppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[g,/ower/,"",x.lowerize]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,x.lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus\s10)/i],[l,[f,"Samsung"],[p,m]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy\snexus)/i,/\ssamsung[\s-]([\w-]+)/i,/sec-(sgh\w+)/i],[l,[f,"Samsung"],[p,v]],[/\((ip(?:hone|od)[\s\w]*);/i],[l,[f,"Apple"],[p,v]],[/\((ipad);[\w\s\),;-]+apple/i,/applecoremedia\/[\w\.]+\s\((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[f,"Apple"],[p,m]],[/\b((?:agr|ags[23]|bah2?|sht?)-a?[lw]\d{2})/i],[l,[f,"Huawei"],[p,m]],[/d\/huawei([\w\s-]+)[;\)]/i,/\b(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?|ele-l\d\d)/i,/\b(\w{2,4}-[atu][ln][01259][019])[;\)\s]/i],[l,[f,"Huawei"],[p,v]],[/\b(poco[\s\w]+)(?:\sbuild|\))/i,/\b;\s(\w+)\sbuild\/hm\1/i,/\b(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/\b(redmi[\s\-_]?(?:note|k)?[\w\s_]+)(?:\sbuild|\))/i,/\b(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[l,/_/g," "],[f,"Xiaomi"],[p,v]],[/\b(mi[\s\-_]?(?:pad)(?:[\w\s_]+))(?:\sbuild|\))/i],[[l,/_/g," "],[f,"Xiaomi"],[p,m]],[/;\s(\w+)\sbuild.+\soppo/i,/\s(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[l,[f,"OPPO"],[p,v]],[/\svivo\s(\w+)(?:\sbuild|\))/i,/\s(v[12]\d{3}\w?[at])(?:\sbuild|;)/i],[l,[f,"Vivo"],[p,v]],[/\s(rmx[12]\d{3})(?:\sbuild|;)/i],[l,[f,"Realme"],[p,v]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)\b[\w\s]+build\//i,/\smot(?:orola)?[\s-](\w*)/i,/((?:moto[\s\w\(\)]+|xt\d{3,4}|nexus\s6)(?=\sbuild|\)))/i],[l,[f,"Motorola"],[p,v]],[/\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[l,[f,"Motorola"],[p,m]],[/((?=lg)?[vl]k\-?\d{3})\sbuild|\s3\.[\s\w;-]{10}lg?-([06cv9]{3,4})/i],[l,[f,"LG"],[p,m]],[/(lm-?f100[nv]?|nexus\s[45])/i,/lg[e;\s\/-]+((?!browser|netcast)\w+)/i,/\blg(\-?[\d\w]+)\sbuild/i],[l,[f,"LG"],[p,v]],[/(ideatab[\w\-\s]+)/i,/lenovo\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+)|yt[\d\w-]{6}|tb[\d\w-]{6})/i],[l,[f,"Lenovo"],[p,m]],[/(?:maemo|nokia).*(n900|lumia\s\d+)/i,/nokia[\s_-]?([\w\.-]*)/i],[[l,/_/g," "],[f,"Nokia"],[p,v]],[/droid.+;\s(pixel\sc)[\s)]/i],[l,[f,"Google"],[p,m]],[/droid.+;\s(pixel[\s\daxl]{0,6})(?:\sbuild|\))/i],[l,[f,"Google"],[p,v]],[/droid.+\s([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[f,"Sony"],[p,v]],[/sony\stablet\s[ps]\sbuild\//i,/(?:sony)?sgp\w+(?:\sbuild\/|\))/i],[[l,"Xperia Tablet"],[f,"Sony"],[p,m]],[/\s(kb2005|in20[12]5|be20[12][59])\b/i,/\ba000(1)\sbuild/i,/\boneplus\s(a\d{4})[\s)]/i],[l,[f,"OnePlus"],[p,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi)(\sbuild\/|\))/i,/(kf[a-z]+)(\sbuild\/|\)).+silk\//i],[l,[f,"Amazon"],[p,m]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[l,"Fire Phone"],[f,"Amazon"],[p,v]],[/\((playbook);[\w\s\),;-]+(rim)/i],[l,f,[p,m]],[/((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10;\s(\w+)/i],[l,[f,"BlackBerry"],[p,v]],[/(?:\b|asus_)(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus\s7|padfone|p00[cj])/i],[l,[f,"ASUS"],[p,m]],[/\s(z[es]6[027][01][km][ls]|zenfone\s\d\w?)\b/i],[l,[f,"ASUS"],[p,v]],[/(nexus\s9)/i],[l,[f,"HTC"],[p,m]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[f,[l,/_/g," "],[p,v]],[/droid[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[l,[f,"Acer"],[p,m]],[/droid.+;\s(m[1-5]\snote)\sbuild/i,/\bmz-([\w-]{2,})/i],[l,[f,"Meizu"],[p,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i,/(microsoft);\s(lumia[\s\w]+)/i,/(lenovo)[_\s-]?([\w-]+)/i,/linux;.+(jolla);/i,/droid.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[f,l,[p,v]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i,/[;\/]\s?(le[\s\-]+pan)[\s\-]+(\w{1,9})\sbuild/i,/[;\/]\s?(trinity)[\-\s]*(t\d{3})\sbuild/i,/\b(gigaset)[\s\-]+(q\w{1,9})\sbuild/i,/\b(vodafone)\s([\w\s]+)(?:\)|\sbuild)/i],[f,l,[p,m]],[/\s(surface\sduo)\s/i],[l,[f,"Microsoft"],[p,m]],[/droid\s[\d\.]+;\s(fp\du?)\sbuild/i],[l,[f,"Fairphone"],[p,v]],[/\s(u304aa)\sbuild/i],[l,[f,"AT&T"],[p,v]],[/sie-(\w*)/i],[l,[f,"Siemens"],[p,v]],[/[;\/]\s?(rct\w+)\sbuild/i],[l,[f,"RCA"],[p,m]],[/[;\/\s](venue[\d\s]{2,7})\sbuild/i],[l,[f,"Dell"],[p,m]],[/[;\/]\s?(q(?:mv|ta)\w+)\sbuild/i],[l,[f,"Verizon"],[p,m]],[/[;\/]\s(?:barnes[&\s]+noble\s|bn[rt])([\w\s\+]*)\sbuild/i],[l,[f,"Barnes & Noble"],[p,m]],[/[;\/]\s(tm\d{3}\w+)\sbuild/i],[l,[f,"NuVision"],[p,m]],[/;\s(k88)\sbuild/i],[l,[f,"ZTE"],[p,m]],[/;\s(nx\d{3}j)\sbuild/i],[l,[f,"ZTE"],[p,v]],[/[;\/]\s?(gen\d{3})\sbuild.*49h/i],[l,[f,"Swiss"],[p,v]],[/[;\/]\s?(zur\d{3})\sbuild/i],[l,[f,"Swiss"],[p,m]],[/[;\/]\s?((zeki)?tb.*\b)\sbuild/i],[l,[f,"Zeki"],[p,m]],[/[;\/]\s([yr]\d{2})\sbuild/i,/[;\/]\s(dragon[\-\s]+touch\s|dt)(\w{5})\sbuild/i],[[f,"Dragon Touch"],l,[p,m]],[/[;\/]\s?(ns-?\w{0,9})\sbuild/i],[l,[f,"Insignia"],[p,m]],[/[;\/]\s?((nxa|Next)-?\w{0,9})\sbuild/i],[l,[f,"NextBook"],[p,m]],[/[;\/]\s?(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05]))\sbuild/i],[[f,"Voice"],l,[p,v]],[/[;\/]\s?(lvtel\-)?(v1[12])\sbuild/i],[[f,"LvTel"],l,[p,v]],[/;\s(ph-1)\s/i],[l,[f,"Essential"],[p,v]],[/[;\/]\s?(v(100md|700na|7011|917g).*\b)\sbuild/i],[l,[f,"Envizen"],[p,m]],[/[;\/]\s?(trio[\s\w\-\.]+)\sbuild/i],[l,[f,"MachSpeed"],[p,m]],[/[;\/]\s?tu_(1491)\sbuild/i],[l,[f,"Rotor"],[p,m]],[/(shield[\w\s]+)\sbuild/i],[l,[f,"Nvidia"],[p,m]],[/(sprint)\s(\w+)/i],[f,l,[p,v]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[f,"Microsoft"],[p,v]],[/droid\s[\d\.]+;\s(cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[f,"Zebra"],[p,m]],[/droid\s[\d\.]+;\s(ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[f,"Zebra"],[p,v]],[/\s(ouya)\s/i,/(nintendo)\s([wids3utch]+)/i],[f,l,[p,h]],[/droid.+;\s(shield)\sbuild/i],[l,[f,"Nvidia"],[p,h]],[/(playstation\s[345portablevi]+)/i],[l,[f,"Sony"],[p,h]],[/[\s\(;](xbox(?:\sone)?(?!;\sxbox))[\s\);]/i],[l,[f,"Microsoft"],[p,h]],[/smart-tv.+(samsung)/i],[f,[p,w]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[f,"Samsung"],[p,w]],[/(?:linux;\snetcast.+smarttv|lg\snetcast\.tv-201\d)/i],[[f,"LG"],[p,w]],[/(apple)\s?tv/i],[f,[l,"Apple TV"],[p,w]],[/crkey/i],[[l,"Chromecast"],[f,"Google"],[p,w]],[/droid.+aft([\w])(\sbuild\/|\))/i],[l,[f,"Amazon"],[p,w]],[/\(dtv[\);].+(aquos)/i],[l,[f,"Sharp"],[p,w]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[f,x.trim],[l,x.trim],[p,w]],[/[\s\/\(](android\s|smart[-\s]?|opera\s)tv[;\)\s]/i],[[p,w]],[/((pebble))app\/[\d\.]+\s/i],[f,l,[p,b]],[/droid.+;\s(glass)\s\d/i],[l,[f,"Google"],[p,b]],[/droid\s[\d\.]+;\s(wt63?0{2,3})\)/i],[l,[f,"Zebra"],[p,b]],[/(tesla)(?:\sqtcarbrowser|\/20[12]\d\.[\w\.-]+)/i],[f,[p,S]],[/droid .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[l,[p,v]],[/droid .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[l,[p,m]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[p,x.lowerize]],[/(android[\w\.\s\-]{0,9});.+build/i],[l,[f,"Generic"]],[/(phone)/i],[[p,v]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[y,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[y,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[d,y],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[y,d]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[d,y],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)(?!.+xbox)/i],[d,[y,_.str,E.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[d,"Windows"],[y,_.str,E.os.windows.version]],[/ip[honead]{2,4}\b(?:.*os\s([\w]+)\slike\smac|;\sopera)/i,/cfnetwork\/.+darwin/i],[[y,/_/g,"."],[d,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)(?!.+haiku)/i],[[d,"Mac OS"],[y,/_/g,"."]],[/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/\((series40);/i],[d,y],[/\(bb(10);/i],[y,[d,"BlackBerry"]],[/(?:symbian\s?os|symbos|s60(?=;)|series60)[\/\s-]?([\w\.]*)/i],[y,[d,"Symbian"]],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[d,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[y,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[y,[d,"Chromecast"]],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[d,"Chromium OS"],y],[/(nintendo|playstation)\s([wids345portablevuch]+)/i,/(xbox);\s+xbox\s([^\);]+)/i,/(mint)[\/\s\(\)]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?=\slinux)|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus|raspbian)(?:\sgnu\/linux)?(?:\slinux)?[\/\s-]?(?!chrom|package)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i,/\s([frentopc-]{0,4}bsd|dragonfly)\s?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku)\s(\w+)/i],[d,y],[/(sunos)\s?([\w\.\d]*)/i],[[d,"Solaris"],y],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[d,y]]},A=function(t,e){if("object"==typeof t&&(e=t,t=o),!(this instanceof A))return new A(t,e).getResult();var r=t||(void 0!==i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),n=e?x.extend(k,e):k;return this.getBrowser=function(){var t={name:o,version:o};return _.rgx.call(t,r,n.browser),t.major=x.major(t.version),t},this.getCPU=function(){var t={architecture:o};return _.rgx.call(t,r,n.cpu),t},this.getDevice=function(){var t={vendor:o,model:o,type:o};return _.rgx.call(t,r,n.device),t},this.getEngine=function(){var t={name:o,version:o};return _.rgx.call(t,r,n.engine),t},this.getOS=function(){var t={name:o,version:o};return _.rgx.call(t,r,n.os),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(t){return r=typeof t===u&&t.length>255?x.trim(t,255):t,this},this.setUA(r),this};A.VERSION="0.7.28",A.BROWSER={NAME:d,MAJOR:"major",VERSION:y},A.CPU={ARCHITECTURE:g},A.DEVICE={MODEL:l,VENDOR:f,TYPE:p,CONSOLE:h,MOBILE:v,SMARTTV:w,TABLET:m,WEARABLE:b,EMBEDDED:S},A.ENGINE={NAME:d,VERSION:y},A.OS={NAME:d,VERSION:y},typeof e!==s?(t.exports&&(e=t.exports=A),e.UAParser=A):(n=function(){return A}.call(e,r,e,t))===o||(t.exports=n);var T=void 0!==i&&(i.jQuery||i.Zepto);if(T&&!T.ua){var O=new A;T.ua=O.getResult(),T.ua.get=function(){return O.getUA()},T.ua.set=function(t){O.setUA(t);var e=O.getResult();for(var r in e)T.ua[r]=e[r]}}}("object"==typeof window?window:this)},4078:function(t,e,r){var n,i,o;o=function(){function t(t){var e=[];if(0===t.length)return"";if("string"!=typeof t[0])throw new TypeError("Url must be a string. Received "+t[0]);if(t[0].match(/^[^/:]+:\/*$/)&&t.length>1){var r=t.shift();t[0]=r+t[0]}t[0].match(/^file:\/\/\//)?t[0]=t[0].replace(/^([^/:]+):\/*/,"$1:///"):t[0]=t[0].replace(/^([^/:]+):\/*/,"$1://");for(var n=0;n<t.length;n++){var i=t[n];if("string"!=typeof i)throw new TypeError("Url must be a string. Received "+i);""!==i&&(n>0&&(i=i.replace(/^[\/]+/,"")),i=n<t.length-1?i.replace(/[\/]+$/,""):i.replace(/[\/]+$/,"/"),e.push(i))}var o=e.join("/"),a=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a.shift()+(a.length>0?"?":"")+a.join("&")}return function(){return t("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},t.exports?t.exports=o():void 0===(i="function"==typeof(n=o)?n.call(e,r,e,t):n)||(t.exports=i)},4654:()=>{}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};(()=>{r.d(n,{De:()=>oe,Vj:()=>ie,cf:()=>ne,hi:()=>u,u_:()=>Zt});const t={getActivityTypes:({appSecret:t})=>({url:"activities/types",method:"get",params:{appSecret:t}}),getActivityList:({appSecret:t,include:e})=>({url:"activities/list",method:"get",params:{appSecret:t,include:e}}),getActivityDetail:({activityNo:t,appSecret:e})=>({url:"activities",method:"get",params:{activityNo:t,appSecret:e}}),getAchievements:({limit:t,page:e,appSecret:r})=>({url:"activities/achievements",method:"get",params:{limit:t,page:e,appSecret:r}}),getAchievementsProgress:({achievementNo:t,appSecret:e})=>({url:"activities/achievements/progress",method:"get",params:{achievementNo:t,appSecret:e}}),getAchievementsIssued:()=>({url:"activities/achievements/issue",method:"get"}),postPromoCode:t=>({url:"activities/promo",method:"post",params:{promoCode:t}}),sentAward:({activityNo:t,gender:e,email:r,score:n,suggest:i,uidSite:o,affiliateCode:a,appSecret:s})=>({url:"activities/sentAward",method:"post",params:{activityNo:t,gender:e,email:r,score:n,suggest:i,uidSite:o,affiliateCode:a,appSecret:s}}),getReward:({activityNo:t,receiveNo:e,appSecret:r})=>({url:"activities/rewards",method:"post",params:{activityNo:t,receiveNo:e,appSecret:r}}),getRewardList:({count:t,appSecret:e})=>({url:"activities/rewards",method:"get",params:{count:t,appSecret:e}}),exchange:t=>({url:"activities/exchange",method:"post",params:t}),collect:({appSecret:t})=>({url:"activities/collect",method:"post",params:{appSecret:t}})},e={login:({username:t,password:e,provider:r,countryCode:n,phone:i})=>({url:"login",method:"post",params:{username:t,password:e,provider:r,countryCode:n,phone:i},isPublic:!0}),register:t=>({url:"register?channel=official&subchannel=pwa",method:"post",params:t,isPublic:!0}),logout:()=>({url:"logout",method:"post"})},i={getConfig:({appSecret:t})=>({url:"getConfig",method:"get",params:{appSecret:t},isPublic:!0}),feeds:({appSecret:t})=>({url:"feeds",method:"get",params:{appSecret:t},isPublic:!0})},o={getGameSHA:()=>({method:"get",url:"game/list/v2/sha"}),getOptionMap:t=>({method:"get",url:"game/list/v2/options",params:{code:t}}),getGameStatus:()=>({method:"get",url:"game/list/v2/status"}),getGameCategory:({id:t,first:e})=>({method:"get",url:"game/list/v2/category",params:{id:t,first:e}}),addFavoriteGame:t=>({method:"post",url:"game/myfavorite/add",params:{games:[t]}}),removeFavoriteGame:t=>({method:"post",url:"game/myfavorite/remove",params:{games:[t]}}),getStatements:()=>({url:"game/statements",method:"get"}),playGame:t=>({url:"game/play",method:"get",params:t}),logoutGame:({uid_site:t,provider_id:e})=>({url:"game/logout",method:"get",params:{uid_site:t,provider_id:e}}),getGameTags:({q:t})=>({url:"game/search",method:"get",params:{q:t}}),getGameSearchList:({id:t,index:e,q:r,click:n,clickDefault:i})=>({url:"game/search/list",method:"get",params:{id:t,index:e,q:r,click:n,clickDefault:i}}),setGameSearchTrace:({traceId:t,tagId:e,tagIndex:r,gameCode:n,gameCodeIndex:i,query:o,click:a,clickDefault:s})=>({url:"game/search/trace",method:"post",params:{traceId:t,tagId:e,tagIndex:r,gameCode:n,gameCodeIndex:i,query:o,click:a,clickDefault:s}})},a={getMessageTypes:()=>({url:"mailbox/getMessageTypes",method:"get"}),getMessageList:({type:t,limit:e=10,page:r})=>({url:"mailbox/getMessageList?include=cl",method:"post",params:{type:t,limit:e,page:r}}),updateMessage:({groupId:t,isRead:e})=>({url:"mailbox/updateMessage",method:"post",params:{groupId:t,isRead:e}}),sendMessage:()=>({url:"mailbox/sendMessage",method:"post"}),getMessage:({groupId:t,limit:e=10,pageIdx:r})=>({url:"mailbox/getMessage",method:"post",params:{groupId:t,limit:e,pageIdx:r}}),deleteMessage:({mid:t,isDelete:e})=>({url:"mailbox/deleteMessage",method:"post",params:{mid:t,isDelete:e}})},s={getPaymentHistory:t=>({url:"payment/v2/history",method:"post",params:{returnDays:t}}),getSpotMarket:()=>({url:"payment/spotmarket",method:"get"}),getPaymentInfo:()=>({url:"payment/paymentInfo",method:"get"}),updatePaymentInfo:({bankCode:t,bankAccount:e,firstNameTh:r,lastNameTh:n,firstNameEn:i,lastNameEn:o,bonus:a,paymentProvider:s})=>({url:"payment/updatePaymentInfo",method:"post",params:{bankCode:t,bankAccount:e,firstNameTh:r,lastNameTh:n,firstNameEn:i,lastNameEn:o,bonus:a,paymentProvider:s}}),getBankList:t=>({url:`payment/${t}/getBankList`,method:"get"}),makeTransaction:({type:t,payload:e,paymentMethod:r})=>({url:`payment/${r}/transaction`,method:"post",params:{transferType:t,...e}}),checkTransaction:t=>({url:`payment/${t}/checkTransaction`,method:"post"}),setBonusSetting:({bonus:t})=>({url:"payment/setting",method:"post",params:{bonus:t}}),getCurrentWithdrawRule:()=>({url:"payment/getCurrentWithdrawRule",method:"get"}),convertFreeCredit:({exchangeType:t,cryptoNetwork:e,targetAddress:r})=>({url:"payment/convertFreeCredit",method:"post",params:{exchangeType:t,cryptoNetwork:e,targetAddress:r}}),mergeWallet:()=>({url:"payment/mergeWallet",method:"post"}),getPaymentDetail:({transferType:t})=>({url:"payment/v2/paymentDetail",method:"post",params:{transferType:t}}),getDepositExpectedResult:({method:t,amount:e,cryptoCurrency:r})=>({url:`payment/v2/${t}/expected/result`,method:"post",params:{transferType:"DEPOSIT",amount:e,cryptoCurrency:r}}),getWithdrawExpectedResult:({method:t,amount:e,cryptoNetwork:r})=>({url:`payment/v2/${t}/expected/result`,method:"post",params:{transferType:"WITHDRAW",amount:e,cryptoNetwork:r}}),submitDepositTransaction:({method:t,amount:e,cryptoCurrency:r,cryptoNetwork:n})=>({url:`payment/v2/${t}/transaction`,method:"post",params:{transferType:"DEPOSIT",amount:e,cryptoCurrency:r,cryptoNetwork:n}}),submitWithdrawTransaction:({method:t,amount:e,cryptoCurrency:r,cryptoNetwork:n,targetAddress:i})=>({url:`payment/v2/${t}/transaction`,method:"post",params:{transferType:"WITHDRAW",amount:e,cryptoCurrency:r,cryptoNetwork:n,targetAddress:i}})},c={getUserInfo:()=>({url:"self",method:"get"}),modifyUserInfo:t=>({url:"self",method:"post",params:t}),changePassword:t=>({url:"settings/password",method:"post",params:t}),setPreference:({defaultCategory:t})=>({url:"settings/preference",method:"post",params:{defaultCategory:t}}),resetOtp:({requestId:t,number:e})=>({url:"reset",method:"post",params:{requestId:t,number:e}}),getAffiliate:()=>({url:"affiliate",method:"get"}),postAffiliate:({affiliateCode:t})=>({url:"affiliate",method:"post",params:{affiliateCode:t}}),passwordRecovery:t=>({url:"recovery",method:"post",params:t,isPublic:!0}),passwordAbandon:({number:t})=>({url:"recovery/abandon",method:"post",params:{number:t},isPublic:!0}),passwordAcknowledge:t=>({url:"recovery/acknowledge",method:"post",params:t,isPublic:!0}),verify:()=>({url:"verify",method:"post"}),acknowledge:({requestId:t,code:e})=>({url:"acknowledge",method:"post",params:{requestId:t,code:e}})},u={activity:t,auth:e,core:i,game:o,mailbox:a,payment:s,user:c};var l=function(){return l=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},l.apply(this,arguments)};function d(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function p(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function y(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t}var g={},h="xstate.guard";function v(t){return Object.keys(t)}function m(t,e,r){void 0===r&&(r=".");var n=S(t,r),i=S(e,r);return B(i)?!!B(n)&&i===n:B(n)?n in i:v(n).every((function(t){return t in i&&m(n[t],i[t])}))}function w(t){try{return B(t)||"number"==typeof t?""+t:t.type}catch(t){throw new Error("Events must be strings or objects with a string event.type property.")}}function b(t,e){try{return U(t)?t:t.toString().split(e)}catch(e){throw new Error("'"+t+"' is not a valid state path.")}}function S(t,e){return"object"==typeof(r=t)&&"value"in r&&"context"in r&&"event"in r&&"_event"in r?t.value:U(t)?x(t):"string"!=typeof t?t:x(b(t,e));var r}function x(t){if(1===t.length)return t[0];for(var e={},r=e,n=0;n<t.length-1;n++)n===t.length-2?r[t[n]]=t[n+1]:(r[t[n]]={},r=r[t[n]]);return e}function _(t,e){for(var r={},n=v(t),i=0;i<n.length;i++){var o=n[i];r[o]=e(t[o],o,t,i)}return r}function E(t,e,r){var n,i,o={};try{for(var a=p(v(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];r(u)&&(o[c]=e(u,c,t))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o}var k=function(t){return function(e){var r,n,i=e;try{for(var o=p(t),a=o.next();!a.done;a=o.next())i=i[a.value]}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i}};function A(t){return t?B(t)?[[t]]:T(v(t).map((function(e){var r=t[e];return"string"==typeof r||r&&Object.keys(r).length?A(t[e]).map((function(t){return[e].concat(t)})):[[e]]}))):[[]]}function T(t){var e;return(e=[]).concat.apply(e,y([],f(t)))}function O(t){return U(t)?t:[t]}function I(t){return void 0===t?[]:O(t)}function N(t,e,r){var n,i;if(F(t))return t(e,r.data);var o={};try{for(var a=p(Object.keys(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];F(u)?o[c]=u(e,r.data):o[c]=u}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o}function R(t,e){var r,n,i=f([[],[]],2),o=i[0],a=i[1];try{for(var s=p(t),c=s.next();!c.done;c=s.next()){var u=c.value;e(u)?o.push(u):a.push(u)}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return[o,a]}function C(t,e){return _(t.states,(function(t,r){if(t){var n=(B(e)?void 0:e[r])||(t?t.current:void 0);if(n)return{current:n,states:C(t,n)}}}))}function D(t,e,r,n){return t?r.reduce((function(t,r){var i,o,a=r.assignment,s={state:n,action:r,_event:e},c={};if(F(a))c=a(t,e.data,s);else try{for(var u=p(v(a)),l=u.next();!l.done;l=u.next()){var d=l.value,f=a[d];c[d]=F(f)?f(t,e.data,s):f}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return Object.assign({},t,c)}),t):t}var j,P,L,M;function U(t){return Array.isArray(t)}function F(t){return"function"==typeof t}function B(t){return"string"==typeof t}function G(t,e){if(t)return B(t)?{type:h,name:t,predicate:e?e[t]:void 0}:F(t)?{type:h,name:t.name,predicate:t}:t}function V(t){try{return"__xstatenode"in t}catch(t){return!1}}function W(t,e){return B(t)||"number"==typeof t?l({type:t},e):t}function q(t,e){if(!B(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var r=W(t);return l({name:r.type,data:r,$$type:"scxml",type:"external"},e)}function H(t,e){return O(e).map((function(e){return void 0===e||"string"==typeof e||V(e)?{target:e,event:t}:l(l({},e),{event:t})}))}function z(t,e,r,n,i){var o=t.options.guards,a={state:i,cond:e,_event:n};if(e.type===h)return((null==o?void 0:o[e.name])||e.predicate)(r,n.data,a);var s=o[e.type];if(!s)throw new Error("Guard '"+e.type+"' is not implemented on machine '"+t.id+"'.");return s(r,n.data,a)}(M=j||(j={})).Start="xstate.start",M.Stop="xstate.stop",M.Raise="xstate.raise",M.Send="xstate.send",M.Cancel="xstate.cancel",M.NullEvent="",M.Assign="xstate.assign",M.After="xstate.after",M.DoneState="done.state",M.DoneInvoke="done.invoke",M.Log="xstate.log",M.Init="xstate.init",M.Invoke="xstate.invoke",M.ErrorExecution="error.execution",M.ErrorCommunication="error.communication",M.ErrorPlatform="error.platform",M.ErrorCustom="xstate.error",M.Update="xstate.update",M.Pure="xstate.pure",M.Choose="xstate.choose",(L=P||(P={})).Parent="#_parent",L.Internal="#_internal";var $=function(t){return"atomic"===t.type||"final"===t.type};function Y(t){return v(t.states).map((function(e){return t.states[e]}))}function K(t){var e=[t];return $(t)?e:e.concat(T(Y(t).map(K)))}function J(t,e){var r,n,i,o,a,s,c,u,l=X(new Set(t)),d=new Set(e);try{for(var f=p(d),y=f.next();!y.done;y=f.next())for(var g=(E=y.value).parent;g&&!d.has(g);)d.add(g),g=g.parent}catch(t){r={error:t}}finally{try{y&&!y.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}var h=X(d);try{for(var v=p(d),m=v.next();!m.done;m=v.next())if("compound"!==(E=m.value).type||h.get(E)&&h.get(E).length){if("parallel"===E.type)try{for(var w=(a=void 0,p(Y(E))),b=w.next();!b.done;b=w.next()){var S=b.value;"history"!==S.type&&(d.has(S)||(d.add(S),l.get(S)?l.get(S).forEach((function(t){return d.add(t)})):S.initialStateNodes.forEach((function(t){return d.add(t)}))))}}catch(t){a={error:t}}finally{try{b&&!b.done&&(s=w.return)&&s.call(w)}finally{if(a)throw a.error}}}else l.get(E)?l.get(E).forEach((function(t){return d.add(t)})):E.initialStateNodes.forEach((function(t){return d.add(t)}))}catch(t){i={error:t}}finally{try{m&&!m.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}try{for(var x=p(d),_=x.next();!_.done;_=x.next()){var E;for(g=(E=_.value).parent;g&&!d.has(g);)d.add(g),g=g.parent}}catch(t){c={error:t}}finally{try{_&&!_.done&&(u=x.return)&&u.call(x)}finally{if(c)throw c.error}}return d}function Q(t,e){var r=e.get(t);if(!r)return{};if("compound"===t.type){var n=r[0];if(!n)return{};if($(n))return n.key}var i={};return r.forEach((function(t){i[t.key]=Q(t,e)})),i}function X(t){var e,r,n=new Map;try{for(var i=p(t),o=i.next();!o.done;o=i.next()){var a=o.value;n.has(a)||n.set(a,[]),a.parent&&(n.has(a.parent)||n.set(a.parent,[]),n.get(a.parent).push(a))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n}function Z(t,e){return Q(t,X(J([t],e)))}function tt(t,e){return Array.isArray(t)?t.some((function(t){return t===e})):t instanceof Set&&t.has(e)}function et(t,e){return"compound"===e.type?Y(e).some((function(e){return"final"===e.type&&tt(t,e)})):"parallel"===e.type&&Y(e).every((function(e){return et(t,e)}))}var rt=j.Start,nt=j.Stop,it=j.Raise,ot=j.Send,at=j.Cancel,st=j.NullEvent,ct=j.Assign,ut=(j.After,j.DoneState,j.Log),lt=j.Init,dt=j.Invoke,pt=(j.ErrorExecution,j.ErrorPlatform,j.ErrorCustom,j.Update),ft=j.Choose,yt=j.Pure,gt=q({type:lt});function ht(t,e){return e&&e[t]||void 0}function vt(t,e){var r;if(B(t)||"number"==typeof t)r=F(n=ht(t,e))?{type:t,exec:n}:n||{type:t,exec:void 0};else if(F(t))r={type:t.name||t.toString(),exec:t};else{var n;if(F(n=ht(t.type,e)))r=l(l({},t),{exec:n});else if(n){var i=n.type||t.type;r=l(l(l({},n),t),{type:i})}else r=t}return r}var mt=function(t,e){return t?(U(t)?t:[t]).map((function(t){return vt(t,e)})):[]};function wt(t){var e=vt(t);return l(l({id:B(t)?t:e.id},e),{type:e.type})}function bt(t){return B(t)?{type:it,event:t}:St(t,{to:P.Internal})}function St(t,e){return{to:e?e.to:void 0,type:ot,event:F(t)?t:W(t),delay:e?e.delay:void 0,id:e&&void 0!==e.id?e.id:F(t)?t.name:w(t)}}var xt=function(t){return{type:ct,assignment:t}};function _t(t,e){var r=j.DoneState+"."+t;return{type:r,data:e,toString:function(){return r}}}function Et(t,e,r,n,i,o){void 0===o&&(o=!1);var a=f(o?[[],i]:R(i,(function(t){return t.type===ct})),2),s=a[0],c=a[1],u=s.length?D(r,n,s,e):r,d=o?[r]:void 0,p=T(c.map((function(r){var i;switch(r.type){case it:return{type:it,_event:q(r.event)};case ot:var a=function(t,e,r,n){var i,o={_event:r},a=q(F(t.event)?t.event(e,r.data,o):t.event);if(B(t.delay)){var s=n&&n[t.delay];i=F(s)?s(e,r.data,o):s}else i=F(t.delay)?t.delay(e,r.data,o):t.delay;var c=F(t.to)?t.to(e,r.data,o):t.to;return l(l({},t),{to:c,_event:a,event:a.data,delay:i})}(r,u,n,t.options.delays);return a;case ut:return function(t,e,r){return l(l({},t),{value:B(t.expr)?t.expr:t.expr(e,r.data,{_event:r})})}(r,u,n);case ft:if(!(g=null===(i=r.conds.find((function(r){var i=G(r.cond,t.options.guards);return!i||z(t,i,u,n,e)})))||void 0===i?void 0:i.actions))return[];var s=f(Et(t,e,u,n,mt(I(g),t.options.actions),o),2),c=s[0],p=s[1];return u=p,null==d||d.push(u),c;case yt:var g;if(!(g=r.get(u,n.data)))return[];var h=f(Et(t,e,u,n,mt(I(g),t.options.actions),o),2),v=h[0],m=h[1];return u=m,null==d||d.push(u),v;case nt:return function(t,e,r){var n=F(t.activity)?t.activity(e,r.data):t.activity,i="string"==typeof n?{id:n}:n;return{type:j.Stop,activity:i}}(r,u,n);case ct:u=D(u,n,[r],e),null==d||d.push(u);break;default:var w=vt(r,t.options.actions),b=w.exec;if(b&&d){var S=d.length-1;w=l(l({},w),{exec:function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];b.apply(void 0,y([d[S]],f(e)))}})}return w}})).filter((function(t){return!!t})));return[p,u]}function kt(t,e){if(t===e)return!0;if(void 0===t||void 0===e)return!1;if(B(t)||B(e))return t===e;var r=v(t),n=v(e);return r.length===n.length&&r.every((function(r){return kt(t[r],e[r])}))}var At=function(){function t(t){var e,r,n=this;this.actions=[],this.activities=g,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||g,this.meta=(void 0===(r=t.configuration)&&(r=[]),r.reduce((function(t,e){return void 0!==e.meta&&(t[e.id]=e.meta),t}),{})),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=null!==(e=Array.isArray(t.tags)?new Set(t.tags):t.tags)&&void 0!==e?e:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(t){return y([],f(new Set(T(y([],f(t.map((function(t){return t.ownEvents}))))))))}(n.configuration)}})}return t.from=function(e,r){return e instanceof t?e.context!==r?new t({value:e.value,context:r,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):e:new t({value:e,context:r,_event:gt,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(e){return new t(e)},t.inert=function(e,r){if(e instanceof t){if(!e.actions.length)return e;var n=gt;return new t({value:e.value,context:r,_event:n,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return t.from(e,r)},t.prototype.toStrings=function(t,e){var r=this;if(void 0===t&&(t=this.value),void 0===e&&(e="."),B(t))return[t];var n=v(t);return n.concat.apply(n,y([],f(n.map((function(n){return r.toStrings(t[n],e).map((function(t){return n+e+t}))})))))},t.prototype.toJSON=function(){var t=this,e=(t.configuration,t.transitions,t.tags),r=(t.machine,d(t,["configuration","transitions","tags","machine"]));return l(l({},r),{tags:Array.from(e)})},t.prototype.matches=function(t){return m(t,this.value)},t.prototype.hasTag=function(t){return this.tags.has(t)},t.prototype.can=function(t){var e;return this.machine,!!(null===(e=this.machine)||void 0===e?void 0:e.transition(this,t).changed)},t}(),Tt=[];function Ot(t){return{id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:t}}}}function It(t,e,r,n){var i,o,a="string"==typeof(o=t.src)?{type:o}:o,s=null===(i=null==e?void 0:e.options.services)||void 0===i?void 0:i[a.type],c=t.data?N(t.data,r,n):void 0,u=s?function(t,e,r){var n=Ot(e);if(n.deferred=!0,V(t)){var i=n.state=function(e,n){Tt.push(e);var i=(r?t.withContext(r):t).initialState;return Tt.pop(),i}(void 0);n.getSnapshot=function(){return i}}return n}(s,t.id,c):Ot(t.id);return u.meta=t,u}function Nt(t){return l(l({type:dt},t),{toJSON:function(){t.onDone,t.onError;var e,r=d(t,["onDone","onError"]);return l(l({},r),{type:dt,src:(e=t.src,"string"==typeof e?{type:e,toString:function(){return e}}:e)})}})}var Rt={},Ct=function(t){return"#"===t[0]},Dt=function(){function t(e,r,n){var i,o=this;void 0===n&&(n="context"in e?e.context:void 0),this.config=e,this._context=n,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},r),this.parent=this.options._parent,this.key=this.config.key||this.options._key||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||y([this.machine.key],f(this.path)).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&v(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(i=this.config.schema)&&void 0!==i?i:{},this.initial=this.config.initial,this.states=this.config.states?_(this.config.states,(function(e,r){var n,i=new t(e,{_parent:o,_key:r});return Object.assign(o.idMap,l(((n={})[i.id]=i,n),i.idMap)),i})):Rt;var a=0;!function t(e){var r,n;e.order=a++;try{for(var i=p(Y(e)),o=i.next();!o.done;o=i.next())t(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(t){return""===t.event})):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=I(this.config.entry||this.config.onEntry).map((function(t){return vt(t)})),this.onExit=I(this.config.exit||this.config.onExit).map((function(t){return vt(t)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=I(this.config.invoke).map((function(t,e){var r,n;if(V(t))return o.machine.options.services=l(((r={})[t.id]=t,r),o.machine.options.services),Nt({src:t.id,id:t.id});if(B(t.src))return Nt(l(l({},t),{id:t.id||t.src,src:t.src}));if(V(t.src)||F(t.src)){var i=o.id+":invocation["+e+"]";return o.machine.options.services=l(((n={})[i]=t.src,n),o.machine.options.services),Nt(l(l({id:i},t),{src:i}))}var a=t.src;return Nt(l(l({id:a.type},t),{src:a}))})),this.activities=I(this.config.activities).concat(this.invoke).map((function(t){return wt(t)})),this.transition=this.transition.bind(this),this.tags=I(this.config.tags)}return t.prototype._init=function(){this.__cache.transitions||K(this).forEach((function(t){return t.on}))},t.prototype.withConfig=function(e,r){var n=this.options,i=n.actions,o=n.activities,a=n.guards,s=n.services,c=n.delays;return new t(this.config,{actions:l(l({},i),e.actions),activities:l(l({},o),e.activities),guards:l(l({},a),e.guards),services:l(l({},s),e.services),delays:l(l({},c),e.delays)},null!=r?r:this.context)},t.prototype.withContext=function(e){return new t(this.config,this.options,e)},Object.defineProperty(t.prototype,"context",{get:function(){return F(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:_(this.states,(function(t){return t.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce((function(t,e){return t[e.eventType]=t[e.eventType]||[],t[e.eventType].push(e),t}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var e=""===t,r=this.transitions.filter((function(r){var n=r.eventType===t;return e?n:n||"*"===r.eventType}));return this.__cache.candidates[t]=r,r},t.prototype.getDelayedTransitions=function(){var t=this,e=this.config.after;if(!e)return[];var r=function(e,r){var n,i,o,a=(n=F(e)?t.id+":delay["+r+"]":e,i=t.id,o=i?"#"+i:"",j.After+"("+n+")"+o);return t.onEntry.push(St(a,{delay:e})),t.onExit.push({type:at,sendId:a}),a};return(U(e)?e.map((function(t,e){var n=r(t.delay,e);return l(l({},t),{event:n})})):T(v(e).map((function(t,n){var i=e[t],o=B(i)?{target:i}:i,a=isNaN(+t)?t:+t,s=r(a,n);return I(o).map((function(t){return l(l({},t),{event:s,delay:a})}))})))).map((function(e){var r=e.delay;return l(l({},t.formatTransition(e)),{delay:r})}))},t.prototype.getStateNodes=function(t){var e,r=this;if(!t)return[];var n=t instanceof At?t.value:S(t,this.delimiter);if(B(n)){var i=this.getStateNode(n).initial;return void 0!==i?this.getStateNodes(((e={})[n]=i,e)):[this,this.states[n]]}var o=v(n),a=o.map((function(t){return r.getStateNode(t)}));return a.push(this),a.concat(o.reduce((function(t,e){var i=r.getStateNode(e).getStateNodes(n[e]);return t.concat(i)}),[]))},t.prototype.handles=function(t){var e=w(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=Array.from(J([],this.getStateNodes(t.value)));return new At(l(l({},t),{value:this.resolve(t.value),configuration:e,done:et(e,this)}))},t.prototype.transitionLeafNode=function(t,e,r){var n=this.getStateNode(t).next(e,r);return n&&n.transitions.length?n:this.next(e,r)},t.prototype.transitionCompoundNode=function(t,e,r){var n=v(t),i=this.getStateNode(n[0])._transition(t[n[0]],e,r);return i&&i.transitions.length?i:this.next(e,r)},t.prototype.transitionParallelNode=function(t,e,r){var n,i,o={};try{for(var a=p(v(t)),s=a.next();!s.done;s=a.next()){var c=s.value,u=t[c];if(u){var l=this.getStateNode(c)._transition(u,e,r);l&&(o[c]=l)}}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}var d=v(o).map((function(t){return o[t]})),f=T(d.map((function(t){return t.transitions})));if(!d.some((function(t){return t.transitions.length>0})))return this.next(e,r);var y=T(d.map((function(t){return t.entrySet}))),g=T(v(o).map((function(t){return o[t].configuration})));return{transitions:f,entrySet:y,exitSet:T(d.map((function(t){return t.exitSet}))),configuration:g,source:e,actions:T(v(o).map((function(t){return o[t].actions})))}},t.prototype._transition=function(t,e,r){return B(t)?this.transitionLeafNode(t,e,r):1===v(t).length?this.transitionCompoundNode(t,e,r):this.transitionParallelNode(t,e,r)},t.prototype.next=function(t,e){var r,n,i,o=this,a=e.name,s=[],c=[];try{for(var u=p(this.getCandidates(a)),l=u.next();!l.done;l=u.next()){var d=l.value,g=d.cond,h=d.in,v=t.context,w=!h||(B(h)&&Ct(h)?t.matches(S(this.getStateNodeById(h).path,this.delimiter)):m(S(h,this.delimiter),k(this.path.slice(0,-2))(t.value))),b=!1;try{b=!g||z(this.machine,g,v,e,t)}catch(t){throw new Error("Unable to evaluate guard '"+(g.name||g.type)+"' in transition for event '"+a+"' in state node '"+this.id+"':\n"+t.message)}if(b&&w){void 0!==d.target&&(c=d.target),s.push.apply(s,y([],f(d.actions))),i=d;break}}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}if(i){if(!c.length)return{transitions:[i],entrySet:[],exitSet:[],configuration:t.value?[this]:[],source:t,actions:s};var x=T(c.map((function(e){return o.getRelativeStateNodes(e,t.historyValue)}))),_=!!i.internal;return{transitions:[i],entrySet:_?[]:T(x.map((function(t){return o.nodesFromChild(t)}))),exitSet:_?[]:[this],configuration:x,source:t,actions:s}}},t.prototype.nodesFromChild=function(t){if(t.escapes(this))return[];for(var e=[],r=t;r&&r!==this;)e.push(r),r=r.parent;return e.push(this),e},t.prototype.escapes=function(t){if(this===t)return!1;for(var e=this.parent;e;){if(e===t)return!1;e=e.parent}return!0},t.prototype.getActions=function(t,e,r,n){var i,o,a,s,c=J([],n?this.getStateNodes(n.value):[this]),u=t.configuration.length?J(c,t.configuration):c;try{for(var l=p(u),d=l.next();!d.done;d=l.next())tt(c,v=d.value)||t.entrySet.push(v)}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}try{for(var g=p(c),h=g.next();!h.done;h=g.next()){var v;tt(u,v=h.value)&&!tt(t.exitSet,v.parent)||t.exitSet.push(v)}}catch(t){a={error:t}}finally{try{h&&!h.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}t.source||(t.exitSet=[],t.entrySet.push(this));var m=T(t.entrySet.map((function(n){var i=[];if("final"!==n.type)return i;var o=n.parent;if(!o.parent)return i;i.push(_t(n.id,n.doneData),_t(o.id,n.doneData?N(n.doneData,e,r):void 0));var a=o.parent;return"parallel"===a.type&&Y(a).every((function(e){return et(t.configuration,e)}))&&i.push(_t(a.id)),i})));t.exitSet.sort((function(t,e){return e.order-t.order})),t.entrySet.sort((function(t,e){return t.order-e.order}));var w=new Set(t.entrySet),b=new Set(t.exitSet),S=f([T(Array.from(w).map((function(t){return y(y([],f(t.activities.map((function(t){return function(t){var e=wt(t);return{type:j.Start,activity:e,exec:void 0}}(t)})))),f(t.onEntry))}))).concat(m.map(bt)),T(Array.from(b).map((function(t){return y(y([],f(t.onExit)),f(t.activities.map((function(t){return function(t){var e=F(t)?t:wt(t);return{type:j.Stop,activity:e,exec:void 0}}(t)}))))})))],2),x=S[0],_=S[1];return mt(_.concat(t.actions).concat(x),this.machine.options.actions)},t.prototype.transition=function(t,e,r){void 0===t&&(t=this.initialState);var n,i,o=q(e);if(t instanceof At)n=void 0===r?t:this.resolveState(At.from(t,r));else{var a=B(t)?this.resolve(x(this.getResolvedPath(t))):this.resolve(t),s=null!=r?r:this.machine.context;n=this.resolveState(At.from(a,s))}if(this.strict&&!this.events.includes(o.name)&&(i=o.name,!/^(done|error)\./.test(i)))throw new Error("Machine '"+this.id+"' does not accept event '"+o.name+"'");var c=this._transition(n.value,n,o)||{transitions:[],configuration:[],entrySet:[],exitSet:[],source:n,actions:[]},u=J([],this.getStateNodes(n.value)),l=c.configuration.length?J(u,c.configuration):u;return c.configuration=y([],f(l)),this.resolveTransition(c,n,o)},t.prototype.resolveRaisedTransition=function(t,e,r){var n,i=t.actions;return(t=this.transition(t,e))._event=r,t.event=r.data,(n=t.actions).unshift.apply(n,y([],f(i))),t},t.prototype.resolveTransition=function(t,e,r,n){var i,o,a=this;void 0===r&&(r=gt),void 0===n&&(n=this.machine.context);var s=t.configuration,c=!e||t.transitions.length>0,u=c?Z(this.machine,s):void 0,d=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,y=e?e.context:n,g=this.getActions(t,y,r,e),h=e?l({},e.activities):{};try{for(var v=p(g),m=v.next();!m.done;m=v.next()){var w=m.value;w.type===rt?h[w.activity.id||w.activity.type]=w:w.type===nt&&(h[w.activity.id||w.activity.type]=!1)}}catch(t){i={error:t}}finally{try{m&&!m.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}var b,S,x=f(Et(this,e,y,r,g,this.machine.config.preserveActionOrder),2),_=x[0],E=x[1],k=f(R(_,(function(t){return t.type===it||t.type===ot&&t.to===P.Internal})),2),A=k[0],O=k[1],I=_.filter((function(t){var e;return t.type===rt&&(null===(e=t.activity)||void 0===e?void 0:e.type)===dt})),N=I.reduce((function(t,e){return t[e.activity.id]=It(e.activity,a.machine,E,r),t}),e?l({},e.children):{}),D=u?t.configuration:e?e.configuration:[],j=et(D,this),L=new At({value:u||e.value,context:E,_event:r,_sessionid:e?e._sessionid:null,historyValue:u?d?(b=d,S=u,{current:S,states:C(b,S)}):void 0:e?e.historyValue:void 0,history:!u||t.source?e:void 0,actions:u?O:[],activities:u?h:e?e.activities:{},events:[],configuration:D,transitions:t.transitions,children:N,done:j,tags:null==e?void 0:e.tags,machine:this}),M=y!==E;L.changed=r.name===pt||M;var U=L.history;U&&delete U.history;var F=!j&&(this._transient||s.some((function(t){return t._transient})));if(!(c||F&&""!==r.name))return L;var B=L;if(!j)for(F&&(B=this.resolveRaisedTransition(B,{type:st},r));A.length;){var G=A.shift();B=this.resolveRaisedTransition(B,G._event,r)}var V=B.changed||(U?!!B.actions.length||M||typeof U.value!=typeof B.value||!kt(B.value,U.value):void 0);return B.changed=V,B.history=U,B.tags=new Set(T(B.configuration.map((function(t){return t.tags})))),B},t.prototype.getStateNode=function(t){if(Ct(t))return this.machine.getStateNodeById(t);if(!this.states)throw new Error("Unable to retrieve child state '"+t+"' from '"+this.id+"'; no child states exist.");var e=this.states[t];if(!e)throw new Error("Child state '"+t+"' does not exist on '"+this.id+"'");return e},t.prototype.getStateNodeById=function(t){var e=Ct(t)?t.slice("#".length):t;if(e===this.id)return this;var r=this.machine.idMap[e];if(!r)throw new Error("Child state node '#"+e+"' does not exist on machine '"+this.id+"'");return r},t.prototype.getStateNodeByPath=function(t){if("string"==typeof t&&Ct(t))try{return this.getStateNodeById(t.slice(1))}catch(t){}for(var e=b(t,this.delimiter).slice(),r=this;e.length;){var n=e.shift();if(!n.length)break;r=r.getStateNode(n)}return r},t.prototype.resolve=function(t){var e,r=this;if(!t)return this.initialStateValue||Rt;switch(this.type){case"parallel":return _(this.initialStateValue,(function(e,n){return e?r.getStateNode(n).resolve(t[n]||e):Rt}));case"compound":if(B(t)){var n=this.getStateNode(t);return"parallel"===n.type||"compound"===n.type?((e={})[t]=n.initialStateValue,e):t}return v(t).length?_(t,(function(t,e){return t?r.getStateNode(e).resolve(t):Rt})):this.initialStateValue||{};default:return t||Rt}},t.prototype.getResolvedPath=function(t){if(Ct(t)){var e=this.machine.idMap[t.slice("#".length)];if(!e)throw new Error("Unable to find state node '"+t+"'");return e.path}return b(t,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var t,e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)e=E(this.states,(function(t){return t.initialStateValue||Rt}),(function(t){return!("history"===t.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '"+this.initial+"' not found on '"+this.key+"'");e=$(this.states[this.initial])?this.initial:((t={})[this.initial]=this.states[this.initial].initialStateValue,t)}else e={};return this.__cache.initialStateValue=e,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(t,e){var r=this.getStateNodes(t);return this.resolveTransition({configuration:r,entrySet:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,void 0,e)},Object.defineProperty(t.prototype,"initialState",{get:function(){this._init();var t=this.initialStateValue;if(!t)throw new Error("Cannot retrieve initial state from simple state '"+this.id+"'.");return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var t;if("history"===this.type){var e=this.config;t=B(e.target)&&Ct(e.target)?x(this.machine.getStateNodeById(e.target).path.slice(this.path.length-1)):e.target}return t},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(t,e,r){return void 0===r&&(r=!0),r?"history"===t.type?t.resolveHistory(e):t.initialStateNodes:[t]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var t=this;return $(this)?[this]:"compound"!==this.type||this.initial?T(A(this.initialStateValue).map((function(e){return t.getFromRelativePath(e)}))):[this]},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var e=f(t),r=e[0],n=e.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '"+r+"' from node with no states");var i=this.getStateNode(r);if("history"===i.type)return i.resolveHistory();if(!this.states[r])throw new Error("Child state '"+r+"' does not exist on '"+this.id+"'");return this.states[r].getFromRelativePath(n)},t.prototype.historyValue=function(t){if(v(this.states).length)return{current:t||this.initialStateValue,states:E(this.states,(function(e,r){if(!t)return e.historyValue();var n=B(t)?void 0:t[r];return e.historyValue(n||e.initialStateValue)}),(function(t){return!t.history}))}},t.prototype.resolveHistory=function(t){var e=this;if("history"!==this.type)return[this];var r=this.parent;if(!t){var n=this.target;return n?T(A(n).map((function(t){return r.getFromRelativePath(t)}))):r.initialStateNodes}var i,o=(i=r.path,"states",function(t){var e,r,n=t;try{for(var o=p(i),a=o.next();!a.done;a=o.next()){var s=a.value;n=n.states[s]}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n})(t).current;return B(o)?[r.getStateNode(o)]:T(A(o).map((function(t){return"deep"===e.history?r.getFromRelativePath(t):[r.states[t[0]]]})))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var t=this,e=T(v(this.states).map((function(e){return t.states[e].stateIds})));return[this.id].concat(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var t,e,r,n;if(this.__cache.events)return this.__cache.events;var i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=p(v(i)),s=a.next();!s.done;s=a.next()){var c=i[s.value];if(c.states)try{for(var u=(r=void 0,p(c.events)),l=u.next();!l.done;l=u.next()){var d=l.value;o.add(""+d)}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var t=new Set(this.transitions.filter((function(t){return!(!t.target&&!t.actions.length&&t.internal)})).map((function(t){return t.eventType})));return Array.from(t)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(t){var e=this;if(void 0!==t)return t.map((function(t){if(!B(t))return t;var r=t[0]===e.delimiter;if(r&&!e.parent)return e.getStateNodeByPath(t.slice(1));var n=r?e.key+t:t;if(!e.parent)return e.getStateNodeByPath(n);try{return e.parent.getStateNodeByPath(n)}catch(t){throw new Error("Invalid transition definition for state node '"+e.id+"':\n"+t.message)}}))},t.prototype.formatTransition=function(t){var e=this,r=function(t){if(void 0!==t&&""!==t)return I(t)}(t.target),n="internal"in t?t.internal:!r||r.some((function(t){return B(t)&&t[0]===e.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(r),a=l(l({},t),{actions:mt(I(t.actions)),cond:G(t.cond,i),target:o,source:this,internal:n,eventType:t.event,toJSON:function(){return l(l({},a),{target:a.target?a.target.map((function(t){return"#"+t.id})):void 0,source:"#"+e.id})}});return a},t.prototype.formatTransitions=function(){var t,e,r,n=this;if(this.config.on)if(Array.isArray(this.config.on))r=this.config.on;else{var i=this.config.on,o=i["*"],a=void 0===o?[]:o,s=d(i,["*"]);r=T(v(s).map((function(t){return H(t,s[t])})).concat(H("*",a)))}else r=[];var c=this.config.always?H("",this.config.always):[],u=this.config.onDone?H(String(_t(this.id)),this.config.onDone):[],l=T(this.invoke.map((function(t){var e,r,n=[];return t.onDone&&n.push.apply(n,y([],f(H(String((e=t.id,{type:r=j.DoneInvoke+"."+e,data:undefined,toString:function(){return r}})),t.onDone)))),t.onError&&n.push.apply(n,y([],f(H(String(function(t,e){var r=j.ErrorPlatform+"."+t;return{type:r,data:void 0,toString:function(){return r}}}(t.id)),t.onError)))),n}))),g=this.after,h=T(y(y(y(y([],f(u)),f(l)),f(r)),f(c)).map((function(t){return I(t).map((function(t){return n.formatTransition(t)}))})));try{for(var m=p(g),w=m.next();!w.done;w=m.next()){var b=w.value;h.push(b)}}catch(e){t={error:e}}finally{try{w&&!w.done&&(e=m.return)&&e.call(m)}finally{if(t)throw t.error}}return h},t}();function jt(t,e){return new Dt(t,e)}const Pt={continue_deposit_activity:function(e){const{appSecret:r}=e.config;return jt({id:"continue_deposit_activity",context:{activityNo:null,activityDetail:null,stages:[],currentStage:{},receiveNo:null,rewardType:""},initial:"idle",states:{idle:{on:{SET_ACTIVITY_NO:{target:"loading",actions:"setActivityNo"}}},loading:{invoke:{src:"fetchActivityDetail",onDone:{target:"loaded",actions:["setActivityDetail","setProperties","setReceiveNo"]},onError:{target:"idle"}}},loaded:{always:[{target:"receivable",cond:"isReceivable"},{target:"received",cond:"isReceived"}]},receivable:{on:{RECEIVE_REWARD:{target:"receiving"}}},receiving:{invoke:{src:"receiveReward",onDone:{target:"animating"},onError:{target:"loading"}}},animating:{after:{0:{target:"received"}}},received:{}}},{actions:{setActivityNo:xt(((t,e)=>({activityNo:e.data}))),setActivityDetail:xt(((t,e)=>({activityDetail:e.data}))),setProperties:xt(((t,e)=>{const{dayOfThePeriod:r,progress:n,policy:i}=e.data,o=r-1,a=n.map(((t,e)=>({...t,deposit:t.achieve?t.target:Math.floor(t.deposit),percentage:t.achieve?100:Math.floor(t.deposit/t.target*100),day:e+1})));return{currentStage:a[o],stages:a,rewardType:i}})),setReceiveNo:xt(((t,e)=>({receiveNo:e.data.receiveNo})))},guards:{isReceivable:(t,e)=>{const{receiveNo:r,receiveStatus:n}=t.activityDetail;return r&&2===n},isReceived:(t,e)=>{const{receiveStatus:r}=t.activityDetail;return 1===r}},services:{fetchActivityDetail:async(n,i)=>{const{activityNo:o}=n,{data:a}=await e.send(t.getActivityDetail({activityNo:o,appSecret:r}));return a},receiveReward:async(n,i)=>{const{activityNo:o,receiveNo:a}=n,{data:s}=await e.send(t.getReward({activityNo:o,receiveNo:a,appSecret:r}));return s}}})},deposit_activity:function(e){const{appSecret:r}=e.config;return jt({id:"deposit_activity",context:{activityNo:null,activityDetail:null,duration:null},initial:"idle",states:{idle:{on:{SET_ACTIVITY_NO:{target:"loading",actions:"setActivityNo"}}},loading:{invoke:{src:"fetchActivityDetail",onDone:{target:"loaded",actions:"setActivityDetail"},onError:{target:"idle"}}},loaded:{entry:"setDuration",always:[{target:"expired",cond:"isNotAvailable"},{target:"expired",cond:"isExpired"}],after:{1e3:{target:"loaded"}}},expired:{}}},{actions:{setActivityNo:xt(((t,e)=>({activityNo:e.data}))),setActivityDetail:xt(((t,e)=>({activityDetail:e.data}))),setDuration:xt(((t,e)=>({duration:t?.activityDetail?.deadline-(new Date).getTime()/1e3})))},guards:{isExpired:(t,e)=>t.duration<=0,isNotAvailable:(t,e)=>1!==t?.activityDetail?.achieveStatus},services:{fetchActivityDetail:async(n,i)=>{const{activityNo:o}=n,{data:a}=await e.send(t.getActivityDetail({activityNo:o,appSecret:r}));return a}}})},diamond_shop_activity:function(e){const{appSecret:r}=e.config;return jt({id:"diamond_shop_activity",context:{activityNo:null,activityDetail:null,awards:[],awardExchangeList:[],exchangeAward:0,exchangePoint:0},initial:"idle",states:{idle:{on:{SET_ACTIVITY_NO:{target:"loading",actions:"setActivityNo"}}},loading:{invoke:{src:"fetchActivityDetail",onDone:{target:"loaded",actions:["setActivityDetail","setAwardList"]},onError:{target:"idle"}}},loaded:{on:{EXCHANGE:{target:"exchanging"},ADD_TO_CART:{actions:["addProduct","count"]},CLEAR_CART:{actions:["clearCart","count"]},COLLECT:{target:"collecting",cond:"hasUnclaimedReward"}}},exchanging:{invoke:{src:"exchange",onDone:{target:"collecting",actions:["clearCart","count"]},onError:{target:"loaded"}}},collecting:{invoke:{src:"collect",onDone:{target:"collected"},onError:{target:"collected"}}},collected:{after:{0:{target:"loaded"}}}}},{actions:{setActivityNo:xt(((t,e)=>({activityNo:e.data}))),setActivityDetail:xt(((t,e)=>({activityDetail:e.data}))),setAwardList:xt(((t,e)=>({awardList:e.data?.awards||[]}))),addProduct:xt(((t,e)=>({awardExchangeList:[...t.awardExchangeList,e.data]}))),clearCart:xt(((t,e)=>({awardExchangeList:[]}))),count:xt(((t,e)=>{const{awardExchangeList:r}=t,{exchangeAward:n,exchangePoint:i}=r.reduce((({exchangeAward:t,exchangePoint:e},r)=>({exchangeAward:t+r.award,exchangePoint:e+r.points})),{exchangeAward:0,exchangePoint:0});return{exchangeAward:n,exchangePoint:i}}))},guards:{hasUnclaimedReward:(t,e)=>t.activityDetail?.unclaimedReward?.length>0},services:{fetchActivityDetail:async(n,i)=>{const{activityNo:o}=n,{data:a}=await e.send(t.getActivityDetail({activityNo:o,appSecret:r}));return a},exchange:async(r,n)=>{const{activityNo:i,awardExchangeList:o}=r;return await Promise.all(o.map((r=>e.send(t.exchange({exchangeType:1,activityNo:i,exchangeAward:r.award})))))},collect:async(n,i)=>await e.send(t.collect({appSecret:r}))}})},fafafa_activity:function(e){const{appSecret:r}=e.config;return jt({id:"fafafa_activity",context:{activityNo:null,activityDetail:null,receiveNo:null},initial:"idle",states:{idle:{on:{SET_ACTIVITY_NO:{target:"loading",actions:"setActivityNo"}}},loading:{invoke:{src:"fetchActivityDetail",onDone:{target:"loaded",actions:"setActivityDetail"},onError:{target:"idle"}}},loaded:{always:[{target:"awardable",cond:"isAwardable"}],on:{REFRESH_ACTIVITY:{target:"loading"}}},awardable:{on:{AWARD_PRIZE:{target:"awarding"}}},awarding:{invoke:{src:"awardPrize",onDone:{target:"receiving",actions:"setReceiveNo"},onError:{target:"loaded"}}},receiving:{invoke:{src:"receiveReward",onDone:{target:"animating"},onError:{target:"loading"}}},animating:{after:{0:{target:"loading"}}}},on:{CLEAR_ACTIVITY_NO:{target:".idle"}}},{actions:{setActivityNo:xt(((t,e)=>({activityNo:e.data}))),setActivityDetail:xt(((t,e)=>({activityDetail:e.data}))),setReceiveNo:xt(((t,e)=>({receiveNo:e.data.receiveNo})))},guards:{isAwardable:(t,e)=>2===t.activityDetail?.receiveStatus},services:{fetchActivityDetail:async(n,i)=>{const{activityNo:o}=n,{data:a}=await e.send(t.getActivityDetail({activityNo:o,appSecret:r}));return a},awardPrize:async(n,i)=>{const{activityNo:o}=n,{data:a}=await e.send(t.sentAward({activityNo:o,appSecret:r}));return a},receiveReward:async(n,i)=>{const{activityNo:o,receiveNo:a}=n,{data:s}=await e.send(t.getReward({activityNo:o,receiveNo:a,appSecret:r}));return s}}})},invite_friends_activity:function(e){const{appSecret:r}=e.config;return jt({id:"invite_friends_activity",context:{activityNo:null,bindingCode:null,uidSite:null,receiveNo:null,affiliateCode:null,downlineCount:0},initial:"idle",states:{idle:{on:{FETCH_AFFILIATE_CODE:{target:"fetching"},BIND_AFFILIATE_CODE:{target:"binding",actions:["setActivityNo","setBindingCode","setUidSite"]}}},fetching:{invoke:{src:"fetchAffiliate",onDone:{target:"idle",actions:"setAffiliateCode"},onError:{target:"idle"}}},binding:{invoke:{src:"postAffiliate",onDone:{target:"awarding"},onError:{target:"idle"}}},awarding:{invoke:{src:"awardPrize",onDone:{target:"bound"},onError:{target:"idle"}}},bound:{after:{0:{target:"idle"}}}}},{actions:{setAffiliateCode:xt(((t,e)=>{const{affiliateCode:r,downlineCount:n}=e.data;return{affiliateCode:r,downlineCount:n}})),setBindingCode:xt(((t,e)=>({bindingCode:e.data.bindingCode}))),setActivityNo:xt(((t,e)=>({activityNo:e.data.activityNo}))),setUidSite:xt(((t,e)=>({uidSite:e.data.uidSite})))},services:{postAffiliate:async(t,r)=>await e.send(c.postAffiliate({affiliateCode:t.bindingCode})),fetchAffiliate:async(t,r)=>await e.send(c.getAffiliate()),awardPrize:async(n,i)=>{const{activityNo:o,uidSite:a,bindingCode:s}=n,{data:c}=await e.send(t.sentAward({activityNo:o,uidSite:a,affiliateCode:s,appSecret:r}));return c}}})},ranking_activity:function(e){const{appSecret:r}=e.config;return jt({id:"ranking_activity",context:{activityNo:null,activityDetail:null,activityMap:{}},initial:"idle",states:{idle:{on:{SET_ACTIVITY_NO:{target:"checking",actions:"setActivityNo"}}},checking:{always:[{target:"idle",actions:"setActivityDetail",cond:"isExist"},{target:"loading"}]},loading:{invoke:{src:"fetchActivityDetail",onDone:{target:"idle",actions:["setActivityMap","setActivityDetail"]},onError:{target:"idle"}}}}},{actions:{setActivityNo:xt(((t,e)=>({activityNo:e.data}))),setActivityMap:xt(((t,e)=>{const{activityMap:r,activityNo:n}=t;return{activityMap:{...r,[n]:e.data}}})),setActivityDetail:xt(((t,e)=>{const{activityMap:r,activityNo:n}=t;return{activityDetail:r[n]}}))},guards:{isExist:(t,e)=>{const{activityMap:r,activityNo:n}=t;return r[n]}},services:{fetchActivityDetail:async(n,i)=>{const{activityNo:o}=n,{data:a}=await e.send(t.getActivityDetail({activityNo:o,appSecret:r}));return a}}})},return_bonus_activity:function(e){const{appSecret:r}=e.config;return jt({id:"return_bonus_activity",context:{activityNo:null,activityDetail:null,receiveNo:null,rewardList:[]},initial:"idle",states:{idle:{on:{SET_ACTIVITY_NO:{target:"loading",actions:"setActivityNo"}}},loading:{initial:"detail",states:{detail:{invoke:{src:"fetchActivityDetail",onDone:{target:"rewardList",actions:"setActivityDetail"},onError:{target:"#return_bonus_activity.idle"}}},rewardList:{invoke:{src:"fetchRewardList",onDone:{target:"#return_bonus_activity.loaded",actions:"setRewardList"},onError:{target:"#return_bonus_activity.idle"}}}}},loaded:{always:[{target:"receivable",cond:"isReceivable"},{target:"notReceivableYet",cond:"isNotReceivableYet"},{target:"empty"}]},receivable:{on:{RECEIVE_REWARD:{target:"receiving"}}},notReceivableYet:{after:{2e4:{target:"loading"}}},empty:{after:{2e4:{target:"loading"}}},receiving:{invoke:{src:"receiveReward",onDone:{target:"animating"},onError:{target:"loading"}}},animating:{after:{0:{target:"loading"}}}},on:{CLEAR_ACTIVITY_NO:{target:".idle"}}},{actions:{setActivityNo:xt(((t,e)=>({activityNo:e.data}))),setActivityDetail:xt(((t,e)=>({activityDetail:e.data}))),setRewardList:xt(((t,e)=>({rewardList:e.data.filter((t=>4===t.activityType&&0===t.receiveStatus))})))},guards:{isReceivable:(t,e)=>t.rewardList?.length>0,isNotReceivableYet:(t,e)=>t.activityDetail?.rebateAmount},services:{fetchActivityDetail:async(n,i)=>{const{activityNo:o}=n,{data:a}=await e.send(t.getActivityDetail({activityNo:o,appSecret:r}));return a},receiveReward:async(n,i)=>{const{activityNo:o,receiveNo:a}=n.rewardList[0],{data:s}=await e.send(t.getReward({activityNo:o,receiveNo:a,appSecret:r}));return s},fetchRewardList:async(n,i)=>{const{data:o}=await e.send(t.getRewardList({appSecret:r,count:30}));return o}}})},specify_bets_activity:function(e){const{appSecret:r}=e.config;return jt({id:"specify_bets_activity",context:{activityNo:null,activityDetail:null,rewardType:null},initial:"idle",states:{idle:{on:{SET_ACTIVITY_NO:{target:"loading",actions:"setActivityNo"}}},loading:{invoke:{src:"fetchActivityDetail",onDone:{target:"loaded",actions:"setActivityDetail"},onError:{target:"idle"}}},loaded:{always:[{target:"ongoing",cond:"isOngoing"},{target:"received",cond:"isReceived"},{target:"receivable",cond:"isReceivable"}]},ongoing:{},received:{},receivable:{on:{RECEIVE_REWARD:{target:"receiving"}}},receiving:{invoke:{src:"receiveReward",onDone:{target:"animating",actions:"setRewardType"},onError:{target:"loaded"}}},animating:{after:{0:{target:"loading"}}}}},{actions:{setActivityNo:xt(((t,e)=>({activityNo:e.data}))),setActivityDetail:xt(((t,e)=>({activityDetail:e.data}))),setRewardType:xt(((t,e)=>({rewardType:e.data.type})))},guards:{isReceivable:(t,e)=>2===t.activityDetail?.receiveStatus,isReceived:(t,e)=>1===t.activityDetail?.receiveStatus,isOngoing:(t,e)=>0===t.activityDetail?.receiveStatus},services:{fetchActivityDetail:async(n,i)=>{const{activityNo:o}=n,{data:a}=await e.send(t.getActivityDetail({activityNo:o,appSecret:r}));return a},receiveReward:async(n,i)=>{const{activityNo:o,receiveNo:a}=n.activityDetail,{data:s}=await e.send(t.getReward({activityNo:o,receiveNo:a,appSecret:r}));return s}}})},activity:function(e){const{appSecret:r}=e.config;return jt({id:"activity",initial:"fetchingTimerDataList",context:{tick:2e3,activityList:[],activityMap:{},rewardList:[],tournamentList:[],refs:{}},states:{fetchingTimerDataList:{invoke:{src:"fetchTimerDataList",onDone:{target:"pending",actions:["setTimerDataList","setTournamentList"]},onError:{target:"pending"}}},pending:{after:{TIMEOUT:{target:"fetchingTimerDataList"}}}}},{actions:{setTournamentList:xt(((t,e)=>({tournamentList:e.data.activityList.filter((t=>1===t.tournament))}))),setTimerDataList:xt(((t,e)=>{const{activityList:r,rewardList:n}=e.data;return{activityList:r,rewardList:n}}))},delays:{TIMEOUT:(t,e)=>{const{tick:r}=t;return 10*r}},services:{fetchTimerDataList:async(n,i)=>{const[{data:o},{data:a}]=await Promise.all([e.send(t.getActivityList({appSecret:r,include:"cl"})),e.send(t.getRewardList({count:30,appSecret:r}))]);return{activityList:o,rewardList:a}}}})}};var Lt=r(4078),Mt=r.n(Lt),Ut=r(6489);function Ft(t,e){void 0===e&&(e={});var r=function(t){return t&&"j"===t[0]&&":"===t[1]?t.substr(2):t}(t);if(function(t,e){return void 0===e&&(e=!t||"{"!==t[0]&&"["!==t[0]&&'"'!==t[0]),!e}(r,e.doNotParse))try{return JSON.parse(r)}catch(t){}return t}var Bt=function(){return Bt=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Bt.apply(this,arguments)},Gt=function(){function t(t,e){var r=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function(t,e){return"string"==typeof t?Ut.Q(t,e):"object"==typeof t&&null!==t?t:{}}(t,e),new Promise((function(){r.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie})).catch((function(){}))}return t.prototype._updateBrowserValues=function(t){this.HAS_DOCUMENT_COOKIE&&(this.cookies=Ut.Q(document.cookie,t))},t.prototype._emitChange=function(t){for(var e=0;e<this.changeListeners.length;++e)this.changeListeners[e](t)},t.prototype.get=function(t,e,r){return void 0===e&&(e={}),this._updateBrowserValues(r),Ft(this.cookies[t],e)},t.prototype.getAll=function(t,e){void 0===t&&(t={}),this._updateBrowserValues(e);var r={};for(var n in this.cookies)r[n]=Ft(this.cookies[n],t);return r},t.prototype.set=function(t,e,r){var n;"object"==typeof e&&(e=JSON.stringify(e)),this.cookies=Bt(Bt({},this.cookies),((n={})[t]=e,n)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Ut.q(t,e,r)),this._emitChange({name:t,value:e,options:r})},t.prototype.remove=function(t,e){var r=e=Bt(Bt({},e),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Bt({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=Ut.q(t,"",r)),this._emitChange({name:t,value:void 0,options:e})},t.prototype.addChangeListener=function(t){this.changeListeners.push(t)},t.prototype.removeChangeListener=function(t){var e=this.changeListeners.indexOf(t);e>=0&&this.changeListeners.splice(e,1)},t}();const Vt=Gt;var Wt=r(129),qt=r.n(Wt);const Ht=new Vt;var zt=r(2238),$t=r.n(zt),Yt=r(4841),Kt=r.n(Yt);const Jt={initial:"idle",states:{idle:{initial:"hidden",states:{hidden:{},shown:{on:{HIDE_MESSAGE:{target:"hidden",actions:"hideMessage"}}}},on:{SHOW_MESSAGE:[{target:".shown",actions:"showMessage",cond:"isRead"},{target:"updating",actions:["showMessage","setMessageIsRead"]}]}},updating:{invoke:{src:"updateMessageIsRead",onDone:{target:"idle.shown"},onError:{target:"idle.shown"}}}}};var Qt=r(7436),Xt=r.n(Qt);const Zt={...Pt,auth:function(t){const{fullURL:r,clientId:n}=t.config,i=`cuora_${n}`,o=new Vt;return jt({id:"auth",initial:"idle",context:{token:null,tick:2e3,isPlaying:!1,userInfo:{},redirectURL:null},states:{idle:{entry:"fetchToken",always:[{target:"login",cond:"hasToken"}],on:{LOGIN_PHONE:{target:"authentication.phone"},LOGIN_LOCAL:{target:"authentication.local"},LOGIN_3PARTY:{actions:"redirectTo3Party"},LOGIN_TOKEN:{actions:"setToken"}}},authentication:{states:{phone:{invoke:{src:"authenticateByPhone",onDone:{target:"#auth.login",actions:"setToken"},onError:{target:"#auth.idle",actions:"removeToken"}}},local:{invoke:{src:"authenticateByUsername",onDone:{target:"#auth.login",actions:"setToken"},onError:{target:"#auth.idle",actions:"removeToken"}}}}},login:{type:"parallel",states:{schedule:{initial:"running",states:{running:{invoke:{src:"fetchUserInfo",onDone:{target:"pending",actions:["setUserInfo","extendToken"]},onError:{target:"#auth.logout"}}},pending:{after:{TIMEOUT:{target:"running"}},on:{FETCH_USER_INFO:{target:"running"}}}}},user:{initial:"idle",states:{idle:{on:{MODIFY_USER_INFO:{target:"modifyingUserInfo"}}},modifyingUserInfo:{invoke:{src:"modifyUserInfo",onDone:{target:"idle",actions:St({type:"FETCH_USER_INFO"})},onError:{target:"idle"}}}}}},on:{LOGOUT:{target:"#auth.logout"}}},logout:{invoke:{src:"logout",onDone:{target:"idle",actions:"removeToken"},onError:{target:"idle",actions:"removeToken"}}}}},{delays:{TIMEOUT:(t,e)=>{const{tick:r,isPlaying:n}=t;return r*(n?5:1)}},guards:{hasToken:(t,e)=>t.token,isFirstLogin:(t,e)=>{const{bank_account:r,bank_setting_status:n}=t.userInfo||{};return!!r||1===n}},actions:{fetchToken:xt(((t,e)=>({token:o.get(i)}))),setToken:xt(((t,e)=>(o.set(i,e.data,{path:"/",maxAge:300}),{token:e.data}))),removeToken:xt(((t,e)=>(o.remove(i,{path:"/",maxAge:300}),{token:null}))),extendToken:xt(((t,e)=>{const r=o.get(i);return o.set(i,r,{path:"/",maxAge:300}),{token:r}})),redirectTo3Party:(t,e)=>{const n=Mt()(r,"login?"+qt().stringify({provider:e.data,redirectURI:`${window.location.protocol}//${window.location.host}`,channel:"official",subchannel:"pwa"}));window.location.href=n},setUserInfo:xt(((t,e)=>({userInfo:e.data})))},services:{authenticateByUsername:async(r,n)=>{const{username:i,password:a}=n.data;o.set("cuora_tempuser",i,{path:"/",maxAge:86400});const{token:s}=await t.send(e.login({provider:"local",username:i,password:a}));return s},authenticateByPhone:async(r,n)=>{const{countryCode:i,phone:o,password:a}=n.data,{token:s}=await t.send(e.login({provider:"phone",countryCode:i,phone:o,password:a}));return s},logout:async(r,n)=>await t.send(e.logout()),fetchUserInfo:async(e,r)=>await t.send(c.getUserInfo()),modifyUserInfo:async(e,r)=>await t.send(c.modifyUserInfo(r.data))}})},auth_otp:function(t){return jt({id:"otp",initial:"idle",context:{userInfo:null,error:null,countryCode:null,phone:null,number:null,requestId:null,ttl:0},states:{idle:{always:[{target:"verified",cond:"isVerified"},{target:"notVerified",cond:"isNotVerified"}],on:{SET_USER_INFO:{actions:"setUserInfo"}}},notVerified:{initial:"checkingStatus",states:{checkingStatus:{invoke:{src:"verify",onDone:{target:"otp",actions:"setVerificationData"},onError:{target:"errorChecking",actions:"setError"}}},errorChecking:{always:[{target:"phone",cond:"hasNoPhone"},{target:"#otp.fail"}]},phone:{on:{SEND_PHONE:{target:"sendingPhone",actions:"setPhone"}}},sendingPhone:{invoke:{src:"sendPhone",onDone:{target:"checkingStatus"},onError:{target:"phone"}}},otp:{type:"parallel",states:{countdown:{after:{1e3:{target:"countdown",actions:"decreaseTtl",cond:t=>t.ttl>0}}},verification:{initial:"idle",states:{idle:{on:{SEND_OTP:{target:"acknowledging"},RESET_OTP:{target:"reset"},RESEND_PHONE:{target:"#otp.notVerified.phone"}}},acknowledging:{invoke:{src:"acknowledge",onDone:{target:"#otp.verified"},onError:{target:"idle"}}},reset:{invoke:{src:"resetOtp",onDone:{target:"idle",actions:"setVerificationData"},onError:{target:"idle"}}}}}}}}},verified:{},fail:{}}},{actions:{setUserInfo:xt(((t,e)=>({userInfo:e.data}))),setVerificationData:xt(((t,e)=>{const{number:r,requestId:n,ttl:i}=e.data;return{number:r,requestId:n,ttl:i}})),decreaseTtl:xt(((t,e)=>{const r=t.ttl;return{ttl:Math.max(r-1e3,0)}})),setError:xt(((t,e)=>({error:e.data}))),setPhone:xt(((t,e)=>{const{countryCode:r,phone:n}=e.data;return{countryCode:r,phone:n}}))},guards:{isVerified:(t,e)=>1===t.userInfo?.verification_status,isNotVerified:(t,e)=>t.userInfo&&1!==t.userInfo.verification_status,hasNoPhone:(t,e)=>{const{error:r}=t;return"ERR_F106"===r.code}},services:{verify:async(e,r)=>await t.send(c.verify()),sendPhone:async(e,r)=>{const{countryCode:n,phone:i}=e;return await t.send(c.modifyUserInfo({countryCode:n,phone:i}))},resetOtp:async(e,r)=>{const{requestId:n,number:i}=e;return await t.send(c.resetOtp({requestId:n,number:i}))},acknowledge:async(e,r)=>{const{requestId:n}=e,i=r.data;return await t.send(c.acknowledge({requestId:n,code:i}))}}})},check:function(t){return jt({id:"check",initial:"idle",context:{userInfo:null,bonus:null,gender:null},states:{idle:{},checking:{always:[{target:"inline",cond:"isInline"},{target:"inquiry",cond:"isInquiryIncomplete"},{target:"completed"}]},inline:{},inquiry:{initial:"inquiring",states:{inquiring:{on:{SET_BONUS:{actions:"setBonus"},SET_GENDER:{actions:"setGender"},SEND_INQUIRY_RESULT:{target:"submitting",cond:"isInquiryFilled"}}},submitting:{invoke:{src:"sendInquiryResult",onDone:{target:"#check.completed"},onError:{target:"#check.completed"}},exit:"setInfo"}}},completed:{}},on:{SET_USER_INFO:{target:"checking",actions:"setUserInfo"}}},{guards:{isInline:(t,e)=>t.userInfo?.rank>=0,isInquiryIncomplete:(t,e)=>{const{bank_account:r,bank_setting_status:n}=t.userInfo||{};return!(r||1===n||Ht.get("welcome"))},isInquiryFilled:(t,e)=>{const{bonus:r,gender:n}=t;return null!==r&&null!==n}},actions:{setUserInfo:xt(((t,e)=>({userInfo:e.data}))),setInfo:(t,e)=>{Ht.set("welcome","done",{path:"/",maxAge:31536e3})},setBonus:xt(((t,e)=>({bonus:e.data}))),setGender:xt(((t,e)=>({gender:e.data})))},services:{sendInquiryResult:async(e,r)=>{const{bonus:n,gender:i}=e;await Promise.all([t.send(s.setBonusSetting({bonus:n})),t.send(c.modifyUserInfo({gender:i}))])}}})},common:function(t){const{appSecret:e}=t.config;return jt({id:"common",type:"parallel",context:{tick:2e3,siteConfig:{cs:{lineat:null},loginMethods:{},forceValidation:"0",urls:{widget:null},competitionLab:{achievements:!1},paymentMethods:{}},ua:"",isMobile:!1,announcementList:null,broadcastList:null,mailBoxInfo:null,promotions:[],currentBroadcast:null,sentBroadcastList:[]},states:{config:{initial:"fetching",states:{idle:{on:{FETCH_SITE_CONFIG:{target:"fetching"}}},fetching:{entry:"setUA",invoke:{src:"fetchSiteConfig",onDone:{target:"idle",actions:"setSiteConfig"},onError:{target:"idle"}}}}},feed:{initial:"updating",states:{updating:{invoke:{src:"fetchFeeds",onDone:{target:"waiting",actions:"setFeeds"},onError:{target:"waiting"}}},waiting:{after:{TIMEOUT:{target:"updating"}}}}},broadcast:{initial:"idle",states:{idle:{on:{START_BROADCAST:{target:"picking"}}},picking:{after:{5e3:{target:"display",actions:"setBroadcast"}}},display:{after:{5e3:{target:"picking"}}}}}}},{delays:{TIMEOUT:(t,e)=>10*t.tick},actions:{setSiteConfig:xt(((t,e)=>({siteConfig:e.data}))),setUA:xt(((t,e)=>{const r=(new($t())).getResult();return{ua:r,isMobile:r?.device?.type}})),setFeeds:xt(((t,e)=>{const{announcementList:r,broadcastList:n,mailBoxInfo:i}=e.data,o=r?.announcements?.filter?.((t=>3===t.category))||[];return{announcementList:r,broadcastList:n,mailBoxInfo:i,promotions:o}})),setBroadcast:xt(((t,e)=>{const{broadcastList:r,sentBroadcastList:n,currentBroadcast:i}=t;let o=n;i&&(o=[...n,i]);const a=r?.broadcasts?.find((t=>"1"===t.type&&!o.some((e=>e.broadcast_id===t.broadcast_id))));return{currentBroadcast:a,sentBroadcastList:o}}))},services:{fetchSiteConfig:async(r,n)=>{const{config:o}=await t.send(i.getConfig({appSecret:e}));return JSON.parse(window.atob(o))},fetchFeeds:async(r,n)=>await t.send(i.feeds({appSecret:e}))}})},deposit:function(t){return jt({id:"deposit",initial:"loading",context:{cryptos:[],networks:[],currentCrypto:null,currentNetwork:null,currentAmount:null,calculatedResult:null,submittedResult:null,bonus:null},states:{loading:{initial:"bonusStatus",states:{bonusStatus:{invoke:{src:"getPaymentInfo",onDone:{target:"fetchingPayments",actions:"setBonus"},onError:{target:"#deposit.loaded"}}},fetchingPayments:{invoke:{src:"fetchPayments",onDone:{target:"#deposit.loaded",actions:"setCryptos"},onError:{target:"#deposit.loaded"}}}}},loaded:{on:{SUBMIT:{target:"submitting",cond:"isSubmittable"}}},checking:{always:[{target:"debouncing",cond:"isCalculable"},{target:"loaded"}]},debouncing:{after:{1e3:{target:"calculating"}}},calculating:{invoke:{src:"fetchCalculation",onDone:{target:"loaded",actions:"setCalculatedResult"},onError:{target:"loaded"}}},submitting:{invoke:{src:"submitDeposit",onDone:{target:"#deposit.submitted",actions:"setSubmittedResult"},onError:{target:"loaded"}}},switchingBonus:{invoke:{src:"setBonusSetting",onDone:{target:"checking"},onError:{target:"loaded"}}},submitted:{}},on:{SET_CRYPTO:{target:"checking",actions:"setCrypto",cond:"hasCryptoOptions"},SET_NETWORK:{target:"checking",actions:"setNetwork",cond:"hasNetworkOptions"},SET_AMOUNT:{target:"checking",actions:"setAmount"},TOGGLE_BONUS:{target:"switchingBonus",actions:"toggleBonus"}}},{actions:{setCryptos:xt(((t,e)=>({cryptos:e.data}))),setCrypto:xt(((t,e)=>{const{cryptos:r,currentNetwork:n}=t,i=r.find((t=>t.channel===e.data))?.optional||[],o={currentCrypto:e.data,networks:i};return i.includes(n)||(o.currentNetwork=null,o.currentAmount=null,o.calculatedResult=null),o})),setNetwork:xt(((t,e)=>({currentNetwork:e.data}))),setAmount:xt(((t,e)=>({currentAmount:e.data}))),setCalculatedResult:xt(((t,e)=>({calculatedResult:e.data}))),setSubmittedResult:xt(((t,e)=>({submittedResult:e.data}))),toggleBonus:xt(((t,e)=>{const{bonus:r}=t;return{bonus:1===r?0:1}})),setBonus:xt(((t,e)=>({bonus:e.data})))},guards:{hasCryptoOptions:(t,e)=>t.cryptos.length>0,hasNetworkOptions:(t,e)=>t.networks.length>0,isCalculable:(t,e)=>{const{currentCrypto:r,currentNetwork:n,currentAmount:i}=t;return r&&n&&Kt()(i)},isSubmittable:(t,e)=>t.calculatedResult,isBonusOff:(t,e)=>1!==t.bonus},services:{fetchPayments:async(e,r)=>await t.send(s.getPaymentDetail({transferType:"DEPOSIT"})),fetchCalculation:async(e,r)=>{const{cryptos:n,currentCrypto:i,currentAmount:o}=e,a=n.find((t=>t.channel===i))?.method;return await t.send(s.getDepositExpectedResult({method:a,amount:o,cryptoCurrency:i}))},submitDeposit:async(e,r)=>{const{cryptos:n,currentCrypto:i,currentNetwork:o,calculatedResult:a}=e,c=n.find((t=>t.channel===i))?.method;return await t.send(s.submitDepositTransaction({method:c,amount:a.actualAmount,cryptoCurrency:i,cryptoNetwork:o}))},setBonusSetting:async(e,r)=>{const{bonus:n}=e;return await t.send(s.setBonusSetting({bonus:n}))},getPaymentInfo:async(e,r)=>{const{bonus:n}=await t.send(s.getPaymentInfo());return n}}})},error:function(){return jt({id:"error",initial:"normal",context:{error:null,gameCode:null},states:{normal:{on:{SET_ERROR:{target:"error",actions:"setError"}}},error:{initial:"unknown",states:{unknown:{always:[{target:"logout",cond:"isLogout"},{target:"deposit",cond:"isNoBalance"},{target:"unfinishedGame",cond:"isUnfinishedGame",actions:"setUnfinishedGame"},{target:"hall"}]},logout:{},deposit:{},unfinishedGame:{},hall:{}}}},on:{SOLVE:{target:"normal",actions:"solveError"}}},{actions:{setError:xt(((t,e)=>({error:e.data}))),solveError:xt({error:null}),setUnfinishedGame:xt(((t,e)=>({gameCode:t.error.extend.split(/_(.+)/)[1]})))},guards:{isLogout:(t,e)=>["ERR_A201","ERR_A204","ERR_A103","ERR_A104","ERR_A108","ERR_F108"].includes(t.error.code),isNoBalance:(t,e)=>"ERR_G106"===t.error.code,isUnfinishedGame:(t,e)=>t.error.extend?.includes?.("unfinished_")},services:{}})},game:function(t){return jt({id:"game",type:"parallel",context:{roomId:null,list:[],game:{provider:null,game_id:null,game_type:null,mapping_id:null},lang:"en_US",gameURL:null,tick:2e3,isMobile:!1,sha:{category:null,status:null},isCategoryChanged:!1,isStatusChanged:!1,statusMap:{},optionMap:{}},states:{flow:{initial:"idle",states:{idle:{enter:"clearGameInfo",on:{ENTER_ROOM:{target:"loading",actions:"setRoomId",cond:(t,e)=>t.roomId!==e.roomId},ENTER_GAME:{target:"connecting",actions:["setGameInfo","setLang"],cond:(t,e)=>t.list.length>0}}},loading:{invoke:{src:"getRoomItems",onDone:{target:"idle",actions:"setList"},onError:{target:"idle",actions:xt({list:[]})}}},connecting:{invoke:{src:"connectGame",onDone:{target:"playing",actions:"setGameURL"},onError:{target:"idle"}}},playing:{on:{EXIT_GAME:{target:"disconnect"}}},disconnect:{invoke:{src:"disconnectGame",onDone:{target:"idle"},onError:{target:"idle"}}}}},schedule:{initial:"fetchingGameSHA",states:{fetchingGameSHA:{invoke:{src:"fetchGameSHA",onDone:{target:"checking",actions:"setGameSHA"},onError:{}}},checking:{always:[{target:"updatingStatus",cond:"isStatusChanged"},{target:"updatingCategory",cond:"isCategoryChanged"},{target:"idle"}]},updatingStatus:{invoke:{src:"fetchStatus",onDone:{target:"updatingOption",actions:["setStatus"]},onError:{}}},updatingOption:{invoke:{src:"fetchOption",onDone:{target:"updatingCategory",actions:"mergeOption"}}},updatingCategory:{invoke:{src:"getRoomItems",onDone:{target:"idle",actions:"setList"},onError:{target:"idle"}}},idle:{after:{TIMEOUT:{target:"fetchingGameSHA"}}}}}},on:{SET_MOBILE:{actions:"setMobile"}}},{actions:{setRoomId:xt(((t,e)=>({roomId:e.roomId}))),setList:xt({list:(t,e)=>e.data.list}),setGameURL:xt({gameURL:(t,e)=>e.data.gameURL}),clearGameInfo:xt(((t,e)=>({game:{provider:null,game_id:null,game_type:null,mapping_id:null}}))),setGameInfo:xt(((t,e)=>{const{provider:r,game_id:n,game_type:i,mapping_id:o}=e.data.game;return{game:{provider:r,game_id:n,game_type:i,mapping_id:o}}})),setLang:xt(((t,e)=>({lang:e.data.locale.replace("-","_")}))),setMobile:xt(((t,e)=>({isMobile:e.data}))),setGameSHA:xt(((t,e)=>{const{sha:r}=t,n=e.data;return{sha:n,isCategoryChanged:n.category!==(r.category||"0"),isStatusChanged:n.status!==(r.status||"0")}})),setStatus:xt(((t,e)=>({statusMap:e.data}))),mergeOption:xt(((t,e)=>{const{optionMap:r}=t;return{optionMap:{...r,...e.data}}}))},guards:{isCategoryChanged:(t,e)=>t.isCategoryChanged,isStatusChanged:(t,e)=>t.isStatusChanged},delays:{TIMEOUT:(t,e)=>10*t.tick},services:{getRoomItems:async(e,r)=>await t.send(o.getGameCategory({id:e.roomId})),connectGame:async(e,r)=>{const{lang:n,isMobile:i}=e,{provider:a,game_id:s,game_type:c,mapping_id:u}=e.game,l={provider_id:a,game_id:s,gametype_id:c,mapping_id:u,is_demo:!1,is_mobile:i,lang:n,return_url:window.location.href},{redirect_url:d}=await t.send(o.playGame(l));return{gameURL:d}},disconnectGame:async(e,r)=>{const n=r.data;return await t.send(o.logoutGame({uid_site:n,provider_id:e.game.provider}))},fetchOption:async(e,r)=>{const{optionIds:n}=e;return await t.send(o.getOptionMap())},fetchGameSHA:async(e,r)=>await t.send(o.getGameSHA()),fetchStatus:async(e,r)=>await t.send(o.getGameStatus())}})},game_favorite:function(t){return jt({id:"favorite",type:"parallel",context:{list:[]},states:{fetching:{initial:"disable",states:{disable:{},enable:{invoke:{src:"fetchList",onDone:{actions:"setList"},onError:{actions:xt({list:[]})}}}}},adding:{initial:"disable",states:{disable:{},enable:{invoke:{src:"add",onDone:{},onError:{actions:"removeFromList"}}}}},removing:{initial:"disable",states:{disable:{},enable:{invoke:{src:"remove",onDone:{},onError:{actions:"addToList"}}}}}},on:{FETCH_LIST:{target:"fetching.enable"},ADD:{target:"adding.enable",actions:"addToList",cond:"isNotExist"},REMOVE:{target:"removing.enable",actions:"removeFromList",cond:"isExist"}}},{actions:{setList:xt(((t,e)=>({list:e.data}))),addToList:xt(((t,e)=>({list:[...t.list,e.data]}))),removeFromList:xt(((t,e)=>({list:t.list.filter((t=>t!==e.data))})))},guards:{isExist:(t,e)=>t.list.includes(e.data),isNotExist:(t,e)=>!t.list.includes(e.data)},services:{add:async(e,r)=>{try{return await t.send(o.addFavoriteGame(r.data))}catch(t){throw r.data}},remove:async(e,r)=>{try{return await t.send(o.removeFavoriteGame(r.data))}catch(t){throw r.data}},fetchList:async(e,r)=>{const n=(await t.send(o.getGameCategory({}))).list.find((t=>"SYSTEM_MY_FAVORITE"===t.category));return(await t.send(o.getGameCategory({id:n.id}))).list.map((t=>t.g))}}})},game_search:function(t){return jt({id:"game_search",initial:"preset",context:{keyword:"",tagId:null,mainTagList:[],tagList:[],gameList:[],tagIndex:null,click:null,clickDefault:null,traceId:null,gameCode:null},states:{preset:{invoke:{src:"fetchTags",onDone:{target:"loading",actions:["setMainTagList","setInitialTagId"]},onError:{target:"fail"}}},loading:{invoke:{src:"fetchGames",onDone:{target:"idle",actions:"setGames"},onError:{target:"#game_search.fail"}}},idle:{on:{SET_MAIN_TAG_ID:{target:"loading",actions:"setMainTagId"},PLAY_GAME:{target:"sendingTrace",actions:"setGameCode"},START_SEARCH:{target:"searching",actions:"clearKeyword"}}},searching:{initial:"debouncing",states:{debouncing:{after:{500:{target:"fetchingTagsByKeyword"}}},fetchingTagsByKeyword:{invoke:{src:"fetchTags",onDone:{actions:"setTagList"},onError:{target:"#game_search.fail"}}}},on:{SET_TAG_ID:{target:"loading",actions:"setTagId"},PRESS_ENTER:[{actions:St(((t,e)=>({type:"SET_TAG_ID",data:t.tagList[0].id}))),cond:"hasTagList"},{target:"sendingTrace",actions:"clearExceptKeyword"}],SET_KEYWORD:{target:"searching.debouncing",actions:"setKeyword"},STOP_SEARCH:{target:"loading",actions:"setInitialTagId"}}},sendingTrace:{invoke:{src:"sendTrace",onDone:{target:"idle"},onError:{target:"fail"}}},fail:{}}},{actions:{setMainTagList:xt(((t,e)=>({mainTagList:e.data}))),setInitialTagId:xt(((t,e)=>{const{mainTagList:r}=t;return{tagId:r[0].id,tagIndex:0,keyword:""}})),setMainTagId:xt(((t,e)=>{const r=e.data,{mainTagList:n}=t,i=n.findIndex((t=>t.id===r));return{keyword:"",tagId:r,tagIndex:i,click:null,clickDefault:null}})),setTagId:xt(((t,e)=>{const r=e.data,{mainTagList:n,tagList:i}=t;if(0===i.length){const t=n.findIndex((t=>t.id===r));return{tagId:r,tagIndex:t,click:null,clickDefault:1}}{const t=i.findIndex((t=>t.id===r));return{tagId:r,tagIndex:t,click:1,clickDefault:null}}})),setGames:xt(((t,e)=>{const{traceId:r,result:n}=e.data;return{traceId:r,gameList:n}})),setKeyword:xt(((t,e)=>({keyword:e.data}))),clearKeyword:xt(((t,e)=>({keyword:""}))),setTagList:xt(((t,e)=>({tagList:e.data}))),setGameCode:xt(((t,e)=>{const{gameList:r}=t,n=e.data,i=r.findIndex((t=>t===n));return{gameCode:n,gameCodeIndex:i}})),clearExceptKeyword:xt(((t,e)=>({gameList:[],traceId:null,tagId:null,tagIndex:null,gameCode:null,gameCodeIndex:null,query:t.keyword,click:null,clickDefault:null})))},guards:{hasMainTags:(t,e)=>t.mainTagList.length>0,hasTagList:(t,e)=>t.tagList.length>0},services:{fetchTags:async(e,r)=>{const{keyword:n}=e,{result:i}=await t.send(o.getGameTags({q:n}));return i},fetchGames:async(e,r)=>{const{tagId:n,tagIndex:i,keyword:a,click:s,clickDefault:c}=e,{traceId:u,result:l}=await t.send(o.getGameSearchList({id:n,index:i,q:a,click:s,clickDefault:c}));return{traceId:u,result:l}},sendTrace:async(e,r)=>{const{traceId:n,tagId:i,tagIndex:a,gameCode:s,gameCodeIndex:c,keyword:u,click:l,clickDefault:d}=e;return await t.send(o.setGameSearchTrace({traceId:n,tagId:i,tagIndex:a,gameCode:s,gameCodeIndex:c,query:u,click:l,clickDefault:d}))}}})},inbox:function(e){const{appSecret:r}=e.config;return jt({id:"inbox",initial:"loading",context:{tabs:[],currentTab:null,inbox:{},messageDetail:null},states:{loading:{invoke:{src:"fetchTabs",onDone:{target:"checking",actions:"setTabs"},onError:{target:"failed"}}},checking:{always:[{target:"end",cond:"isEnd"},{target:"loadingMessages"}]},loadingMessages:{invoke:{src:"fetchMessages",onDone:{target:"more",actions:"setInbox"},onError:{target:"end"}}},more:{...Jt,on:{LOAD_MESSAGES:{target:"checking"}}},end:{...Jt},failed:{}},on:{SET_TAB:{target:".checking",actions:["setCurrentTab","hideMessage"],cond:"hasTabs"},PRESET_TAB:{actions:["setCurrentTab","hideMessage"]},RESET:{target:".loading",actions:"reset"}}},{guards:{hasTabs:(t,e)=>t.tabs.length>0,isEnd:(t,e)=>{const{currentTab:r,inbox:n}=t;if(n[r]){const{page:t,totalPage:e}=n[r];return t+1>=e}return!1},isRead:(t,e)=>e.data.isRead},actions:{reset:xt(((t,e)=>({tabs:[],currentTab:null,inbox:{},messageDetail:null}))),setTabs:xt(((t,e)=>{let{currentTab:r}=t;return r||(r=e.data?.[0]),{tabs:e.data,currentTab:r}})),setCurrentTab:xt(((t,e)=>({currentTab:e.data}))),showMessage:xt(((t,e)=>({messageDetail:e.data}))),hideMessage:xt(((t,e)=>({messageDetail:null}))),setInbox:xt(((t,e)=>({inbox:e.data}))),setMessageIsRead:xt(((t,e)=>{const{inbox:r,currentTab:n}=JSON.parse(JSON.stringify(t)),i=r[n].data.map((t=>(t.groupId===e.data.groupId&&(t.isRead=!0),t)));return r[n].data=i,{inbox:r}}))},services:{fetchTabs:async(t,r)=>(await e.send(a.getMessageTypes())).data?.map((t=>t.type))||[],fetchMessages:async(n,i)=>{const{currentTab:o,inbox:s}=JSON.parse(JSON.stringify(n));if("REWARD"===o){const{data:n}=await e.send(t.getRewardList({count:30,appSecret:r}));s[o]={data:n,page:0,totalPage:1}}else{const t=s[o]?.page&&s[o]?.page+1,{data:r,...n}=await e.send(a.getMessageList({type:o,page:t})),i=s[o]?.data||[];s[o]={data:i.concat(r),...n}}return s},updateMessageIsRead:async(t,r)=>{const{data:n}=r;return e.send(a.updateMessage({groupId:n.groupId,isRead:!0})),n.isRead=!0,n}}})},merge:function(t){return jt({id:"merge",initial:"idle",context:{userInfo:null},states:{idle:{always:[{target:"mergeable",cond:"isMergeable"}]},mergeable:{on:{MERGE:{target:"merging"}}},merging:{invoke:{src:"mergeWallet",onDone:{target:"idle"},onError:{target:"idle"}}}},on:{SET_USER_INFO:{actions:"setUserInfo"}}},{actions:{setUserInfo:xt(((t,e)=>({userInfo:e.data})))},guards:{isMergeable:(t,e)=>{const{retain:r,balance:n,withdraw_policy:i}=t.userInfo||{};return r>0&&(parseFloat(n)<=5||"FREE"===i)}},services:{mergeWallet:async(e,r)=>await t.send(s.mergeWallet())}})},payment_data:function(t){return jt({id:"payment_data",initial:"idle",context:{transactionList:[],spotMarketTime:null,spotMarketList:[]},states:{idle:{},fetchingTransactionList:{invoke:{src:"fetchTransactionList",onDone:{target:"idle",actions:"setTransactionList"},onError:{}}},fetchingSpotMarket:{invoke:{src:"fetchSpotMarket",onDone:{target:"idle",actions:"setSpotMarket"},onError:{}}}},on:{GET_TRANSACTION_LIST:{target:"fetchingTransactionList"},GET_SPOT_MARKET:{target:"fetchingSpotMarket"}}},{actions:{setTransactionList:xt(((t,e)=>{const r={2:"pending",3:"success",4:"fail",6:"reject"};return{transactionList:e.data.map((t=>(t.statusName=r[t.status],t)))}})),setSpotMarket:xt(((t,e)=>{const{timestamp:r,data:n}=e.data;return{spotMarketTime:r,spotMarketList:n.slice(0,100)}}))},services:{fetchTransactionList:async(e,r)=>await t.send(s.getPaymentHistory(7)),fetchSpotMarket:async(e,r)=>await t.send(s.getSpotMarket())}})},reward:function(e){const{appSecret:r}=e.config;return jt({id:"reward",initial:"loading",context:{rewardList:[]},states:{loading:{invoke:{src:"fetchRewardList",onDone:{target:"loaded",actions:"setRewardList"},onError:{target:"loaded"}}},loaded:{on:{RECEIVE_REWARD:{target:"receiving"}}},receiving:{invoke:{src:"receiveReward",onDone:{target:"animating"},onError:{target:"loading"}}},animating:{after:{0:{target:"loading"}}}}},{actions:{setRewardList:xt(((t,e)=>({rewardList:e.data})))},services:{fetchRewardList:async(n,i)=>{const{data:o}=await e.send(t.getRewardList({count:30,appSecret:r}));return o},receiveReward:async(n,i)=>{const{activityNo:o,receiveNo:a}=i.data;return await e.send(t.getReward({activityNo:o,receiveNo:a,appSecret:r}))}}})},setting:function(){return jt({id:"setting",initial:"idle",context:{sound:!1,music:!1,locale:"en-US"},entry:"fetchSetting",states:{idle:{}},on:{MODIFY_SETTING:{actions:"saveSetting"}}},{actions:{fetchSetting:xt((()=>({...JSON.parse(localStorage.getItem("setting"))||{sound:!0,music:!0}}))),saveSetting:xt(((t,e)=>{const{sound:r,music:n,locale:i}=e.data;return localStorage.setItem("setting",JSON.stringify({sound:r,music:n,locale:i})),{sound:r,music:n,locale:i}}))}})},side:function(t){return jt({id:"side",initial:"preparing",context:{menu:{},roomId:null,roomHistory:[]},states:{preparing:{invoke:{src:"getRoomItems",onDone:{target:"room",actions:"mapListToMenu"},onError:{target:"room"}}},room:{entry:"resetRoomHistory",initial:"home",states:{home:{entry:xt({roomId:(t,e)=>t.menu.home})},favorite:{entry:xt({roomId:(t,e)=>t.menu.favorite})},hot:{entry:xt({roomId:(t,e)=>t.menu.hot})},new:{entry:xt({roomId:(t,e)=>t.menu.new})},slot:{entry:xt({roomId:(t,e)=>t.menu.slot})},fish:{entry:xt({roomId:(t,e)=>t.menu.fish})},arcade:{entry:xt({roomId:(t,e)=>t.menu.arcade})},table:{entry:xt({roomId:(t,e)=>t.menu.table})},search:{},history:{type:"history"}}},feature:{on:{RETURN:{target:"room.history"},CLICK_HOT:{target:"room.hot"},CLICK_NEW:{target:"room.new"}}},category:{on:{RETURN:{target:"room.history"},CLICK_SLOT:{target:"room.slot"},CLICK_FISH:{target:"room.fish"},CLICK_ARCADE:{target:"room.arcade"},CLICK_TABLE:{target:"room.table"}}}},on:{CLICK_HOME:{target:"room.home"},CLICK_FAVORITE:{target:"room.favorite"},CLICK_FEATURE:{target:"feature"},CLICK_CATEGORY:{target:"category"},CLICK_SEARCH:{target:"room.search"},FORWARD_ROOM:{actions:"forwardRoom"},BACKWARD_ROOM:{actions:"backwardRoom"}}},{actions:{mapListToMenu:xt(((t,e)=>{const{list:r=[]}=e.data,n={home:["SYSTEM_PERSONAL","SYSTEM_INDEX_LIST"],favorite:"SYSTEM_MY_FAVORITE",hot:"SYSTEM_TOP_GAME",new:"SYSTEM_NEW_GAME",slot:"SYSTEM_BIG_CATEGORY_SLOT",fish:"SYSTEM_BIG_CATEGORY_FISHING",arcade:"SYSTEM_BIG_CATEGORY_ARCADE",table:"SYSTEM_BIG_CATEGORY_TABLECARD"},i={};return Object.keys(n).forEach((t=>{Array.isArray(n[t])?n[t].some((e=>{const n=r.find((t=>t.category===e))?.id;return!!n&&(i[t]=n,!0)})):i[t]=r.find((e=>e.category===n[t]))?.id})),{menu:i}})),forwardRoom:xt(((t,e)=>({roomId:e.data,roomHistory:[...t.roomHistory,t.roomId]}))),backwardRoom:xt(((t,e)=>{const{roomHistory:r}=t;return{roomId:r.slice(-1)[0],roomHistory:r.slice(0,-1)}})),resetRoomHistory:xt(((t,e)=>({roomHistory:[]})))},services:{getRoomItems:async(e,r)=>await t.send(o.getGameCategory({id:e.roomId}))}})},withdraw:function(t){return jt({id:"withdraw",initial:"idle",context:{isTurnoverMode:!1,siteConfig:null,userInfo:null,crypto:null,networks:[],currentNetwork:"",currentAddress:"",withdrawMethods:[],withdrawRuleName:null,withdrawRules:[],withdrawLimit:null,withdrawAmount:null,withdrawLeft:null,tutorialUrls:[],balance:null,charge:null},states:{idle:{on:{PRESET:{target:"mode",actions:["setSiteConfig","setUserInfo","preset"]}}},mode:{always:[{target:"free",cond:"isFree"},{target:"cash"}]},free:{initial:"preparing",states:{preparing:{invoke:{src:"fetchWithdrawRules",onDone:{target:"convertible",actions:"updateWithdrawCondition"},onError:{target:"notConvertible"}}},notConvertible:{},convertible:{initial:"preparing",states:{preparing:{invoke:{src:"fetchPayments",onDone:{target:"operation",actions:"setCrypto"},onError:{target:"#withdraw.free.notConvertible"}}},operation:{on:{SET_NETWORK:{actions:"setNetwork"},SET_ADDRESS:{actions:"setAddress"},CALCULATE:{target:"calculating",cond:"isCalculable"},SUBMIT:{target:"#withdraw.free.converting"}}},calculating:{entry:"resetCharge",invoke:{src:"fetchCalculation",onDone:{target:"operation",actions:"setCalculatedResult"},onError:{target:"operation"}}}}},converting:{invoke:{src:"submitWithdrawFree",onDone:{target:"converted"},onError:{target:"convertible.operation"}}},converted:{}}},cash:{initial:"checking",states:{checking:{entry:"calculateCashLeft",always:[{target:"disable",cond:"isWithdrawDisable"},{target:"transferable",cond:"isTransferable"},{target:"notTransferable"}]},disable:{},notTransferable:{},transferable:{entry:"setBalanceToWithdrawAmount",initial:"preparing",states:{preparing:{invoke:{src:"fetchPayments",onDone:{target:"operation",actions:"setCrypto"},onError:{target:"#withdraw.cash.checking"}}},operation:{on:{SET_NETWORK:{actions:"setNetwork"},SET_ADDRESS:{actions:"setAddress"},CALCULATE:{target:"calculating",cond:"isCalculable"},SUBMIT:{target:"#withdraw.cash.transferring"}}},calculating:{entry:"resetCharge",invoke:{src:"fetchCalculation",onDone:{target:"operation",actions:"setCalculatedResult"},onError:{target:"operation"}}}}},transferring:{invoke:{src:"submitWithdraw",onDone:{target:"transferred"},onError:{target:"transferable.operation"}}},transferred:{}}}}},{actions:{setUserInfo:xt(((t,e)=>({userInfo:e.data.userInfo}))),setSiteConfig:xt(((t,e)=>({siteConfig:e.data.siteConfig}))),preset:xt(((t,e)=>{const{userInfo:r,siteConfig:n}=e.data,{withdraw_rule:i,withdraw_limit:o}=r||{},a=parseFloat(r?.balance);let s;return s=(n?.paymentMethods?.withdraw||[]).includes("amb")?-1*(o+a):-1*o,{balance:a,withdrawRuleName:i,withdrawLimit:s}})),updateWithdrawCondition:xt(((t,e)=>{const r=e.data.rules.filter((t=>t.maxWithdrawAmount>0)),n=e.data.adUrl.map((t=>t.url)),{balance:i,withdrawLimit:o}=t,a=Xt()(r,(t=>i>=t.greaterEqualThen));let s,c=0,u=0;if(a>-1)r[a].match=!0,u=r[a].maxWithdrawAmount,s=r[a].greaterEqualThen;else if(o){const t=o-i;s=o,t<0?u=i:c=t}else c=r[0]?.greaterEqualThen-i,s=r[0]?.greaterEqualThen;return{withdrawLeft:c,withdrawAmount:u,withdrawLimit:s,withdrawRules:r,tutorialUrls:n}})),setBalanceToWithdrawAmount:xt(((t,e)=>({withdrawAmount:t.balance}))),setCrypto:xt(((t,e)=>({crypto:e.data?.[0],networks:e.data?.[0]?.optional||[]}))),setNetwork:xt(((t,e)=>({currentNetwork:e.data}))),setAddress:xt(((t,e)=>({currentAddress:e.data}))),setCalculatedResult:xt(((t,e)=>({charge:e.data.charge}))),resetCharge:xt(((t,e)=>({charge:null}))),calculateCashLeft:xt(((t,e)=>{const{balance:r,withdrawLimit:n}=t,i=n-r;return{withdrawLeft:Math.max(i,0)}}))},guards:{isFree:(t,e)=>"FREE"===t.userInfo?.withdraw_policy,isWithdrawDisable:(t,e)=>{const{siteConfig:r}=t;return 0===(r?.paymentMethods?.withdraw||[]).length},isTransferable:(t,e)=>{const{balance:r,withdrawLimit:n,isTurnoverMode:i}=t;return 0!==r&&(i?0===n:r-n>=0)},isCalculable:(t,e)=>{const{currentNetwork:r,balance:n}=t;return r&&n}},services:{fetchWithdrawRules:async(e,r)=>await t.send(s.getCurrentWithdrawRule()),fetchPayments:async(e,r)=>await t.send(s.getPaymentDetail({transferType:"WITHDRAW"})),submitWithdraw:async(e,r)=>{const{crypto:n,currentNetwork:i,currentAddress:o,withdrawAmount:a}=e,c=n.method;return await t.send(s.submitWithdrawTransaction({method:c,amount:a,cryptoCurrency:n.channel,cryptoNetwork:i,targetAddress:o}))},submitWithdrawFree:async(e,r)=>{const{currentNetwork:n,currentAddress:i}=e;return await t.send(s.convertFreeCredit({exchangeType:1,cryptoNetwork:n,targetAddress:i}))},fetchCalculation:async(e,r)=>{const{crypto:n,currentNetwork:i,withdrawAmount:o}=e,a=n.method;return await t.send(s.getWithdrawExpectedResult({method:a,amount:o,cryptoNetwork:i}))}}})}};var te=r(5937),ee=r.n(te);function re(t){return null!=t}class ne{constructor(t,e,r){this.axios=t,this.source=t.CancelToken.source(),this.config=e,this.cookie=r,this.errorHandler=null,this.initialize()}initialize(){this.axios.interceptors.request.use((t=>(t.headers["X-TH1GAMES-VERSION"]=this.config.version,t.headers["X-TH1GAMES-PLATFORM"]=this.config.platform,this.cookie.getToken()&&(t.headers.Authorization=this.cookie.getToken()),t))),this.axios.interceptors.response.use((function(t){return t.data.error?Promise.reject(t.data.error):Promise.resolve(t)}),(function(t){return"Network Error"===t.message||"Request failed with status code 404"===t.message?Promise.reject({code:"ERR_998"}):Promise.reject(t.response?.data?.error||t)}))}setErrorHandler(t){this.errorHandler=t}async send(t,e){try{const r=e||this.source.token;this._checkToken(t,this.cookie.getToken());const n=this._createConfig(t,r),{data:i}=await this.axios.request(n);return i}catch(t){throw t.code&&this.errorHandler&&this.errorHandler(t),t}}sourceUpdate(){this.source.cancel("Requests Cancelled"),this.source=this.axios.CancelToken.source()}sourceGenerate(){return this.axios.CancelToken.source()}_createConfig(t,e){const{method:r,url:n,params:i,isPublic:o}=t;return{baseURL:this.config.fullURL,method:r,url:n,cancelToken:e,isPublic:o,["GET"===r.toUpperCase()?"params":"data"]:ee()(i,re)}}_checkToken(t,e){if(!t.isPublic&&!e)throw console.error(t),{code:"ERR_A103",url:t.url}}}class ie{constructor(t){this.cookies=new Vt,this.tokenKey=t}setToken(t){this.cookies.set(this.tokenKey,t,{path:"/",maxAge:300})}prolongToken(){const t=this.getToken();t&&this.setToken(t)}getToken(){return this.cookies.get(this.tokenKey)}removeToken(){this.cookies.remove(this.tokenKey,{path:"/",maxAge:300})}setUser(t){this.cookies.set("cuora_tempuser",t,{path:"/",maxAge:86400})}getUser(){return this.cookies.get("cuora_tempuser")}set(t,e,r){this.cookies.set(t,e,r)}get(t,e){return this.cookies.get(t,e)}}class oe{constructor({apiURL:t,apiVersion:e,clientId:r,appSecret:n,platform:i,version:o}){this.apiURL=t,this.apiVersion=e,this.clientId=r,this.appSecret=n,this.platform=i,this.version=o,this.fullURL=Mt()(this.apiURL,this.apiVersion,this.clientId)}setApiURL(t){this.apiURL=t,this.fullURL=Mt()(this.apiURL,this.apiVersion,this.clientId)}}})();var i=n.De,o=n.Vj,a=n.cf,s=n.hi,c=n.u_;export{i as Config,o as Cookie,a as Request,s as api,c as machine};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* cookie
|
|
3
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
4
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
5
|
+
* MIT Licensed
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*! *****************************************************************************
|
|
9
|
+
Copyright (c) Microsoft Corporation.
|
|
10
|
+
|
|
11
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
12
|
+
purpose with or without fee is hereby granted.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
15
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
16
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
17
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
18
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
19
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
20
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
21
|
+
***************************************************************************** */
|
|
22
|
+
|
|
23
|
+
/*!@license
|
|
24
|
+
* UAParser.js v0.7.28
|
|
25
|
+
* Lightweight JavaScript-based User-Agent string parser
|
|
26
|
+
* https://github.com/faisalman/ua-parser-js
|
|
27
|
+
*
|
|
28
|
+
* Copyright © 2012-2021 Faisal Salman <f@faisalman.com>
|
|
29
|
+
* Licensed under MIT License
|
|
30
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetthai/cuora",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "index.js",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
9
|
"release": "standard-version && git push --follow-tags origin master && npm publish"
|
|
@@ -15,11 +16,16 @@
|
|
|
15
16
|
"license": "ISC",
|
|
16
17
|
"devDependencies": {
|
|
17
18
|
"prettier": "^2.3.0",
|
|
18
|
-
"standard-version": "^9.3.1"
|
|
19
|
+
"standard-version": "^9.3.1",
|
|
20
|
+
"webpack": "^5.58.2",
|
|
21
|
+
"webpack-cli": "^4.9.0"
|
|
19
22
|
},
|
|
20
23
|
"dependencies": {
|
|
21
24
|
"lodash": "^4.17.21",
|
|
25
|
+
"qs": "^6.10.1",
|
|
26
|
+
"ua-parser-js": "^0.7.28",
|
|
22
27
|
"universal-cookie": "^4.0.4",
|
|
23
|
-
"url-join": "^4.0.1"
|
|
28
|
+
"url-join": "^4.0.1",
|
|
29
|
+
"xstate": "^4.25.0"
|
|
24
30
|
}
|
|
25
31
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
getActivityTypes: ({ appSecret }) => ({ url: 'activities/types', method: 'get', params: { appSecret } }),
|
|
3
|
+
getActivityList: ({ appSecret, include }) => ({
|
|
4
|
+
url: 'activities/list',
|
|
5
|
+
method: 'get',
|
|
6
|
+
params: { appSecret, include },
|
|
7
|
+
}),
|
|
8
|
+
getActivityDetail: ({ activityNo, appSecret }) => ({
|
|
9
|
+
url: 'activities',
|
|
10
|
+
method: 'get',
|
|
11
|
+
params: { activityNo, appSecret },
|
|
12
|
+
}),
|
|
13
|
+
getAchievements: ({ limit, page, appSecret }) => ({
|
|
14
|
+
url: 'activities/achievements',
|
|
15
|
+
method: 'get',
|
|
16
|
+
params: {
|
|
17
|
+
limit,
|
|
18
|
+
page,
|
|
19
|
+
appSecret,
|
|
20
|
+
},
|
|
21
|
+
}),
|
|
22
|
+
getAchievementsProgress: ({ achievementNo, appSecret }) => ({
|
|
23
|
+
url: 'activities/achievements/progress',
|
|
24
|
+
method: 'get',
|
|
25
|
+
params: { achievementNo, appSecret },
|
|
26
|
+
}),
|
|
27
|
+
getAchievementsIssued: () => ({ url: 'activities/achievements/issue', method: 'get' }),
|
|
28
|
+
postPromoCode: (promoCode) => ({
|
|
29
|
+
url: 'activities/promo',
|
|
30
|
+
method: 'post',
|
|
31
|
+
params: { promoCode },
|
|
32
|
+
}),
|
|
33
|
+
sentAward: ({ activityNo, gender, email, score, suggest, uidSite, affiliateCode, appSecret }) => ({
|
|
34
|
+
url: 'activities/sentAward',
|
|
35
|
+
method: 'post',
|
|
36
|
+
params: { activityNo, gender, email, score, suggest, uidSite, affiliateCode, appSecret },
|
|
37
|
+
}),
|
|
38
|
+
getReward: ({ activityNo, receiveNo, appSecret }) => ({
|
|
39
|
+
url: 'activities/rewards',
|
|
40
|
+
method: 'post',
|
|
41
|
+
params: { activityNo, receiveNo, appSecret },
|
|
42
|
+
}),
|
|
43
|
+
getRewardList: ({ count, appSecret }) => ({ url: 'activities/rewards', method: 'get', params: { count, appSecret } }),
|
|
44
|
+
exchange: (data) => ({ url: 'activities/exchange', method: 'post', params: data }),
|
|
45
|
+
collect: ({ appSecret }) => ({ url: 'activities/collect', method: 'post', params: { appSecret } }),
|
|
46
|
+
}
|
package/src/api/auth.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
login: ({ username, password, provider, countryCode, phone }) => ({
|
|
3
|
+
url: 'login',
|
|
4
|
+
method: 'post',
|
|
5
|
+
params: { username, password, provider, countryCode, phone },
|
|
6
|
+
isPublic: true,
|
|
7
|
+
}),
|
|
8
|
+
register: (data) => ({
|
|
9
|
+
url: 'register?channel=official&subchannel=pwa',
|
|
10
|
+
method: 'post',
|
|
11
|
+
params: data,
|
|
12
|
+
isPublic: true,
|
|
13
|
+
}),
|
|
14
|
+
logout: () => ({ url: 'logout', method: 'post' }),
|
|
15
|
+
}
|