50p82u21t54k 0.0.35 → 0.0.37

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.
Files changed (221) hide show
  1. package/dist/50p82u21t54k.es.js +1913 -1875
  2. package/dist/50p82u21t54k.umd.js +11 -16
  3. package/dist/api/announcement/announcementApi.d.ts +3 -0
  4. package/dist/api/announcement/announcementApi.d.ts.map +1 -0
  5. package/dist/api/announcement/index.d.ts +3 -0
  6. package/dist/api/announcement/index.d.ts.map +1 -0
  7. package/dist/api/announcement/type.d.ts +13 -0
  8. package/dist/api/announcement/type.d.ts.map +1 -0
  9. package/dist/api/cmsList/cmsListApi.d.ts +3 -0
  10. package/dist/api/cmsList/cmsListApi.d.ts.map +1 -0
  11. package/dist/api/cmsList/index.d.ts +3 -0
  12. package/dist/api/cmsList/index.d.ts.map +1 -0
  13. package/dist/api/cmsList/type.d.ts +8 -0
  14. package/dist/api/cmsList/type.d.ts.map +1 -0
  15. package/dist/api/csLink/csLinkApi.d.ts +3 -0
  16. package/dist/api/csLink/csLinkApi.d.ts.map +1 -0
  17. package/dist/api/csLink/index.d.ts +3 -0
  18. package/dist/api/csLink/index.d.ts.map +1 -0
  19. package/dist/{csLink → api/csLink}/type.d.ts +1 -2
  20. package/dist/api/csLink/type.d.ts.map +1 -0
  21. package/dist/api/currentLang/currentLangApi.d.ts +3 -0
  22. package/dist/api/currentLang/currentLangApi.d.ts.map +1 -0
  23. package/dist/api/currentLang/index.d.ts +3 -0
  24. package/dist/api/currentLang/index.d.ts.map +1 -0
  25. package/dist/api/currentLang/type.d.ts +7 -0
  26. package/dist/api/currentLang/type.d.ts.map +1 -0
  27. package/dist/api/eGame/eGameApi.d.ts +3 -0
  28. package/dist/api/eGame/eGameApi.d.ts.map +1 -0
  29. package/dist/api/eGame/index.d.ts +3 -0
  30. package/dist/api/eGame/index.d.ts.map +1 -0
  31. package/dist/{eGame → api/eGame}/type.d.ts +4 -3
  32. package/dist/api/eGame/type.d.ts.map +1 -0
  33. package/dist/api/fishGames/fishGamesApi.d.ts +3 -0
  34. package/dist/api/fishGames/fishGamesApi.d.ts.map +1 -0
  35. package/dist/api/fishGames/index.d.ts +3 -0
  36. package/dist/api/fishGames/index.d.ts.map +1 -0
  37. package/dist/{fishGames → api/fishGames}/type.d.ts +1 -2
  38. package/dist/api/fishGames/type.d.ts.map +1 -0
  39. package/dist/api/general/api.d.ts +4 -0
  40. package/dist/api/general/api.d.ts.map +1 -0
  41. package/dist/api/general/type.d.ts +15 -0
  42. package/dist/api/general/type.d.ts.map +1 -0
  43. package/dist/api/getLocale/getLocaleApi.d.ts +3 -0
  44. package/dist/api/getLocale/getLocaleApi.d.ts.map +1 -0
  45. package/dist/api/getLocale/index.d.ts +3 -0
  46. package/dist/api/getLocale/index.d.ts.map +1 -0
  47. package/dist/{getLocale → api/getLocale}/type.d.ts +1 -2
  48. package/dist/api/getLocale/type.d.ts.map +1 -0
  49. package/dist/api/getLoginKey/getLoginKeyApi.d.ts +3 -0
  50. package/dist/api/getLoginKey/getLoginKeyApi.d.ts.map +1 -0
  51. package/dist/api/getLoginKey/index.d.ts +3 -0
  52. package/dist/api/getLoginKey/index.d.ts.map +1 -0
  53. package/dist/{getLoginKey → api/getLoginKey}/type.d.ts +1 -2
  54. package/dist/api/getLoginKey/type.d.ts.map +1 -0
  55. package/dist/api/getSetting/getSettingApi.d.ts +3 -0
  56. package/dist/api/getSetting/getSettingApi.d.ts.map +1 -0
  57. package/dist/api/getSetting/index.d.ts +3 -0
  58. package/dist/api/getSetting/index.d.ts.map +1 -0
  59. package/dist/{getSetting → api/getSetting}/type.d.ts +1 -2
  60. package/dist/api/getSetting/type.d.ts.map +1 -0
  61. package/dist/api/getWinnerList/getWinnerListApi.d.ts +3 -0
  62. package/dist/api/getWinnerList/getWinnerListApi.d.ts.map +1 -0
  63. package/dist/api/getWinnerList/index.d.ts +3 -0
  64. package/dist/api/getWinnerList/index.d.ts.map +1 -0
  65. package/dist/api/getWinnerList/type.d.ts +15 -0
  66. package/dist/api/getWinnerList/type.d.ts.map +1 -0
  67. package/dist/api/home/homeApi.d.ts +3 -0
  68. package/dist/api/home/homeApi.d.ts.map +1 -0
  69. package/dist/api/home/index.d.ts +3 -0
  70. package/dist/api/home/index.d.ts.map +1 -0
  71. package/dist/{home → api/home}/type.d.ts +2 -20
  72. package/dist/api/home/type.d.ts.map +1 -0
  73. package/dist/api/hotGames/hotGamesApi.d.ts +3 -0
  74. package/dist/api/hotGames/hotGamesApi.d.ts.map +1 -0
  75. package/dist/api/hotGames/index.d.ts +3 -0
  76. package/dist/api/hotGames/index.d.ts.map +1 -0
  77. package/dist/{hotGames → api/hotGames}/type.d.ts +3 -4
  78. package/dist/api/hotGames/type.d.ts.map +1 -0
  79. package/dist/api/login/index.d.ts +3 -0
  80. package/dist/api/login/index.d.ts.map +1 -0
  81. package/dist/api/login/loginApi.d.ts +3 -0
  82. package/dist/api/login/loginApi.d.ts.map +1 -0
  83. package/dist/{login → api/login}/type.d.ts +1 -2
  84. package/dist/api/login/type.d.ts.map +1 -0
  85. package/dist/api/message/index.d.ts +3 -0
  86. package/dist/api/message/index.d.ts.map +1 -0
  87. package/dist/api/message/messageApi.d.ts +3 -0
  88. package/dist/api/message/messageApi.d.ts.map +1 -0
  89. package/dist/api/message/type.d.ts +13 -0
  90. package/dist/api/message/type.d.ts.map +1 -0
  91. package/dist/api/promotion/index.d.ts +3 -0
  92. package/dist/api/promotion/index.d.ts.map +1 -0
  93. package/dist/api/promotion/promotionApi.d.ts +3 -0
  94. package/dist/api/promotion/promotionApi.d.ts.map +1 -0
  95. package/dist/{promotion → api/promotion}/type.d.ts +3 -4
  96. package/dist/api/promotion/type.d.ts.map +1 -0
  97. package/dist/api/trialGames/index.d.ts +3 -0
  98. package/dist/api/trialGames/index.d.ts.map +1 -0
  99. package/dist/api/trialGames/trialGamesApi.d.ts +3 -0
  100. package/dist/api/trialGames/trialGamesApi.d.ts.map +1 -0
  101. package/dist/{trialGames → api/trialGames}/type.d.ts +1 -2
  102. package/dist/api/trialGames/type.d.ts.map +1 -0
  103. package/dist/index.d.ts +13 -13
  104. package/dist/index.d.ts.map +1 -1
  105. package/dist/plugin.d.ts +1 -2
  106. package/dist/plugin.d.ts.map +1 -1
  107. package/dist/typings.d.ts +7 -0
  108. package/dist/util/tool.d.ts +3 -0
  109. package/dist/util/tool.d.ts.map +1 -1
  110. package/package.json +19 -15
  111. package/dist/cmsList/index.d.ts +0 -3
  112. package/dist/cmsList/index.d.ts.map +0 -1
  113. package/dist/cmsList/method.d.ts +0 -39
  114. package/dist/cmsList/method.d.ts.map +0 -1
  115. package/dist/cmsList/type.d.ts +0 -19
  116. package/dist/cmsList/type.d.ts.map +0 -1
  117. package/dist/csLink/index.d.ts +0 -3
  118. package/dist/csLink/index.d.ts.map +0 -1
  119. package/dist/csLink/method.d.ts +0 -11
  120. package/dist/csLink/method.d.ts.map +0 -1
  121. package/dist/csLink/type.d.ts.map +0 -1
  122. package/dist/currentLang/index.d.ts +0 -3
  123. package/dist/currentLang/index.d.ts.map +0 -1
  124. package/dist/currentLang/method.d.ts +0 -9
  125. package/dist/currentLang/method.d.ts.map +0 -1
  126. package/dist/currentLang/type.d.ts +0 -6
  127. package/dist/currentLang/type.d.ts.map +0 -1
  128. package/dist/eGame/index.d.ts +0 -3
  129. package/dist/eGame/index.d.ts.map +0 -1
  130. package/dist/eGame/method.d.ts +0 -9
  131. package/dist/eGame/method.d.ts.map +0 -1
  132. package/dist/eGame/type.d.ts.map +0 -1
  133. package/dist/fishGames/index.d.ts +0 -3
  134. package/dist/fishGames/index.d.ts.map +0 -1
  135. package/dist/fishGames/method.d.ts +0 -12
  136. package/dist/fishGames/method.d.ts.map +0 -1
  137. package/dist/fishGames/type.d.ts.map +0 -1
  138. package/dist/getLocale/index.d.ts +0 -3
  139. package/dist/getLocale/index.d.ts.map +0 -1
  140. package/dist/getLocale/method.d.ts +0 -9
  141. package/dist/getLocale/method.d.ts.map +0 -1
  142. package/dist/getLocale/type.d.ts.map +0 -1
  143. package/dist/getLoginKey/index.d.ts +0 -3
  144. package/dist/getLoginKey/index.d.ts.map +0 -1
  145. package/dist/getLoginKey/method.d.ts +0 -11
  146. package/dist/getLoginKey/method.d.ts.map +0 -1
  147. package/dist/getLoginKey/type.d.ts.map +0 -1
  148. package/dist/getSetting/index.d.ts +0 -3
  149. package/dist/getSetting/index.d.ts.map +0 -1
  150. package/dist/getSetting/method.d.ts +0 -15
  151. package/dist/getSetting/method.d.ts.map +0 -1
  152. package/dist/getSetting/type.d.ts.map +0 -1
  153. package/dist/historyGames (incomplete)/index.d.ts +0 -1
  154. package/dist/historyGames (incomplete)/index.d.ts.map +0 -1
  155. package/dist/historyGames (incomplete)/method.d.ts +0 -1
  156. package/dist/historyGames (incomplete)/method.d.ts.map +0 -1
  157. package/dist/historyGames (incomplete)/type.d.ts +0 -1
  158. package/dist/historyGames (incomplete)/type.d.ts.map +0 -1
  159. package/dist/home/index.d.ts +0 -3
  160. package/dist/home/index.d.ts.map +0 -1
  161. package/dist/home/method.d.ts +0 -68
  162. package/dist/home/method.d.ts.map +0 -1
  163. package/dist/home/type.d.ts.map +0 -1
  164. package/dist/hotGames/index.d.ts +0 -3
  165. package/dist/hotGames/index.d.ts.map +0 -1
  166. package/dist/hotGames/method.d.ts +0 -20
  167. package/dist/hotGames/method.d.ts.map +0 -1
  168. package/dist/hotGames/type.d.ts.map +0 -1
  169. package/dist/legacy/announcement/index.d.ts +0 -3
  170. package/dist/legacy/announcement/index.d.ts.map +0 -1
  171. package/dist/legacy/announcement/method.d.ts +0 -4
  172. package/dist/legacy/announcement/method.d.ts.map +0 -1
  173. package/dist/legacy/announcement/type.d.ts +0 -11
  174. package/dist/legacy/announcement/type.d.ts.map +0 -1
  175. package/dist/legacy/gKey/index.d.ts +0 -3
  176. package/dist/legacy/gKey/index.d.ts.map +0 -1
  177. package/dist/legacy/gKey/method.d.ts +0 -5
  178. package/dist/legacy/gKey/method.d.ts.map +0 -1
  179. package/dist/legacy/gKey/type.d.ts +0 -6
  180. package/dist/legacy/gKey/type.d.ts.map +0 -1
  181. package/dist/legacy/language/index.d.ts +0 -3
  182. package/dist/legacy/language/index.d.ts.map +0 -1
  183. package/dist/legacy/language/method.d.ts +0 -4
  184. package/dist/legacy/language/method.d.ts.map +0 -1
  185. package/dist/legacy/language/type.d.ts +0 -12
  186. package/dist/legacy/language/type.d.ts.map +0 -1
  187. package/dist/legacy/platforms/index.d.ts +0 -3
  188. package/dist/legacy/platforms/index.d.ts.map +0 -1
  189. package/dist/legacy/platforms/method.d.ts +0 -4
  190. package/dist/legacy/platforms/method.d.ts.map +0 -1
  191. package/dist/legacy/platforms/type.d.ts +0 -9
  192. package/dist/legacy/platforms/type.d.ts.map +0 -1
  193. package/dist/legacy/products/index.d.ts +0 -3
  194. package/dist/legacy/products/index.d.ts.map +0 -1
  195. package/dist/legacy/products/method.d.ts +0 -4
  196. package/dist/legacy/products/method.d.ts.map +0 -1
  197. package/dist/legacy/products/type.d.ts +0 -24
  198. package/dist/legacy/products/type.d.ts.map +0 -1
  199. package/dist/legacy/promotions/index.d.ts +0 -3
  200. package/dist/legacy/promotions/index.d.ts.map +0 -1
  201. package/dist/legacy/promotions/method.d.ts +0 -4
  202. package/dist/legacy/promotions/method.d.ts.map +0 -1
  203. package/dist/legacy/promotions/type.d.ts +0 -18
  204. package/dist/legacy/promotions/type.d.ts.map +0 -1
  205. package/dist/login/index.d.ts +0 -3
  206. package/dist/login/index.d.ts.map +0 -1
  207. package/dist/login/method.d.ts +0 -23
  208. package/dist/login/method.d.ts.map +0 -1
  209. package/dist/login/type.d.ts.map +0 -1
  210. package/dist/promotion/index.d.ts +0 -3
  211. package/dist/promotion/index.d.ts.map +0 -1
  212. package/dist/promotion/method.d.ts +0 -13
  213. package/dist/promotion/method.d.ts.map +0 -1
  214. package/dist/promotion/type.d.ts.map +0 -1
  215. package/dist/trialGames/index.d.ts +0 -3
  216. package/dist/trialGames/index.d.ts.map +0 -1
  217. package/dist/trialGames/method.d.ts +0 -9
  218. package/dist/trialGames/method.d.ts.map +0 -1
  219. package/dist/trialGames/type.d.ts.map +0 -1
  220. package/dist/util/axiosConfig.d.ts +0 -3
  221. package/dist/util/axiosConfig.d.ts.map +0 -1
@@ -1,26 +1,21 @@
1
- (function(T,Z){typeof exports=="object"&&typeof module<"u"?Z(exports,require("axios"),require("vue"),require("crypto-js")):typeof define=="function"&&define.amd?define(["exports","axios","vue","crypto-js"],Z):(T=typeof globalThis<"u"?globalThis:T||self,Z(T["50p82u21t54k"]={},T.axios,T.Vue,T.CryptoJS))})(this,function(T,Z,ce,q){"use strict";const Et=Object.freeze(Object.defineProperty({__proto__:null,get DefaultHotGamesResponse(){return ut},get getHotGames(){return Mt}},Symbol.toStringTag,{value:"Module"})),Dt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultFishGamesResponse(){return ft},get getFishGames(){return Ft}},Symbol.toStringTag,{value:"Module"})),wt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultTrialGamesResponse(){return ht},get getTrialGames(){return kt}},Symbol.toStringTag,{value:"Module"})),_t=Object.freeze(Object.defineProperty({__proto__:null,get DefaultPromotionResponse(){return lt},get getPromotion(){return qt}},Symbol.toStringTag,{value:"Module"})),Rt=Object.freeze(Object.defineProperty({__proto__:null,get CmsId(){return ct},get DefaultCmsListResponse(){return pt},get getCmsList(){return Ht}},Symbol.toStringTag,{value:"Module"})),xt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultHomeResponse(){return Gt},get GameType(){return Ct},get getHome(){return de}},Symbol.toStringTag,{value:"Module"})),Ot=Object.freeze(Object.defineProperty({__proto__:null,get DefaultCurrentLangResponse(){return Kt},get getCurrentLang(){return ve}},Symbol.toStringTag,{value:"Module"})),At=Object.freeze(Object.defineProperty({__proto__:null,get DefaultGetLocaleResponse(){return Ut},get getGetLocale(){return ye}},Symbol.toStringTag,{value:"Module"})),Bt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultCsLinkResponse(){return zt},get getCsLink(){return me}},Symbol.toStringTag,{value:"Module"})),Pt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultEGameResponse(){return Jt},get getEGame(){return Se}},Symbol.toStringTag,{value:"Module"})),Nt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultGetSettingResponse(){return Zt},get getGetSetting(){return $t}},Symbol.toStringTag,{value:"Module"})),Vt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultGetLoginKeyResponse(){return fe},get getGetLoginKey(){return he}},Symbol.toStringTag,{value:"Module"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,get DefaultGetLoginKeyResponse(){return Ke},get DefaultLoginResponse(){return le},get submitLogin(){return Ue}},Symbol.toStringTag,{value:"Module"})),R=Z.create({baseURL:"",timeout:5e3,headers:{"Content-Type":"application/json"}});R.interceptors.request.use(r=>r,r=>(console.error("Error request:",r.response),Promise.reject(r))),R.interceptors.response.use(r=>r,r=>{const t={status:null,message:"An error occurred"};return r.response?(t.status=r.response.status,t.message=r.response.data.message||r.response.statusText,console.error("Error response:",JSON.stringify(t)),r.response.status===401?console.error("Unauthorized access - redirecting to login."):r.response.status===404?console.error("Resource not found."):r.response.status>=500&&console.error("Server error. Please try again later.")):r.request?console.error("No response received:",r.request):console.error("Error setting up request:",r.message),Promise.reject(t)});const It=ce.ref("");function m(){return It.value===""?0:1}const pe={home:xt,hotGames:Et,fishGames:Dt,trialGames:wt,currentLang:Ot,promotion:_t,getLocale:At,csLink:Bt,eGame:Pt,cmsList:Rt,getSetting:Nt,login:Lt,getLoginKey:Vt},ge={install(r){r.config.globalProperties.$library=pe}},A=r=>{try{const t=JSON.parse(q.AES.decrypt(r,It.value,{format:{stringify:e=>{const n={ct:e.ciphertext.toString(q.enc.Base64)};return e.iv&&(n.iv=e.iv.toString()),e.salt&&(n.s=e.salt.toString()),JSON.stringify(n)},parse:e=>{const n=JSON.parse(e),s=q.lib.CipherParams.create({ciphertext:q.enc.Base64.parse(n.ct)});return n.iv&&(s.iv=q.enc.Hex.parse(n.iv)),n.s&&(s.salt=q.enc.Hex.parse(n.s)),s}}}).toString(q.enc.Utf8));return t!==""?JSON.parse(t):t}catch(t){return console.error(t),""}},ut={status:200,message:"",data:{currentPage:0,data:[],from:0,lastPage:0,nextPageUrl:"",path:"",perPage:0,prevPageUrl:"",to:0,total:0}};async function Mt(){const r=ut;try{const t=await R.get("/apis/hotGames",{params:{render:m()}});let e;return m()?e=JSON.parse(A(t.data)):e=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data={currentPage:e.current_page??0,data:e.data.map(n=>({id:n.id??0,name:n.name??"",pfid:n.pfid??0,ppname:n.ppname??"",code:n.code??"",img:n.img??"",progressive:n.progressive??"",ppid:n.ppid??0,notry:n.notry===1,productCode:n.product_code??"",imgSrc:n.imgSrc??"",imgPf:n.imgPf??"",favouriteFlag:n.favourite_flag===1,platformStatusFlag:n.platform_status_flag??"",platformFlagName:n.platform_flag_name??"",platformStatusParams:{eb:n.platform_status_params.eb??!1,fit:n.platform_status_params.fit??!1,fs:n.platform_status_params.fs??!1},gameId:n.game_id??0})),from:e.from??0,lastPage:e.last_page??0,nextPageUrl:e.next_page_url??"",path:e.path??"",perPage:e.per_page??0,prevPageUrl:e.prev_page_url??"",to:e.to??0,total:e.total??0},r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}const ft={status:200,message:"",data:{hotfish:[],data:[]}};async function Ft(){const r=ft;try{const t=await R.get("/apis/fishGames",{params:{render:m()}});let e;return m()?e=JSON.parse(A(t.data)):e=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data={hotfish:e.hotfish.map(n=>jt(n)),data:e.data.map(n=>jt(n))},r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}const jt=r=>({id:r.id??0,name:r.name??"",ppid:r.pp_id??"",img:r.img??"",desc:r.desc??"",ppname:r.pp_name??"",platformCode:r.platform_code??"",code:r.code??"",flag:r.flag??0,gameId:r.game_id??0,imgSrc:r.imgSrc??"",imgPf:r.imgPf??"",favouriteFlag:r.favourite_flag===1,platformStatusFflag:r.platform_status_Fflag??"",platformFlagName:r.platform_flag_name??"",platformStatusParams:{eb:r.platform_status_params.eb??!1,fit:r.platform_status_params.fit??!1,fs:r.platform_status_params.fs??!1}}),ht={status:200,message:"",data:[]};async function kt(){const r=ht;try{const t=await R.get("/apis/trialGames",{params:{render:m()}});let e;return m()?e=JSON.parse(A(t.data)):e=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data=e.map(n=>({ppid:n.ppid??0,ppname:n.ppname??"",games:n.games.map(s=>({id:s.id??0,name:s.name??"",img:s.img??"",progressive:s.progressive??"",notry:s.notry===1,imgSrc:s.imgSrc??"",imgPf:s.imgPf??"",favouriteFlag:s.favourite_flag===1,platformStatusFflag:s.platform_status_Fflag??"",platformFlagName:s.platform_flag_name??"",platformStatusParams:{eb:s.platform_status_params.eb??!1,fit:s.platform_status_params.fit??!1,fs:s.platform_status_params.fs??!1},ppname:n.ppname??""}))})),r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}const lt={status:200,message:"",data:{objList:[],promoCat:[],resize:0}};async function qt(){const r=lt;try{const t=await R.get("/apis/promotion",{params:{render:m()}});let e;return m()?e=JSON.parse(A(t.data)):e=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data={objList:e.objList.map(n=>({promoIndex:n.promoindex??0,type:n.type??0,thumb:n.thumb??0,title:n.title??"",displayTime:n.display_time??"",handle:n.handle??"",content:n.content??"",langList:n.lang_list??"",agentList:n.agent_list??"",dateCreated:n.datecreated??"",updateBy:n.updateby??"",lastUpdated:n.lastupdated??"",sequence:n.sequence??0,status:n.status===1,timer:n.timer??"",stime:n.stime??"",etime:n.etime??"",smaid:n.smaid??"",companyIndex:n.companyindex??"",fileName:n.filename??"",version:n.version??"",categoryName:n.category_name??"",barImg:n.bar_img??"",buttonImg:n.button_img??"",promoImg:n.promo_image??"",catId:n.catid??"",imageType:n.image_type??"",image:n.image??"",isLink:n.isLink,latestUpdate:n.latestupdate??""})),promoCat:e.promoCat.map(n=>({catId:n.catid??0,name:n.name??"",barImg:n.bar_img??"",buttonImg:n.button_img??""})),resize:e.resize},r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}var ct=(r=>(r[r.AllCategories=0]="AllCategories",r[r.Lotto=2]="Lotto",r[r.LiveCasino=3]="LiveCasino",r[r.SlotGames=4]="SlotGames",r[r.SportsBetting=5]="SportsBetting",r[r.LatestAd=7]="LatestAd",r[r.Promotions=8]="Promotions",r[r.MobileBetting=9]="MobileBetting",r[r.ESports=12]="ESports",r[r.CardGames=13]="CardGames",r[r.FishingGames=14]="FishingGames",r[r.BottomRightAd=16]="BottomRightAd",r[r.LotteryActivity=18]="LotteryActivity",r[r.HomepagePopup=101]="HomepagePopup",r[r.LeftAd=102]="LeftAd",r[r.RightAd=103]="RightAd",r[r.MobileAd=104]="MobileAd",r[r.MobilePopup=105]="MobilePopup",r[r.BottomLeftAd=106]="BottomLeftAd",r[r.InfoGallery=109]="InfoGallery",r[r.AgentBackendAd=114]="AgentBackendAd",r[r.CheckInBanner=123]="CheckInBanner",r[r.PlatformActivities=128]="PlatformActivities",r[r.LotterySlogan=130]="LotterySlogan",r[r.MobileLotterySlogan=131]="MobileLotterySlogan",r[r.PointsMallSlogan=135]="PointsMallSlogan",r))(ct||{});const pt={status:200,message:"",data:{cmsList:[]}};async function Ht(r){const t=pt;try{const e=await R.get(`/apis/cmsList?id=${r}`,{params:{render:m()}});let n;return m()?n=JSON.parse(A(e.data)):n=e.data,e.status!=200?(t.status=e.status,t.message="",t):(t.data={cmsList:n.cmslist.map(s=>({name:s.name??"",content:s.content??"",link:s.link??"",linkTarget:s.link_target??"",updatedOn:s.updated_on??"",idCmsCategory:s.id_cms_category??0,contentOrg:s.content_org??"",linkOrg:s.link_org??""}))},t)}catch(e){const n=e;return t.status=n.status||500,t.message=n.message,t}}const Gt={status:200,message:"",data:{game:{SPORT:[],SPECIAL:[],PVP:[],LIVE:[],EVENT:[],ESPORT:[],EGAME:[],BINGO:[]},mobileBanner:[],announcement:[],alertAnnouncement:[],hotGames:ut,fishGames:ft,trialGames:ht,promotion:lt,cmsList:pt}};async function de(){const r=Gt;try{const[t,e,n,s,i,o]=await Promise.all([R.get("/apis/home",{params:{render:m()}}),Mt(),Ft(),kt(),qt(),Ht(ct.LatestAd)]);let a;return m()?a=JSON.parse(A(t.data)):a=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data={game:{SPORT:a.game.SPORT.map(u=>M(u)),SPECIAL:a.game.SPECIAL.map(u=>M(u)),PVP:a.game.PVP.map(u=>M(u)),LIVE:a.game.LIVE.map(u=>M(u)),EVENT:a.game.EVENT.map(u=>M(u)),ESPORT:a.game.ESPORT.map(u=>M(u)),EGAME:a.game.EGAME.map(u=>M(u)),BINGO:a.game.BINGO.map(u=>M(u))},mobileBanner:a.mobileBanner.map(u=>({name:u.name??"",content:u.content??"",link:u.link??"",linkTarget:u.link_target??"",updatedOn:u.updated_on??"",idCmsCategory:u.id_cms_category??0,contentOrg:u.content_org??""})),announcement:a.announcement.map(u=>({announcementIndex:u.announcement_index??0,announcementEnglish:u.announcement_english??"",announcementSimplified:u.announcement_simplified??"",announcementTraditional:u.announcement_traditional??"",announcementMalay:u.announcement_malay??"",announcementStatus:u.announcement_status==="1",announcementShow:u.announcement_show==="1",announcementAlert:u.announcement_alert==="1",announcementUser:u.announcement_user==="1",announcementSequence:u.announcement_sequence??0,announcementCompany:u.announcement_company==="1",companyIndex:u.companyindex??0,announcementLastUpdated:u.announcement_lastupdated??"",announcementDateCreated:u.announcement_datecreated??"",announcementSmaid:u.announcement_smaid??"",annTimer:u.ann_timer??"",annStart:u.ann_start??"",annEnd:u.ann_end??"",grp:u.grp??"",time:u.time??""})),alertAnnouncement:a.alert_announcement.map(u=>({announcementDateCreated:u.announcement_datecreated??"",announcementSimplified:u.announcement_simplified??""})),hotGames:e,fishGames:n,trialGames:s,promotion:i,cmsList:o},r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}const M=r=>({id:r.id??0,idPlatformMaster:r.id_PlatformMaster??0,idProductMaster:r.id_ProductMaster??0,name:r.name??"",shortName:r.shortName??"",img:r.img??"",mobileUrl:r.mobileUrl??"",url:r.url??"",desc:r.desc??"",seq:r.seq??0,flag:r.flag??0,status:r.status??"",createdBy:r.created_by??0,createdOn:r.created_on??"",categoryID:r.categoryid??0,com:r.com??"",cur:r.cur??"",pt:r.pt??"",ppName:r.pp_name??"",ppImage:r.pp_image??"",platformCode:r.platform_code??"",platformName:r.platform_name??"",classIcon:r.class_icon??"",productCode:r.product_code??"",productName:r.product_name??"",gameID:r.game_id??0,fAuth:r.fAuth??!1,platformStatusParams:{eb:r.platform_status_params.eb??!1,fit:r.platform_status_params.fit??!1,fs:r.platform_status_params.fs??!1},loginFlag:r.login_flag==="1",link:r.link??"",favouriteFlag:r.favourite_flag===1,platformStatusFlag:r.platform_status_flag??"",platformFlagName:r.platform_flag_name??"",homeLogo:r.home_logo??"",imgPf:r.imgPf??"",imgSport:r.imgSport??"",imgTemplate:r.imgTemplate??""});var Ct=(r=>(r.SPORT="SPORT",r.SPECIAL="SPECIAL",r.PVP="PVP",r.LIVE="LIVE",r.EVENT="EVENT",r.ESPORT="ESPORT",r.EGAME="EGAME",r.BINGO="BINGO",r))(Ct||{});const Kt={status:200,message:"",data:""};async function ve(){const r=Kt;try{const t=await R.get("/apis/currentLang",{params:{render:m()}});let e;return m()?e=JSON.parse(A(t.data)):e=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data=e,r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}const Ut={status:200,message:"",data:[]};async function ye(){const r=Ut;try{const t=await R.get("/apis/getLocale",{params:{render:m()}});let e;return m()?e=JSON.parse(A(t.data)):e=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data=[{code:"en",label:e.en.label??""},{code:"zh",label:e.zh.label??""},{code:"ms",label:e.ms.label??""}],r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}const zt={status:200,message:"",data:{liveChat:""}};async function me(){const r=zt;try{const t=await R.get("/apis/cslink",{params:{render:m()}});let e;return m()?e=JSON.parse(A(t.data)):e=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data={liveChat:e.livechat??""},r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}const Jt={status:200,message:"",data:[]};async function Se(r){const t=Jt;try{const e=await R.get(`/apis/egame/json/${r}`,{params:{render:m()}});let n;return m()?n=JSON.parse(A(e.data)):n=e.data,e.status!=200?(t.status=e.status,t.message="",t):(t.data=n.map(s=>({gameId:s.game_id??"",imgSrc:s.imgSrc??"",imgPf:s.imgPf??"",name:s.name??"",favouriteFlag:s.favourite_flag===1,platformStatusFflag:s.platform_status_Fflag??"",platformFlagName:s.platform_flag_name??"",platformStatusParams:{eb:s.platform_status_params.eb??!1,fit:s.platform_status_params.fit??!1,fs:s.platform_status_params.fs??!1},progressive:s.progressive??"",gameCategory:s.game_category??"",ppid:s.pp_id??""})),t)}catch(e){const n=e;return t.status=n.status||500,t.message=n.message,t}}const Zt={status:200,message:"",data:{csrf:"",getCaptcha:"",verificationBeforeLogin:!1,publicKey:"",concantenatedKey:""}};async function $t(r){const t=Zt;try{const e=await R.get("/apis/getSetting",{params:{render:m(),setting:r}});let n;return m()?n=JSON.parse(A(e.data)):n=e.data,e.status!=200?(t.status=e.status,t.message="",t):(t.data={csrf:n.csrf??"",getCaptcha:n.data.CAPTCHA??"",verificationBeforeLogin:n.data["slide-verification"]==="1",publicKey:n.data.encryptkey?n.data.encryptkey.pub.replace(/-----BEGIN PUBLIC KEY-----|-----END PUBLIC KEY-----|\r|\n|=#/g,""):"",concantenatedKey:n.data.encryptkey?Object.keys(n.data.encryptkey.pubarr).join("+"):""},t)}catch(e){const n=e;return t.status=n.status||500,t.message=n.message,t}}var be="0123456789abcdefghijklmnopqrstuvwxyz";function L(r){return be.charAt(r)}function Te(r,t){return r&t}function Q(r,t){return r|t}function Yt(r,t){return r^t}function Xt(r,t){return r&~t}function Ee(r){if(r==0)return-1;var t=0;return r&65535||(r>>=16,t+=16),r&255||(r>>=8,t+=8),r&15||(r>>=4,t+=4),r&3||(r>>=2,t+=2),r&1||++t,t}function De(r){for(var t=0;r!=0;)r&=r-1,++t;return t}var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qt="=";function W(r){var t,e,n="";for(t=0;t+3<=r.length;t+=3)e=parseInt(r.substring(t,t+3),16),n+=C.charAt(e>>6)+C.charAt(e&63);for(t+1==r.length?(e=parseInt(r.substring(t,t+1),16),n+=C.charAt(e<<2)):t+2==r.length&&(e=parseInt(r.substring(t,t+2),16),n+=C.charAt(e>>2)+C.charAt((e&3)<<4));(n.length&3)>0;)n+=Qt;return n}function Wt(r){var t="",e,n=0,s=0;for(e=0;e<r.length&&r.charAt(e)!=Qt;++e){var i=C.indexOf(r.charAt(e));i<0||(n==0?(t+=L(i>>2),s=i&3,n=1):n==1?(t+=L(s<<2|i>>4),s=i&15,n=2):n==2?(t+=L(s),t+=L(i>>2),s=i&3,n=3):(t+=L(s<<2|i>>4),t+=L(i&15),n=0))}return n==1&&(t+=L(s<<2)),t}var K,we={decode:function(r){var t;if(K===void 0){var e="0123456789ABCDEF",n=` \f
2
- \r  \u2028\u2029`;for(K={},t=0;t<16;++t)K[e.charAt(t)]=t;for(e=e.toLowerCase(),t=10;t<16;++t)K[e.charAt(t)]=t;for(t=0;t<n.length;++t)K[n.charAt(t)]=-1}var s=[],i=0,o=0;for(t=0;t<r.length;++t){var a=r.charAt(t);if(a=="=")break;if(a=K[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);i|=a,++o>=2?(s[s.length]=i,i=0,o=0):i<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return s}},H,gt={decode:function(r){var t;if(H===void 0){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
3
- \r  \u2028\u2029`;for(H=Object.create(null),t=0;t<64;++t)H[e.charAt(t)]=t;for(H["-"]=62,H._=63,t=0;t<n.length;++t)H[n.charAt(t)]=-1}var s=[],i=0,o=0;for(t=0;t<r.length;++t){var a=r.charAt(t);if(a=="=")break;if(a=H[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);i|=a,++o>=4?(s[s.length]=i>>16,s[s.length]=i>>8&255,s[s.length]=i&255,i=0,o=0):i<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:s[s.length]=i>>10;break;case 3:s[s.length]=i>>16,s[s.length]=i>>8&255;break}return s},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(r){var t=gt.re.exec(r);if(t)if(t[1])r=t[1];else if(t[2])r=t[2];else throw new Error("RegExp out of sync");return gt.decode(r)}},U=1e13,$=function(){function r(t){this.buf=[+t||0]}return r.prototype.mulAdd=function(t,e){var n=this.buf,s=n.length,i,o;for(i=0;i<s;++i)o=n[i]*t+e,o<U?e=0:(e=0|o/U,o-=e*U),n[i]=o;e>0&&(n[i]=e)},r.prototype.sub=function(t){var e=this.buf,n=e.length,s,i;for(s=0;s<n;++s)i=e[s]-t,i<0?(i+=U,t=1):t=0,e[s]=i;for(;e[e.length-1]===0;)e.pop()},r.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),s=e.length-2;s>=0;--s)n+=(U+e[s]).toString().substring(1);return n},r.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*U+t[n];return e},r.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},r}(),te="…",_e=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Re=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function z(r,t){return r.length>t&&(r=r.substring(0,t)+te),r}var dt=function(){function r(t,e){this.hexDigits="0123456789ABCDEF",t instanceof r?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=e)}return r.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},r.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},r.prototype.hexDump=function(t,e,n){for(var s="",i=t;i<e;++i)if(s+=this.hexByte(this.get(i)),n!==!0)switch(i&15){case 7:s+=" ";break;case 15:s+=`
4
- `;break;default:s+=" "}return s},r.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var s=this.get(n);if(s<32||s>176)return!1}return!0},r.prototype.parseStringISO=function(t,e){for(var n="",s=t;s<e;++s)n+=String.fromCharCode(this.get(s));return n},r.prototype.parseStringUTF=function(t,e){for(var n="",s=t;s<e;){var i=this.get(s++);i<128?n+=String.fromCharCode(i):i>191&&i<224?n+=String.fromCharCode((i&31)<<6|this.get(s++)&63):n+=String.fromCharCode((i&15)<<12|(this.get(s++)&63)<<6|this.get(s++)&63)}return n},r.prototype.parseStringBMP=function(t,e){for(var n="",s,i,o=t;o<e;)s=this.get(o++),i=this.get(o++),n+=String.fromCharCode(s<<8|i);return n},r.prototype.parseTime=function(t,e,n){var s=this.parseStringISO(t,e),i=(n?_e:Re).exec(s);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),s=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(s+=":"+i[5],i[6]&&(s+=":"+i[6],i[7]&&(s+="."+i[7]))),i[8]&&(s+=" UTC",i[8]!="Z"&&(s+=i[8],i[9]&&(s+=":"+i[9]))),s):"Unrecognized time: "+s},r.prototype.parseInteger=function(t,e){for(var n=this.get(t),s=n>127,i=s?255:0,o,a="";n==i&&++t<e;)n=this.get(t);if(o=e-t,o===0)return s?-1:0;if(o>4){for(a=n,o<<=3;!((+a^i)&128);)a=+a<<1,--o;a="("+o+` bit)
5
- `}s&&(n=n-256);for(var u=new $(n),h=t+1;h<e;++h)u.mulAdd(256,this.get(h));return a+u.toString()},r.prototype.parseBitString=function(t,e,n){for(var s=this.get(t),i=(e-t-1<<3)-s,o="("+i+` bit)
6
- `,a="",u=t+1;u<e;++u){for(var h=this.get(u),l=u==e-1?s:0,p=7;p>=l;--p)a+=h>>p&1?"1":"0";if(a.length>n)return o+z(a,n)}return o+a},r.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return z(this.parseStringISO(t,e),n);var s=e-t,i="("+s+` byte)
7
- `;n/=2,s>n&&(e=t+n);for(var o=t;o<e;++o)i+=this.hexByte(this.get(o));return s>n&&(i+=te),i},r.prototype.parseOID=function(t,e,n){for(var s="",i=new $,o=0,a=t;a<e;++a){var u=this.get(a);if(i.mulAdd(128,u&127),o+=7,!(u&128)){if(s==="")if(i=i.simplify(),i instanceof $)i.sub(80),s="2."+i.toString();else{var h=i<80?i<40?0:1:2;s=h+"."+(i-h*40)}else s+="."+i.toString();if(s.length>n)return z(s,n);i=new $,o=0}}return o>0&&(s+=".incomplete"),s},r}(),xe=function(){function r(t,e,n,s,i){if(!(s instanceof ee))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=s,this.sub=i}return r.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},r.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return this.stream.get(e)===0?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return z(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return z(this.stream.parseStringISO(e,e+n),t);case 30:return z(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,this.tag.tagNumber==23)}return null},r.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},r.prototype.toPrettyString=function(t){t===void 0&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(e+=" (encapsulates)"),e+=`
8
- `,this.sub!==null){t+=" ";for(var n=0,s=this.sub.length;n<s;++n)e+=this.sub[n].toPrettyString(t)}return e},r.prototype.posStart=function(){return this.stream.pos},r.prototype.posContent=function(){return this.stream.pos+this.header},r.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},r.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},r.decodeLength=function(t){var e=t.get(),n=e&127;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;e=0;for(var s=0;s<n;++s)e=e*256+t.get();return e},r.prototype.getHexStringValue=function(){var t=this.toHexString(),e=this.header*2,n=this.length*2;return t.substr(e,n)},r.decode=function(t){var e;t instanceof dt?e=t:e=new dt(t,0);var n=new dt(e),s=new ee(e),i=r.decodeLength(e),o=e.pos,a=o-n.pos,u=null,h=function(){var p=[];if(i!==null){for(var v=o+i;e.pos<v;)p[p.length]=r.decode(e);if(e.pos!=v)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var y=r.decode(e);if(y.tag.isEOC())break;p[p.length]=y}i=o-e.pos}catch(S){throw new Error("Exception while decoding undefined length content: "+S)}return p};if(s.tagConstructed)u=h();else if(s.isUniversal()&&(s.tagNumber==3||s.tagNumber==4))try{if(s.tagNumber==3&&e.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=h();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{u=null}if(u===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);e.pos=o+Math.abs(i)}return new r(n,a,i,s,u)},r}(),ee=function(){function r(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=(e&32)!==0,this.tagNumber=e&31,this.tagNumber==31){var n=new $;do e=t.get(),n.mulAdd(128,e&127);while(e&128);this.tagNumber=n.simplify()}}return r.prototype.isUniversal=function(){return this.tagClass===0},r.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},r}(),F,Oe=0xdeadbeefcafe,re=(Oe&16777215)==15715070,x=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Ae=(1<<26)/x[x.length-1],c=function(){function r(t,e,n){t!=null&&(typeof t=="number"?this.fromNumber(t,e,n):e==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,e))}return r.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(t==16)e=4;else if(t==8)e=3;else if(t==2)e=1;else if(t==32)e=5;else if(t==4)e=2;else return this.toRadix(t);var n=(1<<e)-1,s,i=!1,o="",a=this.t,u=this.DB-a*this.DB%e;if(a-- >0)for(u<this.DB&&(s=this[a]>>u)>0&&(i=!0,o=L(s));a>=0;)u<e?(s=(this[a]&(1<<u)-1)<<e-u,s|=this[--a]>>(u+=this.DB-e)):(s=this[a]>>(u-=e)&n,u<=0&&(u+=this.DB,--a)),s>0&&(i=!0),i&&(o+=L(s));return i?o:"0"},r.prototype.negate=function(){var t=g();return r.ZERO.subTo(this,t),t},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(t){var e=this.s-t.s;if(e!=0)return e;var n=this.t;if(e=n-t.t,e!=0)return this.s<0?-e:e;for(;--n>=0;)if((e=this[n]-t[n])!=0)return e;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+et(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(t){var e=g();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(r.ZERO)>0&&t.subTo(e,e),e},r.prototype.modPowInt=function(t,e){var n;return t<256||e.isEven()?n=new ne(e):n=new se(e),this.exp(t,n)},r.prototype.clone=function(){var t=g();return this.copyTo(t),t},r.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},r.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},r.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},r.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n=this.DB-t*this.DB%8,s,i=0;if(t-- >0)for(n<this.DB&&(s=this[t]>>n)!=(this.s&this.DM)>>n&&(e[i++]=s|this.s<<this.DB-n);t>=0;)n<8?(s=(this[t]&(1<<n)-1)<<8-n,s|=this[--t]>>(n+=this.DB-8)):(s=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),s&128&&(s|=-256),i==0&&(this.s&128)!=(s&128)&&++i,(i>0||s!=this.s)&&(e[i++]=s);return e},r.prototype.equals=function(t){return this.compareTo(t)==0},r.prototype.min=function(t){return this.compareTo(t)<0?this:t},r.prototype.max=function(t){return this.compareTo(t)>0?this:t},r.prototype.and=function(t){var e=g();return this.bitwiseTo(t,Te,e),e},r.prototype.or=function(t){var e=g();return this.bitwiseTo(t,Q,e),e},r.prototype.xor=function(t){var e=g();return this.bitwiseTo(t,Yt,e),e},r.prototype.andNot=function(t){var e=g();return this.bitwiseTo(t,Xt,e),e},r.prototype.not=function(){for(var t=g(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},r.prototype.shiftLeft=function(t){var e=g();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},r.prototype.shiftRight=function(t){var e=g();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},r.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+Ee(this[t]);return this.s<0?this.t*this.DB:-1},r.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=De(this[n]^e);return t},r.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?this.s!=0:(this[e]&1<<t%this.DB)!=0},r.prototype.setBit=function(t){return this.changeBit(t,Q)},r.prototype.clearBit=function(t){return this.changeBit(t,Xt)},r.prototype.flipBit=function(t){return this.changeBit(t,Yt)},r.prototype.add=function(t){var e=g();return this.addTo(t,e),e},r.prototype.subtract=function(t){var e=g();return this.subTo(t,e),e},r.prototype.multiply=function(t){var e=g();return this.multiplyTo(t,e),e},r.prototype.divide=function(t){var e=g();return this.divRemTo(t,e,null),e},r.prototype.remainder=function(t){var e=g();return this.divRemTo(t,null,e),e},r.prototype.divideAndRemainder=function(t){var e=g(),n=g();return this.divRemTo(t,e,n),[e,n]},r.prototype.modPow=function(t,e){var n=t.bitLength(),s,i=j(1),o;if(n<=0)return i;n<18?s=1:n<48?s=3:n<144?s=4:n<768?s=5:s=6,n<8?o=new ne(e):e.isEven()?o=new Pe(e):o=new se(e);var a=[],u=3,h=s-1,l=(1<<s)-1;if(a[1]=o.convert(this),s>1){var p=g();for(o.sqrTo(a[1],p);u<=l;)a[u]=g(),o.mulTo(p,a[u-2],a[u]),u+=2}var v=t.t-1,y,S=!0,b=g(),_;for(n=et(t[v])-1;v>=0;){for(n>=h?y=t[v]>>n-h&l:(y=(t[v]&(1<<n+1)-1)<<h-n,v>0&&(y|=t[v-1]>>this.DB+n-h)),u=s;!(y&1);)y>>=1,--u;if((n-=u)<0&&(n+=this.DB,--v),S)a[y].copyTo(i),S=!1;else{for(;u>1;)o.sqrTo(i,b),o.sqrTo(b,i),u-=2;u>0?o.sqrTo(i,b):(_=i,i=b,b=_),o.mulTo(b,a[y],i)}for(;v>=0&&!(t[v]&1<<n);)o.sqrTo(i,b),_=i,i=b,b=_,--n<0&&(n=this.DB-1,--v)}return o.revert(i)},r.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||t.signum()==0)return r.ZERO;for(var n=t.clone(),s=this.clone(),i=j(1),o=j(0),a=j(0),u=j(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),e?((!i.isEven()||!o.isEven())&&(i.addTo(this,i),o.subTo(t,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;s.isEven();)s.rShiftTo(1,s),e?((!a.isEven()||!u.isEven())&&(a.addTo(this,a),u.subTo(t,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);n.compareTo(s)>=0?(n.subTo(s,n),e&&i.subTo(a,i),o.subTo(u,o)):(s.subTo(n,s),e&&a.subTo(i,a),u.subTo(o,u))}if(s.compareTo(r.ONE)!=0)return r.ZERO;if(u.compareTo(t)>=0)return u.subtract(t);if(u.signum()<0)u.addTo(t,u);else return u;return u.signum()<0?u.add(t):u},r.prototype.pow=function(t){return this.exp(t,new Be)},r.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var s=e;e=n,n=s}var i=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},r.prototype.isProbablePrime=function(t){var e,n=this.abs();if(n.t==1&&n[0]<=x[x.length-1]){for(e=0;e<x.length;++e)if(n[0]==x[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<x.length;){for(var s=x[e],i=e+1;i<x.length&&s<Ae;)s*=x[i++];for(s=n.modInt(s);e<i;)if(s%x[e++]==0)return!1}return n.millerRabin(t)},r.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},r.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},r.prototype.fromString=function(t,e){var n;if(e==16)n=4;else if(e==8)n=3;else if(e==256)n=8;else if(e==2)n=1;else if(e==32)n=5;else if(e==4)n=2;else{this.fromRadix(t,e);return}this.t=0,this.s=0;for(var s=t.length,i=!1,o=0;--s>=0;){var a=n==8?+t[s]&255:ae(t,s);if(a<0){t.charAt(s)=="-"&&(i=!0);continue}i=!1,o==0?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,o+=n,o>=this.DB&&(o-=this.DB)}n==8&&+t[0]&128&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),i&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},r.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},r.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},r.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,s=this.DB-n,i=(1<<s)-1,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,u=this.t-1;u>=0;--u)e[u+o+1]=this[u]>>s|a,a=(this[u]&i)<<n;for(var u=o-1;u>=0;--u)e[u]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},r.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){e.t=0;return}var s=t%this.DB,i=this.DB-s,o=(1<<s)-1;e[0]=this[n]>>s;for(var a=n+1;a<this.t;++a)e[a-n-1]|=(this[a]&o)<<i,e[a-n]=this[a]>>s;s>0&&(e[this.t-n-1]|=(this.s&o)<<i),e.t=this.t-n,e.clamp()},r.prototype.subTo=function(t,e){for(var n=0,s=0,i=Math.min(t.t,this.t);n<i;)s+=this[n]-t[n],e[n++]=s&this.DM,s>>=this.DB;if(t.t<this.t){for(s-=t.s;n<this.t;)s+=this[n],e[n++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;n<t.t;)s-=t[n],e[n++]=s&this.DM,s>>=this.DB;s-=t.s}e.s=s<0?-1:0,s<-1?e[n++]=this.DV+s:s>0&&(e[n++]=s),e.t=n,e.clamp()},r.prototype.multiplyTo=function(t,e){var n=this.abs(),s=t.abs(),i=n.t;for(e.t=i+s.t;--i>=0;)e[i]=0;for(i=0;i<s.t;++i)e[i+n.t]=n.am(0,s[i],e,i,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&r.ZERO.subTo(e,e)},r.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var s=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,s,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},r.prototype.divRemTo=function(t,e,n){var s=t.abs();if(!(s.t<=0)){var i=this.abs();if(i.t<s.t){e!=null&&e.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=g());var o=g(),a=this.s,u=t.s,h=this.DB-et(s[s.t-1]);h>0?(s.lShiftTo(h,o),i.lShiftTo(h,n)):(s.copyTo(o),i.copyTo(n));var l=o.t,p=o[l-1];if(p!=0){var v=p*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),y=this.FV/v,S=(1<<this.F1)/v,b=1<<this.F2,_=n.t,I=_-l,D=e??g();for(o.dlShiftTo(I,D),n.compareTo(D)>=0&&(n[n.t++]=1,n.subTo(D,n)),r.ONE.dlShiftTo(l,D),D.subTo(o,o);o.t<l;)o[o.t++]=0;for(;--I>=0;){var N=n[--_]==p?this.DM:Math.floor(n[_]*y+(n[_-1]+b)*S);if((n[_]+=o.am(0,N,n,I,0,l))<N)for(o.dlShiftTo(I,D),n.subTo(D,n);n[_]<--N;)n.subTo(D,n)}e!=null&&(n.drShiftTo(l,e),a!=u&&r.ZERO.subTo(e,e)),n.t=l,n.clamp(),h>0&&n.rShiftTo(h,n),a<0&&r.ZERO.subTo(n,n)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var e=t&3;return e=e*(2-(t&15)*e)&15,e=e*(2-(t&255)*e)&255,e=e*(2-((t&65535)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e},r.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},r.prototype.exp=function(t,e){if(t>4294967295||t<1)return r.ONE;var n=g(),s=g(),i=e.convert(this),o=et(t)-1;for(i.copyTo(n);--o>=0;)if(e.sqrTo(n,s),(t&1<<o)>0)e.mulTo(s,i,n);else{var a=n;n=s,s=a}return e.revert(n)},r.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},r.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),s=j(n),i=g(),o=g(),a="";for(this.divRemTo(s,i,o);i.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,i.divRemTo(s,i,o);return o.intValue().toString(t)+a},r.prototype.fromRadix=function(t,e){this.fromInt(0),e==null&&(e=10);for(var n=this.chunkSize(e),s=Math.pow(e,n),i=!1,o=0,a=0,u=0;u<t.length;++u){var h=ae(t,u);if(h<0){t.charAt(u)=="-"&&this.signum()==0&&(i=!0);continue}a=e*a+h,++o>=n&&(this.dMultiply(s),this.dAddOffset(a,0),o=0,a=0)}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(a,0)),i&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(t,e,n){if(typeof e=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),Q,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(r.ONE.shiftLeft(t-1),this);else{var s=[],i=t&7;s.length=(t>>3)+1,e.nextBytes(s),i>0?s[0]&=(1<<i)-1:s[0]=0,this.fromString(s,256)}},r.prototype.bitwiseTo=function(t,e,n){var s,i,o=Math.min(t.t,this.t);for(s=0;s<o;++s)n[s]=e(this[s],t[s]);if(t.t<this.t){for(i=t.s&this.DM,s=o;s<this.t;++s)n[s]=e(this[s],i);n.t=this.t}else{for(i=this.s&this.DM,s=o;s<t.t;++s)n[s]=e(i,t[s]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},r.prototype.changeBit=function(t,e){var n=r.ONE.shiftLeft(t);return this.bitwiseTo(n,e,n),n},r.prototype.addTo=function(t,e){for(var n=0,s=0,i=Math.min(t.t,this.t);n<i;)s+=this[n]+t[n],e[n++]=s&this.DM,s>>=this.DB;if(t.t<this.t){for(s+=t.s;n<this.t;)s+=this[n],e[n++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;n<t.t;)s+=t[n],e[n++]=s&this.DM,s>>=this.DB;s+=t.s}e.s=s<0?-1:0,s>0?e[n++]=s:s<-1&&(e[n++]=this.DV+s),e.t=n,e.clamp()},r.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(t,e){if(t!=0){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},r.prototype.multiplyLowerTo=function(t,e,n){var s=Math.min(this.t+t.t,e);for(n.s=0,n.t=s;s>0;)n[--s]=0;for(var i=n.t-this.t;s<i;++s)n[s+this.t]=this.am(0,t[s],n,s,0,this.t);for(var i=Math.min(t.t,e);s<i;++s)this.am(0,t[s],n,s,0,e-s);n.clamp()},r.prototype.multiplyUpperTo=function(t,e,n){--e;var s=n.t=this.t+t.t-e;for(n.s=0;--s>=0;)n[s]=0;for(s=Math.max(e-this.t,0);s<t.t;++s)n[this.t+s-e]=this.am(e-s,t[s],n,0,0,this.t+s-e);n.clamp(),n.drShiftTo(1,n)},r.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(e==0)n=this[0]%t;else for(var s=this.t-1;s>=0;--s)n=(e*n+this[s])%t;return n},r.prototype.millerRabin=function(t){var e=this.subtract(r.ONE),n=e.getLowestSetBit();if(n<=0)return!1;var s=e.shiftRight(n);t=t+1>>1,t>x.length&&(t=x.length);for(var i=g(),o=0;o<t;++o){i.fromInt(x[Math.floor(Math.random()*x.length)]);var a=i.modPow(s,this);if(a.compareTo(r.ONE)!=0&&a.compareTo(e)!=0){for(var u=1;u++<n&&a.compareTo(e)!=0;)if(a=a.modPowInt(2,this),a.compareTo(r.ONE)==0)return!1;if(a.compareTo(e)!=0)return!1}}return!0},r.prototype.square=function(){var t=g();return this.squareTo(t),t},r.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),s=t.s<0?t.negate():t.clone();if(n.compareTo(s)<0){var i=n;n=s,s=i}var o=n.getLowestSetBit(),a=s.getLowestSetBit();if(a<0){e(n);return}o<a&&(a=o),a>0&&(n.rShiftTo(a,n),s.rShiftTo(a,s));var u=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=s.getLowestSetBit())>0&&s.rShiftTo(o,s),n.compareTo(s)>=0?(n.subTo(s,n),n.rShiftTo(1,n)):(s.subTo(n,s),s.rShiftTo(1,s)),n.signum()>0?setTimeout(u,0):(a>0&&s.lShiftTo(a,s),setTimeout(function(){e(s)},0))};setTimeout(u,10)},r.prototype.fromNumberAsync=function(t,e,n,s){if(typeof e=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),Q,this),this.isEven()&&this.dAddOffset(1,0);var i=this,o=function(){i.dAddOffset(2,0),i.bitLength()>t&&i.subTo(r.ONE.shiftLeft(t-1),i),i.isProbablePrime(e)?setTimeout(function(){s()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],u=t&7;a.length=(t>>3)+1,e.nextBytes(a),u>0?a[0]&=(1<<u)-1:a[0]=0,this.fromString(a,256)}},r}(),Be=function(){function r(){}return r.prototype.convert=function(t){return t},r.prototype.revert=function(t){return t},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},r.prototype.sqrTo=function(t,e){t.squareTo(e)},r}(),ne=function(){function r(t){this.m=t}return r.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},r.prototype.revert=function(t){return t},r.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r}(),se=function(){function r(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return r.prototype.convert=function(t){var e=g();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(c.ZERO)>0&&this.m.subTo(e,e),e},r.prototype.revert=function(t){var e=g();return t.copyTo(e),this.reduce(e),e},r.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=t[e]&32767,s=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=e+this.m.t,t[n]+=this.m.am(0,s,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r}(),Pe=function(){function r(t){this.m=t,this.r2=g(),this.q3=g(),c.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return r.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=g();return t.copyTo(e),this.reduce(e),e},r.prototype.revert=function(t){return t},r.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},r.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r}();function g(){return new c(null)}function E(r,t){return new c(r,t)}var ie=typeof navigator<"u";ie&&re&&navigator.appName=="Microsoft Internet Explorer"?(c.prototype.am=function(t,e,n,s,i,o){for(var a=e&32767,u=e>>15;--o>=0;){var h=this[t]&32767,l=this[t++]>>15,p=u*h+l*a;h=a*h+((p&32767)<<15)+n[s]+(i&1073741823),i=(h>>>30)+(p>>>15)+u*l+(i>>>30),n[s++]=h&1073741823}return i},F=30):ie&&re&&navigator.appName!="Netscape"?(c.prototype.am=function(t,e,n,s,i,o){for(;--o>=0;){var a=e*this[t++]+n[s]+i;i=Math.floor(a/67108864),n[s++]=a&67108863}return i},F=26):(c.prototype.am=function(t,e,n,s,i,o){for(var a=e&16383,u=e>>14;--o>=0;){var h=this[t]&16383,l=this[t++]>>14,p=u*h+l*a;h=a*h+((p&16383)<<14)+n[s]+i,i=(h>>28)+(p>>14)+u*l,n[s++]=h&268435455}return i},F=28),c.prototype.DB=F,c.prototype.DM=(1<<F)-1,c.prototype.DV=1<<F;var vt=52;c.prototype.FV=Math.pow(2,vt),c.prototype.F1=vt-F,c.prototype.F2=2*F-vt;var tt=[],J,B;for(J=48,B=0;B<=9;++B)tt[J++]=B;for(J=97,B=10;B<36;++B)tt[J++]=B;for(J=65,B=10;B<36;++B)tt[J++]=B;function ae(r,t){var e=tt[r.charCodeAt(t)];return e??-1}function j(r){var t=g();return t.fromInt(r),t}function et(r){var t=1,e;return(e=r>>>16)!=0&&(r=e,t+=16),(e=r>>8)!=0&&(r=e,t+=8),(e=r>>4)!=0&&(r=e,t+=4),(e=r>>2)!=0&&(r=e,t+=2),(e=r>>1)!=0&&(r=e,t+=1),t}c.ZERO=j(0),c.ONE=j(1);var Ne=function(){function r(){this.i=0,this.j=0,this.S=[]}return r.prototype.init=function(t){var e,n,s;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,s=this.S[e],this.S[e]=this.S[n],this.S[n]=s;this.i=0,this.j=0},r.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},r}();function Ve(){return new Ne}var oe=256,rt,k=null,P;if(k==null){k=[],P=0;var nt=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var yt=new Uint32Array(256);for(window.crypto.getRandomValues(yt),nt=0;nt<yt.length;++nt)k[P++]=yt[nt]&255}var st=0,it=function(r){if(st=st||0,st>=256||P>=oe){window.removeEventListener?window.removeEventListener("mousemove",it,!1):window.detachEvent&&window.detachEvent("onmousemove",it);return}try{var t=r.x+r.y;k[P++]=t&255,st+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",it,!1):window.attachEvent&&window.attachEvent("onmousemove",it))}function Le(){if(rt==null){for(rt=Ve();P<oe;){var r=Math.floor(65536*Math.random());k[P++]=r&255}for(rt.init(k),P=0;P<k.length;++P)k[P]=0;P=0}return rt.next()}var mt=function(){function r(){}return r.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Le()},r}();function Ie(r,t){if(t<r.length+22)return console.error("Message too long for RSA"),null;for(var e=t-r.length-6,n="",s=0;s<e;s+=2)n+="ff";var i="0001"+n+"00"+r;return E(i,16)}function Me(r,t){if(t<r.length+11)return console.error("Message too long for RSA"),null;for(var e=[],n=r.length-1;n>=0&&t>0;){var s=r.charCodeAt(n--);s<128?e[--t]=s:s>127&&s<2048?(e[--t]=s&63|128,e[--t]=s>>6|192):(e[--t]=s&63|128,e[--t]=s>>6&63|128,e[--t]=s>>12|224)}e[--t]=0;for(var i=new mt,o=[];t>2;){for(o[0]=0;o[0]==0;)i.nextBytes(o);e[--t]=o[0]}return e[--t]=2,e[--t]=0,new c(e)}var Fe=function(){function r(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return r.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},r.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},r.prototype.setPublic=function(t,e){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=E(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},r.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=Me(t,e);if(n==null)return null;var s=this.doPublic(n);if(s==null)return null;for(var i=s.toString(16),o=i.length,a=0;a<e*2-o;a++)i="0"+i;return i},r.prototype.setPrivate=function(t,e,n){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=E(t,16),this.e=parseInt(e,16),this.d=E(n,16)):console.error("Invalid RSA private key")},r.prototype.setPrivateEx=function(t,e,n,s,i,o,a,u){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=E(t,16),this.e=parseInt(e,16),this.d=E(n,16),this.p=E(s,16),this.q=E(i,16),this.dmp1=E(o,16),this.dmq1=E(a,16),this.coeff=E(u,16)):console.error("Invalid RSA private key")},r.prototype.generate=function(t,e){var n=new mt,s=t>>1;this.e=parseInt(e,16);for(var i=new c(e,16);;){for(;this.p=new c(t-s,1,n),!(this.p.subtract(c.ONE).gcd(i).compareTo(c.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new c(s,1,n),!(this.q.subtract(c.ONE).gcd(i).compareTo(c.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(c.ONE),u=this.q.subtract(c.ONE),h=a.multiply(u);if(h.gcd(i).compareTo(c.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(h),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}},r.prototype.decrypt=function(t){var e=E(t,16),n=this.doPrivate(e);return n==null?null:je(n,this.n.bitLength()+7>>3)},r.prototype.generateAsync=function(t,e,n){var s=new mt,i=t>>1;this.e=parseInt(e,16);var o=new c(e,16),a=this,u=function(){var h=function(){if(a.p.compareTo(a.q)<=0){var v=a.p;a.p=a.q,a.q=v}var y=a.p.subtract(c.ONE),S=a.q.subtract(c.ONE),b=y.multiply(S);b.gcd(o).compareTo(c.ONE)==0?(a.n=a.p.multiply(a.q),a.d=o.modInverse(b),a.dmp1=a.d.mod(y),a.dmq1=a.d.mod(S),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(u,0)},l=function(){a.q=g(),a.q.fromNumberAsync(i,1,s,function(){a.q.subtract(c.ONE).gcda(o,function(v){v.compareTo(c.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(h,0):setTimeout(l,0)})})},p=function(){a.p=g(),a.p.fromNumberAsync(t-i,1,s,function(){a.p.subtract(c.ONE).gcda(o,function(v){v.compareTo(c.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(u,0)},r.prototype.sign=function(t,e,n){var s=ke(n),i=s+e(t).toString(),o=Ie(i,this.n.bitLength()/4);if(o==null)return null;var a=this.doPrivate(o);if(a==null)return null;var u=a.toString(16);return u.length&1?"0"+u:u},r.prototype.verify=function(t,e,n){var s=E(e,16),i=this.doPublic(s);if(i==null)return null;var o=i.toString(16).replace(/^1f+00/,""),a=qe(o);return a==n(t).toString()},r}();function je(r,t){for(var e=r.toByteArray(),n=0;n<e.length&&e[n]==0;)++n;if(e.length-n!=t-1||e[n]!=2)return null;for(++n;e[n]!=0;)if(++n>=e.length)return null;for(var s="";++n<e.length;){var i=e[n]&255;i<128?s+=String.fromCharCode(i):i>191&&i<224?(s+=String.fromCharCode((i&31)<<6|e[n+1]&63),++n):(s+=String.fromCharCode((i&15)<<12|(e[n+1]&63)<<6|e[n+2]&63),n+=2)}return s}var at={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ke(r){return at[r]||""}function qe(r){for(var t in at)if(at.hasOwnProperty(t)){var e=at[t],n=e.length;if(r.substr(0,n)==e)return r.substr(n)}return r}/*!
9
- Copyright (c) 2011, Yahoo! Inc. All rights reserved.
10
- Code licensed under the BSD License:
11
- http://developer.yahoo.com/yui/license.html
12
- version: 2.9.0
13
- */var w={};w.lang={extend:function(r,t,e){if(!t||!r)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var n=function(){};if(n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r,r.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),e){var s;for(s in e)r.prototype[s]=e[s];var i=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(a,u){for(s=0;s<o.length;s=s+1){var h=o[s],l=u[h];typeof l=="function"&&l!=Object.prototype[h]&&(a[h]=l)}})}catch{}i(r.prototype,e)}}};/**
1
+ (function(T,Z){typeof exports=="object"&&typeof module<"u"?Z(exports,require("vue"),require("crypto-js")):typeof define=="function"&&define.amd?define(["exports","vue","crypto-js"],Z):(T=typeof globalThis<"u"?globalThis:T||self,Z(T["50p82u21t54k"]={},T.Vue,T.CryptoJS))})(this,(function(T,Z,k){"use strict";const yt=Object.freeze(Object.defineProperty({__proto__:null,get GameType(){return Lt},get homeApi(){return be}},Symbol.toStringTag,{value:"Module"})),mt=Object.freeze(Object.defineProperty({__proto__:null,get hotGamesApi(){return Ee}},Symbol.toStringTag,{value:"Module"})),St=Object.freeze(Object.defineProperty({__proto__:null,get fishGamesApi(){return we}},Symbol.toStringTag,{value:"Module"})),bt=Object.freeze(Object.defineProperty({__proto__:null,get trialGamesApi(){return De}},Symbol.toStringTag,{value:"Module"})),Tt=Object.freeze(Object.defineProperty({__proto__:null,get currentLangApi(){return _e}},Symbol.toStringTag,{value:"Module"})),Et=Object.freeze(Object.defineProperty({__proto__:null,get promotionApi(){return xe}},Symbol.toStringTag,{value:"Module"})),wt=Object.freeze(Object.defineProperty({__proto__:null,get getLocaleApi(){return Ae}},Symbol.toStringTag,{value:"Module"})),Dt=Object.freeze(Object.defineProperty({__proto__:null,get csLinkApi(){return Re}},Symbol.toStringTag,{value:"Module"})),_t=Object.freeze(Object.defineProperty({__proto__:null,get eGameApi(){return Oe}},Symbol.toStringTag,{value:"Module"})),xt=Object.freeze(Object.defineProperty({__proto__:null,get cmsListApi(){return Be}},Symbol.toStringTag,{value:"Module"})),At=Object.freeze(Object.defineProperty({__proto__:null,get getSettingApi(){return Ie}},Symbol.toStringTag,{value:"Module"})),Rt=Object.freeze(Object.defineProperty({__proto__:null,get getLoginKeyApi(){return ce}},Symbol.toStringTag,{value:"Module"})),Ot=Object.freeze(Object.defineProperty({__proto__:null,get loginApi(){return gr}},Symbol.toStringTag,{value:"Module"})),Bt=Z.ref("");function x(){return Bt.value===""?0:1}const de={home:yt,hotGames:mt,fishGames:St,trialGames:bt,currentLang:Tt,promotion:Et,getLocale:wt,csLink:Dt,eGame:_t,cmsList:xt,getSetting:At,login:Ot,getLoginKey:Rt},ve={install(n){n.config.globalProperties.$library=de}},ye=n=>{try{return atob(n)}catch(t){return console.error("Failed to decode Base64:",t),""}},It=n=>{try{const t=JSON.parse(k.AES.decrypt(n,Bt.value,{format:{stringify:e=>{const r={ct:e.ciphertext.toString(k.enc.Base64)};return e.iv&&(r.iv=e.iv.toString()),e.salt&&(r.s=e.salt.toString()),JSON.stringify(r)},parse:e=>{const r=JSON.parse(e),i=k.lib.CipherParams.create({ciphertext:k.enc.Base64.parse(r.ct)});return r.iv&&(i.iv=k.enc.Hex.parse(r.iv)),r.s&&(i.salt=k.enc.Hex.parse(r.s)),i}}}).toString(k.enc.Utf8));return t!==""?JSON.parse(t):t}catch(t){return console.error(t),""}},Pt=n=>new URLSearchParams(Object.entries(n).map(([t,e])=>[t,String(e)])),O=async(n,t=null)=>{let e=n;t&&(e=`${e}?${Pt(t)}`);const r=await Vt(e,{method:"GET",headers:Nt(),credentials:"include"});if(!r.ok){const s=await Ct(r);return Promise.reject(s)}return{data:await(x()?It(r):ft(r)),status:r.status,msg:r.statusText,headers:r.headers,ok:r.ok}},me=async(n,t,e=null)=>{let r=n;e&&(r=`${r}?${Pt(e)}`);const i=await Vt(r,{method:"POST",headers:Nt(),body:JSON.stringify(t),credentials:"include"});if(!i.ok){const h=await Ct(i);return Promise.reject(h)}const s=await(x()?It(i):ft(i));if(!s)return{data:{},status:i.status,msg:i.statusText,headers:i.headers,ok:i.ok};const o=(Array.isArray(s==null?void 0:s.responses)?s.responses.filter(h=>h==null?void 0:h.attributes):[])[0];return{data:o?JSON.parse(ye(o.attributes)):s,status:i.status,msg:i.statusText,headers:i.headers,ok:i.ok}},Vt=async(n,t,e=29e3)=>{const r=new AbortController,i=setTimeout(()=>r.abort(),e);try{return await fetch(n,{...t,signal:r.signal})}finally{clearTimeout(i)}},Nt=()=>{const n=localStorage.getItem("token");return{"Content-Type":"application/json","X-XSRF-TOKEN":Se("XSRF-TOKEN"),...n?{Authorization:`Bearer ${n}`}:{}}},Se=n=>{const t=document.cookie.match(new RegExp("(^| )"+n+"=([^;]+)"));return t?decodeURIComponent(t[2]):""},ft=async n=>{try{return n.status===204||n.headers.get("content-length")==="0"?null:await n.json()}catch{return null}},Ct=async n=>{const t=await ft(n),e={status:n.status,message:(t==null?void 0:t.message)||n.statusText||"An error occurred"};return console.error("Error response:",JSON.stringify(e)),n.status===401?console.error("Unauthorized access - redirecting to login."):n.status===404?console.error("Resource not found."):n.status>=500&&console.error("Server error. Please try again later."),e},jt={data:{game:{},mobileBanner:[],announcement:[],alertAnnouncement:[]}},be=async()=>{let n={status:200,message:"",...jt};try{const e=(await O("/apis/home",{render:x(),json:1})).data;n.data={game:Object.fromEntries(Object.entries(e.game).map(([r,i])=>[r,i.map(s=>Te(s))])),mobileBanner:e.mobileBanner.map(r=>({name:r.name??"",content:r.content??"",link:r.link??"",linkTarget:r.link_target??"",updatedOn:r.updated_on??"",idCmsCategory:r.id_cms_category??0,contentOrg:r.content_org??""})),announcement:e.announcement.map(r=>({announcementIndex:r.announcement_index??0,announcementEnglish:r.announcement_english??"",announcementSimplified:r.announcement_simplified??"",announcementTraditional:r.announcement_traditional??"",announcementMalay:r.announcement_malay??"",announcementStatus:r.announcement_status==="1",announcementShow:r.announcement_show==="1",announcementAlert:r.announcement_alert==="1",announcementUser:r.announcement_user==="1",announcementSequence:r.announcement_sequence??0,announcementCompany:r.announcement_company==="1",companyIndex:r.companyindex??0,announcementLastUpdated:r.announcement_lastupdated??"",announcementDateCreated:r.announcement_datecreated??"",announcementSmaid:r.announcement_smaid??"",annTimer:r.ann_timer??"",annStart:r.ann_start??"",annEnd:r.ann_end??"",grp:r.grp??"",time:r.time??""})),alertAnnouncement:e.alert_announcement.map(r=>({announcementDateCreated:r.announcement_datecreated??"",announcementSimplified:r.announcement_simplified??""}))}}catch(t){n={status:t.status||500,message:t.message,...jt}}return n},Te=n=>({id:n.id??0,idPlatformMaster:n.id_PlatformMaster??0,idProductMaster:n.id_ProductMaster??0,name:n.name??"",shortName:n.shortName??"",img:n.img??"",mobileUrl:n.mobileUrl??"",url:n.url??"",desc:n.desc??"",seq:n.seq??0,flag:n.flag??0,status:n.status??"",createdBy:n.created_by??0,createdOn:n.created_on??"",categoryID:n.categoryid??0,com:n.com??"",cur:n.cur??"",pt:n.pt??"",ppName:n.pp_name??"",ppImage:n.pp_image??"",platformCode:n.platform_code??"",platformName:n.platform_name??"",classIcon:n.class_icon??"",productCode:n.product_code??"",productName:n.product_name??"",gameID:n.game_id??0,fAuth:n.fAuth??!1,platformStatusParams:{eb:n.platform_status_params.eb??!1,fit:n.platform_status_params.fit??!1,fs:n.platform_status_params.fs??!1},loginFlag:n.login_flag==="1",link:n.link??"",favouriteFlag:n.favourite_flag===1,platformStatusFlag:n.platform_status_flag??"",platformFlagName:n.platform_flag_name??"",homeLogo:n.home_logo??"",imgPf:n.imgPf??"",imgSport:n.imgSport??"",imgTemplate:n.imgTemplate??""});var Lt=(n=>(n.SPORT="SPORT",n.SPECIAL="SPECIAL",n.PVP="PVP",n.LIVE="LIVE",n.EVENT="EVENT",n.ESPORT="ESPORT",n.EGAME="EGAME",n.BINGO="BINGO",n))(Lt||{});const Mt={data:{currentPage:0,data:[],from:0,lastPage:0,nextPageUrl:"",path:"",perPage:0,prevPageUrl:"",to:0,total:0}},Ee=async()=>{let n={status:200,message:"",...Mt};try{const e=(await O("/apis/hotGames",{render:x(),json:1})).data;n.data={currentPage:e.current_page??0,data:e.data.map(r=>({id:r.id??0,name:r.name??"",pfid:r.pfid??0,ppname:r.ppname??"",code:r.code??"",img:r.img??"",progressive:r.progressive??"",ppid:r.ppid??0,notry:r.notry===1,productCode:r.product_code??"",imgSrc:r.imgSrc??"",imgPf:r.imgPf??"",favouriteFlag:r.favourite_flag===1,platformStatusFlag:r.platform_status_flag??"",platformFlagName:r.platform_flag_name??"",platformStatusParams:{eb:r.platform_status_params.eb??!1,fit:r.platform_status_params.fit??!1,fs:r.platform_status_params.fs??!1},gameId:r.game_id??0})),from:e.from??0,lastPage:e.last_page??0,nextPageUrl:e.next_page_url??"",path:e.path??"",perPage:e.per_page??0,prevPageUrl:e.prev_page_url??"",to:e.to??0,total:e.total??0}}catch(t){n={status:t.status||500,message:t.message,...Mt}}return n},kt={data:{hotfish:[],data:[]}},we=async()=>{let n={status:200,message:"",...kt};try{const e=(await O("/apis/fishGames",{render:x(),json:1})).data;n.data={hotfish:e.hotfish.map(r=>Ft(r)),data:e.data.map(r=>Ft(r))}}catch(t){n={status:t.status||500,message:t.message,...kt}}return n},Ft=n=>({id:n.id??0,name:n.name??"",ppid:n.pp_id??"",img:n.img??"",desc:n.desc??"",ppname:n.pp_name??"",platformCode:n.platform_code??"",code:n.code??"",flag:n.flag??0,gameId:n.game_id??0,imgSrc:n.imgSrc??"",imgPf:n.imgPf??"",favouriteFlag:n.favourite_flag===1,platformStatusFflag:n.platform_status_Fflag??"",platformFlagName:n.platform_flag_name??"",platformStatusParams:{eb:n.platform_status_params.eb??!1,fit:n.platform_status_params.fit??!1,fs:n.platform_status_params.fs??!1}}),qt={data:[]},De=async()=>{let n={status:200,message:"",...qt};try{const e=(await O("/apis/trialGames",{render:x(),json:1})).data;n.data=e.map(r=>({ppid:r.ppid??0,ppname:r.ppname??"",games:r.games.map(i=>({id:i.id??0,name:i.name??"",img:i.img??"",progressive:i.progressive??"",notry:i.notry===1,imgSrc:i.imgSrc??"",imgPf:i.imgPf??"",favouriteFlag:i.favourite_flag===1,platformStatusFflag:i.platform_status_Fflag??"",platformFlagName:i.platform_flag_name??"",platformStatusParams:{eb:i.platform_status_params.eb??!1,fit:i.platform_status_params.fit??!1,fs:i.platform_status_params.fs??!1},ppname:r.ppname??""}))}))}catch(t){n={status:t.status||500,message:t.message,...qt}}return n},Ht={data:{lang:""}},_e=async()=>{let n={status:200,message:"",...Ht};try{const e=(await O("/apis/currentLang",{render:x(),json:1})).data;n.data={lang:e}}catch(t){n={status:t.status||500,message:t.message,...Ht}}return n},Kt={data:{objList:[],promoCat:[],resize:0}},xe=async()=>{let n={status:200,message:"",...Kt};try{const e=(await O("/apis/promotion",{render:x(),json:1})).data;n.data={objList:e.objList.map(r=>({promoIndex:r.promoindex??0,type:r.type??0,thumb:r.thumb??0,title:r.title??"",displayTime:r.display_time??"",handle:r.handle??"",content:r.content??"",langList:r.lang_list??"",agentList:r.agent_list??"",dateCreated:r.datecreated??"",updateBy:r.updateby??"",lastUpdated:r.lastupdated??"",sequence:r.sequence??0,status:r.status===1,timer:r.timer??"",stime:r.stime??"",etime:r.etime??"",smaid:r.smaid??"",companyIndex:r.companyindex??"",fileName:r.filename??"",version:r.version??"",categoryName:r.category_name??"",barImg:r.bar_img??"",buttonImg:r.button_img??"",promoImg:r.promo_image??"",catId:r.catid??"",imageType:r.image_type??"",image:r.image??"",isLink:r.isLink,latestUpdate:r.latestupdate??""})),promoCat:e.promoCat.map(r=>({catId:r.catid??0,name:r.name??"",barImg:r.bar_img??"",buttonImg:r.button_img??""})),resize:e.resize}}catch(t){n={status:t.status||500,message:t.message,...Kt}}return n},Ut={data:[]},Ae=async()=>{let n={status:200,message:"",...Ut};try{const e=(await O("/apis/getLocale",{render:x(),json:1})).data,r=[];Object.entries(e).map(([i,s])=>r.push({code:i,label:s.label})),n.data=r}catch(t){n={status:t.status||500,message:t.message,...Ut}}return n},Gt={data:{liveChat:""}},Re=async()=>{let n={status:200,message:"",...Gt};try{const e=(await O("/apis/cslink",{render:x(),json:1})).data;n.data={liveChat:e.livechat??""}}catch(t){n={status:t.status||500,message:t.message,...Gt}}return n},zt={data:{eGameList:[]}},Oe=async n=>{let t={status:200,message:"",...zt};try{const r=(await O(`/apis/egame/json/${n}`,{render:x(),json:1})).data;t.data={eGameList:r.map(i=>({gameId:i.game_id??"",imgSrc:i.imgSrc??"",imgPf:i.imgPf??"",name:i.name??"",favouriteFlag:i.favourite_flag===1,platformStatusFflag:i.platform_status_Fflag??"",platformFlagName:i.platform_flag_name??"",platformStatusParams:{eb:i.platform_status_params.eb??!1,fit:i.platform_status_params.fit??!1,fs:i.platform_status_params.fs??!1},progressive:i.progressive??"",gameCategory:i.game_category??"",ppid:i.pp_id??""}))}}catch(e){t={status:e.status||500,message:e.message,...zt}}return t},Zt={data:{mobileBanner:[]}},Be=async()=>{let n={status:200,message:"",...Zt};try{const e=(await O("/apis/cmsList",{render:x(),json:1})).data;n.data={mobileBanner:e.results.mobileBanner.map(r=>r.content)}}catch(t){n={status:t.status||500,message:t.message,...Zt}}return n},$t={data:{csrf:"",getCaptcha:"",verificationBeforeLogin:!1,publicKey:"",concantenatedKey:""}},Ie=async n=>{let t={status:200,message:"",...$t};try{const r=(await O("/apis/getSetting",{setting:`${n}`,render:x(),json:1})).data;t.data={csrf:r.csrf??"",getCaptcha:r.data.CAPTCHA??"",verificationBeforeLogin:r.data["slide-verification"]==="1",publicKey:r.data.encryptkey?r.data.encryptkey.pub.replace(/-----BEGIN PUBLIC KEY-----|-----END PUBLIC KEY-----|\r|\n|=#/g,""):"",concantenatedKey:r.data.encryptkey?Object.keys(r.data.encryptkey.pubarr).join("+"):""}}catch(e){t={status:e.status||500,message:e.message,...$t}}return t};var Pe="0123456789abcdefghijklmnopqrstuvwxyz";function C(n){return Pe.charAt(n)}function Ve(n,t){return n&t}function Q(n,t){return n|t}function Jt(n,t){return n^t}function Yt(n,t){return n&~t}function Ne(n){if(n==0)return-1;var t=0;return(n&65535)==0&&(n>>=16,t+=16),(n&255)==0&&(n>>=8,t+=8),(n&15)==0&&(n>>=4,t+=4),(n&3)==0&&(n>>=2,t+=2),(n&1)==0&&++t,t}function Ce(n){for(var t=0;n!=0;)n&=n-1,++t;return t}var H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xt="=";function $(n){var t,e,r="";for(t=0;t+3<=n.length;t+=3)e=parseInt(n.substring(t,t+3),16),r+=H.charAt(e>>6)+H.charAt(e&63);for(t+1==n.length?(e=parseInt(n.substring(t,t+1),16),r+=H.charAt(e<<2)):t+2==n.length&&(e=parseInt(n.substring(t,t+2),16),r+=H.charAt(e>>2)+H.charAt((e&3)<<4));(r.length&3)>0;)r+=Xt;return r}function Wt(n){var t="",e,r=0,i=0;for(e=0;e<n.length&&n.charAt(e)!=Xt;++e){var s=H.indexOf(n.charAt(e));s<0||(r==0?(t+=C(s>>2),i=s&3,r=1):r==1?(t+=C(i<<2|s>>4),i=s&15,r=2):r==2?(t+=C(i),t+=C(s>>2),i=s&3,r=3):(t+=C(i<<2|s>>4),t+=C(s&15),r=0))}return r==1&&(t+=C(i<<2)),t}var K,je={decode:function(n){var t;if(K===void 0){var e="0123456789ABCDEF",r=` \f
2
+ \r  \u2028\u2029`;for(K={},t=0;t<16;++t)K[e.charAt(t)]=t;for(e=e.toLowerCase(),t=10;t<16;++t)K[e.charAt(t)]=t;for(t=0;t<r.length;++t)K[r.charAt(t)]=-1}var i=[],s=0,a=0;for(t=0;t<n.length;++t){var o=n.charAt(t);if(o=="=")break;if(o=K[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+t);s|=o,++a>=2?(i[i.length]=s,s=0,a=0):s<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},F,ht={decode:function(n){var t;if(F===void 0){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=`= \f
3
+ \r  \u2028\u2029`;for(F=Object.create(null),t=0;t<64;++t)F[e.charAt(t)]=t;for(F["-"]=62,F._=63,t=0;t<r.length;++t)F[r.charAt(t)]=-1}var i=[],s=0,a=0;for(t=0;t<n.length;++t){var o=n.charAt(t);if(o=="=")break;if(o=F[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+t);s|=o,++a>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=s&255,s=0,a=0):s<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=s>>10;break;case 3:i[i.length]=s>>16,i[i.length]=s>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(n){var t=ht.re.exec(n);if(t)if(t[1])n=t[1];else if(t[2])n=t[2];else throw new Error("RegExp out of sync");return ht.decode(n)}},U=1e13,J=(function(){function n(t){this.buf=[+t||0]}return n.prototype.mulAdd=function(t,e){var r=this.buf,i=r.length,s,a;for(s=0;s<i;++s)a=r[s]*t+e,a<U?e=0:(e=0|a/U,a-=e*U),r[s]=a;e>0&&(r[s]=e)},n.prototype.sub=function(t){var e=this.buf,r=e.length,i,s;for(i=0;i<r;++i)s=e[i]-t,s<0?(s+=U,t=1):t=0,e[i]=s;for(;e[e.length-1]===0;)e.pop()},n.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var e=this.buf,r=e[e.length-1].toString(),i=e.length-2;i>=0;--i)r+=(U+e[i]).toString().substring(1);return r},n.prototype.valueOf=function(){for(var t=this.buf,e=0,r=t.length-1;r>=0;--r)e=e*U+t[r];return e},n.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},n})(),Qt="…",Le=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Me=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function G(n,t){return n.length>t&&(n=n.substring(0,t)+Qt),n}var lt=(function(){function n(t,e){this.hexDigits="0123456789ABCDEF",t instanceof n?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=e)}return n.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},n.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},n.prototype.hexDump=function(t,e,r){for(var i="",s=t;s<e;++s)if(i+=this.hexByte(this.get(s)),r!==!0)switch(s&15){case 7:i+=" ";break;case 15:i+=`
4
+ `;break;default:i+=" "}return i},n.prototype.isASCII=function(t,e){for(var r=t;r<e;++r){var i=this.get(r);if(i<32||i>176)return!1}return!0},n.prototype.parseStringISO=function(t,e){for(var r="",i=t;i<e;++i)r+=String.fromCharCode(this.get(i));return r},n.prototype.parseStringUTF=function(t,e){for(var r="",i=t;i<e;){var s=this.get(i++);s<128?r+=String.fromCharCode(s):s>191&&s<224?r+=String.fromCharCode((s&31)<<6|this.get(i++)&63):r+=String.fromCharCode((s&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return r},n.prototype.parseStringBMP=function(t,e){for(var r="",i,s,a=t;a<e;)i=this.get(a++),s=this.get(a++),r+=String.fromCharCode(i<<8|s);return r},n.prototype.parseTime=function(t,e,r){var i=this.parseStringISO(t,e),s=(r?Le:Me).exec(i);return s?(r&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC",s[8]!="Z"&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},n.prototype.parseInteger=function(t,e){for(var r=this.get(t),i=r>127,s=i?255:0,a,o="";r==s&&++t<e;)r=this.get(t);if(a=e-t,a===0)return i?-1:0;if(a>4){for(o=r,a<<=3;((+o^s)&128)==0;)o=+o<<1,--a;o="("+a+` bit)
5
+ `}i&&(r=r-256);for(var u=new J(r),h=t+1;h<e;++h)u.mulAdd(256,this.get(h));return o+u.toString()},n.prototype.parseBitString=function(t,e,r){for(var i=this.get(t),s=(e-t-1<<3)-i,a="("+s+` bit)
6
+ `,o="",u=t+1;u<e;++u){for(var h=this.get(u),l=u==e-1?i:0,p=7;p>=l;--p)o+=h>>p&1?"1":"0";if(o.length>r)return a+G(o,r)}return a+o},n.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return G(this.parseStringISO(t,e),r);var i=e-t,s="("+i+` byte)
7
+ `;r/=2,i>r&&(e=t+r);for(var a=t;a<e;++a)s+=this.hexByte(this.get(a));return i>r&&(s+=Qt),s},n.prototype.parseOID=function(t,e,r){for(var i="",s=new J,a=0,o=t;o<e;++o){var u=this.get(o);if(s.mulAdd(128,u&127),a+=7,!(u&128)){if(i==="")if(s=s.simplify(),s instanceof J)s.sub(80),i="2."+s.toString();else{var h=s<80?s<40?0:1:2;i=h+"."+(s-h*40)}else i+="."+s.toString();if(i.length>r)return G(i,r);s=new J,a=0}}return a>0&&(i+=".incomplete"),i},n})(),ke=(function(){function n(t,e,r,i,s){if(!(i instanceof te))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=r,this.tag=i,this.sub=s}return n.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},n.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var e=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);switch(this.tag.tagNumber){case 1:return this.stream.get(e)===0?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return G(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return G(this.stream.parseStringISO(e,e+r),t);case 30:return G(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,this.tag.tagNumber==23)}return null},n.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},n.prototype.toPrettyString=function(t){t===void 0&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(e+=" (encapsulates)"),e+=`
8
+ `,this.sub!==null){t+=" ";for(var r=0,i=this.sub.length;r<i;++r)e+=this.sub[r].toPrettyString(t)}return e},n.prototype.posStart=function(){return this.stream.pos},n.prototype.posContent=function(){return this.stream.pos+this.header},n.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},n.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},n.decodeLength=function(t){var e=t.get(),r=e&127;if(r==e)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(r===0)return null;e=0;for(var i=0;i<r;++i)e=e*256+t.get();return e},n.prototype.getHexStringValue=function(){var t=this.toHexString(),e=this.header*2,r=this.length*2;return t.substring(e,e+r)},n.decode=function(t){var e;t instanceof lt?e=t:e=new lt(t,0);var r=new lt(e),i=new te(e),s=n.decodeLength(e),a=e.pos,o=a-r.pos,u=null,h=function(){var p=[];if(s!==null){for(var d=a+s;e.pos<d;)p[p.length]=n.decode(e);if(e.pos!=d)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var c=n.decode(e);if(c.tag.isEOC())break;p[p.length]=c}s=a-e.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return p};if(i.tagConstructed)u=h();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&e.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=h();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{u=null}if(u===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);e.pos=a+Math.abs(s)}return new n(r,o,s,i,u)},n})(),te=(function(){function n(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=(e&32)!==0,this.tagNumber=e&31,this.tagNumber==31){var r=new J;do e=t.get(),r.mulAdd(128,e&127);while(e&128);this.tagNumber=r.simplify()}}return n.prototype.isUniversal=function(){return this.tagClass===0},n.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},n})(),j,Fe=0xdeadbeefcafe,ee=(Fe&16777215)==15715070,A=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],qe=(1<<26)/A[A.length-1],g=(function(){function n(t,e,r){t!=null&&(typeof t=="number"?this.fromNumber(t,e,r):e==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,e))}return n.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(t==16)e=4;else if(t==8)e=3;else if(t==2)e=1;else if(t==32)e=5;else if(t==4)e=2;else return this.toRadix(t);var r=(1<<e)-1,i,s=!1,a="",o=this.t,u=this.DB-o*this.DB%e;if(o-- >0)for(u<this.DB&&(i=this[o]>>u)>0&&(s=!0,a=C(i));o>=0;)u<e?(i=(this[o]&(1<<u)-1)<<e-u,i|=this[--o]>>(u+=this.DB-e)):(i=this[o]>>(u-=e)&r,u<=0&&(u+=this.DB,--o)),i>0&&(s=!0),s&&(a+=C(i));return s?a:"0"},n.prototype.negate=function(){var t=v();return n.ZERO.subTo(this,t),t},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(t){var e=this.s-t.s;if(e!=0)return e;var r=this.t;if(e=r-t.t,e!=0)return this.s<0?-e:e;for(;--r>=0;)if((e=this[r]-t[r])!=0)return e;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+et(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(t){var e=v();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(n.ZERO)>0&&t.subTo(e,e),e},n.prototype.modPowInt=function(t,e){var r;return t<256||e.isEven()?r=new re(e):r=new ne(e),this.exp(t,r)},n.prototype.clone=function(){var t=v();return this.copyTo(t),t},n.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},n.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var r=this.DB-t*this.DB%8,i,s=0;if(t-- >0)for(r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r&&(e[s++]=i|this.s<<this.DB-r);t>=0;)r<8?(i=(this[t]&(1<<r)-1)<<8-r,i|=this[--t]>>(r+=this.DB-8)):(i=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),(i&128)!=0&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(e[s++]=i);return e},n.prototype.equals=function(t){return this.compareTo(t)==0},n.prototype.min=function(t){return this.compareTo(t)<0?this:t},n.prototype.max=function(t){return this.compareTo(t)>0?this:t},n.prototype.and=function(t){var e=v();return this.bitwiseTo(t,Ve,e),e},n.prototype.or=function(t){var e=v();return this.bitwiseTo(t,Q,e),e},n.prototype.xor=function(t){var e=v();return this.bitwiseTo(t,Jt,e),e},n.prototype.andNot=function(t){var e=v();return this.bitwiseTo(t,Yt,e),e},n.prototype.not=function(){for(var t=v(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},n.prototype.shiftLeft=function(t){var e=v();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},n.prototype.shiftRight=function(t){var e=v();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},n.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+Ne(this[t]);return this.s<0?this.t*this.DB:-1},n.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=Ce(this[r]^e);return t},n.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?this.s!=0:(this[e]&1<<t%this.DB)!=0},n.prototype.setBit=function(t){return this.changeBit(t,Q)},n.prototype.clearBit=function(t){return this.changeBit(t,Yt)},n.prototype.flipBit=function(t){return this.changeBit(t,Jt)},n.prototype.add=function(t){var e=v();return this.addTo(t,e),e},n.prototype.subtract=function(t){var e=v();return this.subTo(t,e),e},n.prototype.multiply=function(t){var e=v();return this.multiplyTo(t,e),e},n.prototype.divide=function(t){var e=v();return this.divRemTo(t,e,null),e},n.prototype.remainder=function(t){var e=v();return this.divRemTo(t,null,e),e},n.prototype.divideAndRemainder=function(t){var e=v(),r=v();return this.divRemTo(t,e,r),[e,r]},n.prototype.modPow=function(t,e){var r=t.bitLength(),i,s=L(1),a;if(r<=0)return s;r<18?i=1:r<48?i=3:r<144?i=4:r<768?i=5:i=6,r<8?a=new re(e):e.isEven()?a=new Ke(e):a=new ne(e);var o=[],u=3,h=i-1,l=(1<<i)-1;if(o[1]=a.convert(this),i>1){var p=v();for(a.sqrTo(o[1],p);u<=l;)o[u]=v(),a.mulTo(p,o[u-2],o[u]),u+=2}var d=t.t-1,c,m=!0,S=v(),D;for(r=et(t[d])-1;d>=0;){for(r>=h?c=t[d]>>r-h&l:(c=(t[d]&(1<<r+1)-1)<<h-r,d>0&&(c|=t[d-1]>>this.DB+r-h)),u=i;(c&1)==0;)c>>=1,--u;if((r-=u)<0&&(r+=this.DB,--d),m)o[c].copyTo(s),m=!1;else{for(;u>1;)a.sqrTo(s,S),a.sqrTo(S,s),u-=2;u>0?a.sqrTo(s,S):(D=s,s=S,S=D),a.mulTo(S,o[c],s)}for(;d>=0&&(t[d]&1<<r)==0;)a.sqrTo(s,S),D=s,s=S,S=D,--r<0&&(r=this.DB-1,--d)}return a.revert(s)},n.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||t.signum()==0)return n.ZERO;for(var r=t.clone(),i=this.clone(),s=L(1),a=L(0),o=L(0),u=L(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),e?((!s.isEven()||!a.isEven())&&(s.addTo(this,s),a.subTo(t,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),e?((!o.isEven()||!u.isEven())&&(o.addTo(this,o),u.subTo(t,u)),o.rShiftTo(1,o)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);r.compareTo(i)>=0?(r.subTo(i,r),e&&s.subTo(o,s),a.subTo(u,a)):(i.subTo(r,i),e&&o.subTo(s,o),u.subTo(a,u))}if(i.compareTo(n.ONE)!=0)return n.ZERO;if(u.compareTo(t)>=0)return u.subtract(t);if(u.signum()<0)u.addTo(t,u);else return u;return u.signum()<0?u.add(t):u},n.prototype.pow=function(t){return this.exp(t,new He)},n.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var i=e;e=r,r=i}var s=e.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)return e;for(s<a&&(a=s),a>0&&(e.rShiftTo(a,e),r.rShiftTo(a,r));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return a>0&&r.lShiftTo(a,r),r},n.prototype.isProbablePrime=function(t){var e,r=this.abs();if(r.t==1&&r[0]<=A[A.length-1]){for(e=0;e<A.length;++e)if(r[0]==A[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<A.length;){for(var i=A[e],s=e+1;s<A.length&&i<qe;)i*=A[s++];for(i=r.modInt(i);e<s;)if(i%A[e++]==0)return!1}return r.millerRabin(t)},n.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},n.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},n.prototype.fromString=function(t,e){var r;if(e==16)r=4;else if(e==8)r=3;else if(e==256)r=8;else if(e==2)r=1;else if(e==32)r=5;else if(e==4)r=2;else{this.fromRadix(t,e);return}this.t=0,this.s=0;for(var i=t.length,s=!1,a=0;--i>=0;){var o=r==8?+t[i]&255:se(t,i);if(o<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,a==0?this[this.t++]=o:a+r>this.DB?(this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a,this[this.t++]=o>>this.DB-a):this[this.t-1]|=o<<a,a+=r,a>=this.DB&&(a-=this.DB)}r==8&&(+t[0]&128)!=0&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),s&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},n.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},n.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},n.prototype.lShiftTo=function(t,e){for(var r=t%this.DB,i=this.DB-r,s=(1<<i)-1,a=Math.floor(t/this.DB),o=this.s<<r&this.DM,u=this.t-1;u>=0;--u)e[u+a+1]=this[u]>>i|o,o=(this[u]&s)<<r;for(var u=a-1;u>=0;--u)e[u]=0;e[a]=o,e.t=this.t+a+1,e.s=this.s,e.clamp()},n.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){e.t=0;return}var i=t%this.DB,s=this.DB-i,a=(1<<i)-1;e[0]=this[r]>>i;for(var o=r+1;o<this.t;++o)e[o-r-1]|=(this[o]&a)<<s,e[o-r]=this[o]>>i;i>0&&(e[this.t-r-1]|=(this.s&a)<<s),e.t=this.t-r,e.clamp()},n.prototype.subTo=function(t,e){for(var r=0,i=0,s=Math.min(t.t,this.t);r<s;)i+=this[r]-t[r],e[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;r<this.t;)i+=this[r],e[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i-=t[r],e[r++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[r++]=this.DV+i:i>0&&(e[r++]=i),e.t=r,e.clamp()},n.prototype.multiplyTo=function(t,e){var r=this.abs(),i=t.abs(),s=r.t;for(e.t=s+i.t;--s>=0;)e[s]=0;for(s=0;s<i.t;++s)e[s+r.t]=r.am(0,i[s],e,s,0,r.t);e.s=0,e.clamp(),this.s!=t.s&&n.ZERO.subTo(e,e)},n.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var i=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,i,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},n.prototype.divRemTo=function(t,e,r){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){e!=null&&e.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=v());var a=v(),o=this.s,u=t.s,h=this.DB-et(i[i.t-1]);h>0?(i.lShiftTo(h,a),s.lShiftTo(h,r)):(i.copyTo(a),s.copyTo(r));var l=a.t,p=a[l-1];if(p!=0){var d=p*(1<<this.F1)+(l>1?a[l-2]>>this.F2:0),c=this.FV/d,m=(1<<this.F1)/d,S=1<<this.F2,D=r.t,_=D-l,P=e??v();for(a.dlShiftTo(_,P),r.compareTo(P)>=0&&(r[r.t++]=1,r.subTo(P,r)),n.ONE.dlShiftTo(l,P),P.subTo(a,a);a.t<l;)a[a.t++]=0;for(;--_>=0;){var R=r[--D]==p?this.DM:Math.floor(r[D]*c+(r[D-1]+S)*m);if((r[D]+=a.am(0,R,r,_,0,l))<R)for(a.dlShiftTo(_,P),r.subTo(P,r);r[D]<--R;)r.subTo(P,r)}e!=null&&(r.drShiftTo(l,e),o!=u&&n.ZERO.subTo(e,e)),r.t=l,r.clamp(),h>0&&r.rShiftTo(h,r),o<0&&n.ZERO.subTo(r,r)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if((t&1)==0)return 0;var e=t&3;return e=e*(2-(t&15)*e)&15,e=e*(2-(t&255)*e)&255,e=e*(2-((t&65535)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e},n.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},n.prototype.exp=function(t,e){if(t>4294967295||t<1)return n.ONE;var r=v(),i=v(),s=e.convert(this),a=et(t)-1;for(s.copyTo(r);--a>=0;)if(e.sqrTo(r,i),(t&1<<a)>0)e.mulTo(i,s,r);else{var o=r;r=i,i=o}return e.revert(r)},n.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},n.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=L(r),s=v(),a=v(),o="";for(this.divRemTo(i,s,a);s.signum()>0;)o=(r+a.intValue()).toString(t).substring(1)+o,s.divRemTo(i,s,a);return a.intValue().toString(t)+o},n.prototype.fromRadix=function(t,e){this.fromInt(0),e==null&&(e=10);for(var r=this.chunkSize(e),i=Math.pow(e,r),s=!1,a=0,o=0,u=0;u<t.length;++u){var h=se(t,u);if(h<0){t.charAt(u)=="-"&&this.signum()==0&&(s=!0);continue}o=e*o+h,++a>=r&&(this.dMultiply(i),this.dAddOffset(o,0),a=0,o=0)}a>0&&(this.dMultiply(Math.pow(e,a)),this.dAddOffset(o,0)),s&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(t,e,r){if(typeof e=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(n.ONE.shiftLeft(t-1),Q,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(n.ONE.shiftLeft(t-1),this);else{var i=[],s=t&7;i.length=(t>>3)+1,e.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},n.prototype.bitwiseTo=function(t,e,r){var i,s,a=Math.min(t.t,this.t);for(i=0;i<a;++i)r[i]=e(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=a;i<this.t;++i)r[i]=e(this[i],s);r.t=this.t}else{for(s=this.s&this.DM,i=a;i<t.t;++i)r[i]=e(s,t[i]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},n.prototype.changeBit=function(t,e){var r=n.ONE.shiftLeft(t);return this.bitwiseTo(r,e,r),r},n.prototype.addTo=function(t,e){for(var r=0,i=0,s=Math.min(t.t,this.t);r<s;)i+=this[r]+t[r],e[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;r<this.t;)i+=this[r],e[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i+=t[r],e[r++]=i&this.DM,i>>=this.DB;i+=t.s}e.s=i<0?-1:0,i>0?e[r++]=i:i<-1&&(e[r++]=this.DV+i),e.t=r,e.clamp()},n.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(t,e){if(t!=0){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},n.prototype.multiplyLowerTo=function(t,e,r){var i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(var s=r.t-this.t;i<s;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(var s=Math.min(t.t,e);i<s;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},n.prototype.multiplyUpperTo=function(t,e,r){--e;var i=r.t=this.t+t.t-e;for(r.s=0;--i>=0;)r[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)r[this.t+i-e]=this.am(e-i,t[i],r,0,0,this.t+i-e);r.clamp(),r.drShiftTo(1,r)},n.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(e==0)r=this[0]%t;else for(var i=this.t-1;i>=0;--i)r=(e*r+this[i])%t;return r},n.prototype.millerRabin=function(t){var e=this.subtract(n.ONE),r=e.getLowestSetBit();if(r<=0)return!1;var i=e.shiftRight(r);t=t+1>>1,t>A.length&&(t=A.length);for(var s=v(),a=0;a<t;++a){s.fromInt(A[Math.floor(Math.random()*A.length)]);var o=s.modPow(i,this);if(o.compareTo(n.ONE)!=0&&o.compareTo(e)!=0){for(var u=1;u++<r&&o.compareTo(e)!=0;)if(o=o.modPowInt(2,this),o.compareTo(n.ONE)==0)return!1;if(o.compareTo(e)!=0)return!1}}return!0},n.prototype.square=function(){var t=v();return this.squareTo(t),t},n.prototype.gcda=function(t,e){var r=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(r.compareTo(i)<0){var s=r;r=i,i=s}var a=r.getLowestSetBit(),o=i.getLowestSetBit();if(o<0){e(r);return}a<o&&(o=a),o>0&&(r.rShiftTo(o,r),i.rShiftTo(o,i));var u=function(){(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),(a=i.getLowestSetBit())>0&&i.rShiftTo(a,i),r.compareTo(i)>=0?(r.subTo(i,r),r.rShiftTo(1,r)):(i.subTo(r,i),i.rShiftTo(1,i)),r.signum()>0?setTimeout(u,0):(o>0&&i.lShiftTo(o,i),setTimeout(function(){e(i)},0))};setTimeout(u,10)},n.prototype.fromNumberAsync=function(t,e,r,i){if(typeof e=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(n.ONE.shiftLeft(t-1),Q,this),this.isEven()&&this.dAddOffset(1,0);var s=this,a=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(n.ONE.shiftLeft(t-1),s),s.isProbablePrime(e)?setTimeout(function(){i()},0):setTimeout(a,0)};setTimeout(a,0)}else{var o=[],u=t&7;o.length=(t>>3)+1,e.nextBytes(o),u>0?o[0]&=(1<<u)-1:o[0]=0,this.fromString(o,256)}},n})(),He=(function(){function n(){}return n.prototype.convert=function(t){return t},n.prototype.revert=function(t){return t},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},n.prototype.sqrTo=function(t,e){t.squareTo(e)},n})(),re=(function(){function n(t){this.m=t}return n.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},n.prototype.revert=function(t){return t},n.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},n.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n})(),ne=(function(){function n(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return n.prototype.convert=function(t){var e=v();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(g.ZERO)>0&&this.m.subTo(e,e),e},n.prototype.revert=function(t){var e=v();return t.copyTo(e),this.reduce(e),e},n.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=t[e]&32767,i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(r=e+this.m.t,t[r]+=this.m.am(0,i,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},n.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n})(),Ke=(function(){function n(t){this.m=t,this.r2=v(),this.q3=v(),g.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return n.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=v();return t.copyTo(e),this.reduce(e),e},n.prototype.revert=function(t){return t},n.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},n.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},n.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n})();function v(){return new g(null)}function b(n,t){return new g(n,t)}var ie=typeof navigator<"u";ie&&ee&&navigator.appName=="Microsoft Internet Explorer"?(g.prototype.am=function(t,e,r,i,s,a){for(var o=e&32767,u=e>>15;--a>=0;){var h=this[t]&32767,l=this[t++]>>15,p=u*h+l*o;h=o*h+((p&32767)<<15)+r[i]+(s&1073741823),s=(h>>>30)+(p>>>15)+u*l+(s>>>30),r[i++]=h&1073741823}return s},j=30):ie&&ee&&navigator.appName!="Netscape"?(g.prototype.am=function(t,e,r,i,s,a){for(;--a>=0;){var o=e*this[t++]+r[i]+s;s=Math.floor(o/67108864),r[i++]=o&67108863}return s},j=26):(g.prototype.am=function(t,e,r,i,s,a){for(var o=e&16383,u=e>>14;--a>=0;){var h=this[t]&16383,l=this[t++]>>14,p=u*h+l*o;h=o*h+((p&16383)<<14)+r[i]+s,s=(h>>28)+(p>>14)+u*l,r[i++]=h&268435455}return s},j=28),g.prototype.DB=j,g.prototype.DM=(1<<j)-1,g.prototype.DV=1<<j;var ct=52;g.prototype.FV=Math.pow(2,ct),g.prototype.F1=ct-j,g.prototype.F2=2*j-ct;var tt=[],z,B;for(z=48,B=0;B<=9;++B)tt[z++]=B;for(z=97,B=10;B<36;++B)tt[z++]=B;for(z=65,B=10;B<36;++B)tt[z++]=B;function se(n,t){var e=tt[n.charCodeAt(t)];return e??-1}function L(n){var t=v();return t.fromInt(n),t}function et(n){var t=1,e;return(e=n>>>16)!=0&&(n=e,t+=16),(e=n>>8)!=0&&(n=e,t+=8),(e=n>>4)!=0&&(n=e,t+=4),(e=n>>2)!=0&&(n=e,t+=2),(e=n>>1)!=0&&(n=e,t+=1),t}g.ZERO=L(0),g.ONE=L(1);var Ue=(function(){function n(){this.i=0,this.j=0,this.S=[]}return n.prototype.init=function(t){var e,r,i;for(e=0;e<256;++e)this.S[e]=e;for(r=0,e=0;e<256;++e)r=r+this.S[e]+t[e%t.length]&255,i=this.S[e],this.S[e]=this.S[r],this.S[r]=i;this.i=0,this.j=0},n.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},n})();function Ge(){return new Ue}var oe=256,rt,M=null,I;if(M==null){M=[],I=0;var nt=void 0;if(typeof window<"u"&&self.crypto&&self.crypto.getRandomValues){var pt=new Uint32Array(256);for(self.crypto.getRandomValues(pt),nt=0;nt<pt.length;++nt)M[I++]=pt[nt]&255}var it=0,st=function(n){if(it=it||0,it>=256||I>=oe){self.removeEventListener?self.removeEventListener("mousemove",st,!1):self.detachEvent&&self.detachEvent("onmousemove",st);return}try{var t=n.x+n.y;M[I++]=t&255,it+=1}catch{}};typeof window<"u"&&(self.addEventListener?self.addEventListener("mousemove",st,!1):self.attachEvent&&self.attachEvent("onmousemove",st))}function ze(){if(rt==null){for(rt=Ge();I<oe;){var n=Math.floor(65536*Math.random());M[I++]=n&255}for(rt.init(M),I=0;I<M.length;++I)M[I]=0;I=0}return rt.next()}var ot=(function(){function n(){}return n.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=ze()},n})();function gt(n){return $e(rr(Ze(n),n.length*8))}function ae(n){for(var t="0123456789abcdef",e="",r=0;r<n.length;r++){var i=n.charCodeAt(r);e+=t.charAt(i>>>4&15)+t.charAt(i&15)}return e}function Ze(n){for(var t=Array(n.length>>2),e=0;e<t.length;e++)t[e]=0;for(var e=0;e<n.length*8;e+=8)t[e>>5]|=(n.charCodeAt(e/8)&255)<<24-e%32;return t}function $e(n){for(var t="",e=0;e<n.length*32;e+=8)t+=String.fromCharCode(n[e>>5]>>>24-e%32&255);return t}function N(n,t){return n>>>t|n<<32-t}function ue(n,t){return n>>>t}function Je(n,t,e){return n&t^~n&e}function Ye(n,t,e){return n&t^n&e^t&e}function Xe(n){return N(n,2)^N(n,13)^N(n,22)}function We(n){return N(n,6)^N(n,11)^N(n,25)}function Qe(n){return N(n,7)^N(n,18)^ue(n,3)}function tr(n){return N(n,17)^N(n,19)^ue(n,10)}var er=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function rr(n,t){var e=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),r=new Array(64),i,s,a,o,u,h,l,p,d,c,m,S;for(n[t>>5]|=128<<24-t%32,n[(t+64>>9<<4)+15]=t,d=0;d<n.length;d+=16){for(i=e[0],s=e[1],a=e[2],o=e[3],u=e[4],h=e[5],l=e[6],p=e[7],c=0;c<64;c++)c<16?r[c]=n[c+d]:r[c]=w(w(w(tr(r[c-2]),r[c-7]),Qe(r[c-15])),r[c-16]),m=w(w(w(w(p,We(u)),Je(u,h,l)),er[c]),r[c]),S=w(Xe(i),Ye(i,s,a)),p=l,l=h,h=u,u=w(o,m),o=a,a=s,s=i,i=w(m,S);e[0]=w(i,e[0]),e[1]=w(s,e[1]),e[2]=w(a,e[2]),e[3]=w(o,e[3]),e[4]=w(u,e[4]),e[5]=w(h,e[5]),e[6]=w(l,e[6]),e[7]=w(p,e[7])}return e}function w(n,t){var e=(n&65535)+(t&65535),r=(n>>16)+(t>>16)+(e>>16);return r<<16|e&65535}function nr(n,t){if(t<n.length+22)return console.error("Message too long for RSA"),null;for(var e=t-n.length-6,r="",i=0;i<e;i+=2)r+="ff";var s="0001"+r+"00"+n;return b(s,16)}function ir(n,t){if(t<n.length+11)return console.error("Message too long for RSA"),null;for(var e=[],r=n.length-1;r>=0&&t>0;){var i=n.charCodeAt(r--);i<128?e[--t]=i:i>127&&i<2048?(e[--t]=i&63|128,e[--t]=i>>6|192):(e[--t]=i&63|128,e[--t]=i>>6&63|128,e[--t]=i>>12|224)}e[--t]=0;for(var s=new ot,a=[];t>2;){for(a[0]=0;a[0]==0;)s.nextBytes(a);e[--t]=a[0]}return e[--t]=2,e[--t]=0,new g(e)}function fe(n,t,e){for(var r="",i=0;r.length<t;)r+=e(String.fromCharCode.apply(String,n.concat([(i&4278190080)>>24,(i&16711680)>>16,(i&65280)>>8,i&255]))),i+=1;return r}var sr=32;function or(n,t){var e=sr,r=gt;if(n.length+2*e+2>t)throw"Message too long for RSA";var i="",s;for(s=0;s<t-n.length-2*e-2;s+=1)i+="\0";var a=r("")+i+""+n,o=new Array(e);new ot().nextBytes(o);var u=fe(o,a.length,r),h=[];for(s=0;s<a.length;s+=1)h[s]=a.charCodeAt(s)^u.charCodeAt(s);var l=fe(h,o.length,r),p=[0];for(s=0;s<o.length;s+=1)p[s+1]=o[s]^l.charCodeAt(s);return new g(p.concat(h))}var ar=(function(){function n(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return n.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},n.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),r=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(r)<0;)e=e.add(this.p);return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},n.prototype.setPublic=function(t,e){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=b(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},n.prototype.encrypt=function(t,e){typeof e>"u"&&(e=ir);var r=this.n.bitLength()+7>>3,i=e(t,r);if(i==null)return null;var s=this.doPublic(i);if(s==null)return null;for(var a=s.toString(16),o=a.length,u=0;u<r*2-o;u++)a="0"+a;return a},n.prototype.setPrivate=function(t,e,r){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=b(t,16),this.e=parseInt(e,16),this.d=b(r,16)):console.error("Invalid RSA private key")},n.prototype.setPrivateEx=function(t,e,r,i,s,a,o,u){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=b(t,16),this.e=parseInt(e,16),this.d=b(r,16),this.p=b(i,16),this.q=b(s,16),this.dmp1=b(a,16),this.dmq1=b(o,16),this.coeff=b(u,16)):console.error("Invalid RSA private key")},n.prototype.generate=function(t,e){var r=new ot,i=t>>1;this.e=parseInt(e,16);for(var s=new g(e,16);;){for(;this.p=new g(t-i,1,r),!(this.p.subtract(g.ONE).gcd(s).compareTo(g.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new g(i,1,r),!(this.q.subtract(g.ONE).gcd(s).compareTo(g.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var o=this.p.subtract(g.ONE),u=this.q.subtract(g.ONE),h=o.multiply(u);if(h.gcd(s).compareTo(g.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(h),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}},n.prototype.decrypt=function(t){var e=b(t,16),r=this.doPrivate(e);return r==null?null:ur(r,this.n.bitLength()+7>>3)},n.prototype.generateAsync=function(t,e,r){var i=new ot,s=t>>1;this.e=parseInt(e,16);var a=new g(e,16),o=this,u=function(){var h=function(){if(o.p.compareTo(o.q)<=0){var d=o.p;o.p=o.q,o.q=d}var c=o.p.subtract(g.ONE),m=o.q.subtract(g.ONE),S=c.multiply(m);S.gcd(a).compareTo(g.ONE)==0?(o.n=o.p.multiply(o.q),o.d=a.modInverse(S),o.dmp1=o.d.mod(c),o.dmq1=o.d.mod(m),o.coeff=o.q.modInverse(o.p),setTimeout(function(){r()},0)):setTimeout(u,0)},l=function(){o.q=v(),o.q.fromNumberAsync(s,1,i,function(){o.q.subtract(g.ONE).gcda(a,function(d){d.compareTo(g.ONE)==0&&o.q.isProbablePrime(10)?setTimeout(h,0):setTimeout(l,0)})})},p=function(){o.p=v(),o.p.fromNumberAsync(t-s,1,i,function(){o.p.subtract(g.ONE).gcda(a,function(d){d.compareTo(g.ONE)==0&&o.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(u,0)},n.prototype.sign=function(t,e,r){var i=fr(r),s=i+e(t).toString(),a=this.n.bitLength()/4,o=nr(s,a);if(o==null)return null;var u=this.doPrivate(o);if(u==null)return null;for(var h=u.toString(16),l=h.length,p=0;p<a-l;p++)h="0"+h;return h},n.prototype.verify=function(t,e,r){var i=b(e,16),s=this.doPublic(i);if(s==null)return null;var a=s.toString(16).replace(/^1f+00/,""),o=hr(a);return o==r(t).toString()},n})();function ur(n,t){for(var e=n.toByteArray(),r=0;r<e.length&&e[r]==0;)++r;if(e.length-r!=t-1||e[r]!=2)return null;for(++r;e[r]!=0;)if(++r>=e.length)return null;for(var i="";++r<e.length;){var s=e[r]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|e[r+1]&63),++r):(i+=String.fromCharCode((s&15)<<12|(e[r+1]&63)<<6|e[r+2]&63),r+=2)}return i}var at={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function fr(n){return at[n]||""}function hr(n){for(var t in at)if(at.hasOwnProperty(t)){var e=at[t],r=e.length;if(n.substring(0,r)==e)return n.substring(r)}return n}function E(n,t,e){if(!t||!n)throw new Error("extend failed, please check that all dependencies are included.");var r=function(){};r.prototype=t.prototype,n.prototype=new r,n.prototype.constructor=n,n.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t)}/**
14
9
  * @fileOverview
15
10
  * @name asn1-1.0.js
16
11
  * @author Kenji Urushima kenji.urushima@gmail.com
17
12
  * @version asn1 1.0.13 (2017-Jun-02)
18
13
  * @since jsrsasign 2.1
19
14
  * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
20
- */var f={};(typeof f.asn1>"u"||!f.asn1)&&(f.asn1={}),f.asn1.ASN1Util=new function(){this.integerToByteHex=function(r){var t=r.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(r){var t=r.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var e=t.substr(1),n=e.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var s="",i=0;i<n;i++)s+="f";var o=new c(s,16),a=o.xor(r).add(c.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(r,t){return hextopem(r,t)},this.newObject=function(r){var t=f,e=t.asn1,n=e.DERBoolean,s=e.DERInteger,i=e.DERBitString,o=e.DEROctetString,a=e.DERNull,u=e.DERObjectIdentifier,h=e.DEREnumerated,l=e.DERUTF8String,p=e.DERNumericString,v=e.DERPrintableString,y=e.DERTeletexString,S=e.DERIA5String,b=e.DERUTCTime,_=e.DERGeneralizedTime,I=e.DERSequence,D=e.DERSet,N=e.DERTaggedObject,O=e.ASN1Util.newObject,bt=Object.keys(r);if(bt.length!=1)throw"key of param shall be only one.";var d=bt[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+d+":")==-1)throw"undefined key: "+d;if(d=="bool")return new n(r[d]);if(d=="int")return new s(r[d]);if(d=="bitstr")return new i(r[d]);if(d=="octstr")return new o(r[d]);if(d=="null")return new a(r[d]);if(d=="oid")return new u(r[d]);if(d=="enum")return new h(r[d]);if(d=="utf8str")return new l(r[d]);if(d=="numstr")return new p(r[d]);if(d=="prnstr")return new v(r[d]);if(d=="telstr")return new y(r[d]);if(d=="ia5str")return new S(r[d]);if(d=="utctime")return new b(r[d]);if(d=="gentime")return new _(r[d]);if(d=="seq"){for(var Y=r[d],X=[],G=0;G<Y.length;G++){var Tt=O(Y[G]);X.push(Tt)}return new I({array:X})}if(d=="set"){for(var Y=r[d],X=[],G=0;G<Y.length;G++){var Tt=O(Y[G]);X.push(Tt)}return new D({array:X})}if(d=="tag"){var V=r[d];if(Object.prototype.toString.call(V)==="[object Array]"&&V.length==3){var ze=O(V[2]);return new N({tag:V[0],explicit:V[1],obj:ze})}else{var ot={};if(V.explicit!==void 0&&(ot.explicit=V.explicit),V.tag!==void 0&&(ot.tag=V.tag),V.obj===void 0)throw"obj shall be specified for 'tag'.";return ot.obj=O(V.obj),new N(ot)}}},this.jsonToASN1HEX=function(r){var t=this.newObject(r);return t.getEncodedHex()}},f.asn1.ASN1Util.oidHexToInt=function(r){for(var s="",t=parseInt(r.substr(0,2),16),e=Math.floor(t/40),n=t%40,s=e+"."+n,i="",o=2;o<r.length;o+=2){var a=parseInt(r.substr(o,2),16),u=("00000000"+a.toString(2)).slice(-8);if(i=i+u.substr(1,7),u.substr(0,1)=="0"){var h=new c(i,2);s=s+"."+h.toString(10),i=""}}return s},f.asn1.ASN1Util.oidIntToHex=function(r){var t=function(a){var u=a.toString(16);return u.length==1&&(u="0"+u),u},e=function(a){var u="",h=new c(a,10),l=h.toString(2),p=7-l.length%7;p==7&&(p=0);for(var v="",y=0;y<p;y++)v+="0";l=v+l;for(var y=0;y<l.length-1;y+=7){var S=l.substr(y,7);y!=l.length-7&&(S="1"+S),u+=t(parseInt(S,2))}return u};if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var n="",s=r.split("."),i=parseInt(s[0])*40+parseInt(s[1]);n+=t(i),s.splice(0,2);for(var o=0;o<s.length;o++)n+=e(s[o]);return n},f.asn1.ASN1Object=function(){var r="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+r.length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var s=128+n;return s.toString(16)+e},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},f.asn1.DERAbstractString=function(r){f.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r=="string"?this.setString(r):typeof r.str<"u"?this.setString(r.str):typeof r.hex<"u"&&this.setStringHex(r.hex))},w.lang.extend(f.asn1.DERAbstractString,f.asn1.ASN1Object),f.asn1.DERAbstractTime=function(r){f.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var e=new Date(utc);return e},this.formatDate=function(t,e,n){var s=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());e=="utc"&&(o=o.substr(2,2));var a=s(String(i.getMonth()+1),2),u=s(String(i.getDate()),2),h=s(String(i.getHours()),2),l=s(String(i.getMinutes()),2),p=s(String(i.getSeconds()),2),v=o+a+u+h+l+p;if(n===!0){var y=i.getMilliseconds();if(y!=0){var S=s(String(y),3);S=S.replace(/[0]+$/,""),v=v+"."+S}}return v+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,s,i,o){var a=new Date(Date.UTC(t,e-1,n,s,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},w.lang.extend(f.asn1.DERAbstractTime,f.asn1.ASN1Object),f.asn1.DERAbstractStructured=function(r){f.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof r<"u"&&typeof r.array<"u"&&(this.asn1Array=r.array)},w.lang.extend(f.asn1.DERAbstractStructured,f.asn1.ASN1Object),f.asn1.DERBoolean=function(){f.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},w.lang.extend(f.asn1.DERBoolean,f.asn1.ASN1Object),f.asn1.DERInteger=function(r){f.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=f.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new c(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r.bigint<"u"?this.setByBigInteger(r.bigint):typeof r.int<"u"?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):typeof r.hex<"u"&&this.setValueHex(r.hex))},w.lang.extend(f.asn1.DERInteger,f.asn1.ASN1Object),f.asn1.DERBitString=function(r){if(r!==void 0&&typeof r.obj<"u"){var t=f.asn1.ASN1Util.newObject(r.obj);r.hex="00"+t.getEncodedHex()}f.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,n){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var s="0"+e;this.hTLV=null,this.isModified=!0,this.hV=s+n},this.setByBinaryString=function(e){e=e.replace(/0+$/,"");var n=8-e.length%8;n==8&&(n=0);for(var s=0;s<=n;s++)e+="0";for(var i="",s=0;s<e.length-1;s+=8){var o=e.substr(s,8),a=parseInt(o,2).toString(16);a.length==1&&(a="0"+a),i+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+n+i},this.setByBooleanArray=function(e){for(var n="",s=0;s<e.length;s++)e[s]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(e){for(var n=new Array(e),s=0;s<e;s++)n[s]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r=="string"&&r.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(r):typeof r.hex<"u"?this.setHexValueIncludingUnusedBits(r.hex):typeof r.bin<"u"?this.setByBinaryString(r.bin):typeof r.array<"u"&&this.setByBooleanArray(r.array))},w.lang.extend(f.asn1.DERBitString,f.asn1.ASN1Object),f.asn1.DEROctetString=function(r){if(r!==void 0&&typeof r.obj<"u"){var t=f.asn1.ASN1Util.newObject(r.obj);r.hex=t.getEncodedHex()}f.asn1.DEROctetString.superclass.constructor.call(this,r),this.hT="04"},w.lang.extend(f.asn1.DEROctetString,f.asn1.DERAbstractString),f.asn1.DERNull=function(){f.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},w.lang.extend(f.asn1.DERNull,f.asn1.ASN1Object),f.asn1.DERObjectIdentifier=function(r){var t=function(n){var s=n.toString(16);return s.length==1&&(s="0"+s),s},e=function(n){var s="",i=new c(n,10),o=i.toString(2),a=7-o.length%7;a==7&&(a=0);for(var u="",h=0;h<a;h++)u+="0";o=u+o;for(var h=0;h<o.length-1;h+=7){var l=o.substr(h,7);h!=o.length-7&&(l="1"+l),s+=t(parseInt(l,2))}return s};f.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var s="",i=n.split("."),o=parseInt(i[0])*40+parseInt(i[1]);s+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)s+=e(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=s},this.setValueName=function(n){var s=f.asn1.x509.OID.name2oid(n);if(s!=="")this.setValueOidString(s);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},r!==void 0&&(typeof r=="string"?r.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(r):this.setValueName(r):r.oid!==void 0?this.setValueOidString(r.oid):r.hex!==void 0?this.setValueHex(r.hex):r.name!==void 0&&this.setValueName(r.name))},w.lang.extend(f.asn1.DERObjectIdentifier,f.asn1.ASN1Object),f.asn1.DEREnumerated=function(r){f.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=f.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new c(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r.int<"u"?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):typeof r.hex<"u"&&this.setValueHex(r.hex))},w.lang.extend(f.asn1.DEREnumerated,f.asn1.ASN1Object),f.asn1.DERUTF8String=function(r){f.asn1.DERUTF8String.superclass.constructor.call(this,r),this.hT="0c"},w.lang.extend(f.asn1.DERUTF8String,f.asn1.DERAbstractString),f.asn1.DERNumericString=function(r){f.asn1.DERNumericString.superclass.constructor.call(this,r),this.hT="12"},w.lang.extend(f.asn1.DERNumericString,f.asn1.DERAbstractString),f.asn1.DERPrintableString=function(r){f.asn1.DERPrintableString.superclass.constructor.call(this,r),this.hT="13"},w.lang.extend(f.asn1.DERPrintableString,f.asn1.DERAbstractString),f.asn1.DERTeletexString=function(r){f.asn1.DERTeletexString.superclass.constructor.call(this,r),this.hT="14"},w.lang.extend(f.asn1.DERTeletexString,f.asn1.DERAbstractString),f.asn1.DERIA5String=function(r){f.asn1.DERIA5String.superclass.constructor.call(this,r),this.hT="16"},w.lang.extend(f.asn1.DERIA5String,f.asn1.DERAbstractString),f.asn1.DERUTCTime=function(r){f.asn1.DERUTCTime.superclass.constructor.call(this,r),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{12}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date))},w.lang.extend(f.asn1.DERUTCTime,f.asn1.DERAbstractTime),f.asn1.DERGeneralizedTime=function(r){f.asn1.DERGeneralizedTime.superclass.constructor.call(this,r),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{14}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date),r.millis===!0&&(this.withMillis=!0))},w.lang.extend(f.asn1.DERGeneralizedTime,f.asn1.DERAbstractTime),f.asn1.DERSequence=function(r){f.asn1.DERSequence.superclass.constructor.call(this,r),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t+=n.getEncodedHex()}return this.hV=t,this.hV}},w.lang.extend(f.asn1.DERSequence,f.asn1.DERAbstractStructured),f.asn1.DERSet=function(r){f.asn1.DERSet.superclass.constructor.call(this,r),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof r<"u"&&typeof r.sortflag<"u"&&r.sortflag==!1&&(this.sortFlag=!1)},w.lang.extend(f.asn1.DERSet,f.asn1.DERAbstractStructured),f.asn1.DERTaggedObject=function(r){f.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r.tag<"u"&&(this.hT=r.tag),typeof r.explicit<"u"&&(this.isExplicit=r.explicit),typeof r.obj<"u"&&(this.asn1Object=r.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},w.lang.extend(f.asn1.DERTaggedObject,f.asn1.ASN1Object);var He=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ue=function(r){He(t,r);function t(e){var n=r.call(this)||this;return e&&(typeof e=="string"?n.parseKey(e):(t.hasPrivateKeyProperty(e)||t.hasPublicKeyProperty(e))&&n.parsePropertiesFrom(e)),n}return t.prototype.parseKey=function(e){try{var n=0,s=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=i.test(e)?we.decode(e):gt.unarmor(e),a=xe.decode(o);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){n=a.sub[1].getHexStringValue(),this.n=E(n,16),s=a.sub[2].getHexStringValue(),this.e=parseInt(s,16);var u=a.sub[3].getHexStringValue();this.d=E(u,16);var h=a.sub[4].getHexStringValue();this.p=E(h,16);var l=a.sub[5].getHexStringValue();this.q=E(l,16);var p=a.sub[6].getHexStringValue();this.dmp1=E(p,16);var v=a.sub[7].getHexStringValue();this.dmq1=E(v,16);var y=a.sub[8].getHexStringValue();this.coeff=E(y,16)}else if(a.sub.length===2)if(a.sub[0].sub){var S=a.sub[1],b=S.sub[0];n=b.sub[0].getHexStringValue(),this.n=E(n,16),s=b.sub[1].getHexStringValue(),this.e=parseInt(s,16)}else n=a.sub[0].getHexStringValue(),this.n=E(n,16),s=a.sub[1].getHexStringValue(),this.e=parseInt(s,16);else return!1;return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new f.asn1.DERInteger({int:0}),new f.asn1.DERInteger({bigint:this.n}),new f.asn1.DERInteger({int:this.e}),new f.asn1.DERInteger({bigint:this.d}),new f.asn1.DERInteger({bigint:this.p}),new f.asn1.DERInteger({bigint:this.q}),new f.asn1.DERInteger({bigint:this.dmp1}),new f.asn1.DERInteger({bigint:this.dmq1}),new f.asn1.DERInteger({bigint:this.coeff})]},n=new f.asn1.DERSequence(e);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return W(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new f.asn1.DERSequence({array:[new f.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new f.asn1.DERNull]}),n=new f.asn1.DERSequence({array:[new f.asn1.DERInteger({bigint:this.n}),new f.asn1.DERInteger({int:this.e})]}),s=new f.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),i=new f.asn1.DERSequence({array:[e,s]});return i.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return W(this.getPublicBaseKey())},t.wordwrap=function(e,n){if(n=n||64,!e)return e;var s="(.{1,"+n+`})( +|$
21
- ?)|(.{1,`+n+"})";return e.match(RegExp(s,"g")).join(`
15
+ */var f={};(typeof f.asn1>"u"||!f.asn1)&&(f.asn1={}),f.asn1.ASN1Util=new function(){this.integerToByteHex=function(n){var t=n.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(n){var t=n.toString(16);if(t.substring(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var e=t.substring(1),r=e.length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var i="",s=0;s<r;s++)i+="f";var a=new g(i,16),o=a.xor(n).add(g.ONE);t=o.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(n,t){return hextopem(n,t)},this.newObject=function(n){var t=f,e=t.asn1,r=e.DERBoolean,i=e.DERInteger,s=e.DERBitString,a=e.DEROctetString,o=e.DERNull,u=e.DERObjectIdentifier,h=e.DEREnumerated,l=e.DERUTF8String,p=e.DERNumericString,d=e.DERPrintableString,c=e.DERTeletexString,m=e.DERIA5String,S=e.DERUTCTime,D=e.DERGeneralizedTime,_=e.DERSequence,P=e.DERSet,R=e.DERTaggedObject,Y=e.ASN1Util.newObject,ge=Object.keys(n);if(ge.length!=1)throw"key of param shall be only one.";var y=ge[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+y+":")==-1)throw"undefined key: "+y;if(y=="bool")return new r(n[y]);if(y=="int")return new i(n[y]);if(y=="bitstr")return new s(n[y]);if(y=="octstr")return new a(n[y]);if(y=="null")return new o(n[y]);if(y=="oid")return new u(n[y]);if(y=="enum")return new h(n[y]);if(y=="utf8str")return new l(n[y]);if(y=="numstr")return new p(n[y]);if(y=="prnstr")return new d(n[y]);if(y=="telstr")return new c(n[y]);if(y=="ia5str")return new m(n[y]);if(y=="utctime")return new S(n[y]);if(y=="gentime")return new D(n[y]);if(y=="seq"){for(var X=n[y],W=[],q=0;q<X.length;q++){var vt=Y(X[q]);W.push(vt)}return new _({array:W})}if(y=="set"){for(var X=n[y],W=[],q=0;q<X.length;q++){var vt=Y(X[q]);W.push(vt)}return new P({array:W})}if(y=="tag"){var V=n[y];if(Object.prototype.toString.call(V)==="[object Array]"&&V.length==3){var dr=Y(V[2]);return new R({tag:V[0],explicit:V[1],obj:dr})}else{var ut={};if(V.explicit!==void 0&&(ut.explicit=V.explicit),V.tag!==void 0&&(ut.tag=V.tag),V.obj===void 0)throw"obj shall be specified for 'tag'.";return ut.obj=Y(V.obj),new R(ut)}}},this.jsonToASN1HEX=function(n){var t=this.newObject(n);return t.getEncodedHex()}},f.asn1.ASN1Util.oidHexToInt=function(n){for(var i="",t=parseInt(n.substring(0,2),16),e=Math.floor(t/40),r=t%40,i=e+"."+r,s="",a=2;a<n.length;a+=2){var o=parseInt(n.substring(a,a+2),16),u=("00000000"+o.toString(2)).slice(-8);if(s=s+u.substring(1,8),u.substring(0,1)=="0"){var h=new g(s,2);i=i+"."+h.toString(10),s=""}}return i},f.asn1.ASN1Util.oidIntToHex=function(n){var t=function(o){var u=o.toString(16);return u.length==1&&(u="0"+u),u},e=function(o){var u="",h=new g(o,10),l=h.toString(2),p=7-l.length%7;p==7&&(p=0);for(var d="",c=0;c<p;c++)d+="0";l=d+l;for(var c=0;c<l.length-1;c+=7){var m=l.substring(c,c+7);c!=l.length-7&&(m="1"+m),u+=t(parseInt(m,2))}return u};if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var r="",i=n.split("."),s=parseInt(i[0])*40+parseInt(i[1]);r+=t(s),i.splice(0,2);for(var a=0;a<i.length;a++)r+=e(i[a]);return r},f.asn1.ASN1Object=function(){var n="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+n.length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var r=e.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+r;return i.toString(16)+e},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},f.asn1.DERAbstractString=function(n){f.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n=="string"?this.setString(n):typeof n.str<"u"?this.setString(n.str):typeof n.hex<"u"&&this.setStringHex(n.hex))},E(f.asn1.DERAbstractString,f.asn1.ASN1Object),f.asn1.DERAbstractTime=function(n){f.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var e=new Date(utc);return e},this.formatDate=function(t,e,r){var i=this.zeroPadding,s=this.localDateToUTC(t),a=String(s.getFullYear());e=="utc"&&(a=a.substring(2,4));var o=i(String(s.getMonth()+1),2),u=i(String(s.getDate()),2),h=i(String(s.getHours()),2),l=i(String(s.getMinutes()),2),p=i(String(s.getSeconds()),2),d=a+o+u+h+l+p;if(r===!0){var c=s.getMilliseconds();if(c!=0){var m=i(String(c),3);m=m.replace(/[0]+$/,""),d=d+"."+m}}return d+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,r,i,s,a){var o=new Date(Date.UTC(t,e-1,r,i,s,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},E(f.asn1.DERAbstractTime,f.asn1.ASN1Object),f.asn1.DERAbstractStructured=function(n){f.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof n<"u"&&typeof n.array<"u"&&(this.asn1Array=n.array)},E(f.asn1.DERAbstractStructured,f.asn1.ASN1Object),f.asn1.DERBoolean=function(){f.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},E(f.asn1.DERBoolean,f.asn1.ASN1Object),f.asn1.DERInteger=function(n){f.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=f.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new g(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.bigint<"u"?this.setByBigInteger(n.bigint):typeof n.int<"u"?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):typeof n.hex<"u"&&this.setValueHex(n.hex))},E(f.asn1.DERInteger,f.asn1.ASN1Object),f.asn1.DERBitString=function(n){if(n!==void 0&&typeof n.obj<"u"){var t=f.asn1.ASN1Util.newObject(n.obj);n.hex="00"+t.getEncodedHex()}f.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,r){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var i="0"+e;this.hTLV=null,this.isModified=!0,this.hV=i+r},this.setByBinaryString=function(e){e=e.replace(/0+$/,"");var r=8-e.length%8;r==8&&(r=0);for(var i=0;i<=r;i++)e+="0";for(var s="",i=0;i<e.length-1;i+=8){var a=e.substring(i,i+8),o=parseInt(a,2).toString(16);o.length==1&&(o="0"+o),s+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+r+s},this.setByBooleanArray=function(e){for(var r="",i=0;i<e.length;i++)e[i]==!0?r+="1":r+="0";this.setByBinaryString(r)},this.newFalseArray=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=!1;return r},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n=="string"&&n.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(n):typeof n.hex<"u"?this.setHexValueIncludingUnusedBits(n.hex):typeof n.bin<"u"?this.setByBinaryString(n.bin):typeof n.array<"u"&&this.setByBooleanArray(n.array))},E(f.asn1.DERBitString,f.asn1.ASN1Object),f.asn1.DEROctetString=function(n){if(n!==void 0&&typeof n.obj<"u"){var t=f.asn1.ASN1Util.newObject(n.obj);n.hex=t.getEncodedHex()}f.asn1.DEROctetString.superclass.constructor.call(this,n),this.hT="04"},E(f.asn1.DEROctetString,f.asn1.DERAbstractString),f.asn1.DERNull=function(){f.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},E(f.asn1.DERNull,f.asn1.ASN1Object),f.asn1.DERObjectIdentifier=function(n){var t=function(r){var i=r.toString(16);return i.length==1&&(i="0"+i),i},e=function(r){var i="",s=new g(r,10),a=s.toString(2),o=7-a.length%7;o==7&&(o=0);for(var u="",h=0;h<o;h++)u+="0";a=u+a;for(var h=0;h<a.length-1;h+=7){var l=a.substring(h,h+7);h!=a.length-7&&(l="1"+l),i+=t(parseInt(l,2))}return i};f.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueOidString=function(r){if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var i="",s=r.split("."),a=parseInt(s[0])*40+parseInt(s[1]);i+=t(a),s.splice(0,2);for(var o=0;o<s.length;o++)i+=e(s[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(r){var i=f.asn1.x509.OID.name2oid(r);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+r},this.getFreshValueHex=function(){return this.hV},n!==void 0&&(typeof n=="string"?n.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(n):this.setValueName(n):n.oid!==void 0?this.setValueOidString(n.oid):n.hex!==void 0?this.setValueHex(n.hex):n.name!==void 0&&this.setValueName(n.name))},E(f.asn1.DERObjectIdentifier,f.asn1.ASN1Object),f.asn1.DEREnumerated=function(n){f.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=f.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new g(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.int<"u"?this.setByInteger(n.int):typeof n=="number"?this.setByInteger(n):typeof n.hex<"u"&&this.setValueHex(n.hex))},E(f.asn1.DEREnumerated,f.asn1.ASN1Object),f.asn1.DERUTF8String=function(n){f.asn1.DERUTF8String.superclass.constructor.call(this,n),this.hT="0c"},E(f.asn1.DERUTF8String,f.asn1.DERAbstractString),f.asn1.DERNumericString=function(n){f.asn1.DERNumericString.superclass.constructor.call(this,n),this.hT="12"},E(f.asn1.DERNumericString,f.asn1.DERAbstractString),f.asn1.DERPrintableString=function(n){f.asn1.DERPrintableString.superclass.constructor.call(this,n),this.hT="13"},E(f.asn1.DERPrintableString,f.asn1.DERAbstractString),f.asn1.DERTeletexString=function(n){f.asn1.DERTeletexString.superclass.constructor.call(this,n),this.hT="14"},E(f.asn1.DERTeletexString,f.asn1.DERAbstractString),f.asn1.DERIA5String=function(n){f.asn1.DERIA5String.superclass.constructor.call(this,n),this.hT="16"},E(f.asn1.DERIA5String,f.asn1.DERAbstractString),f.asn1.DERUTCTime=function(n){f.asn1.DERUTCTime.superclass.constructor.call(this,n),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{12}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date))},E(f.asn1.DERUTCTime,f.asn1.DERAbstractTime),f.asn1.DERGeneralizedTime=function(n){f.asn1.DERGeneralizedTime.superclass.constructor.call(this,n),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},n!==void 0&&(n.str!==void 0?this.setString(n.str):typeof n=="string"&&n.match(/^[0-9]{14}Z$/)?this.setString(n):n.hex!==void 0?this.setStringHex(n.hex):n.date!==void 0&&this.setByDate(n.date),n.millis===!0&&(this.withMillis=!0))},E(f.asn1.DERGeneralizedTime,f.asn1.DERAbstractTime),f.asn1.DERSequence=function(n){f.asn1.DERSequence.superclass.constructor.call(this,n),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t+=r.getEncodedHex()}return this.hV=t,this.hV}},E(f.asn1.DERSequence,f.asn1.DERAbstractStructured),f.asn1.DERSet=function(n){f.asn1.DERSet.superclass.constructor.call(this,n),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t.push(r.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof n<"u"&&typeof n.sortflag<"u"&&n.sortflag==!1&&(this.sortFlag=!1)},E(f.asn1.DERSet,f.asn1.DERAbstractStructured),f.asn1.DERTaggedObject=function(n){f.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,r){this.hT=e,this.isExplicit=t,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof n<"u"&&(typeof n.tag<"u"&&(this.hT=n.tag),typeof n.explicit<"u"&&(this.isExplicit=n.explicit),typeof n.obj<"u"&&(this.asn1Object=n.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},E(f.asn1.DERTaggedObject,f.asn1.ASN1Object);var lr=(function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}})(),he=(function(n){lr(t,n);function t(e){var r=n.call(this)||this;return e&&(typeof e=="string"?r.parseKey(e):(t.hasPrivateKeyProperty(e)||t.hasPublicKeyProperty(e))&&r.parsePropertiesFrom(e)),r}return t.prototype.parseKey=function(e){try{var r=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,a=s.test(e)?je.decode(e):ht.unarmor(e),o=ke.decode(a);if(o.sub.length===3&&(o=o.sub[2].sub[0]),o.sub.length===9){r=o.sub[1].getHexStringValue(),this.n=b(r,16),i=o.sub[2].getHexStringValue(),this.e=parseInt(i,16);var u=o.sub[3].getHexStringValue();this.d=b(u,16);var h=o.sub[4].getHexStringValue();this.p=b(h,16);var l=o.sub[5].getHexStringValue();this.q=b(l,16);var p=o.sub[6].getHexStringValue();this.dmp1=b(p,16);var d=o.sub[7].getHexStringValue();this.dmq1=b(d,16);var c=o.sub[8].getHexStringValue();this.coeff=b(c,16)}else if(o.sub.length===2)if(o.sub[0].sub){var m=o.sub[1],S=m.sub[0];r=S.sub[0].getHexStringValue(),this.n=b(r,16),i=S.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else r=o.sub[0].getHexStringValue(),this.n=b(r,16),i=o.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new f.asn1.DERInteger({int:0}),new f.asn1.DERInteger({bigint:this.n}),new f.asn1.DERInteger({int:this.e}),new f.asn1.DERInteger({bigint:this.d}),new f.asn1.DERInteger({bigint:this.p}),new f.asn1.DERInteger({bigint:this.q}),new f.asn1.DERInteger({bigint:this.dmp1}),new f.asn1.DERInteger({bigint:this.dmq1}),new f.asn1.DERInteger({bigint:this.coeff})]},r=new f.asn1.DERSequence(e);return r.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return $(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new f.asn1.DERSequence({array:[new f.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new f.asn1.DERNull]}),r=new f.asn1.DERSequence({array:[new f.asn1.DERInteger({bigint:this.n}),new f.asn1.DERInteger({int:this.e})]}),i=new f.asn1.DERBitString({hex:"00"+r.getEncodedHex()}),s=new f.asn1.DERSequence({array:[e,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return $(this.getPublicBaseKey())},t.wordwrap=function(e,r){if(r=r||64,!e)return e;var i="(.{1,"+r+`})( +|$
16
+ ?)|(.{1,`+r+"})";return e.match(RegExp(i,"g")).join(`
22
17
  `)},t.prototype.getPrivateKey=function(){var e=`-----BEGIN RSA PRIVATE KEY-----
23
18
  `;return e+=t.wordwrap(this.getPrivateBaseKeyB64())+`
24
19
  `,e+="-----END RSA PRIVATE KEY-----",e},t.prototype.getPublicKey=function(){var e=`-----BEGIN PUBLIC KEY-----
25
20
  `;return e+=t.wordwrap(this.getPublicBaseKeyB64())+`
26
- `,e+="-----END PUBLIC KEY-----",e},t.hasPublicKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(Fe),St,Ge=typeof process<"u"?(St=process.env)===null||St===void 0?void 0:St.npm_package_version:void 0,Ce=function(){function r(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return r.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new ue(t)},r.prototype.setPrivateKey=function(t){this.setKey(t)},r.prototype.setPublicKey=function(t){this.setKey(t)},r.prototype.decrypt=function(t){try{return this.getKey().decrypt(Wt(t))}catch{return!1}},r.prototype.encrypt=function(t){try{return W(this.getKey().encrypt(t))}catch{return!1}},r.prototype.sign=function(t,e,n){try{return W(this.getKey().sign(t,e,n))}catch{return!1}},r.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Wt(e),n)}catch{return!1}},r.prototype.getKey=function(t){if(!this.key){if(this.key=new ue,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},r.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},r.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},r.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},r.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},r.version=Ge,r}();const fe={status:200,message:"",data:{key:""}};async function he(){const r=fe;try{const t=await R.get("/mbuhx0as4kui",{params:{ajax:1,render:m()}});let e;return m()?e=JSON.parse(A(t.data)):e=t.data,t.status!=200?(r.status=t.status,r.message="",r):(r.data={key:e.key},r)}catch(t){const e=t;return r.status=e.status||500,r.message=e.message,r}}const Ke={status:200,message:"",key:""},le={status:200,message:"",data:{msg:"",accessToken:"",fullName:"",unreadMailCount:"",status:"",username:"",walletAmount:"",captcha:""}};async function Ue(r,t,e,n,s){const i=le,o=r,a=t,u=e,h=s;try{const l=await $t(["slide-verification","encryptkey","CAPTCHA"]),p=l.data.verificationBeforeLogin,v=l.data.publicKey,y=l.data.csrf;let S;p&&(S=(await he()).data);const b=new Ce;b.setPublicKey(v);let _=n.host.split(":")[0];const I=b.encrypt(_.trim());I&&_.length<53?_=I:_=_.trim();const D={};D.fr_username=b.encrypt(o.trim()),D.fr_password=b.encrypt(a.trim()),D.fr_gdcode=u,D.isApp=h,D.domain=_,D._token=y,D.json=1,D.encrypt=1,S&&Object.assign(D,S);const N=await R.post("/kdink8anl8z3",D,{headers:{"X-CSRF-TOKEN":D._token},params:{render:m()}});let O;return m()?O=JSON.parse(A(N.data)):O=N.data,N.status!=200?(i.status=N.status,i.message="",i):(i.data={msg:O.msg??"",accessToken:O.access_token??"",fullName:O.fullname??"",unreadMailCount:O.news??"",status:O.status??"",username:O.username??"",walletAmount:O.wallet??"",captcha:O.captcha??""},i)}catch(l){const p=l;return i.status=p.status||500,i.message=p.message,i}}T.Repository=ge,T.cmsList=Rt,T.csLink=Bt,T.currentLang=Ot,T.eGame=Pt,T.fishGames=Dt,T.getLocale=At,T.getLoginKey=Vt,T.getSetting=Nt,T.home=xt,T.hotGames=Et,T.login=Lt,T.promotion=_t,T.trialGames=wt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});
21
+ `,e+="-----END PUBLIC KEY-----",e},t.hasPublicKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t})(ar),dt,cr=typeof process<"u"?(dt=process.env)===null||dt===void 0?void 0:dt.npm_package_version:void 0,pr=(function(){function n(t){t===void 0&&(t={}),this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=t.key||null}return n.prototype.setKey=function(t){t?(this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new he(t)):!this.key&&this.log&&console.error("A key was not set.")},n.prototype.setPrivateKey=function(t){this.setKey(t)},n.prototype.setPublicKey=function(t){this.setKey(t)},n.prototype.decrypt=function(t){try{return this.getKey().decrypt(Wt(t))}catch{return!1}},n.prototype.encrypt=function(t){try{return $(this.getKey().encrypt(t))}catch{return!1}},n.prototype.encryptOAEP=function(t){try{return $(this.getKey().encrypt(t,or))}catch{return!1}},n.prototype.sign=function(t,e,r){e===void 0&&(e=function(i){return i}),r===void 0&&(r="");try{return $(this.getKey().sign(t,e,r))}catch{return!1}},n.prototype.signSha256=function(t){return this.sign(t,function(e){return ae(gt(e))},"sha256")},n.prototype.verify=function(t,e,r){r===void 0&&(r=function(i){return i});try{return this.getKey().verify(t,Wt(e),r)}catch{return!1}},n.prototype.verifySha256=function(t,e){return this.verify(t,e,function(r){return ae(gt(r))})},n.prototype.getKey=function(t){if(!this.key){if(this.key=new he,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},n.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},n.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},n.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},n.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},n.version=cr,n})();const le={data:{key:""}},ce=async()=>{let n={status:200,message:"",...le};try{const e=(await O("/mbuhx0as4kui",{ajax:1,render:x(),json:1})).data;n.data={key:e.key}}catch(t){n={status:t.status||500,message:t.message,...le}}return n},pe={data:{msg:"",accessToken:"",fullName:"",unreadMailCount:"",status:"",username:"",walletAmount:"",captcha:""}},gr=async(n,t,e,r,i,s,a,o)=>{let u={status:200,message:"",...pe};const h=n,l=t,p=e,d=i;try{let c;s&&(c=(await ce()).data);const m=new pr;m.setPublicKey(a);let S=r.host.split(":")[0];const D=m.encrypt(S.trim());D&&S.length<53?S=D:S=S.trim();const _={};_.fr_username=m.encrypt(h.trim()),_.fr_password=m.encrypt(l.trim()),_.fr_gdcode=p,_.isApp=d,_.domain=S,_._token=o,_.json=1,_.encrypt=1,c&&Object.assign(_,c);const R=(await me("/kdink8anl8z3",_,{render:x(),json:1})).data;u.data={msg:R.msg??"",accessToken:R.access_token??"",fullName:R.fullname??"",unreadMailCount:R.news??"",status:R.status??"",username:R.username??"",walletAmount:R.wallet??"",captcha:R.captcha??""}}catch(c){u={status:c.status||500,message:c.message,...pe}}return u};T.Repository=ve,T.cmsList=xt,T.csLink=Dt,T.currentLang=Tt,T.eGame=_t,T.fishGames=St,T.getLocale=wt,T.getLoginKey=Rt,T.getSetting=At,T.home=yt,T.hotGames=mt,T.login=Ot,T.promotion=Et,T.trialGames=bt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
@@ -0,0 +1,3 @@
1
+ import { AnnouncementResponse } from './type';
2
+ export declare const announcementApi: () => Promise<AnnouncementResponse>;
3
+ //# sourceMappingURL=announcementApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"announcementApi.d.ts","sourceRoot":"","sources":["../../../src/api/announcement/announcementApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,oBAAoB,EAAE,MAAM,QAAQ,CAAA;AAW/D,eAAO,MAAM,eAAe,QAAa,OAAO,CAAC,oBAAoB,CAwCpE,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './announcementApi';
2
+ export * from './type';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/announcement/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { BaseType } from '../../util/type';
2
+ export type AnnouncementResponse = BaseType & {
3
+ data: AnnouncementInfo[];
4
+ };
5
+ export type AnnouncementInfo = {
6
+ alert: boolean;
7
+ show: boolean;
8
+ status: boolean;
9
+ announcementId: number;
10
+ content: string;
11
+ dateCreated: string;
12
+ };
13
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/api/announcement/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE1C,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG;IAC5C,IAAI,EAAE,gBAAgB,EAAE,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,cAAc,EAAE,MAAM,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { CmsListResponse } from './type';
2
+ export declare const cmsListApi: () => Promise<CmsListResponse>;
3
+ //# sourceMappingURL=cmsListApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cmsListApi.d.ts","sourceRoot":"","sources":["../../../src/api/cmsList/cmsListApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAaxC,eAAO,MAAM,UAAU,QAAa,OAAO,CAAC,eAAe,CA6B1D,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './cmsListApi';
2
+ export * from './type';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/cmsList/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { BaseType } from '../../util/type';
2
+ export type CmsListResponse = BaseType & {
3
+ data: CmsListData;
4
+ };
5
+ export type CmsListData = {
6
+ mobileBanner: string[];
7
+ };
8
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/api/cmsList/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE1C,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG;IACvC,IAAI,EAAE,WAAW,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,YAAY,EAAE,MAAM,EAAE,CAAA;CACvB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { CsLinkResponse } from './type';
2
+ export declare const csLinkApi: () => Promise<CsLinkResponse>;
3
+ //# sourceMappingURL=csLinkApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"csLinkApi.d.ts","sourceRoot":"","sources":["../../../src/api/csLink/csLinkApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AAavC,eAAO,MAAM,SAAS,QAAa,OAAO,CAAC,cAAc,CA6BxD,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './csLinkApi';
2
+ export * from './type';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/csLink/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA"}
@@ -1,5 +1,4 @@
1
- import { BaseType } from '../util/type';
2
-
1
+ import { BaseType } from '../../util/type';
3
2
  export type CsLinkResponse = BaseType & {
4
3
  data: CsLinkData;
5
4
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/api/csLink/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE1C,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG;IACtC,IAAI,EAAE,UAAU,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { CurrentLangResponse } from './type';
2
+ export declare const currentLangApi: () => Promise<CurrentLangResponse>;
3
+ //# sourceMappingURL=currentLangApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currentLangApi.d.ts","sourceRoot":"","sources":["../../../src/api/currentLang/currentLangApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AAa5C,eAAO,MAAM,cAAc,QAAa,OAAO,CAAC,mBAAmB,CA6BlE,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './currentLangApi';
2
+ export * from './type';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/currentLang/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { BaseType } from '../../util/type';
2
+ export type CurrentLangResponse = BaseType & {
3
+ data: {
4
+ lang: string;
5
+ };
6
+ };
7
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/api/currentLang/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE1C,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG;IAC3C,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { EGameResponse } from './type';
2
+ export declare const eGameApi: (id: number) => Promise<EGameResponse>;
3
+ //# sourceMappingURL=eGameApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eGameApi.d.ts","sourceRoot":"","sources":["../../../src/api/eGame/eGameApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAE,MAAM,QAAQ,CAAA;AAajD,eAAO,MAAM,QAAQ,OAAc,MAAM,KAAG,OAAO,CAAC,aAAa,CA+ChE,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './eGameApi';
2
+ export * from './type';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/eGame/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA"}