wsemi 1.6.21 → 1.6.25

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 (380) hide show
  1. package/.github/workflows/ci-test.yml +2 -1
  2. package/README.md +30 -30
  3. package/SECURITY.md +5 -0
  4. package/dist/wsemi.umd.js +3 -3
  5. package/dist/wsemi.umd.js.map +1 -1
  6. package/docs/-_class.mjs.html +2 -2
  7. package/docs/ab2blob.mjs.html +2 -2
  8. package/docs/ab2u8arr.mjs.html +2 -2
  9. package/docs/addMonth.mjs.html +2 -2
  10. package/docs/aes2str.mjs.html +2 -2
  11. package/docs/alive.mjs.html +2 -2
  12. package/docs/arr2dt.mjs.html +2 -2
  13. package/docs/arrAccum.mjs.html +2 -2
  14. package/docs/arrAdd.mjs.html +2 -2
  15. package/docs/arrAt.mjs.html +2 -2
  16. package/docs/arrFilter.mjs.html +2 -2
  17. package/docs/arrFind.mjs.html +2 -2
  18. package/docs/arrGroupByMaxmin.mjs.html +2 -2
  19. package/docs/arrHas.mjs.html +2 -2
  20. package/docs/arrInsert.mjs.html +2 -2
  21. package/docs/arrLookupByMaxmin.mjs.html +2 -2
  22. package/docs/arrSep.mjs.html +2 -2
  23. package/docs/arrSort.mjs.html +2 -2
  24. package/docs/asind.mjs.html +2 -2
  25. package/docs/atan2d.mjs.html +2 -2
  26. package/docs/atand.mjs.html +2 -2
  27. package/docs/b642obj.mjs.html +2 -2
  28. package/docs/b642str.mjs.html +2 -2
  29. package/docs/b642u16arr.mjs.html +2 -2
  30. package/docs/b642u8arr.mjs.html +2 -2
  31. package/docs/binstr.mjs.html +2 -2
  32. package/docs/blob2ab.mjs.html +2 -2
  33. package/docs/blob2b64.mjs.html +2 -2
  34. package/docs/blob2str.mjs.html +2 -2
  35. package/docs/blob2u8arr.mjs.html +2 -2
  36. package/docs/blobs2b64s.mjs.html +2 -2
  37. package/docs/blobs2u8arrs.mjs.html +2 -2
  38. package/docs/bodyLog.mjs.html +2 -2
  39. package/docs/browserView.mjs.html +2 -2
  40. package/docs/browserViewFromBlob.mjs.html +2 -2
  41. package/docs/browserViewFromText.mjs.html +2 -2
  42. package/docs/browserViewFromU8arr.mjs.html +2 -2
  43. package/docs/bs2u8arr.mjs.html +2 -2
  44. package/docs/bufRead.mjs.html +2 -2
  45. package/docs/bufReadDbl.mjs.html +2 -2
  46. package/docs/bufWrite.mjs.html +2 -2
  47. package/docs/bufWriteDbl.mjs.html +2 -2
  48. package/docs/cache.mjs.html +2 -2
  49. package/docs/cbol.mjs.html +2 -2
  50. package/docs/cdbl.mjs.html +2 -2
  51. package/docs/cfilesize.mjs.html +2 -2
  52. package/docs/cfinancial.mjs.html +2 -2
  53. package/docs/cint.mjs.html +2 -2
  54. package/docs/clearXSS.mjs.html +2 -2
  55. package/docs/color.mjs.html +2 -2
  56. package/docs/composeTreeObj.mjs.html +2 -2
  57. package/docs/copyStrToClipboard.mjs.html +2 -2
  58. package/docs/cosd.mjs.html +2 -2
  59. package/docs/cotd.mjs.html +2 -2
  60. package/docs/cscd.mjs.html +2 -2
  61. package/docs/cstr.mjs.html +2 -2
  62. package/docs/day2cht.mjs.html +2 -2
  63. package/docs/debounce.mjs.html +2 -2
  64. package/docs/delay.mjs.html +2 -2
  65. package/docs/dig.mjs.html +2 -2
  66. package/docs/digExp.mjs.html +2 -2
  67. package/docs/domAlert.mjs.html +2 -2
  68. package/docs/domAppend.mjs.html +2 -2
  69. package/docs/domCancelEvent.mjs.html +2 -2
  70. package/docs/domConvertToPic.mjs.html +3 -2
  71. package/docs/domConvertToPicDyn.mjs.html +2 -2
  72. package/docs/domDetect.mjs.html +2 -2
  73. package/docs/domDrag.mjs.html +2 -2
  74. package/docs/domDragBarAndScroll.mjs.html +2 -2
  75. package/docs/domDragPreview.mjs.html +2 -2
  76. package/docs/domDropFiles.mjs.html +2 -2
  77. package/docs/domFadeIn.mjs.html +2 -2
  78. package/docs/domFadeOut.mjs.html +2 -2
  79. package/docs/domFind.mjs.html +2 -2
  80. package/docs/domFinds.mjs.html +2 -2
  81. package/docs/domGetAttr.mjs.html +2 -2
  82. package/docs/domGetBoudRect.mjs.html +2 -2
  83. package/docs/domGetBoudRectRefSelf.mjs.html +2 -2
  84. package/docs/domGetFileAccept.mjs.html +2 -2
  85. package/docs/domGetFiles.mjs.html +2 -2
  86. package/docs/domGetPointFromEvent.mjs.html +2 -2
  87. package/docs/domGetScrollableParent.mjs.html +2 -2
  88. package/docs/domIsClientXYIn.mjs.html +2 -2
  89. package/docs/domIsFocused.mjs.html +2 -2
  90. package/docs/domIsVisible.mjs.html +2 -2
  91. package/docs/domPrepend.mjs.html +2 -2
  92. package/docs/domRemove.mjs.html +2 -2
  93. package/docs/domRipple.mjs.html +2 -2
  94. package/docs/domScrollIntoView.mjs.html +2 -2
  95. package/docs/domScrollTo.mjs.html +2 -2
  96. package/docs/domShowImages.mjs.html +2 -2
  97. package/docs/domShowImagesDyn.mjs.html +2 -2
  98. package/docs/domShowInputAndGetFiles.mjs.html +2 -2
  99. package/docs/domShowInputAndGetFilesU8Arrs.mjs.html +2 -2
  100. package/docs/domTooltip.mjs.html +2 -2
  101. package/docs/domTriggerEvent.mjs.html +2 -2
  102. package/docs/domVirtualCreate.mjs.html +2 -2
  103. package/docs/domVirtualCreateQueue.mjs.html +2 -2
  104. package/docs/downloadExcelFileFromData.mjs.html +2 -2
  105. package/docs/downloadExcelFileFromDataDyn.mjs.html +2 -2
  106. package/docs/downloadFileFromB64.mjs.html +2 -2
  107. package/docs/downloadFileFromBlob.mjs.html +2 -2
  108. package/docs/downloadFileFromText.mjs.html +2 -2
  109. package/docs/downloadFileFromU8Arr.mjs.html +2 -2
  110. package/docs/dtmapping.mjs.html +2 -2
  111. package/docs/dtpick.mjs.html +2 -2
  112. package/docs/evem.mjs.html +2 -2
  113. package/docs/examples/{ex-xss.html → ex-clearXSS.html} +2 -2
  114. package/docs/examples/ex-colorConverter.html +1 -1
  115. package/docs/examples/ex-cryptojs.html +1 -1
  116. package/docs/examples/ex-dayjs.html +1 -1
  117. package/docs/examples/{ex-html-to-image.html → ex-domConvertToPic.html} +2 -2
  118. package/docs/examples/{ex-html-to-image-dynamic.html → ex-domConvertToPicDyn.html} +2 -2
  119. package/docs/examples/ex-domDrag.html +1 -1
  120. package/docs/examples/ex-domDropFiles.html +1 -1
  121. package/docs/examples/ex-domIsVisible.html +1 -1
  122. package/docs/examples/ex-domRipple.html +1 -1
  123. package/docs/examples/{ex-scrollIntoView.html → ex-domScrollIntoView.html} +2 -2
  124. package/docs/examples/{ex-scrollTo.html → ex-domScrollTo.html} +2 -2
  125. package/docs/examples/{ex-viewerjs.html → ex-domShowImages.html} +2 -2
  126. package/docs/examples/{ex-viewerjs-dynamic.html → ex-domShowImagesDyn.html} +2 -2
  127. package/docs/examples/{ex-tippyjs.html → ex-domTooltip.html} +2 -2
  128. package/docs/examples/{ex-uaparser.html → ex-getUserAgent.html} +2 -2
  129. package/docs/examples/{ex-uaparser-dynamic.html → ex-getUserAgentDyn.html} +2 -2
  130. package/docs/examples/{ex-html2canvas.html → ex-html2pic.html} +2 -2
  131. package/docs/examples/{ex-html2canvas-dynamic.html → ex-html2picDyn.html} +2 -2
  132. package/docs/examples/{ex-htmlparser.html → ex-html2str.html} +2 -2
  133. package/docs/examples/{ex-htmlparser-dynamic.html → ex-html2strDyn.html} +2 -2
  134. package/docs/examples/ex-lodash.html +1 -1
  135. package/docs/examples/ex-obj2u8arr-u8arr2obj.html +1 -1
  136. package/docs/examples/{ex-tesseract.html → ex-ocr.html} +2 -2
  137. package/docs/examples/{ex-tesseract-dynamic.html → ex-ocrDyn.html} +2 -2
  138. package/docs/examples/{ex-openlink.html → ex-openLink.html} +1 -1
  139. package/docs/examples/{ex-fuzzball.html → ex-strFindFuzz.html} +2 -2
  140. package/docs/examples/{ex-fuzzball-dynamic.html → ex-strFindFuzzDyn.html} +2 -2
  141. package/docs/examples/ex-timeTZ2expire-timeTZ2past.html +1 -1
  142. package/docs/examples/ex-xlsx.html +1 -1
  143. package/docs/examples/{ex-xlsx-dynamic.html → ex-xlsxDyn.html} +1 -1
  144. package/docs/execScript.mjs.html +2 -2
  145. package/docs/f2c.mjs.html +2 -2
  146. package/docs/files2data.mjs.html +2 -2
  147. package/docs/flattenTreeObj.mjs.html +2 -2
  148. package/docs/fsCleanFolder.mjs.html +2 -2
  149. package/docs/fsCopyFolder.mjs.html +2 -2
  150. package/docs/fsCreateFolder.mjs.html +2 -2
  151. package/docs/fsDeleteFolder.mjs.html +2 -2
  152. package/docs/fsGetFilesInFolder.mjs.html +2 -2
  153. package/docs/fsGetFoldersInFolder.mjs.html +2 -2
  154. package/docs/fsIsFile.mjs.html +2 -2
  155. package/docs/fsIsFolder.mjs.html +2 -2
  156. package/docs/fsReadText.mjs.html +2 -2
  157. package/docs/fsTreeFolder.mjs.html +2 -2
  158. package/docs/fsWriteText.mjs.html +2 -2
  159. package/docs/genGradientColor.mjs.html +2 -2
  160. package/docs/genID.mjs.html +2 -2
  161. package/docs/genPm.mjs.html +2 -2
  162. package/docs/getBufferSize.mjs.html +2 -2
  163. package/docs/getClearPathName.mjs.html +2 -2
  164. package/docs/getCsvStrFromData.mjs.html +2 -2
  165. package/docs/getDataFromExcelFileU8Arr.mjs.html +2 -2
  166. package/docs/getDataFromExcelFileU8ArrDyn.mjs.html +2 -2
  167. package/docs/getDirName.mjs.html +2 -2
  168. package/docs/getEnv.mjs.html +2 -2
  169. package/docs/getExcelU8ArrFromData.mjs.html +2 -2
  170. package/docs/getExcelWorkbookFromData.mjs.html +2 -2
  171. package/docs/getExcelWorkbookFromWorksheet.mjs.html +2 -2
  172. package/docs/getFileAccept.mjs.html +2 -2
  173. package/docs/getFileName.mjs.html +2 -2
  174. package/docs/getFileTrueName.mjs.html +2 -2
  175. package/docs/getGlobal.mjs.html +2 -2
  176. package/docs/getObjSize.mjs.html +2 -2
  177. package/docs/getTimeBetween.mjs.html +2 -2
  178. package/docs/getTimeFromUnit.mjs.html +2 -2
  179. package/docs/getTimeObject.mjs.html +2 -2
  180. package/docs/getTimeRange.mjs.html +2 -2
  181. package/docs/getUserAgent.mjs.html +2 -2
  182. package/docs/getUserAgentDyn.mjs.html +2 -2
  183. package/docs/getltdtkeys.mjs.html +2 -2
  184. package/docs/haskey.mjs.html +4 -3
  185. package/docs/html2pic.mjs.html +2 -2
  186. package/docs/html2picDyn.mjs.html +2 -2
  187. package/docs/html2str.mjs.html +2 -2
  188. package/docs/html2strDyn.mjs.html +2 -2
  189. package/docs/htmlDecode.mjs.html +2 -2
  190. package/docs/htmlEncode.mjs.html +2 -2
  191. package/docs/importResources.mjs.html +2 -2
  192. package/docs/index.html +2 -2
  193. package/docs/interp1.mjs.html +2 -2
  194. package/docs/isDev.mjs.html +2 -2
  195. package/docs/isEle.mjs.html +2 -2
  196. package/docs/isEleExistByID.mjs.html +2 -2
  197. package/docs/isEmail.mjs.html +2 -2
  198. package/docs/isIE.mjs.html +2 -2
  199. package/docs/isNarrow.mjs.html +2 -2
  200. package/docs/isStrHasCapital.mjs.html +2 -2
  201. package/docs/isStrHasLowerCase.mjs.html +2 -2
  202. package/docs/isStrHasNumber.mjs.html +2 -2
  203. package/docs/isUserIdentify.mjs.html +2 -2
  204. package/docs/isUserName.mjs.html +2 -2
  205. package/docs/isUserPW.mjs.html +2 -2
  206. package/docs/isWindow.mjs.html +2 -2
  207. package/docs/isab.mjs.html +2 -2
  208. package/docs/isarr.mjs.html +2 -2
  209. package/docs/isarr0.mjs.html +2 -2
  210. package/docs/isblob.mjs.html +2 -2
  211. package/docs/isbol.mjs.html +2 -2
  212. package/docs/isday.mjs.html +2 -2
  213. package/docs/isearr.mjs.html +2 -2
  214. package/docs/iseobj.mjs.html +2 -2
  215. package/docs/iser.mjs.html +2 -2
  216. package/docs/isernot.mjs.html +2 -2
  217. package/docs/isestr.mjs.html +2 -2
  218. package/docs/isfun.mjs.html +2 -2
  219. package/docs/isint.mjs.html +2 -2
  220. package/docs/ismonth.mjs.html +2 -2
  221. package/docs/isn0int.mjs.html +23 -2
  222. package/docs/isn0num.mjs.html +17 -8
  223. package/docs/isnbr.mjs.html +2 -2
  224. package/docs/isnint.mjs.html +23 -2
  225. package/docs/isnnum.mjs.html +127 -0
  226. package/docs/isnull.mjs.html +2 -2
  227. package/docs/isnum.mjs.html +2 -2
  228. package/docs/isobj.mjs.html +2 -2
  229. package/docs/isobj0.mjs.html +2 -2
  230. package/docs/isp0int.mjs.html +20 -2
  231. package/docs/isp0num.mjs.html +19 -4
  232. package/docs/ispint.mjs.html +21 -3
  233. package/docs/ispm.mjs.html +2 -2
  234. package/docs/ispnum.mjs.html +127 -0
  235. package/docs/isstr.mjs.html +2 -2
  236. package/docs/isstr0.mjs.html +2 -2
  237. package/docs/istime.mjs.html +2 -2
  238. package/docs/istimeTZ.mjs.html +2 -2
  239. package/docs/istimems.mjs.html +2 -2
  240. package/docs/istimemsTZ.mjs.html +2 -2
  241. package/docs/isu16arr.mjs.html +2 -2
  242. package/docs/isu8arr.mjs.html +2 -2
  243. package/docs/isundefined.mjs.html +2 -2
  244. package/docs/j2o.mjs.html +2 -2
  245. package/docs/keysmat2ltdt.mjs.html +2 -2
  246. package/docs/log.mjs.html +2 -2
  247. package/docs/ltdt2vrtsable.mjs.html +2 -2
  248. package/docs/ltdtdiff.mjs.html +2 -2
  249. package/docs/ltdtkeys2mat.mjs.html +2 -2
  250. package/docs/ltdtkeysheads2mat.mjs.html +2 -2
  251. package/docs/ltdtmapping.mjs.html +2 -2
  252. package/docs/ltdtmerge.mjs.html +2 -2
  253. package/docs/ltdtpick.mjs.html +2 -2
  254. package/docs/ltdtpull.mjs.html +2 -2
  255. package/docs/mat2ltdt.mjs.html +2 -2
  256. package/docs/matat.mjs.html +2 -2
  257. package/docs/now2str.mjs.html +2 -2
  258. package/docs/now2strp.mjs.html +2 -2
  259. package/docs/nowDay2str.mjs.html +2 -2
  260. package/docs/nowms2str.mjs.html +2 -2
  261. package/docs/nowms2strp.mjs.html +2 -2
  262. package/docs/o2j.mjs.html +2 -2
  263. package/docs/obj2b64.mjs.html +2 -2
  264. package/docs/obj2pb64.mjs.html +2 -2
  265. package/docs/obj2str.mjs.html +2 -2
  266. package/docs/obj2stru8arr.mjs.html +2 -2
  267. package/docs/obj2u8arr.mjs.html +2 -2
  268. package/docs/objSortBy.mjs.html +2 -2
  269. package/docs/ocr.mjs.html +2 -2
  270. package/docs/ocrDyn.mjs.html +2 -2
  271. package/docs/oo.mjs.html +2 -2
  272. package/docs/openLink.mjs.html +2 -2
  273. package/docs/pb642obj.mjs.html +2 -2
  274. package/docs/pm2resolve.mjs.html +2 -2
  275. package/docs/pmChain.mjs.html +2 -2
  276. package/docs/pmHook.mjs.html +2 -2
  277. package/docs/pmHookReject.mjs.html +2 -2
  278. package/docs/pmIni.mjs.html +2 -2
  279. package/docs/pmMap.mjs.html +2 -2
  280. package/docs/pmQueue.mjs.html +2 -2
  281. package/docs/pmSeries.mjs.html +2 -2
  282. package/docs/pmThrottle.mjs.html +2 -2
  283. package/docs/queue.mjs.html +2 -2
  284. package/docs/rep.mjs.html +2 -2
  285. package/docs/repObj.mjs.html +2 -2
  286. package/docs/replace.mjs.html +2 -2
  287. package/docs/replaceObj.mjs.html +2 -2
  288. package/docs/replacePlus.mjs.html +2 -2
  289. package/docs/round.mjs.html +2 -2
  290. package/docs/secd.mjs.html +2 -2
  291. package/docs/sep.mjs.html +2 -2
  292. package/docs/sepInt.mjs.html +2 -2
  293. package/docs/sind.mjs.html +2 -2
  294. package/docs/split.mjs.html +2 -2
  295. package/docs/str2aes.mjs.html +2 -2
  296. package/docs/str2b64.mjs.html +2 -2
  297. package/docs/str2md5.mjs.html +2 -2
  298. package/docs/str2obj.mjs.html +2 -2
  299. package/docs/str2sha512.mjs.html +2 -2
  300. package/docs/str2u8arr.mjs.html +2 -2
  301. package/docs/strCompare.mjs.html +2 -2
  302. package/docs/strFindFuzz.mjs.html +2 -2
  303. package/docs/strFindFuzzDyn.mjs.html +2 -2
  304. package/docs/strFindSimilar.mjs.html +2 -2
  305. package/docs/strdelleft.mjs.html +2 -2
  306. package/docs/strdelright.mjs.html +2 -2
  307. package/docs/strleft.mjs.html +2 -2
  308. package/docs/strmid.mjs.html +2 -2
  309. package/docs/strright.mjs.html +2 -2
  310. package/docs/stru8arr2obj.mjs.html +2 -2
  311. package/docs/tand.mjs.html +2 -2
  312. package/docs/time2day.mjs.html +2 -2
  313. package/docs/time2hour.mjs.html +2 -2
  314. package/docs/time2min.mjs.html +2 -2
  315. package/docs/timeTZ2day.mjs.html +2 -2
  316. package/docs/timeTZ2expire.mjs.html +2 -2
  317. package/docs/timeTZ2hour.mjs.html +2 -2
  318. package/docs/timeTZ2min.mjs.html +2 -2
  319. package/docs/timeTZ2past.mjs.html +2 -2
  320. package/docs/timems2day.mjs.html +2 -2
  321. package/docs/timems2hour.mjs.html +2 -2
  322. package/docs/timems2min.mjs.html +2 -2
  323. package/docs/timems2time.mjs.html +2 -2
  324. package/docs/timemsTZ2day.mjs.html +2 -2
  325. package/docs/timemsTZ2expire.mjs.html +2 -2
  326. package/docs/timemsTZ2hour.mjs.html +2 -2
  327. package/docs/timemsTZ2min.mjs.html +2 -2
  328. package/docs/timemsTZ2past.mjs.html +2 -2
  329. package/docs/timemsTZ2time.mjs.html +2 -2
  330. package/docs/treeObj.mjs.html +2 -2
  331. package/docs/trim.mjs.html +2 -2
  332. package/docs/u16arr2b64.mjs.html +2 -2
  333. package/docs/u16arr2u8arr.mjs.html +2 -2
  334. package/docs/u8arr2ab.mjs.html +2 -2
  335. package/docs/u8arr2b64.mjs.html +2 -2
  336. package/docs/u8arr2blob.mjs.html +2 -2
  337. package/docs/u8arr2bs.mjs.html +2 -2
  338. package/docs/u8arr2obj.mjs.html +2 -2
  339. package/docs/u8arr2str.mjs.html +2 -2
  340. package/docs/u8arr2u16arr.mjs.html +2 -2
  341. package/docs/urlParse.mjs.html +2 -2
  342. package/docs/verifyValue.mjs.html +2 -2
  343. package/docs/waitFun.mjs.html +2 -2
  344. package/docs/wsemi.html +508 -22
  345. package/examples/{ex-xss.html → ex-clearXSS.html} +1 -1
  346. package/examples/{ex-html-to-image.html → ex-domConvertToPic.html} +1 -1
  347. package/examples/{ex-html-to-image-dynamic.html → ex-domConvertToPicDyn.html} +1 -1
  348. package/examples/{ex-scrollIntoView.html → ex-domScrollIntoView.html} +1 -1
  349. package/examples/{ex-scrollTo.html → ex-domScrollTo.html} +1 -1
  350. package/examples/{ex-viewerjs.html → ex-domShowImages.html} +1 -1
  351. package/examples/{ex-viewerjs-dynamic.html → ex-domShowImagesDyn.html} +1 -1
  352. package/examples/{ex-tippyjs.html → ex-domTooltip.html} +1 -1
  353. package/examples/{ex-uaparser.html → ex-getUserAgent.html} +1 -1
  354. package/examples/{ex-uaparser-dynamic.html → ex-getUserAgentDyn.html} +1 -1
  355. package/examples/{ex-html2canvas.html → ex-html2pic.html} +1 -1
  356. package/examples/{ex-html2canvas-dynamic.html → ex-html2picDyn.html} +1 -1
  357. package/examples/{ex-htmlparser.html → ex-html2str.html} +1 -1
  358. package/examples/{ex-htmlparser-dynamic.html → ex-html2strDyn.html} +1 -1
  359. package/examples/{ex-tesseract.html → ex-ocr.html} +1 -1
  360. package/examples/{ex-tesseract-dynamic.html → ex-ocrDyn.html} +1 -1
  361. package/examples/{ex-openlink.html → ex-openLink.html} +0 -0
  362. package/examples/{ex-fuzzball.html → ex-strFindFuzz.html} +1 -1
  363. package/examples/{ex-fuzzball-dynamic.html → ex-strFindFuzzDyn.html} +1 -1
  364. package/examples/{ex-xlsx-dynamic.html → ex-xlsxDyn.html} +0 -0
  365. package/package.json +3 -3
  366. package/src/domConvertToPic.mjs +1 -0
  367. package/src/haskey.mjs +2 -1
  368. package/src/index.mjs +2 -0
  369. package/src/isn0int.mjs +21 -0
  370. package/src/isn0num.mjs +15 -6
  371. package/src/isnint.mjs +21 -0
  372. package/src/isnnum.mjs +58 -0
  373. package/src/isp0int.mjs +18 -0
  374. package/src/isp0num.mjs +17 -2
  375. package/src/ispint.mjs +19 -1
  376. package/src/ispnum.mjs +58 -0
  377. package/test/haskey.test.mjs +41 -0
  378. package/test/isn0num.test.mjs +5 -0
  379. package/test/isnnum.test.mjs +157 -0
  380. package/test/ispnum.test.mjs +157 -0
package/dist/wsemi.umd.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * wsemi v1.6.21
2
+ * wsemi v1.6.25
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
6
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("dayjs"),require("crypto"),require("xss"),require("viewerjs"),require("xlsx"),require("child_process"),require("fs"),require("path"),require("ua-parser-js"),require("htmlparser"),require("tesseract.js")):"function"==typeof define&&define.amd?define(["exports","dayjs","crypto","xss","viewerjs","xlsx","child_process","fs","path","ua-parser-js","htmlparser","tesseract.js"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wsemi={},e.dayjs,e.crypto,e.filterXSS,e.viewerjs,e.XLSX,e.child_process,e.fs,e.path,e.UAParser,e.htmlparser,e.tesseractjs)}(this,(function(e,t,r,n,o,i,a,u,c,s,f,l){"use strict";function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=p(t),v=p(r),h=p(n),g=p(o),m=p(i),y=p(a),b=p(u),w=p(c),x=p(s),j=p(f),_=p(l);function O(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}function k(e){return O(e)?new Uint8Array(e):new Uint8Array}function S(e){return"[object String]"===Object.prototype.toString.call(e)}function E(e){return!(!S(e)||""===e)}function A(e){if(!E(e))return!1;var t="YYYY-MM";return e===d.default(e,t).format(t)}var M=/\s/;var D=function(e){for(var t=e.length;t--&&M.test(e.charAt(t)););return t},P=/^\s+/;var Y=function(e){return e?e.slice(0,D(e)+1).replace(P,""):e};function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var I=function(e){var t=T(e);return null!=e&&("object"==t||"function"==t)},C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function L(e){var t={exports:{}};return e(t,t.exports),t.exports}var H="object"==T(C)&&C&&C.Object===Object&&C,B="object"==("undefined"==typeof self?"undefined":T(self))&&self&&self.Object===Object&&self,z=H||B||Function("return this")(),F=z.Symbol,R=Object.prototype,N=R.hasOwnProperty,U=R.toString,W=F?F.toStringTag:void 0;var q=function(e){var t=N.call(e,W),r=e[W];try{e[W]=void 0;var n=!0}catch(e){}var o=U.call(e);return n&&(t?e[W]=r:delete e[W]),o},V=Object.prototype.toString;var X=function(e){return V.call(e)},$=F?F.toStringTag:void 0;var G=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":$&&$ in Object(e)?q(e):X(e)};var Z=function(e){return null!=e&&"object"==T(e)};var K=function(e){return"symbol"==T(e)||Z(e)&&"[object Symbol]"==G(e)},J=/^[-+]0x[0-9a-f]+$/i,Q=/^0b[01]+$/i,ee=/^0o[0-7]+$/i,te=parseInt;var re=function(e){if("number"==typeof e)return e;if(K(e))return NaN;if(I(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=I(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Y(e);var r=Q.test(e);return r||ee.test(e)?te(e.slice(2),r?2:8):J.test(e)?NaN:+e},ne=1/0;var oe=function(e){return e?(e=re(e))===ne||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var ie=function(e){var t=oe(e),r=t%1;return t==t?r?t-r:t:0};var ae=function(e){return"number"==typeof e&&e==ie(e)};function ue(e){return"[object Number]"===Object.prototype.toString.call(e)}function ce(e){var t=!1;return E(e)?t=!isNaN(Number(e)):ue(e)&&(t=!0),t}function se(e){return ce(e)?oe(e):0}function fe(e){return!!ce(e)&&(e=se(e),ae(e))}var le=L((function(e,t){var r;e.exports=r=r||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==C&&C.crypto&&(r=C.crypto),!r)try{r=v.default}catch(e){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),i={},a=i.lib={},u=a.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=u.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||f).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var a=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=a<<24-(n+i)%4*8}else for(var u=0;u<o;u+=4)t[n+u>>>2]=r[u>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new c.init(t,e)}}),s=i.enc={},f=s.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},p=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},d=a.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,a=this.blockSize,u=i/(4*a),s=(u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0))*a,f=e.min(4*s,i);if(s){for(var l=0;l<s;l+=a)this._doProcessBlock(o,l);r=o.splice(0,s),n.sigBytes-=f}return new c.init(r,f)},clone:function(){var e=u.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=d.extend({cfg:u.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new h.HMAC.init(e,r).finalize(t)}}});var h=i.algo={};return i}(Math)})),pe=L((function(e,t){var r;e.exports=(r=le,function(){var e=r,t=e.lib.WordArray;function n(e,r,n){for(var o=[],i=0,a=0;a<r;a++)if(a%4){var u=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=u<<24-i%4*8,i++}return t.create(o,i)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,u=0;u<4&&i+.75*u<r;u++)o.push(n.charAt(a>>>6*(3-u)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<r.length;i++)o[r.charCodeAt(i)]=i}var a=r.charAt(64);if(a){var u=e.indexOf(a);-1!==u&&(t=u)}return n(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64)})),de=L((function(e,t){var r;e.exports=(r=le,function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.algo,u=[];!function(){for(var t=0;t<64;t++)u[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],c=e[t+1],d=e[t+2],v=e[t+3],h=e[t+4],g=e[t+5],m=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],x=e[t+10],j=e[t+11],_=e[t+12],O=e[t+13],k=e[t+14],S=e[t+15],E=i[0],A=i[1],M=i[2],D=i[3];E=s(E,A,M,D,a,7,u[0]),D=s(D,E,A,M,c,12,u[1]),M=s(M,D,E,A,d,17,u[2]),A=s(A,M,D,E,v,22,u[3]),E=s(E,A,M,D,h,7,u[4]),D=s(D,E,A,M,g,12,u[5]),M=s(M,D,E,A,m,17,u[6]),A=s(A,M,D,E,y,22,u[7]),E=s(E,A,M,D,b,7,u[8]),D=s(D,E,A,M,w,12,u[9]),M=s(M,D,E,A,x,17,u[10]),A=s(A,M,D,E,j,22,u[11]),E=s(E,A,M,D,_,7,u[12]),D=s(D,E,A,M,O,12,u[13]),M=s(M,D,E,A,k,17,u[14]),E=f(E,A=s(A,M,D,E,S,22,u[15]),M,D,c,5,u[16]),D=f(D,E,A,M,m,9,u[17]),M=f(M,D,E,A,j,14,u[18]),A=f(A,M,D,E,a,20,u[19]),E=f(E,A,M,D,g,5,u[20]),D=f(D,E,A,M,x,9,u[21]),M=f(M,D,E,A,S,14,u[22]),A=f(A,M,D,E,h,20,u[23]),E=f(E,A,M,D,w,5,u[24]),D=f(D,E,A,M,k,9,u[25]),M=f(M,D,E,A,v,14,u[26]),A=f(A,M,D,E,b,20,u[27]),E=f(E,A,M,D,O,5,u[28]),D=f(D,E,A,M,d,9,u[29]),M=f(M,D,E,A,y,14,u[30]),E=l(E,A=f(A,M,D,E,_,20,u[31]),M,D,g,4,u[32]),D=l(D,E,A,M,b,11,u[33]),M=l(M,D,E,A,j,16,u[34]),A=l(A,M,D,E,k,23,u[35]),E=l(E,A,M,D,c,4,u[36]),D=l(D,E,A,M,h,11,u[37]),M=l(M,D,E,A,y,16,u[38]),A=l(A,M,D,E,x,23,u[39]),E=l(E,A,M,D,O,4,u[40]),D=l(D,E,A,M,a,11,u[41]),M=l(M,D,E,A,v,16,u[42]),A=l(A,M,D,E,m,23,u[43]),E=l(E,A,M,D,w,4,u[44]),D=l(D,E,A,M,_,11,u[45]),M=l(M,D,E,A,S,16,u[46]),E=p(E,A=l(A,M,D,E,d,23,u[47]),M,D,a,6,u[48]),D=p(D,E,A,M,y,10,u[49]),M=p(M,D,E,A,k,15,u[50]),A=p(A,M,D,E,g,21,u[51]),E=p(E,A,M,D,_,6,u[52]),D=p(D,E,A,M,v,10,u[53]),M=p(M,D,E,A,x,15,u[54]),A=p(A,M,D,E,c,21,u[55]),E=p(E,A,M,D,b,6,u[56]),D=p(D,E,A,M,S,10,u[57]),M=p(M,D,E,A,m,15,u[58]),A=p(A,M,D,E,O,21,u[59]),E=p(E,A,M,D,h,6,u[60]),D=p(D,E,A,M,j,10,u[61]),M=p(M,D,E,A,d,15,u[62]),A=p(A,M,D,E,w,21,u[63]),i[0]=i[0]+E|0,i[1]=i[1]+A|0,i[2]=i[2]+M|0,i[3]=i[3]+D|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;r[o>>>5]|=128<<24-o%32;var i=e.floor(n/4294967296),a=n;r[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var u=this._hash,c=u.words,s=0;s<4;s++){var f=c[s];c[s]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return u},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function s(e,t,r,n,o,i,a){var u=e+(t&r|~t&n)+o+a;return(u<<i|u>>>32-i)+t}function f(e,t,r,n,o,i,a){var u=e+(t&n|r&~n)+o+a;return(u<<i|u>>>32-i)+t}function l(e,t,r,n,o,i,a){var u=e+(t^r^n)+o+a;return(u<<i|u>>>32-i)+t}function p(e,t,r,n,o,i,a){var u=e+(r^(t|~n))+o+a;return(u<<i|u>>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),r.MD5)})),ve=(L((function(e,t){var r,n,o,i,a,u,c,s;e.exports=(n=(r=s=le).lib,o=n.WordArray,i=n.Hasher,a=r.algo,u=[],c=a.SHA1=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],c=r[4],s=0;s<80;s++){if(s<16)u[s]=0|e[t+s];else{var f=u[s-3]^u[s-8]^u[s-14]^u[s-16];u[s]=f<<1|f>>>31}var l=(n<<5|n>>>27)+c+u[s];l+=s<20?1518500249+(o&i|~o&a):s<40?1859775393+(o^i^a):s<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,c=a,a=i,i=o<<30|o>>>2,o=n,n=l}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),r.SHA1=i._createHelper(c),r.HmacSHA1=i._createHmacHelper(c),s.SHA1)})),L((function(e,t){var r,n,o;e.exports=(n=(r=le).lib.Base,o=r.enc.Utf8,void(r.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),u=i.words,c=a.words,s=0;s<r;s++)u[s]^=1549556828,c[s]^=909522486;i.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})))})),L((function(e,t){var r,n,o,i,a,u,c,s;e.exports=(n=(r=s=le).lib,o=n.Base,i=n.WordArray,a=r.algo,u=a.MD5,c=a.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:u,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),a=i.create(),u=a.words,c=n.keySize,s=n.iterations;u.length<c;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var f=1;f<s;f++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*c,a}}),r.EvpKDF=function(e,t,r){return c.create(r).compute(e,t)},s.EvpKDF)})),L((function(e,t){var r;e.exports=void((r=le).lib.Cipher||function(e){var t=r,n=t.lib,o=n.Base,i=n.WordArray,a=n.BufferedBlockAlgorithm,u=t.enc;u.Utf8;var c=u.Base64,s=t.algo.EvpKDF,f=n.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:m}return function(t){return{encrypt:function(r,n,o){return e(n).encrypt(t,r,n,o)},decrypt:function(r,n,o){return e(n).decrypt(t,r,n,o)}}}}()});n.StreamCipher=f.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l=t.mode={},p=n.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),d=l.CBC=function(){var t=p.extend();function r(t,r,n){var o,i=this._iv;i?(o=i,this._iv=e):o=this._prevBlock;for(var a=0;a<n;a++)t[r+a]^=o[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize;r.call(this,e,t,o),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=e.slice(t,t+o);n.decryptBlock(e,t),r.call(this,e,t,o),this._prevBlock=i}}),t}(),v=(t.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,o=n<<24|n<<16|n<<8|n,a=[],u=0;u<n;u+=4)a.push(o);var c=i.create(a,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=f.extend({cfg:f.cfg.extend({mode:d,padding:v}),reset:function(){var e;f.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var h=n.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?i.create([1398893684,1701076831]).concat(r).concat(t):t).toString(c)},parse:function(e){var t,r=c.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=i.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),h.create({ciphertext:r,salt:t})}},m=n.SerializableCipher=o.extend({cfg:o.extend({format:g}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var o=e.createEncryptor(r,n),i=o.finalize(t),a=o.cfg;return h.create({ciphertext:i,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(t.kdf={}).OpenSSL={execute:function(e,t,r,n){n||(n=i.random(8));var o=s.create({keySize:t+r}).compute(e,n),a=i.create(o.words.slice(t),4*r);return o.sigBytes=4*t,h.create({key:o,iv:a,salt:n})}},b=n.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:y}),encrypt:function(e,t,r,n){var o=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=o.iv;var i=m.encrypt.call(this,e,t,o.key,n);return i.mixIn(o),i},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var o=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=o.iv,m.decrypt.call(this,e,t,o.key,n)}})}())})),L((function(e,t){var r;e.exports=(r=le,function(){var e=r,t=e.lib.BlockCipher,n=e.algo,o=[],i=[],a=[],u=[],c=[],s=[],f=[],l=[],p=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var v=n^n<<1^n<<2^n<<3^n<<4;v=v>>>8^255&v^99,o[r]=v,i[v]=r;var h=e[r],g=e[h],m=e[g],y=257*e[v]^16843008*v;a[r]=y<<24|y>>>8,u[r]=y<<16|y>>>16,c[r]=y<<8|y>>>24,s[r]=y,y=16843009*m^65537*g^257*h^16843008*r,f[v]=y<<24|y>>>8,l[v]=y<<16|y>>>16,p[v]=y<<8|y>>>24,d[v]=y,r?(r=h^e[e[e[m^h]]],n^=e[e[n]]):r=n=1}}();var v=[0,1,2,4,8,16,32,64,128,27,54],h=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],a=0;a<n;a++)a<r?i[a]=t[a]:(s=i[a-1],a%r?r>6&&a%r==4&&(s=o[s>>>24]<<24|o[s>>>16&255]<<16|o[s>>>8&255]<<8|o[255&s]):(s=o[(s=s<<8|s>>>24)>>>24]<<24|o[s>>>16&255]<<16|o[s>>>8&255]<<8|o[255&s],s^=v[a/r|0]<<24),i[a]=i[a-r]^s);for(var u=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var s=i[a];else s=i[a-4];u[c]=c<4||a<=4?s:f[o[s>>>24]]^l[o[s>>>16&255]]^p[o[s>>>8&255]]^d[o[255&s]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,u,c,s,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,f,l,p,d,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,a,u){for(var c=this._nRounds,s=e[t]^r[0],f=e[t+1]^r[1],l=e[t+2]^r[2],p=e[t+3]^r[3],d=4,v=1;v<c;v++){var h=n[s>>>24]^o[f>>>16&255]^i[l>>>8&255]^a[255&p]^r[d++],g=n[f>>>24]^o[l>>>16&255]^i[p>>>8&255]^a[255&s]^r[d++],m=n[l>>>24]^o[p>>>16&255]^i[s>>>8&255]^a[255&f]^r[d++],y=n[p>>>24]^o[s>>>16&255]^i[f>>>8&255]^a[255&l]^r[d++];s=h,f=g,l=m,p=y}h=(u[s>>>24]<<24|u[f>>>16&255]<<16|u[l>>>8&255]<<8|u[255&p])^r[d++],g=(u[f>>>24]<<24|u[l>>>16&255]<<16|u[p>>>8&255]<<8|u[255&s])^r[d++],m=(u[l>>>24]<<24|u[p>>>16&255]<<16|u[s>>>8&255]<<8|u[255&f])^r[d++],y=(u[p>>>24]<<24|u[s>>>16&255]<<16|u[f>>>8&255]<<8|u[255&l])^r[d++],e[t]=h,e[t+1]=g,e[t+2]=m,e[t+3]=y},keySize:8});e.AES=t._createHelper(h)}(),r.AES)}))),he=L((function(e,t){e.exports=le.enc.Utf8})),ge=L((function(e,t){e.exports=le.enc.Hex}));var me=function(e){return!0===e||!1===e||Z(e)&&"[object Boolean]"==G(e)};function ye(e){return me(e)}function be(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!E(e))return"";if(!E(t))return"";if(!ye(r))return"";var n="";if(r){var o=ve.decrypt(e,t);n=o.toString(he)}else{var i=ge.parse(e),a=i.toString(pe),u=ve.decrypt(a,t);n=u.toString(he)}return n}var we=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e};var xe=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),u=a.length;u--;){var c=a[e?u:++o];if(!1===r(i[c],c,i))break}return t}}();var je=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var _e=function(e){return Z(e)&&"[object Arguments]"==G(e)},Oe=Object.prototype,ke=Oe.hasOwnProperty,Se=Oe.propertyIsEnumerable,Ee=_e(function(){return arguments}())?_e:function(e){return Z(e)&&ke.call(e,"callee")&&!Se.call(e,"callee")},Ae=Array.isArray;var Me=function(){return!1},De=L((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?z.Buffer:void 0,i=(o?o.isBuffer:void 0)||Me;e.exports=i})),Pe=/^(?:0|[1-9]\d*)$/;var Ye=function(e,t){var r=T(e);return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Pe.test(e))&&e>-1&&e%1==0&&e<t};var Te=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ie={};Ie["[object Float32Array]"]=Ie["[object Float64Array]"]=Ie["[object Int8Array]"]=Ie["[object Int16Array]"]=Ie["[object Int32Array]"]=Ie["[object Uint8Array]"]=Ie["[object Uint8ClampedArray]"]=Ie["[object Uint16Array]"]=Ie["[object Uint32Array]"]=!0,Ie["[object Arguments]"]=Ie["[object Array]"]=Ie["[object ArrayBuffer]"]=Ie["[object Boolean]"]=Ie["[object DataView]"]=Ie["[object Date]"]=Ie["[object Error]"]=Ie["[object Function]"]=Ie["[object Map]"]=Ie["[object Number]"]=Ie["[object Object]"]=Ie["[object RegExp]"]=Ie["[object Set]"]=Ie["[object String]"]=Ie["[object WeakMap]"]=!1;var Ce=function(e){return Z(e)&&Te(e.length)&&!!Ie[G(e)]};var Le=function(e){return function(t){return e(t)}},He=L((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&H.process,i=function(){try{var e=n&&n.require&&n.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=i})),Be=He&&He.isTypedArray,ze=Be?Le(Be):Ce,Fe=Object.prototype.hasOwnProperty;var Re=function(e,t){var r=Ae(e),n=!r&&Ee(e),o=!r&&!n&&De(e),i=!r&&!n&&!o&&ze(e),a=r||n||o||i,u=a?je(e.length,String):[],c=u.length;for(var s in e)!t&&!Fe.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Ye(s,c))||u.push(s);return u},Ne=Object.prototype;var Ue=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ne)};var We=function(e,t){return function(r){return e(t(r))}},qe=We(Object.keys,Object),Ve=Object.prototype.hasOwnProperty;var Xe=function(e){if(!Ue(e))return qe(e);var t=[];for(var r in Object(e))Ve.call(e,r)&&"constructor"!=r&&t.push(r);return t};var $e=function(e){if(!I(e))return!1;var t=G(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var Ge=function(e){return null!=e&&Te(e.length)&&!$e(e)};var Ze=function(e){return Ge(e)?Re(e):Xe(e)};var Ke=function(e,t){return function(r,n){if(null==r)return r;if(!Ge(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=Object(r);(t?i--:++i<o)&&!1!==n(a[i],i,a););return r}}((function(e,t){return e&&xe(e,t,Ze)}));var Je=function(e){return e};var Qe=function(e){return"function"==typeof e?e:Je};var et=function(e,t){return(Ae(e)?we:Ke)(e,Qe(t))};var tt=function(){this.__data__=[],this.size=0};var rt=function(e,t){return e===t||e!=e&&t!=t};var nt=function(e,t){for(var r=e.length;r--;)if(rt(e[r][0],t))return r;return-1},ot=Array.prototype.splice;var it=function(e){var t=this.__data__,r=nt(t,e);return!(r<0)&&(r==t.length-1?t.pop():ot.call(t,r,1),--this.size,!0)};var at=function(e){var t=this.__data__,r=nt(t,e);return r<0?void 0:t[r][1]};var ut=function(e){return nt(this.__data__,e)>-1};var ct=function(e,t){var r=this.__data__,n=nt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function st(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}st.prototype.clear=tt,st.prototype.delete=it,st.prototype.get=at,st.prototype.has=ut,st.prototype.set=ct;var ft=st;var lt=function(){this.__data__=new ft,this.size=0};var pt=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var dt=function(e){return this.__data__.get(e)};var vt,ht=function(e){return this.__data__.has(e)},gt=z["__core-js_shared__"],mt=(vt=/[^.]+$/.exec(gt&&gt.keys&&gt.keys.IE_PROTO||""))?"Symbol(src)_1."+vt:"";var yt=function(e){return!!mt&&mt in e},bt=Function.prototype.toString;var wt=function(e){if(null!=e){try{return bt.call(e)}catch(e){}try{return e+""}catch(e){}}return""},xt=/^\[object .+?Constructor\]$/,jt=Function.prototype,_t=Object.prototype,Ot=jt.toString,kt=_t.hasOwnProperty,St=RegExp("^"+Ot.call(kt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Et=function(e){return!(!I(e)||yt(e))&&($e(e)?St:xt).test(wt(e))};var At=function(e,t){return null==e?void 0:e[t]};var Mt=function(e,t){var r=At(e,t);return Et(r)?r:void 0},Dt=Mt(z,"Map"),Pt=Mt(Object,"create");var Yt=function(){this.__data__=Pt?Pt(null):{},this.size=0};var Tt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},It=Object.prototype.hasOwnProperty;var Ct=function(e){var t=this.__data__;if(Pt){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return It.call(t,e)?t[e]:void 0},Lt=Object.prototype.hasOwnProperty;var Ht=function(e){var t=this.__data__;return Pt?void 0!==t[e]:Lt.call(t,e)};var Bt=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Pt&&void 0===t?"__lodash_hash_undefined__":t,this};function zt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}zt.prototype.clear=Yt,zt.prototype.delete=Tt,zt.prototype.get=Ct,zt.prototype.has=Ht,zt.prototype.set=Bt;var Ft=zt;var Rt=function(){this.size=0,this.__data__={hash:new Ft,map:new(Dt||ft),string:new Ft}};var Nt=function(e){var t=T(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ut=function(e,t){var r=e.__data__;return Nt(t)?r["string"==typeof t?"string":"hash"]:r.map};var Wt=function(e){var t=Ut(this,e).delete(e);return this.size-=t?1:0,t};var qt=function(e){return Ut(this,e).get(e)};var Vt=function(e){return Ut(this,e).has(e)};var Xt=function(e,t){var r=Ut(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function $t(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$t.prototype.clear=Rt,$t.prototype.delete=Wt,$t.prototype.get=qt,$t.prototype.has=Vt,$t.prototype.set=Xt;var Gt=$t;var Zt=function(e,t){var r=this.__data__;if(r instanceof ft){var n=r.__data__;if(!Dt||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Gt(n)}return r.set(e,t),this.size=r.size,this};function Kt(e){var t=this.__data__=new ft(e);this.size=t.size}Kt.prototype.clear=lt,Kt.prototype.delete=pt,Kt.prototype.get=dt,Kt.prototype.has=ht,Kt.prototype.set=Zt;var Jt=Kt,Qt=function(){try{var e=Mt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var er=function(e,t,r){"__proto__"==t&&Qt?Qt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},tr=Object.prototype.hasOwnProperty;var rr=function(e,t,r){var n=e[t];tr.call(e,t)&&rt(n,r)&&(void 0!==r||t in e)||er(e,t,r)};var nr=function(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var u=t[i],c=n?n(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),o?er(r,u,c):rr(r,u,c)}return r};var or=function(e,t){return e&&nr(t,Ze(t),e)};var ir=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},ar=Object.prototype.hasOwnProperty;var ur=function(e){if(!I(e))return ir(e);var t=Ue(e),r=[];for(var n in e)("constructor"!=n||!t&&ar.call(e,n))&&r.push(n);return r};var cr=function(e){return Ge(e)?Re(e,!0):ur(e)};var sr=function(e,t){return e&&nr(t,cr(t),e)},fr=L((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?z.Buffer:void 0,i=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}}));var lr=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var pr=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i};var dr=function(){return[]},vr=Object.prototype.propertyIsEnumerable,hr=Object.getOwnPropertySymbols,gr=hr?function(e){return null==e?[]:(e=Object(e),pr(hr(e),(function(t){return vr.call(e,t)})))}:dr;var mr=function(e,t){return nr(e,gr(e),t)};var yr=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},br=We(Object.getPrototypeOf,Object),wr=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)yr(t,gr(e)),e=br(e);return t}:dr;var xr=function(e,t){return nr(e,wr(e),t)};var jr=function(e,t,r){var n=t(e);return Ae(e)?n:yr(n,r(e))};var _r=function(e){return jr(e,Ze,gr)};var Or=function(e){return jr(e,cr,wr)},kr=Mt(z,"DataView"),Sr=Mt(z,"Promise"),Er=Mt(z,"Set"),Ar=Mt(z,"WeakMap"),Mr="[object Map]",Dr="[object Promise]",Pr="[object Set]",Yr="[object WeakMap]",Tr="[object DataView]",Ir=wt(kr),Cr=wt(Dt),Lr=wt(Sr),Hr=wt(Er),Br=wt(Ar),zr=G;(kr&&zr(new kr(new ArrayBuffer(1)))!=Tr||Dt&&zr(new Dt)!=Mr||Sr&&zr(Sr.resolve())!=Dr||Er&&zr(new Er)!=Pr||Ar&&zr(new Ar)!=Yr)&&(zr=function(e){var t=G(e),r="[object Object]"==t?e.constructor:void 0,n=r?wt(r):"";if(n)switch(n){case Ir:return Tr;case Cr:return Mr;case Lr:return Dr;case Hr:return Pr;case Br:return Yr}return t});var Fr=zr,Rr=Object.prototype.hasOwnProperty;var Nr=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Rr.call(e,"index")&&(r.index=e.index,r.input=e.input),r},Ur=z.Uint8Array;var Wr=function(e){var t=new e.constructor(e.byteLength);return new Ur(t).set(new Ur(e)),t};var qr=function(e,t){var r=t?Wr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},Vr=/\w*$/;var Xr=function(e){var t=new e.constructor(e.source,Vr.exec(e));return t.lastIndex=e.lastIndex,t},$r=F?F.prototype:void 0,Gr=$r?$r.valueOf:void 0;var Zr=function(e){return Gr?Object(Gr.call(e)):{}};var Kr=function(e,t){var r=t?Wr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)};var Jr=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return Wr(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return qr(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Kr(e,r);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return Xr(e);case"[object Set]":return new n;case"[object Symbol]":return Zr(e)}},Qr=Object.create,en=function(){function e(){}return function(t){if(!I(t))return{};if(Qr)return Qr(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var tn=function(e){return"function"!=typeof e.constructor||Ue(e)?{}:en(br(e))};var rn=function(e){return Z(e)&&"[object Map]"==Fr(e)},nn=He&&He.isMap,on=nn?Le(nn):rn;var an=function(e){return Z(e)&&"[object Set]"==Fr(e)},un=He&&He.isSet,cn=un?Le(un):an,sn="[object Arguments]",fn="[object Function]",ln="[object Object]",pn={};pn[sn]=pn["[object Array]"]=pn["[object ArrayBuffer]"]=pn["[object DataView]"]=pn["[object Boolean]"]=pn["[object Date]"]=pn["[object Float32Array]"]=pn["[object Float64Array]"]=pn["[object Int8Array]"]=pn["[object Int16Array]"]=pn["[object Int32Array]"]=pn["[object Map]"]=pn["[object Number]"]=pn[ln]=pn["[object RegExp]"]=pn["[object Set]"]=pn["[object String]"]=pn["[object Symbol]"]=pn["[object Uint8Array]"]=pn["[object Uint8ClampedArray]"]=pn["[object Uint16Array]"]=pn["[object Uint32Array]"]=!0,pn["[object Error]"]=pn[fn]=pn["[object WeakMap]"]=!1;var dn=function e(t,r,n,o,i,a){var u,c=1&r,s=2&r,f=4&r;if(n&&(u=i?n(t,o,i,a):n(t)),void 0!==u)return u;if(!I(t))return t;var l=Ae(t);if(l){if(u=Nr(t),!c)return lr(t,u)}else{var p=Fr(t),d=p==fn||"[object GeneratorFunction]"==p;if(De(t))return fr(t,c);if(p==ln||p==sn||d&&!i){if(u=s||d?{}:tn(t),!c)return s?xr(t,sr(u,t)):mr(t,or(u,t))}else{if(!pn[p])return i?t:{};u=Jr(t,p,c)}}a||(a=new Jt);var v=a.get(t);if(v)return v;a.set(t,u),cn(t)?t.forEach((function(o){u.add(e(o,r,n,o,t,a))})):on(t)&&t.forEach((function(o,i){u.set(i,e(o,r,n,i,t,a))}));var h=l?void 0:(f?s?Or:_r:s?cr:Ze)(t);return we(h||t,(function(o,i){h&&(o=t[i=o]),rr(u,i,e(o,r,n,i,t,a))})),u};var vn=function(e){return dn(e,5)};var hn=function(e){return"string"==typeof e||!Ae(e)&&Z(e)&&"[object String]"==G(e)};var gn=function(e){return function(t){return null==t?void 0:t[e]}},mn=gn("length"),yn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var bn=function(e){return yn.test(e)},wn="[\\ud800-\\udfff]",xn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",jn="\\ud83c[\\udffb-\\udfff]",_n="[^\\ud800-\\udfff]",On="(?:\\ud83c[\\udde6-\\uddff]){2}",kn="[\\ud800-\\udbff][\\udc00-\\udfff]",Sn="(?:"+xn+"|"+jn+")"+"?",En="[\\ufe0e\\ufe0f]?",An=En+Sn+("(?:\\u200d(?:"+[_n,On,kn].join("|")+")"+En+Sn+")*"),Mn="(?:"+[_n+xn+"?",xn,On,kn,wn].join("|")+")",Dn=RegExp(jn+"(?="+jn+")|"+Mn+An,"g");var Pn=function(e){for(var t=Dn.lastIndex=0;Dn.test(e);)++t;return t};var Yn=function(e){return bn(e)?Pn(e):mn(e)};var Tn=function(e){if(null==e)return 0;if(Ge(e))return hn(e)?Yn(e):e.length;var t=Fr(e);return"[object Map]"==t||"[object Set]"==t?e.size:Xe(e).length},In=L((function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var u=new o(n,i||e,a),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],u]:e._events[c].push(u):(e._events[c]=u,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function u(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),u.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},u.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},u.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,o,i,a){var u=r?r+e:e;if(!this._events[u])return!1;var c,s,f=this._events[u],l=arguments.length;if(f.fn){switch(f.once&&this.removeListener(e,f.fn,void 0,!0),l){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,t),!0;case 3:return f.fn.call(f.context,t,n),!0;case 4:return f.fn.call(f.context,t,n,o),!0;case 5:return f.fn.call(f.context,t,n,o,i),!0;case 6:return f.fn.call(f.context,t,n,o,i,a),!0}for(s=1,c=new Array(l-1);s<l;s++)c[s-1]=arguments[s];f.fn.apply(f.context,c)}else{var p,d=f.length;for(s=0;s<d;s++)switch(f[s].once&&this.removeListener(e,f[s].fn,void 0,!0),l){case 1:f[s].fn.call(f[s].context);break;case 2:f[s].fn.call(f[s].context,t);break;case 3:f[s].fn.call(f[s].context,t,n);break;case 4:f[s].fn.call(f[s].context,t,n,o);break;default:if(!c)for(p=1,c=new Array(l-1);p<l;p++)c[p-1]=arguments[p];f[s].fn.apply(f[s].context,c)}}return!0},u.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},u.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},u.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var u=this._events[i];if(u.fn)u.fn!==t||o&&!u.once||n&&u.context!==n||a(this,i);else{for(var c=0,s=[],f=u.length;c<f;c++)(u[c].fn!==t||o&&!u[c].once||n&&u[c].context!==n)&&s.push(u[c]);s.length?this._events[i]=1===s.length?s[0]:s:a(this,i)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u}));function Cn(){return new In}function Ln(e){return"[object Object]"===Object.prototype.toString.call(e)}function Hn(e){if(Ln(e)){for(var t in e)return!0;return!1}return!1}function Bn(e,t){return!!Ln(e)&&(!!E(t)&&t in e)}var zn=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},Fn=F?F.prototype:void 0,Rn=Fn?Fn.toString:void 0;var Nn=function e(t){if("string"==typeof t)return t;if(Ae(t))return zn(t,e)+"";if(K(t))return Rn?Rn.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Un=function(e){return null==e?"":Nn(e)},Wn=z.isFinite,qn=Math.min;var Vn=function(e){var t=Math[e];return function(e,r){if(e=re(e),(r=null==r?0:qn(ie(r),292))&&Wn(e)){var n=(Un(e)+"e").split("e"),o=t(n[0]+"e"+(+n[1]+r));return+((n=(Un(o)+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}},Xn=Vn("round");function $n(e){if(!ce(e))return 0;e=se(e);var t=Xn(e);return"0"===String(t)?0:t}function Gn(e){return!!fe(e)&&$n(e)<0}var Zn=function(e,t,r){for(var n=-1,o=e.length,i=t.length,a={};++n<o;){var u=n<i?t[n]:void 0;r(a,e[n],u)}return a};var Kn=function(e,t){return Zn(e||[],t||[],rr)};function Jn(e){return"[object Array]"===Object.prototype.toString.call(e)}function Qn(e){return"[object Undefined]"===Object.prototype.toString.call(e)}function eo(e){return"[object Null]"===Object.prototype.toString.call(e)}function to(e){if(Ln(e)){for(var t in e)return!1;return!0}return!1}function ro(e){return!(!S(e)||""!==e)}function no(e){return!!Jn(e)&&0===e.length}function oo(e){return!!Qn(e)||(!!eo(e)||(!!to(e)||(!!ro(e)||!!no(e))))}function io(e){return!!Jn(e)&&(0!==e.length&&(1!==e.length||!oo(e[0])))}function ao(e,t){if(!Jn(e))return[];if(!Jn(t))return[];if(Tn(e)!==Tn(t))return[];var r=[];return et(e,(function(n,o){var i=se(e[o])+se(t[o]);r.push(i)})),r}var uo=Math.ceil,co=Math.max;var so=function(e,t,r,n){for(var o=-1,i=co(uo((t-e)/(r||1)),0),a=Array(i);i--;)a[n?i:++o]=e,e+=r;return a};var fo=function(e,t,r){if(!I(r))return!1;var n=T(t);return!!("number"==n?Ge(r)&&Ye(t,r.length):"string"==n&&t in r)&&rt(r[t],e)};var lo=function(e){return function(t,r,n){return n&&"number"!=typeof n&&fo(t,r,n)&&(r=n=void 0),t=oe(t),void 0===r?(r=t,t=0):r=oe(r),n=void 0===n?t<r?1:-1:oe(n),so(t,r,n,e)}}(),po=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vo=/^\w*$/;var ho=function(e,t){if(Ae(e))return!1;var r=T(e);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!K(e))||(vo.test(e)||!po.test(e)||null!=t&&e in Object(t))};function go(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function r(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(go.Cache||Gt),r}go.Cache=Gt;var mo=go;var yo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bo=/\\(\\)?/g,wo=function(e){var t=mo(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(yo,(function(e,r,n,o){t.push(n?o.replace(bo,"$1"):r||e)})),t}));var xo=function(e,t){return Ae(e)?e:ho(e,t)?[e]:wo(Un(e))};var jo=function(e){if("string"==typeof e||K(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var _o=function(e,t){for(var r=0,n=(t=xo(t,e)).length;null!=e&&r<n;)e=e[jo(t[r++])];return r&&r==n?e:void 0};var Oo=function(e,t,r){var n=null==e?void 0:_o(e,t);return void 0===n?r:n};var ko=function(e,t){for(var r=-1,n=t.length,o=Array(n),i=null==e;++r<n;)o[r]=i?void 0:Oo(e,t[r]);return o},So=F?F.isConcatSpreadable:void 0;var Eo=function(e){return Ae(e)||Ee(e)||!!(So&&e&&e[So])};var Ao=function e(t,r,n,o,i){var a=-1,u=t.length;for(n||(n=Eo),i||(i=[]);++a<u;){var c=t[a];r>0&&n(c)?r>1?e(c,r-1,n,o,i):yr(i,c):o||(i[i.length]=c)}return i};var Mo=function(e){return(null==e?0:e.length)?Ao(e,1):[]};var Do=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},Po=Math.max;var Yo=function(e,t,r){return t=Po(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=Po(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=n[o];return u[t]=r(a),Do(e,this,u)}};var To=function(e){return function(){return e}},Io=Qt?function(e,t){return Qt(e,"toString",{configurable:!0,enumerable:!1,value:To(t),writable:!0})}:Je,Co=Date.now;var Lo=function(e){var t=0,r=0;return function(){var n=Co(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Io);var Ho=function(e){return Lo(Yo(e,void 0,Mo),e+"")},Bo=Ho(ko);function zo(e){return!!fe(e)&&$n(e)>=0}function Fo(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!io(e))return[];if(!zo(t))return[];if(t=$n(t),oo(n)){if(t>=e.length)return[];r=Bo(e,t)}else{if(!zo(n))return[];if(n=$n(n),t>=e.length||n>=e.length)return[];var o=lo(t,n+1);r=Bo(e,o)}return r}var Ro=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var No=function(e){return this.__data__.has(e)};function Uo(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Gt;++t<r;)this.add(e[t])}Uo.prototype.add=Uo.prototype.push=Ro,Uo.prototype.has=No;var Wo=Uo;var qo=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var Vo=function(e,t){return e.has(t)};var Xo=function(e,t,r,n,o,i){var a=1&r,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var s=i.get(e),f=i.get(t);if(s&&f)return s==t&&f==e;var l=-1,p=!0,d=2&r?new Wo:void 0;for(i.set(e,t),i.set(t,e);++l<u;){var v=e[l],h=t[l];if(n)var g=a?n(h,v,l,t,e,i):n(v,h,l,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(d){if(!qo(t,(function(e,t){if(!Vo(d,t)&&(v===e||o(v,e,r,n,i)))return d.push(t)}))){p=!1;break}}else if(v!==h&&!o(v,h,r,n,i)){p=!1;break}}return i.delete(e),i.delete(t),p};var $o=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};var Go=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Zo=F?F.prototype:void 0,Ko=Zo?Zo.valueOf:void 0;var Jo=function(e,t,r,n,o,i,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Ur(e),new Ur(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return rt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var u=$o;case"[object Set]":var c=1&n;if(u||(u=Go),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;n|=2,a.set(e,t);var f=Xo(u(e),u(t),n,o,i,a);return a.delete(e),f;case"[object Symbol]":if(Ko)return Ko.call(e)==Ko.call(t)}return!1},Qo=Object.prototype.hasOwnProperty;var ei=function(e,t,r,n,o,i){var a=1&r,u=_r(e),c=u.length;if(c!=_r(t).length&&!a)return!1;for(var s=c;s--;){var f=u[s];if(!(a?f in t:Qo.call(t,f)))return!1}var l=i.get(e),p=i.get(t);if(l&&p)return l==t&&p==e;var d=!0;i.set(e,t),i.set(t,e);for(var v=a;++s<c;){var h=e[f=u[s]],g=t[f];if(n)var m=a?n(g,h,f,t,e,i):n(h,g,f,e,t,i);if(!(void 0===m?h===g||o(h,g,r,n,i):m)){d=!1;break}v||(v="constructor"==f)}if(d&&!v){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(d=!1)}return i.delete(e),i.delete(t),d},ti="[object Arguments]",ri="[object Array]",ni="[object Object]",oi=Object.prototype.hasOwnProperty;var ii=function(e,t,r,n,o,i){var a=Ae(e),u=Ae(t),c=a?ri:Fr(e),s=u?ri:Fr(t),f=(c=c==ti?ni:c)==ni,l=(s=s==ti?ni:s)==ni,p=c==s;if(p&&De(e)){if(!De(t))return!1;a=!0,f=!1}if(p&&!f)return i||(i=new Jt),a||ze(e)?Xo(e,t,r,n,o,i):Jo(e,t,c,r,n,o,i);if(!(1&r)){var d=f&&oi.call(e,"__wrapped__"),v=l&&oi.call(t,"__wrapped__");if(d||v){var h=d?e.value():e,g=v?t.value():t;return i||(i=new Jt),o(h,g,r,n,i)}}return!!p&&(i||(i=new Jt),ei(e,t,r,n,o,i))};var ai=function e(t,r,n,o,i){return t===r||(null==t||null==r||!Z(t)&&!Z(r)?t!=t&&r!=r:ii(t,r,n,o,e,i))};var ui=function(e,t,r,n){var o=r.length,i=o,a=!n;if(null==e)return!i;for(e=Object(e);o--;){var u=r[o];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<i;){var c=(u=r[o])[0],s=e[c],f=u[1];if(a&&u[2]){if(void 0===s&&!(c in e))return!1}else{var l=new Jt;if(n)var p=n(s,f,c,e,t,l);if(!(void 0===p?ai(f,s,3,n,l):p))return!1}}return!0};var ci=function(e){return e==e&&!I(e)};var si=function(e){for(var t=Ze(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,ci(o)]}return t};var fi=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}};var li=function(e){var t=si(e);return 1==t.length&&t[0][2]?fi(t[0][0],t[0][1]):function(r){return r===e||ui(r,e,t)}};var pi=function(e,t){return null!=e&&t in Object(e)};var di=function(e,t,r){for(var n=-1,o=(t=xo(t,e)).length,i=!1;++n<o;){var a=jo(t[n]);if(!(i=null!=e&&r(e,a)))break;e=e[a]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&Te(o)&&Ye(a,o)&&(Ae(e)||Ee(e))};var vi=function(e,t){return null!=e&&di(e,t,pi)};var hi=function(e,t){return ho(e)&&ci(t)?fi(jo(e),t):function(r){var n=Oo(r,e);return void 0===n&&n===t?vi(r,e):ai(t,n,3)}};var gi=function(e){return function(t){return _o(t,e)}};var mi=function(e){return ho(e)?gn(jo(e)):gi(e)};var yi=function(e){return"function"==typeof e?e:null==e?Je:"object"==T(e)?Ae(e)?hi(e[0],e[1]):li(e):mi(e)};var bi=function(e,t){var r=-1,n=Ge(e)?Array(e.length):[];return Ke(e,(function(e,o,i){n[++r]=t(e,o,i)})),n};var wi=function(e,t){return(Ae(e)?zn:bi)(e,yi(t))};var xi=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i};var ji=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:xi(e,t,r)};var _i=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1};var Oi=function(e){return e!=e};var ki=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1};var Si=function(e,t,r){return t==t?ki(e,t,r):_i(e,Oi,r)};var Ei=function(e,t){for(var r=e.length;r--&&Si(t,e[r],0)>-1;);return r};var Ai=function(e,t){for(var r=-1,n=e.length;++r<n&&Si(t,e[r],0)>-1;);return r};var Mi=function(e){return e.split("")},Di="[\\ud800-\\udfff]",Pi="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Yi="\\ud83c[\\udffb-\\udfff]",Ti="[^\\ud800-\\udfff]",Ii="(?:\\ud83c[\\udde6-\\uddff]){2}",Ci="[\\ud800-\\udbff][\\udc00-\\udfff]",Li="(?:"+Pi+"|"+Yi+")"+"?",Hi="[\\ufe0e\\ufe0f]?",Bi=Hi+Li+("(?:\\u200d(?:"+[Ti,Ii,Ci].join("|")+")"+Hi+Li+")*"),zi="(?:"+[Ti+Pi+"?",Pi,Ii,Ci,Di].join("|")+")",Fi=RegExp(Yi+"(?="+Yi+")|"+zi+Bi,"g");var Ri=function(e){return e.match(Fi)||[]};var Ni=function(e){return bn(e)?Ri(e):Mi(e)};var Ui=function(e,t,r){if((e=Un(e))&&(r||void 0===t))return Y(e);if(!e||!(t=Nn(t)))return e;var n=Ni(e),o=Ni(t),i=Ai(n,o),a=Ei(n,o)+1;return ji(n,i,a).join("")};function Wi(e,t){return E(e)&&E(t)?e.split(t):[]}function qi(e,t){if(!E(e))return[];if(!E(t))return[];var r=Wi(e,t),n=[];return et(r,(function(e){E(e)&&n.push(e)})),n}function Vi(e){return!!fe(e)&&$n(e)>0}function Xi(e,t){return E(e)&&Vi(t)?e.substr(0,t):""}function $i(e,t){if(!E(e))return"";if(!Vi(t))return"";var r=e.length-t;return r<0&&(r=0),e.substr(r,t)}function Gi(e,t){return E(e)&&Vi(t)?$i(e,e.length-t):""}var Zi=function(e,t){return ai(e,t)};var Ki=function(e){return"number"==typeof e||Z(e)&&"[object Number]"==G(e)};function Ji(e,t){function r(e){return Jn(e)?e:[e]}if(oo(e))return!1;if(0===(e=r(e)).length)return!1;if(oo(e))return!1;if(0===(t=r(t)).length)return!1;for(var n=0;n<e.length;n++)for(var o=0;o<t.length;o++)if(Zi(e[n],t[o]))return!0;return!1}function Qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ea(e,t){if(e){if("string"==typeof e)return Qi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qi(e,t):void 0}}function ta(e){return function(e){if(Array.isArray(e))return Qi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ea(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ra(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}var na=function(e){return Z(e)&&"[object RegExp]"==G(e)},oa=He&&He.isRegExp,ia=oa?Le(oa):na;var aa=function(e,t,r){return r&&"number"!=typeof r&&fo(e,t,r)&&(t=r=void 0),(r=void 0===r?4294967295:r>>>0)?(e=Un(e))&&("string"==typeof t||null!=t&&!ia(t))&&!(t=Nn(t))&&bn(e)?ji(Ni(e),0,r):e.split(t,r):[]};var ua=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e};var ca=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,o=e==e,i=K(e),a=void 0!==t,u=null===t,c=t==t,s=K(t);if(!u&&!s&&!i&&e>t||i&&a&&c&&!u&&!s||n&&a&&c||!r&&c||!o)return 1;if(!n&&!i&&!s&&e<t||s&&r&&o&&!n&&!i||u&&r&&o||!a&&o||!c)return-1}return 0};var sa=function(e,t,r){for(var n=-1,o=e.criteria,i=t.criteria,a=o.length,u=r.length;++n<a;){var c=ca(o[n],i[n]);if(c)return n>=u?c:c*("desc"==r[n]?-1:1)}return e.index-t.index};var fa=function(e,t,r){t=t.length?zn(t,(function(e){return Ae(e)?function(t){return _o(t,1===e.length?e[0]:e)}:e})):[Je];var n=-1;t=zn(t,Le(yi));var o=bi(e,(function(e,r,o){return{criteria:zn(t,(function(t){return t(e)})),index:++n,value:e}}));return ua(o,(function(e,t){return sa(e,t,r)}))};var la=function(e,t){return Lo(Yo(e,t,Je),e+"")},pa=la((function(e,t){if(null==e)return[];var r=t.length;return r>1&&fo(e,t[0],t[1])?t=[]:r>2&&fo(t[0],t[1],t[2])&&(t=[t[0]]),fa(e,Ao(t,1),[])}));function da(e){return!!E(e)&&!(null===e.match(/^.*[0-9]+.*$/))}function va(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return E(e)&&zo(t)?(r=Vi(r)?$n(r):1,e.substring(t,t+r)):""}function ha(e){var t=0,r=0,n=0,o=Tn(e);et(e,(function(e){ce(e)?t+=1:S(e)?r+=1:Ln(e)&&(n+=1)}));var i="";return t===o?i="num":r===o?i="str":n===o&&(i="obj"),i}function ga(e,t){var r=[];if("num"!==t&&"str"!==t)throw new Error("invalid type");if("num"===t)r=wi(e,(function(e,t){return{key:t,payload:e,value:se(e)}}));else if("str"===t){var n=Oo(e,0,""),o=!1,i=-1;if(da(n)){var a=aa(n,"");et(a,(function(t,r){var n=!0;if(et(e,(function(e,o){if(va(e,r)!==t)return n=!1,!1})),!n)return!1;o=!0,i=r+1}))}r=wi(e,o?function(e,t){var r=Gi(e,i);return ce(r)&&(r=se(r)),{key:t,payload:e,value:r}}:function(e,t){return{key:t,payload:e,value:e}})}return r}function ma(e,t){var r=pa(e,"value");return wi(r,t?"key":"payload")}function ya(e){return E(e)?pe.parse(e).toString(he):""}function ba(e){if(!E(e))return{};var t={};try{t=JSON.parse(e)}catch(e){t={}}return t}function wa(e){if(!S(e))return new Uint8Array;for(var t=pe.parse(e),r=t.words,n=t.sigBytes,o=new Uint8Array(n),i=0;i<n;i++){var a=r[i>>>2]>>>24-i%4*8&255;o[i]=a}return o}function xa(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function ja(e){return xa(e)?new Uint16Array(e):new Uint16Array}function _a(e){return S(e)?ja(wa(e)):new Uint16Array}function Oa(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"anyone";if(!E(e))return!1;if("anyone"!==r&&"all"!==r)return!1;if(S(t)){if(!E(t))return!1;t=[t]}if(!io(t))return!1;var n=!1;if(et(t,(function(e){E(e)||(n=!0)})),n)return!1;function o(e,t){return e.indexOf(t)}var i=0;return et(t,(function(t){-1!==o(e,t)&&i++})),"anyone"===r?i>0:"all"===r&&i===t.length}function ka(){var e,t,r=new Promise((function(){e=arguments[0],t=arguments[1]}));return r.resolve=e,r.reject=t,r}function Sa(){return"undefined"!=typeof window&&void 0!==window.document}function Ea(e){if(!Sa())return Promise.reject("no window");try{return function(e){return e.arrayBuffer()}(e)}catch(t){return function(e){var t=ka(),r=new FileReader;return r.onload=function(){var e=r.result;t.resolve(e)},r.onerror=function(e){t.reject(e)},r.readAsArrayBuffer(e),t}(e)}}function Aa(e){var t=ka(),r=new FileReader;return r.onload=function(){t.resolve(r.result)},r.onerror=function(e){t.reject(e)},r.readAsDataURL(e),t}function Ma(e){var t=ka();return Ea(e).then((function(e){var r=new Uint8Array(e);t.resolve(r)})).catch((function(e){t.reject(e)})),t}function Da(e){var t=wi(e,(function(e){return Aa(e)}));return Promise.all(t)}function Pa(e){var t=wi(e,(function(e){return Ma(e)}));return Promise.all(t)}function Ya(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Qn(e))return"";var r="";try{r=t?JSON.stringify(e,null,2):JSON.stringify(e)}catch(e){r=""}return r}function Ta(e){var t=document.createElement("span");return t.appendChild(document.createTextNode(e)),t.innerHTML}function Ia(e,t){var r=new Blob([e],{type:t});try{var n=window.URL.createObjectURL(r);window.open(n)}catch(e){console.log("window.URL.createObjectURL is not support for IE11",e)}}function Ca(e){return"[object Blob]"===Object.prototype.toString.call(e)}function La(e){if(!E(e))return new Uint8Array;for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r}function Ha(e,t,r,n,o){if(!xa(e))return null;if(!fe(t))return null;if(!ye(r))return null;if(!fe(n))return null;if(!fe(o))return null;var i,a,u=8*o-n-1,c=(1<<u)-1,s=c>>1,f=-7,l=r?0:o-1,p=r?1:-1,d=e[t+l];for(l+=p,i=d&(1<<-f)-1,d>>=-f,f+=u;f>0;i=256*i+e[t+l],l+=p,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+e[t+l],l+=p,f-=8);if(0===i)i=1-s;else{if(i===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=s}return(d?-1:1)*a*Math.pow(2,i-n)}function Ba(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:52,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:8;return Ha(e,t,r,n,o)}function za(e,t,r,n,o,i){if(!ce(e))return null;if(!xa(t))return null;if(!fe(r))return null;if(!ye(n))return null;if(!fe(o))return null;if(!fe(i))return null;var a,u,c;e=se(e);var s=8*i-o-1,f=(1<<s)-1,l=f>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?i-1:0,v=n?-1:1,h=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+l>=1?p/c:p*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=f?(u=0,a=f):a+l>=1?(u=(e*c-1)*Math.pow(2,o),a+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[r+d]=255&u,d+=v,u/=256,o-=8);for(a=a<<o|u,s+=o;s>0;t[r+d]=255&a,d+=v,a/=256,s-=8);return t[r+d-v]|=128*h,null}function Fa(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:52,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:8;return za(e,t,r,n,o,i)}function Ra(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function Na(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ra(i,n,o,a,u,"next",e)}function u(e){Ra(i,n,o,a,u,"throw",e)}a(void 0)}))}}var Ua=L((function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new A(n||[]);return i._invoke=function(e,t,r){var n=l;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return D()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var c=f(e,t,r);if("normal"===c.type){if(n=r.done?v:p,c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=v,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var l="suspendedStart",p="suspendedYield",d="executing",v="completed",h={};function g(){}function m(){}function y(){}var b={};b[i]=function(){return this};var w=Object.getPrototypeOf,x=w&&w(w(M([])));x&&x!==r&&n.call(x,i)&&(b=x);var j=y.prototype=g.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,u){var c=f(e[o],e,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"===T(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function k(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=f(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function M(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:D}}function D(){return{value:t,done:!0}}return m.prototype=j.constructor=y,y.constructor=m,m.displayName=c(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,u,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},_(O.prototype),O.prototype[a]=function(){return this},e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(j),c(j,u,"Generator"),j[i]=function(){return this},j.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=M,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}));function Wa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=ka();if(!ra(e))return r.reject("waitfunction需輸入函數f"),r;if(!0===e())return r.resolve(),r;var n=Oo(t,"attemptNum",null);Vi(n)||(n=200);var o=Oo(t,"timeInterval",null);Vi(o)||(o=1e3);var i=0,a=setInterval((function(){i+=1,!0===e()&&(clearInterval(a),r.resolve()),i>n&&(clearInterval(a),r.resolve())}),o);return r}var qa=function(e){return Un(e).toLowerCase()};function Va(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!ce(e))return"";if(!zo(t))return"";e=se(e);var r=Xn(e,t).toFixed(t);return r}function Xa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $a=function(e){return Un(e).toUpperCase()};function Ga(e,t,r){if(!E(e))return"";if(!E(t))return"";if(!S(r))return"";var n=new RegExp(t,"g");return String(e).replace(n,r)}function Za(e){return E(e)||ce(e)?String(e):""}var Ka={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Ja(e){return eu(e,1)}function Qa(e){return eu(e,360)}function eu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e.indexOf("%")>=0){if(!ce(e=Ga(e,"%","")))throw new Error("invalid color: value is not number");e=se(e)/100}else{if(!ce(e))throw new Error("invalid color: value is not number");e=se(e)/t}if(e>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function tu(e){if(!ce(e))throw new Error("invalid color: value is not number");if((e=se(e))>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function ru(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgba";if(!Jn(e))throw new Error("invalid colors array");var n=Oo(e,0,0),o=Oo(e,1,0),i=Oo(e,2,0),a=Oo(e,3,1);if(r=r.split(""),4!==Tn(r))throw new Error("tar.length !== 4");var u=Oo(r,0),c=Oo(r,1),s=Oo(r,2),f=Oo(r,3);return Xa(t={},u,n),Xa(t,c,o),Xa(t,s,i),Xa(t,f,a),t}function nu(e){e=Gi(e,1);var t=Tn(e);if(2===t)e="".concat(e).concat(e).concat(e,"ff");else if(3===t){var r=va(e,0,1),n=va(e,1,1),o=va(e,2,1);e="".concat(r).concat(r).concat(n).concat(n).concat(o).concat(o,"ff")}else if(6===t)e="".concat(e,"ff");else if(8!==t)throw new Error("invalid hex color");function i(e){if(2!==Tn(e))throw new Error("hex.length of color is not equal to 2");if(!ce(e=parseInt(e,16)))throw new Error("invalid hex of color");return(e=se(e))/255}return{r:i(va(e,0,2)),g:i(va(e,2,2)),b:i(va(e,4,2)),a:i(va(e,6,2))}}function ou(e){return e=ru(e=wi(e,(function(e,t){return t<=2?eu(e,255):3===t?tu(e):null})),"rgba")}function iu(e){return e=du(e=ru(e=wi(e,(function(e,t){return 0===t?Qa(e):1===t||2===t?Ja(e):3===t?tu(e):null})),"hsla"))}function au(e){return e=vu(e=ru(e=wi(e,(function(e,t){return 0===t?Qa(e):1===t||2===t?Ja(e):3===t?tu(e):null})),"hsva"))}function uu(e){if("transparent"===e)return{r:0,g:0,b:0,a:0};if(function(e){return Bn(Ka,e)}(e))return nu(e="#".concat(Ka[e]));if(function(e){return"#"===Xi(e,1)&&(!!/[0-9A-Fa-f]{2}/g.test(e)||(!!/[0-9A-Fa-f]{3}/g.test(e)||(!!/[0-9A-Fa-f]{6}/g.test(e)||!!/[0-9A-Fa-f]{8}/g.test(e))))}(e))return nu(e);if(function(e){return"rgb"===Xi(e,3)||"rgba"===Xi(e,4)}(e))return function(e){return e=Ga(e,"rgba",""),e=Ga(e,"rgb",""),ou(qi(e=Ga(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsl"===Xi(e,3)||"hsla"===Xi(e,4)}(e))return function(e){return e=Ga(e,"hsla",""),e=Ga(e,"hsl",""),iu(qi(e=Ga(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsv"===Xi(e,3)||"hsva"===Xi(e,4)}(e))return function(e){return e=Ga(e,"hsva",""),e=Ga(e,"hsv",""),au(qi(e=Ga(e=e.replace(/[()]/g,""),","," ")," "))}(e);throw new Error("format of color string is not hex-color, name-color, rgba, hsla, hsva")}function cu(e,t){return!!Bn(e,t=qa(t))||!!Bn(e,t=$a(t))}function su(e,t,r){var n;return null!==(n=Oo(e,t,null))?n:(t=$a(t),null!==(n=Oo(e,t,null))?n:r)}function fu(e){if(function(e){var t=cu(e,"r"),r=cu(e,"g"),n=cu(e,"b");return t&&r&&n}(e))return function(e){var t=[su(e,"r",null),su(e,"g",null),su(e,"b",null),su(e,"a",1)];return ou(t=wi(t,Za))}(e);if(function(e){var t=cu(e,"h"),r=cu(e,"s"),n=cu(e,"l");return t&&r&&n}(e))return function(e){var t=[su(e,"h",null),su(e,"s",null),su(e,"l",null),su(e,"a",1)];return iu(t=wi(t,Za))}(e);if(function(e){var t=cu(e,"h"),r=cu(e,"s"),n=cu(e,"v");return t&&r&&n}(e))return function(e){var t=[su(e,"h",null),su(e,"s",null),su(e,"v",null),su(e,"a",1)];return au(t=wi(t,Za))}(e);throw new Error("color object is not rgba, hsla, hsva")}function lu(e){var t,r,n=e.r,o=e.g,i=e.b,a=Math.max(n,o,i),u=Math.min(n,o,i),c=(a+u)/2;if(a===u)t=r=0;else{var s=a-u;switch(r=c>.5?s/(2-a-u):s/(a+u),a){case n:t=(o-i)/s+(o<i?6:0);break;case o:t=(i-n)/s+2;break;case i:t=(n-o)/s+4}t/=6}return{h:t,s:r,l:c,a:e.a}}function pu(e){var t,r,n=e.r,o=e.g,i=e.b,a=Math.max(n,o,i),u=Math.min(n,o,i),c=a,s=a-u;if(r=0===a?0:s/a,a===u)t=0;else{switch(a){case n:t=(o-i)/s+(o<i?6:0);break;case o:t=(i-n)/s+2;break;case i:t=(n-o)/s+4}t/=6}return{h:t,s:r,v:c,a:e.a}}function du(e){var t,r,n,o=e.h,i=e.s,a=e.l;function u(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(0===i)t=r=n=a;else{var c=a<.5?a*(1+i):a+i-a*i,s=2*a-c;t=u(s,c,o+1/3),r=u(s,c,o),n=u(s,c,o-1/3)}return{r:t,g:r,b:n,a:e.a}}function vu(e){var t,r,n,o=e.h,i=e.s,a=e.v,u=Math.floor(6*o),c=6*o-u,s=a*(1-i),f=a*(1-c*i),l=a*(1-(1-c)*i);switch(u%6){case 0:t=a,r=l,n=s;break;case 1:t=f,r=a,n=s;break;case 2:t=s,r=a,n=l;break;case 3:t=s,r=f,n=a;break;case 4:t=l,r=s,n=a;break;case 5:t=a,r=s,n=f}return{r:t,g:r,b:n,a:e.a}}function hu(e){var t=Math.round(255*e).toString(16);if(1===Tn(t))return"0".concat(t);if(2===Tn(t))return t;throw new Error("invalid value")}function gu(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.r,n=e.g,o=e.b,i=e.a,a="".concat(hu(r)).concat(hu(n)).concat(hu(o));return t&&(a="".concat(a).concat(hu(i))),a}function mu(e){return Math.min(1,Math.max(0,e))}function yu(e,t){if(!E(t))throw new Error("fmtOutput is not string");if(!Zu[t])throw console.log("fmtOutput must be [".concat(Ze(Zu),"]")),new Error("invalid fmtOutput");return e=Zu[t](e)}function bu(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(t<0||t>1)throw new Error("amount < 0 or > 1");var n=lu(e);n.h+=t,n.h=n.h%1;var o=du(n);return yu(o,r)}function wu(e){return"".concat(Xn(100*e,1),"%")}function xu(e){return Xn(e,0)}function ju(e){return Xn(e,3)}function _u(e){return{r:xu(255*e.r),g:xu(255*e.g),b:xu(255*e.b)}}function Ou(e){return"rgb(".concat(xu(255*e.r),", ").concat(xu(255*e.g),", ").concat(xu(255*e.b),")")}function ku(e){return{r:xu(255*e.r),g:xu(255*e.g),b:xu(255*e.b),a:ju(e.a)}}function Su(e){return"rgba(".concat(xu(255*e.r),", ").concat(xu(255*e.g),", ").concat(xu(255*e.b),", ").concat(ju(e.a),")")}function Eu(e){var t=lu(e);return{h:xu(360*t.h),s:ju(t.s),l:ju(t.l)}}function Au(e){var t=lu(e);return"hsl(".concat(xu(360*t.h),", ").concat(ju(t.s),", ").concat(ju(t.l),")")}function Mu(e){var t=lu(e);return{h:xu(360*t.h),s:ju(t.s),l:ju(t.l),a:ju(t.a)}}function Du(e){var t=lu(e);return"hsla(".concat(xu(360*t.h),", ").concat(ju(t.s),", ").concat(ju(t.l),", ").concat(ju(t.a),")")}function Pu(e){var t=pu(e);return{h:xu(360*t.h),s:ju(t.s),v:ju(t.v)}}function Yu(e){var t=pu(e);return"hsv(".concat(xu(360*t.h),", ").concat(ju(t.s),", ").concat(ju(t.v),")")}function Tu(e){var t=pu(e);return{h:xu(360*t.h),s:ju(t.s),v:ju(t.v),a:ju(t.a)}}function Iu(e){var t=pu(e);return"hsva(".concat(xu(360*t.h),", ").concat(ju(t.s),", ").concat(ju(t.v),", ").concat(ju(t.a),")")}function Cu(e){return{r:wu(e.r),g:wu(e.g),b:wu(e.b)}}function Lu(e){return"rgb(".concat(wu(e.r),", ").concat(wu(e.g),", ").concat(wu(e.b),")")}function Hu(e){return{r:wu(e.r),g:wu(e.g),b:wu(e.b),a:ju(e.a)}}function Bu(e){return"rgba(".concat(wu(e.r),", ").concat(wu(e.g),", ").concat(wu(e.b),", ").concat(ju(e.a),")")}function zu(e){var t=lu(e);return{h:xu(360*t.h),s:wu(t.s),l:wu(t.l)}}function Fu(e){var t=lu(e);return"hsl(".concat(xu(360*t.h),", ").concat(wu(t.s),", ").concat(wu(t.l),")")}function Ru(e){var t=lu(e);return{h:xu(360*t.h),s:wu(t.s),l:wu(t.l),a:ju(t.a)}}function Nu(e){var t=lu(e);return"hsla(".concat(xu(360*t.h),", ").concat(wu(t.s),", ").concat(wu(t.l),", ").concat(ju(t.a),")")}function Uu(e){var t=pu(e);return{h:xu(360*t.h),s:wu(t.s),v:wu(t.v)}}function Wu(e){var t=pu(e);return"hsv(".concat(xu(360*t.h),", ").concat(wu(t.s),", ").concat(wu(t.v),")")}function qu(e){var t=pu(e);return{h:xu(360*t.h),s:wu(t.s),v:wu(t.v),a:ju(t.a)}}function Vu(e){var t=pu(e);return"hsva(".concat(xu(360*t.h),", ").concat(wu(t.s),", ").concat(wu(t.v),", ").concat(ju(t.a),")")}function Xu(e){var t=function(e){return gu(e,!1)}(e);return"#".concat(t)}function $u(e){var t=gu(e);return"#".concat(t)}function Gu(e){var t=null,r=null,n=null;if(E(e))t=qa(Ui(e));else{if(!Hn(e))throw console.log("color=",e),new Error("color is not string or object");r=e}if(null!==t)try{n=uu(t)}catch(e){throw console.log(e),new Error("can not parse color: ".concat(t))}else if(null!==r)try{n=fu(r)}catch(e){throw console.log(e),new Error("can not parse color: ".concat(JSON.stringify(r)))}return n}var Zu={toRgb:_u,toRgbString:Ou,toRgba:ku,toRgbaString:Su,toHsl:Eu,toHslString:Au,toHsla:Mu,toHslaString:Du,toHsv:Pu,toHsvString:Yu,toHsva:Tu,toHsvaString:Iu,toRgbP:Cu,toRgbPString:Lu,toRgbaP:Hu,toRgbaPString:Bu,toHslP:zu,toHslPString:Fu,toHslaP:Ru,toHslaPString:Nu,toHsvP:Uu,toHsvPString:Wu,toHsvaP:qu,toHsvaPString:Vu,toHexString:Xu,toHex8String:$u},Ku={toRgb:function(e){return _u(Gu(e))},toRgbString:function(e){return Ou(Gu(e))},toRgba:function(e){return ku(Gu(e))},toRgbaString:function(e){return Su(Gu(e))},toHsl:function(e){return Eu(Gu(e))},toHslString:function(e){return Au(Gu(e))},toHsla:function(e){return Mu(Gu(e))},toHslaString:function(e){return Du(Gu(e))},toHsv:function(e){return Pu(Gu(e))},toHsvString:function(e){return Yu(Gu(e))},toHsva:function(e){return Tu(Gu(e))},toHsvaString:function(e){return Iu(Gu(e))},toRgbP:function(e){return Cu(Gu(e))},toRgbPString:function(e){return Lu(Gu(e))},toRgbaP:function(e){return Hu(Gu(e))},toRgbaPString:function(e){return Bu(Gu(e))},toHslP:function(e){return zu(Gu(e))},toHslPString:function(e){return Fu(Gu(e))},toHslaP:function(e){return Ru(Gu(e))},toHslaPString:function(e){return Nu(Gu(e))},toHsvP:function(e){return Uu(Gu(e))},toHsvPString:function(e){return Wu(Gu(e))},toHsvaP:function(e){return qu(Gu(e))},toHsvaPString:function(e){return Vu(Gu(e))},toHexString:function(e){return Xu(Gu(e))},toHex8String:function(e){return $u(Gu(e))},modSaturate:function(e,t,r){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(t<0||t>1)throw new Error("amount < 0 or > 1");var n=lu(e);return n.s+=t,n.s=mu(n.s),yu(du(n),r)}(Gu(e),t,r)},modGrey:function(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"toRgbString",r=lu(e);return r.s=0,yu(du(r),t)}(Gu(e),t)},modLighten:function(e,t,r){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(t<0||t>1)throw new Error("amount < 0 or > 1");var n=lu(e);return n.l+=t,n.l=mu(n.l),yu(du(n),r)}(Gu(e),t,r)},modBrighten:function(e,t,r){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(t<0||t>1)throw new Error("amount < 0 or > 1");return e.r+=t,e.r=mu(e.r),e.g+=t,e.g=mu(e.g),e.b+=t,e.b=mu(e.b),yu(e,r)}(Gu(e),t,r)},modHue:function(e,t,r){return bu(Gu(e),t,r)},modComplement:function(e,t){return function(e){return bu(e,.5,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"toRgbString")}(Gu(e),t)},spreadHue:function(e,t,r){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(!fe(t))throw new Error("num is not integer");if((t=$n(t))<=1)return[e];for(var n=lu(e),o=1/t,i=[],a=0;a<t;a++)i.push(yu(du(n),r)),n.h+=o,n.h=n.h%1;return i}(Gu(e),t,r)},spreadMonochromatic:function(e,t,r){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(!fe(t))throw new Error("num is not integer");if((t=$n(t))<=1)return[e];var n=pu(e);n.s=1,n.l=1;for(var o=1/t,i=[],a=0;a<t;a++)i.push(yu(vu(n),r)),n.h-=o,n.l-=o;return i}(Gu(e),t,r)},mix:function(e,t,r,n,o){return function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"toRgbString";if(t<0||t>1)throw new Error("w1 < 0 or > 1");if(n<0||n>1)throw new Error("w1 < 0 or > 1");return yu({r:e.r*t+r.r*n,g:e.g*t+r.g*n,b:e.b*t+r.b*n,a:e.a*t+r.a*n},o)}(Gu(e),t,Gu(r),n,o)},getBrightness:function(e){return function(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");return(299*e.r+587*e.g+114*e.b)/1e3}(Gu(e))},getLuminance:function(e){return function(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");var t=e.r,r=e.g,n=e.b;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))}(Gu(e))}};var Ju=function(e,t,r,n){if(!I(e))return e;for(var o=-1,i=(t=xo(t,e)).length,a=i-1,u=e;null!=u&&++o<i;){var c=jo(t[o]),s=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var f=u[c];void 0===(s=n?n(f,c,u):void 0)&&(s=I(f)?f:Ye(t[o+1])?[]:{})}rr(u,c,s),u=u[c]}return e};var Qu=function(e,t,r){return null==e?e:Ju(e,t,r)};var ec=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var tc=function(e,t){return t.length<2?e:_o(e,xi(t,0,-1))};var rc=function(e,t){return t=xo(t,e),null==(e=tc(e,t))||delete e[jo(ec(t))]},nc=Function.prototype,oc=Object.prototype,ic=nc.toString,ac=oc.hasOwnProperty,uc=ic.call(Object);var cc=function(e){if(!Z(e)||"[object Object]"!=G(e))return!1;var t=br(e);if(null===t)return!0;var r=ac.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ic.call(r)==uc};var sc=function(e){return cc(e)?void 0:e},fc=Ho((function(e,t){var r={};if(null==e)return r;var n=!1;t=zn(t,(function(t){return t=xo(t,e),n||(n=t.length>1),t})),nr(e,Or(e),r),n&&(r=dn(r,7,sc));for(var o=t.length;o--;)rc(r,t[o]);return r}));function lc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lc(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var dc=function(e){return Z(e)&&1===e.nodeType&&!cc(e)};function vc(e){return dc(e)}function hc(e){if(!vc(e))return"invalid element";var t=!1;try{t=document.activeElement===e}catch(e){}return t}function gc(e){return ce(e)?(e=se(e),Math.cos(e*Math.PI/180)):null}function mc(e){return ce(e)?(e=se(e),Math.tan(e*Math.PI/180)):null}function yc(e){return ce(e)?(e=se(e),Math.sin(e*Math.PI/180)):null}function bc(e){if(!E(e))return!1;var t="YYYY-MM-DD";return e===d.default(e,t).format(t)}function wc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;ce(e)||(e=10);var t=ka();return setTimeout((function(){t.resolve()}),e),t}var xc=function(e,t){var r=[];return Ke(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r};var jc=function(e,t){return(Ae(e)?pr:xc)(e,yi(t))};function _c(){return"undefined"!=typeof self?self:Sa()?window:"undefined"!=typeof global?global:null}var Oc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),kc=Oc.length;function Sc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t=[];e=Vi(e)?$n(e):32;for(var r=0;r<e;r++)t[r]=Oc[0|Math.random()*kc];var n=t.join("");return n}function Ec(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vc(e)){var r=Oo(t,"duration",500);(r=se(r))<0&&(r=1e3);var n=Oo(t,"delay",0);(n=se(n))<0&&(n=0);var o=Oo(t,"opacityIni",0);o=se(o),o=Math.min(Math.max(o,0),1),ce(e.style.opacity)&&(o=se(e.style.opacity));var i=10,a=i/r,u="tag-".concat(Sc());e.setAttribute("dom-fade-tag",u),setTimeout((function(){var t=setInterval((function(){e.getAttribute("dom-fade-tag")!==u&&clearInterval(t),e.style.opacity=o,o>=1&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),(o+=a)>1&&(o=1)}),i)}),n)}}function Ac(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vc(e)){var r=Oo(t,"duration",500);(r=se(r))<0&&(r=1e3);var n=Oo(t,"delay",0);(n=se(n))<0&&(n=0);var o=Oo(t,"opacityIni",1);o=se(o),o=Math.min(Math.max(o,0),1),ce(e.style.opacity)&&(o=se(e.style.opacity));var i=10,a=i/r,u="tag-".concat(Sc());e.setAttribute("dom-fade-tag",u),setTimeout((function(){var t=setInterval((function(){e.getAttribute("dom-fade-tag")!==u&&clearInterval(t),e.style.opacity=o,o<=0&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),(o-=a)<0&&(o=0)}),i)}),n)}}var Mc='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 512.001 512.001" style="width:12px; height:12px; enable-background:new 0 0 512.001 512.001;" xml:space="preserve"><g><g><path d="M284.286,256.002L506.143,34.144c7.811-7.811,7.811-20.475,0-28.285c-7.811-7.81-20.475-7.811-28.285,0L256,227.717L34.143,5.859c-7.811-7.811-20.475-7.811-28.285,0c-7.81,7.811-7.811,20.475,0,28.285l221.857,221.857L5.858,477.859c-7.811,7.811-7.811,20.475,0,28.285c3.905,3.905,9.024,5.857,14.143,5.857c5.119,0,10.237-1.952,14.143-5.857L256,284.287l221.857,221.857c3.905,3.905,9.024,5.857,14.143,5.857s10.237-1.952,14.143-5.857c7.811-7.811,7.811-20.475,0-28.285L284.286,256.002z"/></g></g></svg>',Dc={success:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 426.667 426.667" style="width:24px; height:24px; enable-background:new 0 0 426.667 426.667" xml:space="preserve"><path style="fill:#6ac259" d="M213.333,0C95.518,0,0,95.514,0,213.333s95.518,213.333,213.333,213.333 c117.828,0,213.333-95.514,213.333-213.333S331.157,0,213.333,0z M174.199,322.918l-93.935-93.931l31.309-31.309l62.626,62.622 l140.894-140.898l31.309,31.309L174.199,322.918z"/></svg>',error:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 496.158 496.158" style="width:24px; height:24px; enable-background:new 0 0 496.158 496.158" xml:space="preserve"><path style="fill:#e04f5f" d="M496.158,248.085c0-137.021-111.07-248.082-248.076-248.082C111.07,0.003,0,111.063,0,248.085 c0,137.002,111.07,248.07,248.082,248.07C385.088,496.155,496.158,385.087,496.158,248.085z"/><path style="fill:#fff" d="M277.042,248.082l72.528-84.196c7.91-9.182,6.876-23.041-2.31-30.951 c-9.172-7.904-23.032-6.876-30.947,2.306l-68.236,79.212l-68.229-79.212c-7.91-9.188-21.771-10.216-30.954-2.306 c-9.186,7.91-10.214,21.77-2.304,30.951l72.522,84.196l-72.522,84.192c-7.91,9.182-6.882,23.041,2.304,30.951 c4.143,3.569,9.241,5.318,14.316,5.318c6.161,0,12.294-2.586,16.638-7.624l68.229-79.212l68.236,79.212 c4.338,5.041,10.47,7.624,16.637,7.624c5.069,0,10.168-1.749,14.311-5.318c9.186-7.91,10.22-21.77,2.31-30.951L277.042,248.082z"/></svg>',warning:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 497.472 497.472" style="width:24px; height:24px; enable-background:new 0 0 497.472 497.472" xml:space="preserve"><g transform="matrix(1.25 0 0 -1.25 0 45)"><path style="fill:#ffcc4d" d="M24.374-357.857c-20.958,0-30.197,15.223-20.548,33.826L181.421,17.928 c9.648,18.603,25.463,18.603,35.123,0L394.14-324.031c9.671-18.603,0.421-33.826-20.548-33.826H24.374z"/><path style="fill:#231f20" d="M173.605-80.922c0,14.814,10.934,23.984,25.395,23.984c14.12,0,25.407-9.512,25.407-23.984 V-216.75c0-14.461-11.287-23.984-25.407-23.984c-14.461,0-25.395,9.182-25.395,23.984V-80.922z M171.489-289.056 c0,15.167,12.345,27.511,27.511,27.511c15.167,0,27.523-12.345,27.523-27.511c0-15.178-12.356-27.523-27.523-27.523 C183.834-316.579,171.489-304.234,171.489-289.056"/></g></svg>',infor:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 496.16 496.16" style="width:24px; height:24px; enable-background:new 0 0 496.158 496.158;" xml:space="preserve"><path d="m496.16 248.08c0-137.02-111.07-248.08-248.08-248.08-137.01 0-248.08 111.06-248.08 248.08 0 137 111.07 248.07 248.08 248.07 137.01 0 248.08-111.07 248.08-248.07z" fill="#25B7D3"/><g fill="#fff"><path d="m315.25 359.56c-1.387-2.032-4.048-2.755-6.27-1.702-24.582 11.637-52.482 23.94-57.958 25.015-0.138-0.123-0.357-0.348-0.644-0.737-0.742-1.005-1.103-2.318-1.103-4.015 0-13.905 10.495-56.205 31.192-125.72 17.451-58.406 19.469-70.499 19.469-74.514 0-6.198-2.373-11.435-6.865-15.146-4.267-3.519-10.229-5.302-17.719-5.302-12.459 0-26.899 4.73-44.146 14.461-16.713 9.433-35.352 25.41-55.396 47.487-1.569 1.729-1.733 4.314-0.395 6.228 1.34 1.915 3.825 2.644 5.986 1.764 7.037-2.872 42.402-17.359 47.557-20.597 4.221-2.646 7.875-3.989 10.861-3.989 0.107 0 0.199 4e-3 0.276 0.01 0.036 0.198 0.07 0.5 0.07 0.933 0 3.047-0.627 6.654-1.856 10.703-30.136 97.641-44.785 157.5-44.785 182.99 0 8.998 2.501 16.242 7.432 21.528 5.025 5.393 11.803 8.127 20.146 8.127 8.891 0 19.712-3.714 33.08-11.354 12.936-7.392 32.68-23.653 60.363-49.717 1.793-1.687 2.092-4.426 0.705-6.458z"/><path d="m314.28 76.672c-4.925-5.041-11.227-7.597-18.729-7.597-9.34 0-17.475 3.691-24.176 10.971-6.594 7.16-9.938 15.946-9.938 26.113 0 8.033 2.463 14.69 7.32 19.785 4.922 5.172 11.139 7.794 18.476 7.794 8.958 0 17.049-3.898 24.047-11.586 6.876-7.553 10.363-16.433 10.363-26.393 1e-3 -7.654-2.476-14.075-7.363-19.087z"/></g></svg>',cancel:Mc},Pc={},Yc=null,Tc=_c();function Ic(){et(["top-right","top-left","bottom-right","bottom-left"],(function(e){!function(e){var t=jc(Pc,{position:e});t=pa(t,"timeStart");var r=16;et(t,(function(e){Pc[e.id].ele||(Pc[e.id].ele=document.querySelector("#".concat(e.id))),Pc[e.id].loc.top=r,Pc[e.id].loc.height=Pc[e.id].ele.offsetHeight,r+=Pc[e.id].loc.height+16})),et(t,(function(t){e.indexOf("bottom-")>=0?(Pc[t.id].ele.style.bottom="".concat(Pc[t.id].loc.top,"px"),Pc[t.id].loc.bottom=Pc[t.id].loc.top):Pc[t.id].ele.style.top="".concat(Pc[t.id].loc.top,"px"),e.indexOf("-left")>=0?(Pc[t.id].ele.style.left="".concat(16,"px"),Pc[t.id].loc.left=16):(Pc[t.id].ele.style.right="".concat(16,"px"),Pc[t.id].loc.right=16),Pc[t.id].ele.style.zIndex=2e5,Pc[t.id].ele.style.opacity=1,Pc[t.id].ele.style.transform="",Pc[t.id].ele.style.transform=null}))}(e)}))}function Cc(e){Pc[e].ele&&Pc[e].ele.parentNode.removeChild(Pc[e].ele),Pc[e]&&delete Pc[e],Ic()}function Lc(e){var t=e.id,r=e.position,n=e.time,o=e.pm;Pc[t]={id:t,position:r,ele:null,loc:{height:null,top:null,bottom:null,left:null,right:null},timeShow:n,timeStart:Date.now(),pm:o},Ic(),null===Yc&&(Yc=setInterval((function(){et(Pc,(function(e){Date.now()-e.timeStart>e.timeShow&&(e.pm.resolve(),Cc(e.id))})),Hn(Pc)||(clearInterval(Yc),Yc=null)}),50))}function Hc(e,t){if(!vc(e))return"invalid eleParent";if(S(t))e.insertAdjacentHTML("beforeend",t);else{if(!vc(t))return"invalid itemChild";e.appendChild(t)}}function Bc(){return null!==navigator.userAgent.toLowerCase().match(/rv:([\d.]+)\) like gecko/)}function zc(e){if(!e)return"invalid event";if(!e.cancelable)return"event is not cancelable";try{Bc()?e.cancelBubble=!0:e.stopPropagation(),e.preventDefault()}catch(e){}}function Fc(e){return document.querySelectorAll(e)}function Rc(e){function t(e){e.parentNode.removeChild(e)}if(vc(e))t(e);else if(E(e)){var r=Fc(e);et(r,(function(e){t(e)}))}}function Nc(e,t){if(!vc(e))return"invalid eleParent";if(S(t))e.insertAdjacentHTML("afterbegin",t);else{if(!vc(t))return"invalid itemChild";e.insertBefore(t,e.firstChild)}}function Uc(){return _c().htmlToImage}function Wc(e){return qc.apply(this,arguments)}function qc(){return(qc=Na(Ua.mark((function e(t){var r,n,o,i,a,u,c,s,f,l,p=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=p.length>1&&void 0!==p[1]?p[1]:{},vc(t)){e.next=3;break}return e.abrupt("return",Promise.reject("invalid ele"));case 3:if(n=Oo(r,"scale",1),Ki(n)){e.next=6;break}return e.abrupt("return",Promise.reject("opt.scale is not number"));case 6:if(!(n<1)){e.next=8;break}return e.abrupt("return",Promise.reject("opt.scale can not less then 1"));case 8:if("image/jpeg"===(o=Oo(r,"picType","image/png"))||"image/png"===o){e.next=11;break}return e.abrupt("return",Promise.reject("opt.picType is not image/jpeg or image/png"));case 11:if(i=Oo(r,"toBase64",!0),me(i)){e.next=14;break}return e.abrupt("return",Promise.reject("opt.toBase64 is not boolean"));case 14:if(a=t.cloneNode(!0),(u=document.createElement("div")).style.position="absolute",u.style.top=0,u.style.left=0,u.style.zIndex=-1,u.appendChild(a),(c=document.createElement("div")).style.position="relative",c.appendChild(u),Nc(document.querySelector("body"),c),s=Uc(),l={pixelRatio:n,quality:.95},!i){e.next=41;break}if("image/jpeg"!==o){e.next=35;break}return e.next=32,s.toJpeg(u,l);case 32:f=e.sent,e.next=39;break;case 35:if("image/png"!==o){e.next=39;break}return e.next=38,s.toPng(u,l);case 38:f=e.sent;case 39:e.next=44;break;case 41:return e.next=43,s.toCanvas(u,l);case 43:f=e.sent;case 44:return Rc(c),e.abrupt("return",f);case 46:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Tc.ttWAlertCancel=function(e){Cc(e)},Tc.ttWAlertFadeIn=function(e){Ec(document.querySelector("#".concat(e)))},Tc.ttWAlertFadeOut=function(e){Ac(document.querySelector("#".concat(e)))};var Vc=Array.prototype.join;var Xc=function(e,t){return null==e?"":Vc.call(e,t)};var $c=function(e,t,r){var n=null==e?0:e.length;return n?(t=r||void 0===t?1:ie(t),xi(e,t<0?0:t,n)):[]};function Gc(e,t){var r=ka();if(!Jn(e)&&!Ln(e))return r.reject("rs is not array or object"),r;var n=!1;if(Ln(e)){n=!0;var o=[];et(e,(function(e,t){o.push({k:t,v:e})})),e=o}ra(t)||(t=function(e){return e});var i=-1,a=[];return e.reduce((function(e,r){return e.then((function(e){a.push(e);var o=i+=1,u=r;return n&&(o=r.k,u=r.v),ra(t)?t(u,o):u}))}),Promise.resolve()).then((function(e){a.push(e),a=$c(a),r.resolve(a)})).catch((function(e){r.reject(e)})),r}var Zc={},Kc={};function Jc(e){var t=e.tagName,r=e.path,n=e.attributes,o=void 0===n?{}:n,i=e.func,a=ka();if("done"===Zc[r])return a.resolve("loaded"),a;if("loading"===Zc[r])return Wa((function(){return"done"===Zc[r]})).then((function(){a.resolve("loaded")})),a;Zc[r]="loading";var u=document.createElement(t);return et(o,(function(e,t){u.setAttribute(t,e)})),o.rel&&"stylesheet"===o.rel?(u.setAttribute("href",r),setTimeout((function(){a.resolve(u),Zc[r]="done"}),1)):(u.src=r,u.addEventListener("load",(function(){var e;ra(i)?e=Wa(i):(e=ka()).resolve(),e.then((function(){return wc(500)})).then((function(){a.resolve(u),Zc[r]="done"}))})),u.addEventListener("error",(function(){a.reject(u),Zc[r]="done"}))),document.getElementsByTagName("head")[0].appendChild(u),a}function Qc(e){var t=ka();Jn(e)||(e=[e]),et(e,(function(t,r){S(t)&&(e[r]={path:t})}));var r=Xc(wi(e,"path"),"|");return"done"===Kc[r]?(t.resolve("loaded"),t):"loading"===Kc[r]?(Wa((function(){return"done"===Kc[r]})).then((function(){t.resolve("loaded")})),t):(Kc[r]="loading",et(e,(function(e,t){e.type||(".js"===$i(e.path,3)?e.type="js":".css"===$i(e.path,4)?e.type="css":e.type="unknow")})),Gc(e,(function(e){var t=ka();if("js"===e.type)t=Jc({tagName:"script",path:e.path,attributes:{type:"text/javascript"},func:e.func});else if("css"===e.type)t=Jc({tagName:"link",path:e.path,attributes:{rel:"stylesheet"}});else{var r="invalid pathItem.type: "+e.type;console.log(r),t.reject(r)}return t})).finally((function(){Kc[r]="done"})))}function es(){return(es=Na(Ua.mark((function e(t){var r,n,o,i=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},io(n=i.length>2?i[2]:void 0)||(n=["https://cdn.jsdelivr.net/npm/html-to-image@1.7.0/dist/html-to-image.js"]),e.next=5,Qc(n);case 5:return o=Wc(t,r),e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ts(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ts(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ts(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ns=function(e,t,r,n){for(var o=r-1,i=e.length;++o<i;)if(n(e[o],t))return o;return-1},os=Array.prototype.splice;var is=function(e,t,r,n){var o=n?ns:Si,i=-1,a=t.length,u=e;for(e===t&&(t=lr(t)),r&&(u=zn(e,Le(r)));++i<a;)for(var c=0,s=t[i],f=r?r(s):s;(c=o(u,f,c,n))>-1;)u!==e&&os.call(u,c,1),os.call(e,c,1);return e};var as=la((function(e,t){return e&&e.length&&t&&t.length?is(e,t):e}));function us(e){var t=Oo(e,"clientX",null),r=Oo(e,"clientY",null),n=Oo(e,"pageX",null),o=Oo(e,"pageY",null);if(null!==t&&null!==r&&null!==n&&null!==o)return{clientX:t,clientY:r,pageX:n,pageY:o};var i=Oo(e,"changedTouches",[]);if(1!==Tn(i))return null;var a=i[0];return{clientX:Oo(a,"clientX",null),clientY:Oo(a,"clientY",null),pageX:Oo(a,"pageX",null),pageY:Oo(a,"pageY",null)}}function cs(e,t){if(!vc(e))return null;if(!E(t))return null;try{return e.getAttribute(t)}catch(e){}return null}function ss(e){if(!vc(e))return null;try{return e.getBoundingClientRect()}catch(e){}return null}function fs(e,t){if(!Hn(e))return null;if(!Ki(e.clientX)||!Ki(e.clientY))return null;if(!vc(t))return null;var r=ss(t);return r?{x:e.clientX-r.left,y:e.clientY-r.top,w:t.offsetWidth,h:t.offsetHeight}:null}function ls(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="dragpreviewid",r=null,n=null,o=null,i=null,a=null,u=!1,c=Oo(e,"attIdentify",null);E(c)||(c="dragprevid");var s=Oo(e,"containerOpacity",null);Ki(s)||(s=.4);var f=Oo(e,"containerBackground",null);E(f)||(f="white");var l=Oo(e,"containerBorderWidth",null);Ki(l)||(l=1);var p=Oo(e,"containerBorderColor",null);E(p)||(p="#f26");var d="c".concat(Sc(8));function v(e,t,n){var o=ss(e);if(!o)return null;r=e;var i=e.cloneNode(!0);return i.tShiftX=t-o.left,i.tShiftY=n-o.top,i.tWidth=e.offsetWidth,i.tHeight=e.offsetHeight,i.tParent=e.parentNode,i.setAttribute(c,""),i}function h(e,u,h){!function(){var r=v(e,u,h);if(null!==r){var c=document.createElement("div");c.style.position="absolute",c.style.zIndex=1,c.style.top=0,c.style.left=0,c.style.width="100%",c.style.height="100%",c.appendChild(r);var m=document.createElement("div");m.style.position="relative",m.appendChild(c);var y=document.createElement("div");y.setAttribute(t,d),y.style.position="fixed",y.style.zIndex=1e5,y.style.width="".concat(r.tWidth+2*l,"px"),y.style.height="".concat(r.tHeight+2*l,"px"),y.style.opacity=s,y.style.background=f,y.style.border="".concat(l,"px solid ").concat(p),y.style.pointerEvents="none",y.appendChild(m),r.tParent.appendChild(y),n=r,o=c,i=m,a=y,g(u,h)}}();var m=setInterval((function(){var e=cs(r,c);document.querySelector("[".concat(c,"='").concat(e,"']"))||(clearInterval(m),y())}),500)}function g(e,t,r){n&&o&&i&&a&&!u&&(a.style.top="".concat(t-n.tShiftY,"px"),a.style.left="".concat(e-n.tShiftX,"px"))}function m(e){u=e}function y(){Rc("[".concat(t,"='").concat(d,"']")),n=null,o=null,i=null,a=null}var b=function(e){g(e.clientX,e.clientY)};window.addEventListener("mousemove",b);var w=function(e){var t=us(e);t&&g(t.clientX,t.clientY)};function x(e){try{et(e,(function(e,t){n.style[t]=e}))}catch(e){}}function j(e){try{et(e,(function(e,t){o.style[t]=e}))}catch(e){}}function _(e){try{et(e,(function(e,t){i.style[t]=e}))}catch(e){}}function O(e){try{et(e,(function(e,t){a.style[t]=e}))}catch(e){}}function k(){window.removeEventListener("mousemove",b),window.removeEventListener("touchmove",w)}return window.addEventListener("touchmove",w),{createPreview:h,updateDragPreview:g,pauseDragPreview:m,removeDragPreview:y,setNodeStyle:x,setCoverStyle:j,setSellStyle:_,setContainerStyle:O,clear:k}}function ps(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ds(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ps(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ps(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var vs={};function hs(e,t,r){var n=r.attIdentify,o=r.previewOpacity,i=r.previewBackground,a=r.previewBorderWidth,u=r.previewBorderColor;if(!Bn(vs,e)){var c=Cn(),s=function(e){var t=[];function r(){var r;r="mousemove";var n=function(t){e.dragMove({e:t,name:"mousemove"})};window.addEventListener(r,n),t.push({ele:window,name:r,f:n}),r="mouseup";var o=function(t){e.dragDrop({e:t,name:"mouseup"})};window.addEventListener(r,o),t.push({ele:window,name:r,f:o}),r="touchmove";var i=function(t){e.dragMove({e:t,name:"touchmove"})};window.addEventListener(r,i),t.push({ele:window,name:r,f:i}),r="touchend";var a=function(t){e.dragDrop({e:t,name:"touchend"})};window.addEventListener(r,a),t.push({ele:window,name:r,f:a})}function n(){et(t,(function(e){var t=e.ele,r=e.name,n=e.f;t.removeEventListener(r,n)}))}return{bind:r,unbind:n}}({dragMove:function(t){c.emit(e+"-dragMove",t)},dragDrop:function(t){c.emit(e+"-dragDrop",t)}});s.bind();var f=ls({attIdentify:n,containerOpacity:o,containerBackground:i,containerBorderWidth:a,containerBorderColor:u});vs[e]={eleIds:[],evg:c,oevg:s,pv:f,isInit:!1,isActive:!0}}return vs[e].eleIds.push(t),vs[e].evg}function gs(e,t,r){var n=null;return et(e.path,(function(e){if(cs(e,t)===r)return n=e,!1})),n}function ms(e,t){var r=cs(e,t);return r=$n(r)}function ys(e,t,r,n){var o=[];return{bind:function(){var r;r="mousedown";var n=function(r){t.dragStart({e:r,ele:e,name:"mousedown"})};e.addEventListener(r,n,!1),o.push({ele:e,name:r,f:n}),r="touchstart";var i=function(r){t.dragStart({e:r,ele:e,name:"touchstart"})};e.addEventListener(r,i,!1),o.push({ele:e,name:r,f:i}),r="touchmove";var a=function(e){e.cancelable&&e.preventDefault()};e.addEventListener(r,a,!1),o.push({ele:e,name:r,f:a})},unbind:function(){et(o,(function(e){var t=e.ele,r=e.name,n=e.f;t.removeEventListener(r,n)}))}}}function bs(e,t){var r=vs[e],n=vn(r.eleIds);as(n,t),r.eleIds=n,0===n.length&&(r.oevg.unbind(),r.pv.clear(),delete vs[e])}function ws(e){var t=e.gid,r=e.attGroup,n=e.attIndex,o=e.attIdentify,i=e.timeDragStartDelay,a=e.previewOpacity,u=e.previewDisabledOpacity,c=null,s=null,f=null,l=null;if(vs[t].isInit)return vs[t].evg;vs[t].isInit=!0;var p=vs[t].evg;p.on(t+"-dragStart",(function(e){var r=e.e,a=e.ele;if(e.from,!vs[t].isActive)return;var f=ms(a,n);if(null===f)return;var l={event:r,startInd:c=f,startEle:s=a,tarInd:c,tarEid:cs(s,o)};p.emit(t+"-change",ds({mode:"start"},l)),p.emit(t+"-start",l);var v=us(r);if(!v)return;setTimeout((function(){null!==c&&(d.createPreview(s,v.clientX,v.clientY),d.setContainerStyle({opacity:u}))}),i)})),p.on(t+"-dragMove",(function(e){var i=e.e;if(e.name,e.from,!vs[t].isActive)return;var v=gs(i,r,t);if(null===c)return;var h=us(i);if(!h)return;function g(){var e={event:i,startInd:c,startEle:s,endInd:f,endEle:l,tarInd:f,tarEid:cs(l,o)};p.emit(t+"-change",ds({mode:"leave"},e)),p.emit(t+"-leave",e),f=null,l=null,d.setContainerStyle({opacity:u})}if(!v)return void(null!==f&&g());var m=ms(v,n);if(null===m)return;if(m===c)return void(null!==f&&g());if(m!==f)null!==f&&g(),x={event:i,startInd:c,startEle:s,endInd:f=m,endEle:l=v,tarInd:f,tarEid:cs(l,o)},p.emit(t+"-change",ds({mode:"enter"},x)),p.emit(t+"-enter",x),d.setContainerStyle({opacity:a});else{var y=fs(h,v),b=0;y.w>0&&(b=y.x/y.w);var w=0;y.h>0&&(w=y.y/y.h),b>=0&&b<=1&&w>=0&&w<=1&&function(e,r,n){var u=ds(ds({event:i,startInd:c,startEle:s,endInd:f,endEle:l,tarInd:f,tarEid:cs(l,o)},e),{},{rx:r,ry:n});p.emit(t+"-change",ds({mode:"move"},u)),p.emit(t+"-move",u),d.setContainerStyle({opacity:a})}(y,b,w)}var x})),p.on(t+"-dragDrop",(function(e){var i=e.e;if(e.name,e.from,d.removeDragPreview(),!vs[t].isActive)return;if(null===c)return;var a=gs(i,r,t);if(!a)return c=null,s=null,f=null,void(l=null);var u=ms(a,n);if(null===u)return;v=u,h=a,g={event:i,startInd:c,startEle:s,endInd:f=v,endEle:l=h,tarInd:f,tarEid:cs(l,o)},p.emit(t+"-change",ds({mode:"drop"},g)),p.emit(t+"-drop",g),c=null,s=null,f=null,l=null;var v,h,g}));var d=vs[t].pv}function xs(e){return js.apply(this,arguments)}function js(){return(js=Na(Ua.mark((function e(t){var r;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=ka();try{t.file(r.resolve,r.reject)}catch(e){r.reject(e)}return e.abrupt("return",r);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _s(e){return Os.apply(this,arguments)}function Os(){return(Os=Na(Ua.mark((function e(t){var r;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=ka();try{t.readEntries(r.resolve,r.reject)}catch(e){r.reject(e)}return e.abrupt("return",r);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ks(e){return Ss.apply(this,arguments)}function Ss(){return(Ss=Na(Ua.mark((function e(t){var r,n,o,i;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=function(){return(i=Na(Ua.mark((function e(t){var n,i,a;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null,!t.isFile){e.next=5;break}return e.next=4,xs(t);case 4:n=e.sent;case 5:if(r.push({type:t.isDirectory?"folder":t.isFile?"file":"unknow",path:t.fullPath,name:t.name,entry:t,file:n}),!t.isDirectory){e.next=13;break}return i=t.createReader(),e.next=10,_s(i);case 10:return a=e.sent,e.next=13,Gc(a,function(){var e=Na(Ua.mark((function e(t){return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o(t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)},o=function(e){return i.apply(this,arguments)},r=[],n=ka(),e.next=6,o(t);case 6:return n.resolve(r),e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Es(e){return As.apply(this,arguments)}function As(){return(As=Na(Ua.mark((function e(t){var r;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[],e.next=3,Gc(t,function(){var e=Na(Ua.mark((function e(t){var n;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ks(t);case 2:n=e.sent,et(n,(function(e){r.push(e)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:return e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ms(e){return Ds.apply(this,arguments)}function Ds(){return(Ds=Na(Ua.mark((function e(t){var r,n,o,i;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=[],n=0;n<t.length;n++)(o=t[n].webkitGetAsEntry())&&r.push(o);return e.next=4,Es(r);case 4:return i=e.sent,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ps(e){return Ys.apply(this,arguments)}function Ys(){return(Ys=Na(Ua.mark((function e(t){var r;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[],et(t,(function(e){e.type&&r.push({type:"file",name:e.name,file:e})})),e.abrupt("return",r);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ts(){return(Ts=Na(Ua.mark((function e(t){var r,n;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[],n=[],e.prev=2,e.next=5,Ps(Oo(t,"files",[]));case 5:if(r=e.sent,Bc()){e.next=10;break}return e.next=9,Ms(Oo(t,"items",[]));case 9:n=e.sent;case 10:e.next=15;break;case 12:return e.prev=12,e.t0=e.catch(2),e.abrupt("return",Promise.reject(e.t0));case 15:return e.abrupt("return",{files:r,entries:n});case 16:case"end":return e.stop()}}),e,null,[[2,12]])})))).apply(this,arguments)}function Is(e){return document.querySelector(e)}var Cs=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return yr(Ae(r)?lr(r):[r],Ao(t,1))};var Ls=function(e,t){return!!(null==e?0:e.length)&&Si(e,t,0)>-1};var Hs=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1};var Bs=function(){},zs=Er&&1/Go(new Er([,-0]))[1]==1/0?function(e){return new Er(e)}:Bs;var Fs=function(e,t,r){var n=-1,o=Ls,i=e.length,a=!0,u=[],c=u;if(r)a=!1,o=Hs;else if(i>=200){var s=t?null:zs(e);if(s)return Go(s);a=!1,o=Vo,c=new Wo}else c=t?[]:u;e:for(;++n<i;){var f=e[n],l=t?t(f):f;if(f=r||0!==f?f:0,a&&l==l){for(var p=c.length;p--;)if(c[p]===l)continue e;t&&c.push(l),u.push(f)}else o(c,l,r)||(c!==u&&c.push(l),u.push(f))}return u};var Rs=function(e){return e&&e.length?Fs(e):[]};function Ns(e){return!oo(e)}function Us(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""!==e&&"name"!==e&&"group"!==e&&"acp"!==e&&"exec"!==e)return[];var t=[{name:"htm",group:"docums",acp:"text/html",exec:"browser"},{name:"html",group:"docums",acp:"text/html",exec:"browser"},{name:"pdf",group:"docums",acp:"application/pdf",exec:"acrobat"},{name:"rtf",group:"docums",acp:"application/rtf",exec:"word"},{name:"doc",group:"docums",acp:"application/msword",exec:"word"},{name:"docx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",exec:"word"},{name:"ppt",group:"docums",acp:"application/vnd.ms-powerpoint",exec:"powerpoint"},{name:"pptx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.presentationml.presentation",exec:"powerpoint"},{name:"xls",group:"docums",acp:"application/vnd.ms-excel",exec:"excel"},{name:"xlsx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",exec:"excel"},{name:"odt",group:"docums",acp:"application/vnd.oasis.opendocument.text",exec:"word"},{name:"odp",group:"docums",acp:"application/vnd.oasis.opendocument.presentation",exec:"powerpoint"},{name:"application/vnd.oasis.opendocument.spreadsheet",group:"docums",acp:"application/vnd.oasis.opendocument.spreadsheet",exec:"excel"},{name:"zip",group:"compress",acp:"application/zip",exec:"7z"},{name:"rar",group:"compress",acp:"application/x-rar-compressed",exec:"7z"},{name:"7z",group:"compress",acp:"application/x-7z-compressed",exec:"7z"},{name:"bzip",group:"compress",acp:"application/x-bzip",exec:"7z"},{name:"bzip2",group:"compress",acp:"application/x-bzip2",exec:"7z"},{name:"pic",group:"image",acp:"image/*",exec:"imageviwer"},{name:"xml",group:"data",acp:"text/xml",exec:"textviwer"},{name:"json",group:"data",acp:"application/json",exec:"textviwer"},{name:"txt",group:"data",acp:"text/plain",exec:"textviwer"},{name:"csv",group:"data",acp:"text/csv",exec:"excel"},{name:"dat",group:"data",acp:"application/octet-stream",exec:"binaryviwer"}];if(""===e)return t;var r={};return et(t,(function(t){var n=t[e];Bn(r,n)||(r[n]=[]),r[n].push(t)})),r}function Ws(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*";if("*"===e)return e;if(!S(e)&&!io(e))return"*";"common"===e&&(e=["docums","compress","image","data"]);var t=Us();function r(e){return o(jc(t,{name:e}))}function n(e){return o(jc(t,{group:e}))}function o(e){return Rs(wi(e,"acp"))}S(e)&&(e=[e]);var i="";if(io(e)){var a=wi(e,(function(e){return n(e)})),u=wi(e,(function(e){return r(e)})),c=Cs(a,u);c=jc(c,Ns),i=Xc(c,",")}return i}function qs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;(t=se(t))<=0&&(t=1e3);var r={},n=[];return et(e.files,(function(e,o){e.size/1024/1024>t&&(r[o]="檔案大小超過上限".concat(t,"mb")),n.push(e)})),{files:n,errs:r}}function Vs(){return!function(){try{return"IntersectionObserver"in window}catch(e){return!1}}()||!function(){try{return"IntersectionObserverEntry"in window}catch(e){return!1}}()||!(function(){try{return"intersectionRatio"in window.IntersectionObserverEntry.prototype}catch(e){return!1}}()||ra(window.IntersectionObserverEntry))}var Xs=function(e){return.5*(1-Math.cos(Math.PI*e))},$s={_elementScroll:void 0,get elementScroll(){return this._elementScroll||(this._elementScroll=HTMLElement.prototype.scroll||HTMLElement.prototype.scrollTo||function(e,t){this.scrollLeft=e,this.scrollTop=t})},_elementScrollIntoView:void 0,get elementScrollIntoView(){return this._elementScrollIntoView||(this._elementScrollIntoView=HTMLElement.prototype.scrollIntoView)},_windowScroll:void 0,get windowScroll(){return this._windowScroll||(this._windowScroll=window.scroll||window.scrollTo)}},Gs=function(){var e,t,r;return null!==(r=null===(t=null===(e=window.performance)||void 0===e?void 0:e.now)||void 0===t?void 0:t.call(e))&&void 0!==r?r:Date.now()},Zs=function e(t){var r=(Gs()-t.timeStamp)/(t.duration||500);if(r>1)return t.method(t.targetX,t.targetY),void t.callback();var n=(t.timingFunc||Xs)(r),o=t.startX+(t.targetX-t.startX)*n,i=t.startY+(t.targetY-t.startY)*n;t.method(o,i),t.rafId=requestAnimationFrame((function(){e(t)}))},Ks=function(e){return isFinite(e)?Number(e):0},Js=function(e,t){var r,n,o=$s.elementScroll.bind(e);if(void 0!==t.left||void 0!==t.top){var i=e.scrollLeft,a=e.scrollTop,u=Ks(null!==(r=t.left)&&void 0!==r?r:i),c=Ks(null!==(n=t.top)&&void 0!==n?n:a);if("smooth"!==t.behavior)return o(u,c);var s=function(){window.removeEventListener("wheel",l),window.removeEventListener("touchmove",l)},f={timeStamp:Gs(),duration:t.duration,startX:i,startY:a,targetX:u,targetY:c,rafId:0,method:o,timingFunc:t.timingFunc,callback:s},l=function(){cancelAnimationFrame(f.rafId),s()};window.addEventListener("wheel",l,{passive:!0,once:!0}),window.addEventListener("touchmove",l,{passive:!0,once:!0}),Zs(f)}};function Qs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||ea(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ef(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ef(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ef(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var rf=function(e,t,r,n,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=r||a>=t&&u>=r?i-e-n:a>t&&u<r||i<e&&u>r?a-t+o:0},nf=function(e){return"visible"!==e&&"clip"!==e},of=function(e,t){return(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth)&&(nf(t.overflowY)||nf(t.overflowX)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e))},af=function(e){var t=e.parentNode;return null!==t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.host:t},uf=function(e,t){return e<-t?-t:e>t?t:e},cf=function(e){return e in document.documentElement.style},sf=function(e,t){var r=e.getBoundingClientRect(),n=r.top,o=r.right,i=r.bottom,a=r.left,u=Qs(["top","right","bottom","left"].map((function(e){var r=["scroll-margin","scroll-snap-margin"].filter(cf)[0],n=t.getPropertyValue("".concat(r,"-").concat(e));return parseInt(n,10)||0})),4);return[n-u[0],o+u[1],i+u[2],a-u[3]]},ff=function(e,t){if(!1!==e.isConnected){for(var r=document.scrollingElement||document.documentElement,n=[],o=getComputedStyle(document.documentElement),i=af(e);null!==i;i=af(i)){if(i===r){n.push(i);break}var a=getComputedStyle(i);if((i!==document.body||!of(i,a)||of(document.documentElement,o))&&(of(i,a)&&n.push(i),"fixed"===a.position))break}var u=window.visualViewport?window.visualViewport.width:innerWidth,c=window.visualViewport?window.visualViewport.height:innerHeight,s=window.scrollX||window.pageXOffset,f=window.scrollY||window.pageYOffset,l=getComputedStyle(e),p=Qs(sf(e,l),4),d=p[0],v=p[1],h=p[2],g=p[3],m=h-d,y=v-g,b=function(e){switch(e){case"horizontal-tb":case"lr":case"lr-tb":case"rl":case"rl-tb":return 0;case"vertical-rl":case"tb":case"tb-rl":return 1;case"vertical-lr":case"tb-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4}return 0}(l.writingMode||l.getPropertyValue("-webkit-writing-mode")||l.getPropertyValue("-ms-writing-mode")),w="rtl"!==l.direction,x=Qs(function(e,t,r){var n=e.block||"start",o=e.inline||"nearest",i=0;switch(r||(i^=2),t){case 0:i=i>>1|(1&i)<<1;var a=[o,n];n=a[0],o=a[1];break;case 1:case 3:i^=1;break;case 4:i^=2}return[n,o].map((function(e,t){switch(e){case"center":return 1;case"nearest":return 0;default:return"start"===e==!(i>>t&1)?2:3}}))}(t,b,w),2),j=x[0],_=x[1],O=function(){switch(_){case 1:return d+m/2;case 2:case 0:return d;case 3:return h}}(),k=function(){switch(j){case 1:return g+y/2;case 3:return v;case 2:case 0:return g}}(),S=[];n.forEach((function(e){var n=e.getBoundingClientRect(),o=n.height,i=n.width,a=n.top,l=n.right,p=n.bottom,d=n.left,v=getComputedStyle(e),h=parseInt(v.borderLeftWidth,10),g=parseInt(v.borderTopWidth,10),b=parseInt(v.borderRightWidth,10),w=parseInt(v.borderBottomWidth,10),x=0,E=0,A="offsetWidth"in e?e.offsetWidth-e.clientWidth-h-b:0,M="offsetHeight"in e?e.offsetHeight-e.clientHeight-g-w:0;if(r===e){switch(_){case 2:x=O;break;case 3:x=O-c;break;case 1:x=O-c/2;break;case 0:x=rf(f,f+c,c,g,w,f+O,f+O+m,m)}switch(j){case 2:E=k;break;case 3:E=k-u;break;case 1:E=k-u/2;break;case 0:E=rf(s,s+u,u,h,b,s+k,s+k+y,y)}x+=f,E+=s}else{switch(_){case 2:x=O-a-g;break;case 3:x=O-p+w+M;break;case 1:x=O-(a+o/2)+M/2;break;case 0:x=rf(a,p,o,g,w+M,O,O+m,m)}switch(j){case 2:E=k-d-h;break;case 3:E=k-l+b+A;break;case 1:E=k-(d+i/2)+A/2;break;case 0:E=rf(d,l,i,h,b+A,k,k+y,y)}var D=e.scrollLeft,P=e.scrollTop;x=uf(P+x,e.scrollHeight-o+M),E=uf(D+E,e.scrollWidth-i+A),O+=P-x,k+=D-E}S.push((function(){return Js(e,tf(tf({},t),{},{top:x,left:E}))}))})),S.forEach((function(e){return e()}))}};function lf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lf(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function df(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?df(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):df(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var hf=function(e,t,r){(void 0!==r&&!rt(e[t],r)||void 0===r&&!(t in e))&&er(e,t,r)};var gf=function(e){return Z(e)&&Ge(e)};var mf=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var yf=function(e){return nr(e,cr(e))};var bf=function(e,t,r,n,o,i,a){var u=mf(e,r),c=mf(t,r),s=a.get(c);if(s)hf(e,r,s);else{var f=i?i(u,c,r+"",e,t,a):void 0,l=void 0===f;if(l){var p=Ae(c),d=!p&&De(c),v=!p&&!d&&ze(c);f=c,p||d||v?Ae(u)?f=u:gf(u)?f=lr(u):d?(l=!1,f=fr(c,!0)):v?(l=!1,f=Kr(c,!0)):f=[]:cc(c)||Ee(c)?(f=u,Ee(u)?f=yf(u):I(u)&&!$e(u)||(f=tn(c))):l=!1}l&&(a.set(c,f),o(f,c,n,i,a),a.delete(c)),hf(e,r,f)}};var wf=function e(t,r,n,o,i){t!==r&&xe(r,(function(a,u){if(i||(i=new Jt),I(a))bf(t,r,u,n,e,o,i);else{var c=o?o(mf(t,u),a,u+"",t,r,i):void 0;void 0===c&&(c=a),hf(t,u,c)}}),cr)};var xf=function(e){return la((function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&fo(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var u=r[n];u&&e(t,u,n,i)}return t}))}((function(e,t,r){wf(e,t,r)}));function jf(){var e={button:!1,navbar:!1,title:!1,toolbar:{zoomIn:4,zoomOut:4,oneToOne:4,reset:4,prev:0,play:0,next:0,rotateLeft:4,rotateRight:4,flipHorizontal:4,flipVertical:4},tooltip:!1,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!1,keyboard:!0};return e.navbar=!0,e.toolbar.prev=4,e.toolbar.next=4,e}function _f(){var e=_c();return g.default||e.Viewer}function Of(e){return kf.apply(this,arguments)}function kf(){return(kf=Na(Ua.mark((function e(t){var r,n,o,i,a,u,c,s,f,l,p,d=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=d.length>1&&void 0!==d[1]?d[1]:null,n=d.length>2&&void 0!==d[2]?d[2]:{},o=!0,i=null,a=ka(),Hn(n)||(n={}),vc(t)){e.next=11;break}return a.reject("eleImg is not HTMLElement"),e.abrupt("return",a);case 11:i=t;case 12:if(null===r){e.next=20;break}if(vc(r)){e.next=18;break}return a.reject("eleGroup is not HTMLElement"),e.abrupt("return",a);case 18:o=!1,i=r;case 20:if(o){e.next=29;break}if(u=r.querySelectorAll("img"),0!==(c=Tn(u))){e.next=28;break}return a.reject("eleGroup does not contain any img"),e.abrupt("return",a);case 28:1===c&&(o=!0);case 29:return s={button:!1,navbar:!1,title:!1,toolbar:{zoomIn:4,zoomOut:4,oneToOne:4,reset:4,prev:0,play:0,next:0,rotateLeft:4,rotateRight:4,flipHorizontal:4,flipVertical:4},tooltip:!1,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!1,keyboard:!0},o||(s=jf()),s=xf(s,vn(n)),f=!1,s.hide=function(){f||(f=!0,p.hide(!0))},s.hidden=function(){p.destroy(),a.resolve("close")},l=_f(),(p=new l(i,s)).show(),e.abrupt("return",a);case 39:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Sf(){return(Sf=Na(Ua.mark((function e(t){var r,n,o,i=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:null,n=i.length>2&&void 0!==i[2]?i[2]:{},io(o=i.length>3?i[3]:void 0)||(o=["https://cdn.jsdelivr.net/npm/viewerjs@1.10.1/dist/viewer.min.css","https://cdn.jsdelivr.net/npm/viewerjs@1.10.1/dist/viewer.min.js"]),e.next=6,Qc(o);case 6:return e.abrupt("return",Of(t,r,n));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ef(e,t){var r=new MouseEvent(t,{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(r)}function Af(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,n=ka(),o="drf"+Sc(),i="GrpDomReadFile";Rc("[name=".concat(i,"]"));var a=Ws(e),u=t?"multiple":"",c='<div name="'.concat(i,'" style="position:relative; width:0px; height:0px; overflow:hidden;"><input id="').concat(o,'" type="file" accept="').concat(a,'" ').concat(u,' style="opacity:0; position:absolute; top:-10000px; left:-10000px;"></div>');Hc(document.querySelector("body"),c);var s=Is("#"+o);function f(){var e=qs(this,r);n.resolve(e),s.removeEventListener("change",f),Rc("[name=".concat(i,"]"))}return s.addEventListener("change",f),Ef(s,"click"),n}Sa()&&function(){try{return new MouseEvent("MouseEventPolyfillTest"),!1}catch(e){}var e=function(e,t){t=t||{bubbles:!1,cancelable:!1};var r=document.createEvent("MouseEvent");return r.initMouseEvent(e,t.bubbles,t.cancelable,window,0,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null),r};e.prototype=Event.prototype,window.MouseEvent=e}();var Mf="top",Df="bottom",Pf="right",Yf="left",Tf="auto",If=[Mf,Df,Pf,Yf],Cf="start",Lf="end",Hf="viewport",Bf="popper",zf=If.reduce((function(e,t){return e.concat([t+"-"+Cf,t+"-"+Lf])}),[]),Ff=[].concat(If,[Tf]).reduce((function(e,t){return e.concat([t,t+"-"+Cf,t+"-"+Lf])}),[]),Rf=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Nf(e){return e?(e.nodeName||"").toLowerCase():null}function Uf(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wf(e){return e instanceof Uf(e).Element||e instanceof Element}function qf(e){return e instanceof Uf(e).HTMLElement||e instanceof HTMLElement}function Vf(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Uf(e).ShadowRoot||e instanceof ShadowRoot)}var Xf={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];qf(o)&&Nf(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});qf(n)&&Nf(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function $f(e){return e.split("-")[0]}function Gf(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Zf(e){var t=Gf(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Kf(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Vf(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Jf(e){return Uf(e).getComputedStyle(e)}function Qf(e){return["table","td","th"].indexOf(Nf(e))>=0}function el(e){return((Wf(e)?e.ownerDocument:e.document)||window.document).documentElement}function tl(e){return"html"===Nf(e)?e:e.assignedSlot||e.parentNode||(Vf(e)?e.host:null)||el(e)}function rl(e){return qf(e)&&"fixed"!==Jf(e).position?e.offsetParent:null}function nl(e){for(var t=Uf(e),r=rl(e);r&&Qf(r)&&"static"===Jf(r).position;)r=rl(r);return r&&("html"===Nf(r)||"body"===Nf(r)&&"static"===Jf(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&qf(e)&&"fixed"===Jf(e).position)return null;for(var r=tl(e);qf(r)&&["html","body"].indexOf(Nf(r))<0;){var n=Jf(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function ol(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var il=Math.max,al=Math.min,ul=Math.round;function cl(e,t,r){return il(e,al(t,r))}function sl(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function fl(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}var ll={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pl(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.offsets,a=e.position,u=e.gpuAcceleration,c=e.adaptive,s=e.roundOffsets,f=!0===s?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:ul(ul(t*n)/n)||0,y:ul(ul(r*n)/n)||0}}(i):"function"==typeof s?s(i):i,l=f.x,p=void 0===l?0:l,d=f.y,v=void 0===d?0:d,h=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),m=Yf,y=Mf,b=window;if(c){var w=nl(r),x="clientHeight",j="clientWidth";w===Uf(r)&&"static"!==Jf(w=el(r)).position&&(x="scrollHeight",j="scrollWidth"),w=w,o===Mf&&(y=Df,v-=w[x]-n.height,v*=u?1:-1),o===Yf&&(m=Pf,p-=w[j]-n.width,p*=u?1:-1)}var _,O=Object.assign({position:a},c&&ll);return u?Object.assign({},O,((_={})[y]=g?"0":"",_[m]=h?"0":"",_.transform=(b.devicePixelRatio||1)<2?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",_)):Object.assign({},O,((t={})[y]=g?v+"px":"",t[m]=h?p+"px":"",t.transform="",t))}var dl={passive:!0};var vl={left:"right",right:"left",bottom:"top",top:"bottom"};function hl(e){return e.replace(/left|right|bottom|top/g,(function(e){return vl[e]}))}var gl={start:"end",end:"start"};function ml(e){return e.replace(/start|end/g,(function(e){return gl[e]}))}function yl(e){var t=Uf(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function bl(e){return Gf(el(e)).left+yl(e).scrollLeft}function wl(e){var t=Jf(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function xl(e){return["html","body","#document"].indexOf(Nf(e))>=0?e.ownerDocument.body:qf(e)&&wl(e)?e:xl(tl(e))}function jl(e,t){var r;void 0===t&&(t=[]);var n=xl(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=Uf(n),a=o?[i].concat(i.visualViewport||[],wl(n)?n:[]):n,u=t.concat(a);return o?u:u.concat(jl(tl(a)))}function _l(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ol(e,t){return t===Hf?_l(function(e){var t=Uf(e),r=el(e),n=t.visualViewport,o=r.clientWidth,i=r.clientHeight,a=0,u=0;return n&&(o=n.width,i=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,u=n.offsetTop)),{width:o,height:i,x:a+bl(e),y:u}}(e)):qf(t)?function(e){var t=Gf(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):_l(function(e){var t,r=el(e),n=yl(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=il(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=il(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-n.scrollLeft+bl(e),c=-n.scrollTop;return"rtl"===Jf(o||r).direction&&(u+=il(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:c}}(el(e)))}function kl(e,t,r){var n="clippingParents"===t?function(e){var t=jl(tl(e)),r=["absolute","fixed"].indexOf(Jf(e).position)>=0&&qf(e)?nl(e):e;return Wf(r)?t.filter((function(e){return Wf(e)&&Kf(e,r)&&"body"!==Nf(e)})):[]}(e):[].concat(t),o=[].concat(n,[r]),i=o[0],a=o.reduce((function(t,r){var n=Ol(e,r);return t.top=il(n.top,t.top),t.right=al(n.right,t.right),t.bottom=al(n.bottom,t.bottom),t.left=il(n.left,t.left),t}),Ol(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Sl(e){return e.split("-")[1]}function El(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?$f(o):null,a=o?Sl(o):null,u=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(i){case Mf:t={x:u,y:r.y-n.height};break;case Df:t={x:u,y:r.y+r.height};break;case Pf:t={x:r.x+r.width,y:c};break;case Yf:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var s=i?ol(i):null;if(null!=s){var f="y"===s?"height":"width";switch(a){case Cf:t[s]=t[s]-(r[f]/2-n[f]/2);break;case Lf:t[s]=t[s]+(r[f]/2-n[f]/2)}}return t}function Al(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.boundary,a=void 0===i?"clippingParents":i,u=r.rootBoundary,c=void 0===u?Hf:u,s=r.elementContext,f=void 0===s?Bf:s,l=r.altBoundary,p=void 0!==l&&l,d=r.padding,v=void 0===d?0:d,h=sl("number"!=typeof v?v:fl(v,If)),g=f===Bf?"reference":Bf,m=e.elements.reference,y=e.rects.popper,b=e.elements[p?g:f],w=kl(Wf(b)?b:b.contextElement||el(e.elements.popper),a,c),x=Gf(m),j=El({reference:x,element:y,strategy:"absolute",placement:o}),_=_l(Object.assign({},y,j)),O=f===Bf?_:x,k={top:w.top-O.top+h.top,bottom:O.bottom-w.bottom+h.bottom,left:w.left-O.left+h.left,right:O.right-w.right+h.right},S=e.modifiersData.offset;if(f===Bf&&S){var E=S[o];Object.keys(k).forEach((function(e){var t=[Pf,Df].indexOf(e)>=0?1:-1,r=[Mf,Df].indexOf(e)>=0?"y":"x";k[e]+=E[r]*t}))}return k}function Ml(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,u=r.flipVariations,c=r.allowedAutoPlacements,s=void 0===c?Ff:c,f=Sl(n),l=f?u?zf:zf.filter((function(e){return Sl(e)===f})):If,p=l.filter((function(e){return s.indexOf(e)>=0}));0===p.length&&(p=l,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=p.reduce((function(t,r){return t[r]=Al(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[$f(r)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}function Dl(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Pl(e){return[Mf,Pf,Df,Yf].some((function(t){return e[t]>=0}))}function Yl(e,t,r){void 0===r&&(r=!1);var n,o,i=el(t),a=Gf(e),u=qf(t),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(u||!u&&!r)&&(("body"!==Nf(t)||wl(i))&&(c=(n=t)!==Uf(n)&&qf(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:yl(n)),qf(t)?((s=Gf(t)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=bl(i))),{x:a.left+c.scrollLeft-s.x,y:a.top+c.scrollTop-s.y,width:a.width,height:a.height}}function Tl(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}function Il(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return[].concat(r).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var Cl='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Ll=["name","enabled","phase","fn","effect","requires","options"];var Hl="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Bl={placement:"bottom",modifiers:[],strategy:"absolute"};function zl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Fl(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?Bl:o;return function(e,t,r){void 0===r&&(r=i);var o,a,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Bl,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],s=!1,f={state:u,setOptions:function(r){l(),u.options=Object.assign({},i,u.options,r),u.scrollParents={reference:Wf(e)?jl(e):e.contextElement?jl(e.contextElement):[],popper:jl(t)};var o=function(e){var t=Tl(e);return Rf.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,u.options.modifiers)));(u.orderedModifiers=o.filter((function(e){return e.enabled})),function(e){e.forEach((function(t){Object.keys(t).forEach((function(r){switch(r){case"name":"string"!=typeof t.name&&console.error(Il(Cl,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(Il(Cl,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));case"phase":Rf.indexOf(t.phase)<0&&console.error(Il(Cl,t.name,'"phase"',"either "+Rf.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(Il(Cl,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":"function"!=typeof t.effect&&console.error(Il(Cl,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":Array.isArray(t.requires)||console.error(Il(Cl,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Il(Cl,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+Ll.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach((function(r){null==e.find((function(e){return e.name===r}))&&console.error(Il('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),r,r))}))}))}))}((a=[].concat(o,u.options.modifiers),s=function(e){return e.name},p=new Set,a.filter((function(e){var t=s(e);if(!p.has(t))return p.add(t),!0})))),$f(u.options.placement)===Tf)&&(u.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var a,s,p,d=Jf(t);return[d.marginTop,d.marginRight,d.marginBottom,d.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" ")),u.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:u,name:t,instance:f,options:n}),a=function(){};c.push(i||a)}})),f.update()},forceUpdate:function(){if(!s){var e=u.elements,t=e.reference,r=e.popper;if(zl(t,r)){u.rects={reference:Yl(t,nl(r),"fixed"===u.options.strategy),popper:Zf(r)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(e){return u.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0,o=0;o<u.orderedModifiers.length;o++){if((n+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==u.reset){var i=u.orderedModifiers[o],a=i.fn,c=i.options,l=void 0===c?{}:c,p=i.name;"function"==typeof a&&(u=a({state:u,options:l,name:p,instance:f})||u)}else u.reset=!1,o=-1}}else console.error(Hl)}},update:(o=function(){return new Promise((function(e){f.forceUpdate(),e(u)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){l(),s=!0}};if(!zl(e,t))return console.error(Hl),f;function l(){c.forEach((function(e){return e()})),c=[]}return f.setOptions(r).then((function(e){!s&&r.onFirstUpdate&&r.onFirstUpdate(e)})),f}}var Rl=Fl({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,u=void 0===a||a,c=Uf(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&s.forEach((function(e){e.addEventListener("scroll",r.update,dl)})),u&&c.addEventListener("resize",r.update,dl),function(){i&&s.forEach((function(e){e.removeEventListener("scroll",r.update,dl)})),u&&c.removeEventListener("resize",r.update,dl)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=El({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,u=r.roundOffsets,c=void 0===u||u,s=Jf(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some((function(e){return s.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var f={placement:$f(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,pl(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,pl(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Xf,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=Ff.reduce((function(e,r){return e[r]=function(e,t,r){var n=$f(e),o=[Yf,Mf].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],u=i[1];return a=a||0,u=(u||0)*o,[Yf,Pf].indexOf(n)>=0?{x:u,y:a}:{x:a,y:u}}(r,t.rects,i),e}),{}),u=a[t.placement],c=u.x,s=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,u=void 0===a||a,c=r.fallbackPlacements,s=r.padding,f=r.boundary,l=r.rootBoundary,p=r.altBoundary,d=r.flipVariations,v=void 0===d||d,h=r.allowedAutoPlacements,g=t.options.placement,m=$f(g),y=c||(m===g||!v?[hl(g)]:function(e){if($f(e)===Tf)return[];var t=hl(e);return[ml(e),t,ml(t)]}(g)),b=[g].concat(y).reduce((function(e,r){return e.concat($f(r)===Tf?Ml(t,{placement:r,boundary:f,rootBoundary:l,padding:s,flipVariations:v,allowedAutoPlacements:h}):r)}),[]),w=t.rects.reference,x=t.rects.popper,j=new Map,_=!0,O=b[0],k=0;k<b.length;k++){var S=b[k],E=$f(S),A=Sl(S)===Cf,M=[Mf,Df].indexOf(E)>=0,D=M?"width":"height",P=Al(t,{placement:S,boundary:f,rootBoundary:l,altBoundary:p,padding:s}),Y=M?A?Pf:Yf:A?Df:Mf;w[D]>x[D]&&(Y=hl(Y));var T=hl(Y),I=[];if(i&&I.push(P[E]<=0),u&&I.push(P[Y]<=0,P[T]<=0),I.every((function(e){return e}))){O=S,_=!1;break}j.set(S,I)}if(_)for(var C=function(e){var t=b.find((function(t){var r=j.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},L=v?3:1;L>0;L--){if("break"===C(L))break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,u=void 0!==a&&a,c=r.boundary,s=r.rootBoundary,f=r.altBoundary,l=r.padding,p=r.tether,d=void 0===p||p,v=r.tetherOffset,h=void 0===v?0:v,g=Al(t,{boundary:c,rootBoundary:s,padding:l,altBoundary:f}),m=$f(t.placement),y=Sl(t.placement),b=!y,w=ol(m),x="x"===w?"y":"x",j=t.modifiersData.popperOffsets,_=t.rects.reference,O=t.rects.popper,k="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,S={x:0,y:0};if(j){if(i||u){var E="y"===w?Mf:Yf,A="y"===w?Df:Pf,M="y"===w?"height":"width",D=j[w],P=j[w]+g[E],Y=j[w]-g[A],T=d?-O[M]/2:0,I=y===Cf?_[M]:O[M],C=y===Cf?-O[M]:-_[M],L=t.elements.arrow,H=d&&L?Zf(L):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=B[E],F=B[A],R=cl(0,_[M],H[M]),N=b?_[M]/2-T-R-z-k:I-R-z-k,U=b?-_[M]/2+T+R+F+k:C+R+F+k,W=t.elements.arrow&&nl(t.elements.arrow),q=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,V=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,X=j[w]+N-V-q,$=j[w]+U-V;if(i){var G=cl(d?al(P,X):P,D,d?il(Y,$):Y);j[w]=G,S[w]=G-D}if(u){var Z="x"===w?Mf:Yf,K="x"===w?Df:Pf,J=j[x],Q=J+g[Z],ee=J-g[K],te=cl(d?al(Q,X):Q,J,d?il(ee,$):ee);j[x]=te,S[x]=te-J}}t.modifiersData[n]=S}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,u=$f(r.placement),c=ol(u),s=[Yf,Pf].indexOf(u)>=0?"height":"width";if(i&&a){var f=function(e,t){return sl("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:fl(e,If))}(o.padding,r),l=Zf(i),p="y"===c?Mf:Yf,d="y"===c?Df:Pf,v=r.rects.reference[s]+r.rects.reference[c]-a[c]-r.rects.popper[s],h=a[c]-r.rects.reference[c],g=nl(i),m=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=v/2-h/2,b=f[p],w=m-l[s]-f[d],x=m/2-l[s]/2+y,j=cl(b,x,w),_=c;r.modifiersData[n]=((t={})[_]=j,t.centerOffset=j-x,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&(qf(n)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),Kf(t.elements.popper,n)?t.elements.arrow=n:console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Al(t,{elementContext:"reference"}),u=Al(t,{altBoundary:!0}),c=Dl(a,n),s=Dl(u,o,i),f=Pl(c),l=Pl(s);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:s,isReferenceHidden:f,hasPopperEscaped:l},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":l})}}]}),Nl="tippy-content",Ul="tippy-arrow",Wl="tippy-svg-arrow",ql={passive:!0,capture:!0},Vl=function(){return document.body};function Xl(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function $l(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function Gl(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Zl(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout((function(){e(n)}),t)};var r}function Kl(e){return[].concat(e)}function Jl(e,t){-1===e.indexOf(t)&&e.push(t)}function Ql(e){return[].slice.call(e)}function ep(){return document.createElement("div")}function tp(e){return["Element","Fragment"].some((function(t){return $l(e,t)}))}function rp(e){return tp(e)?[e]:function(e){return $l(e,"NodeList")}(e)?Ql(e):Array.isArray(e)?e:Ql(document.querySelectorAll(e))}function np(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function op(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function ip(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[n](t,r)}))}function ap(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=null==(n=null==r.getRootNode?void 0:r.getRootNode())?void 0:n.host}return!1}var up={isTouch:!1},cp=0;function sp(){up.isTouch||(up.isTouch=!0,window.performance&&document.addEventListener("mousemove",fp))}function fp(){var e=performance.now();e-cp<20&&(up.isTouch=!1,document.removeEventListener("mousemove",fp)),cp=e}function lp(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var r=t._tippy;t.blur&&!r.state.isVisible&&t.blur()}}var pp,dp=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function vp(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function hp(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function gp(e){return hp("\n %ctippy.js\n\n %c"+hp(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function mp(e){return[gp(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function yp(e,t){var r;e&&!pp.has(t)&&(pp.add(t),(r=console).warn.apply(r,mp(t)))}function bp(e,t){var r;e&&!pp.has(t)&&(pp.add(t),(r=console).error.apply(r,mp(t)))}pp=new Set;var wp={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},xp=Object.assign({appendTo:Vl,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},wp,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),jp=Object.keys(xp);function _p(e){var t=(e.plugins||[]).reduce((function(t,r){var n,o=r.name,i=r.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(n=xp[o])?n:i);return t}),{});return Object.assign({},e,{},t)}function Op(e,t){var r=Object.assign({},t,{content:Gl(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(_p(Object.assign({},xp,{plugins:t}))):jp).reduce((function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t}),{})}(e,t.plugins));return r.aria=Object.assign({},xp.aria,{},r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function kp(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var r,n,o=function(e,t){var r=Object.assign({},e);return t.forEach((function(e){delete r[e]})),r}(xp,Object.keys(wp)),i=(r=o,n=e,!{}.hasOwnProperty.call(r,n));i&&(i=0===t.filter((function(t){return t.name===e})).length),yp(i,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}function Sp(e,t){e.innerHTML=t}function Ep(e){var t=ep();return!0===e?t.className=Ul:(t.className=Wl,tp(e)?t.appendChild(e):Sp(t,e)),t}function Ap(e,t){tp(t.content)?(Sp(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Sp(e,t.content):e.textContent=t.content)}function Mp(e){var t=e.firstElementChild,r=Ql(t.children);return{box:t,content:r.find((function(e){return e.classList.contains(Nl)})),arrow:r.find((function(e){return e.classList.contains(Ul)||e.classList.contains(Wl)})),backdrop:r.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function Dp(e){var t=ep(),r=ep();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=ep();function o(r,n){var o=Mp(t),i=o.box,a=o.content,u=o.arrow;n.theme?i.setAttribute("data-theme",n.theme):i.removeAttribute("data-theme"),"string"==typeof n.animation?i.setAttribute("data-animation",n.animation):i.removeAttribute("data-animation"),n.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?i.setAttribute("role",n.role):i.removeAttribute("role"),r.content===n.content&&r.allowHTML===n.allowHTML||Ap(a,e.props),n.arrow?u?r.arrow!==n.arrow&&(i.removeChild(u),i.appendChild(Ep(n.arrow))):i.appendChild(Ep(n.arrow)):u&&i.removeChild(u)}return n.className=Nl,n.setAttribute("data-state","hidden"),Ap(n,e.props),t.appendChild(r),r.appendChild(n),o(e.props,e.props),{popper:t,onUpdate:o}}Dp.$$tippy=!0;var Pp=1,Yp=[],Tp=[];function Ip(e,t){var r,n,o,i,a,u,c,s,f,l=Op(e,Object.assign({},xp,{},_p((r=t,Object.keys(r).reduce((function(e,t){return void 0!==r[t]&&(e[t]=r[t]),e}),{}))))),p=!1,d=!1,v=!1,h=!1,g=[],m=Zl($,l.interactiveDebounce),y=Pp++,b=(f=l.plugins).filter((function(e,t){return f.indexOf(e)===t})),w={id:y,reference:e,popper:ep(),popperInstance:null,props:l,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(yp(w.state.isDestroyed,vp("setProps")),w.state.isDestroyed)return;I("onBeforeUpdate",[w,t]),V();var r=w.props,n=Op(e,Object.assign({},w.props,{},t,{ignoreAttributes:!0}));w.props=n,q(),r.interactiveDebounce!==n.interactiveDebounce&&(H(),m=Zl($,n.interactiveDebounce));r.triggerTarget&&!n.triggerTarget?Kl(r.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):n.triggerTarget&&e.removeAttribute("aria-expanded");L(),T(),_&&_(r,n);w.popperInstance&&(J(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));I("onAfterUpdate",[w,t])},setContent:function(e){w.setProps({content:e})},show:function(){yp(w.state.isDestroyed,vp("show"));var e=w.state.isVisible,t=w.state.isDestroyed,r=!w.state.isEnabled,n=up.isTouch&&!w.props.touch,o=Xl(w.props.duration,0,xp.duration);if(e||t||r||n)return;if(M().hasAttribute("disabled"))return;if(I("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,A()&&(j.style.visibility="visible");T(),R(),w.state.isMounted||(j.style.transition="none");if(A()){var i=P(),a=i.box,u=i.content;np([a,u],0)}c=function(){var e;if(w.state.isVisible&&!h){if(h=!0,j.offsetHeight,j.style.transition=w.props.moveTransition,A()&&w.props.animation){var t=P(),r=t.box,n=t.content;np([r,n],o),op([r,n],"visible")}C(),L(),Jl(Tp,w),null==(e=w.popperInstance)||e.forceUpdate(),w.state.isMounted=!0,I("onMount",[w]),w.props.animation&&A()&&function(e,t){U(e,t)}(o,(function(){w.state.isShown=!0,I("onShown",[w])}))}},function(){var e,t=w.props.appendTo,r=M();e=w.props.interactive&&t===Vl||"parent"===t?r.parentNode:Gl(t,[r]);e.contains(j)||e.appendChild(j);J(),yp(w.props.interactive&&t===xp.appendTo&&r.nextElementSibling!==j,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){yp(w.state.isDestroyed,vp("hide"));var e=!w.state.isVisible,t=w.state.isDestroyed,r=!w.state.isEnabled,n=Xl(w.props.duration,1,xp.duration);if(e||t||r)return;if(I("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,h=!1,p=!1,A()&&(j.style.visibility="hidden");if(H(),N(),T(),A()){var o=P(),i=o.box,a=o.content;w.props.animation&&(np([i,a],n),op([i,a],"hidden"))}C(),L(),w.props.animation?A()&&function(e,t){U(e,(function(){!w.state.isVisible&&j.parentNode&&j.parentNode.contains(j)&&t()}))}(n,w.unmount):w.unmount()},hideWithInteractivity:function(e){yp(w.state.isDestroyed,vp("hideWithInteractivity")),D().addEventListener("mousemove",m),Jl(Yp,m),m(e)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){yp(w.state.isDestroyed,vp("unmount")),w.state.isVisible&&w.hide();if(!w.state.isMounted)return;Q(),ee().forEach((function(e){e._tippy.unmount()})),j.parentNode&&j.parentNode.removeChild(j);Tp=Tp.filter((function(e){return e!==w})),w.state.isMounted=!1,I("onHidden",[w])},destroy:function(){if(yp(w.state.isDestroyed,vp("destroy")),w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),V(),delete e._tippy,w.state.isDestroyed=!0,I("onDestroy",[w])}};if(!l.render)return bp(!0,"render() function has not been supplied."),w;var x=l.render(w),j=x.popper,_=x.onUpdate;j.setAttribute("data-tippy-root",""),j.id="tippy-"+w.id,w.popper=j,e._tippy=w,j._tippy=w;var O=b.map((function(e){return e.fn(w)})),k=e.hasAttribute("aria-expanded");return q(),L(),T(),I("onCreate",[w]),l.showOnCreate&&te(),j.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()})),j.addEventListener("mouseleave",(function(e){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(D().addEventListener("mousemove",m),m(e))})),w;function S(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===S()[0]}function A(){var e;return!!(null==(e=w.props.render)?void 0:e.$$tippy)}function M(){return s||e}function D(){var e,t,r=M().parentNode;return r?(null==(t=Kl(r)[0])||null==(e=t.ownerDocument)?void 0:e.body)?t.ownerDocument:document:document}function P(){return Mp(j)}function Y(e){return w.state.isMounted&&!w.state.isVisible||up.isTouch||a&&"focus"===a.type?0:Xl(w.props.delay,e?0:1,xp.delay)}function T(){j.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",j.style.zIndex=""+w.props.zIndex}function I(e,t,r){var n;(void 0===r&&(r=!0),O.forEach((function(r){r[e]&&r[e].apply(void 0,t)})),r)&&(n=w.props)[e].apply(n,t)}function C(){var t=w.props.aria;if(t.content){var r="aria-"+t.content,n=j.id;Kl(w.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(r);if(w.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var o=t&&t.replace(n,"").trim();o?e.setAttribute(r,o):e.removeAttribute(r)}}))}}function L(){!k&&w.props.aria.expanded&&Kl(w.props.triggerTarget||e).forEach((function(e){w.props.interactive?e.setAttribute("aria-expanded",w.state.isVisible&&e===M()?"true":"false"):e.removeAttribute("aria-expanded")}))}function H(){D().removeEventListener("mousemove",m),Yp=Yp.filter((function(e){return e!==m}))}function B(e){if(!up.isTouch||!v&&"mousedown"!==e.type){var t=e.composedPath&&e.composedPath()[0]||e.target;if(!w.props.interactive||!ap(j,t)){if(ap(M(),t)){if(up.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else I("onClickOutside",[w,e]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),d=!0,setTimeout((function(){d=!1})),w.state.isMounted||N())}}}function z(){v=!0}function F(){v=!1}function R(){var e=D();e.addEventListener("mousedown",B,!0),e.addEventListener("touchend",B,ql),e.addEventListener("touchstart",F,ql),e.addEventListener("touchmove",z,ql)}function N(){var e=D();e.removeEventListener("mousedown",B,!0),e.removeEventListener("touchend",B,ql),e.removeEventListener("touchstart",F,ql),e.removeEventListener("touchmove",z,ql)}function U(e,t){var r=P().box;function n(e){e.target===r&&(ip(r,"remove",n),t())}if(0===e)return t();ip(r,"remove",u),ip(r,"add",n),u=n}function W(t,r,n){void 0===n&&(n=!1),Kl(w.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,r,n),g.push({node:e,eventType:t,handler:r,options:n})}))}function q(){var e;E()&&(W("touchstart",X,{passive:!0}),W("touchend",G,{passive:!0})),(e=w.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(W(e,X),e){case"mouseenter":W("mouseleave",G);break;case"focus":W(dp?"focusout":"blur",Z);break;case"focusin":W("focusout",Z)}}))}function V(){g.forEach((function(e){var t=e.node,r=e.eventType,n=e.handler,o=e.options;t.removeEventListener(r,n,o)})),g=[]}function X(e){var t,r=!1;if(w.state.isEnabled&&!K(e)&&!d){var n="focus"===(null==(t=a)?void 0:t.type);a=e,s=e.currentTarget,L(),!w.state.isVisible&&$l(e,"MouseEvent")&&Yp.forEach((function(t){return t(e)})),"click"===e.type&&(w.props.trigger.indexOf("mouseenter")<0||p)&&!1!==w.props.hideOnClick&&w.state.isVisible?r=!0:te(e),"click"===e.type&&(p=!r),r&&!n&&re(e)}}function $(e){var t=e.target,r=M().contains(t)||j.contains(t);"mousemove"===e.type&&r||function(e,t){var r=t.clientX,n=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=o.placement.split("-")[0],u=o.modifiersData.offset;if(!u)return!0;var c="bottom"===a?u.top.y:0,s="top"===a?u.bottom.y:0,f="right"===a?u.left.x:0,l="left"===a?u.right.x:0,p=t.top-n+c>i,d=n-t.bottom-s>i,v=t.left-r+f>i,h=r-t.right-l>i;return p||d||v||h}))}(ee().concat(j).map((function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:l}:null})).filter(Boolean),e)&&(H(),re(e))}function G(e){K(e)||w.props.trigger.indexOf("click")>=0&&p||(w.props.interactive?w.hideWithInteractivity(e):re(e))}function Z(e){w.props.trigger.indexOf("focusin")<0&&e.target!==M()||w.props.interactive&&e.relatedTarget&&j.contains(e.relatedTarget)||re(e)}function K(e){return!!up.isTouch&&E()!==e.type.indexOf("touch")>=0}function J(){Q();var t=w.props,r=t.popperOptions,n=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,u=A()?Mp(j).arrow:null,s=i?{getBoundingClientRect:i,contextElement:i.contextElement||M()}:e,f=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(A()){var r=P().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];A()&&u&&f.push({name:"arrow",options:{element:u,padding:3}}),f.push.apply(f,(null==r?void 0:r.modifiers)||[]),w.popperInstance=Rl(s,j,Object.assign({},r,{placement:n,onFirstUpdate:c,modifiers:f}))}function Q(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function ee(){return Ql(j.querySelectorAll("[data-tippy-root]"))}function te(e){w.clearDelayTimeouts(),e&&I("onTrigger",[w,e]),R();var t=Y(!0),r=S(),o=r[0],i=r[1];up.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout((function(){w.show()}),t):w.show()}function re(e){if(w.clearDelayTimeouts(),I("onUntrigger",[w,e]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=Y(!1);t?o=setTimeout((function(){w.state.isVisible&&w.hide()}),t):i=requestAnimationFrame((function(){w.hide()}))}}else N()}}function Cp(e,t){void 0===t&&(t={});var r=xp.plugins.concat(t.plugins||[]);!function(e){var t=!e,r="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;bp(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),bp(r,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),kp(t,r),document.addEventListener("touchstart",sp,ql),window.addEventListener("blur",lp);var n=Object.assign({},t,{plugins:r}),o=rp(e),i=tp(n.content),a=o.length>1;yp(i&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var u=o.reduce((function(e,t){var r=t&&Ip(t,n);return r&&e.push(r),e}),[]);return tp(e)?u[0]:u}function Lp(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Cp.defaultProps=xp,Cp.setDefaultProps=function(e){kp(e,[]),Object.keys(e).forEach((function(t){xp[t]=e[t]}))},Cp.currentInput=up,Object.assign({},Xf,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),Cp.setDefaultProps({render:Dp});Lp('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}');function Hp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hp(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zp(e){var t,r=Object.prototype.toString.call(e);if(t="[object Promise]"===r)return!0;if("[object Function]"!==r)return!1;try{t="function"!=typeof e.subscribe&&"function"==typeof e.then}catch(e){}return t}function Fp(){return Rp.apply(this,arguments)}function Rp(){return(Rp=Na(Ua.mark((function e(){var t,r,n,o,i,a,u,c,s,f=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=f.length>0&&void 0!==f[0]?f[0]:600,r=f.length>1&&void 0!==f[1]?f[1]:400,n=f.length>2?f[2]:void 0,ce(t)||(t=600),t=se(t),ce(r)||(r=400),r=se(r),ra(n)){e.next=9;break}throw new Error("invalid fun");case 9:if((o=document.createElement("div")).style.width="".concat(t,"px"),o.style.height="".concat(r,"px"),(i=document.createElement("div")).style.position="absolute",i.style.top=0,i.style.left=0,i.style.zIndex=-1,i.appendChild(o),(a=document.createElement("div")).style.position="relative",a.appendChild(i),(u=document.createElement("div")).style.position="fixed",u.style.zIndex=-1,u.appendChild(a),Nc(document.querySelector("body"),u),!zp(s=n(o))){e.next=34;break}return e.next=31,s;case 31:c=e.sent,e.next=35;break;case 34:c=s;case 35:return Rc(u),e.abrupt("return",c);case 37:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Np(e){return function(){var t=ka(),r=null,n=null;try{r=e.apply(this,arguments)}catch(e){n=e}return null!==n?t.resolve({state:"error",msg:n}):zp(r)?r.then((function(e){t.resolve({state:"success",msg:e})})).catch((function(e){"cancelled"===Oo(e,"reason")?t.resolve({state:"cancelled",msg:""}):t.resolve({state:"error",msg:e})})):t.resolve({state:"success",msg:r}),t}}function Up(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=0,r=[];Gn(e)&&(e=0),e=$n(e);var n=Cn();function o(){if(r.length>0)return t+=1,r.splice(0,1)[0];return null}function i(){(t-=1)<0&&(t=0),r.length>0&&n.emit("message",r)}function a(o){r.push(o),(e<=0||t<e)&&n.emit("message",r)}function u(){t=0,r=[]}return n.get=o,n.cb=i,n.push=a,n.clear=u,n}function Wp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function r(e,t){var r=null;zo(e)||(e=0),e=$n(e),me(t)||(t=!1);var n=Up(e);return n.on("message",function(){var e=Na(Ua.mark((function e(t){var r,o,i,a,u;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.get()){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,wc(1);case 5:if(o=Oo(r,"id"),i=Oo(r,"fun"),a=Oo(r,"input"),ra(i)){e.next=12;break}u={state:"error",msg:"fun is not function"},e.next=15;break;case 12:return e.next=14,Np(i).apply(void 0,ta(a));case 14:u=e.sent;case 15:n.emit(o,u),n.cb();case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),function(e){var o=ka(),i=Sc();r=i;for(var a=arguments.length,u=new Array(a>1?a-1:0),c=1;c<a;c++)u[c-1]=arguments[c];var s={id:i,fun:e,input:u};return n.push(s),n.once(i,(function(e){t?i===r?"success"===e.state?o.resolve(e.msg):o.reject(e.msg):o.reject({reason:"cancelled"}):"success"===e.state?o.resolve(e.msg):o.reject(e.msg)})),o}}return new r(e,t)}function qp(e,t){Sa()?E(e)?Bc()?function(e,t){window.navigator.msSaveOrOpenBlob(t,e)}(e,t):function(e,t){var r=window.URL.createObjectURL(t),n=document.createElement("a");n.href=r,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(r)}(e,t):console.log("no filename"):console.log("no window")}function Vp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";function r(){if(!(this instanceof r))return new r;this.SheetNames=[],this.Sheets={}}var n=new r;return n.SheetNames.push(t),n.Sheets[t]=e,n}function Xp(){var e=_c();return m.default||e.XLSX||e.xlsx}function $p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";if(!Jn(e)&&!vc(e))return{error:"data is not array or element"};E(t)||(t="data");var r=null;try{var n=Xp(),o=n.utils,i=null;Jn(e)?i=o.aoa_to_sheet(e):vc(e)&&(i=o.table_to_sheet(e)),r=Vp(i,t)}catch(e){return{error:e}}return r}function Gp(e){if(!io(e))return[];var t=[];return et(e,(function(e){var r=Ze(e);t=[].concat(ta(t),ta(r)),t=Rs(t)})),t}function Zp(e,t){if(!io(e))return[];if(io(t)||(t=Gp(e)),0===Tn(t))return[];var r=!1;if(et(e,(function(e){Hn(e)||(r=!0)})),r)return[];var n=[];return et(e,(function(e){var r=wi(t,(function(t){return ye(e[t])?e[t]?"true":"false":S(e[t])||ce(e[t])?e[t]:Ya(e[t])}));n.push(r)})),n}function Kp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!io(e))return[];io(t)||(t=Gp(e)),Hn(r)||(r={},et(t,(function(e){r[e]=e})));var n=!1;if(et(e,(function(e){Hn(e)||(n=!0)})),n)return[];var o=wi(t,(function(e){return Oo(r,e)})),i=Zp(e,t),a=Cs([o],i);return a}function Jp(){var e=_c();return m.default||e.XLSX||e.xlsx}function Qp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data",r=arguments.length>2?arguments[2]:void 0;if(!E(e)){var n="no filename";return console.log(n,e),{error:n}}if(E(t)||(t="data"),!Jn(r)&&!vc(r)){var o="data is not array or element";return console.log(o,r),{error:o}}Jn(r)&&Hn(Oo(r,0,null))&&(r=Kp(r));var i=$p(r,t);if(Oo(i,"error"))return console.log(i.error),i.error;var a=Jp();if(Sa()){var u=a.write(i,{bookType:"xlsx",bookSST:!1,type:"array"});qp(e,new Blob([u]))}else a.writeFile(i,e);return"ok"}function ed(){return(ed=Na(Ua.mark((function e(t){var r,n,o,i,a=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:"data",n=a.length>2?a[2]:void 0,io(o=a.length>3?a[3]:void 0)||(o=["https://cdn.jsdelivr.net/npm/xlsx@0.x/dist/xlsx.full.min.js"]),e.next=6,Qc(o);case 6:if(i=Qp(t,r,n),""===Oo(i,"error","")){e.next=9;break}return e.abrupt("return",Promise.reject(i.error));case 9:return e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function td(e){return xa(e)?new Blob([e]):new Blob}function rd(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!Hn(e))return{};if(!io(t))return{};var n={};return et(t,(function(t){n[t]=Oo(e,t,r)})),n}function nd(e,t){if(!Ln(e))return{};if(!io(t))return{};var r={};return et(t,(function(t){Bn(e,t)&&(r[t]=Oo(e,t))})),r}function od(e){return E(e)?Ui(e):""}function id(e,t){return Jn(e)&&Jn(t)?e.length!==t.length?[]:wi(e,(function(r,n){return xf(e[n],t[n])})):[]}function ad(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=[];if(!Jn(e)&&!Ln(e))return e=t(e,null,[]);function o(e){if(Jn(e))return lo(Tn(e));if(Ln(e)){var t=Object.getOwnPropertyNames(e),n=null;return r&&(n=Object.getOwnPropertySymbols(e)),Jn(t)||(t=[]),Jn(n)||(n=[]),[].concat(ta(t),ta(n))}return e}function i(e,r){if(Jn(e))return o(e).map((function(r){var o=e[r],a=vn(n);return n.push(r),o=i(o=t(o,r,a)),n.pop(),o}));if(Ln(e)){var a=o(e),u={};return a.map((function(r){var o=e[r],a=vn(n);n.push(r),o=i(o=t(o,r,a)),n.pop(),u[r]=o})),u}return e}return i(e)}function ud(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};$e(t)||(t=function(e){return e});var n=Oo(r,"force",!1);return ye(n)||(n=!1),ad(e,t,n)}function cd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cd(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fd(e){return!!b.default.existsSync(e)&&(!b.default.lstatSync(e).isFile()&&!b.default.lstatSync(e).isSymbolicLink())}function ld(e){if(!b.default.existsSync(e))return{success:"folder does not exist: "+e};if(!fd(e))return{error:"input path is not folder: "+e};try{b.default.readdirSync(e).forEach((function(t){var r=e+"/"+t;if(b.default.lstatSync(r).isDirectory())ld(r);else try{b.default.unlinkSync(r)}catch(e){}}))}catch(e){return{error:e}}try{b.default.rmdirSync(e)}catch(e){return{error:e}}return{success:"done: "+e}}function pd(e){if(fd(e))return{success:"input folder is already exists: "+e};if(b.default.existsSync(e))return{error:"input path already exists: "+e};try{b.default.mkdirSync(e,{recursive:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function dd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=1;function n(e){var o=[],i=b.default.readdirSync(e);return et(i,(function(i){var a=w.default.resolve(e,i),u=null;try{u=b.default.statSync(a)}catch(e){}u&&u.isDirectory()?(o.push({isFolder:!0,level:r,path:a,name:w.default.basename(a)}),((r+=1)<=t||null===t)&&(o=o.concat(n(a))),r-=1):o.push({isFolder:!1,level:r,path:a,name:w.default.basename(a)})})),o}return n(e)}function vd(e){return!!b.default.existsSync(e)&&(!b.default.lstatSync(e).isDirectory()&&!b.default.lstatSync(e).isSymbolicLink())}function hd(e){return"[object Uint16Array]"===Object.prototype.toString.call(e)}function gd(e){if(!(O(e)||Ca(e)||xa(e)||hd(e)))return null;try{if(e.byteLength)return e.byteLength}catch(e){}try{if(e.length)return e.length}catch(e){}try{if(e.size)return e.size}catch(e){}return null}function md(e,t){return E(e)&&Vi(t)?Xi(e,e.length-t):""}function yd(e){if(!E(e))return{path:"",isRoot:!1};for(;e.indexOf("\\\\")>=0;)e=e.replace("\\\\","\\");for(;e.indexOf("//")>=0;)e=e.replace("//","/");if(":"===$i(e,1))return{path:"".concat(e,"\\"),isRoot:!0};if("\\"===$i(e,1)){var t=md(e,1);return":"===$i(t,1)?{path:e,isRoot:!0}:{path:t,isRoot:!1}}if("/"===$i(e,1)){var r=md(e,1);return 0===Tn(r)?{path:e,isRoot:!0}:{path:r,isRoot:!1}}return{path:e,isRoot:!1}}function bd(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r='"',n=t?"\ufeff":"";return et(e,(function(e){var t=[];et(e,(function(e){S(e)?(e=Ga(e,"\r\n",""),e=Ga(e,"\r",""),e=Ga(e,"\n",""),e="".concat(r).concat(e).concat(r)):e=ye(e)?e?"true":"false":Za(e),t.push(e)})),n+=Xc(t,",")+"\r\n"})),n}function wd(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!io(e)){var r="no data";return{error:r}}var n=null;try{n=bd(e,t)}catch(e){return{error:e}}return n}Lp(".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}");var xd=function(e,t){return zn(t,(function(t){return e[t]}))};var jd=function(e){return null==e?[]:xd(e,Ze(e))};function _d(){var e=_c();return m.default||e.XLSX||e.xlsx}function Od(e){return ye(e)?e?"true":"false":Za(e)}function kd(e,t){var r=[];return e.SheetNames.forEach((function(n){var o=_d().utils.sheet_to_json(e.Sheets[n],{header:"A",defval:"",blankrows:!0});o=wi(o,(function(e){return jd(e)})),t&&(o=wi(o,(function(e){return wi(e,(function(e){return Od(e)}))}))),r.push({sheetname:n,data:o})})),r}function Sd(e,t){var r=Oo(t,"fmt","ltdt");if(!Ji(["ltdt","csv","array"],r))return{error:"opt.fmt is not is not any one of 'ltdt', 'csv', 'array'"};var n,o=Oo(t,"valueToString",!0);if(!ye(o))return{error:"opt.valueToString is not Boolean"};try{n=_d().read(e,{type:"buffer"})}catch(e){return console.log("error: ",e),{error:"can not read data from u8a"}}var i=null;try{"ltdt"===r?i=function(e,t){var r=[];return e.SheetNames.forEach((function(n){var o=_d().utils.sheet_to_json(e.Sheets[n]);t&&(o=wi(o,(function(e){return et(e,(function(t,r){e[r]=Od(t)})),e}))),r.push({sheetname:n,data:o})})),r}(n,o):"array"===r?i=kd(n,o):"csv"===r&&(i=function(e,t){var r=kd(e,t);return et(r,(function(e,t){r[t].data=wd(e.data,!1)})),r}(n,o))}catch(e){return console.log("error: ",e),{error:"can not convert data"}}return i}function Ed(){return(Ed=Na(Ua.mark((function e(t){var r,n,o,i=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:"ltdt",io(n=i.length>3?i[3]:void 0)||(n=["https://cdn.jsdelivr.net/npm/xlsx@0.x/dist/xlsx.full.min.js"]),e.next=6,Qc(n);case 6:if(o=Sd(t,r),""===Oo(o,"error","")){e.next=9;break}return e.abrupt("return",Promise.reject(o.error));case 9:return e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ad(e){if(!E(e))return"";var t=yd(e);if(t.isRoot)return t.path;var r=t.path;try{r=r.split("\\").pop().split("/").pop()}catch(e){}return r}function Md(){var e=_c();return m.default||e.XLSX||e.xlsx}var Dd=function(e,t,r){var n=null==e?0:e.length;return n?(t=r||void 0===t?1:ie(t),xi(e,0,(t=n-t)<0?0:t)):[]};var Pd=4294967295,Yd=Math.min;var Td=function(e,t){if((e=ie(e))<1||e>9007199254740991)return[];var r=Pd,n=Yd(e,Pd);t=Qe(t),e-=Pd;for(var o=je(n,t);++r<e;)t(r);return o};function Id(e){var t="";return"years"===e?t="YYYY":"months"===e?t="YYYY-MM":"days"===e?t="YYYY-MM-DD":"hours"===e?t="YYYY-MM-DDTHH":"minutes"===e?t="YYYY-MM-DDTHH:mm":"seconds"===e&&(t="YYYY-MM-DDTHH:mm:ss"),t}function Cd(e,t){var r="";"years"===t?r="-01-01T00:00:00":"months"===t?r="-01T00:00:00":"days"===t?r="T00:00:00":"hours"===t?r=":00:00":"minutes"===t&&(r=":00");return d.default(e+r,"YYYY-MM-DDTHH:mm:ss")}function Ld(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"days";if(!E(e))return null;if(!E(t))return null;var r=Cd(e,t),n=Id(t),o=r.format(n),i=e===o;return i?r:null}function Hd(e){if(!E(e))return!1;var t="YYYY-MM-DDTHH:mm:ss";return e===d.default(e,t).format(t)}function Bd(e){return Hd(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm"):""}function zd(){var e=_c();return x.default||e.UAParser}function Fd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=zd(),r=(S(e)?new t(e):new t).getResult();return{browsername:r.browser.name,browserversion:r.browser.version,engineinfor:r.engine.name+r.engine.version,platform:r.os.name+r.os.version,devicetype:Oo(r.device,"type",""),cpuarchitecture:Oo(r.cpu,"architecture","")}}function Rd(){return(Rd=Na(Ua.mark((function e(){var t,r,n,o=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:null,io(r=o.length>1?o[1]:void 0)||(r=["https://cdn.jsdelivr.net/npm/ua-parser-js@0.7.28/dist/ua-parser.min.js"]),e.next=5,Qc(r);case 5:return n=Fd(t),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Nd(){return _c().html2canvas}function Ud(e,t){var r=_c().canvg.Canvg,n=e.querySelectorAll("svg");et(n,(function(e){var n=se(e.getAttribute("width")),o=se(e.getAttribute("height"));if(n<=0)return console.log("svg width <=0"),!0;if(o<=0)return console.log("svg height <=0"),!0;var i=document.createElement("canvas");i.width=n*t,i.height=o*t;var a=i.getContext("2d");r.fromString(a,e.parentNode.innerHTML,{ignoreDimensions:!0,scaleWidth:i.width,scaleHeight:i.height}).start();var u=new Image;u.src=i.toDataURL("image/png"),u.style.width="".concat(n,"px"),u.style.height="".concat(o,"px"),e.parentNode.appendChild(u),e.parentNode.removeChild(e)}))}function Wd(e){return qd.apply(this,arguments)}function qd(){return(qd=Na(Ua.mark((function e(t){var r,n,o,i,a,u,c,s,f,l,p=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=p.length>1&&void 0!==p[1]?p[1]:{},vc(t)){e.next=3;break}return e.abrupt("return",Promise.reject("invalid ele"));case 3:if(n=Oo(r,"scale",1),Ki(n)){e.next=6;break}return e.abrupt("return",Promise.reject("opt.scale is not number"));case 6:if(!(n<1)){e.next=8;break}return e.abrupt("return",Promise.reject("opt.scale can not less then 1"));case 8:if("image/jpeg"===(o=Oo(r,"picType","image/jpeg"))||"image/png"===o){e.next=11;break}return e.abrupt("return",Promise.reject("opt.picType is not image/jpeg or image/png"));case 11:if(i=Oo(r,"toBase64",!0),me(i)){e.next=14;break}return e.abrupt("return",Promise.reject("opt.toBase64 is not boolean"));case 14:return a=t.cloneNode(!0),Bc()&&Ud(a,n),(u=document.createElement("div")).style.position="absolute",u.style.top=0,u.style.left=0,u.style.zIndex=-1,u.appendChild(a),(c=document.createElement("div")).style.position="relative",c.appendChild(u),Nc(document.querySelector("body"),c),s=Nd(),e.next=30,s(u,{logging:!1,scale:n,x:0,y:0});case 30:return f=e.sent,l=f,i&&(l=f.toDataURL(o,1)),Rc(c),e.abrupt("return",l);case 35:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vd(){return(Vd=Na(Ua.mark((function e(t){var r,n,o,i=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},io(n=i.length>2?i[2]:void 0)||(n=["https://cdn.jsdelivr.net/npm/canvg@3.0.7/lib/umd.js","https://cdn.jsdelivr.net/npm/html2canvas@1.3.2/dist/html2canvas.min.js"]),e.next=5,Qc(n);case 5:return o=Wd(t,r),e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xd(e){var t=null;if(!E(e))return"";var r=function(){var e=_c();return j.default||e.htmlparser||e.Tautologistics.NodeHtmlParser}(),n=new r.DefaultHandler((function(e,r){e&&(t=e)}));if(new r.Parser(n).parseComplete(e),null!==t)return t;var o=[];return function e(t){et(t,(function(t){Tn(t.children)>0&&e(t.children),"text"===t.type&&o.push(t.data)}))}(n.dom),o=Xc(o,"")}function $d(){return($d=Na(Ua.mark((function e(t,r){var n;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return io(r)||(r=["https://cdn.jsdelivr.net/npm/htmlparser@1.7.7/lib/htmlparser.min.js"]),e.next=3,Qc(r);case 3:return e.next=5,Xd(t);case 5:return n=e.sent,e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Gd=Array.prototype.reverse;var Zd=function(e){return null==e?e:Gd.call(e)},Kd="in x-range",Jd="out of x-range",Qd="order list",ev="reverse order list";function tv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Tn(e)<=0)return[];var r=Oo(t,"keyX");E(r)||(r="x");var n=Oo(t,"keyY");E(n)||(n="y");var o=[];return et(e,(function(e){var t=null,i=null;Jn(e)&&Tn(e)>=2?(t=Oo(e,0),i=Oo(e,1)):(t=Oo(e,r,null),i=Oo(e,n,null)),ce(t)&&ce(i)&&(t=re(t),i=re(i),o.push({x:t,y:i}))})),o}function rv(e){for(var t=!0,r=!0,n=1;n<Tn(e);n++){var o=e[n-1],i=e[n];if(t&&o.x>i.x&&(t=!1),r&&o.x<i.x&&(r=!1),o.x===i.x)return{err:"x can not be equal: i=".concat(n,", x=").concat(o.x)}}return t?Qd:r?ev:"no"}function nv(e,t){var r,n;return r=e[0].x,n=e[Tn(e)-1].x,t<r?{err:Jd,msg:"x[".concat(t,"] less than lower limit[").concat(r,"]"),data:{ps:e,x:t,xmin:r,xmax:n}}:t>n?{err:Jd,msg:"x[".concat(t,"] greater than upper limit[").concat(n,"]"),data:{ps:e,x:t,xmin:r,xmax:n}}:Kd}function ov(e,t){var r=nv(e,t);if(r!==Kd)return r;for(var n=null,o=1;o<Tn(e);o++){var i=e[o-1],a=e[o];if(i.x<=t&&t<=a.x){n=((t-i.x)*a.y+(a.x-t)*i.y)/(a.x-i.x);break}}return null===n?{err:Jd}:n}function iv(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Oo(r,"xMin");if(Ki(n)){if(n>e[0].x)return{err:"xMin=".concat(n," > ps[0].x=").concat(e[0].x)};if(n===e[0].x);else{var o={x:n,y:e[0].y};e=[o].concat(ta(e))}}var i=Oo(r,"xMax");if(Ki(i)){if(i<e[Tn(e)-1].x)return{err:"xMax=".concat(i," < ps[size(ps)-1].x=").concat(e[Tn(e)-1].x)};if(i===e[Tn(e)-1].x);else{var a={x:i,y:e[Tn(e)-1].y};e=[].concat(ta(e),[a])}}var u=nv(e,t);if(u!==Kd)return u;for(var c=null,s=0;s<Tn(e);s++){var f=Oo(e,s-1,null),l=Oo(e,s,null),p=Oo(e,s+1,null),d=l.x;f&&(d=(f.x+l.x)/2);var v=l.x;if(p&&(v=(p.x+l.x)/2),d<=t&&t<=v){c=l.y;break}}return null===c?{err:Jd}:c}function av(e,t){var r=nv(e,t);if(r!==Kd)return r;for(var n=null,o=1;o<Tn(e);o++){var i=e[o-1],a=e[o],u=i.x,c=a.x;if(u<=t&&t<=c){n=a.y;break}}return null===n?{err:Jd}:n}function uv(e){return!!fe(e)&&$n(e)<=0}function cv(e){return!!ce(e)&&se(e)<=0}function sv(e){return!!ce(e)&&se(e)>=0}function fv(e){return!!E(e)&&!(null===e.match(/^.*[A-Z]+.*$/))}function lv(e){return!!E(e)&&!(null===e.match(/^.*[a-z]+.*$/))}function pv(e){if(!E(e))return!1;var t="YYYY-MM-DDTHH:mm:ss.SSS";return e===d.default(e,t).format(t)}function dv(e){return"Z"===$i(e,1)?(e=md(e,1),"".concat(e,"+00:00")):e}var vv={checkTZ:function(e){var t;return"Z"===(t=$i(e,1))||(t=$i(e,6),!!/[+|-]\d\d:\d\d/.test(t))},delTZ:function(e){return md(e,"Z"===$i(e,1)?1:6)},normTZ:dv,sepTZ:function(e){var t=dv(e);return{t:md(t,6),tz:$i(t,6)}}};function hv(e){if(!E(e))return!1;if(!vv.checkTZ(e))return!1;var t=vv.delTZ(e),r="YYYY-MM-DDTHH:mm:ss.SSS";return t===d.default(t,r).format(r)}function gv(e){if(!E(e))return!1;if(!vv.checkTZ(e))return!1;var t=vv.delTZ(e),r="YYYY-MM-DDTHH:mm:ss";return t===d.default(t,r).format(r)}function mv(e,t){return io(e)&&io(t)&&io(t[0])?wi(t,(function(t){var r=Kn(e,t);return et(r,(function(e,t){void 0===e&&(r[t]="")})),r})):[]}function yv(){return d.default().format("YYYY-MM-DDTHH:mm:ss.SSSZ")}var bv=function(e){return function(t,r,n){var o=Object(t);if(!Ge(t)){var i=yi(r);t=Ze(t),r=function(e){return i(o[e],e,o)}}var a=e(t,r,n);return a>-1?o[i?t[a]:a]:void 0}},wv=Math.max;var xv=bv((function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ie(r);return o<0&&(o=wv(n+o,0)),_i(e,yi(t),o)}));var jv=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0};var _v=function(e,t){var r=!0;return Ke(e,(function(e,n,o){return r=!!t(e,n,o)})),r};var Ov=function(e,t,r){var n=Ae(e)?jv:_v;return r&&fo(e,t,r)&&(t=void 0),n(e,yi(t))};var kv=function(e,t,r,n){var o=-1,i=Ls,a=!0,u=e.length,c=[],s=t.length;if(!u)return c;r&&(t=zn(t,Le(r))),n?(i=Hs,a=!1):t.length>=200&&(i=Vo,a=!1,t=new Wo(t));e:for(;++o<u;){var f=e[o],l=null==r?f:r(f);if(f=n||0!==f?f:0,a&&l==l){for(var p=s;p--;)if(t[p]===l)continue e;c.push(f)}else i(t,l,n)||c.push(f)}return c},Sv=la((function(e,t){var r=ec(t);return gf(r)&&(r=void 0),gf(e)?kv(e,Ao(t,1,gf,!0),yi(r)):[]}));var Ev=function(e,t,r){return e&&e.length?(t=r||void 0===t?1:ie(t),xi(e,0,t<0?0:t)):[]};var Av=function(e){var t=null==e?0:e.length;return t?xi(e,1,t):[]};function Mv(e){if(!E(e))return"";var t=he.parse(e);return pe.stringify(t)}function Dv(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!E(e))return"";if(!E(t))return"";if(!ye(r))return"";var n=ve.encrypt(e,t),o="";if(r)o=n.toString();else{var i=n.toString(),a=pe.parse(i);o=a.toString(ge)}return o}var Pv=L((function(e,t){var r;e.exports=(r=le,function(){if("function"==typeof ArrayBuffer){var e=r.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=e[o]<<24-o%4*8;t.call(this,n,r)}else t.apply(this,arguments)}).prototype=e}}(),r.lib.WordArray)}));function Yv(e){return xa(e)?Pv.create(e).toString(pe):""}function Tv(e){return hd(e)?new Uint8Array(e):new Uint8Array}function Iv(e){return hd(e)?Yv(Tv(e)):""}var Cv="[Uint8Array]::";var Lv="[Uint16Array]::";var Hv={tagU8A:Cv,u8arr2b64:function(e){return xa(e)?Cv+Yv(e):e},b642u8arr:function(e){return S(e)&&Xi(e,Cv.length)===Cv?wa(e=Gi(e,Cv.length)):e},tagU16A:Lv,u16arr2b64:function(e){return hd(e)?Lv+Iv(e):e},b642u16arr:function(e){return S(e)&&Xi(e,Lv.length)===Lv?_a(e=Gi(e,Lv.length)):e}};var Bv=function(e){if(!Z(e))return!1;var t=G(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!cc(e)};function zv(e){if(!Ln(e))return{results:"",binarys:[]};if(to(e))return{results:"",binarys:[]};var t="",r=[];try{var n=-1;t=JSON.stringify(e,(function(e,t){if(xa(t)){var o="[Uint8Array]::".concat(n+=1);return r.push(t),o}if(hd(t)){var i="[Uint16Array]::".concat(n+=1);return r.push(t),i}if(O(t)){var a="[ArrayBuffer]::".concat(n+=1);return r.push(t),a}return Bv(t)&&(t=t.toString()),t}))}catch(e){}return{results:t,binarys:r}}function Fv(e){if(!E(e))return new Uint8Array;var t;try{t=wa(Mv(e))}catch(e){return new Uint8Array}return t}function Rv(){var e=_c();return _.default||e.Tesseract}function Nv(e){return Uv.apply(this,arguments)}function Uv(){return(Uv=Na(Ua.mark((function e(t){var r,n,o,i,a,u,c,s=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=s.length>1&&void 0!==s[1]?s[1]:{},E(t)){e.next=3;break}return e.abrupt("return",Promise.reject("img is not effective string"));case 3:return E(n=Oo(r,"lang"))||(n="eng"),o=Rv(),i=o.createWorker(),e.next=9,i.load();case 9:return e.next=11,i.loadLanguage(n);case 11:return e.next=13,i.initialize(n);case 13:if(!E(a=Oo(r,"whitelist"))){e.next=17;break}return e.next=17,i.setParameters({tessedit_char_whitelist:a});case 17:return e.next=19,i.recognize(t);case 19:return u=e.sent,c=u.data.text,e.next=23,i.terminate();case 23:return e.abrupt("return",c);case 24:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wv(){return(Wv=Na(Ua.mark((function e(t){var r,n,o,i=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},io(n=i.length>2?i[2]:void 0)||(n=["https://cdn.jsdelivr.net/npm/tesseract.js@2.1.5/dist/tesseract.min.js"]),e.next=5,Qc(n);case 5:return e.next=7,Nv(t,r);case 7:return o=e.sent,e.abrupt("return",o);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if(!ra(e))return null;function r(e,t){return eo(e)||Qn(e)?t:Oo(e,"data",null)||e}return ra(t)||(t=function(){}),function(){var n=ka(),o=t({mode:"before",data:arguments});return(eo(o)||Qn(o))&&(o=arguments),e.apply(void 0,ta(o)).then((function(e){e=r(t({mode:"afterThen",data:e}),e),n.resolve(e)})).catch((function(e){e=r(t({mode:"afterCatch",data:e}),e),n.reject(e)})),n}}var Vv=Math.floor;var Xv=function(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=Vv(t/2))&&(e+=e)}while(t);return r};var $v=function(e,t,r){return t=(r?fo(e,t,r):void 0===t)?1:ie(t),Xv(Un(e),t)};var Gv=Vn("floor");L((function(e,t){var r,n,o,i,a,u,c;e.exports=(o=(n=c=le).lib,i=o.Base,a=o.WordArray,(u=n.x64={}).Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),u.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=r?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var o=e[n];r.push(o.high),r.push(o.low)}return a.create(r,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}}),c)}));var Zv=L((function(e,t){var r;e.exports=(r=le,function(){var e=r,t=e.lib.Hasher,n=e.x64,o=n.Word,i=n.WordArray,a=e.algo;function u(){return o.create.apply(o,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],s=[];!function(){for(var e=0;e<80;e++)s[e]=u()}();var f=a.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],u=r[4],f=r[5],l=r[6],p=r[7],d=n.high,v=n.low,h=o.high,g=o.low,m=i.high,y=i.low,b=a.high,w=a.low,x=u.high,j=u.low,_=f.high,O=f.low,k=l.high,S=l.low,E=p.high,A=p.low,M=d,D=v,P=h,Y=g,T=m,I=y,C=b,L=w,H=x,B=j,z=_,F=O,R=k,N=S,U=E,W=A,q=0;q<80;q++){var V,X,$=s[q];if(q<16)X=$.high=0|e[t+2*q],V=$.low=0|e[t+2*q+1];else{var G=s[q-15],Z=G.high,K=G.low,J=(Z>>>1|K<<31)^(Z>>>8|K<<24)^Z>>>7,Q=(K>>>1|Z<<31)^(K>>>8|Z<<24)^(K>>>7|Z<<25),ee=s[q-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,oe=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),ie=s[q-7],ae=ie.high,ue=ie.low,ce=s[q-16],se=ce.high,fe=ce.low;X=(X=(X=J+ae+((V=Q+ue)>>>0<Q>>>0?1:0))+ne+((V+=oe)>>>0<oe>>>0?1:0))+se+((V+=fe)>>>0<fe>>>0?1:0),$.high=X,$.low=V}var le,pe=H&z^~H&R,de=B&F^~B&N,ve=M&P^M&T^P&T,he=D&Y^D&I^Y&I,ge=(M>>>28|D<<4)^(M<<30|D>>>2)^(M<<25|D>>>7),me=(D>>>28|M<<4)^(D<<30|M>>>2)^(D<<25|M>>>7),ye=(H>>>14|B<<18)^(H>>>18|B<<14)^(H<<23|B>>>9),be=(B>>>14|H<<18)^(B>>>18|H<<14)^(B<<23|H>>>9),we=c[q],xe=we.high,je=we.low,_e=U+ye+((le=W+be)>>>0<W>>>0?1:0),Oe=me+he;U=R,W=N,R=z,N=F,z=H,F=B,H=C+(_e=(_e=(_e=_e+pe+((le+=de)>>>0<de>>>0?1:0))+xe+((le+=je)>>>0<je>>>0?1:0))+X+((le+=V)>>>0<V>>>0?1:0))+((B=L+le|0)>>>0<L>>>0?1:0)|0,C=T,L=I,T=P,I=Y,P=M,Y=D,M=_e+(ge+ve+(Oe>>>0<me>>>0?1:0))+((D=le+Oe|0)>>>0<le>>>0?1:0)|0}v=n.low=v+D,n.high=d+M+(v>>>0<D>>>0?1:0),g=o.low=g+Y,o.high=h+P+(g>>>0<Y>>>0?1:0),y=i.low=y+I,i.high=m+T+(y>>>0<I>>>0?1:0),w=a.low=w+L,a.high=b+C+(w>>>0<L>>>0?1:0),j=u.low=j+B,u.high=x+H+(j>>>0<B>>>0?1:0),O=f.low=O+F,f.high=_+z+(O>>>0<F>>>0?1:0),S=l.low=S+N,l.high=k+R+(S>>>0<N>>>0?1:0),A=p.low=A+W,p.high=E+U+(A>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(f),e.HmacSHA512=t._createHmacHelper(f)}(),r.SHA512)}));function Kv(e,t){return E(e)&&E(t)?function(e,t){if(e=e.replace(/\s+/g,""),t=t.replace(/\s+/g,""),!e.length&&!t.length)return 1;if(!e.length||!t.length)return 0;if(e===t)return 1;if(1===e.length&&1===t.length)return 0;if(e.length<2||t.length<2)return 0;for(var r=new Map,n=0;n<e.length-1;n++){var o=e.substring(n,n+2),i=r.has(o)?r.get(o)+1:1;r.set(o,i)}for(var a=0,u=0;u<t.length-1;u++){var c=t.substring(u,u+2),s=r.has(c)?r.get(c):0;s>0&&(r.set(c,s-1),a++)}return 2*a/(e.length+t.length-2)}(e,t):0}var Jv=L((function(e,t){e.exports=function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==C?C:"undefined"!=typeof self?self:{},t={exports:{}},r=Math.floor,n=Math.max,o=Math.min,i=function(e,t){return t?2*e/t:1},a=function(e,t){var r,n,i,a,u,c;for(u=[e.length,t.length],r=a=0,c=o(n=u[0],i=u[1]);0<=c?a<c:a>c;r=0<=c?++a:--a){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return n-i},u=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c=function(){function e(e,t,r,n){this.isjunk=e,null==t&&(t=""),null==r&&(r=""),this.autojunk=null==n||n,this.a=this.b=null,this.setSeqs(t,r)}return e.prototype.setSeqs=function(e,t){return this.setSeq1(e),this.setSeq2(t)},e.prototype.setSeq1=function(e){if(e!==this.a)return this.a=e,this.matchingBlocks=this.opcodes=null},e.prototype.setSeq2=function(e){if(e!==this.b)return this.b=e,this.matchingBlocks=this.opcodes=null,this.fullbcount=null,this._chainB()},e.prototype._chainB=function(){var e,t,n,o,i,a,c,s,f,l,p,d,v,h;for(e=this.b,this.b2j=t={},o=l=0,d=e.length;l<d;o=++l)n=e[o],(u(t,n)?t[n]:t[n]=[]).push(o);if(a={},i=this.isjunk)for(p=0,v=(h=Object.keys(t)).length;p<v;p++)i(n=h[p])&&(a[n]=!0,delete t[n]);if(f={},c=e.length,this.autojunk&&c>=200)for(n in s=r(c/100)+1,t)t[n].length>s&&(f[n]=!0,delete t[n]);return this.isbjunk=function(e){return u(a,e)},this.isbpopular=function(e){return u(f,e)}},e.prototype.findLongestMatch=function(e,t,r,n){var o,i,a,c,s,f,l,p,d,v,h,g,m,y,b,w,x,j,_,O,k;for(o=(w=[this.a,this.b,this.b2j,this.isbjunk])[0],i=w[1],a=w[2],p=w[3],c=(x=[e,r,0])[0],s=x[1],f=x[2],v={},l=m=e;e<=t?m<t:m>t;l=e<=t?++m:--m){for(g={},y=0,b=(j=u(a,o[l])?a[o[l]]:[]).length;y<b;y++)if(!((d=j[y])<r)){if(d>=n)break;(h=g[d]=(v[d-1]||0)+1)>f&&(c=(_=[l-h+1,d-h+1,h])[0],s=_[1],f=_[2])}v=g}for(;c>e&&s>r&&!p(i[s-1])&&o[c-1]===i[s-1];)c=(O=[c-1,s-1,f+1])[0],s=O[1],f=O[2];for(;c+f<t&&s+f<n&&!p(i[s+f])&&o[c+f]===i[s+f];)f++;for(;c>e&&s>r&&p(i[s-1])&&o[c-1]===i[s-1];)c=(k=[c-1,s-1,f+1])[0],s=k[1],f=k[2];for(;c+f<t&&s+f<n&&p(i[s+f])&&o[c+f]===i[s+f];)f++;return[c,s,f]},e.prototype.getMatchingBlocks=function(){var e,t,r,n,o,i,u,c,s,f,l,p,d,v,h,g,m,y,b,w,x,j,_,O,k,S;if(this.matchingBlocks)return this.matchingBlocks;for(y=[[0,v=(j=[this.a.length,this.b.length])[0],0,h=j[1]]],g=[];y.length;)t=(_=y.pop())[0],e=_[1],n=_[2],r=_[3],o=(O=b=this.findLongestMatch(t,e,n,r))[0],c=O[1],(l=O[2])&&(g.push(b),t<o&&n<c&&y.push([t,o,n,c]),o+l<e&&c+l<r&&y.push([o+l,e,c+l,r]));for(g.sort(a),i=s=p=0,m=[],w=0,x=g.length;w<x;w++)u=(k=g[w])[0],f=k[1],d=k[2],i+p===u&&s+p===f?p+=d:(p&&m.push([i,s,p]),i=(S=[u,f,d])[0],s=S[1],p=S[2]);return p&&m.push([i,s,p]),m.push([v,h,0]),this.matchingBlocks=m},e.prototype.getOpcodes=function(){var e,t,r,n,o,i,a,u,c,s,f,l;if(this.opcodes)return this.opcodes;for(n=o=0,this.opcodes=t=[],u=0,c=(s=this.getMatchingBlocks()).length;u<c;u++)e=(f=s[u])[0],r=f[1],i=f[2],a="",n<e&&o<r?a="replace":n<e?a="delete":o<r&&(a="insert"),a&&t.push([a,n,e,o,r]),n=(l=[e+i,r+i])[0],o=l[1],i&&t.push(["equal",e,n,r,o]);return t},e.prototype.getGroupedOpcodes=function(e){var t,r,i,a,u,c,s,f,l,p,d,v,h,g,m;for(null==e&&(e=3),(t=this.getOpcodes()).length||(t=[["equal",0,1,0,1]]),"equal"===t[0][0]&&(l=(v=t[0])[0],a=v[1],u=v[2],c=v[3],s=v[4],t[0]=[l,n(a,u-e),u,n(c,s-e),s]),"equal"===t[t.length-1][0]&&(l=(h=t[t.length-1])[0],a=h[1],u=h[2],c=h[3],s=h[4],t[t.length-1]=[l,a,o(u,a+e),c,o(s,c+e)]),f=e+e,i=[],r=[],p=0,d=t.length;p<d;p++)l=(g=t[p])[0],a=g[1],u=g[2],c=g[3],s=g[4],"equal"===l&&u-a>f&&(r.push([l,a,o(u,a+e),c,o(s,c+e)]),i.push(r),r=[],a=(m=[n(a,u-e),n(c,s-e)])[0],c=m[1]),r.push([l,a,u,c,s]);return!r.length||1===r.length&&"equal"===r[0][0]||i.push(r),i},e.prototype.ratio=function(){var e,t,r,n;for(e=0,t=0,r=(n=this.getMatchingBlocks()).length;t<r;t++)e+=n[t][2];return i(e,this.a.length+this.b.length)},e.prototype.quickRatio=function(){var e,t,r,n,o,a,c,s,f,l,p;if(!this.fullbcount)for(this.fullbcount=r={},a=0,s=(l=this.b).length;a<s;a++)r[t=l[a]]=(r[t]||0)+1;for(r=this.fullbcount,e={},n=0,c=0,f=(p=this.a).length;c<f;c++)t=p[c],o=u(e,t)?e[t]:r[t]||0,e[t]=o-1,o>0&&n++;return i(n,this.a.length+this.b.length)},e.prototype.realQuickRatio=function(){var e,t,r;return r=[this.a.length,this.b.length],i(o(e=r[0],t=r[1]),e+t)},e}(),s={exports:{}};!function(t,r){(function(){var e,r,n,o,i,a,u,c,s,f,l,p,d,v,h;n=Math.floor,f=Math.min,r=function(e,t){return e<t?-1:e>t?1:0},s=function(e,t,o,i,a){var u;if(null==o&&(o=0),null==a&&(a=r),o<0)throw new Error("lo must be non-negative");for(null==i&&(i=e.length);o<i;)a(t,e[u=n((o+i)/2)])<0?i=u:o=u+1;return[].splice.apply(e,[o,o-o].concat(t)),t},a=function(e,t,n){return null==n&&(n=r),e.push(t),v(e,0,e.length-1,n)},i=function(e,t){var n,o;return null==t&&(t=r),n=e.pop(),e.length?(o=e[0],e[0]=n,h(e,0,t)):o=n,o},c=function(e,t,n){var o;return null==n&&(n=r),o=e[0],e[0]=t,h(e,0,n),o},u=function(e,t,n){var o;return null==n&&(n=r),e.length&&n(e[0],t)<0&&(t=(o=[e[0],t])[0],e[0]=o[1],h(e,0,n)),t},o=function(e,t){var o,i,a,u,c,s;for(null==t&&(t=r),c=[],i=0,a=(u=function(){s=[];for(var t=0,r=n(e.length/2);0<=r?t<r:t>r;0<=r?t++:t--)s.push(t);return s}.apply(this).reverse()).length;i<a;i++)o=u[i],c.push(h(e,o,t));return c},d=function(e,t,n){var o;if(null==n&&(n=r),-1!==(o=e.indexOf(t)))return v(e,0,o,n),h(e,o,n)},l=function(e,t,n){var i,a,c,s,f;if(null==n&&(n=r),!(a=e.slice(0,t)).length)return a;for(o(a,n),c=0,s=(f=e.slice(t)).length;c<s;c++)i=f[c],u(a,i,n);return a.sort(n).reverse()},p=function(e,t,n){var a,u,c,l,p,d,v,h,g;if(null==n&&(n=r),10*t<=e.length){if(!(c=e.slice(0,t).sort(n)).length)return c;for(u=c[c.length-1],l=0,d=(v=e.slice(t)).length;l<d;l++)n(a=v[l],u)<0&&(s(c,a,0,null,n),c.pop(),u=c[c.length-1]);return c}for(o(e,n),g=[],p=0,h=f(t,e.length);0<=h?p<h:p>h;0<=h?++p:--p)g.push(i(e,n));return g},v=function(e,t,n,o){var i,a,u;for(null==o&&(o=r),i=e[n];n>t&&o(i,a=e[u=n-1>>1])<0;)e[n]=a,n=u;return e[n]=i},h=function(e,t,n){var o,i,a,u,c;for(null==n&&(n=r),i=e.length,c=t,a=e[t],o=2*t+1;o<i;)(u=o+1)<i&&!(n(e[o],e[u])<0)&&(o=u),e[t]=e[o],o=2*(t=o)+1;return e[t]=a,v(e,c,t,n)},e=function(){function e(e){this.cmp=null!=e?e:r,this.nodes=[]}return e.push=a,e.pop=i,e.replace=c,e.pushpop=u,e.heapify=o,e.updateItem=d,e.nlargest=l,e.nsmallest=p,e.prototype.push=function(e){return a(this.nodes,e,this.cmp)},e.prototype.pop=function(){return i(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return-1!==this.nodes.indexOf(e)},e.prototype.replace=function(e){return c(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return u(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return o(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return d(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return 0===this.nodes.length},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t;return(t=new e).nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),t.exports=e}).call(e)}(s);var f,l,p,d=s.exports,v={exports:{}};
6
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("dayjs"),require("crypto"),require("xss"),require("viewerjs"),require("xlsx"),require("child_process"),require("fs"),require("path"),require("ua-parser-js"),require("htmlparser"),require("tesseract.js")):"function"==typeof define&&define.amd?define(["exports","dayjs","crypto","xss","viewerjs","xlsx","child_process","fs","path","ua-parser-js","htmlparser","tesseract.js"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wsemi={},e.dayjs,e.crypto,e.filterXSS,e.viewerjs,e.XLSX,e.child_process,e.fs,e.path,e.UAParser,e.htmlparser,e.tesseractjs)}(this,(function(e,t,r,n,o,i,a,u,c,s,f,l){"use strict";function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=p(t),v=p(r),h=p(n),g=p(o),m=p(i),y=p(a),b=p(u),w=p(c),x=p(s),j=p(f),_=p(l);function O(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}function k(e){return O(e)?new Uint8Array(e):new Uint8Array}function S(e){return"[object String]"===Object.prototype.toString.call(e)}function E(e){return!(!S(e)||""===e)}function A(e){if(!E(e))return!1;var t="YYYY-MM";return e===d.default(e,t).format(t)}var M=/\s/;var D=function(e){for(var t=e.length;t--&&M.test(e.charAt(t)););return t},P=/^\s+/;var Y=function(e){return e?e.slice(0,D(e)+1).replace(P,""):e};function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var I=function(e){var t=T(e);return null!=e&&("object"==t||"function"==t)},C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function L(e){var t={exports:{}};return e(t,t.exports),t.exports}var H="object"==T(C)&&C&&C.Object===Object&&C,B="object"==("undefined"==typeof self?"undefined":T(self))&&self&&self.Object===Object&&self,z=H||B||Function("return this")(),F=z.Symbol,R=Object.prototype,N=R.hasOwnProperty,U=R.toString,W=F?F.toStringTag:void 0;var q=function(e){var t=N.call(e,W),r=e[W];try{e[W]=void 0;var n=!0}catch(e){}var o=U.call(e);return n&&(t?e[W]=r:delete e[W]),o},V=Object.prototype.toString;var X=function(e){return V.call(e)},$=F?F.toStringTag:void 0;var G=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":$&&$ in Object(e)?q(e):X(e)};var Z=function(e){return null!=e&&"object"==T(e)};var K=function(e){return"symbol"==T(e)||Z(e)&&"[object Symbol]"==G(e)},J=/^[-+]0x[0-9a-f]+$/i,Q=/^0b[01]+$/i,ee=/^0o[0-7]+$/i,te=parseInt;var re=function(e){if("number"==typeof e)return e;if(K(e))return NaN;if(I(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=I(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Y(e);var r=Q.test(e);return r||ee.test(e)?te(e.slice(2),r?2:8):J.test(e)?NaN:+e},ne=1/0;var oe=function(e){return e?(e=re(e))===ne||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var ie=function(e){var t=oe(e),r=t%1;return t==t?r?t-r:t:0};var ae=function(e){return"number"==typeof e&&e==ie(e)};function ue(e){return"[object Number]"===Object.prototype.toString.call(e)}function ce(e){var t=!1;return E(e)?t=!isNaN(Number(e)):ue(e)&&(t=!0),t}function se(e){return ce(e)?oe(e):0}function fe(e){return!!ce(e)&&(e=se(e),ae(e))}var le=L((function(e,t){var r;e.exports=r=r||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==C&&C.crypto&&(r=C.crypto),!r)try{r=v.default}catch(e){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),i={},a=i.lib={},u=a.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=u.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||f).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var a=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=a<<24-(n+i)%4*8}else for(var u=0;u<o;u+=4)t[n+u>>>2]=r[u>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new c.init(t,e)}}),s=i.enc={},f=s.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new c.init(r,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new c.init(r,t)}},p=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},d=a.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,a=this.blockSize,u=i/(4*a),s=(u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0))*a,f=e.min(4*s,i);if(s){for(var l=0;l<s;l+=a)this._doProcessBlock(o,l);r=o.splice(0,s),n.sigBytes-=f}return new c.init(r,f)},clone:function(){var e=u.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=d.extend({cfg:u.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new h.HMAC.init(e,r).finalize(t)}}});var h=i.algo={};return i}(Math)})),pe=L((function(e,t){var r;e.exports=(r=le,function(){var e=r,t=e.lib.WordArray;function n(e,r,n){for(var o=[],i=0,a=0;a<r;a++)if(a%4){var u=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=u<<24-i%4*8,i++}return t.create(o,i)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,u=0;u<4&&i+.75*u<r;u++)o.push(n.charAt(a>>>6*(3-u)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<r.length;i++)o[r.charCodeAt(i)]=i}var a=r.charAt(64);if(a){var u=e.indexOf(a);-1!==u&&(t=u)}return n(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64)})),de=L((function(e,t){var r;e.exports=(r=le,function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.algo,u=[];!function(){for(var t=0;t<64;t++)u[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],c=e[t+1],d=e[t+2],v=e[t+3],h=e[t+4],g=e[t+5],m=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],x=e[t+10],j=e[t+11],_=e[t+12],O=e[t+13],k=e[t+14],S=e[t+15],E=i[0],A=i[1],M=i[2],D=i[3];E=s(E,A,M,D,a,7,u[0]),D=s(D,E,A,M,c,12,u[1]),M=s(M,D,E,A,d,17,u[2]),A=s(A,M,D,E,v,22,u[3]),E=s(E,A,M,D,h,7,u[4]),D=s(D,E,A,M,g,12,u[5]),M=s(M,D,E,A,m,17,u[6]),A=s(A,M,D,E,y,22,u[7]),E=s(E,A,M,D,b,7,u[8]),D=s(D,E,A,M,w,12,u[9]),M=s(M,D,E,A,x,17,u[10]),A=s(A,M,D,E,j,22,u[11]),E=s(E,A,M,D,_,7,u[12]),D=s(D,E,A,M,O,12,u[13]),M=s(M,D,E,A,k,17,u[14]),E=f(E,A=s(A,M,D,E,S,22,u[15]),M,D,c,5,u[16]),D=f(D,E,A,M,m,9,u[17]),M=f(M,D,E,A,j,14,u[18]),A=f(A,M,D,E,a,20,u[19]),E=f(E,A,M,D,g,5,u[20]),D=f(D,E,A,M,x,9,u[21]),M=f(M,D,E,A,S,14,u[22]),A=f(A,M,D,E,h,20,u[23]),E=f(E,A,M,D,w,5,u[24]),D=f(D,E,A,M,k,9,u[25]),M=f(M,D,E,A,v,14,u[26]),A=f(A,M,D,E,b,20,u[27]),E=f(E,A,M,D,O,5,u[28]),D=f(D,E,A,M,d,9,u[29]),M=f(M,D,E,A,y,14,u[30]),E=l(E,A=f(A,M,D,E,_,20,u[31]),M,D,g,4,u[32]),D=l(D,E,A,M,b,11,u[33]),M=l(M,D,E,A,j,16,u[34]),A=l(A,M,D,E,k,23,u[35]),E=l(E,A,M,D,c,4,u[36]),D=l(D,E,A,M,h,11,u[37]),M=l(M,D,E,A,y,16,u[38]),A=l(A,M,D,E,x,23,u[39]),E=l(E,A,M,D,O,4,u[40]),D=l(D,E,A,M,a,11,u[41]),M=l(M,D,E,A,v,16,u[42]),A=l(A,M,D,E,m,23,u[43]),E=l(E,A,M,D,w,4,u[44]),D=l(D,E,A,M,_,11,u[45]),M=l(M,D,E,A,S,16,u[46]),E=p(E,A=l(A,M,D,E,d,23,u[47]),M,D,a,6,u[48]),D=p(D,E,A,M,y,10,u[49]),M=p(M,D,E,A,k,15,u[50]),A=p(A,M,D,E,g,21,u[51]),E=p(E,A,M,D,_,6,u[52]),D=p(D,E,A,M,v,10,u[53]),M=p(M,D,E,A,x,15,u[54]),A=p(A,M,D,E,c,21,u[55]),E=p(E,A,M,D,b,6,u[56]),D=p(D,E,A,M,S,10,u[57]),M=p(M,D,E,A,m,15,u[58]),A=p(A,M,D,E,O,21,u[59]),E=p(E,A,M,D,h,6,u[60]),D=p(D,E,A,M,j,10,u[61]),M=p(M,D,E,A,d,15,u[62]),A=p(A,M,D,E,w,21,u[63]),i[0]=i[0]+E|0,i[1]=i[1]+A|0,i[2]=i[2]+M|0,i[3]=i[3]+D|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;r[o>>>5]|=128<<24-o%32;var i=e.floor(n/4294967296),a=n;r[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var u=this._hash,c=u.words,s=0;s<4;s++){var f=c[s];c[s]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return u},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function s(e,t,r,n,o,i,a){var u=e+(t&r|~t&n)+o+a;return(u<<i|u>>>32-i)+t}function f(e,t,r,n,o,i,a){var u=e+(t&n|r&~n)+o+a;return(u<<i|u>>>32-i)+t}function l(e,t,r,n,o,i,a){var u=e+(t^r^n)+o+a;return(u<<i|u>>>32-i)+t}function p(e,t,r,n,o,i,a){var u=e+(r^(t|~n))+o+a;return(u<<i|u>>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),r.MD5)})),ve=(L((function(e,t){var r,n,o,i,a,u,c,s;e.exports=(n=(r=s=le).lib,o=n.WordArray,i=n.Hasher,a=r.algo,u=[],c=a.SHA1=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],c=r[4],s=0;s<80;s++){if(s<16)u[s]=0|e[t+s];else{var f=u[s-3]^u[s-8]^u[s-14]^u[s-16];u[s]=f<<1|f>>>31}var l=(n<<5|n>>>27)+c+u[s];l+=s<20?1518500249+(o&i|~o&a):s<40?1859775393+(o^i^a):s<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,c=a,a=i,i=o<<30|o>>>2,o=n,n=l}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),r.SHA1=i._createHelper(c),r.HmacSHA1=i._createHmacHelper(c),s.SHA1)})),L((function(e,t){var r,n,o;e.exports=(n=(r=le).lib.Base,o=r.enc.Utf8,void(r.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),u=i.words,c=a.words,s=0;s<r;s++)u[s]^=1549556828,c[s]^=909522486;i.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})))})),L((function(e,t){var r,n,o,i,a,u,c,s;e.exports=(n=(r=s=le).lib,o=n.Base,i=n.WordArray,a=r.algo,u=a.MD5,c=a.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:u,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),a=i.create(),u=a.words,c=n.keySize,s=n.iterations;u.length<c;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var f=1;f<s;f++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*c,a}}),r.EvpKDF=function(e,t,r){return c.create(r).compute(e,t)},s.EvpKDF)})),L((function(e,t){var r;e.exports=void((r=le).lib.Cipher||function(e){var t=r,n=t.lib,o=n.Base,i=n.WordArray,a=n.BufferedBlockAlgorithm,u=t.enc;u.Utf8;var c=u.Base64,s=t.algo.EvpKDF,f=n.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:m}return function(t){return{encrypt:function(r,n,o){return e(n).encrypt(t,r,n,o)},decrypt:function(r,n,o){return e(n).decrypt(t,r,n,o)}}}}()});n.StreamCipher=f.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l=t.mode={},p=n.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),d=l.CBC=function(){var t=p.extend();function r(t,r,n){var o,i=this._iv;i?(o=i,this._iv=e):o=this._prevBlock;for(var a=0;a<n;a++)t[r+a]^=o[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize;r.call(this,e,t,o),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=e.slice(t,t+o);n.decryptBlock(e,t),r.call(this,e,t,o),this._prevBlock=i}}),t}(),v=(t.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,o=n<<24|n<<16|n<<8|n,a=[],u=0;u<n;u+=4)a.push(o);var c=i.create(a,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=f.extend({cfg:f.cfg.extend({mode:d,padding:v}),reset:function(){var e;f.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var h=n.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?i.create([1398893684,1701076831]).concat(r).concat(t):t).toString(c)},parse:function(e){var t,r=c.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=i.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),h.create({ciphertext:r,salt:t})}},m=n.SerializableCipher=o.extend({cfg:o.extend({format:g}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var o=e.createEncryptor(r,n),i=o.finalize(t),a=o.cfg;return h.create({ciphertext:i,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(t.kdf={}).OpenSSL={execute:function(e,t,r,n){n||(n=i.random(8));var o=s.create({keySize:t+r}).compute(e,n),a=i.create(o.words.slice(t),4*r);return o.sigBytes=4*t,h.create({key:o,iv:a,salt:n})}},b=n.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:y}),encrypt:function(e,t,r,n){var o=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=o.iv;var i=m.encrypt.call(this,e,t,o.key,n);return i.mixIn(o),i},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var o=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=o.iv,m.decrypt.call(this,e,t,o.key,n)}})}())})),L((function(e,t){var r;e.exports=(r=le,function(){var e=r,t=e.lib.BlockCipher,n=e.algo,o=[],i=[],a=[],u=[],c=[],s=[],f=[],l=[],p=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var v=n^n<<1^n<<2^n<<3^n<<4;v=v>>>8^255&v^99,o[r]=v,i[v]=r;var h=e[r],g=e[h],m=e[g],y=257*e[v]^16843008*v;a[r]=y<<24|y>>>8,u[r]=y<<16|y>>>16,c[r]=y<<8|y>>>24,s[r]=y,y=16843009*m^65537*g^257*h^16843008*r,f[v]=y<<24|y>>>8,l[v]=y<<16|y>>>16,p[v]=y<<8|y>>>24,d[v]=y,r?(r=h^e[e[e[m^h]]],n^=e[e[n]]):r=n=1}}();var v=[0,1,2,4,8,16,32,64,128,27,54],h=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],a=0;a<n;a++)a<r?i[a]=t[a]:(s=i[a-1],a%r?r>6&&a%r==4&&(s=o[s>>>24]<<24|o[s>>>16&255]<<16|o[s>>>8&255]<<8|o[255&s]):(s=o[(s=s<<8|s>>>24)>>>24]<<24|o[s>>>16&255]<<16|o[s>>>8&255]<<8|o[255&s],s^=v[a/r|0]<<24),i[a]=i[a-r]^s);for(var u=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var s=i[a];else s=i[a-4];u[c]=c<4||a<=4?s:f[o[s>>>24]]^l[o[s>>>16&255]]^p[o[s>>>8&255]]^d[o[255&s]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,u,c,s,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,f,l,p,d,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,a,u){for(var c=this._nRounds,s=e[t]^r[0],f=e[t+1]^r[1],l=e[t+2]^r[2],p=e[t+3]^r[3],d=4,v=1;v<c;v++){var h=n[s>>>24]^o[f>>>16&255]^i[l>>>8&255]^a[255&p]^r[d++],g=n[f>>>24]^o[l>>>16&255]^i[p>>>8&255]^a[255&s]^r[d++],m=n[l>>>24]^o[p>>>16&255]^i[s>>>8&255]^a[255&f]^r[d++],y=n[p>>>24]^o[s>>>16&255]^i[f>>>8&255]^a[255&l]^r[d++];s=h,f=g,l=m,p=y}h=(u[s>>>24]<<24|u[f>>>16&255]<<16|u[l>>>8&255]<<8|u[255&p])^r[d++],g=(u[f>>>24]<<24|u[l>>>16&255]<<16|u[p>>>8&255]<<8|u[255&s])^r[d++],m=(u[l>>>24]<<24|u[p>>>16&255]<<16|u[s>>>8&255]<<8|u[255&f])^r[d++],y=(u[p>>>24]<<24|u[s>>>16&255]<<16|u[f>>>8&255]<<8|u[255&l])^r[d++],e[t]=h,e[t+1]=g,e[t+2]=m,e[t+3]=y},keySize:8});e.AES=t._createHelper(h)}(),r.AES)}))),he=L((function(e,t){e.exports=le.enc.Utf8})),ge=L((function(e,t){e.exports=le.enc.Hex}));var me=function(e){return!0===e||!1===e||Z(e)&&"[object Boolean]"==G(e)};function ye(e){return me(e)}function be(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!E(e))return"";if(!E(t))return"";if(!ye(r))return"";var n="";if(r){var o=ve.decrypt(e,t);n=o.toString(he)}else{var i=ge.parse(e),a=i.toString(pe),u=ve.decrypt(a,t);n=u.toString(he)}return n}var we=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e};var xe=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),u=a.length;u--;){var c=a[e?u:++o];if(!1===r(i[c],c,i))break}return t}}();var je=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};var _e=function(e){return Z(e)&&"[object Arguments]"==G(e)},Oe=Object.prototype,ke=Oe.hasOwnProperty,Se=Oe.propertyIsEnumerable,Ee=_e(function(){return arguments}())?_e:function(e){return Z(e)&&ke.call(e,"callee")&&!Se.call(e,"callee")},Ae=Array.isArray;var Me=function(){return!1},De=L((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?z.Buffer:void 0,i=(o?o.isBuffer:void 0)||Me;e.exports=i})),Pe=/^(?:0|[1-9]\d*)$/;var Ye=function(e,t){var r=T(e);return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Pe.test(e))&&e>-1&&e%1==0&&e<t};var Te=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ie={};Ie["[object Float32Array]"]=Ie["[object Float64Array]"]=Ie["[object Int8Array]"]=Ie["[object Int16Array]"]=Ie["[object Int32Array]"]=Ie["[object Uint8Array]"]=Ie["[object Uint8ClampedArray]"]=Ie["[object Uint16Array]"]=Ie["[object Uint32Array]"]=!0,Ie["[object Arguments]"]=Ie["[object Array]"]=Ie["[object ArrayBuffer]"]=Ie["[object Boolean]"]=Ie["[object DataView]"]=Ie["[object Date]"]=Ie["[object Error]"]=Ie["[object Function]"]=Ie["[object Map]"]=Ie["[object Number]"]=Ie["[object Object]"]=Ie["[object RegExp]"]=Ie["[object Set]"]=Ie["[object String]"]=Ie["[object WeakMap]"]=!1;var Ce=function(e){return Z(e)&&Te(e.length)&&!!Ie[G(e)]};var Le=function(e){return function(t){return e(t)}},He=L((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&H.process,i=function(){try{var e=n&&n.require&&n.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=i})),Be=He&&He.isTypedArray,ze=Be?Le(Be):Ce,Fe=Object.prototype.hasOwnProperty;var Re=function(e,t){var r=Ae(e),n=!r&&Ee(e),o=!r&&!n&&De(e),i=!r&&!n&&!o&&ze(e),a=r||n||o||i,u=a?je(e.length,String):[],c=u.length;for(var s in e)!t&&!Fe.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Ye(s,c))||u.push(s);return u},Ne=Object.prototype;var Ue=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ne)};var We=function(e,t){return function(r){return e(t(r))}},qe=We(Object.keys,Object),Ve=Object.prototype.hasOwnProperty;var Xe=function(e){if(!Ue(e))return qe(e);var t=[];for(var r in Object(e))Ve.call(e,r)&&"constructor"!=r&&t.push(r);return t};var $e=function(e){if(!I(e))return!1;var t=G(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var Ge=function(e){return null!=e&&Te(e.length)&&!$e(e)};var Ze=function(e){return Ge(e)?Re(e):Xe(e)};var Ke=function(e,t){return function(r,n){if(null==r)return r;if(!Ge(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=Object(r);(t?i--:++i<o)&&!1!==n(a[i],i,a););return r}}((function(e,t){return e&&xe(e,t,Ze)}));var Je=function(e){return e};var Qe=function(e){return"function"==typeof e?e:Je};var et=function(e,t){return(Ae(e)?we:Ke)(e,Qe(t))};var tt=function(){this.__data__=[],this.size=0};var rt=function(e,t){return e===t||e!=e&&t!=t};var nt=function(e,t){for(var r=e.length;r--;)if(rt(e[r][0],t))return r;return-1},ot=Array.prototype.splice;var it=function(e){var t=this.__data__,r=nt(t,e);return!(r<0)&&(r==t.length-1?t.pop():ot.call(t,r,1),--this.size,!0)};var at=function(e){var t=this.__data__,r=nt(t,e);return r<0?void 0:t[r][1]};var ut=function(e){return nt(this.__data__,e)>-1};var ct=function(e,t){var r=this.__data__,n=nt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function st(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}st.prototype.clear=tt,st.prototype.delete=it,st.prototype.get=at,st.prototype.has=ut,st.prototype.set=ct;var ft=st;var lt=function(){this.__data__=new ft,this.size=0};var pt=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var dt=function(e){return this.__data__.get(e)};var vt,ht=function(e){return this.__data__.has(e)},gt=z["__core-js_shared__"],mt=(vt=/[^.]+$/.exec(gt&&gt.keys&&gt.keys.IE_PROTO||""))?"Symbol(src)_1."+vt:"";var yt=function(e){return!!mt&&mt in e},bt=Function.prototype.toString;var wt=function(e){if(null!=e){try{return bt.call(e)}catch(e){}try{return e+""}catch(e){}}return""},xt=/^\[object .+?Constructor\]$/,jt=Function.prototype,_t=Object.prototype,Ot=jt.toString,kt=_t.hasOwnProperty,St=RegExp("^"+Ot.call(kt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Et=function(e){return!(!I(e)||yt(e))&&($e(e)?St:xt).test(wt(e))};var At=function(e,t){return null==e?void 0:e[t]};var Mt=function(e,t){var r=At(e,t);return Et(r)?r:void 0},Dt=Mt(z,"Map"),Pt=Mt(Object,"create");var Yt=function(){this.__data__=Pt?Pt(null):{},this.size=0};var Tt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},It=Object.prototype.hasOwnProperty;var Ct=function(e){var t=this.__data__;if(Pt){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return It.call(t,e)?t[e]:void 0},Lt=Object.prototype.hasOwnProperty;var Ht=function(e){var t=this.__data__;return Pt?void 0!==t[e]:Lt.call(t,e)};var Bt=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Pt&&void 0===t?"__lodash_hash_undefined__":t,this};function zt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}zt.prototype.clear=Yt,zt.prototype.delete=Tt,zt.prototype.get=Ct,zt.prototype.has=Ht,zt.prototype.set=Bt;var Ft=zt;var Rt=function(){this.size=0,this.__data__={hash:new Ft,map:new(Dt||ft),string:new Ft}};var Nt=function(e){var t=T(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ut=function(e,t){var r=e.__data__;return Nt(t)?r["string"==typeof t?"string":"hash"]:r.map};var Wt=function(e){var t=Ut(this,e).delete(e);return this.size-=t?1:0,t};var qt=function(e){return Ut(this,e).get(e)};var Vt=function(e){return Ut(this,e).has(e)};var Xt=function(e,t){var r=Ut(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function $t(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$t.prototype.clear=Rt,$t.prototype.delete=Wt,$t.prototype.get=qt,$t.prototype.has=Vt,$t.prototype.set=Xt;var Gt=$t;var Zt=function(e,t){var r=this.__data__;if(r instanceof ft){var n=r.__data__;if(!Dt||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Gt(n)}return r.set(e,t),this.size=r.size,this};function Kt(e){var t=this.__data__=new ft(e);this.size=t.size}Kt.prototype.clear=lt,Kt.prototype.delete=pt,Kt.prototype.get=dt,Kt.prototype.has=ht,Kt.prototype.set=Zt;var Jt=Kt,Qt=function(){try{var e=Mt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var er=function(e,t,r){"__proto__"==t&&Qt?Qt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},tr=Object.prototype.hasOwnProperty;var rr=function(e,t,r){var n=e[t];tr.call(e,t)&&rt(n,r)&&(void 0!==r||t in e)||er(e,t,r)};var nr=function(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var u=t[i],c=n?n(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),o?er(r,u,c):rr(r,u,c)}return r};var or=function(e,t){return e&&nr(t,Ze(t),e)};var ir=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},ar=Object.prototype.hasOwnProperty;var ur=function(e){if(!I(e))return ir(e);var t=Ue(e),r=[];for(var n in e)("constructor"!=n||!t&&ar.call(e,n))&&r.push(n);return r};var cr=function(e){return Ge(e)?Re(e,!0):ur(e)};var sr=function(e,t){return e&&nr(t,cr(t),e)},fr=L((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?z.Buffer:void 0,i=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}}));var lr=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};var pr=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i};var dr=function(){return[]},vr=Object.prototype.propertyIsEnumerable,hr=Object.getOwnPropertySymbols,gr=hr?function(e){return null==e?[]:(e=Object(e),pr(hr(e),(function(t){return vr.call(e,t)})))}:dr;var mr=function(e,t){return nr(e,gr(e),t)};var yr=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},br=We(Object.getPrototypeOf,Object),wr=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)yr(t,gr(e)),e=br(e);return t}:dr;var xr=function(e,t){return nr(e,wr(e),t)};var jr=function(e,t,r){var n=t(e);return Ae(e)?n:yr(n,r(e))};var _r=function(e){return jr(e,Ze,gr)};var Or=function(e){return jr(e,cr,wr)},kr=Mt(z,"DataView"),Sr=Mt(z,"Promise"),Er=Mt(z,"Set"),Ar=Mt(z,"WeakMap"),Mr="[object Map]",Dr="[object Promise]",Pr="[object Set]",Yr="[object WeakMap]",Tr="[object DataView]",Ir=wt(kr),Cr=wt(Dt),Lr=wt(Sr),Hr=wt(Er),Br=wt(Ar),zr=G;(kr&&zr(new kr(new ArrayBuffer(1)))!=Tr||Dt&&zr(new Dt)!=Mr||Sr&&zr(Sr.resolve())!=Dr||Er&&zr(new Er)!=Pr||Ar&&zr(new Ar)!=Yr)&&(zr=function(e){var t=G(e),r="[object Object]"==t?e.constructor:void 0,n=r?wt(r):"";if(n)switch(n){case Ir:return Tr;case Cr:return Mr;case Lr:return Dr;case Hr:return Pr;case Br:return Yr}return t});var Fr=zr,Rr=Object.prototype.hasOwnProperty;var Nr=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Rr.call(e,"index")&&(r.index=e.index,r.input=e.input),r},Ur=z.Uint8Array;var Wr=function(e){var t=new e.constructor(e.byteLength);return new Ur(t).set(new Ur(e)),t};var qr=function(e,t){var r=t?Wr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},Vr=/\w*$/;var Xr=function(e){var t=new e.constructor(e.source,Vr.exec(e));return t.lastIndex=e.lastIndex,t},$r=F?F.prototype:void 0,Gr=$r?$r.valueOf:void 0;var Zr=function(e){return Gr?Object(Gr.call(e)):{}};var Kr=function(e,t){var r=t?Wr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)};var Jr=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return Wr(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return qr(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Kr(e,r);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return Xr(e);case"[object Set]":return new n;case"[object Symbol]":return Zr(e)}},Qr=Object.create,en=function(){function e(){}return function(t){if(!I(t))return{};if(Qr)return Qr(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var tn=function(e){return"function"!=typeof e.constructor||Ue(e)?{}:en(br(e))};var rn=function(e){return Z(e)&&"[object Map]"==Fr(e)},nn=He&&He.isMap,on=nn?Le(nn):rn;var an=function(e){return Z(e)&&"[object Set]"==Fr(e)},un=He&&He.isSet,cn=un?Le(un):an,sn="[object Arguments]",fn="[object Function]",ln="[object Object]",pn={};pn[sn]=pn["[object Array]"]=pn["[object ArrayBuffer]"]=pn["[object DataView]"]=pn["[object Boolean]"]=pn["[object Date]"]=pn["[object Float32Array]"]=pn["[object Float64Array]"]=pn["[object Int8Array]"]=pn["[object Int16Array]"]=pn["[object Int32Array]"]=pn["[object Map]"]=pn["[object Number]"]=pn[ln]=pn["[object RegExp]"]=pn["[object Set]"]=pn["[object String]"]=pn["[object Symbol]"]=pn["[object Uint8Array]"]=pn["[object Uint8ClampedArray]"]=pn["[object Uint16Array]"]=pn["[object Uint32Array]"]=!0,pn["[object Error]"]=pn[fn]=pn["[object WeakMap]"]=!1;var dn=function e(t,r,n,o,i,a){var u,c=1&r,s=2&r,f=4&r;if(n&&(u=i?n(t,o,i,a):n(t)),void 0!==u)return u;if(!I(t))return t;var l=Ae(t);if(l){if(u=Nr(t),!c)return lr(t,u)}else{var p=Fr(t),d=p==fn||"[object GeneratorFunction]"==p;if(De(t))return fr(t,c);if(p==ln||p==sn||d&&!i){if(u=s||d?{}:tn(t),!c)return s?xr(t,sr(u,t)):mr(t,or(u,t))}else{if(!pn[p])return i?t:{};u=Jr(t,p,c)}}a||(a=new Jt);var v=a.get(t);if(v)return v;a.set(t,u),cn(t)?t.forEach((function(o){u.add(e(o,r,n,o,t,a))})):on(t)&&t.forEach((function(o,i){u.set(i,e(o,r,n,i,t,a))}));var h=l?void 0:(f?s?Or:_r:s?cr:Ze)(t);return we(h||t,(function(o,i){h&&(o=t[i=o]),rr(u,i,e(o,r,n,i,t,a))})),u};var vn=function(e){return dn(e,5)};var hn=function(e){return"string"==typeof e||!Ae(e)&&Z(e)&&"[object String]"==G(e)};var gn=function(e){return function(t){return null==t?void 0:t[e]}},mn=gn("length"),yn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var bn=function(e){return yn.test(e)},wn="[\\ud800-\\udfff]",xn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",jn="\\ud83c[\\udffb-\\udfff]",_n="[^\\ud800-\\udfff]",On="(?:\\ud83c[\\udde6-\\uddff]){2}",kn="[\\ud800-\\udbff][\\udc00-\\udfff]",Sn="(?:"+xn+"|"+jn+")"+"?",En="[\\ufe0e\\ufe0f]?",An=En+Sn+("(?:\\u200d(?:"+[_n,On,kn].join("|")+")"+En+Sn+")*"),Mn="(?:"+[_n+xn+"?",xn,On,kn,wn].join("|")+")",Dn=RegExp(jn+"(?="+jn+")|"+Mn+An,"g");var Pn=function(e){for(var t=Dn.lastIndex=0;Dn.test(e);)++t;return t};var Yn=function(e){return bn(e)?Pn(e):mn(e)};var Tn=function(e){if(null==e)return 0;if(Ge(e))return hn(e)?Yn(e):e.length;var t=Fr(e);return"[object Map]"==t||"[object Set]"==t?e.size:Xe(e).length},In=L((function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var u=new o(n,i||e,a),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],u]:e._events[c].push(u):(e._events[c]=u,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function u(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),u.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},u.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},u.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,o,i,a){var u=r?r+e:e;if(!this._events[u])return!1;var c,s,f=this._events[u],l=arguments.length;if(f.fn){switch(f.once&&this.removeListener(e,f.fn,void 0,!0),l){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,t),!0;case 3:return f.fn.call(f.context,t,n),!0;case 4:return f.fn.call(f.context,t,n,o),!0;case 5:return f.fn.call(f.context,t,n,o,i),!0;case 6:return f.fn.call(f.context,t,n,o,i,a),!0}for(s=1,c=new Array(l-1);s<l;s++)c[s-1]=arguments[s];f.fn.apply(f.context,c)}else{var p,d=f.length;for(s=0;s<d;s++)switch(f[s].once&&this.removeListener(e,f[s].fn,void 0,!0),l){case 1:f[s].fn.call(f[s].context);break;case 2:f[s].fn.call(f[s].context,t);break;case 3:f[s].fn.call(f[s].context,t,n);break;case 4:f[s].fn.call(f[s].context,t,n,o);break;default:if(!c)for(p=1,c=new Array(l-1);p<l;p++)c[p-1]=arguments[p];f[s].fn.apply(f[s].context,c)}}return!0},u.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},u.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},u.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var u=this._events[i];if(u.fn)u.fn!==t||o&&!u.once||n&&u.context!==n||a(this,i);else{for(var c=0,s=[],f=u.length;c<f;c++)(u[c].fn!==t||o&&!u[c].once||n&&u[c].context!==n)&&s.push(u[c]);s.length?this._events[i]=1===s.length?s[0]:s:a(this,i)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u}));function Cn(){return new In}function Ln(e){return"[object Object]"===Object.prototype.toString.call(e)}function Hn(e){if(Ln(e)){for(var t in e)return!0;return!1}return!1}function Bn(e,t){return!!Ln(e)&&(!(!E(t)&&!ce(t))&&t in e)}var zn=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},Fn=F?F.prototype:void 0,Rn=Fn?Fn.toString:void 0;var Nn=function e(t){if("string"==typeof t)return t;if(Ae(t))return zn(t,e)+"";if(K(t))return Rn?Rn.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Un=function(e){return null==e?"":Nn(e)},Wn=z.isFinite,qn=Math.min;var Vn=function(e){var t=Math[e];return function(e,r){if(e=re(e),(r=null==r?0:qn(ie(r),292))&&Wn(e)){var n=(Un(e)+"e").split("e"),o=t(n[0]+"e"+(+n[1]+r));return+((n=(Un(o)+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}},Xn=Vn("round");function $n(e){if(!ce(e))return 0;e=se(e);var t=Xn(e);return"0"===String(t)?0:t}function Gn(e){return!!fe(e)&&$n(e)<0}var Zn=function(e,t,r){for(var n=-1,o=e.length,i=t.length,a={};++n<o;){var u=n<i?t[n]:void 0;r(a,e[n],u)}return a};var Kn=function(e,t){return Zn(e||[],t||[],rr)};function Jn(e){return"[object Array]"===Object.prototype.toString.call(e)}function Qn(e){return"[object Undefined]"===Object.prototype.toString.call(e)}function eo(e){return"[object Null]"===Object.prototype.toString.call(e)}function to(e){if(Ln(e)){for(var t in e)return!1;return!0}return!1}function ro(e){return!(!S(e)||""!==e)}function no(e){return!!Jn(e)&&0===e.length}function oo(e){return!!Qn(e)||(!!eo(e)||(!!to(e)||(!!ro(e)||!!no(e))))}function io(e){return!!Jn(e)&&(0!==e.length&&(1!==e.length||!oo(e[0])))}function ao(e,t){if(!Jn(e))return[];if(!Jn(t))return[];if(Tn(e)!==Tn(t))return[];var r=[];return et(e,(function(n,o){var i=se(e[o])+se(t[o]);r.push(i)})),r}var uo=Math.ceil,co=Math.max;var so=function(e,t,r,n){for(var o=-1,i=co(uo((t-e)/(r||1)),0),a=Array(i);i--;)a[n?i:++o]=e,e+=r;return a};var fo=function(e,t,r){if(!I(r))return!1;var n=T(t);return!!("number"==n?Ge(r)&&Ye(t,r.length):"string"==n&&t in r)&&rt(r[t],e)};var lo=function(e){return function(t,r,n){return n&&"number"!=typeof n&&fo(t,r,n)&&(r=n=void 0),t=oe(t),void 0===r?(r=t,t=0):r=oe(r),n=void 0===n?t<r?1:-1:oe(n),so(t,r,n,e)}}(),po=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vo=/^\w*$/;var ho=function(e,t){if(Ae(e))return!1;var r=T(e);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!K(e))||(vo.test(e)||!po.test(e)||null!=t&&e in Object(t))};function go(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function r(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(go.Cache||Gt),r}go.Cache=Gt;var mo=go;var yo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bo=/\\(\\)?/g,wo=function(e){var t=mo(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(yo,(function(e,r,n,o){t.push(n?o.replace(bo,"$1"):r||e)})),t}));var xo=function(e,t){return Ae(e)?e:ho(e,t)?[e]:wo(Un(e))};var jo=function(e){if("string"==typeof e||K(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var _o=function(e,t){for(var r=0,n=(t=xo(t,e)).length;null!=e&&r<n;)e=e[jo(t[r++])];return r&&r==n?e:void 0};var Oo=function(e,t,r){var n=null==e?void 0:_o(e,t);return void 0===n?r:n};var ko=function(e,t){for(var r=-1,n=t.length,o=Array(n),i=null==e;++r<n;)o[r]=i?void 0:Oo(e,t[r]);return o},So=F?F.isConcatSpreadable:void 0;var Eo=function(e){return Ae(e)||Ee(e)||!!(So&&e&&e[So])};var Ao=function e(t,r,n,o,i){var a=-1,u=t.length;for(n||(n=Eo),i||(i=[]);++a<u;){var c=t[a];r>0&&n(c)?r>1?e(c,r-1,n,o,i):yr(i,c):o||(i[i.length]=c)}return i};var Mo=function(e){return(null==e?0:e.length)?Ao(e,1):[]};var Do=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},Po=Math.max;var Yo=function(e,t,r){return t=Po(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=Po(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=n[o];return u[t]=r(a),Do(e,this,u)}};var To=function(e){return function(){return e}},Io=Qt?function(e,t){return Qt(e,"toString",{configurable:!0,enumerable:!1,value:To(t),writable:!0})}:Je,Co=Date.now;var Lo=function(e){var t=0,r=0;return function(){var n=Co(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Io);var Ho=function(e){return Lo(Yo(e,void 0,Mo),e+"")},Bo=Ho(ko);function zo(e){return!!fe(e)&&$n(e)>=0}function Fo(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!io(e))return[];if(!zo(t))return[];if(t=$n(t),oo(n)){if(t>=e.length)return[];r=Bo(e,t)}else{if(!zo(n))return[];if(n=$n(n),t>=e.length||n>=e.length)return[];var o=lo(t,n+1);r=Bo(e,o)}return r}var Ro=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var No=function(e){return this.__data__.has(e)};function Uo(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Gt;++t<r;)this.add(e[t])}Uo.prototype.add=Uo.prototype.push=Ro,Uo.prototype.has=No;var Wo=Uo;var qo=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var Vo=function(e,t){return e.has(t)};var Xo=function(e,t,r,n,o,i){var a=1&r,u=e.length,c=t.length;if(u!=c&&!(a&&c>u))return!1;var s=i.get(e),f=i.get(t);if(s&&f)return s==t&&f==e;var l=-1,p=!0,d=2&r?new Wo:void 0;for(i.set(e,t),i.set(t,e);++l<u;){var v=e[l],h=t[l];if(n)var g=a?n(h,v,l,t,e,i):n(v,h,l,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(d){if(!qo(t,(function(e,t){if(!Vo(d,t)&&(v===e||o(v,e,r,n,i)))return d.push(t)}))){p=!1;break}}else if(v!==h&&!o(v,h,r,n,i)){p=!1;break}}return i.delete(e),i.delete(t),p};var $o=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};var Go=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Zo=F?F.prototype:void 0,Ko=Zo?Zo.valueOf:void 0;var Jo=function(e,t,r,n,o,i,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Ur(e),new Ur(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return rt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var u=$o;case"[object Set]":var c=1&n;if(u||(u=Go),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;n|=2,a.set(e,t);var f=Xo(u(e),u(t),n,o,i,a);return a.delete(e),f;case"[object Symbol]":if(Ko)return Ko.call(e)==Ko.call(t)}return!1},Qo=Object.prototype.hasOwnProperty;var ei=function(e,t,r,n,o,i){var a=1&r,u=_r(e),c=u.length;if(c!=_r(t).length&&!a)return!1;for(var s=c;s--;){var f=u[s];if(!(a?f in t:Qo.call(t,f)))return!1}var l=i.get(e),p=i.get(t);if(l&&p)return l==t&&p==e;var d=!0;i.set(e,t),i.set(t,e);for(var v=a;++s<c;){var h=e[f=u[s]],g=t[f];if(n)var m=a?n(g,h,f,t,e,i):n(h,g,f,e,t,i);if(!(void 0===m?h===g||o(h,g,r,n,i):m)){d=!1;break}v||(v="constructor"==f)}if(d&&!v){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(d=!1)}return i.delete(e),i.delete(t),d},ti="[object Arguments]",ri="[object Array]",ni="[object Object]",oi=Object.prototype.hasOwnProperty;var ii=function(e,t,r,n,o,i){var a=Ae(e),u=Ae(t),c=a?ri:Fr(e),s=u?ri:Fr(t),f=(c=c==ti?ni:c)==ni,l=(s=s==ti?ni:s)==ni,p=c==s;if(p&&De(e)){if(!De(t))return!1;a=!0,f=!1}if(p&&!f)return i||(i=new Jt),a||ze(e)?Xo(e,t,r,n,o,i):Jo(e,t,c,r,n,o,i);if(!(1&r)){var d=f&&oi.call(e,"__wrapped__"),v=l&&oi.call(t,"__wrapped__");if(d||v){var h=d?e.value():e,g=v?t.value():t;return i||(i=new Jt),o(h,g,r,n,i)}}return!!p&&(i||(i=new Jt),ei(e,t,r,n,o,i))};var ai=function e(t,r,n,o,i){return t===r||(null==t||null==r||!Z(t)&&!Z(r)?t!=t&&r!=r:ii(t,r,n,o,e,i))};var ui=function(e,t,r,n){var o=r.length,i=o,a=!n;if(null==e)return!i;for(e=Object(e);o--;){var u=r[o];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<i;){var c=(u=r[o])[0],s=e[c],f=u[1];if(a&&u[2]){if(void 0===s&&!(c in e))return!1}else{var l=new Jt;if(n)var p=n(s,f,c,e,t,l);if(!(void 0===p?ai(f,s,3,n,l):p))return!1}}return!0};var ci=function(e){return e==e&&!I(e)};var si=function(e){for(var t=Ze(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,ci(o)]}return t};var fi=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}};var li=function(e){var t=si(e);return 1==t.length&&t[0][2]?fi(t[0][0],t[0][1]):function(r){return r===e||ui(r,e,t)}};var pi=function(e,t){return null!=e&&t in Object(e)};var di=function(e,t,r){for(var n=-1,o=(t=xo(t,e)).length,i=!1;++n<o;){var a=jo(t[n]);if(!(i=null!=e&&r(e,a)))break;e=e[a]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&Te(o)&&Ye(a,o)&&(Ae(e)||Ee(e))};var vi=function(e,t){return null!=e&&di(e,t,pi)};var hi=function(e,t){return ho(e)&&ci(t)?fi(jo(e),t):function(r){var n=Oo(r,e);return void 0===n&&n===t?vi(r,e):ai(t,n,3)}};var gi=function(e){return function(t){return _o(t,e)}};var mi=function(e){return ho(e)?gn(jo(e)):gi(e)};var yi=function(e){return"function"==typeof e?e:null==e?Je:"object"==T(e)?Ae(e)?hi(e[0],e[1]):li(e):mi(e)};var bi=function(e,t){var r=-1,n=Ge(e)?Array(e.length):[];return Ke(e,(function(e,o,i){n[++r]=t(e,o,i)})),n};var wi=function(e,t){return(Ae(e)?zn:bi)(e,yi(t))};var xi=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i};var ji=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:xi(e,t,r)};var _i=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1};var Oi=function(e){return e!=e};var ki=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1};var Si=function(e,t,r){return t==t?ki(e,t,r):_i(e,Oi,r)};var Ei=function(e,t){for(var r=e.length;r--&&Si(t,e[r],0)>-1;);return r};var Ai=function(e,t){for(var r=-1,n=e.length;++r<n&&Si(t,e[r],0)>-1;);return r};var Mi=function(e){return e.split("")},Di="[\\ud800-\\udfff]",Pi="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Yi="\\ud83c[\\udffb-\\udfff]",Ti="[^\\ud800-\\udfff]",Ii="(?:\\ud83c[\\udde6-\\uddff]){2}",Ci="[\\ud800-\\udbff][\\udc00-\\udfff]",Li="(?:"+Pi+"|"+Yi+")"+"?",Hi="[\\ufe0e\\ufe0f]?",Bi=Hi+Li+("(?:\\u200d(?:"+[Ti,Ii,Ci].join("|")+")"+Hi+Li+")*"),zi="(?:"+[Ti+Pi+"?",Pi,Ii,Ci,Di].join("|")+")",Fi=RegExp(Yi+"(?="+Yi+")|"+zi+Bi,"g");var Ri=function(e){return e.match(Fi)||[]};var Ni=function(e){return bn(e)?Ri(e):Mi(e)};var Ui=function(e,t,r){if((e=Un(e))&&(r||void 0===t))return Y(e);if(!e||!(t=Nn(t)))return e;var n=Ni(e),o=Ni(t),i=Ai(n,o),a=Ei(n,o)+1;return ji(n,i,a).join("")};function Wi(e,t){return E(e)&&E(t)?e.split(t):[]}function qi(e,t){if(!E(e))return[];if(!E(t))return[];var r=Wi(e,t),n=[];return et(r,(function(e){E(e)&&n.push(e)})),n}function Vi(e){return!!fe(e)&&$n(e)>0}function Xi(e,t){return E(e)&&Vi(t)?e.substr(0,t):""}function $i(e,t){if(!E(e))return"";if(!Vi(t))return"";var r=e.length-t;return r<0&&(r=0),e.substr(r,t)}function Gi(e,t){return E(e)&&Vi(t)?$i(e,e.length-t):""}var Zi=function(e,t){return ai(e,t)};var Ki=function(e){return"number"==typeof e||Z(e)&&"[object Number]"==G(e)};function Ji(e,t){function r(e){return Jn(e)?e:[e]}if(oo(e))return!1;if(0===(e=r(e)).length)return!1;if(oo(e))return!1;if(0===(t=r(t)).length)return!1;for(var n=0;n<e.length;n++)for(var o=0;o<t.length;o++)if(Zi(e[n],t[o]))return!0;return!1}function Qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ea(e,t){if(e){if("string"==typeof e)return Qi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qi(e,t):void 0}}function ta(e){return function(e){if(Array.isArray(e))return Qi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ea(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ra(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}var na=function(e){return Z(e)&&"[object RegExp]"==G(e)},oa=He&&He.isRegExp,ia=oa?Le(oa):na;var aa=function(e,t,r){return r&&"number"!=typeof r&&fo(e,t,r)&&(t=r=void 0),(r=void 0===r?4294967295:r>>>0)?(e=Un(e))&&("string"==typeof t||null!=t&&!ia(t))&&!(t=Nn(t))&&bn(e)?ji(Ni(e),0,r):e.split(t,r):[]};var ua=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e};var ca=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,o=e==e,i=K(e),a=void 0!==t,u=null===t,c=t==t,s=K(t);if(!u&&!s&&!i&&e>t||i&&a&&c&&!u&&!s||n&&a&&c||!r&&c||!o)return 1;if(!n&&!i&&!s&&e<t||s&&r&&o&&!n&&!i||u&&r&&o||!a&&o||!c)return-1}return 0};var sa=function(e,t,r){for(var n=-1,o=e.criteria,i=t.criteria,a=o.length,u=r.length;++n<a;){var c=ca(o[n],i[n]);if(c)return n>=u?c:c*("desc"==r[n]?-1:1)}return e.index-t.index};var fa=function(e,t,r){t=t.length?zn(t,(function(e){return Ae(e)?function(t){return _o(t,1===e.length?e[0]:e)}:e})):[Je];var n=-1;t=zn(t,Le(yi));var o=bi(e,(function(e,r,o){return{criteria:zn(t,(function(t){return t(e)})),index:++n,value:e}}));return ua(o,(function(e,t){return sa(e,t,r)}))};var la=function(e,t){return Lo(Yo(e,t,Je),e+"")},pa=la((function(e,t){if(null==e)return[];var r=t.length;return r>1&&fo(e,t[0],t[1])?t=[]:r>2&&fo(t[0],t[1],t[2])&&(t=[t[0]]),fa(e,Ao(t,1),[])}));function da(e){return!!E(e)&&!(null===e.match(/^.*[0-9]+.*$/))}function va(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return E(e)&&zo(t)?(r=Vi(r)?$n(r):1,e.substring(t,t+r)):""}function ha(e){var t=0,r=0,n=0,o=Tn(e);et(e,(function(e){ce(e)?t+=1:S(e)?r+=1:Ln(e)&&(n+=1)}));var i="";return t===o?i="num":r===o?i="str":n===o&&(i="obj"),i}function ga(e,t){var r=[];if("num"!==t&&"str"!==t)throw new Error("invalid type");if("num"===t)r=wi(e,(function(e,t){return{key:t,payload:e,value:se(e)}}));else if("str"===t){var n=Oo(e,0,""),o=!1,i=-1;if(da(n)){var a=aa(n,"");et(a,(function(t,r){var n=!0;if(et(e,(function(e,o){if(va(e,r)!==t)return n=!1,!1})),!n)return!1;o=!0,i=r+1}))}r=wi(e,o?function(e,t){var r=Gi(e,i);return ce(r)&&(r=se(r)),{key:t,payload:e,value:r}}:function(e,t){return{key:t,payload:e,value:e}})}return r}function ma(e,t){var r=pa(e,"value");return wi(r,t?"key":"payload")}function ya(e){return E(e)?pe.parse(e).toString(he):""}function ba(e){if(!E(e))return{};var t={};try{t=JSON.parse(e)}catch(e){t={}}return t}function wa(e){if(!S(e))return new Uint8Array;for(var t=pe.parse(e),r=t.words,n=t.sigBytes,o=new Uint8Array(n),i=0;i<n;i++){var a=r[i>>>2]>>>24-i%4*8&255;o[i]=a}return o}function xa(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function ja(e){return xa(e)?new Uint16Array(e):new Uint16Array}function _a(e){return S(e)?ja(wa(e)):new Uint16Array}function Oa(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"anyone";if(!E(e))return!1;if("anyone"!==r&&"all"!==r)return!1;if(S(t)){if(!E(t))return!1;t=[t]}if(!io(t))return!1;var n=!1;if(et(t,(function(e){E(e)||(n=!0)})),n)return!1;function o(e,t){return e.indexOf(t)}var i=0;return et(t,(function(t){-1!==o(e,t)&&i++})),"anyone"===r?i>0:"all"===r&&i===t.length}function ka(){var e,t,r=new Promise((function(){e=arguments[0],t=arguments[1]}));return r.resolve=e,r.reject=t,r}function Sa(){return"undefined"!=typeof window&&void 0!==window.document}function Ea(e){if(!Sa())return Promise.reject("no window");try{return function(e){return e.arrayBuffer()}(e)}catch(t){return function(e){var t=ka(),r=new FileReader;return r.onload=function(){var e=r.result;t.resolve(e)},r.onerror=function(e){t.reject(e)},r.readAsArrayBuffer(e),t}(e)}}function Aa(e){var t=ka(),r=new FileReader;return r.onload=function(){t.resolve(r.result)},r.onerror=function(e){t.reject(e)},r.readAsDataURL(e),t}function Ma(e){var t=ka();return Ea(e).then((function(e){var r=new Uint8Array(e);t.resolve(r)})).catch((function(e){t.reject(e)})),t}function Da(e){var t=wi(e,(function(e){return Aa(e)}));return Promise.all(t)}function Pa(e){var t=wi(e,(function(e){return Ma(e)}));return Promise.all(t)}function Ya(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Qn(e))return"";var r="";try{r=t?JSON.stringify(e,null,2):JSON.stringify(e)}catch(e){r=""}return r}function Ta(e){var t=document.createElement("span");return t.appendChild(document.createTextNode(e)),t.innerHTML}function Ia(e,t){var r=new Blob([e],{type:t});try{var n=window.URL.createObjectURL(r);window.open(n)}catch(e){console.log("window.URL.createObjectURL is not support for IE11",e)}}function Ca(e){return"[object Blob]"===Object.prototype.toString.call(e)}function La(e){if(!E(e))return new Uint8Array;for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r}function Ha(e,t,r,n,o){if(!xa(e))return null;if(!fe(t))return null;if(!ye(r))return null;if(!fe(n))return null;if(!fe(o))return null;var i,a,u=8*o-n-1,c=(1<<u)-1,s=c>>1,f=-7,l=r?0:o-1,p=r?1:-1,d=e[t+l];for(l+=p,i=d&(1<<-f)-1,d>>=-f,f+=u;f>0;i=256*i+e[t+l],l+=p,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+e[t+l],l+=p,f-=8);if(0===i)i=1-s;else{if(i===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=s}return(d?-1:1)*a*Math.pow(2,i-n)}function Ba(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:52,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:8;return Ha(e,t,r,n,o)}function za(e,t,r,n,o,i){if(!ce(e))return null;if(!xa(t))return null;if(!fe(r))return null;if(!ye(n))return null;if(!fe(o))return null;if(!fe(i))return null;var a,u,c;e=se(e);var s=8*i-o-1,f=(1<<s)-1,l=f>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?i-1:0,v=n?-1:1,h=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+l>=1?p/c:p*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=f?(u=0,a=f):a+l>=1?(u=(e*c-1)*Math.pow(2,o),a+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[r+d]=255&u,d+=v,u/=256,o-=8);for(a=a<<o|u,s+=o;s>0;t[r+d]=255&a,d+=v,a/=256,s-=8);return t[r+d-v]|=128*h,null}function Fa(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:52,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:8;return za(e,t,r,n,o,i)}function Ra(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function Na(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ra(i,n,o,a,u,"next",e)}function u(e){Ra(i,n,o,a,u,"throw",e)}a(void 0)}))}}var Ua=L((function(e){var t=function(e){var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new A(n||[]);return i._invoke=function(e,t,r){var n=l;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return D()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var c=f(e,t,r);if("normal"===c.type){if(n=r.done?v:p,c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=v,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var l="suspendedStart",p="suspendedYield",d="executing",v="completed",h={};function g(){}function m(){}function y(){}var b={};b[i]=function(){return this};var w=Object.getPrototypeOf,x=w&&w(w(M([])));x&&x!==r&&n.call(x,i)&&(b=x);var j=y.prototype=g.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,u){var c=f(e[o],e,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"===T(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function k(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=f(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,h;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function M(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:D}}function D(){return{value:t,done:!0}}return m.prototype=j.constructor=y,y.constructor=m,m.displayName=c(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,u,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},_(O.prototype),O.prototype[a]=function(){return this},e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(j),c(j,u,"Generator"),j[i]=function(){return this},j.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=M,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}));function Wa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=ka();if(!ra(e))return r.reject("waitfunction需輸入函數f"),r;if(!0===e())return r.resolve(),r;var n=Oo(t,"attemptNum",null);Vi(n)||(n=200);var o=Oo(t,"timeInterval",null);Vi(o)||(o=1e3);var i=0,a=setInterval((function(){i+=1,!0===e()&&(clearInterval(a),r.resolve()),i>n&&(clearInterval(a),r.resolve())}),o);return r}var qa=function(e){return Un(e).toLowerCase()};function Va(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!ce(e))return"";if(!zo(t))return"";e=se(e);var r=Xn(e,t).toFixed(t);return r}function Xa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $a=function(e){return Un(e).toUpperCase()};function Ga(e,t,r){if(!E(e))return"";if(!E(t))return"";if(!S(r))return"";var n=new RegExp(t,"g");return String(e).replace(n,r)}function Za(e){return E(e)||ce(e)?String(e):""}var Ka={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Ja(e){return eu(e,1)}function Qa(e){return eu(e,360)}function eu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e.indexOf("%")>=0){if(!ce(e=Ga(e,"%","")))throw new Error("invalid color: value is not number");e=se(e)/100}else{if(!ce(e))throw new Error("invalid color: value is not number");e=se(e)/t}if(e>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function tu(e){if(!ce(e))throw new Error("invalid color: value is not number");if((e=se(e))>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function ru(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgba";if(!Jn(e))throw new Error("invalid colors array");var n=Oo(e,0,0),o=Oo(e,1,0),i=Oo(e,2,0),a=Oo(e,3,1);if(r=r.split(""),4!==Tn(r))throw new Error("tar.length !== 4");var u=Oo(r,0),c=Oo(r,1),s=Oo(r,2),f=Oo(r,3);return Xa(t={},u,n),Xa(t,c,o),Xa(t,s,i),Xa(t,f,a),t}function nu(e){e=Gi(e,1);var t=Tn(e);if(2===t)e="".concat(e).concat(e).concat(e,"ff");else if(3===t){var r=va(e,0,1),n=va(e,1,1),o=va(e,2,1);e="".concat(r).concat(r).concat(n).concat(n).concat(o).concat(o,"ff")}else if(6===t)e="".concat(e,"ff");else if(8!==t)throw new Error("invalid hex color");function i(e){if(2!==Tn(e))throw new Error("hex.length of color is not equal to 2");if(!ce(e=parseInt(e,16)))throw new Error("invalid hex of color");return(e=se(e))/255}return{r:i(va(e,0,2)),g:i(va(e,2,2)),b:i(va(e,4,2)),a:i(va(e,6,2))}}function ou(e){return e=ru(e=wi(e,(function(e,t){return t<=2?eu(e,255):3===t?tu(e):null})),"rgba")}function iu(e){return e=du(e=ru(e=wi(e,(function(e,t){return 0===t?Qa(e):1===t||2===t?Ja(e):3===t?tu(e):null})),"hsla"))}function au(e){return e=vu(e=ru(e=wi(e,(function(e,t){return 0===t?Qa(e):1===t||2===t?Ja(e):3===t?tu(e):null})),"hsva"))}function uu(e){if("transparent"===e)return{r:0,g:0,b:0,a:0};if(function(e){return Bn(Ka,e)}(e))return nu(e="#".concat(Ka[e]));if(function(e){return"#"===Xi(e,1)&&(!!/[0-9A-Fa-f]{2}/g.test(e)||(!!/[0-9A-Fa-f]{3}/g.test(e)||(!!/[0-9A-Fa-f]{6}/g.test(e)||!!/[0-9A-Fa-f]{8}/g.test(e))))}(e))return nu(e);if(function(e){return"rgb"===Xi(e,3)||"rgba"===Xi(e,4)}(e))return function(e){return e=Ga(e,"rgba",""),e=Ga(e,"rgb",""),ou(qi(e=Ga(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsl"===Xi(e,3)||"hsla"===Xi(e,4)}(e))return function(e){return e=Ga(e,"hsla",""),e=Ga(e,"hsl",""),iu(qi(e=Ga(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsv"===Xi(e,3)||"hsva"===Xi(e,4)}(e))return function(e){return e=Ga(e,"hsva",""),e=Ga(e,"hsv",""),au(qi(e=Ga(e=e.replace(/[()]/g,""),","," ")," "))}(e);throw new Error("format of color string is not hex-color, name-color, rgba, hsla, hsva")}function cu(e,t){return!!Bn(e,t=qa(t))||!!Bn(e,t=$a(t))}function su(e,t,r){var n;return null!==(n=Oo(e,t,null))?n:(t=$a(t),null!==(n=Oo(e,t,null))?n:r)}function fu(e){if(function(e){var t=cu(e,"r"),r=cu(e,"g"),n=cu(e,"b");return t&&r&&n}(e))return function(e){var t=[su(e,"r",null),su(e,"g",null),su(e,"b",null),su(e,"a",1)];return ou(t=wi(t,Za))}(e);if(function(e){var t=cu(e,"h"),r=cu(e,"s"),n=cu(e,"l");return t&&r&&n}(e))return function(e){var t=[su(e,"h",null),su(e,"s",null),su(e,"l",null),su(e,"a",1)];return iu(t=wi(t,Za))}(e);if(function(e){var t=cu(e,"h"),r=cu(e,"s"),n=cu(e,"v");return t&&r&&n}(e))return function(e){var t=[su(e,"h",null),su(e,"s",null),su(e,"v",null),su(e,"a",1)];return au(t=wi(t,Za))}(e);throw new Error("color object is not rgba, hsla, hsva")}function lu(e){var t,r,n=e.r,o=e.g,i=e.b,a=Math.max(n,o,i),u=Math.min(n,o,i),c=(a+u)/2;if(a===u)t=r=0;else{var s=a-u;switch(r=c>.5?s/(2-a-u):s/(a+u),a){case n:t=(o-i)/s+(o<i?6:0);break;case o:t=(i-n)/s+2;break;case i:t=(n-o)/s+4}t/=6}return{h:t,s:r,l:c,a:e.a}}function pu(e){var t,r,n=e.r,o=e.g,i=e.b,a=Math.max(n,o,i),u=Math.min(n,o,i),c=a,s=a-u;if(r=0===a?0:s/a,a===u)t=0;else{switch(a){case n:t=(o-i)/s+(o<i?6:0);break;case o:t=(i-n)/s+2;break;case i:t=(n-o)/s+4}t/=6}return{h:t,s:r,v:c,a:e.a}}function du(e){var t,r,n,o=e.h,i=e.s,a=e.l;function u(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(0===i)t=r=n=a;else{var c=a<.5?a*(1+i):a+i-a*i,s=2*a-c;t=u(s,c,o+1/3),r=u(s,c,o),n=u(s,c,o-1/3)}return{r:t,g:r,b:n,a:e.a}}function vu(e){var t,r,n,o=e.h,i=e.s,a=e.v,u=Math.floor(6*o),c=6*o-u,s=a*(1-i),f=a*(1-c*i),l=a*(1-(1-c)*i);switch(u%6){case 0:t=a,r=l,n=s;break;case 1:t=f,r=a,n=s;break;case 2:t=s,r=a,n=l;break;case 3:t=s,r=f,n=a;break;case 4:t=l,r=s,n=a;break;case 5:t=a,r=s,n=f}return{r:t,g:r,b:n,a:e.a}}function hu(e){var t=Math.round(255*e).toString(16);if(1===Tn(t))return"0".concat(t);if(2===Tn(t))return t;throw new Error("invalid value")}function gu(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.r,n=e.g,o=e.b,i=e.a,a="".concat(hu(r)).concat(hu(n)).concat(hu(o));return t&&(a="".concat(a).concat(hu(i))),a}function mu(e){return Math.min(1,Math.max(0,e))}function yu(e,t){if(!E(t))throw new Error("fmtOutput is not string");if(!Zu[t])throw console.log("fmtOutput must be [".concat(Ze(Zu),"]")),new Error("invalid fmtOutput");return e=Zu[t](e)}function bu(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(t<0||t>1)throw new Error("amount < 0 or > 1");var n=lu(e);n.h+=t,n.h=n.h%1;var o=du(n);return yu(o,r)}function wu(e){return"".concat(Xn(100*e,1),"%")}function xu(e){return Xn(e,0)}function ju(e){return Xn(e,3)}function _u(e){return{r:xu(255*e.r),g:xu(255*e.g),b:xu(255*e.b)}}function Ou(e){return"rgb(".concat(xu(255*e.r),", ").concat(xu(255*e.g),", ").concat(xu(255*e.b),")")}function ku(e){return{r:xu(255*e.r),g:xu(255*e.g),b:xu(255*e.b),a:ju(e.a)}}function Su(e){return"rgba(".concat(xu(255*e.r),", ").concat(xu(255*e.g),", ").concat(xu(255*e.b),", ").concat(ju(e.a),")")}function Eu(e){var t=lu(e);return{h:xu(360*t.h),s:ju(t.s),l:ju(t.l)}}function Au(e){var t=lu(e);return"hsl(".concat(xu(360*t.h),", ").concat(ju(t.s),", ").concat(ju(t.l),")")}function Mu(e){var t=lu(e);return{h:xu(360*t.h),s:ju(t.s),l:ju(t.l),a:ju(t.a)}}function Du(e){var t=lu(e);return"hsla(".concat(xu(360*t.h),", ").concat(ju(t.s),", ").concat(ju(t.l),", ").concat(ju(t.a),")")}function Pu(e){var t=pu(e);return{h:xu(360*t.h),s:ju(t.s),v:ju(t.v)}}function Yu(e){var t=pu(e);return"hsv(".concat(xu(360*t.h),", ").concat(ju(t.s),", ").concat(ju(t.v),")")}function Tu(e){var t=pu(e);return{h:xu(360*t.h),s:ju(t.s),v:ju(t.v),a:ju(t.a)}}function Iu(e){var t=pu(e);return"hsva(".concat(xu(360*t.h),", ").concat(ju(t.s),", ").concat(ju(t.v),", ").concat(ju(t.a),")")}function Cu(e){return{r:wu(e.r),g:wu(e.g),b:wu(e.b)}}function Lu(e){return"rgb(".concat(wu(e.r),", ").concat(wu(e.g),", ").concat(wu(e.b),")")}function Hu(e){return{r:wu(e.r),g:wu(e.g),b:wu(e.b),a:ju(e.a)}}function Bu(e){return"rgba(".concat(wu(e.r),", ").concat(wu(e.g),", ").concat(wu(e.b),", ").concat(ju(e.a),")")}function zu(e){var t=lu(e);return{h:xu(360*t.h),s:wu(t.s),l:wu(t.l)}}function Fu(e){var t=lu(e);return"hsl(".concat(xu(360*t.h),", ").concat(wu(t.s),", ").concat(wu(t.l),")")}function Ru(e){var t=lu(e);return{h:xu(360*t.h),s:wu(t.s),l:wu(t.l),a:ju(t.a)}}function Nu(e){var t=lu(e);return"hsla(".concat(xu(360*t.h),", ").concat(wu(t.s),", ").concat(wu(t.l),", ").concat(ju(t.a),")")}function Uu(e){var t=pu(e);return{h:xu(360*t.h),s:wu(t.s),v:wu(t.v)}}function Wu(e){var t=pu(e);return"hsv(".concat(xu(360*t.h),", ").concat(wu(t.s),", ").concat(wu(t.v),")")}function qu(e){var t=pu(e);return{h:xu(360*t.h),s:wu(t.s),v:wu(t.v),a:ju(t.a)}}function Vu(e){var t=pu(e);return"hsva(".concat(xu(360*t.h),", ").concat(wu(t.s),", ").concat(wu(t.v),", ").concat(ju(t.a),")")}function Xu(e){var t=function(e){return gu(e,!1)}(e);return"#".concat(t)}function $u(e){var t=gu(e);return"#".concat(t)}function Gu(e){var t=null,r=null,n=null;if(E(e))t=qa(Ui(e));else{if(!Hn(e))throw console.log("color=",e),new Error("color is not string or object");r=e}if(null!==t)try{n=uu(t)}catch(e){throw console.log(e),new Error("can not parse color: ".concat(t))}else if(null!==r)try{n=fu(r)}catch(e){throw console.log(e),new Error("can not parse color: ".concat(JSON.stringify(r)))}return n}var Zu={toRgb:_u,toRgbString:Ou,toRgba:ku,toRgbaString:Su,toHsl:Eu,toHslString:Au,toHsla:Mu,toHslaString:Du,toHsv:Pu,toHsvString:Yu,toHsva:Tu,toHsvaString:Iu,toRgbP:Cu,toRgbPString:Lu,toRgbaP:Hu,toRgbaPString:Bu,toHslP:zu,toHslPString:Fu,toHslaP:Ru,toHslaPString:Nu,toHsvP:Uu,toHsvPString:Wu,toHsvaP:qu,toHsvaPString:Vu,toHexString:Xu,toHex8String:$u},Ku={toRgb:function(e){return _u(Gu(e))},toRgbString:function(e){return Ou(Gu(e))},toRgba:function(e){return ku(Gu(e))},toRgbaString:function(e){return Su(Gu(e))},toHsl:function(e){return Eu(Gu(e))},toHslString:function(e){return Au(Gu(e))},toHsla:function(e){return Mu(Gu(e))},toHslaString:function(e){return Du(Gu(e))},toHsv:function(e){return Pu(Gu(e))},toHsvString:function(e){return Yu(Gu(e))},toHsva:function(e){return Tu(Gu(e))},toHsvaString:function(e){return Iu(Gu(e))},toRgbP:function(e){return Cu(Gu(e))},toRgbPString:function(e){return Lu(Gu(e))},toRgbaP:function(e){return Hu(Gu(e))},toRgbaPString:function(e){return Bu(Gu(e))},toHslP:function(e){return zu(Gu(e))},toHslPString:function(e){return Fu(Gu(e))},toHslaP:function(e){return Ru(Gu(e))},toHslaPString:function(e){return Nu(Gu(e))},toHsvP:function(e){return Uu(Gu(e))},toHsvPString:function(e){return Wu(Gu(e))},toHsvaP:function(e){return qu(Gu(e))},toHsvaPString:function(e){return Vu(Gu(e))},toHexString:function(e){return Xu(Gu(e))},toHex8String:function(e){return $u(Gu(e))},modSaturate:function(e,t,r){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(t<0||t>1)throw new Error("amount < 0 or > 1");var n=lu(e);return n.s+=t,n.s=mu(n.s),yu(du(n),r)}(Gu(e),t,r)},modGrey:function(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"toRgbString",r=lu(e);return r.s=0,yu(du(r),t)}(Gu(e),t)},modLighten:function(e,t,r){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(t<0||t>1)throw new Error("amount < 0 or > 1");var n=lu(e);return n.l+=t,n.l=mu(n.l),yu(du(n),r)}(Gu(e),t,r)},modBrighten:function(e,t,r){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(t<0||t>1)throw new Error("amount < 0 or > 1");return e.r+=t,e.r=mu(e.r),e.g+=t,e.g=mu(e.g),e.b+=t,e.b=mu(e.b),yu(e,r)}(Gu(e),t,r)},modHue:function(e,t,r){return bu(Gu(e),t,r)},modComplement:function(e,t){return function(e){return bu(e,.5,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"toRgbString")}(Gu(e),t)},spreadHue:function(e,t,r){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(!fe(t))throw new Error("num is not integer");if((t=$n(t))<=1)return[e];for(var n=lu(e),o=1/t,i=[],a=0;a<t;a++)i.push(yu(du(n),r)),n.h+=o,n.h=n.h%1;return i}(Gu(e),t,r)},spreadMonochromatic:function(e,t,r){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(!fe(t))throw new Error("num is not integer");if((t=$n(t))<=1)return[e];var n=pu(e);n.s=1,n.l=1;for(var o=1/t,i=[],a=0;a<t;a++)i.push(yu(vu(n),r)),n.h-=o,n.l-=o;return i}(Gu(e),t,r)},mix:function(e,t,r,n,o){return function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"toRgbString";if(t<0||t>1)throw new Error("w1 < 0 or > 1");if(n<0||n>1)throw new Error("w1 < 0 or > 1");return yu({r:e.r*t+r.r*n,g:e.g*t+r.g*n,b:e.b*t+r.b*n,a:e.a*t+r.a*n},o)}(Gu(e),t,Gu(r),n,o)},getBrightness:function(e){return function(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");return(299*e.r+587*e.g+114*e.b)/1e3}(Gu(e))},getLuminance:function(e){return function(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");var t=e.r,r=e.g,n=e.b;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))}(Gu(e))}};var Ju=function(e,t,r,n){if(!I(e))return e;for(var o=-1,i=(t=xo(t,e)).length,a=i-1,u=e;null!=u&&++o<i;){var c=jo(t[o]),s=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var f=u[c];void 0===(s=n?n(f,c,u):void 0)&&(s=I(f)?f:Ye(t[o+1])?[]:{})}rr(u,c,s),u=u[c]}return e};var Qu=function(e,t,r){return null==e?e:Ju(e,t,r)};var ec=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var tc=function(e,t){return t.length<2?e:_o(e,xi(t,0,-1))};var rc=function(e,t){return t=xo(t,e),null==(e=tc(e,t))||delete e[jo(ec(t))]},nc=Function.prototype,oc=Object.prototype,ic=nc.toString,ac=oc.hasOwnProperty,uc=ic.call(Object);var cc=function(e){if(!Z(e)||"[object Object]"!=G(e))return!1;var t=br(e);if(null===t)return!0;var r=ac.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ic.call(r)==uc};var sc=function(e){return cc(e)?void 0:e},fc=Ho((function(e,t){var r={};if(null==e)return r;var n=!1;t=zn(t,(function(t){return t=xo(t,e),n||(n=t.length>1),t})),nr(e,Or(e),r),n&&(r=dn(r,7,sc));for(var o=t.length;o--;)rc(r,t[o]);return r}));function lc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lc(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var dc=function(e){return Z(e)&&1===e.nodeType&&!cc(e)};function vc(e){return dc(e)}function hc(e){if(!vc(e))return"invalid element";var t=!1;try{t=document.activeElement===e}catch(e){}return t}function gc(e){return ce(e)?(e=se(e),Math.cos(e*Math.PI/180)):null}function mc(e){return ce(e)?(e=se(e),Math.tan(e*Math.PI/180)):null}function yc(e){return ce(e)?(e=se(e),Math.sin(e*Math.PI/180)):null}function bc(e){if(!E(e))return!1;var t="YYYY-MM-DD";return e===d.default(e,t).format(t)}function wc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;ce(e)||(e=10);var t=ka();return setTimeout((function(){t.resolve()}),e),t}var xc=function(e,t){var r=[];return Ke(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r};var jc=function(e,t){return(Ae(e)?pr:xc)(e,yi(t))};function _c(){return"undefined"!=typeof self?self:Sa()?window:"undefined"!=typeof global?global:null}var Oc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),kc=Oc.length;function Sc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t=[];e=Vi(e)?$n(e):32;for(var r=0;r<e;r++)t[r]=Oc[0|Math.random()*kc];var n=t.join("");return n}function Ec(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vc(e)){var r=Oo(t,"duration",500);(r=se(r))<0&&(r=1e3);var n=Oo(t,"delay",0);(n=se(n))<0&&(n=0);var o=Oo(t,"opacityIni",0);o=se(o),o=Math.min(Math.max(o,0),1),ce(e.style.opacity)&&(o=se(e.style.opacity));var i=10,a=i/r,u="tag-".concat(Sc());e.setAttribute("dom-fade-tag",u),setTimeout((function(){var t=setInterval((function(){e.getAttribute("dom-fade-tag")!==u&&clearInterval(t),e.style.opacity=o,o>=1&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),(o+=a)>1&&(o=1)}),i)}),n)}}function Ac(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vc(e)){var r=Oo(t,"duration",500);(r=se(r))<0&&(r=1e3);var n=Oo(t,"delay",0);(n=se(n))<0&&(n=0);var o=Oo(t,"opacityIni",1);o=se(o),o=Math.min(Math.max(o,0),1),ce(e.style.opacity)&&(o=se(e.style.opacity));var i=10,a=i/r,u="tag-".concat(Sc());e.setAttribute("dom-fade-tag",u),setTimeout((function(){var t=setInterval((function(){e.getAttribute("dom-fade-tag")!==u&&clearInterval(t),e.style.opacity=o,o<=0&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),(o-=a)<0&&(o=0)}),i)}),n)}}var Mc='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 512.001 512.001" style="width:12px; height:12px; enable-background:new 0 0 512.001 512.001;" xml:space="preserve"><g><g><path d="M284.286,256.002L506.143,34.144c7.811-7.811,7.811-20.475,0-28.285c-7.811-7.81-20.475-7.811-28.285,0L256,227.717L34.143,5.859c-7.811-7.811-20.475-7.811-28.285,0c-7.81,7.811-7.811,20.475,0,28.285l221.857,221.857L5.858,477.859c-7.811,7.811-7.811,20.475,0,28.285c3.905,3.905,9.024,5.857,14.143,5.857c5.119,0,10.237-1.952,14.143-5.857L256,284.287l221.857,221.857c3.905,3.905,9.024,5.857,14.143,5.857s10.237-1.952,14.143-5.857c7.811-7.811,7.811-20.475,0-28.285L284.286,256.002z"/></g></g></svg>',Dc={success:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 426.667 426.667" style="width:24px; height:24px; enable-background:new 0 0 426.667 426.667" xml:space="preserve"><path style="fill:#6ac259" d="M213.333,0C95.518,0,0,95.514,0,213.333s95.518,213.333,213.333,213.333 c117.828,0,213.333-95.514,213.333-213.333S331.157,0,213.333,0z M174.199,322.918l-93.935-93.931l31.309-31.309l62.626,62.622 l140.894-140.898l31.309,31.309L174.199,322.918z"/></svg>',error:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 496.158 496.158" style="width:24px; height:24px; enable-background:new 0 0 496.158 496.158" xml:space="preserve"><path style="fill:#e04f5f" d="M496.158,248.085c0-137.021-111.07-248.082-248.076-248.082C111.07,0.003,0,111.063,0,248.085 c0,137.002,111.07,248.07,248.082,248.07C385.088,496.155,496.158,385.087,496.158,248.085z"/><path style="fill:#fff" d="M277.042,248.082l72.528-84.196c7.91-9.182,6.876-23.041-2.31-30.951 c-9.172-7.904-23.032-6.876-30.947,2.306l-68.236,79.212l-68.229-79.212c-7.91-9.188-21.771-10.216-30.954-2.306 c-9.186,7.91-10.214,21.77-2.304,30.951l72.522,84.196l-72.522,84.192c-7.91,9.182-6.882,23.041,2.304,30.951 c4.143,3.569,9.241,5.318,14.316,5.318c6.161,0,12.294-2.586,16.638-7.624l68.229-79.212l68.236,79.212 c4.338,5.041,10.47,7.624,16.637,7.624c5.069,0,10.168-1.749,14.311-5.318c9.186-7.91,10.22-21.77,2.31-30.951L277.042,248.082z"/></svg>',warning:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 497.472 497.472" style="width:24px; height:24px; enable-background:new 0 0 497.472 497.472" xml:space="preserve"><g transform="matrix(1.25 0 0 -1.25 0 45)"><path style="fill:#ffcc4d" d="M24.374-357.857c-20.958,0-30.197,15.223-20.548,33.826L181.421,17.928 c9.648,18.603,25.463,18.603,35.123,0L394.14-324.031c9.671-18.603,0.421-33.826-20.548-33.826H24.374z"/><path style="fill:#231f20" d="M173.605-80.922c0,14.814,10.934,23.984,25.395,23.984c14.12,0,25.407-9.512,25.407-23.984 V-216.75c0-14.461-11.287-23.984-25.407-23.984c-14.461,0-25.395,9.182-25.395,23.984V-80.922z M171.489-289.056 c0,15.167,12.345,27.511,27.511,27.511c15.167,0,27.523-12.345,27.523-27.511c0-15.178-12.356-27.523-27.523-27.523 C183.834-316.579,171.489-304.234,171.489-289.056"/></g></svg>',infor:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 496.16 496.16" style="width:24px; height:24px; enable-background:new 0 0 496.158 496.158;" xml:space="preserve"><path d="m496.16 248.08c0-137.02-111.07-248.08-248.08-248.08-137.01 0-248.08 111.06-248.08 248.08 0 137 111.07 248.07 248.08 248.07 137.01 0 248.08-111.07 248.08-248.07z" fill="#25B7D3"/><g fill="#fff"><path d="m315.25 359.56c-1.387-2.032-4.048-2.755-6.27-1.702-24.582 11.637-52.482 23.94-57.958 25.015-0.138-0.123-0.357-0.348-0.644-0.737-0.742-1.005-1.103-2.318-1.103-4.015 0-13.905 10.495-56.205 31.192-125.72 17.451-58.406 19.469-70.499 19.469-74.514 0-6.198-2.373-11.435-6.865-15.146-4.267-3.519-10.229-5.302-17.719-5.302-12.459 0-26.899 4.73-44.146 14.461-16.713 9.433-35.352 25.41-55.396 47.487-1.569 1.729-1.733 4.314-0.395 6.228 1.34 1.915 3.825 2.644 5.986 1.764 7.037-2.872 42.402-17.359 47.557-20.597 4.221-2.646 7.875-3.989 10.861-3.989 0.107 0 0.199 4e-3 0.276 0.01 0.036 0.198 0.07 0.5 0.07 0.933 0 3.047-0.627 6.654-1.856 10.703-30.136 97.641-44.785 157.5-44.785 182.99 0 8.998 2.501 16.242 7.432 21.528 5.025 5.393 11.803 8.127 20.146 8.127 8.891 0 19.712-3.714 33.08-11.354 12.936-7.392 32.68-23.653 60.363-49.717 1.793-1.687 2.092-4.426 0.705-6.458z"/><path d="m314.28 76.672c-4.925-5.041-11.227-7.597-18.729-7.597-9.34 0-17.475 3.691-24.176 10.971-6.594 7.16-9.938 15.946-9.938 26.113 0 8.033 2.463 14.69 7.32 19.785 4.922 5.172 11.139 7.794 18.476 7.794 8.958 0 17.049-3.898 24.047-11.586 6.876-7.553 10.363-16.433 10.363-26.393 1e-3 -7.654-2.476-14.075-7.363-19.087z"/></g></svg>',cancel:Mc},Pc={},Yc=null,Tc=_c();function Ic(){et(["top-right","top-left","bottom-right","bottom-left"],(function(e){!function(e){var t=jc(Pc,{position:e});t=pa(t,"timeStart");var r=16;et(t,(function(e){Pc[e.id].ele||(Pc[e.id].ele=document.querySelector("#".concat(e.id))),Pc[e.id].loc.top=r,Pc[e.id].loc.height=Pc[e.id].ele.offsetHeight,r+=Pc[e.id].loc.height+16})),et(t,(function(t){e.indexOf("bottom-")>=0?(Pc[t.id].ele.style.bottom="".concat(Pc[t.id].loc.top,"px"),Pc[t.id].loc.bottom=Pc[t.id].loc.top):Pc[t.id].ele.style.top="".concat(Pc[t.id].loc.top,"px"),e.indexOf("-left")>=0?(Pc[t.id].ele.style.left="".concat(16,"px"),Pc[t.id].loc.left=16):(Pc[t.id].ele.style.right="".concat(16,"px"),Pc[t.id].loc.right=16),Pc[t.id].ele.style.zIndex=2e5,Pc[t.id].ele.style.opacity=1,Pc[t.id].ele.style.transform="",Pc[t.id].ele.style.transform=null}))}(e)}))}function Cc(e){Pc[e].ele&&Pc[e].ele.parentNode.removeChild(Pc[e].ele),Pc[e]&&delete Pc[e],Ic()}function Lc(e){var t=e.id,r=e.position,n=e.time,o=e.pm;Pc[t]={id:t,position:r,ele:null,loc:{height:null,top:null,bottom:null,left:null,right:null},timeShow:n,timeStart:Date.now(),pm:o},Ic(),null===Yc&&(Yc=setInterval((function(){et(Pc,(function(e){Date.now()-e.timeStart>e.timeShow&&(e.pm.resolve(),Cc(e.id))})),Hn(Pc)||(clearInterval(Yc),Yc=null)}),50))}function Hc(e,t){if(!vc(e))return"invalid eleParent";if(S(t))e.insertAdjacentHTML("beforeend",t);else{if(!vc(t))return"invalid itemChild";e.appendChild(t)}}function Bc(){return null!==navigator.userAgent.toLowerCase().match(/rv:([\d.]+)\) like gecko/)}function zc(e){if(!e)return"invalid event";if(!e.cancelable)return"event is not cancelable";try{Bc()?e.cancelBubble=!0:e.stopPropagation(),e.preventDefault()}catch(e){}}function Fc(e){return document.querySelectorAll(e)}function Rc(e){function t(e){e.parentNode.removeChild(e)}if(vc(e))t(e);else if(E(e)){var r=Fc(e);et(r,(function(e){t(e)}))}}function Nc(e,t){if(!vc(e))return"invalid eleParent";if(S(t))e.insertAdjacentHTML("afterbegin",t);else{if(!vc(t))return"invalid itemChild";e.insertBefore(t,e.firstChild)}}function Uc(){return _c().htmlToImage}function Wc(e){return qc.apply(this,arguments)}function qc(){return(qc=Na(Ua.mark((function e(t){var r,n,o,i,a,u,c,s,f,l,p=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=p.length>1&&void 0!==p[1]?p[1]:{},vc(t)){e.next=3;break}return e.abrupt("return",Promise.reject("invalid ele"));case 3:if(n=Oo(r,"scale",1),Ki(n)){e.next=6;break}return e.abrupt("return",Promise.reject("opt.scale is not number"));case 6:if(!(n<1)){e.next=8;break}return e.abrupt("return",Promise.reject("opt.scale can not less then 1"));case 8:if("image/jpeg"===(o=Oo(r,"picType","image/png"))||"image/png"===o){e.next=11;break}return e.abrupt("return",Promise.reject("opt.picType is not image/jpeg or image/png"));case 11:if(i=Oo(r,"toBase64",!0),me(i)){e.next=14;break}return e.abrupt("return",Promise.reject("opt.toBase64 is not boolean"));case 14:if(a=t.cloneNode(!0),(u=document.createElement("div")).style.position="absolute",u.style.top=0,u.style.left=0,u.style.zIndex=-1,u.appendChild(a),(c=document.createElement("div")).style.opacity=0,c.style.position="relative",c.appendChild(u),Nc(document.querySelector("body"),c),s=Uc(),l={pixelRatio:n,quality:.95},!i){e.next=42;break}if("image/jpeg"!==o){e.next=36;break}return e.next=33,s.toJpeg(u,l);case 33:f=e.sent,e.next=40;break;case 36:if("image/png"!==o){e.next=40;break}return e.next=39,s.toPng(u,l);case 39:f=e.sent;case 40:e.next=45;break;case 42:return e.next=44,s.toCanvas(u,l);case 44:f=e.sent;case 45:return Rc(c),e.abrupt("return",f);case 47:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Tc.ttWAlertCancel=function(e){Cc(e)},Tc.ttWAlertFadeIn=function(e){Ec(document.querySelector("#".concat(e)))},Tc.ttWAlertFadeOut=function(e){Ac(document.querySelector("#".concat(e)))};var Vc=Array.prototype.join;var Xc=function(e,t){return null==e?"":Vc.call(e,t)};var $c=function(e,t,r){var n=null==e?0:e.length;return n?(t=r||void 0===t?1:ie(t),xi(e,t<0?0:t,n)):[]};function Gc(e,t){var r=ka();if(!Jn(e)&&!Ln(e))return r.reject("rs is not array or object"),r;var n=!1;if(Ln(e)){n=!0;var o=[];et(e,(function(e,t){o.push({k:t,v:e})})),e=o}ra(t)||(t=function(e){return e});var i=-1,a=[];return e.reduce((function(e,r){return e.then((function(e){a.push(e);var o=i+=1,u=r;return n&&(o=r.k,u=r.v),ra(t)?t(u,o):u}))}),Promise.resolve()).then((function(e){a.push(e),a=$c(a),r.resolve(a)})).catch((function(e){r.reject(e)})),r}var Zc={},Kc={};function Jc(e){var t=e.tagName,r=e.path,n=e.attributes,o=void 0===n?{}:n,i=e.func,a=ka();if("done"===Zc[r])return a.resolve("loaded"),a;if("loading"===Zc[r])return Wa((function(){return"done"===Zc[r]})).then((function(){a.resolve("loaded")})),a;Zc[r]="loading";var u=document.createElement(t);return et(o,(function(e,t){u.setAttribute(t,e)})),o.rel&&"stylesheet"===o.rel?(u.setAttribute("href",r),setTimeout((function(){a.resolve(u),Zc[r]="done"}),1)):(u.src=r,u.addEventListener("load",(function(){var e;ra(i)?e=Wa(i):(e=ka()).resolve(),e.then((function(){return wc(500)})).then((function(){a.resolve(u),Zc[r]="done"}))})),u.addEventListener("error",(function(){a.reject(u),Zc[r]="done"}))),document.getElementsByTagName("head")[0].appendChild(u),a}function Qc(e){var t=ka();Jn(e)||(e=[e]),et(e,(function(t,r){S(t)&&(e[r]={path:t})}));var r=Xc(wi(e,"path"),"|");return"done"===Kc[r]?(t.resolve("loaded"),t):"loading"===Kc[r]?(Wa((function(){return"done"===Kc[r]})).then((function(){t.resolve("loaded")})),t):(Kc[r]="loading",et(e,(function(e,t){e.type||(".js"===$i(e.path,3)?e.type="js":".css"===$i(e.path,4)?e.type="css":e.type="unknow")})),Gc(e,(function(e){var t=ka();if("js"===e.type)t=Jc({tagName:"script",path:e.path,attributes:{type:"text/javascript"},func:e.func});else if("css"===e.type)t=Jc({tagName:"link",path:e.path,attributes:{rel:"stylesheet"}});else{var r="invalid pathItem.type: "+e.type;console.log(r),t.reject(r)}return t})).finally((function(){Kc[r]="done"})))}function es(){return(es=Na(Ua.mark((function e(t){var r,n,o,i=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},io(n=i.length>2?i[2]:void 0)||(n=["https://cdn.jsdelivr.net/npm/html-to-image@1.7.0/dist/html-to-image.js"]),e.next=5,Qc(n);case 5:return o=Wc(t,r),e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ts(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ts(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ts(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ns=function(e,t,r,n){for(var o=r-1,i=e.length;++o<i;)if(n(e[o],t))return o;return-1},os=Array.prototype.splice;var is=function(e,t,r,n){var o=n?ns:Si,i=-1,a=t.length,u=e;for(e===t&&(t=lr(t)),r&&(u=zn(e,Le(r)));++i<a;)for(var c=0,s=t[i],f=r?r(s):s;(c=o(u,f,c,n))>-1;)u!==e&&os.call(u,c,1),os.call(e,c,1);return e};var as=la((function(e,t){return e&&e.length&&t&&t.length?is(e,t):e}));function us(e){var t=Oo(e,"clientX",null),r=Oo(e,"clientY",null),n=Oo(e,"pageX",null),o=Oo(e,"pageY",null);if(null!==t&&null!==r&&null!==n&&null!==o)return{clientX:t,clientY:r,pageX:n,pageY:o};var i=Oo(e,"changedTouches",[]);if(1!==Tn(i))return null;var a=i[0];return{clientX:Oo(a,"clientX",null),clientY:Oo(a,"clientY",null),pageX:Oo(a,"pageX",null),pageY:Oo(a,"pageY",null)}}function cs(e,t){if(!vc(e))return null;if(!E(t))return null;try{return e.getAttribute(t)}catch(e){}return null}function ss(e){if(!vc(e))return null;try{return e.getBoundingClientRect()}catch(e){}return null}function fs(e,t){if(!Hn(e))return null;if(!Ki(e.clientX)||!Ki(e.clientY))return null;if(!vc(t))return null;var r=ss(t);return r?{x:e.clientX-r.left,y:e.clientY-r.top,w:t.offsetWidth,h:t.offsetHeight}:null}function ls(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="dragpreviewid",r=null,n=null,o=null,i=null,a=null,u=!1,c=Oo(e,"attIdentify",null);E(c)||(c="dragprevid");var s=Oo(e,"containerOpacity",null);Ki(s)||(s=.4);var f=Oo(e,"containerBackground",null);E(f)||(f="white");var l=Oo(e,"containerBorderWidth",null);Ki(l)||(l=1);var p=Oo(e,"containerBorderColor",null);E(p)||(p="#f26");var d="c".concat(Sc(8));function v(e,t,n){var o=ss(e);if(!o)return null;r=e;var i=e.cloneNode(!0);return i.tShiftX=t-o.left,i.tShiftY=n-o.top,i.tWidth=e.offsetWidth,i.tHeight=e.offsetHeight,i.tParent=e.parentNode,i.setAttribute(c,""),i}function h(e,u,h){!function(){var r=v(e,u,h);if(null!==r){var c=document.createElement("div");c.style.position="absolute",c.style.zIndex=1,c.style.top=0,c.style.left=0,c.style.width="100%",c.style.height="100%",c.appendChild(r);var m=document.createElement("div");m.style.position="relative",m.appendChild(c);var y=document.createElement("div");y.setAttribute(t,d),y.style.position="fixed",y.style.zIndex=1e5,y.style.width="".concat(r.tWidth+2*l,"px"),y.style.height="".concat(r.tHeight+2*l,"px"),y.style.opacity=s,y.style.background=f,y.style.border="".concat(l,"px solid ").concat(p),y.style.pointerEvents="none",y.appendChild(m),r.tParent.appendChild(y),n=r,o=c,i=m,a=y,g(u,h)}}();var m=setInterval((function(){var e=cs(r,c);document.querySelector("[".concat(c,"='").concat(e,"']"))||(clearInterval(m),y())}),500)}function g(e,t,r){n&&o&&i&&a&&!u&&(a.style.top="".concat(t-n.tShiftY,"px"),a.style.left="".concat(e-n.tShiftX,"px"))}function m(e){u=e}function y(){Rc("[".concat(t,"='").concat(d,"']")),n=null,o=null,i=null,a=null}var b=function(e){g(e.clientX,e.clientY)};window.addEventListener("mousemove",b);var w=function(e){var t=us(e);t&&g(t.clientX,t.clientY)};function x(e){try{et(e,(function(e,t){n.style[t]=e}))}catch(e){}}function j(e){try{et(e,(function(e,t){o.style[t]=e}))}catch(e){}}function _(e){try{et(e,(function(e,t){i.style[t]=e}))}catch(e){}}function O(e){try{et(e,(function(e,t){a.style[t]=e}))}catch(e){}}function k(){window.removeEventListener("mousemove",b),window.removeEventListener("touchmove",w)}return window.addEventListener("touchmove",w),{createPreview:h,updateDragPreview:g,pauseDragPreview:m,removeDragPreview:y,setNodeStyle:x,setCoverStyle:j,setSellStyle:_,setContainerStyle:O,clear:k}}function ps(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ds(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ps(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ps(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var vs={};function hs(e,t,r){var n=r.attIdentify,o=r.previewOpacity,i=r.previewBackground,a=r.previewBorderWidth,u=r.previewBorderColor;if(!Bn(vs,e)){var c=Cn(),s=function(e){var t=[];function r(){var r;r="mousemove";var n=function(t){e.dragMove({e:t,name:"mousemove"})};window.addEventListener(r,n),t.push({ele:window,name:r,f:n}),r="mouseup";var o=function(t){e.dragDrop({e:t,name:"mouseup"})};window.addEventListener(r,o),t.push({ele:window,name:r,f:o}),r="touchmove";var i=function(t){e.dragMove({e:t,name:"touchmove"})};window.addEventListener(r,i),t.push({ele:window,name:r,f:i}),r="touchend";var a=function(t){e.dragDrop({e:t,name:"touchend"})};window.addEventListener(r,a),t.push({ele:window,name:r,f:a})}function n(){et(t,(function(e){var t=e.ele,r=e.name,n=e.f;t.removeEventListener(r,n)}))}return{bind:r,unbind:n}}({dragMove:function(t){c.emit(e+"-dragMove",t)},dragDrop:function(t){c.emit(e+"-dragDrop",t)}});s.bind();var f=ls({attIdentify:n,containerOpacity:o,containerBackground:i,containerBorderWidth:a,containerBorderColor:u});vs[e]={eleIds:[],evg:c,oevg:s,pv:f,isInit:!1,isActive:!0}}return vs[e].eleIds.push(t),vs[e].evg}function gs(e,t,r){var n=null;return et(e.path,(function(e){if(cs(e,t)===r)return n=e,!1})),n}function ms(e,t){var r=cs(e,t);return r=$n(r)}function ys(e,t,r,n){var o=[];return{bind:function(){var r;r="mousedown";var n=function(r){t.dragStart({e:r,ele:e,name:"mousedown"})};e.addEventListener(r,n,!1),o.push({ele:e,name:r,f:n}),r="touchstart";var i=function(r){t.dragStart({e:r,ele:e,name:"touchstart"})};e.addEventListener(r,i,!1),o.push({ele:e,name:r,f:i}),r="touchmove";var a=function(e){e.cancelable&&e.preventDefault()};e.addEventListener(r,a,!1),o.push({ele:e,name:r,f:a})},unbind:function(){et(o,(function(e){var t=e.ele,r=e.name,n=e.f;t.removeEventListener(r,n)}))}}}function bs(e,t){var r=vs[e],n=vn(r.eleIds);as(n,t),r.eleIds=n,0===n.length&&(r.oevg.unbind(),r.pv.clear(),delete vs[e])}function ws(e){var t=e.gid,r=e.attGroup,n=e.attIndex,o=e.attIdentify,i=e.timeDragStartDelay,a=e.previewOpacity,u=e.previewDisabledOpacity,c=null,s=null,f=null,l=null;if(vs[t].isInit)return vs[t].evg;vs[t].isInit=!0;var p=vs[t].evg;p.on(t+"-dragStart",(function(e){var r=e.e,a=e.ele;if(e.from,!vs[t].isActive)return;var f=ms(a,n);if(null===f)return;var l={event:r,startInd:c=f,startEle:s=a,tarInd:c,tarEid:cs(s,o)};p.emit(t+"-change",ds({mode:"start"},l)),p.emit(t+"-start",l);var v=us(r);if(!v)return;setTimeout((function(){null!==c&&(d.createPreview(s,v.clientX,v.clientY),d.setContainerStyle({opacity:u}))}),i)})),p.on(t+"-dragMove",(function(e){var i=e.e;if(e.name,e.from,!vs[t].isActive)return;var v=gs(i,r,t);if(null===c)return;var h=us(i);if(!h)return;function g(){var e={event:i,startInd:c,startEle:s,endInd:f,endEle:l,tarInd:f,tarEid:cs(l,o)};p.emit(t+"-change",ds({mode:"leave"},e)),p.emit(t+"-leave",e),f=null,l=null,d.setContainerStyle({opacity:u})}if(!v)return void(null!==f&&g());var m=ms(v,n);if(null===m)return;if(m===c)return void(null!==f&&g());if(m!==f)null!==f&&g(),x={event:i,startInd:c,startEle:s,endInd:f=m,endEle:l=v,tarInd:f,tarEid:cs(l,o)},p.emit(t+"-change",ds({mode:"enter"},x)),p.emit(t+"-enter",x),d.setContainerStyle({opacity:a});else{var y=fs(h,v),b=0;y.w>0&&(b=y.x/y.w);var w=0;y.h>0&&(w=y.y/y.h),b>=0&&b<=1&&w>=0&&w<=1&&function(e,r,n){var u=ds(ds({event:i,startInd:c,startEle:s,endInd:f,endEle:l,tarInd:f,tarEid:cs(l,o)},e),{},{rx:r,ry:n});p.emit(t+"-change",ds({mode:"move"},u)),p.emit(t+"-move",u),d.setContainerStyle({opacity:a})}(y,b,w)}var x})),p.on(t+"-dragDrop",(function(e){var i=e.e;if(e.name,e.from,d.removeDragPreview(),!vs[t].isActive)return;if(null===c)return;var a=gs(i,r,t);if(!a)return c=null,s=null,f=null,void(l=null);var u=ms(a,n);if(null===u)return;v=u,h=a,g={event:i,startInd:c,startEle:s,endInd:f=v,endEle:l=h,tarInd:f,tarEid:cs(l,o)},p.emit(t+"-change",ds({mode:"drop"},g)),p.emit(t+"-drop",g),c=null,s=null,f=null,l=null;var v,h,g}));var d=vs[t].pv}function xs(e){return js.apply(this,arguments)}function js(){return(js=Na(Ua.mark((function e(t){var r;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=ka();try{t.file(r.resolve,r.reject)}catch(e){r.reject(e)}return e.abrupt("return",r);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _s(e){return Os.apply(this,arguments)}function Os(){return(Os=Na(Ua.mark((function e(t){var r;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=ka();try{t.readEntries(r.resolve,r.reject)}catch(e){r.reject(e)}return e.abrupt("return",r);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ks(e){return Ss.apply(this,arguments)}function Ss(){return(Ss=Na(Ua.mark((function e(t){var r,n,o,i;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=function(){return(i=Na(Ua.mark((function e(t){var n,i,a;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null,!t.isFile){e.next=5;break}return e.next=4,xs(t);case 4:n=e.sent;case 5:if(r.push({type:t.isDirectory?"folder":t.isFile?"file":"unknow",path:t.fullPath,name:t.name,entry:t,file:n}),!t.isDirectory){e.next=13;break}return i=t.createReader(),e.next=10,_s(i);case 10:return a=e.sent,e.next=13,Gc(a,function(){var e=Na(Ua.mark((function e(t){return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o(t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)},o=function(e){return i.apply(this,arguments)},r=[],n=ka(),e.next=6,o(t);case 6:return n.resolve(r),e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Es(e){return As.apply(this,arguments)}function As(){return(As=Na(Ua.mark((function e(t){var r;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[],e.next=3,Gc(t,function(){var e=Na(Ua.mark((function e(t){var n;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ks(t);case 2:n=e.sent,et(n,(function(e){r.push(e)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 3:return e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ms(e){return Ds.apply(this,arguments)}function Ds(){return(Ds=Na(Ua.mark((function e(t){var r,n,o,i;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=[],n=0;n<t.length;n++)(o=t[n].webkitGetAsEntry())&&r.push(o);return e.next=4,Es(r);case 4:return i=e.sent,e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ps(e){return Ys.apply(this,arguments)}function Ys(){return(Ys=Na(Ua.mark((function e(t){var r;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[],et(t,(function(e){e.type&&r.push({type:"file",name:e.name,file:e})})),e.abrupt("return",r);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ts(){return(Ts=Na(Ua.mark((function e(t){var r,n;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[],n=[],e.prev=2,e.next=5,Ps(Oo(t,"files",[]));case 5:if(r=e.sent,Bc()){e.next=10;break}return e.next=9,Ms(Oo(t,"items",[]));case 9:n=e.sent;case 10:e.next=15;break;case 12:return e.prev=12,e.t0=e.catch(2),e.abrupt("return",Promise.reject(e.t0));case 15:return e.abrupt("return",{files:r,entries:n});case 16:case"end":return e.stop()}}),e,null,[[2,12]])})))).apply(this,arguments)}function Is(e){return document.querySelector(e)}var Cs=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return yr(Ae(r)?lr(r):[r],Ao(t,1))};var Ls=function(e,t){return!!(null==e?0:e.length)&&Si(e,t,0)>-1};var Hs=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1};var Bs=function(){},zs=Er&&1/Go(new Er([,-0]))[1]==1/0?function(e){return new Er(e)}:Bs;var Fs=function(e,t,r){var n=-1,o=Ls,i=e.length,a=!0,u=[],c=u;if(r)a=!1,o=Hs;else if(i>=200){var s=t?null:zs(e);if(s)return Go(s);a=!1,o=Vo,c=new Wo}else c=t?[]:u;e:for(;++n<i;){var f=e[n],l=t?t(f):f;if(f=r||0!==f?f:0,a&&l==l){for(var p=c.length;p--;)if(c[p]===l)continue e;t&&c.push(l),u.push(f)}else o(c,l,r)||(c!==u&&c.push(l),u.push(f))}return u};var Rs=function(e){return e&&e.length?Fs(e):[]};function Ns(e){return!oo(e)}function Us(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""!==e&&"name"!==e&&"group"!==e&&"acp"!==e&&"exec"!==e)return[];var t=[{name:"htm",group:"docums",acp:"text/html",exec:"browser"},{name:"html",group:"docums",acp:"text/html",exec:"browser"},{name:"pdf",group:"docums",acp:"application/pdf",exec:"acrobat"},{name:"rtf",group:"docums",acp:"application/rtf",exec:"word"},{name:"doc",group:"docums",acp:"application/msword",exec:"word"},{name:"docx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",exec:"word"},{name:"ppt",group:"docums",acp:"application/vnd.ms-powerpoint",exec:"powerpoint"},{name:"pptx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.presentationml.presentation",exec:"powerpoint"},{name:"xls",group:"docums",acp:"application/vnd.ms-excel",exec:"excel"},{name:"xlsx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",exec:"excel"},{name:"odt",group:"docums",acp:"application/vnd.oasis.opendocument.text",exec:"word"},{name:"odp",group:"docums",acp:"application/vnd.oasis.opendocument.presentation",exec:"powerpoint"},{name:"application/vnd.oasis.opendocument.spreadsheet",group:"docums",acp:"application/vnd.oasis.opendocument.spreadsheet",exec:"excel"},{name:"zip",group:"compress",acp:"application/zip",exec:"7z"},{name:"rar",group:"compress",acp:"application/x-rar-compressed",exec:"7z"},{name:"7z",group:"compress",acp:"application/x-7z-compressed",exec:"7z"},{name:"bzip",group:"compress",acp:"application/x-bzip",exec:"7z"},{name:"bzip2",group:"compress",acp:"application/x-bzip2",exec:"7z"},{name:"pic",group:"image",acp:"image/*",exec:"imageviwer"},{name:"xml",group:"data",acp:"text/xml",exec:"textviwer"},{name:"json",group:"data",acp:"application/json",exec:"textviwer"},{name:"txt",group:"data",acp:"text/plain",exec:"textviwer"},{name:"csv",group:"data",acp:"text/csv",exec:"excel"},{name:"dat",group:"data",acp:"application/octet-stream",exec:"binaryviwer"}];if(""===e)return t;var r={};return et(t,(function(t){var n=t[e];Bn(r,n)||(r[n]=[]),r[n].push(t)})),r}function Ws(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*";if("*"===e)return e;if(!S(e)&&!io(e))return"*";"common"===e&&(e=["docums","compress","image","data"]);var t=Us();function r(e){return o(jc(t,{name:e}))}function n(e){return o(jc(t,{group:e}))}function o(e){return Rs(wi(e,"acp"))}S(e)&&(e=[e]);var i="";if(io(e)){var a=wi(e,(function(e){return n(e)})),u=wi(e,(function(e){return r(e)})),c=Cs(a,u);c=jc(c,Ns),i=Xc(c,",")}return i}function qs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;(t=se(t))<=0&&(t=1e3);var r={},n=[];return et(e.files,(function(e,o){e.size/1024/1024>t&&(r[o]="檔案大小超過上限".concat(t,"mb")),n.push(e)})),{files:n,errs:r}}function Vs(){return!function(){try{return"IntersectionObserver"in window}catch(e){return!1}}()||!function(){try{return"IntersectionObserverEntry"in window}catch(e){return!1}}()||!(function(){try{return"intersectionRatio"in window.IntersectionObserverEntry.prototype}catch(e){return!1}}()||ra(window.IntersectionObserverEntry))}var Xs=function(e){return.5*(1-Math.cos(Math.PI*e))},$s={_elementScroll:void 0,get elementScroll(){return this._elementScroll||(this._elementScroll=HTMLElement.prototype.scroll||HTMLElement.prototype.scrollTo||function(e,t){this.scrollLeft=e,this.scrollTop=t})},_elementScrollIntoView:void 0,get elementScrollIntoView(){return this._elementScrollIntoView||(this._elementScrollIntoView=HTMLElement.prototype.scrollIntoView)},_windowScroll:void 0,get windowScroll(){return this._windowScroll||(this._windowScroll=window.scroll||window.scrollTo)}},Gs=function(){var e,t,r;return null!==(r=null===(t=null===(e=window.performance)||void 0===e?void 0:e.now)||void 0===t?void 0:t.call(e))&&void 0!==r?r:Date.now()},Zs=function e(t){var r=(Gs()-t.timeStamp)/(t.duration||500);if(r>1)return t.method(t.targetX,t.targetY),void t.callback();var n=(t.timingFunc||Xs)(r),o=t.startX+(t.targetX-t.startX)*n,i=t.startY+(t.targetY-t.startY)*n;t.method(o,i),t.rafId=requestAnimationFrame((function(){e(t)}))},Ks=function(e){return isFinite(e)?Number(e):0},Js=function(e,t){var r,n,o=$s.elementScroll.bind(e);if(void 0!==t.left||void 0!==t.top){var i=e.scrollLeft,a=e.scrollTop,u=Ks(null!==(r=t.left)&&void 0!==r?r:i),c=Ks(null!==(n=t.top)&&void 0!==n?n:a);if("smooth"!==t.behavior)return o(u,c);var s=function(){window.removeEventListener("wheel",l),window.removeEventListener("touchmove",l)},f={timeStamp:Gs(),duration:t.duration,startX:i,startY:a,targetX:u,targetY:c,rafId:0,method:o,timingFunc:t.timingFunc,callback:s},l=function(){cancelAnimationFrame(f.rafId),s()};window.addEventListener("wheel",l,{passive:!0,once:!0}),window.addEventListener("touchmove",l,{passive:!0,once:!0}),Zs(f)}};function Qs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(e,t)||ea(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ef(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ef(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ef(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var rf=function(e,t,r,n,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=r||a>=t&&u>=r?i-e-n:a>t&&u<r||i<e&&u>r?a-t+o:0},nf=function(e){return"visible"!==e&&"clip"!==e},of=function(e,t){return(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth)&&(nf(t.overflowY)||nf(t.overflowX)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e))},af=function(e){var t=e.parentNode;return null!==t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.host:t},uf=function(e,t){return e<-t?-t:e>t?t:e},cf=function(e){return e in document.documentElement.style},sf=function(e,t){var r=e.getBoundingClientRect(),n=r.top,o=r.right,i=r.bottom,a=r.left,u=Qs(["top","right","bottom","left"].map((function(e){var r=["scroll-margin","scroll-snap-margin"].filter(cf)[0],n=t.getPropertyValue("".concat(r,"-").concat(e));return parseInt(n,10)||0})),4);return[n-u[0],o+u[1],i+u[2],a-u[3]]},ff=function(e,t){if(!1!==e.isConnected){for(var r=document.scrollingElement||document.documentElement,n=[],o=getComputedStyle(document.documentElement),i=af(e);null!==i;i=af(i)){if(i===r){n.push(i);break}var a=getComputedStyle(i);if((i!==document.body||!of(i,a)||of(document.documentElement,o))&&(of(i,a)&&n.push(i),"fixed"===a.position))break}var u=window.visualViewport?window.visualViewport.width:innerWidth,c=window.visualViewport?window.visualViewport.height:innerHeight,s=window.scrollX||window.pageXOffset,f=window.scrollY||window.pageYOffset,l=getComputedStyle(e),p=Qs(sf(e,l),4),d=p[0],v=p[1],h=p[2],g=p[3],m=h-d,y=v-g,b=function(e){switch(e){case"horizontal-tb":case"lr":case"lr-tb":case"rl":case"rl-tb":return 0;case"vertical-rl":case"tb":case"tb-rl":return 1;case"vertical-lr":case"tb-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4}return 0}(l.writingMode||l.getPropertyValue("-webkit-writing-mode")||l.getPropertyValue("-ms-writing-mode")),w="rtl"!==l.direction,x=Qs(function(e,t,r){var n=e.block||"start",o=e.inline||"nearest",i=0;switch(r||(i^=2),t){case 0:i=i>>1|(1&i)<<1;var a=[o,n];n=a[0],o=a[1];break;case 1:case 3:i^=1;break;case 4:i^=2}return[n,o].map((function(e,t){switch(e){case"center":return 1;case"nearest":return 0;default:return"start"===e==!(i>>t&1)?2:3}}))}(t,b,w),2),j=x[0],_=x[1],O=function(){switch(_){case 1:return d+m/2;case 2:case 0:return d;case 3:return h}}(),k=function(){switch(j){case 1:return g+y/2;case 3:return v;case 2:case 0:return g}}(),S=[];n.forEach((function(e){var n=e.getBoundingClientRect(),o=n.height,i=n.width,a=n.top,l=n.right,p=n.bottom,d=n.left,v=getComputedStyle(e),h=parseInt(v.borderLeftWidth,10),g=parseInt(v.borderTopWidth,10),b=parseInt(v.borderRightWidth,10),w=parseInt(v.borderBottomWidth,10),x=0,E=0,A="offsetWidth"in e?e.offsetWidth-e.clientWidth-h-b:0,M="offsetHeight"in e?e.offsetHeight-e.clientHeight-g-w:0;if(r===e){switch(_){case 2:x=O;break;case 3:x=O-c;break;case 1:x=O-c/2;break;case 0:x=rf(f,f+c,c,g,w,f+O,f+O+m,m)}switch(j){case 2:E=k;break;case 3:E=k-u;break;case 1:E=k-u/2;break;case 0:E=rf(s,s+u,u,h,b,s+k,s+k+y,y)}x+=f,E+=s}else{switch(_){case 2:x=O-a-g;break;case 3:x=O-p+w+M;break;case 1:x=O-(a+o/2)+M/2;break;case 0:x=rf(a,p,o,g,w+M,O,O+m,m)}switch(j){case 2:E=k-d-h;break;case 3:E=k-l+b+A;break;case 1:E=k-(d+i/2)+A/2;break;case 0:E=rf(d,l,i,h,b+A,k,k+y,y)}var D=e.scrollLeft,P=e.scrollTop;x=uf(P+x,e.scrollHeight-o+M),E=uf(D+E,e.scrollWidth-i+A),O+=P-x,k+=D-E}S.push((function(){return Js(e,tf(tf({},t),{},{top:x,left:E}))}))})),S.forEach((function(e){return e()}))}};function lf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lf(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function df(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?df(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):df(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var hf=function(e,t,r){(void 0!==r&&!rt(e[t],r)||void 0===r&&!(t in e))&&er(e,t,r)};var gf=function(e){return Z(e)&&Ge(e)};var mf=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var yf=function(e){return nr(e,cr(e))};var bf=function(e,t,r,n,o,i,a){var u=mf(e,r),c=mf(t,r),s=a.get(c);if(s)hf(e,r,s);else{var f=i?i(u,c,r+"",e,t,a):void 0,l=void 0===f;if(l){var p=Ae(c),d=!p&&De(c),v=!p&&!d&&ze(c);f=c,p||d||v?Ae(u)?f=u:gf(u)?f=lr(u):d?(l=!1,f=fr(c,!0)):v?(l=!1,f=Kr(c,!0)):f=[]:cc(c)||Ee(c)?(f=u,Ee(u)?f=yf(u):I(u)&&!$e(u)||(f=tn(c))):l=!1}l&&(a.set(c,f),o(f,c,n,i,a),a.delete(c)),hf(e,r,f)}};var wf=function e(t,r,n,o,i){t!==r&&xe(r,(function(a,u){if(i||(i=new Jt),I(a))bf(t,r,u,n,e,o,i);else{var c=o?o(mf(t,u),a,u+"",t,r,i):void 0;void 0===c&&(c=a),hf(t,u,c)}}),cr)};var xf=function(e){return la((function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&fo(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var u=r[n];u&&e(t,u,n,i)}return t}))}((function(e,t,r){wf(e,t,r)}));function jf(){var e={button:!1,navbar:!1,title:!1,toolbar:{zoomIn:4,zoomOut:4,oneToOne:4,reset:4,prev:0,play:0,next:0,rotateLeft:4,rotateRight:4,flipHorizontal:4,flipVertical:4},tooltip:!1,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!1,keyboard:!0};return e.navbar=!0,e.toolbar.prev=4,e.toolbar.next=4,e}function _f(){var e=_c();return g.default||e.Viewer}function Of(e){return kf.apply(this,arguments)}function kf(){return(kf=Na(Ua.mark((function e(t){var r,n,o,i,a,u,c,s,f,l,p,d=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=d.length>1&&void 0!==d[1]?d[1]:null,n=d.length>2&&void 0!==d[2]?d[2]:{},o=!0,i=null,a=ka(),Hn(n)||(n={}),vc(t)){e.next=11;break}return a.reject("eleImg is not HTMLElement"),e.abrupt("return",a);case 11:i=t;case 12:if(null===r){e.next=20;break}if(vc(r)){e.next=18;break}return a.reject("eleGroup is not HTMLElement"),e.abrupt("return",a);case 18:o=!1,i=r;case 20:if(o){e.next=29;break}if(u=r.querySelectorAll("img"),0!==(c=Tn(u))){e.next=28;break}return a.reject("eleGroup does not contain any img"),e.abrupt("return",a);case 28:1===c&&(o=!0);case 29:return s={button:!1,navbar:!1,title:!1,toolbar:{zoomIn:4,zoomOut:4,oneToOne:4,reset:4,prev:0,play:0,next:0,rotateLeft:4,rotateRight:4,flipHorizontal:4,flipVertical:4},tooltip:!1,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!1,keyboard:!0},o||(s=jf()),s=xf(s,vn(n)),f=!1,s.hide=function(){f||(f=!0,p.hide(!0))},s.hidden=function(){p.destroy(),a.resolve("close")},l=_f(),(p=new l(i,s)).show(),e.abrupt("return",a);case 39:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Sf(){return(Sf=Na(Ua.mark((function e(t){var r,n,o,i=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:null,n=i.length>2&&void 0!==i[2]?i[2]:{},io(o=i.length>3?i[3]:void 0)||(o=["https://cdn.jsdelivr.net/npm/viewerjs@1.10.1/dist/viewer.min.css","https://cdn.jsdelivr.net/npm/viewerjs@1.10.1/dist/viewer.min.js"]),e.next=6,Qc(o);case 6:return e.abrupt("return",Of(t,r,n));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ef(e,t){var r=new MouseEvent(t,{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(r)}function Af(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,n=ka(),o="drf"+Sc(),i="GrpDomReadFile";Rc("[name=".concat(i,"]"));var a=Ws(e),u=t?"multiple":"",c='<div name="'.concat(i,'" style="position:relative; width:0px; height:0px; overflow:hidden;"><input id="').concat(o,'" type="file" accept="').concat(a,'" ').concat(u,' style="opacity:0; position:absolute; top:-10000px; left:-10000px;"></div>');Hc(document.querySelector("body"),c);var s=Is("#"+o);function f(){var e=qs(this,r);n.resolve(e),s.removeEventListener("change",f),Rc("[name=".concat(i,"]"))}return s.addEventListener("change",f),Ef(s,"click"),n}Sa()&&function(){try{return new MouseEvent("MouseEventPolyfillTest"),!1}catch(e){}var e=function(e,t){t=t||{bubbles:!1,cancelable:!1};var r=document.createEvent("MouseEvent");return r.initMouseEvent(e,t.bubbles,t.cancelable,window,0,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null),r};e.prototype=Event.prototype,window.MouseEvent=e}();var Mf="top",Df="bottom",Pf="right",Yf="left",Tf="auto",If=[Mf,Df,Pf,Yf],Cf="start",Lf="end",Hf="viewport",Bf="popper",zf=If.reduce((function(e,t){return e.concat([t+"-"+Cf,t+"-"+Lf])}),[]),Ff=[].concat(If,[Tf]).reduce((function(e,t){return e.concat([t,t+"-"+Cf,t+"-"+Lf])}),[]),Rf=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Nf(e){return e?(e.nodeName||"").toLowerCase():null}function Uf(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wf(e){return e instanceof Uf(e).Element||e instanceof Element}function qf(e){return e instanceof Uf(e).HTMLElement||e instanceof HTMLElement}function Vf(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Uf(e).ShadowRoot||e instanceof ShadowRoot)}var Xf={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];qf(o)&&Nf(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});qf(n)&&Nf(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function $f(e){return e.split("-")[0]}function Gf(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Zf(e){var t=Gf(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Kf(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Vf(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Jf(e){return Uf(e).getComputedStyle(e)}function Qf(e){return["table","td","th"].indexOf(Nf(e))>=0}function el(e){return((Wf(e)?e.ownerDocument:e.document)||window.document).documentElement}function tl(e){return"html"===Nf(e)?e:e.assignedSlot||e.parentNode||(Vf(e)?e.host:null)||el(e)}function rl(e){return qf(e)&&"fixed"!==Jf(e).position?e.offsetParent:null}function nl(e){for(var t=Uf(e),r=rl(e);r&&Qf(r)&&"static"===Jf(r).position;)r=rl(r);return r&&("html"===Nf(r)||"body"===Nf(r)&&"static"===Jf(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&qf(e)&&"fixed"===Jf(e).position)return null;for(var r=tl(e);qf(r)&&["html","body"].indexOf(Nf(r))<0;){var n=Jf(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function ol(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var il=Math.max,al=Math.min,ul=Math.round;function cl(e,t,r){return il(e,al(t,r))}function sl(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function fl(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}var ll={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pl(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.offsets,a=e.position,u=e.gpuAcceleration,c=e.adaptive,s=e.roundOffsets,f=!0===s?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:ul(ul(t*n)/n)||0,y:ul(ul(r*n)/n)||0}}(i):"function"==typeof s?s(i):i,l=f.x,p=void 0===l?0:l,d=f.y,v=void 0===d?0:d,h=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),m=Yf,y=Mf,b=window;if(c){var w=nl(r),x="clientHeight",j="clientWidth";w===Uf(r)&&"static"!==Jf(w=el(r)).position&&(x="scrollHeight",j="scrollWidth"),w=w,o===Mf&&(y=Df,v-=w[x]-n.height,v*=u?1:-1),o===Yf&&(m=Pf,p-=w[j]-n.width,p*=u?1:-1)}var _,O=Object.assign({position:a},c&&ll);return u?Object.assign({},O,((_={})[y]=g?"0":"",_[m]=h?"0":"",_.transform=(b.devicePixelRatio||1)<2?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",_)):Object.assign({},O,((t={})[y]=g?v+"px":"",t[m]=h?p+"px":"",t.transform="",t))}var dl={passive:!0};var vl={left:"right",right:"left",bottom:"top",top:"bottom"};function hl(e){return e.replace(/left|right|bottom|top/g,(function(e){return vl[e]}))}var gl={start:"end",end:"start"};function ml(e){return e.replace(/start|end/g,(function(e){return gl[e]}))}function yl(e){var t=Uf(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function bl(e){return Gf(el(e)).left+yl(e).scrollLeft}function wl(e){var t=Jf(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function xl(e){return["html","body","#document"].indexOf(Nf(e))>=0?e.ownerDocument.body:qf(e)&&wl(e)?e:xl(tl(e))}function jl(e,t){var r;void 0===t&&(t=[]);var n=xl(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=Uf(n),a=o?[i].concat(i.visualViewport||[],wl(n)?n:[]):n,u=t.concat(a);return o?u:u.concat(jl(tl(a)))}function _l(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ol(e,t){return t===Hf?_l(function(e){var t=Uf(e),r=el(e),n=t.visualViewport,o=r.clientWidth,i=r.clientHeight,a=0,u=0;return n&&(o=n.width,i=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,u=n.offsetTop)),{width:o,height:i,x:a+bl(e),y:u}}(e)):qf(t)?function(e){var t=Gf(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):_l(function(e){var t,r=el(e),n=yl(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=il(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=il(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-n.scrollLeft+bl(e),c=-n.scrollTop;return"rtl"===Jf(o||r).direction&&(u+=il(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:c}}(el(e)))}function kl(e,t,r){var n="clippingParents"===t?function(e){var t=jl(tl(e)),r=["absolute","fixed"].indexOf(Jf(e).position)>=0&&qf(e)?nl(e):e;return Wf(r)?t.filter((function(e){return Wf(e)&&Kf(e,r)&&"body"!==Nf(e)})):[]}(e):[].concat(t),o=[].concat(n,[r]),i=o[0],a=o.reduce((function(t,r){var n=Ol(e,r);return t.top=il(n.top,t.top),t.right=al(n.right,t.right),t.bottom=al(n.bottom,t.bottom),t.left=il(n.left,t.left),t}),Ol(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Sl(e){return e.split("-")[1]}function El(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?$f(o):null,a=o?Sl(o):null,u=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(i){case Mf:t={x:u,y:r.y-n.height};break;case Df:t={x:u,y:r.y+r.height};break;case Pf:t={x:r.x+r.width,y:c};break;case Yf:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var s=i?ol(i):null;if(null!=s){var f="y"===s?"height":"width";switch(a){case Cf:t[s]=t[s]-(r[f]/2-n[f]/2);break;case Lf:t[s]=t[s]+(r[f]/2-n[f]/2)}}return t}function Al(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.boundary,a=void 0===i?"clippingParents":i,u=r.rootBoundary,c=void 0===u?Hf:u,s=r.elementContext,f=void 0===s?Bf:s,l=r.altBoundary,p=void 0!==l&&l,d=r.padding,v=void 0===d?0:d,h=sl("number"!=typeof v?v:fl(v,If)),g=f===Bf?"reference":Bf,m=e.elements.reference,y=e.rects.popper,b=e.elements[p?g:f],w=kl(Wf(b)?b:b.contextElement||el(e.elements.popper),a,c),x=Gf(m),j=El({reference:x,element:y,strategy:"absolute",placement:o}),_=_l(Object.assign({},y,j)),O=f===Bf?_:x,k={top:w.top-O.top+h.top,bottom:O.bottom-w.bottom+h.bottom,left:w.left-O.left+h.left,right:O.right-w.right+h.right},S=e.modifiersData.offset;if(f===Bf&&S){var E=S[o];Object.keys(k).forEach((function(e){var t=[Pf,Df].indexOf(e)>=0?1:-1,r=[Mf,Df].indexOf(e)>=0?"y":"x";k[e]+=E[r]*t}))}return k}function Ml(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,u=r.flipVariations,c=r.allowedAutoPlacements,s=void 0===c?Ff:c,f=Sl(n),l=f?u?zf:zf.filter((function(e){return Sl(e)===f})):If,p=l.filter((function(e){return s.indexOf(e)>=0}));0===p.length&&(p=l,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=p.reduce((function(t,r){return t[r]=Al(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[$f(r)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}function Dl(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Pl(e){return[Mf,Pf,Df,Yf].some((function(t){return e[t]>=0}))}function Yl(e,t,r){void 0===r&&(r=!1);var n,o,i=el(t),a=Gf(e),u=qf(t),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(u||!u&&!r)&&(("body"!==Nf(t)||wl(i))&&(c=(n=t)!==Uf(n)&&qf(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:yl(n)),qf(t)?((s=Gf(t)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=bl(i))),{x:a.left+c.scrollLeft-s.x,y:a.top+c.scrollTop-s.y,width:a.width,height:a.height}}function Tl(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}function Il(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return[].concat(r).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var Cl='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Ll=["name","enabled","phase","fn","effect","requires","options"];var Hl="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Bl={placement:"bottom",modifiers:[],strategy:"absolute"};function zl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Fl(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?Bl:o;return function(e,t,r){void 0===r&&(r=i);var o,a,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Bl,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],s=!1,f={state:u,setOptions:function(r){l(),u.options=Object.assign({},i,u.options,r),u.scrollParents={reference:Wf(e)?jl(e):e.contextElement?jl(e.contextElement):[],popper:jl(t)};var o=function(e){var t=Tl(e);return Rf.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,u.options.modifiers)));(u.orderedModifiers=o.filter((function(e){return e.enabled})),function(e){e.forEach((function(t){Object.keys(t).forEach((function(r){switch(r){case"name":"string"!=typeof t.name&&console.error(Il(Cl,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(Il(Cl,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));case"phase":Rf.indexOf(t.phase)<0&&console.error(Il(Cl,t.name,'"phase"',"either "+Rf.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(Il(Cl,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":"function"!=typeof t.effect&&console.error(Il(Cl,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":Array.isArray(t.requires)||console.error(Il(Cl,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Il(Cl,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+Ll.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach((function(r){null==e.find((function(e){return e.name===r}))&&console.error(Il('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),r,r))}))}))}))}((a=[].concat(o,u.options.modifiers),s=function(e){return e.name},p=new Set,a.filter((function(e){var t=s(e);if(!p.has(t))return p.add(t),!0})))),$f(u.options.placement)===Tf)&&(u.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var a,s,p,d=Jf(t);return[d.marginTop,d.marginRight,d.marginBottom,d.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" ")),u.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:u,name:t,instance:f,options:n}),a=function(){};c.push(i||a)}})),f.update()},forceUpdate:function(){if(!s){var e=u.elements,t=e.reference,r=e.popper;if(zl(t,r)){u.rects={reference:Yl(t,nl(r),"fixed"===u.options.strategy),popper:Zf(r)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(e){return u.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0,o=0;o<u.orderedModifiers.length;o++){if((n+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==u.reset){var i=u.orderedModifiers[o],a=i.fn,c=i.options,l=void 0===c?{}:c,p=i.name;"function"==typeof a&&(u=a({state:u,options:l,name:p,instance:f})||u)}else u.reset=!1,o=-1}}else console.error(Hl)}},update:(o=function(){return new Promise((function(e){f.forceUpdate(),e(u)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){l(),s=!0}};if(!zl(e,t))return console.error(Hl),f;function l(){c.forEach((function(e){return e()})),c=[]}return f.setOptions(r).then((function(e){!s&&r.onFirstUpdate&&r.onFirstUpdate(e)})),f}}var Rl=Fl({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,u=void 0===a||a,c=Uf(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&s.forEach((function(e){e.addEventListener("scroll",r.update,dl)})),u&&c.addEventListener("resize",r.update,dl),function(){i&&s.forEach((function(e){e.removeEventListener("scroll",r.update,dl)})),u&&c.removeEventListener("resize",r.update,dl)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=El({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,u=r.roundOffsets,c=void 0===u||u,s=Jf(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some((function(e){return s.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var f={placement:$f(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,pl(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,pl(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Xf,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=Ff.reduce((function(e,r){return e[r]=function(e,t,r){var n=$f(e),o=[Yf,Mf].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],u=i[1];return a=a||0,u=(u||0)*o,[Yf,Pf].indexOf(n)>=0?{x:u,y:a}:{x:a,y:u}}(r,t.rects,i),e}),{}),u=a[t.placement],c=u.x,s=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,u=void 0===a||a,c=r.fallbackPlacements,s=r.padding,f=r.boundary,l=r.rootBoundary,p=r.altBoundary,d=r.flipVariations,v=void 0===d||d,h=r.allowedAutoPlacements,g=t.options.placement,m=$f(g),y=c||(m===g||!v?[hl(g)]:function(e){if($f(e)===Tf)return[];var t=hl(e);return[ml(e),t,ml(t)]}(g)),b=[g].concat(y).reduce((function(e,r){return e.concat($f(r)===Tf?Ml(t,{placement:r,boundary:f,rootBoundary:l,padding:s,flipVariations:v,allowedAutoPlacements:h}):r)}),[]),w=t.rects.reference,x=t.rects.popper,j=new Map,_=!0,O=b[0],k=0;k<b.length;k++){var S=b[k],E=$f(S),A=Sl(S)===Cf,M=[Mf,Df].indexOf(E)>=0,D=M?"width":"height",P=Al(t,{placement:S,boundary:f,rootBoundary:l,altBoundary:p,padding:s}),Y=M?A?Pf:Yf:A?Df:Mf;w[D]>x[D]&&(Y=hl(Y));var T=hl(Y),I=[];if(i&&I.push(P[E]<=0),u&&I.push(P[Y]<=0,P[T]<=0),I.every((function(e){return e}))){O=S,_=!1;break}j.set(S,I)}if(_)for(var C=function(e){var t=b.find((function(t){var r=j.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},L=v?3:1;L>0;L--){if("break"===C(L))break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,u=void 0!==a&&a,c=r.boundary,s=r.rootBoundary,f=r.altBoundary,l=r.padding,p=r.tether,d=void 0===p||p,v=r.tetherOffset,h=void 0===v?0:v,g=Al(t,{boundary:c,rootBoundary:s,padding:l,altBoundary:f}),m=$f(t.placement),y=Sl(t.placement),b=!y,w=ol(m),x="x"===w?"y":"x",j=t.modifiersData.popperOffsets,_=t.rects.reference,O=t.rects.popper,k="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,S={x:0,y:0};if(j){if(i||u){var E="y"===w?Mf:Yf,A="y"===w?Df:Pf,M="y"===w?"height":"width",D=j[w],P=j[w]+g[E],Y=j[w]-g[A],T=d?-O[M]/2:0,I=y===Cf?_[M]:O[M],C=y===Cf?-O[M]:-_[M],L=t.elements.arrow,H=d&&L?Zf(L):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=B[E],F=B[A],R=cl(0,_[M],H[M]),N=b?_[M]/2-T-R-z-k:I-R-z-k,U=b?-_[M]/2+T+R+F+k:C+R+F+k,W=t.elements.arrow&&nl(t.elements.arrow),q=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,V=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,X=j[w]+N-V-q,$=j[w]+U-V;if(i){var G=cl(d?al(P,X):P,D,d?il(Y,$):Y);j[w]=G,S[w]=G-D}if(u){var Z="x"===w?Mf:Yf,K="x"===w?Df:Pf,J=j[x],Q=J+g[Z],ee=J-g[K],te=cl(d?al(Q,X):Q,J,d?il(ee,$):ee);j[x]=te,S[x]=te-J}}t.modifiersData[n]=S}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,u=$f(r.placement),c=ol(u),s=[Yf,Pf].indexOf(u)>=0?"height":"width";if(i&&a){var f=function(e,t){return sl("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:fl(e,If))}(o.padding,r),l=Zf(i),p="y"===c?Mf:Yf,d="y"===c?Df:Pf,v=r.rects.reference[s]+r.rects.reference[c]-a[c]-r.rects.popper[s],h=a[c]-r.rects.reference[c],g=nl(i),m=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=v/2-h/2,b=f[p],w=m-l[s]-f[d],x=m/2-l[s]/2+y,j=cl(b,x,w),_=c;r.modifiersData[n]=((t={})[_]=j,t.centerOffset=j-x,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&(qf(n)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),Kf(t.elements.popper,n)?t.elements.arrow=n:console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Al(t,{elementContext:"reference"}),u=Al(t,{altBoundary:!0}),c=Dl(a,n),s=Dl(u,o,i),f=Pl(c),l=Pl(s);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:s,isReferenceHidden:f,hasPopperEscaped:l},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":l})}}]}),Nl="tippy-content",Ul="tippy-arrow",Wl="tippy-svg-arrow",ql={passive:!0,capture:!0},Vl=function(){return document.body};function Xl(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function $l(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function Gl(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Zl(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout((function(){e(n)}),t)};var r}function Kl(e){return[].concat(e)}function Jl(e,t){-1===e.indexOf(t)&&e.push(t)}function Ql(e){return[].slice.call(e)}function ep(){return document.createElement("div")}function tp(e){return["Element","Fragment"].some((function(t){return $l(e,t)}))}function rp(e){return tp(e)?[e]:function(e){return $l(e,"NodeList")}(e)?Ql(e):Array.isArray(e)?e:Ql(document.querySelectorAll(e))}function np(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function op(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function ip(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[n](t,r)}))}function ap(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=null==(n=null==r.getRootNode?void 0:r.getRootNode())?void 0:n.host}return!1}var up={isTouch:!1},cp=0;function sp(){up.isTouch||(up.isTouch=!0,window.performance&&document.addEventListener("mousemove",fp))}function fp(){var e=performance.now();e-cp<20&&(up.isTouch=!1,document.removeEventListener("mousemove",fp)),cp=e}function lp(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var r=t._tippy;t.blur&&!r.state.isVisible&&t.blur()}}var pp,dp=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function vp(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function hp(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function gp(e){return hp("\n %ctippy.js\n\n %c"+hp(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function mp(e){return[gp(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function yp(e,t){var r;e&&!pp.has(t)&&(pp.add(t),(r=console).warn.apply(r,mp(t)))}function bp(e,t){var r;e&&!pp.has(t)&&(pp.add(t),(r=console).error.apply(r,mp(t)))}pp=new Set;var wp={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},xp=Object.assign({appendTo:Vl,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},wp,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),jp=Object.keys(xp);function _p(e){var t=(e.plugins||[]).reduce((function(t,r){var n,o=r.name,i=r.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(n=xp[o])?n:i);return t}),{});return Object.assign({},e,{},t)}function Op(e,t){var r=Object.assign({},t,{content:Gl(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(_p(Object.assign({},xp,{plugins:t}))):jp).reduce((function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t}),{})}(e,t.plugins));return r.aria=Object.assign({},xp.aria,{},r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function kp(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var r,n,o=function(e,t){var r=Object.assign({},e);return t.forEach((function(e){delete r[e]})),r}(xp,Object.keys(wp)),i=(r=o,n=e,!{}.hasOwnProperty.call(r,n));i&&(i=0===t.filter((function(t){return t.name===e})).length),yp(i,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}function Sp(e,t){e.innerHTML=t}function Ep(e){var t=ep();return!0===e?t.className=Ul:(t.className=Wl,tp(e)?t.appendChild(e):Sp(t,e)),t}function Ap(e,t){tp(t.content)?(Sp(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Sp(e,t.content):e.textContent=t.content)}function Mp(e){var t=e.firstElementChild,r=Ql(t.children);return{box:t,content:r.find((function(e){return e.classList.contains(Nl)})),arrow:r.find((function(e){return e.classList.contains(Ul)||e.classList.contains(Wl)})),backdrop:r.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function Dp(e){var t=ep(),r=ep();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=ep();function o(r,n){var o=Mp(t),i=o.box,a=o.content,u=o.arrow;n.theme?i.setAttribute("data-theme",n.theme):i.removeAttribute("data-theme"),"string"==typeof n.animation?i.setAttribute("data-animation",n.animation):i.removeAttribute("data-animation"),n.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?i.setAttribute("role",n.role):i.removeAttribute("role"),r.content===n.content&&r.allowHTML===n.allowHTML||Ap(a,e.props),n.arrow?u?r.arrow!==n.arrow&&(i.removeChild(u),i.appendChild(Ep(n.arrow))):i.appendChild(Ep(n.arrow)):u&&i.removeChild(u)}return n.className=Nl,n.setAttribute("data-state","hidden"),Ap(n,e.props),t.appendChild(r),r.appendChild(n),o(e.props,e.props),{popper:t,onUpdate:o}}Dp.$$tippy=!0;var Pp=1,Yp=[],Tp=[];function Ip(e,t){var r,n,o,i,a,u,c,s,f,l=Op(e,Object.assign({},xp,{},_p((r=t,Object.keys(r).reduce((function(e,t){return void 0!==r[t]&&(e[t]=r[t]),e}),{}))))),p=!1,d=!1,v=!1,h=!1,g=[],m=Zl($,l.interactiveDebounce),y=Pp++,b=(f=l.plugins).filter((function(e,t){return f.indexOf(e)===t})),w={id:y,reference:e,popper:ep(),popperInstance:null,props:l,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(yp(w.state.isDestroyed,vp("setProps")),w.state.isDestroyed)return;I("onBeforeUpdate",[w,t]),V();var r=w.props,n=Op(e,Object.assign({},w.props,{},t,{ignoreAttributes:!0}));w.props=n,q(),r.interactiveDebounce!==n.interactiveDebounce&&(H(),m=Zl($,n.interactiveDebounce));r.triggerTarget&&!n.triggerTarget?Kl(r.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):n.triggerTarget&&e.removeAttribute("aria-expanded");L(),T(),_&&_(r,n);w.popperInstance&&(J(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));I("onAfterUpdate",[w,t])},setContent:function(e){w.setProps({content:e})},show:function(){yp(w.state.isDestroyed,vp("show"));var e=w.state.isVisible,t=w.state.isDestroyed,r=!w.state.isEnabled,n=up.isTouch&&!w.props.touch,o=Xl(w.props.duration,0,xp.duration);if(e||t||r||n)return;if(M().hasAttribute("disabled"))return;if(I("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,A()&&(j.style.visibility="visible");T(),R(),w.state.isMounted||(j.style.transition="none");if(A()){var i=P(),a=i.box,u=i.content;np([a,u],0)}c=function(){var e;if(w.state.isVisible&&!h){if(h=!0,j.offsetHeight,j.style.transition=w.props.moveTransition,A()&&w.props.animation){var t=P(),r=t.box,n=t.content;np([r,n],o),op([r,n],"visible")}C(),L(),Jl(Tp,w),null==(e=w.popperInstance)||e.forceUpdate(),w.state.isMounted=!0,I("onMount",[w]),w.props.animation&&A()&&function(e,t){U(e,t)}(o,(function(){w.state.isShown=!0,I("onShown",[w])}))}},function(){var e,t=w.props.appendTo,r=M();e=w.props.interactive&&t===Vl||"parent"===t?r.parentNode:Gl(t,[r]);e.contains(j)||e.appendChild(j);J(),yp(w.props.interactive&&t===xp.appendTo&&r.nextElementSibling!==j,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){yp(w.state.isDestroyed,vp("hide"));var e=!w.state.isVisible,t=w.state.isDestroyed,r=!w.state.isEnabled,n=Xl(w.props.duration,1,xp.duration);if(e||t||r)return;if(I("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,h=!1,p=!1,A()&&(j.style.visibility="hidden");if(H(),N(),T(),A()){var o=P(),i=o.box,a=o.content;w.props.animation&&(np([i,a],n),op([i,a],"hidden"))}C(),L(),w.props.animation?A()&&function(e,t){U(e,(function(){!w.state.isVisible&&j.parentNode&&j.parentNode.contains(j)&&t()}))}(n,w.unmount):w.unmount()},hideWithInteractivity:function(e){yp(w.state.isDestroyed,vp("hideWithInteractivity")),D().addEventListener("mousemove",m),Jl(Yp,m),m(e)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){yp(w.state.isDestroyed,vp("unmount")),w.state.isVisible&&w.hide();if(!w.state.isMounted)return;Q(),ee().forEach((function(e){e._tippy.unmount()})),j.parentNode&&j.parentNode.removeChild(j);Tp=Tp.filter((function(e){return e!==w})),w.state.isMounted=!1,I("onHidden",[w])},destroy:function(){if(yp(w.state.isDestroyed,vp("destroy")),w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),V(),delete e._tippy,w.state.isDestroyed=!0,I("onDestroy",[w])}};if(!l.render)return bp(!0,"render() function has not been supplied."),w;var x=l.render(w),j=x.popper,_=x.onUpdate;j.setAttribute("data-tippy-root",""),j.id="tippy-"+w.id,w.popper=j,e._tippy=w,j._tippy=w;var O=b.map((function(e){return e.fn(w)})),k=e.hasAttribute("aria-expanded");return q(),L(),T(),I("onCreate",[w]),l.showOnCreate&&te(),j.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()})),j.addEventListener("mouseleave",(function(e){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(D().addEventListener("mousemove",m),m(e))})),w;function S(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===S()[0]}function A(){var e;return!!(null==(e=w.props.render)?void 0:e.$$tippy)}function M(){return s||e}function D(){var e,t,r=M().parentNode;return r?(null==(t=Kl(r)[0])||null==(e=t.ownerDocument)?void 0:e.body)?t.ownerDocument:document:document}function P(){return Mp(j)}function Y(e){return w.state.isMounted&&!w.state.isVisible||up.isTouch||a&&"focus"===a.type?0:Xl(w.props.delay,e?0:1,xp.delay)}function T(){j.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",j.style.zIndex=""+w.props.zIndex}function I(e,t,r){var n;(void 0===r&&(r=!0),O.forEach((function(r){r[e]&&r[e].apply(void 0,t)})),r)&&(n=w.props)[e].apply(n,t)}function C(){var t=w.props.aria;if(t.content){var r="aria-"+t.content,n=j.id;Kl(w.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(r);if(w.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var o=t&&t.replace(n,"").trim();o?e.setAttribute(r,o):e.removeAttribute(r)}}))}}function L(){!k&&w.props.aria.expanded&&Kl(w.props.triggerTarget||e).forEach((function(e){w.props.interactive?e.setAttribute("aria-expanded",w.state.isVisible&&e===M()?"true":"false"):e.removeAttribute("aria-expanded")}))}function H(){D().removeEventListener("mousemove",m),Yp=Yp.filter((function(e){return e!==m}))}function B(e){if(!up.isTouch||!v&&"mousedown"!==e.type){var t=e.composedPath&&e.composedPath()[0]||e.target;if(!w.props.interactive||!ap(j,t)){if(ap(M(),t)){if(up.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else I("onClickOutside",[w,e]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),d=!0,setTimeout((function(){d=!1})),w.state.isMounted||N())}}}function z(){v=!0}function F(){v=!1}function R(){var e=D();e.addEventListener("mousedown",B,!0),e.addEventListener("touchend",B,ql),e.addEventListener("touchstart",F,ql),e.addEventListener("touchmove",z,ql)}function N(){var e=D();e.removeEventListener("mousedown",B,!0),e.removeEventListener("touchend",B,ql),e.removeEventListener("touchstart",F,ql),e.removeEventListener("touchmove",z,ql)}function U(e,t){var r=P().box;function n(e){e.target===r&&(ip(r,"remove",n),t())}if(0===e)return t();ip(r,"remove",u),ip(r,"add",n),u=n}function W(t,r,n){void 0===n&&(n=!1),Kl(w.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,r,n),g.push({node:e,eventType:t,handler:r,options:n})}))}function q(){var e;E()&&(W("touchstart",X,{passive:!0}),W("touchend",G,{passive:!0})),(e=w.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(W(e,X),e){case"mouseenter":W("mouseleave",G);break;case"focus":W(dp?"focusout":"blur",Z);break;case"focusin":W("focusout",Z)}}))}function V(){g.forEach((function(e){var t=e.node,r=e.eventType,n=e.handler,o=e.options;t.removeEventListener(r,n,o)})),g=[]}function X(e){var t,r=!1;if(w.state.isEnabled&&!K(e)&&!d){var n="focus"===(null==(t=a)?void 0:t.type);a=e,s=e.currentTarget,L(),!w.state.isVisible&&$l(e,"MouseEvent")&&Yp.forEach((function(t){return t(e)})),"click"===e.type&&(w.props.trigger.indexOf("mouseenter")<0||p)&&!1!==w.props.hideOnClick&&w.state.isVisible?r=!0:te(e),"click"===e.type&&(p=!r),r&&!n&&re(e)}}function $(e){var t=e.target,r=M().contains(t)||j.contains(t);"mousemove"===e.type&&r||function(e,t){var r=t.clientX,n=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=o.placement.split("-")[0],u=o.modifiersData.offset;if(!u)return!0;var c="bottom"===a?u.top.y:0,s="top"===a?u.bottom.y:0,f="right"===a?u.left.x:0,l="left"===a?u.right.x:0,p=t.top-n+c>i,d=n-t.bottom-s>i,v=t.left-r+f>i,h=r-t.right-l>i;return p||d||v||h}))}(ee().concat(j).map((function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:l}:null})).filter(Boolean),e)&&(H(),re(e))}function G(e){K(e)||w.props.trigger.indexOf("click")>=0&&p||(w.props.interactive?w.hideWithInteractivity(e):re(e))}function Z(e){w.props.trigger.indexOf("focusin")<0&&e.target!==M()||w.props.interactive&&e.relatedTarget&&j.contains(e.relatedTarget)||re(e)}function K(e){return!!up.isTouch&&E()!==e.type.indexOf("touch")>=0}function J(){Q();var t=w.props,r=t.popperOptions,n=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,u=A()?Mp(j).arrow:null,s=i?{getBoundingClientRect:i,contextElement:i.contextElement||M()}:e,f=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(A()){var r=P().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];A()&&u&&f.push({name:"arrow",options:{element:u,padding:3}}),f.push.apply(f,(null==r?void 0:r.modifiers)||[]),w.popperInstance=Rl(s,j,Object.assign({},r,{placement:n,onFirstUpdate:c,modifiers:f}))}function Q(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function ee(){return Ql(j.querySelectorAll("[data-tippy-root]"))}function te(e){w.clearDelayTimeouts(),e&&I("onTrigger",[w,e]),R();var t=Y(!0),r=S(),o=r[0],i=r[1];up.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout((function(){w.show()}),t):w.show()}function re(e){if(w.clearDelayTimeouts(),I("onUntrigger",[w,e]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=Y(!1);t?o=setTimeout((function(){w.state.isVisible&&w.hide()}),t):i=requestAnimationFrame((function(){w.hide()}))}}else N()}}function Cp(e,t){void 0===t&&(t={});var r=xp.plugins.concat(t.plugins||[]);!function(e){var t=!e,r="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;bp(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),bp(r,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),kp(t,r),document.addEventListener("touchstart",sp,ql),window.addEventListener("blur",lp);var n=Object.assign({},t,{plugins:r}),o=rp(e),i=tp(n.content),a=o.length>1;yp(i&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var u=o.reduce((function(e,t){var r=t&&Ip(t,n);return r&&e.push(r),e}),[]);return tp(e)?u[0]:u}function Lp(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Cp.defaultProps=xp,Cp.setDefaultProps=function(e){kp(e,[]),Object.keys(e).forEach((function(t){xp[t]=e[t]}))},Cp.currentInput=up,Object.assign({},Xf,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),Cp.setDefaultProps({render:Dp});Lp('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}');function Hp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hp(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zp(e){var t,r=Object.prototype.toString.call(e);if(t="[object Promise]"===r)return!0;if("[object Function]"!==r)return!1;try{t="function"!=typeof e.subscribe&&"function"==typeof e.then}catch(e){}return t}function Fp(){return Rp.apply(this,arguments)}function Rp(){return(Rp=Na(Ua.mark((function e(){var t,r,n,o,i,a,u,c,s,f=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=f.length>0&&void 0!==f[0]?f[0]:600,r=f.length>1&&void 0!==f[1]?f[1]:400,n=f.length>2?f[2]:void 0,ce(t)||(t=600),t=se(t),ce(r)||(r=400),r=se(r),ra(n)){e.next=9;break}throw new Error("invalid fun");case 9:if((o=document.createElement("div")).style.width="".concat(t,"px"),o.style.height="".concat(r,"px"),(i=document.createElement("div")).style.position="absolute",i.style.top=0,i.style.left=0,i.style.zIndex=-1,i.appendChild(o),(a=document.createElement("div")).style.position="relative",a.appendChild(i),(u=document.createElement("div")).style.position="fixed",u.style.zIndex=-1,u.appendChild(a),Nc(document.querySelector("body"),u),!zp(s=n(o))){e.next=34;break}return e.next=31,s;case 31:c=e.sent,e.next=35;break;case 34:c=s;case 35:return Rc(u),e.abrupt("return",c);case 37:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Np(e){return function(){var t=ka(),r=null,n=null;try{r=e.apply(this,arguments)}catch(e){n=e}return null!==n?t.resolve({state:"error",msg:n}):zp(r)?r.then((function(e){t.resolve({state:"success",msg:e})})).catch((function(e){"cancelled"===Oo(e,"reason")?t.resolve({state:"cancelled",msg:""}):t.resolve({state:"error",msg:e})})):t.resolve({state:"success",msg:r}),t}}function Up(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=0,r=[];Gn(e)&&(e=0),e=$n(e);var n=Cn();function o(){if(r.length>0)return t+=1,r.splice(0,1)[0];return null}function i(){(t-=1)<0&&(t=0),r.length>0&&n.emit("message",r)}function a(o){r.push(o),(e<=0||t<e)&&n.emit("message",r)}function u(){t=0,r=[]}return n.get=o,n.cb=i,n.push=a,n.clear=u,n}function Wp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function r(e,t){var r=null;zo(e)||(e=0),e=$n(e),me(t)||(t=!1);var n=Up(e);return n.on("message",function(){var e=Na(Ua.mark((function e(t){var r,o,i,a,u;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.get()){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,wc(1);case 5:if(o=Oo(r,"id"),i=Oo(r,"fun"),a=Oo(r,"input"),ra(i)){e.next=12;break}u={state:"error",msg:"fun is not function"},e.next=15;break;case 12:return e.next=14,Np(i).apply(void 0,ta(a));case 14:u=e.sent;case 15:n.emit(o,u),n.cb();case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),function(e){var o=ka(),i=Sc();r=i;for(var a=arguments.length,u=new Array(a>1?a-1:0),c=1;c<a;c++)u[c-1]=arguments[c];var s={id:i,fun:e,input:u};return n.push(s),n.once(i,(function(e){t?i===r?"success"===e.state?o.resolve(e.msg):o.reject(e.msg):o.reject({reason:"cancelled"}):"success"===e.state?o.resolve(e.msg):o.reject(e.msg)})),o}}return new r(e,t)}function qp(e,t){Sa()?E(e)?Bc()?function(e,t){window.navigator.msSaveOrOpenBlob(t,e)}(e,t):function(e,t){var r=window.URL.createObjectURL(t),n=document.createElement("a");n.href=r,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(r)}(e,t):console.log("no filename"):console.log("no window")}function Vp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";function r(){if(!(this instanceof r))return new r;this.SheetNames=[],this.Sheets={}}var n=new r;return n.SheetNames.push(t),n.Sheets[t]=e,n}function Xp(){var e=_c();return m.default||e.XLSX||e.xlsx}function $p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";if(!Jn(e)&&!vc(e))return{error:"data is not array or element"};E(t)||(t="data");var r=null;try{var n=Xp(),o=n.utils,i=null;Jn(e)?i=o.aoa_to_sheet(e):vc(e)&&(i=o.table_to_sheet(e)),r=Vp(i,t)}catch(e){return{error:e}}return r}function Gp(e){if(!io(e))return[];var t=[];return et(e,(function(e){var r=Ze(e);t=[].concat(ta(t),ta(r)),t=Rs(t)})),t}function Zp(e,t){if(!io(e))return[];if(io(t)||(t=Gp(e)),0===Tn(t))return[];var r=!1;if(et(e,(function(e){Hn(e)||(r=!0)})),r)return[];var n=[];return et(e,(function(e){var r=wi(t,(function(t){return ye(e[t])?e[t]?"true":"false":S(e[t])||ce(e[t])?e[t]:Ya(e[t])}));n.push(r)})),n}function Kp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!io(e))return[];io(t)||(t=Gp(e)),Hn(r)||(r={},et(t,(function(e){r[e]=e})));var n=!1;if(et(e,(function(e){Hn(e)||(n=!0)})),n)return[];var o=wi(t,(function(e){return Oo(r,e)})),i=Zp(e,t),a=Cs([o],i);return a}function Jp(){var e=_c();return m.default||e.XLSX||e.xlsx}function Qp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data",r=arguments.length>2?arguments[2]:void 0;if(!E(e)){var n="no filename";return console.log(n,e),{error:n}}if(E(t)||(t="data"),!Jn(r)&&!vc(r)){var o="data is not array or element";return console.log(o,r),{error:o}}Jn(r)&&Hn(Oo(r,0,null))&&(r=Kp(r));var i=$p(r,t);if(Oo(i,"error"))return console.log(i.error),i.error;var a=Jp();if(Sa()){var u=a.write(i,{bookType:"xlsx",bookSST:!1,type:"array"});qp(e,new Blob([u]))}else a.writeFile(i,e);return"ok"}function ed(){return(ed=Na(Ua.mark((function e(t){var r,n,o,i,a=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:"data",n=a.length>2?a[2]:void 0,io(o=a.length>3?a[3]:void 0)||(o=["https://cdn.jsdelivr.net/npm/xlsx@0.x/dist/xlsx.full.min.js"]),e.next=6,Qc(o);case 6:if(i=Qp(t,r,n),""===Oo(i,"error","")){e.next=9;break}return e.abrupt("return",Promise.reject(i.error));case 9:return e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function td(e){return xa(e)?new Blob([e]):new Blob}function rd(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!Hn(e))return{};if(!io(t))return{};var n={};return et(t,(function(t){n[t]=Oo(e,t,r)})),n}function nd(e,t){if(!Ln(e))return{};if(!io(t))return{};var r={};return et(t,(function(t){Bn(e,t)&&(r[t]=Oo(e,t))})),r}function od(e){return E(e)?Ui(e):""}function id(e,t){return Jn(e)&&Jn(t)?e.length!==t.length?[]:wi(e,(function(r,n){return xf(e[n],t[n])})):[]}function ad(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=[];if(!Jn(e)&&!Ln(e))return e=t(e,null,[]);function o(e){if(Jn(e))return lo(Tn(e));if(Ln(e)){var t=Object.getOwnPropertyNames(e),n=null;return r&&(n=Object.getOwnPropertySymbols(e)),Jn(t)||(t=[]),Jn(n)||(n=[]),[].concat(ta(t),ta(n))}return e}function i(e,r){if(Jn(e))return o(e).map((function(r){var o=e[r],a=vn(n);return n.push(r),o=i(o=t(o,r,a)),n.pop(),o}));if(Ln(e)){var a=o(e),u={};return a.map((function(r){var o=e[r],a=vn(n);n.push(r),o=i(o=t(o,r,a)),n.pop(),u[r]=o})),u}return e}return i(e)}function ud(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};$e(t)||(t=function(e){return e});var n=Oo(r,"force",!1);return ye(n)||(n=!1),ad(e,t,n)}function cd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cd(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fd(e){return!!b.default.existsSync(e)&&(!b.default.lstatSync(e).isFile()&&!b.default.lstatSync(e).isSymbolicLink())}function ld(e){if(!b.default.existsSync(e))return{success:"folder does not exist: "+e};if(!fd(e))return{error:"input path is not folder: "+e};try{b.default.readdirSync(e).forEach((function(t){var r=e+"/"+t;if(b.default.lstatSync(r).isDirectory())ld(r);else try{b.default.unlinkSync(r)}catch(e){}}))}catch(e){return{error:e}}try{b.default.rmdirSync(e)}catch(e){return{error:e}}return{success:"done: "+e}}function pd(e){if(fd(e))return{success:"input folder is already exists: "+e};if(b.default.existsSync(e))return{error:"input path already exists: "+e};try{b.default.mkdirSync(e,{recursive:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function dd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=1;function n(e){var o=[],i=b.default.readdirSync(e);return et(i,(function(i){var a=w.default.resolve(e,i),u=null;try{u=b.default.statSync(a)}catch(e){}u&&u.isDirectory()?(o.push({isFolder:!0,level:r,path:a,name:w.default.basename(a)}),((r+=1)<=t||null===t)&&(o=o.concat(n(a))),r-=1):o.push({isFolder:!1,level:r,path:a,name:w.default.basename(a)})})),o}return n(e)}function vd(e){return!!b.default.existsSync(e)&&(!b.default.lstatSync(e).isDirectory()&&!b.default.lstatSync(e).isSymbolicLink())}function hd(e){return"[object Uint16Array]"===Object.prototype.toString.call(e)}function gd(e){if(!(O(e)||Ca(e)||xa(e)||hd(e)))return null;try{if(e.byteLength)return e.byteLength}catch(e){}try{if(e.length)return e.length}catch(e){}try{if(e.size)return e.size}catch(e){}return null}function md(e,t){return E(e)&&Vi(t)?Xi(e,e.length-t):""}function yd(e){if(!E(e))return{path:"",isRoot:!1};for(;e.indexOf("\\\\")>=0;)e=e.replace("\\\\","\\");for(;e.indexOf("//")>=0;)e=e.replace("//","/");if(":"===$i(e,1))return{path:"".concat(e,"\\"),isRoot:!0};if("\\"===$i(e,1)){var t=md(e,1);return":"===$i(t,1)?{path:e,isRoot:!0}:{path:t,isRoot:!1}}if("/"===$i(e,1)){var r=md(e,1);return 0===Tn(r)?{path:e,isRoot:!0}:{path:r,isRoot:!1}}return{path:e,isRoot:!1}}function bd(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r='"',n=t?"\ufeff":"";return et(e,(function(e){var t=[];et(e,(function(e){S(e)?(e=Ga(e,"\r\n",""),e=Ga(e,"\r",""),e=Ga(e,"\n",""),e="".concat(r).concat(e).concat(r)):e=ye(e)?e?"true":"false":Za(e),t.push(e)})),n+=Xc(t,",")+"\r\n"})),n}function wd(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!io(e)){var r="no data";return{error:r}}var n=null;try{n=bd(e,t)}catch(e){return{error:e}}return n}Lp(".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}");var xd=function(e,t){return zn(t,(function(t){return e[t]}))};var jd=function(e){return null==e?[]:xd(e,Ze(e))};function _d(){var e=_c();return m.default||e.XLSX||e.xlsx}function Od(e){return ye(e)?e?"true":"false":Za(e)}function kd(e,t){var r=[];return e.SheetNames.forEach((function(n){var o=_d().utils.sheet_to_json(e.Sheets[n],{header:"A",defval:"",blankrows:!0});o=wi(o,(function(e){return jd(e)})),t&&(o=wi(o,(function(e){return wi(e,(function(e){return Od(e)}))}))),r.push({sheetname:n,data:o})})),r}function Sd(e,t){var r=Oo(t,"fmt","ltdt");if(!Ji(["ltdt","csv","array"],r))return{error:"opt.fmt is not is not any one of 'ltdt', 'csv', 'array'"};var n,o=Oo(t,"valueToString",!0);if(!ye(o))return{error:"opt.valueToString is not Boolean"};try{n=_d().read(e,{type:"buffer"})}catch(e){return console.log("error: ",e),{error:"can not read data from u8a"}}var i=null;try{"ltdt"===r?i=function(e,t){var r=[];return e.SheetNames.forEach((function(n){var o=_d().utils.sheet_to_json(e.Sheets[n]);t&&(o=wi(o,(function(e){return et(e,(function(t,r){e[r]=Od(t)})),e}))),r.push({sheetname:n,data:o})})),r}(n,o):"array"===r?i=kd(n,o):"csv"===r&&(i=function(e,t){var r=kd(e,t);return et(r,(function(e,t){r[t].data=wd(e.data,!1)})),r}(n,o))}catch(e){return console.log("error: ",e),{error:"can not convert data"}}return i}function Ed(){return(Ed=Na(Ua.mark((function e(t){var r,n,o,i=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:"ltdt",io(n=i.length>3?i[3]:void 0)||(n=["https://cdn.jsdelivr.net/npm/xlsx@0.x/dist/xlsx.full.min.js"]),e.next=6,Qc(n);case 6:if(o=Sd(t,r),""===Oo(o,"error","")){e.next=9;break}return e.abrupt("return",Promise.reject(o.error));case 9:return e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ad(e){if(!E(e))return"";var t=yd(e);if(t.isRoot)return t.path;var r=t.path;try{r=r.split("\\").pop().split("/").pop()}catch(e){}return r}function Md(){var e=_c();return m.default||e.XLSX||e.xlsx}var Dd=function(e,t,r){var n=null==e?0:e.length;return n?(t=r||void 0===t?1:ie(t),xi(e,0,(t=n-t)<0?0:t)):[]};var Pd=4294967295,Yd=Math.min;var Td=function(e,t){if((e=ie(e))<1||e>9007199254740991)return[];var r=Pd,n=Yd(e,Pd);t=Qe(t),e-=Pd;for(var o=je(n,t);++r<e;)t(r);return o};function Id(e){var t="";return"years"===e?t="YYYY":"months"===e?t="YYYY-MM":"days"===e?t="YYYY-MM-DD":"hours"===e?t="YYYY-MM-DDTHH":"minutes"===e?t="YYYY-MM-DDTHH:mm":"seconds"===e&&(t="YYYY-MM-DDTHH:mm:ss"),t}function Cd(e,t){var r="";"years"===t?r="-01-01T00:00:00":"months"===t?r="-01T00:00:00":"days"===t?r="T00:00:00":"hours"===t?r=":00:00":"minutes"===t&&(r=":00");return d.default(e+r,"YYYY-MM-DDTHH:mm:ss")}function Ld(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"days";if(!E(e))return null;if(!E(t))return null;var r=Cd(e,t),n=Id(t),o=r.format(n),i=e===o;return i?r:null}function Hd(e){if(!E(e))return!1;var t="YYYY-MM-DDTHH:mm:ss";return e===d.default(e,t).format(t)}function Bd(e){return Hd(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm"):""}function zd(){var e=_c();return x.default||e.UAParser}function Fd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=zd(),r=(S(e)?new t(e):new t).getResult();return{browsername:r.browser.name,browserversion:r.browser.version,engineinfor:r.engine.name+r.engine.version,platform:r.os.name+r.os.version,devicetype:Oo(r.device,"type",""),cpuarchitecture:Oo(r.cpu,"architecture","")}}function Rd(){return(Rd=Na(Ua.mark((function e(){var t,r,n,o=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:null,io(r=o.length>1?o[1]:void 0)||(r=["https://cdn.jsdelivr.net/npm/ua-parser-js@0.7.28/dist/ua-parser.min.js"]),e.next=5,Qc(r);case 5:return n=Fd(t),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Nd(){return _c().html2canvas}function Ud(e,t){var r=_c().canvg.Canvg,n=e.querySelectorAll("svg");et(n,(function(e){var n=se(e.getAttribute("width")),o=se(e.getAttribute("height"));if(n<=0)return console.log("svg width <=0"),!0;if(o<=0)return console.log("svg height <=0"),!0;var i=document.createElement("canvas");i.width=n*t,i.height=o*t;var a=i.getContext("2d");r.fromString(a,e.parentNode.innerHTML,{ignoreDimensions:!0,scaleWidth:i.width,scaleHeight:i.height}).start();var u=new Image;u.src=i.toDataURL("image/png"),u.style.width="".concat(n,"px"),u.style.height="".concat(o,"px"),e.parentNode.appendChild(u),e.parentNode.removeChild(e)}))}function Wd(e){return qd.apply(this,arguments)}function qd(){return(qd=Na(Ua.mark((function e(t){var r,n,o,i,a,u,c,s,f,l,p=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=p.length>1&&void 0!==p[1]?p[1]:{},vc(t)){e.next=3;break}return e.abrupt("return",Promise.reject("invalid ele"));case 3:if(n=Oo(r,"scale",1),Ki(n)){e.next=6;break}return e.abrupt("return",Promise.reject("opt.scale is not number"));case 6:if(!(n<1)){e.next=8;break}return e.abrupt("return",Promise.reject("opt.scale can not less then 1"));case 8:if("image/jpeg"===(o=Oo(r,"picType","image/jpeg"))||"image/png"===o){e.next=11;break}return e.abrupt("return",Promise.reject("opt.picType is not image/jpeg or image/png"));case 11:if(i=Oo(r,"toBase64",!0),me(i)){e.next=14;break}return e.abrupt("return",Promise.reject("opt.toBase64 is not boolean"));case 14:return a=t.cloneNode(!0),Bc()&&Ud(a,n),(u=document.createElement("div")).style.position="absolute",u.style.top=0,u.style.left=0,u.style.zIndex=-1,u.appendChild(a),(c=document.createElement("div")).style.position="relative",c.appendChild(u),Nc(document.querySelector("body"),c),s=Nd(),e.next=30,s(u,{logging:!1,scale:n,x:0,y:0});case 30:return f=e.sent,l=f,i&&(l=f.toDataURL(o,1)),Rc(c),e.abrupt("return",l);case 35:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vd(){return(Vd=Na(Ua.mark((function e(t){var r,n,o,i=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},io(n=i.length>2?i[2]:void 0)||(n=["https://cdn.jsdelivr.net/npm/canvg@3.0.7/lib/umd.js","https://cdn.jsdelivr.net/npm/html2canvas@1.3.2/dist/html2canvas.min.js"]),e.next=5,Qc(n);case 5:return o=Wd(t,r),e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xd(e){var t=null;if(!E(e))return"";var r=function(){var e=_c();return j.default||e.htmlparser||e.Tautologistics.NodeHtmlParser}(),n=new r.DefaultHandler((function(e,r){e&&(t=e)}));if(new r.Parser(n).parseComplete(e),null!==t)return t;var o=[];return function e(t){et(t,(function(t){Tn(t.children)>0&&e(t.children),"text"===t.type&&o.push(t.data)}))}(n.dom),o=Xc(o,"")}function $d(){return($d=Na(Ua.mark((function e(t,r){var n;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return io(r)||(r=["https://cdn.jsdelivr.net/npm/htmlparser@1.7.7/lib/htmlparser.min.js"]),e.next=3,Qc(r);case 3:return e.next=5,Xd(t);case 5:return n=e.sent,e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Gd=Array.prototype.reverse;var Zd=function(e){return null==e?e:Gd.call(e)},Kd="in x-range",Jd="out of x-range",Qd="order list",ev="reverse order list";function tv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Tn(e)<=0)return[];var r=Oo(t,"keyX");E(r)||(r="x");var n=Oo(t,"keyY");E(n)||(n="y");var o=[];return et(e,(function(e){var t=null,i=null;Jn(e)&&Tn(e)>=2?(t=Oo(e,0),i=Oo(e,1)):(t=Oo(e,r,null),i=Oo(e,n,null)),ce(t)&&ce(i)&&(t=re(t),i=re(i),o.push({x:t,y:i}))})),o}function rv(e){for(var t=!0,r=!0,n=1;n<Tn(e);n++){var o=e[n-1],i=e[n];if(t&&o.x>i.x&&(t=!1),r&&o.x<i.x&&(r=!1),o.x===i.x)return{err:"x can not be equal: i=".concat(n,", x=").concat(o.x)}}return t?Qd:r?ev:"no"}function nv(e,t){var r,n;return r=e[0].x,n=e[Tn(e)-1].x,t<r?{err:Jd,msg:"x[".concat(t,"] less than lower limit[").concat(r,"]"),data:{ps:e,x:t,xmin:r,xmax:n}}:t>n?{err:Jd,msg:"x[".concat(t,"] greater than upper limit[").concat(n,"]"),data:{ps:e,x:t,xmin:r,xmax:n}}:Kd}function ov(e,t){var r=nv(e,t);if(r!==Kd)return r;for(var n=null,o=1;o<Tn(e);o++){var i=e[o-1],a=e[o];if(i.x<=t&&t<=a.x){n=((t-i.x)*a.y+(a.x-t)*i.y)/(a.x-i.x);break}}return null===n?{err:Jd}:n}function iv(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Oo(r,"xMin");if(Ki(n)){if(n>e[0].x)return{err:"xMin=".concat(n," > ps[0].x=").concat(e[0].x)};if(n===e[0].x);else{var o={x:n,y:e[0].y};e=[o].concat(ta(e))}}var i=Oo(r,"xMax");if(Ki(i)){if(i<e[Tn(e)-1].x)return{err:"xMax=".concat(i," < ps[size(ps)-1].x=").concat(e[Tn(e)-1].x)};if(i===e[Tn(e)-1].x);else{var a={x:i,y:e[Tn(e)-1].y};e=[].concat(ta(e),[a])}}var u=nv(e,t);if(u!==Kd)return u;for(var c=null,s=0;s<Tn(e);s++){var f=Oo(e,s-1,null),l=Oo(e,s,null),p=Oo(e,s+1,null),d=l.x;f&&(d=(f.x+l.x)/2);var v=l.x;if(p&&(v=(p.x+l.x)/2),d<=t&&t<=v){c=l.y;break}}return null===c?{err:Jd}:c}function av(e,t){var r=nv(e,t);if(r!==Kd)return r;for(var n=null,o=1;o<Tn(e);o++){var i=e[o-1],a=e[o],u=i.x,c=a.x;if(u<=t&&t<=c){n=a.y;break}}return null===n?{err:Jd}:n}function uv(e){return!!fe(e)&&$n(e)<=0}function cv(e){return!!ce(e)&&se(e)<=0}function sv(e){return!!ce(e)&&se(e)>=0}function fv(e){return!!E(e)&&!(null===e.match(/^.*[A-Z]+.*$/))}function lv(e){return!!E(e)&&!(null===e.match(/^.*[a-z]+.*$/))}function pv(e){if(!E(e))return!1;var t="YYYY-MM-DDTHH:mm:ss.SSS";return e===d.default(e,t).format(t)}function dv(e){return"Z"===$i(e,1)?(e=md(e,1),"".concat(e,"+00:00")):e}var vv={checkTZ:function(e){var t;return"Z"===(t=$i(e,1))||(t=$i(e,6),!!/[+|-]\d\d:\d\d/.test(t))},delTZ:function(e){return md(e,"Z"===$i(e,1)?1:6)},normTZ:dv,sepTZ:function(e){var t=dv(e);return{t:md(t,6),tz:$i(t,6)}}};function hv(e){if(!E(e))return!1;if(!vv.checkTZ(e))return!1;var t=vv.delTZ(e),r="YYYY-MM-DDTHH:mm:ss.SSS";return t===d.default(t,r).format(r)}function gv(e){if(!E(e))return!1;if(!vv.checkTZ(e))return!1;var t=vv.delTZ(e),r="YYYY-MM-DDTHH:mm:ss";return t===d.default(t,r).format(r)}function mv(e,t){return io(e)&&io(t)&&io(t[0])?wi(t,(function(t){var r=Kn(e,t);return et(r,(function(e,t){void 0===e&&(r[t]="")})),r})):[]}function yv(){return d.default().format("YYYY-MM-DDTHH:mm:ss.SSSZ")}var bv=function(e){return function(t,r,n){var o=Object(t);if(!Ge(t)){var i=yi(r);t=Ze(t),r=function(e){return i(o[e],e,o)}}var a=e(t,r,n);return a>-1?o[i?t[a]:a]:void 0}},wv=Math.max;var xv=bv((function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ie(r);return o<0&&(o=wv(n+o,0)),_i(e,yi(t),o)}));var jv=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0};var _v=function(e,t){var r=!0;return Ke(e,(function(e,n,o){return r=!!t(e,n,o)})),r};var Ov=function(e,t,r){var n=Ae(e)?jv:_v;return r&&fo(e,t,r)&&(t=void 0),n(e,yi(t))};var kv=function(e,t,r,n){var o=-1,i=Ls,a=!0,u=e.length,c=[],s=t.length;if(!u)return c;r&&(t=zn(t,Le(r))),n?(i=Hs,a=!1):t.length>=200&&(i=Vo,a=!1,t=new Wo(t));e:for(;++o<u;){var f=e[o],l=null==r?f:r(f);if(f=n||0!==f?f:0,a&&l==l){for(var p=s;p--;)if(t[p]===l)continue e;c.push(f)}else i(t,l,n)||c.push(f)}return c},Sv=la((function(e,t){var r=ec(t);return gf(r)&&(r=void 0),gf(e)?kv(e,Ao(t,1,gf,!0),yi(r)):[]}));var Ev=function(e,t,r){return e&&e.length?(t=r||void 0===t?1:ie(t),xi(e,0,t<0?0:t)):[]};var Av=function(e){var t=null==e?0:e.length;return t?xi(e,1,t):[]};function Mv(e){if(!E(e))return"";var t=he.parse(e);return pe.stringify(t)}function Dv(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!E(e))return"";if(!E(t))return"";if(!ye(r))return"";var n=ve.encrypt(e,t),o="";if(r)o=n.toString();else{var i=n.toString(),a=pe.parse(i);o=a.toString(ge)}return o}var Pv=L((function(e,t){var r;e.exports=(r=le,function(){if("function"==typeof ArrayBuffer){var e=r.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=e[o]<<24-o%4*8;t.call(this,n,r)}else t.apply(this,arguments)}).prototype=e}}(),r.lib.WordArray)}));function Yv(e){return xa(e)?Pv.create(e).toString(pe):""}function Tv(e){return hd(e)?new Uint8Array(e):new Uint8Array}function Iv(e){return hd(e)?Yv(Tv(e)):""}var Cv="[Uint8Array]::";var Lv="[Uint16Array]::";var Hv={tagU8A:Cv,u8arr2b64:function(e){return xa(e)?Cv+Yv(e):e},b642u8arr:function(e){return S(e)&&Xi(e,Cv.length)===Cv?wa(e=Gi(e,Cv.length)):e},tagU16A:Lv,u16arr2b64:function(e){return hd(e)?Lv+Iv(e):e},b642u16arr:function(e){return S(e)&&Xi(e,Lv.length)===Lv?_a(e=Gi(e,Lv.length)):e}};var Bv=function(e){if(!Z(e))return!1;var t=G(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!cc(e)};function zv(e){if(!Ln(e))return{results:"",binarys:[]};if(to(e))return{results:"",binarys:[]};var t="",r=[];try{var n=-1;t=JSON.stringify(e,(function(e,t){if(xa(t)){var o="[Uint8Array]::".concat(n+=1);return r.push(t),o}if(hd(t)){var i="[Uint16Array]::".concat(n+=1);return r.push(t),i}if(O(t)){var a="[ArrayBuffer]::".concat(n+=1);return r.push(t),a}return Bv(t)&&(t=t.toString()),t}))}catch(e){}return{results:t,binarys:r}}function Fv(e){if(!E(e))return new Uint8Array;var t;try{t=wa(Mv(e))}catch(e){return new Uint8Array}return t}function Rv(){var e=_c();return _.default||e.Tesseract}function Nv(e){return Uv.apply(this,arguments)}function Uv(){return(Uv=Na(Ua.mark((function e(t){var r,n,o,i,a,u,c,s=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=s.length>1&&void 0!==s[1]?s[1]:{},E(t)){e.next=3;break}return e.abrupt("return",Promise.reject("img is not effective string"));case 3:return E(n=Oo(r,"lang"))||(n="eng"),o=Rv(),i=o.createWorker(),e.next=9,i.load();case 9:return e.next=11,i.loadLanguage(n);case 11:return e.next=13,i.initialize(n);case 13:if(!E(a=Oo(r,"whitelist"))){e.next=17;break}return e.next=17,i.setParameters({tessedit_char_whitelist:a});case 17:return e.next=19,i.recognize(t);case 19:return u=e.sent,c=u.data.text,e.next=23,i.terminate();case 23:return e.abrupt("return",c);case 24:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wv(){return(Wv=Na(Ua.mark((function e(t){var r,n,o,i=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},io(n=i.length>2?i[2]:void 0)||(n=["https://cdn.jsdelivr.net/npm/tesseract.js@2.1.5/dist/tesseract.min.js"]),e.next=5,Qc(n);case 5:return e.next=7,Nv(t,r);case 7:return o=e.sent,e.abrupt("return",o);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if(!ra(e))return null;function r(e,t){return eo(e)||Qn(e)?t:Oo(e,"data",null)||e}return ra(t)||(t=function(){}),function(){var n=ka(),o=t({mode:"before",data:arguments});return(eo(o)||Qn(o))&&(o=arguments),e.apply(void 0,ta(o)).then((function(e){e=r(t({mode:"afterThen",data:e}),e),n.resolve(e)})).catch((function(e){e=r(t({mode:"afterCatch",data:e}),e),n.reject(e)})),n}}var Vv=Math.floor;var Xv=function(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=Vv(t/2))&&(e+=e)}while(t);return r};var $v=function(e,t,r){return t=(r?fo(e,t,r):void 0===t)?1:ie(t),Xv(Un(e),t)};var Gv=Vn("floor");L((function(e,t){var r,n,o,i,a,u,c;e.exports=(o=(n=c=le).lib,i=o.Base,a=o.WordArray,(u=n.x64={}).Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),u.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=r?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var o=e[n];r.push(o.high),r.push(o.low)}return a.create(r,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}}),c)}));var Zv=L((function(e,t){var r;e.exports=(r=le,function(){var e=r,t=e.lib.Hasher,n=e.x64,o=n.Word,i=n.WordArray,a=e.algo;function u(){return o.create.apply(o,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],s=[];!function(){for(var e=0;e<80;e++)s[e]=u()}();var f=a.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],u=r[4],f=r[5],l=r[6],p=r[7],d=n.high,v=n.low,h=o.high,g=o.low,m=i.high,y=i.low,b=a.high,w=a.low,x=u.high,j=u.low,_=f.high,O=f.low,k=l.high,S=l.low,E=p.high,A=p.low,M=d,D=v,P=h,Y=g,T=m,I=y,C=b,L=w,H=x,B=j,z=_,F=O,R=k,N=S,U=E,W=A,q=0;q<80;q++){var V,X,$=s[q];if(q<16)X=$.high=0|e[t+2*q],V=$.low=0|e[t+2*q+1];else{var G=s[q-15],Z=G.high,K=G.low,J=(Z>>>1|K<<31)^(Z>>>8|K<<24)^Z>>>7,Q=(K>>>1|Z<<31)^(K>>>8|Z<<24)^(K>>>7|Z<<25),ee=s[q-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,oe=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),ie=s[q-7],ae=ie.high,ue=ie.low,ce=s[q-16],se=ce.high,fe=ce.low;X=(X=(X=J+ae+((V=Q+ue)>>>0<Q>>>0?1:0))+ne+((V+=oe)>>>0<oe>>>0?1:0))+se+((V+=fe)>>>0<fe>>>0?1:0),$.high=X,$.low=V}var le,pe=H&z^~H&R,de=B&F^~B&N,ve=M&P^M&T^P&T,he=D&Y^D&I^Y&I,ge=(M>>>28|D<<4)^(M<<30|D>>>2)^(M<<25|D>>>7),me=(D>>>28|M<<4)^(D<<30|M>>>2)^(D<<25|M>>>7),ye=(H>>>14|B<<18)^(H>>>18|B<<14)^(H<<23|B>>>9),be=(B>>>14|H<<18)^(B>>>18|H<<14)^(B<<23|H>>>9),we=c[q],xe=we.high,je=we.low,_e=U+ye+((le=W+be)>>>0<W>>>0?1:0),Oe=me+he;U=R,W=N,R=z,N=F,z=H,F=B,H=C+(_e=(_e=(_e=_e+pe+((le+=de)>>>0<de>>>0?1:0))+xe+((le+=je)>>>0<je>>>0?1:0))+X+((le+=V)>>>0<V>>>0?1:0))+((B=L+le|0)>>>0<L>>>0?1:0)|0,C=T,L=I,T=P,I=Y,P=M,Y=D,M=_e+(ge+ve+(Oe>>>0<me>>>0?1:0))+((D=le+Oe|0)>>>0<le>>>0?1:0)|0}v=n.low=v+D,n.high=d+M+(v>>>0<D>>>0?1:0),g=o.low=g+Y,o.high=h+P+(g>>>0<Y>>>0?1:0),y=i.low=y+I,i.high=m+T+(y>>>0<I>>>0?1:0),w=a.low=w+L,a.high=b+C+(w>>>0<L>>>0?1:0),j=u.low=j+B,u.high=x+H+(j>>>0<B>>>0?1:0),O=f.low=O+F,f.high=_+z+(O>>>0<F>>>0?1:0),S=l.low=S+N,l.high=k+R+(S>>>0<N>>>0?1:0),A=p.low=A+W,p.high=E+U+(A>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(f),e.HmacSHA512=t._createHmacHelper(f)}(),r.SHA512)}));function Kv(e,t){return E(e)&&E(t)?function(e,t){if(e=e.replace(/\s+/g,""),t=t.replace(/\s+/g,""),!e.length&&!t.length)return 1;if(!e.length||!t.length)return 0;if(e===t)return 1;if(1===e.length&&1===t.length)return 0;if(e.length<2||t.length<2)return 0;for(var r=new Map,n=0;n<e.length-1;n++){var o=e.substring(n,n+2),i=r.has(o)?r.get(o)+1:1;r.set(o,i)}for(var a=0,u=0;u<t.length-1;u++){var c=t.substring(u,u+2),s=r.has(c)?r.get(c):0;s>0&&(r.set(c,s-1),a++)}return 2*a/(e.length+t.length-2)}(e,t):0}var Jv=L((function(e,t){e.exports=function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==C?C:"undefined"!=typeof self?self:{},t={exports:{}},r=Math.floor,n=Math.max,o=Math.min,i=function(e,t){return t?2*e/t:1},a=function(e,t){var r,n,i,a,u,c;for(u=[e.length,t.length],r=a=0,c=o(n=u[0],i=u[1]);0<=c?a<c:a>c;r=0<=c?++a:--a){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return n-i},u=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c=function(){function e(e,t,r,n){this.isjunk=e,null==t&&(t=""),null==r&&(r=""),this.autojunk=null==n||n,this.a=this.b=null,this.setSeqs(t,r)}return e.prototype.setSeqs=function(e,t){return this.setSeq1(e),this.setSeq2(t)},e.prototype.setSeq1=function(e){if(e!==this.a)return this.a=e,this.matchingBlocks=this.opcodes=null},e.prototype.setSeq2=function(e){if(e!==this.b)return this.b=e,this.matchingBlocks=this.opcodes=null,this.fullbcount=null,this._chainB()},e.prototype._chainB=function(){var e,t,n,o,i,a,c,s,f,l,p,d,v,h;for(e=this.b,this.b2j=t={},o=l=0,d=e.length;l<d;o=++l)n=e[o],(u(t,n)?t[n]:t[n]=[]).push(o);if(a={},i=this.isjunk)for(p=0,v=(h=Object.keys(t)).length;p<v;p++)i(n=h[p])&&(a[n]=!0,delete t[n]);if(f={},c=e.length,this.autojunk&&c>=200)for(n in s=r(c/100)+1,t)t[n].length>s&&(f[n]=!0,delete t[n]);return this.isbjunk=function(e){return u(a,e)},this.isbpopular=function(e){return u(f,e)}},e.prototype.findLongestMatch=function(e,t,r,n){var o,i,a,c,s,f,l,p,d,v,h,g,m,y,b,w,x,j,_,O,k;for(o=(w=[this.a,this.b,this.b2j,this.isbjunk])[0],i=w[1],a=w[2],p=w[3],c=(x=[e,r,0])[0],s=x[1],f=x[2],v={},l=m=e;e<=t?m<t:m>t;l=e<=t?++m:--m){for(g={},y=0,b=(j=u(a,o[l])?a[o[l]]:[]).length;y<b;y++)if(!((d=j[y])<r)){if(d>=n)break;(h=g[d]=(v[d-1]||0)+1)>f&&(c=(_=[l-h+1,d-h+1,h])[0],s=_[1],f=_[2])}v=g}for(;c>e&&s>r&&!p(i[s-1])&&o[c-1]===i[s-1];)c=(O=[c-1,s-1,f+1])[0],s=O[1],f=O[2];for(;c+f<t&&s+f<n&&!p(i[s+f])&&o[c+f]===i[s+f];)f++;for(;c>e&&s>r&&p(i[s-1])&&o[c-1]===i[s-1];)c=(k=[c-1,s-1,f+1])[0],s=k[1],f=k[2];for(;c+f<t&&s+f<n&&p(i[s+f])&&o[c+f]===i[s+f];)f++;return[c,s,f]},e.prototype.getMatchingBlocks=function(){var e,t,r,n,o,i,u,c,s,f,l,p,d,v,h,g,m,y,b,w,x,j,_,O,k,S;if(this.matchingBlocks)return this.matchingBlocks;for(y=[[0,v=(j=[this.a.length,this.b.length])[0],0,h=j[1]]],g=[];y.length;)t=(_=y.pop())[0],e=_[1],n=_[2],r=_[3],o=(O=b=this.findLongestMatch(t,e,n,r))[0],c=O[1],(l=O[2])&&(g.push(b),t<o&&n<c&&y.push([t,o,n,c]),o+l<e&&c+l<r&&y.push([o+l,e,c+l,r]));for(g.sort(a),i=s=p=0,m=[],w=0,x=g.length;w<x;w++)u=(k=g[w])[0],f=k[1],d=k[2],i+p===u&&s+p===f?p+=d:(p&&m.push([i,s,p]),i=(S=[u,f,d])[0],s=S[1],p=S[2]);return p&&m.push([i,s,p]),m.push([v,h,0]),this.matchingBlocks=m},e.prototype.getOpcodes=function(){var e,t,r,n,o,i,a,u,c,s,f,l;if(this.opcodes)return this.opcodes;for(n=o=0,this.opcodes=t=[],u=0,c=(s=this.getMatchingBlocks()).length;u<c;u++)e=(f=s[u])[0],r=f[1],i=f[2],a="",n<e&&o<r?a="replace":n<e?a="delete":o<r&&(a="insert"),a&&t.push([a,n,e,o,r]),n=(l=[e+i,r+i])[0],o=l[1],i&&t.push(["equal",e,n,r,o]);return t},e.prototype.getGroupedOpcodes=function(e){var t,r,i,a,u,c,s,f,l,p,d,v,h,g,m;for(null==e&&(e=3),(t=this.getOpcodes()).length||(t=[["equal",0,1,0,1]]),"equal"===t[0][0]&&(l=(v=t[0])[0],a=v[1],u=v[2],c=v[3],s=v[4],t[0]=[l,n(a,u-e),u,n(c,s-e),s]),"equal"===t[t.length-1][0]&&(l=(h=t[t.length-1])[0],a=h[1],u=h[2],c=h[3],s=h[4],t[t.length-1]=[l,a,o(u,a+e),c,o(s,c+e)]),f=e+e,i=[],r=[],p=0,d=t.length;p<d;p++)l=(g=t[p])[0],a=g[1],u=g[2],c=g[3],s=g[4],"equal"===l&&u-a>f&&(r.push([l,a,o(u,a+e),c,o(s,c+e)]),i.push(r),r=[],a=(m=[n(a,u-e),n(c,s-e)])[0],c=m[1]),r.push([l,a,u,c,s]);return!r.length||1===r.length&&"equal"===r[0][0]||i.push(r),i},e.prototype.ratio=function(){var e,t,r,n;for(e=0,t=0,r=(n=this.getMatchingBlocks()).length;t<r;t++)e+=n[t][2];return i(e,this.a.length+this.b.length)},e.prototype.quickRatio=function(){var e,t,r,n,o,a,c,s,f,l,p;if(!this.fullbcount)for(this.fullbcount=r={},a=0,s=(l=this.b).length;a<s;a++)r[t=l[a]]=(r[t]||0)+1;for(r=this.fullbcount,e={},n=0,c=0,f=(p=this.a).length;c<f;c++)t=p[c],o=u(e,t)?e[t]:r[t]||0,e[t]=o-1,o>0&&n++;return i(n,this.a.length+this.b.length)},e.prototype.realQuickRatio=function(){var e,t,r;return r=[this.a.length,this.b.length],i(o(e=r[0],t=r[1]),e+t)},e}(),s={exports:{}};!function(t,r){(function(){var e,r,n,o,i,a,u,c,s,f,l,p,d,v,h;n=Math.floor,f=Math.min,r=function(e,t){return e<t?-1:e>t?1:0},s=function(e,t,o,i,a){var u;if(null==o&&(o=0),null==a&&(a=r),o<0)throw new Error("lo must be non-negative");for(null==i&&(i=e.length);o<i;)a(t,e[u=n((o+i)/2)])<0?i=u:o=u+1;return[].splice.apply(e,[o,o-o].concat(t)),t},a=function(e,t,n){return null==n&&(n=r),e.push(t),v(e,0,e.length-1,n)},i=function(e,t){var n,o;return null==t&&(t=r),n=e.pop(),e.length?(o=e[0],e[0]=n,h(e,0,t)):o=n,o},c=function(e,t,n){var o;return null==n&&(n=r),o=e[0],e[0]=t,h(e,0,n),o},u=function(e,t,n){var o;return null==n&&(n=r),e.length&&n(e[0],t)<0&&(t=(o=[e[0],t])[0],e[0]=o[1],h(e,0,n)),t},o=function(e,t){var o,i,a,u,c,s;for(null==t&&(t=r),c=[],i=0,a=(u=function(){s=[];for(var t=0,r=n(e.length/2);0<=r?t<r:t>r;0<=r?t++:t--)s.push(t);return s}.apply(this).reverse()).length;i<a;i++)o=u[i],c.push(h(e,o,t));return c},d=function(e,t,n){var o;if(null==n&&(n=r),-1!==(o=e.indexOf(t)))return v(e,0,o,n),h(e,o,n)},l=function(e,t,n){var i,a,c,s,f;if(null==n&&(n=r),!(a=e.slice(0,t)).length)return a;for(o(a,n),c=0,s=(f=e.slice(t)).length;c<s;c++)i=f[c],u(a,i,n);return a.sort(n).reverse()},p=function(e,t,n){var a,u,c,l,p,d,v,h,g;if(null==n&&(n=r),10*t<=e.length){if(!(c=e.slice(0,t).sort(n)).length)return c;for(u=c[c.length-1],l=0,d=(v=e.slice(t)).length;l<d;l++)n(a=v[l],u)<0&&(s(c,a,0,null,n),c.pop(),u=c[c.length-1]);return c}for(o(e,n),g=[],p=0,h=f(t,e.length);0<=h?p<h:p>h;0<=h?++p:--p)g.push(i(e,n));return g},v=function(e,t,n,o){var i,a,u;for(null==o&&(o=r),i=e[n];n>t&&o(i,a=e[u=n-1>>1])<0;)e[n]=a,n=u;return e[n]=i},h=function(e,t,n){var o,i,a,u,c;for(null==n&&(n=r),i=e.length,c=t,a=e[t],o=2*t+1;o<i;)(u=o+1)<i&&!(n(e[o],e[u])<0)&&(o=u),e[t]=e[o],o=2*(t=o)+1;return e[t]=a,v(e,c,t,n)},e=function(){function e(e){this.cmp=null!=e?e:r,this.nodes=[]}return e.push=a,e.pop=i,e.replace=c,e.pushpop=u,e.heapify=o,e.updateItem=d,e.nlargest=l,e.nsmallest=p,e.prototype.push=function(e){return a(this.nodes,e,this.cmp)},e.prototype.pop=function(){return i(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return-1!==this.nodes.indexOf(e)},e.prototype.replace=function(e){return c(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return u(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return o(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return d(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return 0===this.nodes.length},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t;return(t=new e).nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),t.exports=e}).call(e)}(s);var f,l,p,d=s.exports,v={exports:{}};
7
7
  /**
8
8
  * @license
9
9
  * Lodash (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
@@ -22,5 +22,5 @@ var w={astral:!1,natives:!1},x={exec:RegExp.prototype.exec,test:RegExp.prototype
22
22
  * XRegExp Unicode Base 3.1.1-next
23
23
  * <xregexp.com>
24
24
  * Steven Levithan (c) 2008-2016 MIT License
25
- */!function(e){var t={},r=e._dec,n=e._hex,o=e._pad4;function i(e){return e.replace(/[- _]+/g,"").toLowerCase()}function a(e){var t=/^\\[xu](.+)/.exec(e);return t?r(t[1]):e.charCodeAt("\\"===e.charAt(0)?1:0)}function u(r){return t[r]["b!"]||(t[r]["b!"]=function(t){var r="",i=-1;return e.forEach(t,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(e){var t=a(e[1]);t>i+1&&(r+="\\u"+o(n(i+1)),t>i+2&&(r+="-\\u"+o(n(t-1)))),i=a(e[2]||e[1])})),i<65535&&(r+="\\u"+o(n(i+1)),i<65534&&(r+="-\\uFFFF")),r}(t[r].bmp))}e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(e,r,n){var o="P"===e[1]||!!e[2],a=i(e[4]||e[3]),c=t[a];if("P"===e[1]&&e[2])throw new SyntaxError("Invalid double negation "+e[0]);if(!t.hasOwnProperty(a))throw new SyntaxError("Unknown Unicode token "+e[0]);if(c.inverseOf){if(a=i(c.inverseOf),!t.hasOwnProperty(a))throw new ReferenceError("Unicode token missing data "+e[0]+" -> "+c.inverseOf);c=t[a],o=!o}if(!c.bmp)throw new SyntaxError("Astral mode required for Unicode token "+e[0]);return"class"===r?o?u(a):c.bmp:(o?"[^":"[")+c.bmp+"]"}),{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(r){for(var n,o=0;o<r.length;++o){if(!(n=r[o]).name)throw new Error("Unicode token requires name");if(!(n.inverseOf||n.bmp||n.astral))throw new Error("Unicode token has no character data "+n.name);t[i(n.name)]=n,n.alias&&(t[i(n.alias)]=n)}e.cache.flush("patterns")},e._getUnicodeProperty=function(e){var r=i(e);return t[r]}}(Z),function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");e.addUnicodeData([{name:"L",alias:"Letter",bmp:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢄᢇ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"},{name:"N",alias:"Number",bmp:"0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൘-൞൦-൸෦-෯๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9"}])}(Z);var K=Z,J={exports:{}};return function(e){e.exports=function(t,r,n,o){return(e={}).dedupe=function(e,i){var a,u=t(i);if(!r(e)&&"object"!=T(e))throw new Error("contains_dupes must be an array or object");if(0===Object.keys(e).length)return void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("contains_dupes is empty"),[];u.limit&&(void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("options.limit will be ignored in dedupe"),u.limit=0),u.cutoff&&"number"==typeof u.cutoff||(void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("Using default cutoff of 70"),u.cutoff=70),u.scorer||(u.scorer=n,void 0!==("undefined"==typeof console?"undefined":T(console))&&console.log("Using default scorer 'ratio' for dedupe")),a=u.processor&&"function"==typeof u.processor?u.processor:function(e){return e};var c={};for(var s in e){var f=a(e[s]);if("string"!=typeof f&&f instanceof String==0)throw new Error("Each processed item in dedupe must be a string.");var l=o(f,e,u);u.returnObjects?(1===l.length||(l=l.sort((function(e,t){var r=a(e.choice),n=a(t.choice),o=r.length,i=n.length;return o===i?r<n?-1:1:i-o}))),u.keepmap?c[a(l[0].choice)]={item:l[0].choice,key:l[0].key,matches:l}:c[a(l[0].choice)]={item:l[0].choice,key:l[0].key}):(1===l.length||(l=l.sort((function(e,t){var r=a(e[0]),n=a(t[0]),o=r.length,i=n.length;return o===i?r<n?-1:1:i-o}))),u.keepmap?c[a(l[0][0])]=[l[0][0],l[0][2],l]:c[a(l[0][0])]=[l[0][0],l[0][2]])}var p=[];for(var d in c)p.push(c[d]);return p},e}}(J),function(){var e=c,r=d,n=v.exports.intersection,o=v.exports.intersectionWith,i=v.exports.difference,a=v.exports.differenceWith,u=v.exports.uniq,s=v.exports.uniqWith,f=v.exports.partialRight,l=v.exports.forEach,p=v.exports.keys,h=v.exports.isArray,m=v.exports.toArray,w=v.exports.orderBy,x=g,j=y,_=b,O=function(e,t,r){var n={},o=K,i=y,a=b;function u(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function c(e){return("string"==typeof e||e instanceof String)&&e.length>0}n.validate=c,n.process_and_sort=function(e){return c(e)?e.match(/\S+/g).sort().join(" ").trim():""},n.tokenize=function(n,o){if(o&&o.wildcards&&t&&r){var u=r(i,o,a);return t(n.match(/\S+/g),(function(e,t){return 0===u(e,t)}))}return e(n.match(/\S+/g))};var s=o("[^\\pN|\\pL]","g");return n.full_process=function(e,t){if(!(e instanceof String)&&"string"!=typeof e)return"";var r;if(t&&"object"==T(t)&&t.wildcards&&"string"==typeof t.wildcards&&t.wildcards.length>0){var n=t.wildcards.toLowerCase();if(e=e.toLowerCase(),t.force_ascii){var i="[^\0 -|"+u(n)+"]";e=e.replace(new RegExp(i,"g"),"");var a="["+u(n)+"]",c=n[0];e=e.replace(new RegExp(a,"g"),c);var f="[^A-Za-z0-9"+u(n)+"]";r=(e=(e=e.replace(new RegExp(f,"g")," ")).replace(/_/g," ")).trim()}else{var l="[^\\pN|\\pL|"+u(n)+"]",p=o(l,"g");e=o.replace(e,p," ","all"),a="["+u(n)+"]",c=n[0],r=(e=e.replace(new RegExp(a,"g"),c)).trim()}}else t&&(t.force_ascii||!0===t)&&(r=(e=e.replace(/[^\x00-\x7F]/g,"")).replace(/\W|_/g," ").toLowerCase().trim()),r=o.replace(e,s," ","all").toLowerCase().trim();return t&&t.collapseWhitespace&&(r=r.replace(/\s+/g," ")),r},n.clone_and_set_option_defaults=function(e){if(e&&e.isAClone)return e;var t={isAClone:!0};if(e){var r,n=Object.keys(e);for(r=0;r<n.length;r++)t[n[r]]=e[n[r]]}return void 0!==t.full_process&&!1===t.full_process||(t.full_process=!0),void 0!==t.force_ascii&&!0===t.force_ascii||(t.force_ascii=!1),void 0!==t.normalize&&!1===t.normalize||(t.normalize=!0),void 0!==t.astral&&!0===t.astral&&(t.full_process=!1),void 0!==t.collapseWhitespace&&!1===t.collapseWhitespace||(t.collapseWhitespace=!0),t},n.isCustomFunc=function(e){return"function"!=typeof e||"token_set_ratio"!==e.name&&"partial_token_set_ratio"!==e.name&&"token_sort_ratio"!==e.name&&"partial_token_sort_ratio"!==e.name&&"QRatio"!==e.name&&"WRatio"!==e.name&&"distance"!==e.name&&"partial_ratio"!==e.name},n}(u,s,f),k=O.validate,S=O.process_and_sort,E=O.tokenize,A=O.full_process,M=O.clone_and_set_option_defaults,D=O.isCustomFunc,P=J.exports(M,h,Y,B).dedupe;function Y(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,k(e)&&k(t)?ee(e,t,n):0}function I(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,k(e)&&k(t)?V(e,t,n):0}function C(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,k(e)&&k(t)?(n.partial=!0,V(e,t,n)):0}function L(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,k(e)&&k(t)?(n.proc_sorted||(e=S(e),t=S(t)),ee(e,t,n)):0}function H(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,k(e)&&k(t)?(n.partial=!0,n.proc_sorted||(e=S(e),t=S(t)),te(e,t,n)):0}function B(e,t,n){var o,i=M(n);if(h(t))o=t.length;else{if(!(t instanceof Object))throw new Error("Invalid choices");o=p(t).length}if(!t||0===o)return void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("No choices"),[];if(i.processor&&"function"!=typeof i.processor)throw new Error("Invalid Processor");if(i.processor||(i.processor=function(e){return e}),i.scorer&&"function"!=typeof i.scorer)throw new Error("Invalid Scorer");i.scorer||(i.scorer=Y);var a=D(i.scorer);i.cutoff&&"number"==typeof i.cutoff||(i.cutoff=-1);var u=function(e,t){return e};i.full_process&&(u=A,a||(i.processed=!0));var c=!1;a||(e=u(e,i),i.full_process=!1,i.astral&&i.normalize&&(i.normalize=!1,String.prototype.normalize?(c=!0,e=e.normalize()):void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("Normalization not supported in your environment")),0===e.length&&void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("Processed query is empty string"));var s,f,d,v,g=[],m=!1,y=!1,b=!1;if("token_sort_ratio"===i.scorer.name||"partial_token_sort_ratio"===i.scorer.name){var w=S(e);y=!0}else if("token_set_ratio"===i.scorer.name||"partial_token_set_ratio"===i.scorer.name){var x=E(e,i);b=!0}return i.returnObjects?(d=function(e,t){return e.score-t.score},v=function(e,t){return t.score-e.score}):(d=function(e,t){return e[1]-t[1]},v=function(e,t){return t[1]-e[1]}),l(t,(function(t,r){i.tokens=void 0,i.proc_sorted=!1,y?(i.proc_sorted=!0,t&&t.proc_sorted?f=t.proc_sorted:(f=u(i.processor(t),i),f=S(c?f.normalize():f)),s=i.scorer(w,f,i)):b?(f="x",t&&t.tokens?(i.tokens=[x,t.tokens],i.trySimple&&(f=u(i.processor(t),i))):(f=u(i.processor(t),i),i.tokens=[x,E(c?f.normalize():f,i)]),s=i.scorer(e,f,i)):a?(f=i.processor(t),s=i.scorer(e,f,i)):("string"==typeof(f=u(i.processor(t),i))&&0!==f.length||(m=!0),c&&"string"==typeof f&&(f=f.normalize()),s=i.scorer(e,f,i)),s>i.cutoff&&(i.returnObjects?g.push({choice:t,score:s,key:r}):g.push([t,s,r]))})),m&&void 0!==("undefined"==typeof console?"undefined":T(console))&&console.log("One or more choices were empty. (post-processing if applied)"),i.limit&&"number"==typeof i.limit&&i.limit>0&&i.limit<o&&!i.unsorted?g=r.nlargest(g,i.limit,d):i.unsorted||(g=g.sort(v)),g}function z(e,t,n,o){var i,a=M(n);"object"==T(n.cancelToken)&&(i=n.cancelToken);var u=256;"number"==typeof a.asyncLoopOffset&&(u=a.asyncLoopOffset<1?1:a.asyncLoopOffset);var c,s=!1;if(t&&t.length&&h(t))c=t.length,s=!0;else{if(!(t instanceof Object))return void o(new Error("Invalid choices"));c=Object.keys(t).length}if(!t||0===c)return void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("No choices"),void o(null,[]);if(a.processor&&"function"!=typeof a.processor)o(new Error("Invalid Processor"));else if(a.processor||(a.processor=function(e){return e}),a.scorer&&"function"!=typeof a.scorer)o(new Error("Invalid Scorer"));else{a.scorer||(a.scorer=Y);var f=D(a.scorer);a.cutoff&&"number"==typeof a.cutoff||(a.cutoff=-1);var l=function(e,t){return e};a.full_process&&(l=A,f||(a.processed=!0));var p=!1;f||(e=l(e,a),a.full_process=!1,a.astral&&a.normalize&&(a.normalize=!1,String.prototype.normalize?(p=!0,e=e.normalize()):void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("Normalization not supported in your environment")),0===e.length&&void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("Processed query is empty string"));var d,v,g,m,y,b=[],w=!1,x=!1,j=!1;if("token_sort_ratio"===a.scorer.name||"partial_token_sort_ratio"===a.scorer.name){var _=S(e);x=!0}else if("token_set_ratio"===a.scorer.name||"partial_token_set_ratio"===a.scorer.name){var O=E(e,a);j=!0}a.returnObjects?(m=function(e,t){return e.score-t.score},y=function(e,t){return t.score-e.score}):(m=function(e,t){return e[1]-t[1]},y=function(e,t){return t[1]-e[1]});var k=Object.keys(t);s?P(0):P(k[0],0)}function P(n,h){(s||t.hasOwnProperty(n))&&(a.tokens=void 0,a.proc_sorted=!1,x?(a.proc_sorted=!0,t[n]&&t[n].proc_sorted?v=t[n].proc_sorted:(v=l(a.processor(t[n]),a),v=S(p?v.normalize():v)),g=a.scorer(_,v,a)):j?(v="x",t[n]&&t[n].tokens?(a.tokens=[O,t[n].tokens],a.trySimple&&(v=l(a.processor(t[n]),a))):(v=l(a.processor(t[n]),a),a.tokens=[O,E(p?v.normalize():v,a)]),g=a.scorer(e,v,a)):f?(v=a.processor(t[n]),g=a.scorer(e,v,a)):("string"==typeof(v=l(a.processor(t[n]),a))&&0!==v.length||(w=!0),p&&"string"==typeof v&&(v=v.normalize()),g=a.scorer(e,v,a)),d=s?parseInt(n):n,g>a.cutoff&&(a.returnObjects?b.push({choice:t[n],score:g,key:d}):b.push([t[n],g,d]))),i&&!0===i.canceled?o(new Error("canceled")):s&&n<t.length-1?n%u==0?setImmediate((function(){P(n+1)})):P(n+1):h<k.length-1?h%u==0?setImmediate((function(){P(k[h+1],h+1)})):P(k[h+1],h+1):(w&&void 0!==("undefined"==typeof console?"undefined":T(console))&&console.log("One or more choices were empty. (post-processing if applied)"),a.limit&&"number"==typeof a.limit&&a.limit>0&&a.limit<c&&!a.unsorted?b=r.nlargest(b,a.limit,m):a.unsorted||(b=b.sort(y)),o(null,b))}}var F="%*SuperUniqueWildcardKey*%",R=!1;function N(e,t){var r=e;if(t.astral){t.normalize&&(String.prototype.normalize?r=e.normalize():R||(void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("Normalization not supported in your environment"),R=!0));var n=m(r)}else n=r.split("");var o={};if(t.wildcards)for(var i=0;i<n.length;i++){var a=n[i];t.wildcards.indexOf(a)>-1?o[F]?o[F]+=1:o[F]=1:o[a]?o[a]+=1:o[a]=1}else for(i=0;i<n.length;i++)o[a=n[i]]?o[a]+=1:o[a]=1;return o}function U(e,t,r){for(var o=t,i=e.reduce((function(e,t){return e[t]=N(t,r),e}),{}),a=o.reduce((function(e,t){return e[t]=N(t,r),e}),{}),u=[],c=0;o.length&&c<e.length;){var s=w(o,(function(t){return r=i[e[c]],o=a[t],u=Object.keys(r),s=Object.keys(o),f=n(u,s).map((function(e){return r[e]*o[e]})).reduce((function(e,t){return e+t}),0),l=u.map((function(e){return Math.pow(r[e],2)})).reduce((function(e,t){return e+t}),0),p=s.map((function(e){return Math.pow(o[e],2)})).reduce((function(e,t){return e+t}),0),f/(Math.sqrt(l)*Math.sqrt(p));var r,o,u,s,f,l,p}),"desc")[0];u.push(s),c++,o=o.filter((function(e){return e!==s}))}return u.concat(o)}function W(e,t,r,n){var o=t,i=n;return(t.length>n.length||t.length===n.length&&(e.length>r.length||[e,r].sort()[0]===r))&&(o=n,i=t),[o,i]}function q(e,t,r){if(r.tokens)n=r.tokens[0],o=r.tokens[1];else var n=E(e,r),o=E(t,r);var i=W(e,n.sort(),t,o.sort()),a=i[0],u=U(a,i[1],r);return r.partial?te(a.join(" "),u.join(" "),r):ee(a.join(" "),u.join(" "),r)}function V(e,t,r){if(r.tokens)u=r.tokens[0],c=r.tokens[1];else var u=E(e,r),c=E(t,r);if(r.wildcards)var s=f(j,r,_),l=function(e,t){return 0===s(e,t)},p=o(u,c,l),d=a(u,c,l),v=a(c,u,l);else p=n(u,c),d=i(u,c),v=i(c,u);var h=p.sort().join(" "),g=d.sort(),m=v.sort();if(r.sortBySimilarity)var y=W(e,g,t,m),b=y[0],w=y[1],x=b.join(" "),O=U(b,w,r).join(" ");else x=g.join(" "),O=m.join(" ");var k=h+" "+x,S=h+" "+O;h=h.trim(),k=k.trim(),S=S.trim();var A=ee;if(r.partial&&(A=te,h.length>0))return 100;var M=[A(h,k,r),A(h,S,r),A(k,S,r)];return r.trySimple&&M.push(A(e,t,r)),Math.max.apply(null,M)}var X,$,G,Z,Q=!1;function ee(t,r,n){if(!k(t))return 0;if(!k(r))return 0;if(n.ratio_alg&&"difflib"===n.ratio_alg){var o=new e(null,t,r).ratio();return Math.round(100*o)}var i,a;return void 0===n.subcost&&(n.subcost=2),n.astral?(n.normalize&&(String.prototype.normalize?(t=t.normalize(),r=r.normalize()):Q||(void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("Normalization not supported in your environment"),Q=!0)),i=x(t,r,n,m),a=m(t).length+m(r).length):n.wildcards?(i=j(t,r,n,_),a=t.length+r.length):(i=_(t,r,n),a=t.length+r.length),Math.round((a-i)/a*100)}function te(t,r,n){if(!k(t))return 0;if(!k(r))return 0;if(t.length<=r.length)var o=t,i=r;else o=r,i=t;for(var a=new e(null,o,i).getMatchingBlocks(),u=[],c=0;c<a.length;c++){var s=a[c][1]-a[c][0]>0?a[c][1]-a[c][0]:0,f=s+o.length,l=ee(o,i.substring(s,f),n);if(l>99.5)return 100;u.push(l)}return Math.max.apply(null,u)}Object.keys||(Object.keys=(X=Object.prototype.hasOwnProperty,$=!{toString:null}.propertyIsEnumerable("toString"),Z=(G=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(e){if("object"!=T(e)&&("function"!=typeof e||null===e))throw new TypeError("Object.keys called on non-object");var t,r,n=[];for(t in e)X.call(e,t)&&n.push(t);if($)for(r=0;r<Z;r++)X.call(e,G[r])&&n.push(G[r]);return n}));var re=void 0;"undefined"!=typeof Promise&&(re=function(e,t,r){return new Promise((function(n,o){z(e,t,r,(function(e,t){e?o(e):n(t)}))}))});var ne={distance:function(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,void 0===n.subcost&&(n.subcost=1),n.astral?x(e,t,n,m):j(e,t,n,_)},ratio:Y,partial_ratio:function(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,k(e)&&k(t)?te(e,t,n):0},token_set_ratio:I,token_sort_ratio:L,partial_token_set_ratio:C,partial_token_sort_ratio:H,token_similarity_sort_ratio:function(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,k(e)&&k(t)?q(e,t,n):0},partial_token_similarity_sort_ratio:function(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,k(e)&&k(t)?(n.partial=!0,q(e,t,n)):0},WRatio:function(e,t,r){var n=M(r);if(e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,n.full_process=!1,!k(e))return 0;if(!k(t))return 0;var o=!0,i=.95,a=.9,u=ee(e,t,n),c=Math.max(e.length,t.length)/Math.min(e.length,t.length);if(c<1.5&&(o=!1),c>8&&(a=.6),o){var s=te(e,t,n)*a,f=H(e,t,n)*i*a,l=C(e,t,n)*i*a;return Math.round(Math.max(u,s,f,l))}var p=L(e,t,n)*i,d=I(e,t,n)*i;return Math.round(Math.max(u,p,d))},full_process:A,extract:B,extractAsync:z,extractAsPromised:re,process_and_sort:S,unique_tokens:E,dedupe:P};t.exports=ne}(),t.exports}()}));var Qv=function(e,t){for(var r,n=-1,o=e.length;++n<o;){var i=t(e[n]);void 0!==i&&(r=void 0===r?i:r+i)}return r};var eh=function(e,t){var r=null==e?0:e.length;return r?Qv(e,t)/r:NaN};var th=function(e){return eh(e,Je)};function rh(){var e=_c();return Jv||e.fuzzball}function nh(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n="";if(E(e)||ce(e))n=Za(e);else{if(!io(e))return!!r&&0;n=Xc(e,"")}if(""===t)return!r||100;if(oo(t))return!!r&&0;if(Oa(n,t))return!r||100;var o=qi(t," "),i=wi(o,(function(e){return rh().partial_ratio(n,e)}));if(r)return th(i);var a=80;return Ov(i,(function(e){return e>=a}))}function oh(){return(oh=Na(Ua.mark((function e(t,r){var n,o,i,a=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>2&&void 0!==a[2]&&a[2],io(o=a.length>3?a[3]:void 0)||(o=["https://cdn.jsdelivr.net/npm/fuzzball@2.x/dist/fuzzball.umd.min.js"]),e.next=5,Qc(o);case 5:return i=nh(t,r,n),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ih(e){if(!Hn(e))return{};var t=e.results,r=e.binarys;if(!E(t))return{};if(!Jn(r))return{};var n={};try{n=JSON.parse(t,(function(e,t){if(E(t)){if(t.indexOf("[Uint8Array]::")>=0){var n=$n(t.replace("[Uint8Array]::",""));return r[n]}if(t.indexOf("[Uint16Array]::")>=0){var o=$n(t.replace("[Uint16Array]::",""));return r[o]}if(t.indexOf("[ArrayBuffer]::")>=0){var i=$n(t.replace("[ArrayBuffer]::",""));return r[i]}}return t}))}catch(e){}return n}function ah(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!hv(e))return{today:null,msg:"",err:"時間格式錯誤"};var r=d.default();hv(t)&&(r=d.default(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));var n=d.default(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r>n)return{today:null,msg:"",err:"時間已過"};var o,i=r.format("YYYY-MM-DD"),a=n.format("YYYY-MM-DD"),u=d.default(i,"YYYY-MM-DD"),c=d.default(a,"YYYY-MM-DD"),s=n.diff(r,"seconds"),f=n.diff(r,"minutes"),l=n.diff(r,"hours"),p=c.diff(u,"days"),v=c.diff(u,"weeks"),h=c.diff(u,"months"),g=c.diff(u,"years"),m="即將到來";if(s>=0&&(o=!0,m=s+"秒後"),f>0&&(o=!0,m=f+"分鐘後"),l>0){var y=n.format("HH:mm");i===a?(o=!0,m=l+"小時後,今天"+y):(o=!1,m=l+"小時後,明天"+y)}return p>1&&(o=!1,m=2===p?"後天":p+"天後"),v>0&&(o=!1,m=v+"周後"),h>0&&(o=!1,m=h+"個月後"),g>0&&(o=!1,m=g+"年後"),{today:o,msg:m,err:""}}function uh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!hv(e))return{today:null,msg:"",err:"時間格式錯誤"};var r=d.default();hv(t)&&(r=d.default(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));var n=d.default(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r<n)return{today:null,msg:"",err:"時間未到"};var o=r.format("YYYY-MM-DD"),i=n.format("YYYY-MM-DD"),a=d.default(o,"YYYY-MM-DD"),u=d.default(i,"YYYY-MM-DD"),c=r.diff(n,"seconds"),s=r.diff(n,"minutes"),f=r.diff(n,"hours"),l=a.diff(u,"days"),p=a.diff(u,"weeks"),v=a.diff(u,"months"),h=a.diff(u,"years"),g=!1,m="剛剛";if(c>=0&&(g=!0,m=c+"秒前"),s>0&&(g=!0,m=s+"分鐘前"),f>0){var y=n.format("HH:mm");o===i?(g=!0,m=f+"小時前"):(g=!1,m="昨天"+y)}return l>1&&(g=!1,m=l+"天前"),p>0&&(g=!1,m=p+"周前"),v>0&&(g=!1,m=v+"個月前"),h>0&&(g=!1,m=h+"年前"),{today:g,msg:m,err:""}}function ch(e){var t=vv.sepTZ(e);return e="".concat(t.t,".000").concat(t.tz)}function sh(e){var t=vv.sepTZ(e);return e="".concat(t.t,".000").concat(t.tz)}function fh(e){if(!xa(e))return"";var t;try{t=ya(Yv(e))}catch(e){return""}return t}var lh=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n};e._tz=vv,e.ab2blob=function(e){var t=k(e);return new Blob([t])},e.ab2u8arr=k,e.addMonth=function(e,t){return A(e)&&fe(t)?d.default(e,"YYYY-MM").add(t,"months").format("YYYY-MM"):""},e.aes2str=be,e.alive=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4,t=Cn(),r={},n=null;function o(){null===n&&(n=setInterval((function(){et(r,(function(n,o){if(Date.now()-n.time>e){var i=vn(r[o]);delete r[o],t.emit("message",{eventName:"leave",key:o,data:i.data,now:Tn(r)})}})),Hn(r)||(clearInterval(n),n=null)}),50))}function i(e,n){E(e)?(Bn(r,e)||setTimeout((function(){t.emit("message",{eventName:"enter",key:e,data:n,now:Tn(r)})}),1),r[e]={data:n,time:Date.now()},o()):console.log("trigger need key")}function a(){var e=[];return et(r,(function(t,r){e.push({key:r,data:t.data})})),e}return Gn(e)&&(e=1e4),e=$n(e),t.trigger=i,t.get=a,t},e.arr2dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!io(e))return{};if(io(t))return Tn(e)===Tn(t)?Kn(e,t):{};for(var r=[],n=0;n<Tn(e);n++)r.push(vn(t));var o=Kn(e,r);return o},e.arrAccum=function(e){if(!io(e))return[];var t=[],r=0;return et(e,(function(e){r+=se(e),ce(e)?t.push(r):t.push("")})),t},e.arrAdd=function(){if(Tn(arguments)<2)return[];for(var e=arguments[0],t=1;t<Tn(arguments);t++){var r=arguments[t];e=ao(e,r)}return e},e.arrAt=Fo,e.arrFilter=function(e,t){if(!io(e))return[];if(!E(t))return[];var r=qi(t," "),n=Tn(r);return wi(e,(function(e){return function(e){for(var t=!1,o=0,i=0;i<n;i++){var a=r[i],u=a,c="+"===Xi(a,1),s="-"===Xi(a,1);if((c||s)&&(u=Gi(a,1)),""!==Ui(u)){var f=e.indexOf(u)>=0;if(c&&!f){t=!1,o=0;break}if(s&&f){t=!1,o=0;break}if(f){t=!0;var l=1-i/n;o+=l=Math.pow(l,2)}}}return{hasKeyword:t,weight:o}}(e)}))},e.arrFind=function(e,t){function r(e){return Jn(e)?e:[e]}return oo(e)||0===(e=r(e)).length||oo(t)?[]:(t=r(t),wi(t,(function(t){for(var r=-1,n=0;n<e.length;n++)if(Zi(e[n],t)){r=n;break}return r})))},e.arrGroupByMaxmin=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Oo(r,"keyMax");E(n)||(n="max");var o=Oo(r,"keyMin");E(o)||(o="min");var i=Oo(r,"keyValue");E(i)||(i="value");var a=Oo(r,"keyItems");if(E(a)||(a="items"),!io(e))return[];if(!io(t))return[];var u=vn(t);return et(e,(function(e,r){var c=Oo(e,i);ce(c)?c=se(c):ce(e)&&(c=se(e)),Ki(c)&&et(t,(function(t,r){var i=Oo(t,n,null),s=Oo(t,o,null);if(null!==i&&null!==s&&ce(i)&&ce(s)){var f=Oo(t,"maxType");"<="!==f&&"<"!==f&&(f="<=");var l,p=Oo(t,"minType");">="!==p&&">"!==p&&(p=">="),i=se(i),s=se(s),l="<="===f?c<=i:c<i,(">="===p?c>=s:c>s)&&l&&(Bn(u[r],a)||(u[r][a]=[]),u[r][a].push(e))}}))})),u},e.arrHas=Ji,e.arrInsert=function(e,t,r){if(!io(e))return[];if(Jn(r)||(r=[r]),!zo(t))return e;if((t=$n(t))>Tn(e))return e;var n=e;try{n=[].concat(ta(e.slice(0,t)),ta(r),ta(e.slice(t)))}catch(e){}return n},e.arrLookupByMaxmin=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Oo(r,"keyMax");E(n)||(n="max");var o=Oo(r,"keyMin");E(o)||(o="min");var i=Oo(r,"keyValue");E(i)||(i="value");var a=Oo(r,"keyItems");E(a)||(a="items");var u=Oo(r,"beforeAddResult",null);if(!io(e))return[];if(!io(t))return[];var c=Hn(Oo(e,0));if(!c)return[];var s=vn(e);return et(s,(function(e,r){var c=Oo(e,i);ce(c)&&(c=se(c)),Ki(c)&&et(t,(function(e,t){var i=Oo(e,n,null),f=Oo(e,o,null);if(null!==i&&null!==f&&ce(i)&&ce(f)){var l=Oo(e,"maxType");"<="!==l&&"<"!==l&&(l="<=");var p,d=Oo(e,"minType");">="!==d&&">"!==d&&(d=">="),i=se(i),f=se(f),p="<="===l?c<=i:c<i,(">="===d?c>=f:c>f)&&p&&(ra(u)&&(e=u(e,s[r],r)),Bn(s[r],a)||(s[r][a]=[]),s[r][a].push(e))}}))})),s},e.arrSep=function(e,t){if(!io(e))return[];if(!Vi(t))return[];for(var r=Tn(e),n=[],o=0;o<r;o+=t){for(var i=[],a=0;a<t;a++){var u=o+a;u<r&&i.push(e[u])}n.push(i)}return n},e.arrSort=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!io(e))return[];if(1===Tn(e))return e;var r=Oo(t,"returnIndex");ye(r)||(r=!1);var n,o=Oo(t,"compareKey",null),i=ha(e);if(""===i)return[];if("obj"===i){if(!E(o))return[];var a=wi(e,(function(e,t){return Oo(e,o,"")})),u=ha(a);if("num"!==u&&"str"!==u)return[];var c=ga(a,u),s=ma(c,!0);n=r?s:wi(s,(function(t){return e[t]}))}else if("num"===i||"str"===i){var f=ga(e,i);n=ma(f,r)}return n},e.asind=function(e){return ce(e)?(e=se(e),180*Math.asin(e)/Math.PI):null},e.atan2d=function(e,t){return ce(e)?(e=se(e),ce(t)?(t=se(t),180*Math.atan2(t,e)/Math.PI):null):null},e.atand=function(e){return ce(e)?(e=se(e),180*Math.atan(e)/Math.PI):null},e.b642obj=function(e){if(!S(e))return{};var t={};try{t=ba(ya(e))}catch(e){t={}}return t},e.b642str=ya,e.b642u16arr=_a,e.b642u8arr=wa,e.binstr=Oa,e.blob2ab=Ea,e.blob2b64=Aa,e.blob2str=function(e){var t=ka(),r=new FileReader;return r.onload=function(){t.resolve(r.result)},r.onerror=function(e){t.reject(e)},r.readAsText(e),t},e.blob2u8arr=Ma,e.blobs2b64s=Da,e.blobs2u8arrs=Pa,e.bodyLog=function(){var e=wi(arguments,(function(e){return Ya(e)})).join(", "),t='\n <div style="padding:5px; font-size:10pt; font-family:Microsoft JhengHei, Helvetica;">\n <span style="color:#f26;">log: </span>\n <code>'.concat(Ta(e),"</code>\n </div>\n ");document.querySelector("body").insertAdjacentHTML("beforeend",t)},e.browserView=Ia,e.browserViewFromBlob=function(e,t){Ca(e)&&Ia(e,t)},e.browserViewFromText=function(e){S(e)&&Ia(e,"text/plain")},e.browserViewFromU8arr=function(e,t){xa(e)&&Ia(e,t)},e.bs2u8arr=La,e.bufRead=Ha,e.bufReadDbl=Ba,e.bufWrite=za,e.bufWriteDbl=Fa,e.cache=function(){var e=Cn(),t={};function r(t,r){setTimeout((function(){e.emit(t,r)}),1)}function n(e,n){var o=n.execFun,i=n.inputFun,a=n.timeExpired;Bn(t,e)||(ra(o)||(o=function(){var e=Na(Ua.mark((function e(){return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),Gn(a)&&(a=5e3),a=$n(a),Jn(i)||(i=[]),t[e]={needExec:!0,execFun:o,execFunRunning:!1,inputFun:i,value:null,time:null,timeExpired:a},r("message",{fun:"set",key:e,timeExpired:a}))}function o(e){return i.apply(this,arguments)}function i(){return(i=Na(Ua.mark((function e(n){var o,i,a,u;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Bn(t,n)){e.next=24;break}return r("message",{fun:"get",key:n,msg:"waiting"}),e.next=4,Wa((function(){return!t[n].execFunRunning}),{timeInterval:1e3});case 4:if(i=Date.now(),o=t[n].needExec,a=i-t[n].time,o?r("message",{fun:"get",key:n,msg:"execute first"}):t[n].timeExpired>0&&a>t[n].timeExpired&&(r("message",{fun:"get",key:n,msg:"execute by timeExpired",timeDiff:a}),o=!0),!o){e.next=20;break}return r("message",{fun:"get",key:n,msg:"execFun start"}),t[n].execFunRunning=!0,e.next=13,(u=t[n]).execFun.apply(u,ta(t[n].inputFun)).catch((function(e){r("error",{fun:"get",key:n,msg:e})}));case 13:t[n].value=e.sent,t[n].needExec=!1,t[n].time=i,t[n].execFunRunning=!1,r("message",{fun:"get",key:n,msg:"execFun end"}),e.next=21;break;case 20:r("message",{fun:"get",key:n,msg:"use cache"});case 21:return e.abrupt("return",vn(t[n].value));case 24:return r("error",{fun:"get",key:n,msg:"invalid key"}),e.abrupt("return",null);case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function a(){return(a=Na(Ua.mark((function e(t,r){var i,a,u;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.execFun,a=r.inputFun,u=r.timeExpired,n(t,{execFun:i,inputFun:a,timeExpired:u}),e.abrupt("return",o(t));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return e.set=n,e.getProxy=function(e,t){return a.apply(this,arguments)},e.get=o,e.update=function(e,n){Bn(t,e)&&(r("message",{fun:"updateValue",key:e}),t[e].value=n,t[e].time=Date.now())},e.clear=function(e){Bn(t,e)&&(r("message",{fun:"clear",key:e}),t[e].needExec=!0)},e.remove=function(e){Bn(t,e)&&(r("message",{fun:"remove",key:e}),delete t[e])},e},e.cbol=function(e){if(ye(e))return e;if(0===e)return!1;if(1===e)return!0;var t=!1;return E(e)&&"true"===(e=qa(Ui(e)))&&(t=!0),t},e.cdbl=se,e.cfilesize=function(e){return ce(e)?(e=se(e))<1024?Va(e,1)+" b":e<1048576?Va(e/1024,1)+" kb":e<1073741824?Va(e/1024/1024,1)+" mb":e<1099511627776?Va(e/1024/1024/1024,1)+" gb":"":""},e.cfinancial=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!ce(e))return"";if(!zo(t))return"";for(var r=(e=Va(e,t)).split("."),n=r[0],o=r.length>1?"."+r[1]:"",i=/(\d+)(\d{3})/;i.test(n);)n=n.replace(i,"$1,$2");var a=n+o;return a},e.cint=$n,e.clearXSS=function(e){return function e(t){return Jn(t)||Ln(t)?(et(t,(function(r,n){t[n]=e(r)})),t):S(t)?(r=t,h.default(r,{onIgnoreTagAttr:function(e,t,r,n){if("style"===t)return t+'="'+h.default.escapeAttrValue(r)+'"'}})):t;var r}(vn(e))},e.color=Ku,e.composeTreeObj=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="$level",n="$parents";if(!io(e))return[];var o=Oo(t,"bindKey",null);E(o)||(o="id");var i=Oo(t,"bindParent",null);E(i)||(i="parentId");var a=Oo(t,"bindChildren",null);E(a)||(a="children");var u=Oo(t,"saveExtProps",null);function c(e){var t,a=[];function u(t){var u=[];et(e,(function(e,c){var s=Oo(e,i),f=Oo(t,o);if(s&&f&&s===f){var l,p=Oo(t,n,[]);(p=vn(p)).push(t[o]),a.push(pc((Xa(l={},r,t[r]+1),Xa(l,n,p),l),e))}else u.push(e)})),e=u}if(e=vn(e),t=[],et(e,(function(e,o){var u;oo(e[i])?a.push(pc((Xa(u={},r,0),Xa(u,n,[]),u),e)):t.push(e)})),e=t,0===a.length)return a;for(var c=-1;!((c+=1)>a.length-1);){if(u(a[c]),0===e.length)break}return a}function s(e){var t=[];function c(e){return u?e:fc(e,[r,n])}var s={};return et(e,(function(n,u){if(0===n[r]){var f=c(n);t.push(f),s[n[o]]=[u]}else{var l=function(t){for(var r=0;r<e.length;r++){var n=e[r];if(t[i]===n[o])return n}return null}(n);if(null!==l){var p=s[l[o]];p=[].concat(ta(p),[a]);var d=Oo(t,p,[]),v=c(n);d.push(v),s[n[o]]=[].concat(ta(p),[d.length-1]),Qu(t,p,d)}else console.log("can not find parent for ".concat(Oo(n,i)))}})),t}ye(u)||(u=!1);var f=s(e=c(e=vn(e)));return f},e.copyStrToClipboard=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!S(e))return"invalid input";var r=Oo(t,"eleParent");vc(r)||(r=document.body);var n=document.createElement("textarea");if(n.style.position="fixed",n.style.left=0,n.style.top=0,n.style.zIndex=-1,n.style.background="transparent",n.style.color="transparent",n.value=e,r.appendChild(n),n.select(),!hc(n))return"ele can not be focusd";try{document.execCommand("copy")}catch(e){return"can not copy str to clipboard"}return r.removeChild(n),""},e.cosd=gc,e.cotd=function(e){return ce(e)?1/mc(e=se(e)):null},e.cscd=function(e){return ce(e)?1/yc(e=se(e)):null},e.cstr=Za,e.day2cht=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!bc(e))return"";var r=d.default(e,"YYYY-MM-DD");return t?r.month()+1+"月"+r.date()+"日":"民國 "+(r.year()-1911)+" 年 "+(r.month()+1)+" 月 "+r.date()+" 日"},e.debounce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;function t(e){var t=[],r=null,n=null;function o(){null===r&&(r=setInterval((function(){if(Date.now()-n>e){var o=t.pop();t=[],o.func.apply(o,ta(o.input))}0===t.length&&(clearInterval(r),r=null)}),10))}return Vi(e)||(e=300),e=$n(e),function(e){if(ra(e)){n=Date.now();for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];t.push({func:e,input:i}),o()}else console.log("func is not function")}}return new t(e)},e.delay=wc,e.dig=Va,e.digExp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ce(e)&&zo(t)?0===(e=se(e))?"0":Math.abs(e)<=1e-6?e.toExponential(t):Va(e,t):""},e.domAlert=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(E(e)){var r=Oo(t,"type","success");Bn(Dc,r)||(r="success");var n=Oo(t,"icon",null);E(n)||(n=Dc[r]);var o="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(o=t.position);var i=Oo(t,"time");Ki(i)||(i=4e3),i<0&&(i=4e3);var a=Oo(t,"paddingStyle",null);null===a&&(a={top:14,right:26,bottom:14,left:14});var u="",c=Oo(a,"top",0),s=Oo(a,"bottom",0),f=Oo(a,"left",0),l=Oo(a,"right",0);u="padding:".concat(c,"px ").concat(l,"px ").concat(s,"px ").concat(f,"px;");var p=Oo(t,"textColor","#000");p=Ga(p,";","");var d=Oo(t,"backgroundColor","#fff");d=Ga(d,";","");var v=Oo(t,"borderWidth",1),h=Oo(t,"borderColor","#ebeef5");h=Ga(h,";","");var g=Oo(t,"borderRadius",8),m=Oo(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");m=Ga(m,";","");var y=Oo(t,"closeIconShift",null);null===y&&(y={top:10,right:10});var b="",w=Oo(y,"top",""),x=Oo(y,"bottom",""),j=Oo(y,"left",""),_=Oo(y,"right","");Ki(w)&&(w="top:".concat(w,"px;")),Ki(x)&&(x="bottom:".concat(x,"px;")),Ki(j)&&(j="left:".concat(j,"px;")),Ki(_)&&(_="right:".concat(_,"px;")),b="position:absolute; ".concat(w," ").concat(_," ").concat(x," ").concat(j);var O="alt-".concat(Sc()),k="alt-".concat(Sc()),S='\n <div \n style="display:inline-block; color:'.concat(p,"; background:").concat(d,"; border:").concat(v,"px solid ").concat(h,"; border-radius:").concat(g,"px; box-shadow:").concat(m,';"\n onmouseenter="ttWAlertFadeIn(\'').concat(k,"')\"\n onmouseleave=\"ttWAlertFadeOut('").concat(k,'\')"\n >\n <div style="position:relative; ').concat(u,'">\n\n <div style="display:flex; align-items:center;">\n <div style="margin-right:10px;">\n <div style="display:flex;">').concat(n,"</div>\n </div>\n <div>").concat(e,'</div>\n </div>\n\n <div style="').concat(b,'">\n <div \n id="').concat(k,'" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel(\'').concat(O,"')\"\n >\n ").concat(Mc,"\n </div>\n </div>\n\n </div>\n </div>\n "),A=document.createElement("div");A.id=O,A.style.position="fixed",A.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",A.style.zIndex=-1,A.style.opacity=.001,o.indexOf("-left")>=0?A.style.transform="translateX(-100%)":A.style.transform="translateX(100%)",A.innerHTML=S;var M=document.querySelector("body");M.appendChild(A);var D=ka();return Lc({id:O,position:o,time:i,pm:D}),D}},e.domAppend=Hc,e.domCancelEvent=zc,e.domConvertToPic=Wc,e.domConvertToPicDyn=function(e){return es.apply(this,arguments)},e.domDetect=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Oo(t,"timeInterval",null);Vi(r)||(r=20);var n=Oo(t,"tolerancePixel",null);Vi(n)||(n=1);var o,i=Cn(),a={offsetWidth:0,offsetHeight:0};if(!ra(e))return console.log("invalid f",e),null;o=setInterval((function(){var t=e();if(t){var r={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight},o=Math.abs(a.offsetWidth-r.offsetWidth)>n,u=Math.abs(a.offsetHeight-r.offsetHeight)>n;if(o||u){var c=rs({},a);setTimeout((function(){r.offsetWidth>0&&r.offsetHeight>0&&(i.emit("resize",{sold:c,snew:r,ele:t}),i.emit("resizeWithWindow",{sold:c,snew:r,ele:t,from:"dom"}))}),1)}a=r}}),r);var u=function(e){i.emit("resizeWithWindow",{snew:a,from:"window"})};return window.addEventListener("resize",u),i.clear=function(){clearInterval(o),window.removeEventListener("resize",u)},i},e.domDrag=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vc(e)){var r=Oo(t,"attIdentify",null);E(r)||(r="dragid");var n=Oo(t,"attIndex",null);E(n)||(n="dragindex");var o=Oo(t,"attGroup",null);E(o)||(o="draggroup");var i=Oo(t,"group",null);E(i)||(i="group");var a=Oo(t,"previewOpacity",null);Ki(a)||(a=.4);var u=Oo(t,"previewDisabledOpacity",null);Ki(u)||(u=.2);var c=Oo(t,"previewBackground",null);E(c)||(c="white");var s=Oo(t,"previewBorderWidth",null);Ki(s)||(s=1);var f=Oo(t,"previewBorderColor",null);E(f)||(f="#f26");var l=Oo(t,"timeDragStartDelay",null);Ki(l)||(l=120);var p="c".concat(Sc(8)),d=i;e.setAttribute(o,d),e.setAttribute(r,p);var v=hs(d,p,{attIdentify:r,previewOpacity:a,previewBackground:c,previewBorderWidth:s,previewBorderColor:f}),h={dragStart:function(e){v.emit(d+"-dragStart",e)}},g=ys(e,h);g.bind(),ws({gid:d,attGroup:o,attIndex:n,attIdentify:r,timeDragStartDelay:l,previewOpacity:a,previewDisabledOpacity:u});var m=Cn();return v.on(i+"-change",(function(e){e.tarEid===p&&m.emit("change",e)})),v.on(i+"-start",(function(e){e.tarEid===p&&m.emit("start",e)})),v.on(i+"-move",(function(e){e.tarEid===p&&m.emit("move",e)})),v.on(i+"-enter",(function(e){e.tarEid===p&&m.emit("enter",e)})),v.on(i+"-leave",(function(e){e.tarEid===p&&m.emit("leave",e)})),v.on(i+"-drop",(function(e){e.tarEid===p&&m.emit("drop",e)})),m.setIsActive=b,m.unbind=y,m}function y(){g.unbind(),bs(d,p)}function b(e){vs[d].isActive=e}console.log("ele is not HTMLElement",e)},e.domDragBarAndScroll=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=null,i=null,a=null,u=null,c=null,s=null,f=null,l=null,p=null,d=null,v=null,h=null,g=null,m=null,y=!1,b=Oo(r,"getHeighRatio",null);$e(b)||(b=function(){return 1});var w=Oo(r,"getWidthRatio",null);$e(w)||(w=function(){return 1});var x=Oo(r,"stopScrollPropagationForPanel",null);me(x)||(x=!1);var j=Oo(r,"stopTouchDragPropagationForPanel",null);me(j)||(j=!1);var _=Oo(r,"useTouchDragForPanel",null);me(_)||(_=!0);var O=e,k=t,S=Cn();function E(){n=function(e){var t=e.deltaY/Math.abs(e.deltaY),r=e.deltaX/Math.abs(e.deltaX);S.emit("scrollPanel",{ratioY:t,ratioX:r}),x&&zc(e)},O.addEventListener("wheel",n),o=function(e){if(_){var t=Oo(e,"touches.0.clientY",0),r=Oo(e,"touches.0.clientX",0),n=-t*b(),o=-r*w();y=!0,S.emit("pressBar",{clientY:n,clientX:o}),j&&zc(e)}},O.addEventListener("touchstart",o),i=function(e){if(_&&y){var t=Oo(e,"touches.0.clientY",0),r=Oo(e,"touches.0.clientX",0),n=-t*b(),o=-r*w();S.emit("dragBar",{clientY:n,clientX:o}),j&&zc(e)}},O.addEventListener("touchmove",i,{passive:!1}),a=function(e){_&&y&&(y=!1,S.emit("freeBar"),j&&zc(e))},O.addEventListener("touchend",a),u=function(e){y=!0,S.emit("pressBar",{clientY:e.clientY,clientX:e.clientX})},k.addEventListener("mousedown",u),c=function(e){y&&(y=!1,S.emit("freeBar"))},k.addEventListener("mouseup",c),s=function(e){y=!0,S.emit("pressBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX})},k.addEventListener("touchstart",s),f=function(e){y&&(S.emit("dragBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX}),zc(e))},k.addEventListener("touchmove",f,{passive:!1}),l=function(e){y&&(y=!1,S.emit("freeBar"))},k.addEventListener("touchend",l),p=function(e){y&&S.emit("dragBar",{clientY:e.clientY,clientX:e.clientX})},window.addEventListener("mousemove",p),d=function(e){y&&(y=!1,S.emit("freeBar"),x&&zc(e))},window.addEventListener("mouseup",d),v=function(e){},window.addEventListener("scroll",v,{passive:!1}),h=function(e){},window.addEventListener("wheel",h,{passive:!1}),g=function(e){},document.addEventListener("scroll",g,{passive:!1}),m=function(e){},document.addEventListener("wheel",m,{passive:!1})}function A(){O.removeEventListener("wheel",n),O.removeEventListener("touchstart",o),O.removeEventListener("touchmove",i),O.removeEventListener("touchend",a),k.removeEventListener("mousedown",u),k.removeEventListener("mouseup",c),k.removeEventListener("touchstart",s),k.removeEventListener("touchmove",f),k.removeEventListener("touchend",l),window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",d),window.removeEventListener("scroll",v),window.removeEventListener("wheel",h),document.removeEventListener("scroll",g),document.removeEventListener("wheel",m)}return E(),S.clear=A,S},e.domDragPreview=ls,e.domDropFiles=function(e){var t=!1,r=!1,n=Cn();function o(e){zc(e),r=!0,!1===t&&(t=!0,n.emit("dropIn",{ev:e}))}function i(e){zc(e),r=!1,setTimeout((function(){r||(t=!1,n.emit("dropOut",{ev:e}))}),100)}function a(e){o(e)}function u(e){i(e)}function c(e){function t(){i(e)}o(e),function(e){return Ts.apply(this,arguments)}(e.dataTransfer).then((function(r){var o=jc(r.entries,{type:"file"});n.emit("getFiles",{ev:e,files:r.files,filesTree:o,entries:r.entries,cb:t})})).catch((function(e){n.emit("error",e)}))}return e.addEventListener("dragenter",a,!1),e.addEventListener("dragover",a,!1),e.addEventListener("dragleave",u,!1),e.addEventListener("drop",c,!1),n.off=function(){e.removeEventListener("dragenter",a,!1),e.removeEventListener("dragover",a,!1),e.removeEventListener("dragleave",u,!1),e.removeEventListener("drop",c,!1)},n},e.domFadeIn=Ec,e.domFadeOut=Ac,e.domFind=Is,e.domFinds=Fc,e.domGetAttr=cs,e.domGetBoudRect=ss,e.domGetBoudRectRefSelf=fs,e.domGetFileAccept=Ws,e.domGetFiles=qs,e.domGetPointFromEvent=us,e.domGetScrollableParent=function(e){var t=/(auto|scroll)/,r=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},n=function(e){return t.test(function(e){return r(e,"overflow")+r(e,"overflow-y")+r(e,"overflow-x")}(e))};if(e instanceof HTMLElement||e instanceof SVGElement){for(var o=function e(t,r){return null===t.parentNode?r:e(t.parentNode,r.concat([t]))}(e.parentNode,[]),i=0;i<o.length;i+=1)if(n(o[i]))return o[i];return document.scrollingElement||document.documentElement}},e.domIsClientXYIn=function(e,t,r){if(Ki(e))if(Ki(t)){if(vc(r)){var n;try{n=r.getBoundingClientRect()}catch(e){return void console.log("invalid ele for getBoundingClientRect",e)}var o=!1;try{o=e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom}catch(e){console.log("catch when calculating page information of element",e)}return o}console.log("ele is not HTMLElement",r)}else console.log("clientY is not Number",t);else console.log("clientX is not Number",e)},e.domIsFocused=hc,e.domIsVisible=function(e){if(!vc(e))return Promise.reject("invalid element");if(Vs())return Promise.reject("invalid IntersectionObserver");var t=ka();try{var r=new IntersectionObserver((function(e){t.resolve(e[0].isIntersecting),r.disconnect()}));r.observe(e)}catch(e){t.reject(e)}return t},e.domPrepend=Nc,e.domRemove=Rc,e.domRipple=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Oo(r,"timeDuration",null);Vi(n)||(n=1e3);var o=Oo(r,"color",null);if(E(o)||(o="rgba(255, 255, 255, 0.5)"),vc(e)){e.style.position="relative",e.style.overflow="hidden";var i=e.getBoundingClientRect(),a=t.clientX-i.left,u=t.clientY-i.top,c=2*Math.max(e.clientWidth,e.clientHeight),s=document.createElement("div");s.style.width="".concat(c,"px"),s.style.height="".concat(c,"px"),s.style.transition="all ".concat(n/1e3,"s linear"),s.style.userSelect="none",s.style.position="absolute",s.style.zIndex=1,s.style.left="".concat(a,"px"),s.style.top="".concat(u,"px"),s.style.borderRadius="50%",s.style.transformOrigin="center",s.style.transform="translate(-50%,-50%) scale(0)",s.style.background=o,e.appendChild(s),setTimeout((function(){s.style.transform="translate(-50%,-50%) scale(2)",s.style.opacity=0}),1),setTimeout((function(){Rc(s)}),n)}},e.domScrollIntoView=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vc(e)){Ln(t)||(t={});var r={behavior:"smooth"};r=pf(pf({},r),t),Bc()?ff(e,r):e.scrollIntoView(r)}},e.domScrollTo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vc(e)){Ln(t)||(t={});var r={behavior:"smooth"};r=vf(vf({},r),t),Bc()?Js(e,r):e.scrollTo(r)}},e.domShowImages=Of,e.domShowImagesDyn=function(e){return Sf.apply(this,arguments)},e.domShowInputAndGetFiles=Af,e.domShowInputAndGetFilesU8Arrs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,n=ka(),o=[];return Af(e,t,r).then((function(e){var t=ka(),r=e.err;return Tn(r)>0?t.reject(r):t.resolve(e),t})).then((function(e){var t=e.files;return et(t,(function(e){o.push({name:e.name,size:e.size,type:e.type})})),Pa(t)})).then((function(e){et(e,(function(e,t){o[t].u8a=e})),n.resolve(o)})).catch((function(e){n.reject(e)})),n},e.domTooltip=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=null;function i(){null!==n&&n.destroy(!0),e.setAttribute("tippystate",""),clearInterval(o)}var a={arrow:!0,theme:"dark",placement:"bottom",delay:150};r=Hn(r)?xf(a,r):a;var u=t;t||(u=e.innerHTML);var c=e.getAttribute("tippystate"),s=ce(c);if(e.setAttribute("tippystate","5"),!s){u='<div style="text-align:left;">'.concat(u,"</div>");var f=Cp;Cp.default&&(f=Cp.default),(n=f(e,Bp(Bp({},r),{},{content:u,allowHTML:!0,onHidden:function(){i()},onDestroy:function(){n=null,i()}}))).show(),o=setInterval((function(){var t=e.getAttribute("tippystate");ce(t)?(t=$n(t),t-=1,e.setAttribute("tippystate",t),t<=0&&i()):i()}),1e3)}},e.domTriggerEvent=Ef,e.domVirtualCreate=Fp,e.domVirtualCreateQueue=function(){return new function(){var e=Wp(1);function t(){return(t=Na(Ua.mark((function t(r,n,o){return Ua.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e(Fp,r,n,o));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e,r,n){return t.apply(this,arguments)}}},e.downloadExcelFileFromData=Qp,e.downloadExcelFileFromDataDyn=function(e){return ed.apply(this,arguments)},e.downloadFileFromB64=function(e,t){if(Sa())if(E(e)){var r=document.createElement("a");r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}else console.log("no filename");else console.log("no window")},e.downloadFileFromBlob=qp,e.downloadFileFromText=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Sa()?E(e)?S(t)?ye(r)?qp(e,r?new Blob(["\ufeff",t]):new Blob([t])):console.log("withBOM is not boolean"):console.log("invalid content"):console.log("invalid filename"):console.log("no window")},e.downloadFileFromU8Arr=function(e,t){Sa()?E(e)?xa(t)?qp(e,td(t)):console.log("no data"):console.log("no filename"):console.log("no window")},e.dtmapping=rd,e.dtpick=nd,e.evem=Cn,e.execScript=function(e,t){return new Promise((function(r,n){Jn(t)||(t=[t]);var o=y.default.spawnSync(e,t),i=jc(o.output,(function(e){return null!==e}));i=wi(i,(function(e){return function(e){try{return e.toString("utf8")}catch(e){}return""}(e)}));var a=Xc(i,""),u=Oo(o,"error.message");u?n(u):r(a)}))},e.f2c=function(e){if(!ra(e))return"";var t=String(e),r=t.substring(t.indexOf("/*")+3,t.lastIndexOf("*/"));return r=od(r)},e.files2data=function(e){var t=ka(),r=wi(e,(function(e){return{name:e.name,size:e.size,type:e.type}}));return Da(e).then((function(e){var n=wi(e,(function(e){return{b64:e}})),o=id(r,n);t.resolve(o)})),t},e.flattenTreeObj=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Jn(e)){if(0===e.length)return[]}else{if(!Ln(e))return[];if(to(e))return[]}var r=Oo(t,"bindKey",null);E(r)||(r="id");var n=Oo(t,"bindChildren",null);E(n)||(n="children");var o=!1;function i(e){for(var t=[e[0]],r=1;r<e.length;r++){var o=e[r];t.push(n),t.push(o)}return t}Ln(e)&&(o=!0,e=[e]);var a=[];return ud(e,(function(e,t,o){var u=Oo(e,r,null),c=Oo(e,n,null);if(u){var s=i([].concat(ta(o),[t]));if(a.push(sd(sd({},e),{},{level:(Tn(s)-1)/2,nk:s})),c)return c}})),o&&(a=a[0]),a},e.fsCleanFolder=function(e){if(!b.default.existsSync(e)){var t=pd(e);return t.error?t.error:{success:"done: "+e}}if(!fd(e))return{error:"input path is not folder"};try{b.default.readdirSync(e).forEach((function(t){var r=e+"/"+t;if(b.default.lstatSync(r).isDirectory())ld(r);else try{b.default.unlinkSync(r)}catch(e){}}))}catch(e){return{error:e}}return{success:"done: "+e}},e.fsCopyFolder=function e(t,r){try{b.default.readdirSync(t).forEach((function(n){var o=t+"/"+n,i=r+"/"+n,a=b.default.lstatSync(o);if(a.isDirectory())pd(w.default.dirname(i)),e(o,i);else if(a.isSymbolicLink()){var u=b.default.readlinkSync(o);b.default.symlinkSync(u,i)}else pd(w.default.dirname(i)),b.default.copyFileSync(o,i)}))}catch(e){return{error:e}}return{success:"done: "+r}},e.fsCreateFolder=pd,e.fsDeleteFolder=ld,e.fsGetFilesInFolder=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=dd(e,t);return r=jc(r,(function(e){return vd(e.path)})),r=wi(r,"path")},e.fsGetFoldersInFolder=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=dd(e,t);return r=jc(r,(function(e){return!vd(e.path)})),r=wi(r,"path")},e.fsIsFile=vd,e.fsIsFolder=fd,e.fsReadText=function(e){return b.default.readFileSync(e,"utf8")},e.fsTreeFolder=dd,e.fsWriteText=function(e,t){b.default.writeFileSync(e,t,"utf8")},e.genGradientColor=function(e){if(oo(e))return{};var t;try{t=Ku.toRgba(e)}catch(e){return{}}function r(e,t){return e.a=t,Ku.toRgbaString(e)}return{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,r(t,.4)],[1,r(t,.9)]]}},e.genID=Sc,e.genPm=ka,e.getBufferSize=gd,e.getClearPathName=yd,e.getCsvStrFromData=wd,e.getDataFromExcelFileU8Arr=Sd,e.getDataFromExcelFileU8ArrDyn=function(e){return Ed.apply(this,arguments)},e.getDirName=function(e){if(!E(e))return"";var t=yd(e);if(t.isRoot)return t.path;var r=Ad(e=t.path);if(!E(r))return e;var n=yd(e=md(e,Tn(r)));return n.isRoot,n.path},e.getEnv=function(){var e=Sa(),t="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope;return{isBrowser:e=e||t,isWebWorker:t,isNode:"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}},e.getExcelU8ArrFromData=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";if(!io(e)){var r="no data";return{error:r}}E(t)||(t="data");var n=null;try{var o=$p(e,t),i=Md().write(o,{bookType:"xlsx",type:"binary"});n=La(i)}catch(e){return{error:e}}return n},e.getExcelWorkbookFromData=$p,e.getExcelWorkbookFromWorksheet=Vp,e.getFileAccept=Us,e.getFileName=Ad,e.getFileTrueName=function(e){if(!E(e))return"";var t=Ad(e),r=aa(t,".");if(Tn(r)<=1)return t;var n="";try{r=Dd(r),n=Xc(r,".")}catch(e){}return n},e.getGlobal=_c,e.getObjSize=function(e){var t=0,r=function e(r){if(null!=r)switch(T(r)){case"number":t+=8;break;case"string":t+=2*r.length;break;case"boolean":t+=4;break;case"object":var n=Object.prototype.toString.call(r).slice(8,-1);if("Object"===n||"Array"===n)for(var o in r)r.hasOwnProperty(o)&&e(r[o]);else t+=2*r.toString().length}return t}(e);return{int:r,str:function(e){return e<1024?e+" bytes":e<1048576?(e/1024).toFixed(3)+" KiB":e<1073741824?(e/1048576).toFixed(3)+" MiB":(e/1073741824).toFixed(3)+" GiB"}(r)}},e.getTimeBetween=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"days",n=Id(r);if(""===n)return[];var o=Ld(e,r),i=Ld(t,r);if(null===o||null===i)return[];if(e>=t)return[];var a=i.diff(o,r)+1,u=wi(Td(a),(function(e){return o.clone().add(e,r).format(n)}));return u},e.getTimeFromUnit=Id,e.getTimeObject=Ld,e.getTimeRange=function(e,t){if(!Hd(e))return"無起始時間";if(void 0===t&&(t=e),!Hd(t))return"結束時間格式錯誤";var r=d.default(e,"YYYY-MM-DDTHH:mm:ss"),n=d.default(t,"YYYY-MM-DDTHH:mm:ss"),o=r.format("YYYY-MM-DD"),i=n.format("YYYY-MM-DD");if(o===i){var a=n.format("HH:mm");if(e===t)return Bd(e)+" 至 無";if(e<t)return Bd(e)+" 至 "+a;if(e>t)return Bd(e)+" 至 "+a+" (起始時間大於結束時間)"}else{if(o<i)return Bd(e)+" 至 "+Bd(t);if(o>i)return Bd(e)+" 至 "+Bd(t)+" (起始時間大於結束時間)"}return""},e.getUserAgent=Fd,e.getUserAgentDyn=function(){return Rd.apply(this,arguments)},e.getltdtkeys=Gp,e.haskey=Bn,e.html2pic=Wd,e.html2picDyn=function(e){return Vd.apply(this,arguments)},e.html2str=Xd,e.html2strDyn=function(e,t){return $d.apply(this,arguments)},e.htmlDecode=function(e){var t=document.createElement("span");return t.appendChild(document.createTextNode(e)),t.innerHTML},e.htmlEncode=Ta,e.importResources=Qc,e.interp1=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Jn(e))return{err:"ps is not array"};if(!Ki(t))return{err:"x is not number"};var n=tv(e,r);if(Oo(n,"err"))return Oo(n,"err");if(0===Tn(n))return{err:"ps(length=0) is not effective array",ps:e,psEff:n};if(1===Tn(n))return{err:"ps(length=1) is one point only",ps:e,psEff:n};var o=rv(n);if("no"===o)return{err:"psEff is not increasing or decreasing"};o===ev&&(o=Qd,n=Zd(n));var i=Oo(r,"mode");"linear"!==i&&"stairs"!==i&&"blocks"!==i&&(i="linear");try{if("linear"===i)return ov(n,t);if("blocks"===i)return av(n,t);if("stairs"===i)return iv(n,t,r)}catch(e){return{err:e.toString()}}},e.isDev=function(){return!!location&&Oa(location.href,"localhost")},e.isEle=vc,e.isEleExistByID=function(e){return!!E(e)&&!(null===document.getElementById(e))},e.isEmail=function(e){return!!E(e)&&/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},e.isIE=Bc,e.isNarrow=function(e){if(!Sa())return!1;var t=window.innerWidth>0&&window.innerWidth<=1024,r=!1;if(e){var n=Oo(e,"clientWidth",0);r=n>0&&n<=700}return t||r},e.isStrHasCapital=fv,e.isStrHasLowerCase=lv,e.isStrHasNumber=da,e.isUserIdentify=function(e){var t=ka();if(!E(e))return t.reject("身份證字號非有效字串"),t;if(10!==e.length)return t.reject("身份證字號長度非10位"),t;if(isNaN(e.substr(1,9))||!/^[A-Z]$/.test(e.substr(0,1)))return t.reject("身份證格式錯誤,字首需大寫英文"),t;e="ABCDEFGHJKLMNPQRSTUVXYWZIO".indexOf(e.substring(0,1))+10+""+e.substr(1,9);var r=parseInt(e.substr(0,1))+9*parseInt(e.substr(1,1))+8*parseInt(e.substr(2,1))+7*parseInt(e.substr(3,1))+6*parseInt(e.substr(4,1))+5*parseInt(e.substr(5,1))+4*parseInt(e.substr(6,1))+3*parseInt(e.substr(7,1))+2*parseInt(e.substr(8,1))+parseInt(e.substr(9,1)),n=parseInt(e.substr(10,1));return r%10!=0&&10-r%10!==n?(t.reject("非有效身份證"),t):(t.resolve(),t)},e.isUserName=function(e){var t=ka();return E(e)?(t.resolve(),t):(t.reject("請填入姓名"),t)},e.isUserPW=function(e){var t=ka();if(!S(e))return t.reject("密碼非字串"),t;var r=[];return e.length<8&&r.push("長度須大於8個字元"),e.length>30&&r.push("長度須小於30個字元"),fv(e)&&lv(e)&&da(e)||r.push("須包含大寫、小寫英文與數字各1個字元"),Oa(e,["<",">"])&&r.push("不能使用特殊符號(<,>)"),Oa(e,["select","insert","update","delete"])&&r.push("不能使用指令(select,insert,update,delete)"),r.length>0?t.reject(Xc(r,",")):t.resolve(),t},e.isWindow=Sa,e.isab=O,e.isarr=Jn,e.isarr0=no,e.isblob=Ca,e.isbol=ye,e.isday=bc,e.isearr=io,e.iseobj=Hn,e.iser=oo,e.isernot=Ns,e.isestr=E,e.isfun=ra,e.isint=fe,e.ismonth=A,e.isn0int=uv,e.isn0num=cv,e.isnbr=ue,e.isnint=Gn,e.isnull=eo,e.isnum=ce,e.isobj=Ln,e.isobj0=to,e.isp0int=zo,e.isp0num=sv,e.ispint=Vi,e.ispm=zp,e.isstr=S,e.isstr0=ro,e.istime=Hd,e.istimeTZ=gv,e.istimems=pv,e.istimemsTZ=hv,e.isu16arr=hd,e.isu8arr=xa,e.isundefined=Qn,e.j2o=ba,e.keysmat2ltdt=mv,e.log=function(){var e=null;return{init:function(t){if(!ra(t))throw new Error("loggerFun is not function");e=t},log:function(t,r,n){if(null===e)throw new Error("no logger: need to construct by init");var o=yv(),i={id:Sc(),from:t,level:r,msg:Ya(n),time:o};return e(i)}}},e.ltdt2vrtsable=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!io(e))return[];if(!Jn(t))return[];var r=!1;if(et(e,(function(e){Hn(e)||(r=!0)})),r)return[];var n=Gp(e),o=[];et(e,(function(e){var t={};et(n,(function(r){t[r]={value:e[r].value,style:e[r].style,rowspan:1}})),o.push(t)}));var i=Zd(o),a=Tn(i);et(n,(function(e){if(Ji(e,t)){var r=lo(0,a,0),n=lo(0,a,0),o=lo(1,a+1,0);et(i,(function(t,a){if(a>0){var u=i[a-1][e].value,c=i[a][e].value;Zi(u,c)&&(r[a-1]=1,r[a]=1,o[a]=o[a-1]+1),1===r[a-1]&&1===r[a]&&(n[a-1]=0,n[a]=1)}})),et(i,(function(t,a){1===r[a]&&(1===n[a]?i[a][e].rowspan=o[a]:i[a][e].rowspan=null)}))}}));var u=Zd(i);return u},e.ltdtdiff=function(e,t,r){if(!E(r))return console.log("invalid key"),{infor:{},del:[],same:[],diff:[],add:[]};Jn(e)||(e=[e]),Jn(t)||(t=[t]);var n={},o=[],i=[],a=[];et(e,(function(e){if(Bn(e,r)){var u=Xa({},r,e[r]),c=xv(t,u);oo(c)?(o.push(e),n[e[r]]="del"):Zi(e,c)?(a.push(c),n[c[r]]="same"):(i.push(c),n[c[r]]="diff")}}));var u=[];return et(t,(function(t){if(Bn(t,r)){var o=Xa({},r,t[r]);oo(xv(e,o))&&(u.push(t),n[t[r]]="add")}})),{infor:n,del:o,same:a,diff:i,add:u}},e.ltdtkeys2mat=Zp,e.ltdtkeysheads2mat=Kp,e.ltdtmapping=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!io(e))return[];if(!io(t))return[];var n=wi(e,(function(e){return rd(e,t,r)}));return n},e.ltdtmerge=id,e.ltdtpick=function(e,t){return io(e)&&io(t)?wi(e,(function(e){return nd(e,t)})):[]},e.ltdtpull=function(e,t,r){return Jn(e)&&Jn(t)&&E(r)&&Ov(e,(function(e){return Ln(e)}))?0===t.length?e:Ov(t,(function(e){return Ln(e)}))?Sv(e,t,r):[]:[]},e.mat2ltdt=function(e){if(!io(e))return[];if(e.length<=1)return[];var t=!1;return et(e,(function(e){io(e)||(t=!0)})),t?[]:mv(Ev(e)[0],Av(e))},e.matat=function(e,t,r){return io(e)?wi(e,(function(e){return Fo(e,t,r)})):[]},e.now2str=function(){return d.default().format("YYYY-MM-DDTHH:mm:ssZ")},e.now2strp=function(){return d.default().format("YYYYMMDDHHmmss")},e.nowDay2str=function(){return d.default().format("YYYY-MM-DD")},e.nowms2str=yv,e.nowms2strp=function(){return d.default().format("YYYYMMDDHHmmssSSS")},e.o2j=Ya,e.obj2b64=function(e){var t="";try{t=Mv(Ya(e))}catch(e){t=""}return t},e.obj2pb64=function(e,t){return void 0===e?"":E(t)?Dv(Ya({data:e}),t,!0):""},e.obj2str=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Uint8Array";if(Qn(e))return"";if(S(t))t=[t];else if(!Jn(t))return"";function r(e,r){return t.indexOf("Uint8Array")>=0&&(r=Hv.u8arr2b64(r)),t.indexOf("Uint16Array")>=0&&(r=Hv.u16arr2b64(r)),r}var n="";try{n=JSON.stringify(e,r)}catch(e){n=""}return n},e.obj2stru8arr=zv,e.obj2u8arr=function(e){var t=[],r=[];if(!io(e)&&!Hn(e))return null;var n=[],o=[];function i(e){n.push(gd(e)),o.push(e)}try{var a=zv(e);i(Fv(a.results)),et(a.binarys,(function(e){i(e)}));var u=n,c=Fv(JSON.stringify(u)),s=new Uint8Array(8);Fa(gd(c),s),t.push(s),t.push(c),et(o,(function(e){t.push(e)})),et(t,(function(e){r=function(e,t){var r=gd(e),n=gd(t),o=new Uint8Array(r+n);return o.set(new Uint8Array(e),0),o.set(new Uint8Array(t),r),o}(r,e)}))}catch(e){return null}return r},e.objSortBy=function(e,t){if(!Hn(e))return{};if(!ra(t))throw new Error("fun is not a function");var r=wi(e,(function(e,r){return{k:r,v:e,t:t(e,r)}}));r=pa(r,"t");var n={};return et(r,(function(e){n[e.k]=e.v})),n},e.ocr=Nv,e.ocrDyn=function(e){return Wv.apply(this,arguments)},e.oo=function(e){if(void 0!==e)return ba(Ya(e))},e.openLink=function(e){if(E(e)){var t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},e.pb642obj=function(e,t){return E(e)&&E(t)?ba(be(e,t,!0)).data:""},e.pm2resolve=Np,e.pmChain=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Jn(e)){var r=ka();return r.reject("pms is not array"),r}return e.reduce((function(e,t){return e.then(t)}),Promise.resolve(t))},e.pmHook=qv,e.pmHookReject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return ra(e)?(ra(t)||(t=function(){}),qv(e,(function(e){if("afterCatch"===e.mode)return t(e.data)}))):null},e.pmIni=function(){return Promise.resolve()},e.pmMap=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n={},o=!1,i=ka();if(!Jn(e)&&!Ln(e))return i.reject("rs is not array or object"),i;var a=!1;if(Ln(e)){a=!0;var u=[];et(e,(function(e,t){u.push({k:t,v:e})})),e=u}var c=Up(r);return c.on("message",(function(r){if(!o){var u,s=c.get();if(ra(t)){var f=s.key,l=s.value;a&&(f=s.value.k,l=s.value.v),u=t(l,f)}else u=s.value;u.then((function(e){n[s.key]=e})).catch((function(e){o=!0,c.clear(),i.reject(e)})).finally((function(){c.cb(),Tn(n)===e.length&&i.resolve(jd(n))}))}})),et(e,(function(e,t){c.push({key:t,value:e})})),i},e.pmQueue=Wp,e.pmSeries=Gc,e.pmThrottle=function(){var e=Cn(),t=[],r=null,n=!1;function o(){null===r&&(r=setInterval(Na(Ua.mark((function o(){var i,a,u,c,s,f;return Ua.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!n){o.next=2;break}return o.abrupt("return");case 2:for(n=!0,i=t.pop(),a=0;a<t.length;a++)u=t[a].id,c={state:"cancelled"},e.emit(u,c);if(t=[],!i){o.next=16;break}if(f=i.id,!ra(i.func)){o.next=14;break}return o.next=11,Np(i.func).apply(void 0,ta(i.input));case 11:s=o.sent,o.next=15;break;case 14:s={state:"error",msg:"fun is not function"};case 15:e.emit(f,s);case 16:(n=!1)||0!==t.length||(clearInterval(r),r=null);case 18:case"end":return o.stop()}}),o)}))),10))}return function(r){var n=ka();if(ra(r)){for(var i=Sc(),a=arguments.length,u=new Array(a>1?a-1:0),c=1;c<a;c++)u[c-1]=arguments[c];return t.push({id:i,func:r,input:u}),o(),e.once(i,(function(e){"success"===e.state?n.resolve(e.msg):"cancelled"===e.state?n.reject({reason:"cancelled"}):n.reject(e.msg)})),n}console.log("func is not function")}},e.queue=Up,e.rep=function(e,t){return E(e)&&zo(t)?$v(e,t):""},e.repObj=function(e,t){return oo(e)?[]:Vi(t)?Td(t,To(e)):[]},e.replace=Ga,e.replaceObj=function(e,t){if(!E(e))return"";if(!Hn(t))return"";var r=!1;return et(t,(function(e,t){S(e)||(r=!0)})),r?"":(et(t,(function(t,r){e=Ga(e,r,t)})),e)},e.replacePlus=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0;if(!E(e)||!E(t)||!E(r))return"";if(!S(o))return"";var i="[\\s\\S]*";E(n)&&(i="[^"+n+"]*");var a=t+i+r,u=new RegExp(a,"g"),c=e.replace(u,o);return c},e.round=function(e){return ce(e)?(e=se(e),Xn(e)):""},e.secd=function(e){return ce(e)?1/gc(e=se(e)):null},e.sep=qi,e.sepInt=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!fe(e))return[];if(!zo(t))return[];if(!ye(r))return[];for(var n=Gv(e/t),o=e-n*t,i=[],a=1;a<=t;a++){var u=n;a<=o&&(u=n+1),i.push(u)}return r&&(i=Zd(i)),i},e.sind=yc,e.split=Wi,e.str2aes=Dv,e.str2b64=Mv,e.str2md5=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!E(e))return"";if(!ye(t))return"";var r=de(e);return t?r.toString(pe):r.toString(ge)},e.str2obj=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Uint8Array";if(S(t))t=[t];else if(!Jn(t))return{};function r(e,r){return t.indexOf("Uint8Array")>=0&&(r=Hv.b642u8arr(r)),t.indexOf("Uint16Array")>=0&&(r=Hv.b642u16arr(r)),r}var n={};try{n=JSON.parse(e,r)}catch(e){n={}}return n},e.str2sha512=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!E(e))return"";if(!ye(t))return"";var r=Zv(e);return t?r.toString(pe):r.toString(ge)},e.str2u8arr=Fv,e.strCompare=Kv,e.strFindFuzz=nh,e.strFindFuzzDyn=function(e,t){return oh.apply(this,arguments)},e.strFindSimilar=function(e,t){var r="";if(E(e)||ce(e))r=Za(e);else{if(!io(e))return{};r=Xc(e,"")}return ce(t)&&(t=Za(t)),E(t)&&(t=[t]),io(t)?function(e,t){for(var r=[],n=0,o=0;o<t.length;o++){var i=t[o],a=Kv(e,i);r.push({target:i,rating:a}),a>r[n].rating&&(n=o)}return{ratings:r,bestMatch:r[n],bestMatchIndex:n}}(r,t=wi(t,(function(e){return Za(e)}))):{}},e.strdelleft=Gi,e.strdelright=md,e.strleft=Xi,e.strmid=va,e.strright=$i,e.stru8arr2obj=ih,e.tand=mc,e.time2day=function(e){return Hd(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD"):""},e.time2hour=function(e){return Hd(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH"):""},e.time2min=Bd,e.timeTZ2day=function(e){return gv(e)?(e=vv.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")):""},e.timeTZ2expire=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return gv(e)?ah(e=ch(e),t=ch(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timeTZ2hour=function(e){return gv(e)?(e=vv.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")):""},e.timeTZ2min=function(e){return gv(e)?(e=vv.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")):""},e.timeTZ2past=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return gv(e)?uh(e=sh(e),t=sh(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timems2day=function(e){return pv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DD"):""},e.timems2hour=function(e){return pv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH"):""},e.timems2min=function(e){return pv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm"):""},e.timems2time=function(e){return pv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm:ss"):""},e.timemsTZ2day=function(e){return hv(e)?(e=vv.delTZ(e),d.default(e).format("YYYY-MM-DD")):""},e.timemsTZ2expire=ah,e.timemsTZ2hour=function(e){return hv(e)?(e=vv.delTZ(e),d.default(e).format("YYYY-MM-DDTHH")):""},e.timemsTZ2min=function(e){return hv(e)?(e=vv.delTZ(e),d.default(e).format("YYYY-MM-DDTHH:mm")):""},e.timemsTZ2past=uh,e.timemsTZ2time=function(e){return hv(e)?(e=vv.delTZ(e),d.default(e).format("YYYY-MM-DDTHH:mm:ss")):""},e.treeObj=ud,e.trim=od,e.u16arr2b64=Iv,e.u16arr2u8arr=Tv,e.u8arr2ab=function(e){return xa(e)?e.buffer:new ArrayBuffer},e.u8arr2b64=Yv,e.u8arr2blob=td,e.u8arr2bs=function(e){if(!xa(e))return"";for(var t=e.length,r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r},e.u8arr2obj=function(e){var t=null;if(!xa(e))return null;try{var r=e.slice(0,8),n=e.slice(8,gd(e)),o=Ba(r),i=n.slice(0,o),a=n.slice(o,gd(n)),u=fh(i),c=function(e,t){var r=0,n=0,o=[];return et(t,(function(t){n=r+t;var i=e.slice(r,n);r=n,o.push(i)})),o}(a,JSON.parse(u));t=ih({results:fh(c.shift()),binarys:c})}catch(e){}return t},e.u8arr2str=fh,e.u8arr2u16arr=ja,e.urlParse=function(e){if(!E(e))return{};if(e=aa(e,"?"),!E(e=Oo(e,"[1]")))return{};var t=aa(e,"&");return t=wi(t,(function(e){return aa(e,"=")})),t=lh(t)},e.verifyValue=function(e,t){var r=!1,n="";if("isstr"===t)S(e)||(r=!0,n="需要為字串",e="");else if("isnum"===t)ce(e)||(r=!0,n="需要為數字",e=0);else if("isp0num"===t)sv(e)||(r=!0,n="需要為含0的正浮點數",e=0);else if("isn0num"===t)cv(e)||(r=!0,n="需要為含0的負浮點數",e=0);else if("isint"===t)fe(e)||(r=!0,n="需要為整數",e=0);else if("ispint"===t)Vi(e)||(r=!0,n="需要為不含0正整數",e=0);else if("isp0int"===t)zo(e)||(r=!0,n="需要為含0正整數",e=0);else if("isnint"===t)Gn(e)||(r=!0,n="需要為不含0負整數",e=0);else if("isn0int"===t)uv(e)||(r=!0,n="需要為含0負整數",e=0);else if(ra(t)){e=t(e)}else"any"===t?ce(e)||S(e)||(r=!0,n="需要為字串或數字",e=""):(r=!0,n="需要指定驗證類型",e=null);return{value:e,err:r,errmsg:n}},e.waitFun=Wa,Object.defineProperty(e,"__esModule",{value:!0})}));
25
+ */!function(e){var t={},r=e._dec,n=e._hex,o=e._pad4;function i(e){return e.replace(/[- _]+/g,"").toLowerCase()}function a(e){var t=/^\\[xu](.+)/.exec(e);return t?r(t[1]):e.charCodeAt("\\"===e.charAt(0)?1:0)}function u(r){return t[r]["b!"]||(t[r]["b!"]=function(t){var r="",i=-1;return e.forEach(t,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(e){var t=a(e[1]);t>i+1&&(r+="\\u"+o(n(i+1)),t>i+2&&(r+="-\\u"+o(n(t-1)))),i=a(e[2]||e[1])})),i<65535&&(r+="\\u"+o(n(i+1)),i<65534&&(r+="-\\uFFFF")),r}(t[r].bmp))}e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(e,r,n){var o="P"===e[1]||!!e[2],a=i(e[4]||e[3]),c=t[a];if("P"===e[1]&&e[2])throw new SyntaxError("Invalid double negation "+e[0]);if(!t.hasOwnProperty(a))throw new SyntaxError("Unknown Unicode token "+e[0]);if(c.inverseOf){if(a=i(c.inverseOf),!t.hasOwnProperty(a))throw new ReferenceError("Unicode token missing data "+e[0]+" -> "+c.inverseOf);c=t[a],o=!o}if(!c.bmp)throw new SyntaxError("Astral mode required for Unicode token "+e[0]);return"class"===r?o?u(a):c.bmp:(o?"[^":"[")+c.bmp+"]"}),{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(r){for(var n,o=0;o<r.length;++o){if(!(n=r[o]).name)throw new Error("Unicode token requires name");if(!(n.inverseOf||n.bmp||n.astral))throw new Error("Unicode token has no character data "+n.name);t[i(n.name)]=n,n.alias&&(t[i(n.alias)]=n)}e.cache.flush("patterns")},e._getUnicodeProperty=function(e){var r=i(e);return t[r]}}(Z),function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");e.addUnicodeData([{name:"L",alias:"Letter",bmp:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢄᢇ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"},{name:"N",alias:"Number",bmp:"0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൘-൞൦-൸෦-෯๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9"}])}(Z);var K=Z,J={exports:{}};return function(e){e.exports=function(t,r,n,o){return(e={}).dedupe=function(e,i){var a,u=t(i);if(!r(e)&&"object"!=T(e))throw new Error("contains_dupes must be an array or object");if(0===Object.keys(e).length)return void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("contains_dupes is empty"),[];u.limit&&(void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("options.limit will be ignored in dedupe"),u.limit=0),u.cutoff&&"number"==typeof u.cutoff||(void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("Using default cutoff of 70"),u.cutoff=70),u.scorer||(u.scorer=n,void 0!==("undefined"==typeof console?"undefined":T(console))&&console.log("Using default scorer 'ratio' for dedupe")),a=u.processor&&"function"==typeof u.processor?u.processor:function(e){return e};var c={};for(var s in e){var f=a(e[s]);if("string"!=typeof f&&f instanceof String==0)throw new Error("Each processed item in dedupe must be a string.");var l=o(f,e,u);u.returnObjects?(1===l.length||(l=l.sort((function(e,t){var r=a(e.choice),n=a(t.choice),o=r.length,i=n.length;return o===i?r<n?-1:1:i-o}))),u.keepmap?c[a(l[0].choice)]={item:l[0].choice,key:l[0].key,matches:l}:c[a(l[0].choice)]={item:l[0].choice,key:l[0].key}):(1===l.length||(l=l.sort((function(e,t){var r=a(e[0]),n=a(t[0]),o=r.length,i=n.length;return o===i?r<n?-1:1:i-o}))),u.keepmap?c[a(l[0][0])]=[l[0][0],l[0][2],l]:c[a(l[0][0])]=[l[0][0],l[0][2]])}var p=[];for(var d in c)p.push(c[d]);return p},e}}(J),function(){var e=c,r=d,n=v.exports.intersection,o=v.exports.intersectionWith,i=v.exports.difference,a=v.exports.differenceWith,u=v.exports.uniq,s=v.exports.uniqWith,f=v.exports.partialRight,l=v.exports.forEach,p=v.exports.keys,h=v.exports.isArray,m=v.exports.toArray,w=v.exports.orderBy,x=g,j=y,_=b,O=function(e,t,r){var n={},o=K,i=y,a=b;function u(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function c(e){return("string"==typeof e||e instanceof String)&&e.length>0}n.validate=c,n.process_and_sort=function(e){return c(e)?e.match(/\S+/g).sort().join(" ").trim():""},n.tokenize=function(n,o){if(o&&o.wildcards&&t&&r){var u=r(i,o,a);return t(n.match(/\S+/g),(function(e,t){return 0===u(e,t)}))}return e(n.match(/\S+/g))};var s=o("[^\\pN|\\pL]","g");return n.full_process=function(e,t){if(!(e instanceof String)&&"string"!=typeof e)return"";var r;if(t&&"object"==T(t)&&t.wildcards&&"string"==typeof t.wildcards&&t.wildcards.length>0){var n=t.wildcards.toLowerCase();if(e=e.toLowerCase(),t.force_ascii){var i="[^\0 -|"+u(n)+"]";e=e.replace(new RegExp(i,"g"),"");var a="["+u(n)+"]",c=n[0];e=e.replace(new RegExp(a,"g"),c);var f="[^A-Za-z0-9"+u(n)+"]";r=(e=(e=e.replace(new RegExp(f,"g")," ")).replace(/_/g," ")).trim()}else{var l="[^\\pN|\\pL|"+u(n)+"]",p=o(l,"g");e=o.replace(e,p," ","all"),a="["+u(n)+"]",c=n[0],r=(e=e.replace(new RegExp(a,"g"),c)).trim()}}else t&&(t.force_ascii||!0===t)&&(r=(e=e.replace(/[^\x00-\x7F]/g,"")).replace(/\W|_/g," ").toLowerCase().trim()),r=o.replace(e,s," ","all").toLowerCase().trim();return t&&t.collapseWhitespace&&(r=r.replace(/\s+/g," ")),r},n.clone_and_set_option_defaults=function(e){if(e&&e.isAClone)return e;var t={isAClone:!0};if(e){var r,n=Object.keys(e);for(r=0;r<n.length;r++)t[n[r]]=e[n[r]]}return void 0!==t.full_process&&!1===t.full_process||(t.full_process=!0),void 0!==t.force_ascii&&!0===t.force_ascii||(t.force_ascii=!1),void 0!==t.normalize&&!1===t.normalize||(t.normalize=!0),void 0!==t.astral&&!0===t.astral&&(t.full_process=!1),void 0!==t.collapseWhitespace&&!1===t.collapseWhitespace||(t.collapseWhitespace=!0),t},n.isCustomFunc=function(e){return"function"!=typeof e||"token_set_ratio"!==e.name&&"partial_token_set_ratio"!==e.name&&"token_sort_ratio"!==e.name&&"partial_token_sort_ratio"!==e.name&&"QRatio"!==e.name&&"WRatio"!==e.name&&"distance"!==e.name&&"partial_ratio"!==e.name},n}(u,s,f),k=O.validate,S=O.process_and_sort,E=O.tokenize,A=O.full_process,M=O.clone_and_set_option_defaults,D=O.isCustomFunc,P=J.exports(M,h,Y,B).dedupe;function Y(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,k(e)&&k(t)?ee(e,t,n):0}function I(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,k(e)&&k(t)?V(e,t,n):0}function C(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,k(e)&&k(t)?(n.partial=!0,V(e,t,n)):0}function L(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,k(e)&&k(t)?(n.proc_sorted||(e=S(e),t=S(t)),ee(e,t,n)):0}function H(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,k(e)&&k(t)?(n.partial=!0,n.proc_sorted||(e=S(e),t=S(t)),te(e,t,n)):0}function B(e,t,n){var o,i=M(n);if(h(t))o=t.length;else{if(!(t instanceof Object))throw new Error("Invalid choices");o=p(t).length}if(!t||0===o)return void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("No choices"),[];if(i.processor&&"function"!=typeof i.processor)throw new Error("Invalid Processor");if(i.processor||(i.processor=function(e){return e}),i.scorer&&"function"!=typeof i.scorer)throw new Error("Invalid Scorer");i.scorer||(i.scorer=Y);var a=D(i.scorer);i.cutoff&&"number"==typeof i.cutoff||(i.cutoff=-1);var u=function(e,t){return e};i.full_process&&(u=A,a||(i.processed=!0));var c=!1;a||(e=u(e,i),i.full_process=!1,i.astral&&i.normalize&&(i.normalize=!1,String.prototype.normalize?(c=!0,e=e.normalize()):void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("Normalization not supported in your environment")),0===e.length&&void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("Processed query is empty string"));var s,f,d,v,g=[],m=!1,y=!1,b=!1;if("token_sort_ratio"===i.scorer.name||"partial_token_sort_ratio"===i.scorer.name){var w=S(e);y=!0}else if("token_set_ratio"===i.scorer.name||"partial_token_set_ratio"===i.scorer.name){var x=E(e,i);b=!0}return i.returnObjects?(d=function(e,t){return e.score-t.score},v=function(e,t){return t.score-e.score}):(d=function(e,t){return e[1]-t[1]},v=function(e,t){return t[1]-e[1]}),l(t,(function(t,r){i.tokens=void 0,i.proc_sorted=!1,y?(i.proc_sorted=!0,t&&t.proc_sorted?f=t.proc_sorted:(f=u(i.processor(t),i),f=S(c?f.normalize():f)),s=i.scorer(w,f,i)):b?(f="x",t&&t.tokens?(i.tokens=[x,t.tokens],i.trySimple&&(f=u(i.processor(t),i))):(f=u(i.processor(t),i),i.tokens=[x,E(c?f.normalize():f,i)]),s=i.scorer(e,f,i)):a?(f=i.processor(t),s=i.scorer(e,f,i)):("string"==typeof(f=u(i.processor(t),i))&&0!==f.length||(m=!0),c&&"string"==typeof f&&(f=f.normalize()),s=i.scorer(e,f,i)),s>i.cutoff&&(i.returnObjects?g.push({choice:t,score:s,key:r}):g.push([t,s,r]))})),m&&void 0!==("undefined"==typeof console?"undefined":T(console))&&console.log("One or more choices were empty. (post-processing if applied)"),i.limit&&"number"==typeof i.limit&&i.limit>0&&i.limit<o&&!i.unsorted?g=r.nlargest(g,i.limit,d):i.unsorted||(g=g.sort(v)),g}function z(e,t,n,o){var i,a=M(n);"object"==T(n.cancelToken)&&(i=n.cancelToken);var u=256;"number"==typeof a.asyncLoopOffset&&(u=a.asyncLoopOffset<1?1:a.asyncLoopOffset);var c,s=!1;if(t&&t.length&&h(t))c=t.length,s=!0;else{if(!(t instanceof Object))return void o(new Error("Invalid choices"));c=Object.keys(t).length}if(!t||0===c)return void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("No choices"),void o(null,[]);if(a.processor&&"function"!=typeof a.processor)o(new Error("Invalid Processor"));else if(a.processor||(a.processor=function(e){return e}),a.scorer&&"function"!=typeof a.scorer)o(new Error("Invalid Scorer"));else{a.scorer||(a.scorer=Y);var f=D(a.scorer);a.cutoff&&"number"==typeof a.cutoff||(a.cutoff=-1);var l=function(e,t){return e};a.full_process&&(l=A,f||(a.processed=!0));var p=!1;f||(e=l(e,a),a.full_process=!1,a.astral&&a.normalize&&(a.normalize=!1,String.prototype.normalize?(p=!0,e=e.normalize()):void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("Normalization not supported in your environment")),0===e.length&&void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("Processed query is empty string"));var d,v,g,m,y,b=[],w=!1,x=!1,j=!1;if("token_sort_ratio"===a.scorer.name||"partial_token_sort_ratio"===a.scorer.name){var _=S(e);x=!0}else if("token_set_ratio"===a.scorer.name||"partial_token_set_ratio"===a.scorer.name){var O=E(e,a);j=!0}a.returnObjects?(m=function(e,t){return e.score-t.score},y=function(e,t){return t.score-e.score}):(m=function(e,t){return e[1]-t[1]},y=function(e,t){return t[1]-e[1]});var k=Object.keys(t);s?P(0):P(k[0],0)}function P(n,h){(s||t.hasOwnProperty(n))&&(a.tokens=void 0,a.proc_sorted=!1,x?(a.proc_sorted=!0,t[n]&&t[n].proc_sorted?v=t[n].proc_sorted:(v=l(a.processor(t[n]),a),v=S(p?v.normalize():v)),g=a.scorer(_,v,a)):j?(v="x",t[n]&&t[n].tokens?(a.tokens=[O,t[n].tokens],a.trySimple&&(v=l(a.processor(t[n]),a))):(v=l(a.processor(t[n]),a),a.tokens=[O,E(p?v.normalize():v,a)]),g=a.scorer(e,v,a)):f?(v=a.processor(t[n]),g=a.scorer(e,v,a)):("string"==typeof(v=l(a.processor(t[n]),a))&&0!==v.length||(w=!0),p&&"string"==typeof v&&(v=v.normalize()),g=a.scorer(e,v,a)),d=s?parseInt(n):n,g>a.cutoff&&(a.returnObjects?b.push({choice:t[n],score:g,key:d}):b.push([t[n],g,d]))),i&&!0===i.canceled?o(new Error("canceled")):s&&n<t.length-1?n%u==0?setImmediate((function(){P(n+1)})):P(n+1):h<k.length-1?h%u==0?setImmediate((function(){P(k[h+1],h+1)})):P(k[h+1],h+1):(w&&void 0!==("undefined"==typeof console?"undefined":T(console))&&console.log("One or more choices were empty. (post-processing if applied)"),a.limit&&"number"==typeof a.limit&&a.limit>0&&a.limit<c&&!a.unsorted?b=r.nlargest(b,a.limit,m):a.unsorted||(b=b.sort(y)),o(null,b))}}var F="%*SuperUniqueWildcardKey*%",R=!1;function N(e,t){var r=e;if(t.astral){t.normalize&&(String.prototype.normalize?r=e.normalize():R||(void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("Normalization not supported in your environment"),R=!0));var n=m(r)}else n=r.split("");var o={};if(t.wildcards)for(var i=0;i<n.length;i++){var a=n[i];t.wildcards.indexOf(a)>-1?o[F]?o[F]+=1:o[F]=1:o[a]?o[a]+=1:o[a]=1}else for(i=0;i<n.length;i++)o[a=n[i]]?o[a]+=1:o[a]=1;return o}function U(e,t,r){for(var o=t,i=e.reduce((function(e,t){return e[t]=N(t,r),e}),{}),a=o.reduce((function(e,t){return e[t]=N(t,r),e}),{}),u=[],c=0;o.length&&c<e.length;){var s=w(o,(function(t){return r=i[e[c]],o=a[t],u=Object.keys(r),s=Object.keys(o),f=n(u,s).map((function(e){return r[e]*o[e]})).reduce((function(e,t){return e+t}),0),l=u.map((function(e){return Math.pow(r[e],2)})).reduce((function(e,t){return e+t}),0),p=s.map((function(e){return Math.pow(o[e],2)})).reduce((function(e,t){return e+t}),0),f/(Math.sqrt(l)*Math.sqrt(p));var r,o,u,s,f,l,p}),"desc")[0];u.push(s),c++,o=o.filter((function(e){return e!==s}))}return u.concat(o)}function W(e,t,r,n){var o=t,i=n;return(t.length>n.length||t.length===n.length&&(e.length>r.length||[e,r].sort()[0]===r))&&(o=n,i=t),[o,i]}function q(e,t,r){if(r.tokens)n=r.tokens[0],o=r.tokens[1];else var n=E(e,r),o=E(t,r);var i=W(e,n.sort(),t,o.sort()),a=i[0],u=U(a,i[1],r);return r.partial?te(a.join(" "),u.join(" "),r):ee(a.join(" "),u.join(" "),r)}function V(e,t,r){if(r.tokens)u=r.tokens[0],c=r.tokens[1];else var u=E(e,r),c=E(t,r);if(r.wildcards)var s=f(j,r,_),l=function(e,t){return 0===s(e,t)},p=o(u,c,l),d=a(u,c,l),v=a(c,u,l);else p=n(u,c),d=i(u,c),v=i(c,u);var h=p.sort().join(" "),g=d.sort(),m=v.sort();if(r.sortBySimilarity)var y=W(e,g,t,m),b=y[0],w=y[1],x=b.join(" "),O=U(b,w,r).join(" ");else x=g.join(" "),O=m.join(" ");var k=h+" "+x,S=h+" "+O;h=h.trim(),k=k.trim(),S=S.trim();var A=ee;if(r.partial&&(A=te,h.length>0))return 100;var M=[A(h,k,r),A(h,S,r),A(k,S,r)];return r.trySimple&&M.push(A(e,t,r)),Math.max.apply(null,M)}var X,$,G,Z,Q=!1;function ee(t,r,n){if(!k(t))return 0;if(!k(r))return 0;if(n.ratio_alg&&"difflib"===n.ratio_alg){var o=new e(null,t,r).ratio();return Math.round(100*o)}var i,a;return void 0===n.subcost&&(n.subcost=2),n.astral?(n.normalize&&(String.prototype.normalize?(t=t.normalize(),r=r.normalize()):Q||(void 0!==("undefined"==typeof console?"undefined":T(console))&&console.warn("Normalization not supported in your environment"),Q=!0)),i=x(t,r,n,m),a=m(t).length+m(r).length):n.wildcards?(i=j(t,r,n,_),a=t.length+r.length):(i=_(t,r,n),a=t.length+r.length),Math.round((a-i)/a*100)}function te(t,r,n){if(!k(t))return 0;if(!k(r))return 0;if(t.length<=r.length)var o=t,i=r;else o=r,i=t;for(var a=new e(null,o,i).getMatchingBlocks(),u=[],c=0;c<a.length;c++){var s=a[c][1]-a[c][0]>0?a[c][1]-a[c][0]:0,f=s+o.length,l=ee(o,i.substring(s,f),n);if(l>99.5)return 100;u.push(l)}return Math.max.apply(null,u)}Object.keys||(Object.keys=(X=Object.prototype.hasOwnProperty,$=!{toString:null}.propertyIsEnumerable("toString"),Z=(G=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(e){if("object"!=T(e)&&("function"!=typeof e||null===e))throw new TypeError("Object.keys called on non-object");var t,r,n=[];for(t in e)X.call(e,t)&&n.push(t);if($)for(r=0;r<Z;r++)X.call(e,G[r])&&n.push(G[r]);return n}));var re=void 0;"undefined"!=typeof Promise&&(re=function(e,t,r){return new Promise((function(n,o){z(e,t,r,(function(e,t){e?o(e):n(t)}))}))});var ne={distance:function(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,void 0===n.subcost&&(n.subcost=1),n.astral?x(e,t,n,m):j(e,t,n,_)},ratio:Y,partial_ratio:function(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,k(e)&&k(t)?te(e,t,n):0},token_set_ratio:I,token_sort_ratio:L,partial_token_set_ratio:C,partial_token_sort_ratio:H,token_similarity_sort_ratio:function(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,k(e)&&k(t)?q(e,t,n):0},partial_token_similarity_sort_ratio:function(e,t,r){var n=M(r);return e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,k(e)&&k(t)?(n.partial=!0,q(e,t,n)):0},WRatio:function(e,t,r){var n=M(r);if(e=n.full_process?A(e,n):e,t=n.full_process?A(t,n):t,n.full_process=!1,!k(e))return 0;if(!k(t))return 0;var o=!0,i=.95,a=.9,u=ee(e,t,n),c=Math.max(e.length,t.length)/Math.min(e.length,t.length);if(c<1.5&&(o=!1),c>8&&(a=.6),o){var s=te(e,t,n)*a,f=H(e,t,n)*i*a,l=C(e,t,n)*i*a;return Math.round(Math.max(u,s,f,l))}var p=L(e,t,n)*i,d=I(e,t,n)*i;return Math.round(Math.max(u,p,d))},full_process:A,extract:B,extractAsync:z,extractAsPromised:re,process_and_sort:S,unique_tokens:E,dedupe:P};t.exports=ne}(),t.exports}()}));var Qv=function(e,t){for(var r,n=-1,o=e.length;++n<o;){var i=t(e[n]);void 0!==i&&(r=void 0===r?i:r+i)}return r};var eh=function(e,t){var r=null==e?0:e.length;return r?Qv(e,t)/r:NaN};var th=function(e){return eh(e,Je)};function rh(){var e=_c();return Jv||e.fuzzball}function nh(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n="";if(E(e)||ce(e))n=Za(e);else{if(!io(e))return!!r&&0;n=Xc(e,"")}if(""===t)return!r||100;if(oo(t))return!!r&&0;if(Oa(n,t))return!r||100;var o=qi(t," "),i=wi(o,(function(e){return rh().partial_ratio(n,e)}));if(r)return th(i);var a=80;return Ov(i,(function(e){return e>=a}))}function oh(){return(oh=Na(Ua.mark((function e(t,r){var n,o,i,a=arguments;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>2&&void 0!==a[2]&&a[2],io(o=a.length>3?a[3]:void 0)||(o=["https://cdn.jsdelivr.net/npm/fuzzball@2.x/dist/fuzzball.umd.min.js"]),e.next=5,Qc(o);case 5:return i=nh(t,r,n),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ih(e){if(!Hn(e))return{};var t=e.results,r=e.binarys;if(!E(t))return{};if(!Jn(r))return{};var n={};try{n=JSON.parse(t,(function(e,t){if(E(t)){if(t.indexOf("[Uint8Array]::")>=0){var n=$n(t.replace("[Uint8Array]::",""));return r[n]}if(t.indexOf("[Uint16Array]::")>=0){var o=$n(t.replace("[Uint16Array]::",""));return r[o]}if(t.indexOf("[ArrayBuffer]::")>=0){var i=$n(t.replace("[ArrayBuffer]::",""));return r[i]}}return t}))}catch(e){}return n}function ah(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!hv(e))return{today:null,msg:"",err:"時間格式錯誤"};var r=d.default();hv(t)&&(r=d.default(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));var n=d.default(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r>n)return{today:null,msg:"",err:"時間已過"};var o,i=r.format("YYYY-MM-DD"),a=n.format("YYYY-MM-DD"),u=d.default(i,"YYYY-MM-DD"),c=d.default(a,"YYYY-MM-DD"),s=n.diff(r,"seconds"),f=n.diff(r,"minutes"),l=n.diff(r,"hours"),p=c.diff(u,"days"),v=c.diff(u,"weeks"),h=c.diff(u,"months"),g=c.diff(u,"years"),m="即將到來";if(s>=0&&(o=!0,m=s+"秒後"),f>0&&(o=!0,m=f+"分鐘後"),l>0){var y=n.format("HH:mm");i===a?(o=!0,m=l+"小時後,今天"+y):(o=!1,m=l+"小時後,明天"+y)}return p>1&&(o=!1,m=2===p?"後天":p+"天後"),v>0&&(o=!1,m=v+"周後"),h>0&&(o=!1,m=h+"個月後"),g>0&&(o=!1,m=g+"年後"),{today:o,msg:m,err:""}}function uh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!hv(e))return{today:null,msg:"",err:"時間格式錯誤"};var r=d.default();hv(t)&&(r=d.default(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));var n=d.default(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r<n)return{today:null,msg:"",err:"時間未到"};var o=r.format("YYYY-MM-DD"),i=n.format("YYYY-MM-DD"),a=d.default(o,"YYYY-MM-DD"),u=d.default(i,"YYYY-MM-DD"),c=r.diff(n,"seconds"),s=r.diff(n,"minutes"),f=r.diff(n,"hours"),l=a.diff(u,"days"),p=a.diff(u,"weeks"),v=a.diff(u,"months"),h=a.diff(u,"years"),g=!1,m="剛剛";if(c>=0&&(g=!0,m=c+"秒前"),s>0&&(g=!0,m=s+"分鐘前"),f>0){var y=n.format("HH:mm");o===i?(g=!0,m=f+"小時前"):(g=!1,m="昨天"+y)}return l>1&&(g=!1,m=l+"天前"),p>0&&(g=!1,m=p+"周前"),v>0&&(g=!1,m=v+"個月前"),h>0&&(g=!1,m=h+"年前"),{today:g,msg:m,err:""}}function ch(e){var t=vv.sepTZ(e);return e="".concat(t.t,".000").concat(t.tz)}function sh(e){var t=vv.sepTZ(e);return e="".concat(t.t,".000").concat(t.tz)}function fh(e){if(!xa(e))return"";var t;try{t=ya(Yv(e))}catch(e){return""}return t}var lh=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n};e._tz=vv,e.ab2blob=function(e){var t=k(e);return new Blob([t])},e.ab2u8arr=k,e.addMonth=function(e,t){return A(e)&&fe(t)?d.default(e,"YYYY-MM").add(t,"months").format("YYYY-MM"):""},e.aes2str=be,e.alive=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4,t=Cn(),r={},n=null;function o(){null===n&&(n=setInterval((function(){et(r,(function(n,o){if(Date.now()-n.time>e){var i=vn(r[o]);delete r[o],t.emit("message",{eventName:"leave",key:o,data:i.data,now:Tn(r)})}})),Hn(r)||(clearInterval(n),n=null)}),50))}function i(e,n){E(e)?(Bn(r,e)||setTimeout((function(){t.emit("message",{eventName:"enter",key:e,data:n,now:Tn(r)})}),1),r[e]={data:n,time:Date.now()},o()):console.log("trigger need key")}function a(){var e=[];return et(r,(function(t,r){e.push({key:r,data:t.data})})),e}return Gn(e)&&(e=1e4),e=$n(e),t.trigger=i,t.get=a,t},e.arr2dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!io(e))return{};if(io(t))return Tn(e)===Tn(t)?Kn(e,t):{};for(var r=[],n=0;n<Tn(e);n++)r.push(vn(t));var o=Kn(e,r);return o},e.arrAccum=function(e){if(!io(e))return[];var t=[],r=0;return et(e,(function(e){r+=se(e),ce(e)?t.push(r):t.push("")})),t},e.arrAdd=function(){if(Tn(arguments)<2)return[];for(var e=arguments[0],t=1;t<Tn(arguments);t++){var r=arguments[t];e=ao(e,r)}return e},e.arrAt=Fo,e.arrFilter=function(e,t){if(!io(e))return[];if(!E(t))return[];var r=qi(t," "),n=Tn(r);return wi(e,(function(e){return function(e){for(var t=!1,o=0,i=0;i<n;i++){var a=r[i],u=a,c="+"===Xi(a,1),s="-"===Xi(a,1);if((c||s)&&(u=Gi(a,1)),""!==Ui(u)){var f=e.indexOf(u)>=0;if(c&&!f){t=!1,o=0;break}if(s&&f){t=!1,o=0;break}if(f){t=!0;var l=1-i/n;o+=l=Math.pow(l,2)}}}return{hasKeyword:t,weight:o}}(e)}))},e.arrFind=function(e,t){function r(e){return Jn(e)?e:[e]}return oo(e)||0===(e=r(e)).length||oo(t)?[]:(t=r(t),wi(t,(function(t){for(var r=-1,n=0;n<e.length;n++)if(Zi(e[n],t)){r=n;break}return r})))},e.arrGroupByMaxmin=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Oo(r,"keyMax");E(n)||(n="max");var o=Oo(r,"keyMin");E(o)||(o="min");var i=Oo(r,"keyValue");E(i)||(i="value");var a=Oo(r,"keyItems");if(E(a)||(a="items"),!io(e))return[];if(!io(t))return[];var u=vn(t);return et(e,(function(e,r){var c=Oo(e,i);ce(c)?c=se(c):ce(e)&&(c=se(e)),Ki(c)&&et(t,(function(t,r){var i=Oo(t,n,null),s=Oo(t,o,null);if(null!==i&&null!==s&&ce(i)&&ce(s)){var f=Oo(t,"maxType");"<="!==f&&"<"!==f&&(f="<=");var l,p=Oo(t,"minType");">="!==p&&">"!==p&&(p=">="),i=se(i),s=se(s),l="<="===f?c<=i:c<i,(">="===p?c>=s:c>s)&&l&&(Bn(u[r],a)||(u[r][a]=[]),u[r][a].push(e))}}))})),u},e.arrHas=Ji,e.arrInsert=function(e,t,r){if(!io(e))return[];if(Jn(r)||(r=[r]),!zo(t))return e;if((t=$n(t))>Tn(e))return e;var n=e;try{n=[].concat(ta(e.slice(0,t)),ta(r),ta(e.slice(t)))}catch(e){}return n},e.arrLookupByMaxmin=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Oo(r,"keyMax");E(n)||(n="max");var o=Oo(r,"keyMin");E(o)||(o="min");var i=Oo(r,"keyValue");E(i)||(i="value");var a=Oo(r,"keyItems");E(a)||(a="items");var u=Oo(r,"beforeAddResult",null);if(!io(e))return[];if(!io(t))return[];var c=Hn(Oo(e,0));if(!c)return[];var s=vn(e);return et(s,(function(e,r){var c=Oo(e,i);ce(c)&&(c=se(c)),Ki(c)&&et(t,(function(e,t){var i=Oo(e,n,null),f=Oo(e,o,null);if(null!==i&&null!==f&&ce(i)&&ce(f)){var l=Oo(e,"maxType");"<="!==l&&"<"!==l&&(l="<=");var p,d=Oo(e,"minType");">="!==d&&">"!==d&&(d=">="),i=se(i),f=se(f),p="<="===l?c<=i:c<i,(">="===d?c>=f:c>f)&&p&&(ra(u)&&(e=u(e,s[r],r)),Bn(s[r],a)||(s[r][a]=[]),s[r][a].push(e))}}))})),s},e.arrSep=function(e,t){if(!io(e))return[];if(!Vi(t))return[];for(var r=Tn(e),n=[],o=0;o<r;o+=t){for(var i=[],a=0;a<t;a++){var u=o+a;u<r&&i.push(e[u])}n.push(i)}return n},e.arrSort=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!io(e))return[];if(1===Tn(e))return e;var r=Oo(t,"returnIndex");ye(r)||(r=!1);var n,o=Oo(t,"compareKey",null),i=ha(e);if(""===i)return[];if("obj"===i){if(!E(o))return[];var a=wi(e,(function(e,t){return Oo(e,o,"")})),u=ha(a);if("num"!==u&&"str"!==u)return[];var c=ga(a,u),s=ma(c,!0);n=r?s:wi(s,(function(t){return e[t]}))}else if("num"===i||"str"===i){var f=ga(e,i);n=ma(f,r)}return n},e.asind=function(e){return ce(e)?(e=se(e),180*Math.asin(e)/Math.PI):null},e.atan2d=function(e,t){return ce(e)?(e=se(e),ce(t)?(t=se(t),180*Math.atan2(t,e)/Math.PI):null):null},e.atand=function(e){return ce(e)?(e=se(e),180*Math.atan(e)/Math.PI):null},e.b642obj=function(e){if(!S(e))return{};var t={};try{t=ba(ya(e))}catch(e){t={}}return t},e.b642str=ya,e.b642u16arr=_a,e.b642u8arr=wa,e.binstr=Oa,e.blob2ab=Ea,e.blob2b64=Aa,e.blob2str=function(e){var t=ka(),r=new FileReader;return r.onload=function(){t.resolve(r.result)},r.onerror=function(e){t.reject(e)},r.readAsText(e),t},e.blob2u8arr=Ma,e.blobs2b64s=Da,e.blobs2u8arrs=Pa,e.bodyLog=function(){var e=wi(arguments,(function(e){return Ya(e)})).join(", "),t='\n <div style="padding:5px; font-size:10pt; font-family:Microsoft JhengHei, Helvetica;">\n <span style="color:#f26;">log: </span>\n <code>'.concat(Ta(e),"</code>\n </div>\n ");document.querySelector("body").insertAdjacentHTML("beforeend",t)},e.browserView=Ia,e.browserViewFromBlob=function(e,t){Ca(e)&&Ia(e,t)},e.browserViewFromText=function(e){S(e)&&Ia(e,"text/plain")},e.browserViewFromU8arr=function(e,t){xa(e)&&Ia(e,t)},e.bs2u8arr=La,e.bufRead=Ha,e.bufReadDbl=Ba,e.bufWrite=za,e.bufWriteDbl=Fa,e.cache=function(){var e=Cn(),t={};function r(t,r){setTimeout((function(){e.emit(t,r)}),1)}function n(e,n){var o=n.execFun,i=n.inputFun,a=n.timeExpired;Bn(t,e)||(ra(o)||(o=function(){var e=Na(Ua.mark((function e(){return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),Gn(a)&&(a=5e3),a=$n(a),Jn(i)||(i=[]),t[e]={needExec:!0,execFun:o,execFunRunning:!1,inputFun:i,value:null,time:null,timeExpired:a},r("message",{fun:"set",key:e,timeExpired:a}))}function o(e){return i.apply(this,arguments)}function i(){return(i=Na(Ua.mark((function e(n){var o,i,a,u;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Bn(t,n)){e.next=24;break}return r("message",{fun:"get",key:n,msg:"waiting"}),e.next=4,Wa((function(){return!t[n].execFunRunning}),{timeInterval:1e3});case 4:if(i=Date.now(),o=t[n].needExec,a=i-t[n].time,o?r("message",{fun:"get",key:n,msg:"execute first"}):t[n].timeExpired>0&&a>t[n].timeExpired&&(r("message",{fun:"get",key:n,msg:"execute by timeExpired",timeDiff:a}),o=!0),!o){e.next=20;break}return r("message",{fun:"get",key:n,msg:"execFun start"}),t[n].execFunRunning=!0,e.next=13,(u=t[n]).execFun.apply(u,ta(t[n].inputFun)).catch((function(e){r("error",{fun:"get",key:n,msg:e})}));case 13:t[n].value=e.sent,t[n].needExec=!1,t[n].time=i,t[n].execFunRunning=!1,r("message",{fun:"get",key:n,msg:"execFun end"}),e.next=21;break;case 20:r("message",{fun:"get",key:n,msg:"use cache"});case 21:return e.abrupt("return",vn(t[n].value));case 24:return r("error",{fun:"get",key:n,msg:"invalid key"}),e.abrupt("return",null);case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function a(){return(a=Na(Ua.mark((function e(t,r){var i,a,u;return Ua.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.execFun,a=r.inputFun,u=r.timeExpired,n(t,{execFun:i,inputFun:a,timeExpired:u}),e.abrupt("return",o(t));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return e.set=n,e.getProxy=function(e,t){return a.apply(this,arguments)},e.get=o,e.update=function(e,n){Bn(t,e)&&(r("message",{fun:"updateValue",key:e}),t[e].value=n,t[e].time=Date.now())},e.clear=function(e){Bn(t,e)&&(r("message",{fun:"clear",key:e}),t[e].needExec=!0)},e.remove=function(e){Bn(t,e)&&(r("message",{fun:"remove",key:e}),delete t[e])},e},e.cbol=function(e){if(ye(e))return e;if(0===e)return!1;if(1===e)return!0;var t=!1;return E(e)&&"true"===(e=qa(Ui(e)))&&(t=!0),t},e.cdbl=se,e.cfilesize=function(e){return ce(e)?(e=se(e))<1024?Va(e,1)+" b":e<1048576?Va(e/1024,1)+" kb":e<1073741824?Va(e/1024/1024,1)+" mb":e<1099511627776?Va(e/1024/1024/1024,1)+" gb":"":""},e.cfinancial=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!ce(e))return"";if(!zo(t))return"";for(var r=(e=Va(e,t)).split("."),n=r[0],o=r.length>1?"."+r[1]:"",i=/(\d+)(\d{3})/;i.test(n);)n=n.replace(i,"$1,$2");var a=n+o;return a},e.cint=$n,e.clearXSS=function(e){return function e(t){return Jn(t)||Ln(t)?(et(t,(function(r,n){t[n]=e(r)})),t):S(t)?(r=t,h.default(r,{onIgnoreTagAttr:function(e,t,r,n){if("style"===t)return t+'="'+h.default.escapeAttrValue(r)+'"'}})):t;var r}(vn(e))},e.color=Ku,e.composeTreeObj=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="$level",n="$parents";if(!io(e))return[];var o=Oo(t,"bindKey",null);E(o)||(o="id");var i=Oo(t,"bindParent",null);E(i)||(i="parentId");var a=Oo(t,"bindChildren",null);E(a)||(a="children");var u=Oo(t,"saveExtProps",null);function c(e){var t,a=[];function u(t){var u=[];et(e,(function(e,c){var s=Oo(e,i),f=Oo(t,o);if(s&&f&&s===f){var l,p=Oo(t,n,[]);(p=vn(p)).push(t[o]),a.push(pc((Xa(l={},r,t[r]+1),Xa(l,n,p),l),e))}else u.push(e)})),e=u}if(e=vn(e),t=[],et(e,(function(e,o){var u;oo(e[i])?a.push(pc((Xa(u={},r,0),Xa(u,n,[]),u),e)):t.push(e)})),e=t,0===a.length)return a;for(var c=-1;!((c+=1)>a.length-1);){if(u(a[c]),0===e.length)break}return a}function s(e){var t=[];function c(e){return u?e:fc(e,[r,n])}var s={};return et(e,(function(n,u){if(0===n[r]){var f=c(n);t.push(f),s[n[o]]=[u]}else{var l=function(t){for(var r=0;r<e.length;r++){var n=e[r];if(t[i]===n[o])return n}return null}(n);if(null!==l){var p=s[l[o]];p=[].concat(ta(p),[a]);var d=Oo(t,p,[]),v=c(n);d.push(v),s[n[o]]=[].concat(ta(p),[d.length-1]),Qu(t,p,d)}else console.log("can not find parent for ".concat(Oo(n,i)))}})),t}ye(u)||(u=!1);var f=s(e=c(e=vn(e)));return f},e.copyStrToClipboard=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!S(e))return"invalid input";var r=Oo(t,"eleParent");vc(r)||(r=document.body);var n=document.createElement("textarea");if(n.style.position="fixed",n.style.left=0,n.style.top=0,n.style.zIndex=-1,n.style.background="transparent",n.style.color="transparent",n.value=e,r.appendChild(n),n.select(),!hc(n))return"ele can not be focusd";try{document.execCommand("copy")}catch(e){return"can not copy str to clipboard"}return r.removeChild(n),""},e.cosd=gc,e.cotd=function(e){return ce(e)?1/mc(e=se(e)):null},e.cscd=function(e){return ce(e)?1/yc(e=se(e)):null},e.cstr=Za,e.day2cht=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!bc(e))return"";var r=d.default(e,"YYYY-MM-DD");return t?r.month()+1+"月"+r.date()+"日":"民國 "+(r.year()-1911)+" 年 "+(r.month()+1)+" 月 "+r.date()+" 日"},e.debounce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;function t(e){var t=[],r=null,n=null;function o(){null===r&&(r=setInterval((function(){if(Date.now()-n>e){var o=t.pop();t=[],o.func.apply(o,ta(o.input))}0===t.length&&(clearInterval(r),r=null)}),10))}return Vi(e)||(e=300),e=$n(e),function(e){if(ra(e)){n=Date.now();for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];t.push({func:e,input:i}),o()}else console.log("func is not function")}}return new t(e)},e.delay=wc,e.dig=Va,e.digExp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ce(e)&&zo(t)?0===(e=se(e))?"0":Math.abs(e)<=1e-6?e.toExponential(t):Va(e,t):""},e.domAlert=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(E(e)){var r=Oo(t,"type","success");Bn(Dc,r)||(r="success");var n=Oo(t,"icon",null);E(n)||(n=Dc[r]);var o="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(o=t.position);var i=Oo(t,"time");Ki(i)||(i=4e3),i<0&&(i=4e3);var a=Oo(t,"paddingStyle",null);null===a&&(a={top:14,right:26,bottom:14,left:14});var u="",c=Oo(a,"top",0),s=Oo(a,"bottom",0),f=Oo(a,"left",0),l=Oo(a,"right",0);u="padding:".concat(c,"px ").concat(l,"px ").concat(s,"px ").concat(f,"px;");var p=Oo(t,"textColor","#000");p=Ga(p,";","");var d=Oo(t,"backgroundColor","#fff");d=Ga(d,";","");var v=Oo(t,"borderWidth",1),h=Oo(t,"borderColor","#ebeef5");h=Ga(h,";","");var g=Oo(t,"borderRadius",8),m=Oo(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");m=Ga(m,";","");var y=Oo(t,"closeIconShift",null);null===y&&(y={top:10,right:10});var b="",w=Oo(y,"top",""),x=Oo(y,"bottom",""),j=Oo(y,"left",""),_=Oo(y,"right","");Ki(w)&&(w="top:".concat(w,"px;")),Ki(x)&&(x="bottom:".concat(x,"px;")),Ki(j)&&(j="left:".concat(j,"px;")),Ki(_)&&(_="right:".concat(_,"px;")),b="position:absolute; ".concat(w," ").concat(_," ").concat(x," ").concat(j);var O="alt-".concat(Sc()),k="alt-".concat(Sc()),S='\n <div \n style="display:inline-block; color:'.concat(p,"; background:").concat(d,"; border:").concat(v,"px solid ").concat(h,"; border-radius:").concat(g,"px; box-shadow:").concat(m,';"\n onmouseenter="ttWAlertFadeIn(\'').concat(k,"')\"\n onmouseleave=\"ttWAlertFadeOut('").concat(k,'\')"\n >\n <div style="position:relative; ').concat(u,'">\n\n <div style="display:flex; align-items:center;">\n <div style="margin-right:10px;">\n <div style="display:flex;">').concat(n,"</div>\n </div>\n <div>").concat(e,'</div>\n </div>\n\n <div style="').concat(b,'">\n <div \n id="').concat(k,'" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel(\'').concat(O,"')\"\n >\n ").concat(Mc,"\n </div>\n </div>\n\n </div>\n </div>\n "),A=document.createElement("div");A.id=O,A.style.position="fixed",A.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",A.style.zIndex=-1,A.style.opacity=.001,o.indexOf("-left")>=0?A.style.transform="translateX(-100%)":A.style.transform="translateX(100%)",A.innerHTML=S;var M=document.querySelector("body");M.appendChild(A);var D=ka();return Lc({id:O,position:o,time:i,pm:D}),D}},e.domAppend=Hc,e.domCancelEvent=zc,e.domConvertToPic=Wc,e.domConvertToPicDyn=function(e){return es.apply(this,arguments)},e.domDetect=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Oo(t,"timeInterval",null);Vi(r)||(r=20);var n=Oo(t,"tolerancePixel",null);Vi(n)||(n=1);var o,i=Cn(),a={offsetWidth:0,offsetHeight:0};if(!ra(e))return console.log("invalid f",e),null;o=setInterval((function(){var t=e();if(t){var r={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight},o=Math.abs(a.offsetWidth-r.offsetWidth)>n,u=Math.abs(a.offsetHeight-r.offsetHeight)>n;if(o||u){var c=rs({},a);setTimeout((function(){r.offsetWidth>0&&r.offsetHeight>0&&(i.emit("resize",{sold:c,snew:r,ele:t}),i.emit("resizeWithWindow",{sold:c,snew:r,ele:t,from:"dom"}))}),1)}a=r}}),r);var u=function(e){i.emit("resizeWithWindow",{snew:a,from:"window"})};return window.addEventListener("resize",u),i.clear=function(){clearInterval(o),window.removeEventListener("resize",u)},i},e.domDrag=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vc(e)){var r=Oo(t,"attIdentify",null);E(r)||(r="dragid");var n=Oo(t,"attIndex",null);E(n)||(n="dragindex");var o=Oo(t,"attGroup",null);E(o)||(o="draggroup");var i=Oo(t,"group",null);E(i)||(i="group");var a=Oo(t,"previewOpacity",null);Ki(a)||(a=.4);var u=Oo(t,"previewDisabledOpacity",null);Ki(u)||(u=.2);var c=Oo(t,"previewBackground",null);E(c)||(c="white");var s=Oo(t,"previewBorderWidth",null);Ki(s)||(s=1);var f=Oo(t,"previewBorderColor",null);E(f)||(f="#f26");var l=Oo(t,"timeDragStartDelay",null);Ki(l)||(l=120);var p="c".concat(Sc(8)),d=i;e.setAttribute(o,d),e.setAttribute(r,p);var v=hs(d,p,{attIdentify:r,previewOpacity:a,previewBackground:c,previewBorderWidth:s,previewBorderColor:f}),h={dragStart:function(e){v.emit(d+"-dragStart",e)}},g=ys(e,h);g.bind(),ws({gid:d,attGroup:o,attIndex:n,attIdentify:r,timeDragStartDelay:l,previewOpacity:a,previewDisabledOpacity:u});var m=Cn();return v.on(i+"-change",(function(e){e.tarEid===p&&m.emit("change",e)})),v.on(i+"-start",(function(e){e.tarEid===p&&m.emit("start",e)})),v.on(i+"-move",(function(e){e.tarEid===p&&m.emit("move",e)})),v.on(i+"-enter",(function(e){e.tarEid===p&&m.emit("enter",e)})),v.on(i+"-leave",(function(e){e.tarEid===p&&m.emit("leave",e)})),v.on(i+"-drop",(function(e){e.tarEid===p&&m.emit("drop",e)})),m.setIsActive=b,m.unbind=y,m}function y(){g.unbind(),bs(d,p)}function b(e){vs[d].isActive=e}console.log("ele is not HTMLElement",e)},e.domDragBarAndScroll=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=null,i=null,a=null,u=null,c=null,s=null,f=null,l=null,p=null,d=null,v=null,h=null,g=null,m=null,y=!1,b=Oo(r,"getHeighRatio",null);$e(b)||(b=function(){return 1});var w=Oo(r,"getWidthRatio",null);$e(w)||(w=function(){return 1});var x=Oo(r,"stopScrollPropagationForPanel",null);me(x)||(x=!1);var j=Oo(r,"stopTouchDragPropagationForPanel",null);me(j)||(j=!1);var _=Oo(r,"useTouchDragForPanel",null);me(_)||(_=!0);var O=e,k=t,S=Cn();function E(){n=function(e){var t=e.deltaY/Math.abs(e.deltaY),r=e.deltaX/Math.abs(e.deltaX);S.emit("scrollPanel",{ratioY:t,ratioX:r}),x&&zc(e)},O.addEventListener("wheel",n),o=function(e){if(_){var t=Oo(e,"touches.0.clientY",0),r=Oo(e,"touches.0.clientX",0),n=-t*b(),o=-r*w();y=!0,S.emit("pressBar",{clientY:n,clientX:o}),j&&zc(e)}},O.addEventListener("touchstart",o),i=function(e){if(_&&y){var t=Oo(e,"touches.0.clientY",0),r=Oo(e,"touches.0.clientX",0),n=-t*b(),o=-r*w();S.emit("dragBar",{clientY:n,clientX:o}),j&&zc(e)}},O.addEventListener("touchmove",i,{passive:!1}),a=function(e){_&&y&&(y=!1,S.emit("freeBar"),j&&zc(e))},O.addEventListener("touchend",a),u=function(e){y=!0,S.emit("pressBar",{clientY:e.clientY,clientX:e.clientX})},k.addEventListener("mousedown",u),c=function(e){y&&(y=!1,S.emit("freeBar"))},k.addEventListener("mouseup",c),s=function(e){y=!0,S.emit("pressBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX})},k.addEventListener("touchstart",s),f=function(e){y&&(S.emit("dragBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX}),zc(e))},k.addEventListener("touchmove",f,{passive:!1}),l=function(e){y&&(y=!1,S.emit("freeBar"))},k.addEventListener("touchend",l),p=function(e){y&&S.emit("dragBar",{clientY:e.clientY,clientX:e.clientX})},window.addEventListener("mousemove",p),d=function(e){y&&(y=!1,S.emit("freeBar"),x&&zc(e))},window.addEventListener("mouseup",d),v=function(e){},window.addEventListener("scroll",v,{passive:!1}),h=function(e){},window.addEventListener("wheel",h,{passive:!1}),g=function(e){},document.addEventListener("scroll",g,{passive:!1}),m=function(e){},document.addEventListener("wheel",m,{passive:!1})}function A(){O.removeEventListener("wheel",n),O.removeEventListener("touchstart",o),O.removeEventListener("touchmove",i),O.removeEventListener("touchend",a),k.removeEventListener("mousedown",u),k.removeEventListener("mouseup",c),k.removeEventListener("touchstart",s),k.removeEventListener("touchmove",f),k.removeEventListener("touchend",l),window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",d),window.removeEventListener("scroll",v),window.removeEventListener("wheel",h),document.removeEventListener("scroll",g),document.removeEventListener("wheel",m)}return E(),S.clear=A,S},e.domDragPreview=ls,e.domDropFiles=function(e){var t=!1,r=!1,n=Cn();function o(e){zc(e),r=!0,!1===t&&(t=!0,n.emit("dropIn",{ev:e}))}function i(e){zc(e),r=!1,setTimeout((function(){r||(t=!1,n.emit("dropOut",{ev:e}))}),100)}function a(e){o(e)}function u(e){i(e)}function c(e){function t(){i(e)}o(e),function(e){return Ts.apply(this,arguments)}(e.dataTransfer).then((function(r){var o=jc(r.entries,{type:"file"});n.emit("getFiles",{ev:e,files:r.files,filesTree:o,entries:r.entries,cb:t})})).catch((function(e){n.emit("error",e)}))}return e.addEventListener("dragenter",a,!1),e.addEventListener("dragover",a,!1),e.addEventListener("dragleave",u,!1),e.addEventListener("drop",c,!1),n.off=function(){e.removeEventListener("dragenter",a,!1),e.removeEventListener("dragover",a,!1),e.removeEventListener("dragleave",u,!1),e.removeEventListener("drop",c,!1)},n},e.domFadeIn=Ec,e.domFadeOut=Ac,e.domFind=Is,e.domFinds=Fc,e.domGetAttr=cs,e.domGetBoudRect=ss,e.domGetBoudRectRefSelf=fs,e.domGetFileAccept=Ws,e.domGetFiles=qs,e.domGetPointFromEvent=us,e.domGetScrollableParent=function(e){var t=/(auto|scroll)/,r=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},n=function(e){return t.test(function(e){return r(e,"overflow")+r(e,"overflow-y")+r(e,"overflow-x")}(e))};if(e instanceof HTMLElement||e instanceof SVGElement){for(var o=function e(t,r){return null===t.parentNode?r:e(t.parentNode,r.concat([t]))}(e.parentNode,[]),i=0;i<o.length;i+=1)if(n(o[i]))return o[i];return document.scrollingElement||document.documentElement}},e.domIsClientXYIn=function(e,t,r){if(Ki(e))if(Ki(t)){if(vc(r)){var n;try{n=r.getBoundingClientRect()}catch(e){return void console.log("invalid ele for getBoundingClientRect",e)}var o=!1;try{o=e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom}catch(e){console.log("catch when calculating page information of element",e)}return o}console.log("ele is not HTMLElement",r)}else console.log("clientY is not Number",t);else console.log("clientX is not Number",e)},e.domIsFocused=hc,e.domIsVisible=function(e){if(!vc(e))return Promise.reject("invalid element");if(Vs())return Promise.reject("invalid IntersectionObserver");var t=ka();try{var r=new IntersectionObserver((function(e){t.resolve(e[0].isIntersecting),r.disconnect()}));r.observe(e)}catch(e){t.reject(e)}return t},e.domPrepend=Nc,e.domRemove=Rc,e.domRipple=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Oo(r,"timeDuration",null);Vi(n)||(n=1e3);var o=Oo(r,"color",null);if(E(o)||(o="rgba(255, 255, 255, 0.5)"),vc(e)){e.style.position="relative",e.style.overflow="hidden";var i=e.getBoundingClientRect(),a=t.clientX-i.left,u=t.clientY-i.top,c=2*Math.max(e.clientWidth,e.clientHeight),s=document.createElement("div");s.style.width="".concat(c,"px"),s.style.height="".concat(c,"px"),s.style.transition="all ".concat(n/1e3,"s linear"),s.style.userSelect="none",s.style.position="absolute",s.style.zIndex=1,s.style.left="".concat(a,"px"),s.style.top="".concat(u,"px"),s.style.borderRadius="50%",s.style.transformOrigin="center",s.style.transform="translate(-50%,-50%) scale(0)",s.style.background=o,e.appendChild(s),setTimeout((function(){s.style.transform="translate(-50%,-50%) scale(2)",s.style.opacity=0}),1),setTimeout((function(){Rc(s)}),n)}},e.domScrollIntoView=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vc(e)){Ln(t)||(t={});var r={behavior:"smooth"};r=pf(pf({},r),t),Bc()?ff(e,r):e.scrollIntoView(r)}},e.domScrollTo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vc(e)){Ln(t)||(t={});var r={behavior:"smooth"};r=vf(vf({},r),t),Bc()?Js(e,r):e.scrollTo(r)}},e.domShowImages=Of,e.domShowImagesDyn=function(e){return Sf.apply(this,arguments)},e.domShowInputAndGetFiles=Af,e.domShowInputAndGetFilesU8Arrs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,n=ka(),o=[];return Af(e,t,r).then((function(e){var t=ka(),r=e.err;return Tn(r)>0?t.reject(r):t.resolve(e),t})).then((function(e){var t=e.files;return et(t,(function(e){o.push({name:e.name,size:e.size,type:e.type})})),Pa(t)})).then((function(e){et(e,(function(e,t){o[t].u8a=e})),n.resolve(o)})).catch((function(e){n.reject(e)})),n},e.domTooltip=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=null;function i(){null!==n&&n.destroy(!0),e.setAttribute("tippystate",""),clearInterval(o)}var a={arrow:!0,theme:"dark",placement:"bottom",delay:150};r=Hn(r)?xf(a,r):a;var u=t;t||(u=e.innerHTML);var c=e.getAttribute("tippystate"),s=ce(c);if(e.setAttribute("tippystate","5"),!s){u='<div style="text-align:left;">'.concat(u,"</div>");var f=Cp;Cp.default&&(f=Cp.default),(n=f(e,Bp(Bp({},r),{},{content:u,allowHTML:!0,onHidden:function(){i()},onDestroy:function(){n=null,i()}}))).show(),o=setInterval((function(){var t=e.getAttribute("tippystate");ce(t)?(t=$n(t),t-=1,e.setAttribute("tippystate",t),t<=0&&i()):i()}),1e3)}},e.domTriggerEvent=Ef,e.domVirtualCreate=Fp,e.domVirtualCreateQueue=function(){return new function(){var e=Wp(1);function t(){return(t=Na(Ua.mark((function t(r,n,o){return Ua.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e(Fp,r,n,o));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e,r,n){return t.apply(this,arguments)}}},e.downloadExcelFileFromData=Qp,e.downloadExcelFileFromDataDyn=function(e){return ed.apply(this,arguments)},e.downloadFileFromB64=function(e,t){if(Sa())if(E(e)){var r=document.createElement("a");r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}else console.log("no filename");else console.log("no window")},e.downloadFileFromBlob=qp,e.downloadFileFromText=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Sa()?E(e)?S(t)?ye(r)?qp(e,r?new Blob(["\ufeff",t]):new Blob([t])):console.log("withBOM is not boolean"):console.log("invalid content"):console.log("invalid filename"):console.log("no window")},e.downloadFileFromU8Arr=function(e,t){Sa()?E(e)?xa(t)?qp(e,td(t)):console.log("no data"):console.log("no filename"):console.log("no window")},e.dtmapping=rd,e.dtpick=nd,e.evem=Cn,e.execScript=function(e,t){return new Promise((function(r,n){Jn(t)||(t=[t]);var o=y.default.spawnSync(e,t),i=jc(o.output,(function(e){return null!==e}));i=wi(i,(function(e){return function(e){try{return e.toString("utf8")}catch(e){}return""}(e)}));var a=Xc(i,""),u=Oo(o,"error.message");u?n(u):r(a)}))},e.f2c=function(e){if(!ra(e))return"";var t=String(e),r=t.substring(t.indexOf("/*")+3,t.lastIndexOf("*/"));return r=od(r)},e.files2data=function(e){var t=ka(),r=wi(e,(function(e){return{name:e.name,size:e.size,type:e.type}}));return Da(e).then((function(e){var n=wi(e,(function(e){return{b64:e}})),o=id(r,n);t.resolve(o)})),t},e.flattenTreeObj=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Jn(e)){if(0===e.length)return[]}else{if(!Ln(e))return[];if(to(e))return[]}var r=Oo(t,"bindKey",null);E(r)||(r="id");var n=Oo(t,"bindChildren",null);E(n)||(n="children");var o=!1;function i(e){for(var t=[e[0]],r=1;r<e.length;r++){var o=e[r];t.push(n),t.push(o)}return t}Ln(e)&&(o=!0,e=[e]);var a=[];return ud(e,(function(e,t,o){var u=Oo(e,r,null),c=Oo(e,n,null);if(u){var s=i([].concat(ta(o),[t]));if(a.push(sd(sd({},e),{},{level:(Tn(s)-1)/2,nk:s})),c)return c}})),o&&(a=a[0]),a},e.fsCleanFolder=function(e){if(!b.default.existsSync(e)){var t=pd(e);return t.error?t.error:{success:"done: "+e}}if(!fd(e))return{error:"input path is not folder"};try{b.default.readdirSync(e).forEach((function(t){var r=e+"/"+t;if(b.default.lstatSync(r).isDirectory())ld(r);else try{b.default.unlinkSync(r)}catch(e){}}))}catch(e){return{error:e}}return{success:"done: "+e}},e.fsCopyFolder=function e(t,r){try{b.default.readdirSync(t).forEach((function(n){var o=t+"/"+n,i=r+"/"+n,a=b.default.lstatSync(o);if(a.isDirectory())pd(w.default.dirname(i)),e(o,i);else if(a.isSymbolicLink()){var u=b.default.readlinkSync(o);b.default.symlinkSync(u,i)}else pd(w.default.dirname(i)),b.default.copyFileSync(o,i)}))}catch(e){return{error:e}}return{success:"done: "+r}},e.fsCreateFolder=pd,e.fsDeleteFolder=ld,e.fsGetFilesInFolder=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=dd(e,t);return r=jc(r,(function(e){return vd(e.path)})),r=wi(r,"path")},e.fsGetFoldersInFolder=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=dd(e,t);return r=jc(r,(function(e){return!vd(e.path)})),r=wi(r,"path")},e.fsIsFile=vd,e.fsIsFolder=fd,e.fsReadText=function(e){return b.default.readFileSync(e,"utf8")},e.fsTreeFolder=dd,e.fsWriteText=function(e,t){b.default.writeFileSync(e,t,"utf8")},e.genGradientColor=function(e){if(oo(e))return{};var t;try{t=Ku.toRgba(e)}catch(e){return{}}function r(e,t){return e.a=t,Ku.toRgbaString(e)}return{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,r(t,.4)],[1,r(t,.9)]]}},e.genID=Sc,e.genPm=ka,e.getBufferSize=gd,e.getClearPathName=yd,e.getCsvStrFromData=wd,e.getDataFromExcelFileU8Arr=Sd,e.getDataFromExcelFileU8ArrDyn=function(e){return Ed.apply(this,arguments)},e.getDirName=function(e){if(!E(e))return"";var t=yd(e);if(t.isRoot)return t.path;var r=Ad(e=t.path);if(!E(r))return e;var n=yd(e=md(e,Tn(r)));return n.isRoot,n.path},e.getEnv=function(){var e=Sa(),t="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope;return{isBrowser:e=e||t,isWebWorker:t,isNode:"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}},e.getExcelU8ArrFromData=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";if(!io(e)){var r="no data";return{error:r}}E(t)||(t="data");var n=null;try{var o=$p(e,t),i=Md().write(o,{bookType:"xlsx",type:"binary"});n=La(i)}catch(e){return{error:e}}return n},e.getExcelWorkbookFromData=$p,e.getExcelWorkbookFromWorksheet=Vp,e.getFileAccept=Us,e.getFileName=Ad,e.getFileTrueName=function(e){if(!E(e))return"";var t=Ad(e),r=aa(t,".");if(Tn(r)<=1)return t;var n="";try{r=Dd(r),n=Xc(r,".")}catch(e){}return n},e.getGlobal=_c,e.getObjSize=function(e){var t=0,r=function e(r){if(null!=r)switch(T(r)){case"number":t+=8;break;case"string":t+=2*r.length;break;case"boolean":t+=4;break;case"object":var n=Object.prototype.toString.call(r).slice(8,-1);if("Object"===n||"Array"===n)for(var o in r)r.hasOwnProperty(o)&&e(r[o]);else t+=2*r.toString().length}return t}(e);return{int:r,str:function(e){return e<1024?e+" bytes":e<1048576?(e/1024).toFixed(3)+" KiB":e<1073741824?(e/1048576).toFixed(3)+" MiB":(e/1073741824).toFixed(3)+" GiB"}(r)}},e.getTimeBetween=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"days",n=Id(r);if(""===n)return[];var o=Ld(e,r),i=Ld(t,r);if(null===o||null===i)return[];if(e>=t)return[];var a=i.diff(o,r)+1,u=wi(Td(a),(function(e){return o.clone().add(e,r).format(n)}));return u},e.getTimeFromUnit=Id,e.getTimeObject=Ld,e.getTimeRange=function(e,t){if(!Hd(e))return"無起始時間";if(void 0===t&&(t=e),!Hd(t))return"結束時間格式錯誤";var r=d.default(e,"YYYY-MM-DDTHH:mm:ss"),n=d.default(t,"YYYY-MM-DDTHH:mm:ss"),o=r.format("YYYY-MM-DD"),i=n.format("YYYY-MM-DD");if(o===i){var a=n.format("HH:mm");if(e===t)return Bd(e)+" 至 無";if(e<t)return Bd(e)+" 至 "+a;if(e>t)return Bd(e)+" 至 "+a+" (起始時間大於結束時間)"}else{if(o<i)return Bd(e)+" 至 "+Bd(t);if(o>i)return Bd(e)+" 至 "+Bd(t)+" (起始時間大於結束時間)"}return""},e.getUserAgent=Fd,e.getUserAgentDyn=function(){return Rd.apply(this,arguments)},e.getltdtkeys=Gp,e.haskey=Bn,e.html2pic=Wd,e.html2picDyn=function(e){return Vd.apply(this,arguments)},e.html2str=Xd,e.html2strDyn=function(e,t){return $d.apply(this,arguments)},e.htmlDecode=function(e){var t=document.createElement("span");return t.appendChild(document.createTextNode(e)),t.innerHTML},e.htmlEncode=Ta,e.importResources=Qc,e.interp1=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Jn(e))return{err:"ps is not array"};if(!Ki(t))return{err:"x is not number"};var n=tv(e,r);if(Oo(n,"err"))return Oo(n,"err");if(0===Tn(n))return{err:"ps(length=0) is not effective array",ps:e,psEff:n};if(1===Tn(n))return{err:"ps(length=1) is one point only",ps:e,psEff:n};var o=rv(n);if("no"===o)return{err:"psEff is not increasing or decreasing"};o===ev&&(o=Qd,n=Zd(n));var i=Oo(r,"mode");"linear"!==i&&"stairs"!==i&&"blocks"!==i&&(i="linear");try{if("linear"===i)return ov(n,t);if("blocks"===i)return av(n,t);if("stairs"===i)return iv(n,t,r)}catch(e){return{err:e.toString()}}},e.isDev=function(){return!!location&&Oa(location.href,"localhost")},e.isEle=vc,e.isEleExistByID=function(e){return!!E(e)&&!(null===document.getElementById(e))},e.isEmail=function(e){return!!E(e)&&/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},e.isIE=Bc,e.isNarrow=function(e){if(!Sa())return!1;var t=window.innerWidth>0&&window.innerWidth<=1024,r=!1;if(e){var n=Oo(e,"clientWidth",0);r=n>0&&n<=700}return t||r},e.isStrHasCapital=fv,e.isStrHasLowerCase=lv,e.isStrHasNumber=da,e.isUserIdentify=function(e){var t=ka();if(!E(e))return t.reject("身份證字號非有效字串"),t;if(10!==e.length)return t.reject("身份證字號長度非10位"),t;if(isNaN(e.substr(1,9))||!/^[A-Z]$/.test(e.substr(0,1)))return t.reject("身份證格式錯誤,字首需大寫英文"),t;e="ABCDEFGHJKLMNPQRSTUVXYWZIO".indexOf(e.substring(0,1))+10+""+e.substr(1,9);var r=parseInt(e.substr(0,1))+9*parseInt(e.substr(1,1))+8*parseInt(e.substr(2,1))+7*parseInt(e.substr(3,1))+6*parseInt(e.substr(4,1))+5*parseInt(e.substr(5,1))+4*parseInt(e.substr(6,1))+3*parseInt(e.substr(7,1))+2*parseInt(e.substr(8,1))+parseInt(e.substr(9,1)),n=parseInt(e.substr(10,1));return r%10!=0&&10-r%10!==n?(t.reject("非有效身份證"),t):(t.resolve(),t)},e.isUserName=function(e){var t=ka();return E(e)?(t.resolve(),t):(t.reject("請填入姓名"),t)},e.isUserPW=function(e){var t=ka();if(!S(e))return t.reject("密碼非字串"),t;var r=[];return e.length<8&&r.push("長度須大於8個字元"),e.length>30&&r.push("長度須小於30個字元"),fv(e)&&lv(e)&&da(e)||r.push("須包含大寫、小寫英文與數字各1個字元"),Oa(e,["<",">"])&&r.push("不能使用特殊符號(<,>)"),Oa(e,["select","insert","update","delete"])&&r.push("不能使用指令(select,insert,update,delete)"),r.length>0?t.reject(Xc(r,",")):t.resolve(),t},e.isWindow=Sa,e.isab=O,e.isarr=Jn,e.isarr0=no,e.isblob=Ca,e.isbol=ye,e.isday=bc,e.isearr=io,e.iseobj=Hn,e.iser=oo,e.isernot=Ns,e.isestr=E,e.isfun=ra,e.isint=fe,e.ismonth=A,e.isn0int=uv,e.isn0num=cv,e.isnbr=ue,e.isnint=Gn,e.isnnum=function(e){return!!ce(e)&&se(e)<0},e.isnull=eo,e.isnum=ce,e.isobj=Ln,e.isobj0=to,e.isp0int=zo,e.isp0num=sv,e.ispint=Vi,e.ispm=zp,e.ispnum=function(e){return!!ce(e)&&se(e)>0},e.isstr=S,e.isstr0=ro,e.istime=Hd,e.istimeTZ=gv,e.istimems=pv,e.istimemsTZ=hv,e.isu16arr=hd,e.isu8arr=xa,e.isundefined=Qn,e.j2o=ba,e.keysmat2ltdt=mv,e.log=function(){var e=null;return{init:function(t){if(!ra(t))throw new Error("loggerFun is not function");e=t},log:function(t,r,n){if(null===e)throw new Error("no logger: need to construct by init");var o=yv(),i={id:Sc(),from:t,level:r,msg:Ya(n),time:o};return e(i)}}},e.ltdt2vrtsable=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!io(e))return[];if(!Jn(t))return[];var r=!1;if(et(e,(function(e){Hn(e)||(r=!0)})),r)return[];var n=Gp(e),o=[];et(e,(function(e){var t={};et(n,(function(r){t[r]={value:e[r].value,style:e[r].style,rowspan:1}})),o.push(t)}));var i=Zd(o),a=Tn(i);et(n,(function(e){if(Ji(e,t)){var r=lo(0,a,0),n=lo(0,a,0),o=lo(1,a+1,0);et(i,(function(t,a){if(a>0){var u=i[a-1][e].value,c=i[a][e].value;Zi(u,c)&&(r[a-1]=1,r[a]=1,o[a]=o[a-1]+1),1===r[a-1]&&1===r[a]&&(n[a-1]=0,n[a]=1)}})),et(i,(function(t,a){1===r[a]&&(1===n[a]?i[a][e].rowspan=o[a]:i[a][e].rowspan=null)}))}}));var u=Zd(i);return u},e.ltdtdiff=function(e,t,r){if(!E(r))return console.log("invalid key"),{infor:{},del:[],same:[],diff:[],add:[]};Jn(e)||(e=[e]),Jn(t)||(t=[t]);var n={},o=[],i=[],a=[];et(e,(function(e){if(Bn(e,r)){var u=Xa({},r,e[r]),c=xv(t,u);oo(c)?(o.push(e),n[e[r]]="del"):Zi(e,c)?(a.push(c),n[c[r]]="same"):(i.push(c),n[c[r]]="diff")}}));var u=[];return et(t,(function(t){if(Bn(t,r)){var o=Xa({},r,t[r]);oo(xv(e,o))&&(u.push(t),n[t[r]]="add")}})),{infor:n,del:o,same:a,diff:i,add:u}},e.ltdtkeys2mat=Zp,e.ltdtkeysheads2mat=Kp,e.ltdtmapping=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!io(e))return[];if(!io(t))return[];var n=wi(e,(function(e){return rd(e,t,r)}));return n},e.ltdtmerge=id,e.ltdtpick=function(e,t){return io(e)&&io(t)?wi(e,(function(e){return nd(e,t)})):[]},e.ltdtpull=function(e,t,r){return Jn(e)&&Jn(t)&&E(r)&&Ov(e,(function(e){return Ln(e)}))?0===t.length?e:Ov(t,(function(e){return Ln(e)}))?Sv(e,t,r):[]:[]},e.mat2ltdt=function(e){if(!io(e))return[];if(e.length<=1)return[];var t=!1;return et(e,(function(e){io(e)||(t=!0)})),t?[]:mv(Ev(e)[0],Av(e))},e.matat=function(e,t,r){return io(e)?wi(e,(function(e){return Fo(e,t,r)})):[]},e.now2str=function(){return d.default().format("YYYY-MM-DDTHH:mm:ssZ")},e.now2strp=function(){return d.default().format("YYYYMMDDHHmmss")},e.nowDay2str=function(){return d.default().format("YYYY-MM-DD")},e.nowms2str=yv,e.nowms2strp=function(){return d.default().format("YYYYMMDDHHmmssSSS")},e.o2j=Ya,e.obj2b64=function(e){var t="";try{t=Mv(Ya(e))}catch(e){t=""}return t},e.obj2pb64=function(e,t){return void 0===e?"":E(t)?Dv(Ya({data:e}),t,!0):""},e.obj2str=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Uint8Array";if(Qn(e))return"";if(S(t))t=[t];else if(!Jn(t))return"";function r(e,r){return t.indexOf("Uint8Array")>=0&&(r=Hv.u8arr2b64(r)),t.indexOf("Uint16Array")>=0&&(r=Hv.u16arr2b64(r)),r}var n="";try{n=JSON.stringify(e,r)}catch(e){n=""}return n},e.obj2stru8arr=zv,e.obj2u8arr=function(e){var t=[],r=[];if(!io(e)&&!Hn(e))return null;var n=[],o=[];function i(e){n.push(gd(e)),o.push(e)}try{var a=zv(e);i(Fv(a.results)),et(a.binarys,(function(e){i(e)}));var u=n,c=Fv(JSON.stringify(u)),s=new Uint8Array(8);Fa(gd(c),s),t.push(s),t.push(c),et(o,(function(e){t.push(e)})),et(t,(function(e){r=function(e,t){var r=gd(e),n=gd(t),o=new Uint8Array(r+n);return o.set(new Uint8Array(e),0),o.set(new Uint8Array(t),r),o}(r,e)}))}catch(e){return null}return r},e.objSortBy=function(e,t){if(!Hn(e))return{};if(!ra(t))throw new Error("fun is not a function");var r=wi(e,(function(e,r){return{k:r,v:e,t:t(e,r)}}));r=pa(r,"t");var n={};return et(r,(function(e){n[e.k]=e.v})),n},e.ocr=Nv,e.ocrDyn=function(e){return Wv.apply(this,arguments)},e.oo=function(e){if(void 0!==e)return ba(Ya(e))},e.openLink=function(e){if(E(e)){var t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},e.pb642obj=function(e,t){return E(e)&&E(t)?ba(be(e,t,!0)).data:""},e.pm2resolve=Np,e.pmChain=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Jn(e)){var r=ka();return r.reject("pms is not array"),r}return e.reduce((function(e,t){return e.then(t)}),Promise.resolve(t))},e.pmHook=qv,e.pmHookReject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return ra(e)?(ra(t)||(t=function(){}),qv(e,(function(e){if("afterCatch"===e.mode)return t(e.data)}))):null},e.pmIni=function(){return Promise.resolve()},e.pmMap=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n={},o=!1,i=ka();if(!Jn(e)&&!Ln(e))return i.reject("rs is not array or object"),i;var a=!1;if(Ln(e)){a=!0;var u=[];et(e,(function(e,t){u.push({k:t,v:e})})),e=u}var c=Up(r);return c.on("message",(function(r){if(!o){var u,s=c.get();if(ra(t)){var f=s.key,l=s.value;a&&(f=s.value.k,l=s.value.v),u=t(l,f)}else u=s.value;u.then((function(e){n[s.key]=e})).catch((function(e){o=!0,c.clear(),i.reject(e)})).finally((function(){c.cb(),Tn(n)===e.length&&i.resolve(jd(n))}))}})),et(e,(function(e,t){c.push({key:t,value:e})})),i},e.pmQueue=Wp,e.pmSeries=Gc,e.pmThrottle=function(){var e=Cn(),t=[],r=null,n=!1;function o(){null===r&&(r=setInterval(Na(Ua.mark((function o(){var i,a,u,c,s,f;return Ua.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!n){o.next=2;break}return o.abrupt("return");case 2:for(n=!0,i=t.pop(),a=0;a<t.length;a++)u=t[a].id,c={state:"cancelled"},e.emit(u,c);if(t=[],!i){o.next=16;break}if(f=i.id,!ra(i.func)){o.next=14;break}return o.next=11,Np(i.func).apply(void 0,ta(i.input));case 11:s=o.sent,o.next=15;break;case 14:s={state:"error",msg:"fun is not function"};case 15:e.emit(f,s);case 16:(n=!1)||0!==t.length||(clearInterval(r),r=null);case 18:case"end":return o.stop()}}),o)}))),10))}return function(r){var n=ka();if(ra(r)){for(var i=Sc(),a=arguments.length,u=new Array(a>1?a-1:0),c=1;c<a;c++)u[c-1]=arguments[c];return t.push({id:i,func:r,input:u}),o(),e.once(i,(function(e){"success"===e.state?n.resolve(e.msg):"cancelled"===e.state?n.reject({reason:"cancelled"}):n.reject(e.msg)})),n}console.log("func is not function")}},e.queue=Up,e.rep=function(e,t){return E(e)&&zo(t)?$v(e,t):""},e.repObj=function(e,t){return oo(e)?[]:Vi(t)?Td(t,To(e)):[]},e.replace=Ga,e.replaceObj=function(e,t){if(!E(e))return"";if(!Hn(t))return"";var r=!1;return et(t,(function(e,t){S(e)||(r=!0)})),r?"":(et(t,(function(t,r){e=Ga(e,r,t)})),e)},e.replacePlus=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0;if(!E(e)||!E(t)||!E(r))return"";if(!S(o))return"";var i="[\\s\\S]*";E(n)&&(i="[^"+n+"]*");var a=t+i+r,u=new RegExp(a,"g"),c=e.replace(u,o);return c},e.round=function(e){return ce(e)?(e=se(e),Xn(e)):""},e.secd=function(e){return ce(e)?1/gc(e=se(e)):null},e.sep=qi,e.sepInt=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!fe(e))return[];if(!zo(t))return[];if(!ye(r))return[];for(var n=Gv(e/t),o=e-n*t,i=[],a=1;a<=t;a++){var u=n;a<=o&&(u=n+1),i.push(u)}return r&&(i=Zd(i)),i},e.sind=yc,e.split=Wi,e.str2aes=Dv,e.str2b64=Mv,e.str2md5=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!E(e))return"";if(!ye(t))return"";var r=de(e);return t?r.toString(pe):r.toString(ge)},e.str2obj=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Uint8Array";if(S(t))t=[t];else if(!Jn(t))return{};function r(e,r){return t.indexOf("Uint8Array")>=0&&(r=Hv.b642u8arr(r)),t.indexOf("Uint16Array")>=0&&(r=Hv.b642u16arr(r)),r}var n={};try{n=JSON.parse(e,r)}catch(e){n={}}return n},e.str2sha512=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!E(e))return"";if(!ye(t))return"";var r=Zv(e);return t?r.toString(pe):r.toString(ge)},e.str2u8arr=Fv,e.strCompare=Kv,e.strFindFuzz=nh,e.strFindFuzzDyn=function(e,t){return oh.apply(this,arguments)},e.strFindSimilar=function(e,t){var r="";if(E(e)||ce(e))r=Za(e);else{if(!io(e))return{};r=Xc(e,"")}return ce(t)&&(t=Za(t)),E(t)&&(t=[t]),io(t)?function(e,t){for(var r=[],n=0,o=0;o<t.length;o++){var i=t[o],a=Kv(e,i);r.push({target:i,rating:a}),a>r[n].rating&&(n=o)}return{ratings:r,bestMatch:r[n],bestMatchIndex:n}}(r,t=wi(t,(function(e){return Za(e)}))):{}},e.strdelleft=Gi,e.strdelright=md,e.strleft=Xi,e.strmid=va,e.strright=$i,e.stru8arr2obj=ih,e.tand=mc,e.time2day=function(e){return Hd(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD"):""},e.time2hour=function(e){return Hd(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH"):""},e.time2min=Bd,e.timeTZ2day=function(e){return gv(e)?(e=vv.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")):""},e.timeTZ2expire=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return gv(e)?ah(e=ch(e),t=ch(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timeTZ2hour=function(e){return gv(e)?(e=vv.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")):""},e.timeTZ2min=function(e){return gv(e)?(e=vv.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")):""},e.timeTZ2past=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return gv(e)?uh(e=sh(e),t=sh(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timems2day=function(e){return pv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DD"):""},e.timems2hour=function(e){return pv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH"):""},e.timems2min=function(e){return pv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm"):""},e.timems2time=function(e){return pv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm:ss"):""},e.timemsTZ2day=function(e){return hv(e)?(e=vv.delTZ(e),d.default(e).format("YYYY-MM-DD")):""},e.timemsTZ2expire=ah,e.timemsTZ2hour=function(e){return hv(e)?(e=vv.delTZ(e),d.default(e).format("YYYY-MM-DDTHH")):""},e.timemsTZ2min=function(e){return hv(e)?(e=vv.delTZ(e),d.default(e).format("YYYY-MM-DDTHH:mm")):""},e.timemsTZ2past=uh,e.timemsTZ2time=function(e){return hv(e)?(e=vv.delTZ(e),d.default(e).format("YYYY-MM-DDTHH:mm:ss")):""},e.treeObj=ud,e.trim=od,e.u16arr2b64=Iv,e.u16arr2u8arr=Tv,e.u8arr2ab=function(e){return xa(e)?e.buffer:new ArrayBuffer},e.u8arr2b64=Yv,e.u8arr2blob=td,e.u8arr2bs=function(e){if(!xa(e))return"";for(var t=e.length,r="",n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r},e.u8arr2obj=function(e){var t=null;if(!xa(e))return null;try{var r=e.slice(0,8),n=e.slice(8,gd(e)),o=Ba(r),i=n.slice(0,o),a=n.slice(o,gd(n)),u=fh(i),c=function(e,t){var r=0,n=0,o=[];return et(t,(function(t){n=r+t;var i=e.slice(r,n);r=n,o.push(i)})),o}(a,JSON.parse(u));t=ih({results:fh(c.shift()),binarys:c})}catch(e){}return t},e.u8arr2str=fh,e.u8arr2u16arr=ja,e.urlParse=function(e){if(!E(e))return{};if(e=aa(e,"?"),!E(e=Oo(e,"[1]")))return{};var t=aa(e,"&");return t=wi(t,(function(e){return aa(e,"=")})),t=lh(t)},e.verifyValue=function(e,t){var r=!1,n="";if("isstr"===t)S(e)||(r=!0,n="需要為字串",e="");else if("isnum"===t)ce(e)||(r=!0,n="需要為數字",e=0);else if("isp0num"===t)sv(e)||(r=!0,n="需要為含0的正浮點數",e=0);else if("isn0num"===t)cv(e)||(r=!0,n="需要為含0的負浮點數",e=0);else if("isint"===t)fe(e)||(r=!0,n="需要為整數",e=0);else if("ispint"===t)Vi(e)||(r=!0,n="需要為不含0正整數",e=0);else if("isp0int"===t)zo(e)||(r=!0,n="需要為含0正整數",e=0);else if("isnint"===t)Gn(e)||(r=!0,n="需要為不含0負整數",e=0);else if("isn0int"===t)uv(e)||(r=!0,n="需要為含0負整數",e=0);else if(ra(t)){e=t(e)}else"any"===t?ce(e)||S(e)||(r=!0,n="需要為字串或數字",e=""):(r=!0,n="需要指定驗證類型",e=null);return{value:e,err:r,errmsg:n}},e.waitFun=Wa,Object.defineProperty(e,"__esModule",{value:!0})}));
26
26
  //# sourceMappingURL=wsemi.umd.js.map