wsemi 1.9.0 → 1.9.2

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 (496) hide show
  1. package/README.md +1 -1
  2. package/dist/wsemi.umd.js +4 -4
  3. package/dist/wsemi.umd.js.map +1 -1
  4. package/docs/-_class.mjs.html +1 -1
  5. package/docs/-_const.mjs.html +1 -1
  6. package/docs/ab2blob.mjs.html +1 -1
  7. package/docs/ab2u8arr.mjs.html +1 -1
  8. package/docs/addExcelWorksheetFromData.mjs.html +1 -1
  9. package/docs/addMonth.mjs.html +1 -1
  10. package/docs/aes2str.mjs.html +1 -1
  11. package/docs/alive.mjs.html +1 -1
  12. package/docs/arr2dt.mjs.html +1 -1
  13. package/docs/arrAccum.mjs.html +1 -1
  14. package/docs/arrAdd.mjs.html +1 -1
  15. package/docs/arrAt.mjs.html +1 -1
  16. package/docs/arrDiff.mjs.html +1 -1
  17. package/docs/arrFilterByKeywords.mjs.html +1 -1
  18. package/docs/arrFilterByNum.mjs.html +1 -1
  19. package/docs/arrFilterByPnum.mjs.html +1 -1
  20. package/docs/arrFilterByPnumAndToLog.mjs.html +1 -1
  21. package/docs/arrFind.mjs.html +1 -1
  22. package/docs/arrGroupByMaxmin.mjs.html +1 -1
  23. package/docs/arrHas.mjs.html +1 -1
  24. package/docs/arrInsert.mjs.html +1 -1
  25. package/docs/arrLookupByMaxmin.mjs.html +1 -1
  26. package/docs/arrMax.mjs.html +1 -1
  27. package/docs/arrMin.mjs.html +1 -1
  28. package/docs/arrMulti.mjs.html +1 -1
  29. package/docs/arrNorm.mjs.html +1 -1
  30. package/docs/arrProduct.mjs.html +1 -1
  31. package/docs/arrPull.mjs.html +1 -1
  32. package/docs/arrPullAt.mjs.html +1 -1
  33. package/docs/arrReduce.mjs.html +1 -1
  34. package/docs/arrReverse.mjs.html +1 -1
  35. package/docs/arrSep.mjs.html +1 -1
  36. package/docs/arrSort.mjs.html +1 -1
  37. package/docs/asind.mjs.html +1 -1
  38. package/docs/atan2d.mjs.html +1 -1
  39. package/docs/atand.mjs.html +1 -1
  40. package/docs/attstr.mjs.html +1 -1
  41. package/docs/b642obj.mjs.html +1 -1
  42. package/docs/b642str.mjs.html +1 -1
  43. package/docs/b642u16arr.mjs.html +1 -1
  44. package/docs/b642u8arr.mjs.html +1 -1
  45. package/docs/binstr.mjs.html +1 -1
  46. package/docs/blob2ab.mjs.html +1 -1
  47. package/docs/blob2b64.mjs.html +1 -1
  48. package/docs/blob2str.mjs.html +1 -1
  49. package/docs/blob2u8arr.mjs.html +1 -1
  50. package/docs/blobs2b64s.mjs.html +1 -1
  51. package/docs/blobs2u8arrs.mjs.html +1 -1
  52. package/docs/bodyLog.mjs.html +1 -1
  53. package/docs/browserView.mjs.html +1 -1
  54. package/docs/browserViewFromBlob.mjs.html +1 -1
  55. package/docs/browserViewFromText.mjs.html +1 -1
  56. package/docs/browserViewFromU8arr.mjs.html +1 -1
  57. package/docs/bs2u8arr.mjs.html +1 -1
  58. package/docs/bufRead.mjs.html +1 -1
  59. package/docs/bufReadDbl.mjs.html +1 -1
  60. package/docs/bufWrite.mjs.html +1 -1
  61. package/docs/bufWriteDbl.mjs.html +1 -1
  62. package/docs/cache.mjs.html +1 -1
  63. package/docs/cacheBd.mjs.html +1 -1
  64. package/docs/cacheSt.mjs.html +1 -1
  65. package/docs/cbol.mjs.html +1 -1
  66. package/docs/cdbl.mjs.html +1 -1
  67. package/docs/ceil.mjs.html +1 -1
  68. package/docs/cfilesize.mjs.html +1 -1
  69. package/docs/cfinancial.mjs.html +1 -1
  70. package/docs/cint.mjs.html +1 -1
  71. package/docs/clearXSS.mjs.html +1 -1
  72. package/docs/clearXSSDyn.mjs.html +1 -1
  73. package/docs/color.mjs.html +1 -1
  74. package/docs/composeToTree.mjs.html +1 -1
  75. package/docs/convertToTree.mjs.html +1 -1
  76. package/docs/copyStrToClipboard.mjs.html +1 -1
  77. package/docs/cosd.mjs.html +1 -1
  78. package/docs/cotd.mjs.html +1 -1
  79. package/docs/createExcelWorkbook.mjs.html +1 -1
  80. package/docs/cscd.mjs.html +1 -1
  81. package/docs/cstr.mjs.html +1 -1
  82. package/docs/day2cht.mjs.html +1 -1
  83. package/docs/debounce.mjs.html +1 -1
  84. package/docs/delay.mjs.html +1 -1
  85. package/docs/dig.mjs.html +1 -1
  86. package/docs/digExp.mjs.html +1 -1
  87. package/docs/domAlert.mjs.html +1 -1
  88. package/docs/domAppend.mjs.html +1 -1
  89. package/docs/domCancelEvent.mjs.html +1 -1
  90. package/docs/domCompareText.mjs.html +1 -1
  91. package/docs/domConvertToPic.mjs.html +1 -1
  92. package/docs/domConvertToPicDyn.mjs.html +1 -1
  93. package/docs/domDetect.mjs.html +1 -1
  94. package/docs/domDrag.mjs.html +1 -1
  95. package/docs/domDragBarAndScroll.mjs.html +476 -333
  96. package/docs/domDragPreview.mjs.html +1 -1
  97. package/docs/domDropFiles.mjs.html +1 -1
  98. package/docs/domElementsFromPoint.mjs.html +1 -1
  99. package/docs/domFadeIn.mjs.html +1 -1
  100. package/docs/domFadeOut.mjs.html +1 -1
  101. package/docs/domFind.mjs.html +1 -1
  102. package/docs/domFinds.mjs.html +1 -1
  103. package/docs/domGetAttr.mjs.html +1 -1
  104. package/docs/domGetBoudRect.mjs.html +1 -1
  105. package/docs/domGetBoudRectRefSelf.mjs.html +1 -1
  106. package/docs/domGetFileAccept.mjs.html +1 -1
  107. package/docs/domGetFiles.mjs.html +1 -1
  108. package/docs/domGetParents.mjs.html +1 -1
  109. package/docs/domGetPointFromEvent.mjs.html +1 -1
  110. package/docs/domGetScrollableParent.mjs.html +1 -1
  111. package/docs/domGetWindowSize.mjs.html +1 -1
  112. package/docs/domIsClientXYIn.mjs.html +1 -1
  113. package/docs/domIsFocused.mjs.html +1 -1
  114. package/docs/domIsStable.mjs.html +1 -1
  115. package/docs/domIsVisible.mjs.html +1 -1
  116. package/docs/domPrepend.mjs.html +1 -1
  117. package/docs/domRemove.mjs.html +1 -1
  118. package/docs/domRenderMarkdownMind.mjs.html +1 -1
  119. package/docs/domRenderMarkdownMindDyn.mjs.html +1 -1
  120. package/docs/domRipple.mjs.html +1 -1
  121. package/docs/domScrollIntoView.mjs.html +1 -1
  122. package/docs/domScrollTo.mjs.html +1 -1
  123. package/docs/domSetAttr.mjs.html +1 -1
  124. package/docs/domShowImages.mjs.html +1 -1
  125. package/docs/domShowImagesDyn.mjs.html +1 -1
  126. package/docs/domShowInputAndGetFiles.mjs.html +1 -1
  127. package/docs/domShowInputAndGetFilesU8Arrs.mjs.html +1 -1
  128. package/docs/domShowInputDatatime.mjs.html +1 -1
  129. package/docs/domTooltip.mjs.html +1 -1
  130. package/docs/domTriggerEvent.mjs.html +1 -1
  131. package/docs/domVirtualCreate.mjs.html +1 -1
  132. package/docs/domVirtualCreateQueue.mjs.html +1 -1
  133. package/docs/downloadExcelFileFromData.mjs.html +1 -1
  134. package/docs/downloadExcelFileFromDataDyn.mjs.html +1 -1
  135. package/docs/downloadFileFromB64.mjs.html +1 -1
  136. package/docs/downloadFileFromBlob.mjs.html +1 -1
  137. package/docs/downloadFileFromText.mjs.html +1 -1
  138. package/docs/downloadFileFromU8Arr.mjs.html +1 -1
  139. package/docs/dtmapping.mjs.html +1 -1
  140. package/docs/dtpick.mjs.html +1 -1
  141. package/docs/estimateTicks.mjs.html +1 -1
  142. package/docs/evEmit.mjs.html +1 -1
  143. package/docs/evEmitDelay.mjs.html +1 -1
  144. package/docs/evem.mjs.html +1 -1
  145. package/docs/examples/ex-blob2b64.html +1 -1
  146. package/docs/examples/ex-clearXSS.html +1 -1
  147. package/docs/examples/ex-clearXSSDyn.html +1 -1
  148. package/docs/examples/ex-colorConverter.html +1 -1
  149. package/docs/examples/ex-domCompareText.html +1 -1
  150. package/docs/examples/ex-domConvertToPic.html +1 -1
  151. package/docs/examples/ex-domDrag.html +1 -1
  152. package/docs/examples/ex-domDropFiles.html +1 -1
  153. package/docs/examples/ex-domIsVisible.html +1 -1
  154. package/docs/examples/ex-domRenderMarkdownMind.html +1 -1
  155. package/docs/examples/ex-domRenderMarkdownMindDyn.html +1 -1
  156. package/docs/examples/ex-domRipple.html +1 -1
  157. package/docs/examples/ex-domScrollIntoView.html +1 -1
  158. package/docs/examples/ex-domScrollTo.html +1 -1
  159. package/docs/examples/ex-domShowImages.html +1 -1
  160. package/docs/examples/ex-domShowImagesDyn.html +1 -1
  161. package/docs/examples/ex-domShowInputAndGetFiles.html +1 -1
  162. package/docs/examples/ex-domTooltip.html +1 -1
  163. package/docs/examples/ex-getFileHash.html +1 -1
  164. package/docs/examples/ex-getUserAgent.html +1 -1
  165. package/docs/examples/ex-getUserAgentDyn.html +1 -1
  166. package/docs/examples/ex-html2str.html +1 -1
  167. package/docs/examples/ex-obj2u8arr-u8arr2obj.html +1 -1
  168. package/docs/examples/ex-openLink.html +1 -1
  169. package/docs/examples/ex-str2aes-aes2str.html +1 -1
  170. package/docs/examples/ex-str2b64-b642str.html +1 -1
  171. package/docs/examples/ex-strFindFuzz.html +1 -1
  172. package/docs/examples/ex-timeTZ2expire-timeTZ2past.html +1 -1
  173. package/docs/examples/ex-xlsx.html +1 -1
  174. package/docs/execCli.mjs.html +1 -1
  175. package/docs/execCliCore.mjs.html +1 -1
  176. package/docs/execCliJsonRpc.mjs.html +1 -1
  177. package/docs/execCliSession.mjs.html +1 -1
  178. package/docs/execJsCode.mjs.html +1 -1
  179. package/docs/execProcess.mjs.html +1 -1
  180. package/docs/execProcessKillPid.mjs.html +1 -1
  181. package/docs/filepathToTree.mjs.html +1 -1
  182. package/docs/files2data.mjs.html +1 -1
  183. package/docs/flattenToConn.mjs.html +1 -1
  184. package/docs/flattenTree.mjs.html +1 -1
  185. package/docs/floor.mjs.html +1 -1
  186. package/docs/fsBuildReadStreamText.mjs.html +1 -1
  187. package/docs/fsBuildWriteStreamText.mjs.html +1 -1
  188. package/docs/fsCleanFolder.mjs.html +1 -1
  189. package/docs/fsCleanFolderCore.mjs.html +1 -1
  190. package/docs/fsCopyFile.mjs.html +1 -1
  191. package/docs/fsCopyFileCore.mjs.html +1 -1
  192. package/docs/fsCopyFolder.mjs.html +1 -1
  193. package/docs/fsCopyFolderCore.mjs.html +1 -1
  194. package/docs/fsCreateFile.mjs.html +1 -1
  195. package/docs/fsCreateFileCore.mjs.html +1 -1
  196. package/docs/fsCreateFolder.mjs.html +1 -1
  197. package/docs/fsCreateFolderCore.mjs.html +1 -1
  198. package/docs/fsDeleteFile.mjs.html +1 -1
  199. package/docs/fsDeleteFileCore.mjs.html +1 -1
  200. package/docs/fsDeleteFileSafe.mjs.html +1 -1
  201. package/docs/fsDeleteFileSafeCore.mjs.html +1 -1
  202. package/docs/fsDeleteFolder.mjs.html +1 -1
  203. package/docs/fsDeleteFolderCore.mjs.html +1 -1
  204. package/docs/fsDeleteFolderSafe.mjs.html +1 -1
  205. package/docs/fsDeleteFolderSafeCore.mjs.html +1 -1
  206. package/docs/fsDownloadFile.mjs.html +1 -1
  207. package/docs/fsDownloadFileCore.mjs.html +1 -1
  208. package/docs/fsEvem.mjs.html +1 -1
  209. package/docs/fsExists.mjs.html +1 -1
  210. package/docs/fsExistsCore.mjs.html +1 -1
  211. package/docs/fsGetFileBasicHash.mjs.html +1 -1
  212. package/docs/fsGetFileBasicHashCore.mjs.html +1 -1
  213. package/docs/fsGetFileHash.mjs.html +1 -1
  214. package/docs/fsGetFileHashCore.mjs.html +1 -1
  215. package/docs/fsGetFileXxHash.mjs.html +1 -1
  216. package/docs/fsGetFileXxHashCore.mjs.html +1 -1
  217. package/docs/fsGetFilesInFolder.mjs.html +1 -1
  218. package/docs/fsGetFilesInFolderCore.mjs.html +1 -1
  219. package/docs/fsGetFilesWithHashInFolder.mjs.html +1 -1
  220. package/docs/fsGetFilesWithHashInFolderCore.mjs.html +1 -1
  221. package/docs/fsGetFolderBasicHash.mjs.html +1 -1
  222. package/docs/fsGetFolderBasicHashCore.mjs.html +1 -1
  223. package/docs/fsGetFoldersInFolder.mjs.html +1 -1
  224. package/docs/fsGetFoldersInFolderCore.mjs.html +1 -1
  225. package/docs/fsIsFile.mjs.html +1 -1
  226. package/docs/fsIsFileCore.mjs.html +1 -1
  227. package/docs/fsIsFolder.mjs.html +1 -1
  228. package/docs/fsIsFolderCore.mjs.html +1 -1
  229. package/docs/fsMergeFiles.mjs.html +1 -1
  230. package/docs/fsMergeFilesCore.mjs.html +1 -1
  231. package/docs/fsReadJson.mjs.html +1 -1
  232. package/docs/fsReadText.mjs.html +1 -1
  233. package/docs/fsReadTextCore.mjs.html +1 -1
  234. package/docs/fsRenameFile.mjs.html +1 -1
  235. package/docs/fsRenameFileCore.mjs.html +1 -1
  236. package/docs/fsRenameFolder.mjs.html +1 -1
  237. package/docs/fsRenameFolderCore.mjs.html +1 -1
  238. package/docs/fsSrlog.mjs.html +1 -1
  239. package/docs/fsSyncFolder.mjs.html +1 -1
  240. package/docs/fsSyncFolderCore.mjs.html +1 -1
  241. package/docs/fsTask.mjs.html +1 -1
  242. package/docs/fsTaskCp.mjs.html +1 -1
  243. package/docs/fsTreeFolder.mjs.html +1 -1
  244. package/docs/fsTreeFolderCore.mjs.html +1 -1
  245. package/docs/fsTreeFolderWithHash.mjs.html +1 -1
  246. package/docs/fsTreeFolderWithHashCore.mjs.html +1 -1
  247. package/docs/fsWatchFile.mjs.html +1 -1
  248. package/docs/fsWatchFolder.mjs.html +1 -1
  249. package/docs/fsWriteJson.mjs.html +1 -1
  250. package/docs/fsWriteText.mjs.html +1 -1
  251. package/docs/fsWriteTextCore.mjs.html +1 -1
  252. package/docs/genGradientColor.mjs.html +1 -1
  253. package/docs/genID.mjs.html +1 -1
  254. package/docs/genIDSeq.mjs.html +1 -1
  255. package/docs/genPm.mjs.html +1 -1
  256. package/docs/getBufferSize.mjs.html +1 -1
  257. package/docs/getClearPathName.mjs.html +1 -1
  258. package/docs/getCsvStrFromData.mjs.html +1 -1
  259. package/docs/getDataFromExcelFileU8Arr.mjs.html +1 -1
  260. package/docs/getDataFromExcelFileU8ArrDyn.mjs.html +1 -1
  261. package/docs/getEnv.mjs.html +1 -1
  262. package/docs/getErrorMessage.mjs.html +1 -1
  263. package/docs/getExcelU8ArrFromData.mjs.html +1 -1
  264. package/docs/getExcelU8ArrFromWorkbook.mjs.html +1 -1
  265. package/docs/getExcelWorkbookFromData.mjs.html +1 -1
  266. package/docs/getExcelWorkbookFromWorksheet.mjs.html +1 -1
  267. package/docs/getExcelWorksheetFromData.mjs.html +1 -1
  268. package/docs/getFileAccept.mjs.html +1 -1
  269. package/docs/getFileBasicHash.mjs.html +1 -1
  270. package/docs/getFileHash.mjs.html +1 -1
  271. package/docs/getFileName.mjs.html +1 -1
  272. package/docs/getFileNameExt.mjs.html +1 -1
  273. package/docs/getFileTrueName.mjs.html +1 -1
  274. package/docs/getFileType.mjs.html +1 -1
  275. package/docs/getFileXxHash.mjs.html +1 -1
  276. package/docs/getGlobal.mjs.html +1 -1
  277. package/docs/getObjSize.mjs.html +1 -1
  278. package/docs/getPathParent.mjs.html +1 -1
  279. package/docs/getTimeBetween.mjs.html +1 -1
  280. package/docs/getTimeFromUnit.mjs.html +1 -1
  281. package/docs/getTimeHp.mjs.html +1 -1
  282. package/docs/getTimeObject.mjs.html +1 -1
  283. package/docs/getTimeRange.mjs.html +1 -1
  284. package/docs/getUserAgent.mjs.html +1 -1
  285. package/docs/getUserAgentDyn.mjs.html +1 -1
  286. package/docs/getltdtkeys.mjs.html +1 -1
  287. package/docs/global.html +1 -1
  288. package/docs/haskey.mjs.html +1 -1
  289. package/docs/html2str.mjs.html +1 -1
  290. package/docs/htmlDecode.mjs.html +1 -1
  291. package/docs/htmlEncode.mjs.html +1 -1
  292. package/docs/importResources.mjs.html +1 -1
  293. package/docs/index.html +1 -1
  294. package/docs/interp1.mjs.html +1 -1
  295. package/docs/isDate.mjs.html +1 -1
  296. package/docs/isDev.mjs.html +1 -1
  297. package/docs/isEle.mjs.html +1 -1
  298. package/docs/isEleExistByID.mjs.html +1 -1
  299. package/docs/isEmail.mjs.html +1 -1
  300. package/docs/isErr.mjs.html +1 -1
  301. package/docs/isIE.mjs.html +1 -1
  302. package/docs/isNarrow.mjs.html +1 -1
  303. package/docs/isStrHasCapital.mjs.html +1 -1
  304. package/docs/isStrHasLetter.mjs.html +1 -1
  305. package/docs/isStrHasLowerCase.mjs.html +1 -1
  306. package/docs/isStrHasNumber.mjs.html +1 -1
  307. package/docs/isStrHasSpace.mjs.html +1 -1
  308. package/docs/isStrHasSymbol.mjs.html +1 -1
  309. package/docs/isUserIdentify.mjs.html +1 -1
  310. package/docs/isUserName.mjs.html +1 -1
  311. package/docs/isUserPw.mjs.html +1 -1
  312. package/docs/isWindow.mjs.html +1 -1
  313. package/docs/isab.mjs.html +1 -1
  314. package/docs/isarr.mjs.html +1 -1
  315. package/docs/isarr0.mjs.html +1 -1
  316. package/docs/isarr1.mjs.html +1 -1
  317. package/docs/isbigint.mjs.html +1 -1
  318. package/docs/isblob.mjs.html +42 -23
  319. package/docs/isbol.mjs.html +1 -1
  320. package/docs/isday.mjs.html +1 -1
  321. package/docs/isearr.mjs.html +1 -1
  322. package/docs/iseobj.mjs.html +1 -1
  323. package/docs/iser.mjs.html +1 -1
  324. package/docs/isernot.mjs.html +1 -1
  325. package/docs/isestr.mjs.html +1 -1
  326. package/docs/isfile.mjs.html +2 -2
  327. package/docs/isfun.mjs.html +1 -1
  328. package/docs/isint.mjs.html +1 -1
  329. package/docs/ismonth.mjs.html +1 -1
  330. package/docs/isn0int.mjs.html +1 -1
  331. package/docs/isn0num.mjs.html +1 -1
  332. package/docs/isnan.mjs.html +1 -1
  333. package/docs/isnbr.mjs.html +1 -1
  334. package/docs/isnint.mjs.html +1 -1
  335. package/docs/isnnum.mjs.html +1 -1
  336. package/docs/isnull.mjs.html +1 -1
  337. package/docs/isnum.mjs.html +1 -1
  338. package/docs/isobj.mjs.html +1 -1
  339. package/docs/isobj0.mjs.html +1 -1
  340. package/docs/isp0int.mjs.html +1 -1
  341. package/docs/isp0num.mjs.html +1 -1
  342. package/docs/ispint.mjs.html +1 -1
  343. package/docs/ispm.mjs.html +1 -1
  344. package/docs/ispnum.mjs.html +1 -1
  345. package/docs/isstr.mjs.html +1 -1
  346. package/docs/isstr0.mjs.html +1 -1
  347. package/docs/istime.mjs.html +1 -1
  348. package/docs/istimeTZ.mjs.html +1 -1
  349. package/docs/istimems.mjs.html +1 -1
  350. package/docs/istimemsTZ.mjs.html +1 -1
  351. package/docs/isu16arr.mjs.html +1 -1
  352. package/docs/isu8arr.mjs.html +1 -1
  353. package/docs/isundefined.mjs.html +1 -1
  354. package/docs/j2o.mjs.html +1 -1
  355. package/docs/judge.mjs.html +1 -1
  356. package/docs/keysmat2ltdt.mjs.html +1 -1
  357. package/docs/ltdt2vrtsable.mjs.html +1 -1
  358. package/docs/ltdtDiff.mjs.html +1 -1
  359. package/docs/ltdtDiffByKey.mjs.html +1 -1
  360. package/docs/ltdtkeys2mat.mjs.html +1 -1
  361. package/docs/ltdtkeysheads2mat.mjs.html +1 -1
  362. package/docs/ltdtmapping.mjs.html +1 -1
  363. package/docs/ltdtmerge.mjs.html +1 -1
  364. package/docs/ltdtpick.mjs.html +1 -1
  365. package/docs/ltdtpull.mjs.html +1 -1
  366. package/docs/mat2ltdt.mjs.html +1 -1
  367. package/docs/matConcat.mjs.html +1 -1
  368. package/docs/matDiff.mjs.html +1 -1
  369. package/docs/matat.mjs.html +1 -1
  370. package/docs/now2str.mjs.html +1 -1
  371. package/docs/now2strp.mjs.html +1 -1
  372. package/docs/nowDay2str.mjs.html +1 -1
  373. package/docs/nowms2str.mjs.html +1 -1
  374. package/docs/nowms2strp.mjs.html +1 -1
  375. package/docs/o2j.mjs.html +1 -1
  376. package/docs/obj2b64.mjs.html +1 -1
  377. package/docs/obj2pb64.mjs.html +1 -1
  378. package/docs/obj2str.mjs.html +1 -1
  379. package/docs/obj2stru8arr.mjs.html +1 -1
  380. package/docs/obj2u8arr.mjs.html +1 -1
  381. package/docs/objSortBy.mjs.html +1 -1
  382. package/docs/objSortByKeys.mjs.html +1 -1
  383. package/docs/oo.mjs.html +1 -1
  384. package/docs/openLink.mjs.html +1 -1
  385. package/docs/pb642obj.mjs.html +1 -1
  386. package/docs/pmChain.mjs.html +1 -1
  387. package/docs/pmConvertResolve.mjs.html +1 -1
  388. package/docs/pmDebounce.mjs.html +1 -1
  389. package/docs/pmHook.mjs.html +1 -1
  390. package/docs/pmHookReject.mjs.html +1 -1
  391. package/docs/pmIni.mjs.html +1 -1
  392. package/docs/pmInvResolve.mjs.html +1 -1
  393. package/docs/pmKeyMutex.mjs.html +1 -1
  394. package/docs/pmMap.mjs.html +1 -1
  395. package/docs/pmQueue.mjs.html +1 -1
  396. package/docs/pmSeries.mjs.html +1 -1
  397. package/docs/pmThrottle.mjs.html +1 -1
  398. package/docs/pmTimeout.mjs.html +1 -1
  399. package/docs/preciseNum.mjs.html +1 -1
  400. package/docs/pseudoRandom.mjs.html +1 -1
  401. package/docs/pseudoRandomIntRange.mjs.html +1 -1
  402. package/docs/pseudoRandomIntsNdpRange.mjs.html +1 -1
  403. package/docs/pseudoRandomIntsRange.mjs.html +1 -1
  404. package/docs/pseudoRandomRange.mjs.html +1 -1
  405. package/docs/pseudoRandomsRange.mjs.html +1 -1
  406. package/docs/queue.mjs.html +1 -1
  407. package/docs/random.mjs.html +1 -1
  408. package/docs/randomIntRange.mjs.html +1 -1
  409. package/docs/randomIntsNdpRange.mjs.html +1 -1
  410. package/docs/randomIntsRange.mjs.html +1 -1
  411. package/docs/randomRange.mjs.html +1 -1
  412. package/docs/randomsRange.mjs.html +1 -1
  413. package/docs/rang.mjs.html +1 -1
  414. package/docs/rep.mjs.html +1 -1
  415. package/docs/repObj.mjs.html +1 -1
  416. package/docs/replace.mjs.html +1 -1
  417. package/docs/replaceObj.mjs.html +1 -1
  418. package/docs/replacePlus.mjs.html +1 -1
  419. package/docs/round.mjs.html +1 -1
  420. package/docs/secd.mjs.html +1 -1
  421. package/docs/sep.mjs.html +1 -1
  422. package/docs/sepInt.mjs.html +1 -1
  423. package/docs/setIntervalHp.mjs.html +1 -1
  424. package/docs/setTimeoutHp.mjs.html +1 -1
  425. package/docs/sind.mjs.html +1 -1
  426. package/docs/split.mjs.html +1 -1
  427. package/docs/str2aes.mjs.html +1 -1
  428. package/docs/str2b64.mjs.html +1 -1
  429. package/docs/str2hint.mjs.html +1 -1
  430. package/docs/str2md5.mjs.html +1 -1
  431. package/docs/str2obj.mjs.html +1 -1
  432. package/docs/str2sha.mjs.html +1 -1
  433. package/docs/str2sha512.mjs.html +1 -1
  434. package/docs/str2u8arr.mjs.html +1 -1
  435. package/docs/strCompare.mjs.html +1 -1
  436. package/docs/strCompareForVersion.mjs.html +1 -1
  437. package/docs/strDiff.mjs.html +1 -1
  438. package/docs/strDiffToHtml.mjs.html +1 -1
  439. package/docs/strFindFuzz.mjs.html +1 -1
  440. package/docs/strFindSimilar.mjs.html +1 -1
  441. package/docs/strTruncate.mjs.html +1 -1
  442. package/docs/strdelleft.mjs.html +1 -1
  443. package/docs/strdelright.mjs.html +1 -1
  444. package/docs/strleft.mjs.html +1 -1
  445. package/docs/strmid.mjs.html +1 -1
  446. package/docs/strright.mjs.html +1 -1
  447. package/docs/stru8arr2obj.mjs.html +1 -1
  448. package/docs/tand.mjs.html +1 -1
  449. package/docs/time2day.mjs.html +1 -1
  450. package/docs/time2hour.mjs.html +1 -1
  451. package/docs/time2min.mjs.html +1 -1
  452. package/docs/timeTZ2day.mjs.html +1 -1
  453. package/docs/timeTZ2expire.mjs.html +1 -1
  454. package/docs/timeTZ2hour.mjs.html +1 -1
  455. package/docs/timeTZ2min.mjs.html +1 -1
  456. package/docs/timeTZ2past.mjs.html +1 -1
  457. package/docs/timems2day.mjs.html +1 -1
  458. package/docs/timems2hour.mjs.html +1 -1
  459. package/docs/timems2min.mjs.html +1 -1
  460. package/docs/timems2time.mjs.html +1 -1
  461. package/docs/timemsTZ2day.mjs.html +1 -1
  462. package/docs/timemsTZ2expire.mjs.html +1 -1
  463. package/docs/timemsTZ2hour.mjs.html +1 -1
  464. package/docs/timemsTZ2min.mjs.html +1 -1
  465. package/docs/timemsTZ2past.mjs.html +1 -1
  466. package/docs/timemsTZ2time.mjs.html +1 -1
  467. package/docs/treeObj.mjs.html +1 -1
  468. package/docs/treeToFilepath.mjs.html +1 -1
  469. package/docs/trim.mjs.html +1 -1
  470. package/docs/u16arr2b64.mjs.html +1 -1
  471. package/docs/u16arr2u8arr.mjs.html +1 -1
  472. package/docs/u8arr2ab.mjs.html +1 -1
  473. package/docs/u8arr2b64.mjs.html +1 -1
  474. package/docs/u8arr2blob.mjs.html +1 -1
  475. package/docs/u8arr2bs.mjs.html +1 -1
  476. package/docs/u8arr2obj.mjs.html +1 -1
  477. package/docs/u8arr2str.mjs.html +1 -1
  478. package/docs/u8arr2u16arr.mjs.html +1 -1
  479. package/docs/urlParse.mjs.html +1 -1
  480. package/docs/verifyValue.mjs.html +1 -1
  481. package/docs/waitFun.mjs.html +1 -1
  482. package/docs/wsemi.html +66 -11
  483. package/package.json +1 -1
  484. package/src/_getDiff2Html.mjs +44 -38
  485. package/src/domDragBarAndScroll.mjs +475 -332
  486. package/src/isblob.mjs +41 -22
  487. package/src/isfile.mjs +1 -1
  488. package/test/_getDiff2Html.test.mjs +56 -0
  489. package/test/blob2ab.test.mjs +6 -0
  490. package/test/domDragBarAndScroll.test.mjs +1163 -11
  491. package/test/isblob.test.mjs +28 -1
  492. package/test/isfile.test.mjs +11 -1
  493. package/toolfp/dist/wsemip.umd.js +2 -2
  494. package/toolg/gDistRollup.mjs +2 -0
  495. package/toolparfor/dist/wpf.umd.js +1 -1
  496. package/toolparfor/dist/wpf_pmSeries.umd.js +1 -1
package/dist/wsemi.umd.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * wsemi v1.9.0
2
+ * wsemi v1.9.2
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("xss"),require("child_process"),require("tree-kill"),require("path"),require("fs"),require("url"),require("readline"),require("stream"),require("stream/promises"),require("chokidar"),require("crypto"),require("events"),require("ua-parser-js"),require("html-to-text")):"function"==typeof define&&define.amd?define(["exports","dayjs","xss","child_process","tree-kill","path","fs","url","readline","stream","stream/promises","chokidar","crypto","events","ua-parser-js","html-to-text"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wsemi={},e.dayjs,e.filterXSS,e.child_process,e.treeKill,e.path,e.fs,e.url,e.readline,e.stream,e.promises,e.chokidar,e.crypto,e.events,e.UAParser,e["html-to-text"])}(this,function(e,t,n,r,i,o,a,s,l,c,u,f,d,h,p,g){"use strict";function m(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var y=m(g),v=Array.isArray,A="object"==typeof global&&global&&global.Object===Object&&global,b="object"==typeof self&&self&&self.Object===Object&&self,w=A||b||Function("return this")(),I=w.Symbol,x=Object.prototype,C=x.hasOwnProperty,B=x.toString,E=I?I.toStringTag:void 0;var S=Object.prototype.toString;var k=I?I.toStringTag:void 0;function F(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":k&&k in Object(e)?function(e){var t=C.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var i=B.call(e);return r&&(t?e[E]=n:delete e[E]),i}(e):function(e){return S.call(e)}(e)}function D(e){return null!=e&&"object"==typeof e}function N(e){return"symbol"==typeof e||D(e)&&"[object Symbol]"==F(e)}var M=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T=/^\w*$/;function Q(e,t){if(v(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!N(e))||(T.test(e)||!M.test(e)||null!=t&&e in Object(t))}function L(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function R(e){if(!L(e))return!1;var t=F(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var U,H=w["__core-js_shared__"],q=(U=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+U:"";var O=Function.prototype.toString;function P(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var $=/^\[object .+?Constructor\]$/,z=Function.prototype,j=Object.prototype,V=z.toString,Y=j.hasOwnProperty,W=RegExp("^"+V.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function G(e){return!(!L(e)||(t=e,q&&q in t))&&(R(e)?W:$).test(P(e));var t}function J(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return G(n)?n:void 0}var _=J(Object,"create");var X=Object.prototype.hasOwnProperty;var K=Object.prototype.hasOwnProperty;function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ee(e,t){return e===t||e!=e&&t!=t}function te(e,t){for(var n=e.length;n--;)if(ee(e[n][0],t))return n;return-1}Z.prototype.clear=function(){this.__data__=_?_(null):{},this.size=0},Z.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Z.prototype.get=function(e){var t=this.__data__;if(_){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return X.call(t,e)?t[e]:void 0},Z.prototype.has=function(e){var t=this.__data__;return _?void 0!==t[e]:K.call(t,e)},Z.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=_&&void 0===t?"__lodash_hash_undefined__":t,this};var ne=Array.prototype.splice;function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}re.prototype.clear=function(){this.__data__=[],this.size=0},re.prototype.delete=function(e){var t=this.__data__,n=te(t,e);return!(n<0)&&(n==t.length-1?t.pop():ne.call(t,n,1),--this.size,!0)},re.prototype.get=function(e){var t=this.__data__,n=te(t,e);return n<0?void 0:t[n][1]},re.prototype.has=function(e){return te(this.__data__,e)>-1},re.prototype.set=function(e,t){var n=this.__data__,r=te(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var ie=J(w,"Map");function oe(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ae(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ae.prototype.clear=function(){this.size=0,this.__data__={hash:new Z,map:new(ie||re),string:new Z}},ae.prototype.delete=function(e){var t=oe(this,e).delete(e);return this.size-=t?1:0,t},ae.prototype.get=function(e){return oe(this,e).get(e)},ae.prototype.has=function(e){return oe(this,e).has(e)},ae.prototype.set=function(e,t){var n=oe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function se(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(se.Cache||ae),n}se.Cache=ae;var le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ce=/\\(\\)?/g,ue=function(e){var t=se(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(le,function(e,n,r,i){t.push(r?i.replace(ce,"$1"):n||e)}),t}),fe=ue;function de(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var he=I?I.prototype:void 0,pe=he?he.toString:void 0;function ge(e){if("string"==typeof e)return e;if(v(e))return de(e,ge)+"";if(N(e))return pe?pe.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function me(e){return null==e?"":ge(e)}function ye(e,t){return v(e)?e:Q(e,t)?[e]:fe(me(e))}function ve(e){if("string"==typeof e||N(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ae(e,t){for(var n=0,r=(t=ye(t,e)).length;null!=e&&n<r;)e=e[ve(t[n++])];return n&&n==r?e:void 0}function be(e,t,n){var r=null==e?void 0:Ae(e,t);return void 0===r?n:r}function we(e){return!0===e||!1===e||D(e)&&"[object Boolean]"==F(e)}function Ie(e){return we(e)}function xe(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}function Ce(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!xe(e))return r("invalid ab");let i=null;try{i=new Uint8Array(e)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function Be(e){return"[object Array]"===Object.prototype.toString.call(e)}function Ee(e){return"[object Object]"===Object.prototype.toString.call(e)}function Se(e){if(Ee(e)){for(let t in e)return!0;return!1}return!1}function ke(e){return"[object String]"===Object.prototype.toString.call(e)}function Fe(e){return!(!ke(e)||""===e)}function De(e){return"[object Number]"===Object.prototype.toString.call(e)}function Ne(e){return e!=e}function Me(e){let t=!1;if(Fe(e))t=!isNaN(Number(e));else if(De(e)){if(Ne(e))return!1;t=!0}return t}function Te(e,t){return!!Ee(e)&&(!(!Fe(t)&&!Me(t))&&t in e)}function Qe(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var Le,Re=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[Le?a:++r];if(!1===t(i[s],s,i))break}return e};function Ue(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function He(e){return D(e)&&"[object Arguments]"==F(e)}var qe=Object.prototype,Oe=qe.hasOwnProperty,Pe=qe.propertyIsEnumerable,$e=He(function(){return arguments}())?He:function(e){return D(e)&&Oe.call(e,"callee")&&!Pe.call(e,"callee")},ze=$e;var je="object"==typeof e&&e&&!e.nodeType&&e,Ve=je&&"object"==typeof module&&module&&!module.nodeType&&module,Ye=Ve&&Ve.exports===je?w.Buffer:void 0,We=(Ye?Ye.isBuffer:void 0)||function(){return!1},Ge=/^(?:0|[1-9]\d*)$/;function Je(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ge.test(e))&&e>-1&&e%1==0&&e<t}function _e(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var Xe={};function Ke(e){return function(t){return e(t)}}Xe["[object Float32Array]"]=Xe["[object Float64Array]"]=Xe["[object Int8Array]"]=Xe["[object Int16Array]"]=Xe["[object Int32Array]"]=Xe["[object Uint8Array]"]=Xe["[object Uint8ClampedArray]"]=Xe["[object Uint16Array]"]=Xe["[object Uint32Array]"]=!0,Xe["[object Arguments]"]=Xe["[object Array]"]=Xe["[object ArrayBuffer]"]=Xe["[object Boolean]"]=Xe["[object DataView]"]=Xe["[object Date]"]=Xe["[object Error]"]=Xe["[object Function]"]=Xe["[object Map]"]=Xe["[object Number]"]=Xe["[object Object]"]=Xe["[object RegExp]"]=Xe["[object Set]"]=Xe["[object String]"]=Xe["[object WeakMap]"]=!1;var Ze="object"==typeof e&&e&&!e.nodeType&&e,et=Ze&&"object"==typeof module&&module&&!module.nodeType&&module,tt=et&&et.exports===Ze&&A.process,nt=function(){try{var e=et&&et.require&&et.require("util").types;return e||tt&&tt.binding&&tt.binding("util")}catch(e){}}(),rt=nt&&nt.isTypedArray,it=rt?Ke(rt):function(e){return D(e)&&_e(e.length)&&!!Xe[F(e)]},ot=Object.prototype.hasOwnProperty;function at(e,t){var n=v(e),r=!n&&ze(e),i=!n&&!r&&We(e),o=!n&&!r&&!i&&it(e),a=n||r||i||o,s=a?Ue(e.length,String):[],l=s.length;for(var c in e)!t&&!ot.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Je(c,l))||s.push(c);return s}var st=Object.prototype;function lt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||st)}function ct(e,t){return function(n){return e(t(n))}}var ut=ct(Object.keys,Object),ft=Object.prototype.hasOwnProperty;function dt(e){if(!lt(e))return ut(e);var t=[];for(var n in Object(e))ft.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ht(e){return null!=e&&_e(e.length)&&!R(e)}function pt(e){return ht(e)?at(e):dt(e)}var gt=function(e,t){return function(n,r){if(null==n)return n;if(!ht(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}(function(e,t){return e&&Re(e,t,pt)}),mt=gt;function yt(e,t){var n=!0;return mt(e,function(e,r,i){return n=!!t(e,r,i)}),n}function vt(e){var t=this.__data__=new re(e);this.size=t.size}vt.prototype.clear=function(){this.__data__=new re,this.size=0},vt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},vt.prototype.get=function(e){return this.__data__.get(e)},vt.prototype.has=function(e){return this.__data__.has(e)},vt.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var r=n.__data__;if(!ie||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ae(r)}return n.set(e,t),this.size=n.size,this};function At(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ae;++t<n;)this.add(e[t])}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function wt(e,t){return e.has(t)}At.prototype.add=At.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},At.prototype.has=function(e){return this.__data__.has(e)};function It(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,h=2&n?new At:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var p=e[f],g=t[f];if(r)var m=a?r(g,p,f,t,e,o):r(p,g,f,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!bt(t,function(e,t){if(!wt(h,t)&&(p===e||i(p,e,n,r,o)))return h.push(t)})){d=!1;break}}else if(p!==g&&!i(p,g,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}var xt=w.Uint8Array;function Ct(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Bt(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Et=I?I.prototype:void 0,St=Et?Et.valueOf:void 0;function kt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Ft(e,t,n){var r=t(e);return v(e)?r:kt(r,n(e))}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Nt(){return[]}var Mt=Object.prototype.propertyIsEnumerable,Tt=Object.getOwnPropertySymbols,Qt=Tt?function(e){return null==e?[]:(e=Object(e),Dt(Tt(e),function(t){return Mt.call(e,t)}))}:Nt;function Lt(e){return Ft(e,pt,Qt)}var Rt=Object.prototype.hasOwnProperty;var Ut=J(w,"DataView"),Ht=J(w,"Promise"),qt=J(w,"Set"),Ot=J(w,"WeakMap"),Pt="[object Map]",$t="[object Promise]",zt="[object Set]",jt="[object WeakMap]",Vt="[object DataView]",Yt=P(Ut),Wt=P(ie),Gt=P(Ht),Jt=P(qt),_t=P(Ot),Xt=F;(Ut&&Xt(new Ut(new ArrayBuffer(1)))!=Vt||ie&&Xt(new ie)!=Pt||Ht&&Xt(Ht.resolve())!=$t||qt&&Xt(new qt)!=zt||Ot&&Xt(new Ot)!=jt)&&(Xt=function(e){var t=F(e),n="[object Object]"==t?e.constructor:void 0,r=n?P(n):"";if(r)switch(r){case Yt:return Vt;case Wt:return Pt;case Gt:return $t;case Jt:return zt;case _t:return jt}return t});var Kt=Xt,Zt="[object Arguments]",en="[object Array]",tn="[object Object]",nn=Object.prototype.hasOwnProperty;function rn(e,t,n,r,i,o){var a=v(e),s=v(t),l=a?en:Kt(e),c=s?en:Kt(t),u=(l=l==Zt?tn:l)==tn,f=(c=c==Zt?tn:c)==tn,d=l==c;if(d&&We(e)){if(!We(t))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new vt),a||it(e)?It(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){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||!o(new xt(e),new xt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ee(+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 s=Ct;case"[object Set]":var l=1&r;if(s||(s=Bt),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=It(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(St)return St.call(e)==St.call(t)}return!1}(e,t,l,n,r,i,o);if(!(1&n)){var h=u&&nn.call(e,"__wrapped__"),p=f&&nn.call(t,"__wrapped__");if(h||p){var g=h?e.value():e,m=p?t.value():t;return o||(o=new vt),i(g,m,n,r,o)}}return!!d&&(o||(o=new vt),function(e,t,n,r,i,o){var a=1&n,s=Lt(e),l=s.length;if(l!=Lt(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Rt.call(t,u)))return!1}var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var h=!0;o.set(e,t),o.set(t,e);for(var p=a;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var y=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===y?g===m||i(g,m,n,r,o):y)){h=!1;break}p||(p="constructor"==u)}if(h&&!p){var v=e.constructor,A=t.constructor;v==A||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof A&&A instanceof A||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,o))}function on(e,t,n,r,i){return e===t||(null==e||null==t||!D(e)&&!D(t)?e!=e&&t!=t:rn(e,t,n,r,on,i))}function an(e){return e==e&&!L(e)}function sn(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function ln(e){var t=function(e){for(var t=pt(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,an(i)]}return t}(e);return 1==t.length&&t[0][2]?sn(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var f=new vt;if(r)var d=r(c,u,l,e,t,f);if(!(void 0===d?on(u,c,3,r,f):d))return!1}}return!0}(n,e,t)}}function cn(e,t){return null!=e&&t in Object(e)}function un(e,t){return null!=e&&function(e,t,n){for(var r=-1,i=(t=ye(t,e)).length,o=!1;++r<i;){var a=ve(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&_e(i)&&Je(a,i)&&(v(e)||ze(e))}(e,t,cn)}function fn(e){return e}function dn(e){return function(t){return null==t?void 0:t[e]}}function hn(e){return Q(e)?dn(ve(e)):function(e){return function(t){return Ae(t,e)}}(e)}function pn(e){return"function"==typeof e?e:null==e?fn:"object"==typeof e?v(e)?function(e,t){return Q(e)&&an(t)?sn(ve(e),t):function(n){var r=be(n,e);return void 0===r&&r===t?un(n,e):on(t,r,3)}}(e[0],e[1]):ln(e):hn(e)}function gn(e,t,n){if(!L(n))return!1;var r=typeof t;return!!("number"==r?ht(n)&&Je(t,n.length):"string"==r&&t in n)&&ee(n[t],e)}function mn(e,t,n){var r=v(e)?Qe:yt;return n&&gn(e,t,n)&&(t=void 0),r(e,pn(t))}function yn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function vn(e){return"function"==typeof e?e:fn}function An(e,t){return(v(e)?yn:mt)(e,vn(t))}function bn(e,t){var n=-1,r=ht(e)?Array(e.length):[];return mt(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function wn(e,t){return(v(e)?de:bn)(e,pn(t))}var In=I?I.isConcatSpreadable:void 0;function xn(e){return v(e)||ze(e)||!!(In&&e&&e[In])}function Cn(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=xn),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?Cn(s,t-1,n,r,i):kt(i,s):r||(i[i.length]=s)}return i}function Bn(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function En(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return kt(v(n)?Bn(n):[n],Cn(t,1))}function Sn(e){return"[object Undefined]"===Object.prototype.toString.call(e)}function kn(e){return"[object Null]"===Object.prototype.toString.call(e)}function Fn(e){if(Ee(e)){for(let t in e)return!1;return!0}return!1}function Dn(e){return!(!ke(e)||""!==e)}function Nn(e){return!!Be(e)&&0===e.length}function Mn(e){return!!Sn(e)||(!!kn(e)||(!!Fn(e)||(!!Dn(e)||(!!Nn(e)||!!Ne(e)))))}function Tn(e){return!!Be(e)&&(0!==e.length&&(1!==e.length||!Mn(e[0])))}function Qn(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Ln(e){return e!=e}function Rn(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Qn(e,Ln,n)}function Un(e,t){return!!(null==e?0:e.length)&&Rn(e,t,0)>-1}function Hn(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var qn=qt&&1/Bt(new qt([,-0]))[1]==1/0?function(e){return new qt(e)}:function(){},On=qn;function Pn(e,t,n){var r=-1,i=Un,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=Hn;else if(o>=200){var c=t?null:On(e);if(c)return Bt(c);a=!1,i=wt,l=new At}else l=t?[]:s;e:for(;++r<o;){var u=e[r],f=t?t(u):u;if(u=n||0!==u?u:0,a&&f==f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(u)}else i(l,f,n)||(l!==s&&l.push(f),s.push(u))}return s}function $n(e){return e&&e.length?Pn(e):[]}function zn(e){if(!Tn(e))return[];let t=[];return An(e,function(e){let n=pt(e);t=[...t,...n],t=$n(t)}),t}var jn=dn("length"),Vn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Yn(e){return Vn.test(e)}var Wn="\\ud800-\\udfff",Gn="["+Wn+"]",Jn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",_n="\\ud83c[\\udffb-\\udfff]",Xn="[^"+Wn+"]",Kn="(?:\\ud83c[\\udde6-\\uddff]){2}",Zn="[\\ud800-\\udbff][\\udc00-\\udfff]",er="(?:"+Jn+"|"+_n+")"+"?",tr="[\\ufe0e\\ufe0f]?",nr=tr+er+("(?:\\u200d(?:"+[Xn,Kn,Zn].join("|")+")"+tr+er+")*"),rr="(?:"+[Xn+Jn+"?",Jn,Kn,Zn,Gn].join("|")+")",ir=RegExp(_n+"(?="+_n+")|"+rr+nr,"g");function or(e){return Yn(e)?function(e){for(var t=ir.lastIndex=0;ir.test(e);)++t;return t}(e):jn(e)}function ar(e){if(null==e)return 0;if(ht(e))return"string"==typeof(t=e)||!v(t)&&D(t)&&"[object String]"==F(t)?or(e):e.length;var t,n=Kt(e);return"[object Map]"==n||"[object Set]"==n?e.size:dt(e).length}function sr(e,t=!1,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(Sn(e))return i("invalid v");let o="";try{o=t?JSON.stringify(e,null,2):JSON.stringify(e)}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o}function lr(e,t=null,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:[];if(!Tn(e))return i("invalid ltdt");if(Tn(t)||(t=zn(e)),0===ar(t))return i("invalid keys, can not extract any key from ltdt");let o=!1;if(An(e,function(e){Se(e)||(o=!0)}),o)return i("invalid ltdt, every element must be an effective object");let a=be(n,"empty",""),s=[];return An(e,function(e){let n=wn(t,function(t){return Te(e,t)?Ie(e[t])?e[t]?"true":"false":ke(e[t])||Me(e[t])?e[t]:sr(e[t]):a});s.push(n)}),r?{state:"success",msg:s}:s}function cr(e,t=[],n={},r={}){let i=be(r,"returnWithStateAndMsg",null);Ie(i)||(i=!1);let o=e=>i?{state:"error",msg:e}:[];if(!Tn(e))return o("invalid ltdt");Tn(t)||(t=zn(e)),Se(n)||(n={},An(t,e=>{n[e]=e}));let a=!1;if(An(e,function(e){Se(e)||(a=!0)}),a)return o("invalid ltdt, every element must be an effective object");let s=wn(t,function(e){return be(n,e)}),l=lr(e,t,{returnWithStateAndMsg:!0});if("error"===l.state)return o(`ltdtkeys2mat: ${l.msg}`);let c=En([s],l.msg);return i?{state:"success",msg:c}:c}function ur(e){if(!Be(e))return{error:"data is not an array"};let t=null;try{mn(e,Se)&&(e=cr(e)),t={rows:e}}catch(e){return{error:e}}return t}function fr(e){if(!Fe(e))return!1;let n="YYYY-MM";return e===t(e,n).format(n)}var dr=/\s/;var hr=/^\s+/;function pr(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&dr.test(e.charAt(t)););return t}(e)+1).replace(hr,""):e}var gr=/^[-+]0x[0-9a-f]+$/i,mr=/^0b[01]+$/i,yr=/^0o[0-7]+$/i,vr=parseInt;function Ar(e){if("number"==typeof e)return e;if(N(e))return NaN;if(L(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=L(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=pr(e);var n=mr.test(e);return n||yr.test(e)?vr(e.slice(2),n?2:8):gr.test(e)?NaN:+e}var br=1/0;function wr(e){return e?(e=Ar(e))===br||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Ir(e){var t=wr(e),n=t%1;return t==t?n?t-n:t:0}function xr(e){if(!Me(e))return 0;return wr(e)}function Cr(e,t={}){let n=be(t,"useLimitSafe",null);return Ie(n)||(n=!1),!!Me(e)&&(e=xr(e),n?Number.isSafeInteger(e):"number"==typeof(r=e)&&r==Ir(r));var r}var Br="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sr={exports:{}};var kr,Fr={exports:{}};function Dr(){return kr||(kr=1,function(e){var t;e.exports=(t=t||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==Br&&Br.crypto&&(n=Br.crypto),!n)try{n=require("crypto")}catch(e){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},a=o.lib={},s=a.Base={extend:function(e){var t=i(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)}},l=a.WordArray=s.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new l.init(t,e)}}),c=o.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},f=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},d=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*c,o);if(c){for(var f=0;f<c;f+=a)this._doProcessBlock(i,f);n=i.splice(0,c),r.sigBytes-=u}return new l.init(n,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=h.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.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,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}});var p=o.algo={};return o}(Math),t)}(Fr)),Fr.exports}var Nr={exports:{}};!function(e){var t;e.exports=(t=Dr(),function(){var e=t,n=e.lib.WordArray;function r(e,t,r){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return n.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return r(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64)}(Nr);var Mr,Tr=Nr.exports,Qr=Er(Tr),Lr={exports:{}};function Rr(){return Mr||(Mr=1,function(e){var t;e.exports=(t=Dr(),function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],h=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],v=e[t+7],A=e[t+8],b=e[t+9],w=e[t+10],I=e[t+11],x=e[t+12],C=e[t+13],B=e[t+14],E=e[t+15],S=o[0],k=o[1],F=o[2],D=o[3];S=c(S,k,F,D,a,7,s[0]),D=c(D,S,k,F,l,12,s[1]),F=c(F,D,S,k,h,17,s[2]),k=c(k,F,D,S,p,22,s[3]),S=c(S,k,F,D,g,7,s[4]),D=c(D,S,k,F,m,12,s[5]),F=c(F,D,S,k,y,17,s[6]),k=c(k,F,D,S,v,22,s[7]),S=c(S,k,F,D,A,7,s[8]),D=c(D,S,k,F,b,12,s[9]),F=c(F,D,S,k,w,17,s[10]),k=c(k,F,D,S,I,22,s[11]),S=c(S,k,F,D,x,7,s[12]),D=c(D,S,k,F,C,12,s[13]),F=c(F,D,S,k,B,17,s[14]),S=u(S,k=c(k,F,D,S,E,22,s[15]),F,D,l,5,s[16]),D=u(D,S,k,F,y,9,s[17]),F=u(F,D,S,k,I,14,s[18]),k=u(k,F,D,S,a,20,s[19]),S=u(S,k,F,D,m,5,s[20]),D=u(D,S,k,F,w,9,s[21]),F=u(F,D,S,k,E,14,s[22]),k=u(k,F,D,S,g,20,s[23]),S=u(S,k,F,D,b,5,s[24]),D=u(D,S,k,F,B,9,s[25]),F=u(F,D,S,k,p,14,s[26]),k=u(k,F,D,S,A,20,s[27]),S=u(S,k,F,D,C,5,s[28]),D=u(D,S,k,F,h,9,s[29]),F=u(F,D,S,k,v,14,s[30]),S=f(S,k=u(k,F,D,S,x,20,s[31]),F,D,m,4,s[32]),D=f(D,S,k,F,A,11,s[33]),F=f(F,D,S,k,I,16,s[34]),k=f(k,F,D,S,B,23,s[35]),S=f(S,k,F,D,l,4,s[36]),D=f(D,S,k,F,g,11,s[37]),F=f(F,D,S,k,v,16,s[38]),k=f(k,F,D,S,w,23,s[39]),S=f(S,k,F,D,C,4,s[40]),D=f(D,S,k,F,a,11,s[41]),F=f(F,D,S,k,p,16,s[42]),k=f(k,F,D,S,y,23,s[43]),S=f(S,k,F,D,b,4,s[44]),D=f(D,S,k,F,x,11,s[45]),F=f(F,D,S,k,E,16,s[46]),S=d(S,k=f(k,F,D,S,h,23,s[47]),F,D,a,6,s[48]),D=d(D,S,k,F,v,10,s[49]),F=d(F,D,S,k,B,15,s[50]),k=d(k,F,D,S,m,21,s[51]),S=d(S,k,F,D,x,6,s[52]),D=d(D,S,k,F,p,10,s[53]),F=d(F,D,S,k,w,15,s[54]),k=d(k,F,D,S,l,21,s[55]),S=d(S,k,F,D,A,6,s[56]),D=d(D,S,k,F,E,10,s[57]),F=d(F,D,S,k,y,15,s[58]),k=d(k,F,D,S,C,21,s[59]),S=d(S,k,F,D,g,6,s[60]),D=d(D,S,k,F,I,10,s[61]),F=d(F,D,S,k,h,15,s[62]),k=d(k,F,D,S,b,21,s[63]),o[0]=o[0]+S|0,o[1]=o[1]+k|0,o[2]=o[2]+F|0,o[3]=o[3]+D|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),t.MD5)}(Lr)),Lr.exports}var Ur={exports:{}},Hr={exports:{}};!function(e){var t;e.exports=(t=Dr(),function(){var e=t,n=e.lib,r=n.WordArray,i=n.Hasher,o=e.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var f=(r<<5|r>>>27)+l+a[c];f+=c<20?1518500249+(i&o|~i&s):c<40?1859775393+(i^o^s):c<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,l=s,s=o,o=i<<30|i>>>2,i=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=i._createHelper(s),e.HmacSHA1=i._createHmacHelper(s)}(),t.SHA1)}(Hr);var qr,Or,Pr=Hr.exports,$r=Er(Pr),zr={exports:{}};function jr(){return Or||(Or=1,function(e){var t;e.exports=(t=Dr(),qr||(qr=1,function(e){var t;e.exports=(t=Dr(),void function(){var e=t,n=e.lib.Base,r=e.enc.Utf8;e.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;o.sigBytes=a.sigBytes=i,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,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}())}(zr)),function(){var e=t,n=e.lib,r=n.Base,i=n.WordArray,o=e.algo,a=o.MD5,s=o.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,o=r.hasher.create(),a=i.create(),s=a.words,l=r.keySize,c=r.iterations;s.length<l;){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(var u=1;u<c;u++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=4*l,a}});e.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),t.EvpKDF)}(Ur)),Ur.exports}var Vr,Yr={exports:{}};!function(e){var t;e.exports=(t=Dr(),Rr(),jr(),Vr||(Vr=1,function(e){var t;e.exports=(t=Dr(),jr(),void(t.lib.Cipher||function(e){var n=t,r=n.lib,i=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var l=s.Base64,c=n.algo.EvpKDF,u=r.Cipher=a.extend({cfg:i.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,n){this.cfg=this.cfg.extend(n),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?A:y}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()});r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=n.mode={},d=r.BlockCipherMode=i.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}}),h=f.CBC=function(){var t=d.extend();function n(t,n,r){var i,o=this._iv;o?(i=o,this._iv=e):i=this._prevBlock;for(var a=0;a<r;a++)t[n+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=o}}),t}(),p=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(i);var l=o.create(a,r);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:h,padding:p}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.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 g=r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),m=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},y=r.SerializableCipher=i.extend({cfg:i.extend({format:m}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return g.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,i){if(r||(r=o.random(8)),i)a=c.create({keySize:t+n,hasher:i}).compute(e,r);else var a=c.create({keySize:t+n}).compute(e,r);var s=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,g.create({key:a,iv:s,salt:r})}},A=r.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:v}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=y.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=i.iv,y.decrypt.call(this,e,t,i.key,r)}})}()))}(Yr)),function(){var e=t,n=e.lib.BlockCipher,r=e.algo,i=[],o=[],a=[],s=[],l=[],c=[],u=[],f=[],d=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,o[p]=n;var g=e[n],m=e[g],y=e[m],v=257*e[p]^16843008*p;a[n]=v<<24|v>>>8,s[n]=v<<16|v>>>16,l[n]=v<<8|v>>>24,c[n]=v,v=16843009*y^65537*m^257*g^16843008*n,u[p]=v<<24|v>>>8,f[p]=v<<16|v>>>16,d[p]=v<<8|v>>>24,h[p]=v,n?(n=g^e[e[e[y^g]]],r^=e[e[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a<r;a++)a<n?o[a]=t[a]:(c=o[a-1],a%n?n>6&&a%n==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=p[a/n|0]<<24),o[a]=o[a-n]^c);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(a=r-l,l%4)var c=o[a];else c=o[a-4];s[l]=l<4||a<=4?c:u[i[c>>>24]]^f[i[c>>>16&255]]^d[i[c>>>8&255]]^h[i[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,f,d,h,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],f=e[t+2]^n[2],d=e[t+3]^n[3],h=4,p=1;p<l;p++){var g=r[c>>>24]^i[u>>>16&255]^o[f>>>8&255]^a[255&d]^n[h++],m=r[u>>>24]^i[f>>>16&255]^o[d>>>8&255]^a[255&c]^n[h++],y=r[f>>>24]^i[d>>>16&255]^o[c>>>8&255]^a[255&u]^n[h++],v=r[d>>>24]^i[c>>>16&255]^o[u>>>8&255]^a[255&f]^n[h++];c=g,u=m,f=y,d=v}g=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^n[h++],m=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^n[h++],y=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[h++],v=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^n[h++],e[t]=g,e[t+1]=m,e[t+2]=y,e[t+3]=v},keySize:8});e.AES=n._createHelper(g)}(),t.AES)}(Sr);var Wr=Er(Sr.exports),Gr={exports:{}};!function(e){e.exports=Dr().enc.Utf8}(Gr);var Jr=Er(Gr.exports),_r={exports:{}};!function(e){e.exports=Dr().enc.Hex}(_r);var Xr=Er(_r.exports);function Kr(e,t,n=!1,r={}){let i=be(r,"returnWithStateAndMsg",null);Ie(i)||(i=!1);let o=e=>i?{state:"error",msg:e}:"";if(!Fe(e))return o("invalid str");if(!Fe(t))return o("invalid key");Ie(n)||(n=!1);let a="";try{if(n){a=Wr.decrypt(e,t).toString(Jr)}else{let n=Xr.parse(e).toString(Qr);a=Wr.decrypt(n,t).toString(Jr)}}catch(e){return o(e.toString())}return""===a?o("can not decrypt str with key, or str is not a valid cipher text"):i?{state:"success",msg:a}:a}var Zr=function(){try{var e=J(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ei=Zr;function ti(e,t,n){"__proto__"==t&&ei?ei(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var ni=Object.prototype.hasOwnProperty;function ri(e,t,n){var r=e[t];ni.call(e,t)&&ee(r,n)&&(void 0!==n||t in e)||ti(e,t,n)}function ii(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?ti(n,s,l):ri(n,s,l)}return n}var oi=Object.prototype.hasOwnProperty;function ai(e){if(!L(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=lt(e),n=[];for(var r in e)("constructor"!=r||!t&&oi.call(e,r))&&n.push(r);return n}function si(e){return ht(e)?at(e,!0):ai(e)}var li="object"==typeof e&&e&&!e.nodeType&&e,ci=li&&"object"==typeof module&&module&&!module.nodeType&&module,ui=ci&&ci.exports===li?w.Buffer:void 0,fi=ui?ui.allocUnsafe:void 0;function di(e,t){if(t)return e.slice();var n=e.length,r=fi?fi(n):new e.constructor(n);return e.copy(r),r}var hi=ct(Object.getPrototypeOf,Object),pi=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)kt(t,Qt(e)),e=hi(e);return t}:Nt;function gi(e){return Ft(e,si,pi)}var mi=Object.prototype.hasOwnProperty;function yi(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}var vi=/\w*$/;var Ai=I?I.prototype:void 0,bi=Ai?Ai.valueOf:void 0;function wi(e,t){var n=t?yi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ii(e,t,n){var r,i,o,a=e.constructor;switch(t){case"[object ArrayBuffer]":return yi(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var n=t?yi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);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 wi(e,n);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(o=new(i=e).constructor(i.source,vi.exec(i))).lastIndex=i.lastIndex,o;case"[object Symbol]":return r=e,bi?Object(bi.call(r)):{}}}var xi=Object.create,Ci=function(){function e(){}return function(t){if(!L(t))return{};if(xi)return xi(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Bi(e){return"function"!=typeof e.constructor||lt(e)?{}:Ci(hi(e))}var Ei=nt&&nt.isMap,Si=Ei?Ke(Ei):function(e){return D(e)&&"[object Map]"==Kt(e)};var ki=nt&&nt.isSet,Fi=ki?Ke(ki):function(e){return D(e)&&"[object Set]"==Kt(e)},Di="[object Arguments]",Ni="[object Function]",Mi="[object Object]",Ti={};function Qi(e,t,n,r,i,o){var a,s=1&t,l=2&t,c=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!L(e))return e;var u=v(e);if(u){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&mi.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Bn(e,a)}else{var f=Kt(e),d=f==Ni||"[object GeneratorFunction]"==f;if(We(e))return di(e,s);if(f==Mi||f==Di||d&&!i){if(a=l||d?{}:Bi(e),!s)return l?function(e,t){return ii(e,pi(e),t)}(e,function(e,t){return e&&ii(t,si(t),e)}(a,e)):function(e,t){return ii(e,Qt(e),t)}(e,function(e,t){return e&&ii(t,pt(t),e)}(a,e))}else{if(!Ti[f])return i?e:{};a=Ii(e,f,s)}}o||(o=new vt);var h=o.get(e);if(h)return h;o.set(e,a),Fi(e)?e.forEach(function(r){a.add(Qi(r,t,n,r,e,o))}):Si(e)&&e.forEach(function(r,i){a.set(i,Qi(r,t,n,i,e,o))});var p=u?void 0:(c?l?gi:Lt:l?si:pt)(e);return yn(p||e,function(r,i){p&&(r=e[i=r]),ri(a,i,Qi(r,t,n,i,e,o))}),a}Ti[Di]=Ti["[object Array]"]=Ti["[object ArrayBuffer]"]=Ti["[object DataView]"]=Ti["[object Boolean]"]=Ti["[object Date]"]=Ti["[object Float32Array]"]=Ti["[object Float64Array]"]=Ti["[object Int8Array]"]=Ti["[object Int16Array]"]=Ti["[object Int32Array]"]=Ti["[object Map]"]=Ti["[object Number]"]=Ti[Mi]=Ti["[object RegExp]"]=Ti["[object Set]"]=Ti["[object String]"]=Ti["[object Symbol]"]=Ti["[object Uint8Array]"]=Ti["[object Uint8ClampedArray]"]=Ti["[object Uint16Array]"]=Ti["[object Uint32Array]"]=!0,Ti["[object Error]"]=Ti[Ni]=Ti["[object WeakMap]"]=!1;function Li(e){return Qi(e,5)}let Ri=2147483647;var Ui={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,o),!0;case 6:return u.fn.call(u.context,t,r,i,o,a),!0}for(c=1,l=new Array(f-1);c<f;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var d,h=u.length;for(c=0;c<h;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),f){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,i);break;default:if(!l)for(d=1,l=new Array(f-1);d<f;d++)l[d-1]=arguments[d];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(Ui);var Hi=Er(Ui.exports);function qi(){return new Hi}function Oi(e){let t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}function Pi(e,t,n=[],r={}){let i=r.funSettle,o=r.tag||"evem",a=(t,...n)=>e.emit(t,...n);Oi(r.funEmit)&&(a=r.funEmit);try{return a(t,...n)}catch(r){if(Oi(i))try{i(r)}catch(e){}try{"error"!==t&&e.listenerCount("error")>0?a("error",{fun:"listener",name:t,msg:r,args:n}):console.error(`[wsemi ${o}] listener of '${String(t)}' threw:`,r)}catch(e){try{console.error(`[wsemi ${o}] listener of '${String(t)}' threw, and reporting it also threw:`,e,r)}catch(e){}}return!1}}var $i=w.isFinite,zi=Math.min;function ji(e){var t=Math[e];return function(e,n){if(e=Ar(e),(n=null==n?0:zi(Ir(n),292))&&$i(e)){var r=(me(e)+"e").split("e");return+((r=(me(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Vi=ji("round");function Yi(e,t={}){let n=be(t,"useClampSafe",null);Ie(n)||(n=!1);let r=be(t,"useLimitSafe",null);Ie(r)||(r=!1);let i=be(t,"returnWithStateAndMsg",null);Ie(i)||(i=!1);let o=e=>i?{state:"success",msg:e}:e,a=e=>{if(i)return{state:"error",msg:e};throw new Error(e)};if(!Me(e))return o(0);let s=null;try{e=xr(e),s=Vi(e),n&&(s>Number.MAX_SAFE_INTEGER?s=Number.MAX_SAFE_INTEGER:s<Number.MIN_SAFE_INTEGER&&(s=Number.MIN_SAFE_INTEGER))}catch(e){return a(e.toString())}return r&&!Number.isSafeInteger(Number(s))?a(`v[${e}] is not a safe integer`):("0"===String(s)&&(s=0),o(s))}function Wi(e,t={}){if(!Cr(e,t))return!1;return Yi(e)>0}function Gi(e,t){return function(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}(e||[],t||[],ri)}function Ji(e,t){if(!Be(e))return[];if(!Be(t))return[];if(ar(e)!==ar(t))return[];let n=[];return An(e,function(r,i){let o=null,a=Me(e[i]),s=Me(t[i]);(a||s)&&(o=0),a&&(o+=xr(e[i])),s&&(o+=xr(t[i])),n.push(o)}),n}var _i=Math.ceil,Xi=Math.max;var Ki=function(e){return function(t,n,r){return r&&"number"!=typeof r&&gn(t,n,r)&&(n=r=void 0),t=wr(t),void 0===n?(n=t,t=0):n=wr(n),function(e,t,n,r){for(var i=-1,o=Xi(_i((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}(t,n,r=void 0===r?t<n?1:-1:wr(r),e)}}(),Zi=Ki;function eo(e,t){for(var n=-1,r=t.length,i=Array(r),o=null==e;++n<r;)i[n]=o?void 0:be(e,t[n]);return i}function to(e){return(null==e?0:e.length)?Cn(e,1):[]}var no=Math.max;function ro(e,t,n){return t=no(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=no(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}function io(e){return function(){return e}}var oo=ei?function(e,t){return ei(e,"toString",{configurable:!0,enumerable:!1,value:io(t),writable:!0})}:fn,ao=oo,so=Date.now;var lo,co,uo,fo=(lo=ao,co=0,uo=0,function(){var e=so(),t=16-(e-uo);if(uo=e,t>0){if(++co>=800)return arguments[0]}else co=0;return lo.apply(void 0,arguments)}),ho=fo;function po(e){return ho(ro(e,void 0,to),e+"")}var go=po(eo);function mo(e,t={}){if(!Cr(e,t))return!1;return Yi(e)>=0}function yo(e,t,n=null){if(!Tn(e))return[];if(!mo(t))return[];let r;if(t=Yi(t),Mn(n)){if(t>=e.length)return[];r=go(e,t)}else{if(!mo(n))return[];if(n=Yi(n),t>=e.length||n>=e.length)return[];let i=Zi(t,n+1);r=go(e,i)}return r}var vo=Array.prototype.join;function Ao(e,t){return null==e?"":vo.call(e,t)}function bo(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}function wo(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:bo(e,t,n)}var Io=nt&&nt.isRegExp,xo=Io?Ke(Io):function(e){return D(e)&&"[object RegExp]"==F(e)};var Co="\\ud800-\\udfff",Bo="["+Co+"]",Eo="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",So="\\ud83c[\\udffb-\\udfff]",ko="[^"+Co+"]",Fo="(?:\\ud83c[\\udde6-\\uddff]){2}",Do="[\\ud800-\\udbff][\\udc00-\\udfff]",No="(?:"+Eo+"|"+So+")"+"?",Mo="[\\ufe0e\\ufe0f]?",To=Mo+No+("(?:\\u200d(?:"+[ko,Fo,Do].join("|")+")"+Mo+No+")*"),Qo="(?:"+[ko+Eo+"?",Eo,Fo,Do,Bo].join("|")+")",Lo=RegExp(So+"(?="+So+")|"+Qo+To,"g");function Ro(e){return Yn(e)?function(e){return e.match(Lo)||[]}(e):function(e){return e.split("")}(e)}function Uo(e,t,n){return n&&"number"!=typeof n&&gn(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=me(e))&&("string"==typeof t||null!=t&&!xo(t))&&!(t=ge(t))&&Yn(e)?wo(Ro(e),0,n):e.split(t,n):[]}function Ho(e,t,n){var r=null==e?0:e.length;return r?bo(e,0,(t=r-(t=n||void 0===t?1:Ir(t)))<0?0:t):[]}let qo=class{diff(e,t,n={}){let r;"function"==typeof n?(r=n,n={}):"callback"in n&&(r=n.callback);const i=this.castInput(e,n),o=this.castInput(t,n),a=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(o,n));return this.diffWithOptionsObj(a,s,n,r)}diffWithOptionsObj(e,t,n,r){var i;const o=e=>(e=this.postProcess(e,n),r?void setTimeout(function(){r(e)},0):e),a=t.length,s=e.length;let l=1,c=a+s;null!=n.maxEditLength&&(c=Math.min(c,n.maxEditLength));const u=null!==(i=n.timeout)&&void 0!==i?i:1/0,f=Date.now()+u,d=[{oldPos:-1,lastComponent:void 0}];let h=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=s&&h+1>=a)return o(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,g=1/0;const m=()=>{for(let r=Math.max(p,-l);r<=Math.min(g,l);r+=2){let i;const l=d[r-1],c=d[r+1];l&&(d[r-1]=void 0);let u=!1;if(c){const e=c.oldPos-r;u=c&&0<=e&&e<a}const f=l&&l.oldPos+1<s;if(u||f){if(i=!f||u&&l.oldPos<c.oldPos?this.addToPath(c,!0,!1,0,n):this.addToPath(l,!1,!0,1,n),h=this.extractCommon(i,t,e,r,n),i.oldPos+1>=s&&h+1>=a)return o(this.buildValues(i.lastComponent,t,e))||!0;d[r]=i,i.oldPos+1>=s&&(g=Math.min(g,r-1)),h+1>=a&&(p=Math.max(p,r+1))}else d[r]=void 0}l++};if(r)!function e(){setTimeout(function(){if(l>c||Date.now()>f)return r(void 0);m()||e()},0)}();else for(;l<=c&&Date.now()<=f;){const e=m();if(e)return e}}addToPath(e,t,n,r,i){const o=e.lastComponent;return o&&!i.oneChangePerToken&&o.added===t&&o.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:o.count+1,added:t,removed:n,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:o}}}extractCommon(e,t,n,r,i){const o=t.length,a=n.length;let s=e.oldPos,l=s-r,c=0;for(;l+1<o&&s+1<a&&this.equals(n[s+1],t[l+1],i);)l++,s++,c++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return c&&!i.oneChangePerToken&&(e.lastComponent={count:c,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,l}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){const r=[];let i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();const o=r.length;let a=0,s=0,l=0;for(;a<o;a++){const e=r[a];if(e.removed)e.value=this.join(n.slice(l,l+e.count)),l+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){const r=n[l+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(l+=e.count)}}return r}};const Oo=new class extends qo{constructor(){super(...arguments),this.tokenize=$o}equals(e,t,n){return n.ignoreWhitespace?(n.newlineIsToken&&e.includes("\n")||(e=e.trim()),n.newlineIsToken&&t.includes("\n")||(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith("\n")&&(e=e.slice(0,-1)),t.endsWith("\n")&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function Po(e,t,n){return Oo.diff(e,t,n)}function $o(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));const n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){const i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function zo(e){if(!function(e){for(let t=0;t<e.length;t++)if(e[t]<" "||e[t]>"~"||'"'===e[t]||"\\"===e[t])return!0;return!1}(e))return e;let t='"';const n=(new TextEncoder).encode(e);let r=0;for(;r<n.length;){const e=n[r];t+=7===e?"\\a":8===e?"\\b":9===e?"\\t":10===e?"\\n":11===e?"\\v":12===e?"\\f":13===e?"\\r":34===e?'\\"':92===e?"\\\\":e>=32&&e<=126?String.fromCharCode(e):"\\"+e.toString(8).padStart(3,"0"),r++}return t+='"',t}const jo={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Vo(e,t,n,r,i,o,a){let s;s=a?"function"==typeof a?{callback:a}:a:{},void 0===s.context&&(s.context=4);const l=s.context;if(s.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(!s.callback)return c(Po(n,r,s));{const{callback:e}=s;Po(n,r,Object.assign(Object.assign({},s),{callback:t=>{const n=c(t);e(n)}}))}function c(n){if(!n)return;function r(e){return e.map(function(e){return" "+e})}n.push({value:"",lines:[]});const a=[];let s=0,c=0,u=[],f=1,d=1;for(let e=0;e<n.length;e++){const t=n[e],i=t.lines||Go(t.value);if(t.lines=i,t.added||t.removed){if(!s){const t=n[e-1];s=f,c=d,t&&(u=l>0?r(t.lines.slice(-l)):[],s-=u.length,c-=u.length)}for(const e of i)u.push((t.added?"+":"-")+e);t.added?d+=i.length:f+=i.length}else{if(s)if(i.length<=2*l&&e<n.length-2)for(const e of r(i))u.push(e);else{const e=Math.min(i.length,l);for(const t of r(i.slice(0,e)))u.push(t);const t={oldStart:s,oldLines:f-s+e,newStart:c,newLines:d-c+e,lines:u};a.push(t),s=0,c=0,u=[]}f+=i.length,d+=i.length}}for(const e of a)for(let t=0;t<e.lines.length;t++)e.lines[t].endsWith("\n")?e.lines[t]=e.lines[t].slice(0,-1):(e.lines.splice(t+1,0,"\"),t++);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:a}}}function Yo(e,t){var n,r,i,o,a,s;if(t||(t=jo),Array.isArray(e)){if(e.length>1&&!t.includeFileHeaders&&!e.every(e=>e.isGit))throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map(e=>Yo(e,t)).join("\n")}const l=[];if(e.isGit){if(t=jo,!e.oldFileName)throw new Error("oldFileName must be specified for Git patches");if(!e.newFileName)throw new Error("newFileName must be specified for Git patches");let c=e.oldFileName,u=e.newFileName;e.isCreate&&"/dev/null"===c?c=u.replace(/^b\//,"a/"):e.isDelete&&"/dev/null"===u&&(u=c.replace(/^a\//,"b/")),l.push("diff --git "+zo(c)+" "+zo(u)),e.isDelete&&l.push("deleted file mode "+(null!==(n=e.oldMode)&&void 0!==n?n:"100644")),e.isCreate&&l.push("new file mode "+(null!==(r=e.newMode)&&void 0!==r?r:"100644")),e.oldMode&&e.newMode&&!e.isDelete&&!e.isCreate&&(l.push("old mode "+e.oldMode),l.push("new mode "+e.newMode)),e.isRename&&(l.push("rename from "+zo((null!==(i=e.oldFileName)&&void 0!==i?i:"").replace(/^a\//,""))),l.push("rename to "+zo((null!==(o=e.newFileName)&&void 0!==o?o:"").replace(/^b\//,"")))),e.isCopy&&(l.push("copy from "+zo((null!==(a=e.oldFileName)&&void 0!==a?a:"").replace(/^a\//,""))),l.push("copy to "+zo((null!==(s=e.newFileName)&&void 0!==s?s:"").replace(/^b\//,""))))}else t.includeIndex&&e.oldFileName==e.newFileName&&void 0!==e.oldFileName&&l.push("Index: "+e.oldFileName),t.includeUnderline&&l.push("===================================================================");const c=e.hunks.length>0;!t.includeFileHeaders||void 0===e.oldFileName||void 0===e.newFileName||e.isGit&&!c||(l.push("--- "+zo(e.oldFileName)+(e.oldHeader?"\t"+e.oldHeader:"")),l.push("+++ "+zo(e.newFileName)+(e.newHeader?"\t"+e.newHeader:"")));for(let t=0;t<e.hunks.length;t++){const n=e.hunks[t],r=0===n.oldLines?n.oldStart-1:n.oldStart,i=0===n.newLines?n.newStart-1:n.newStart;l.push("@@ -"+r+","+n.oldLines+" +"+i+","+n.newLines+" @@");for(const e of n.lines)l.push(e)}return l.join("\n")+"\n"}function Wo(e,t,n,r,i,o,a){if("function"==typeof a&&(a={callback:a}),!(null==a?void 0:a.callback)){const s=Vo(e,t,n,r,i,o,a);if(!s)return;return Yo(s,null==a?void 0:a.headerOptions)}{const{callback:s}=a;Vo(e,t,n,r,i,o,Object.assign(Object.assign({},a),{callback:e=>{s(e?Yo(e,a.headerOptions):void 0)}}))}}function Go(e){const t=e.endsWith("\n"),n=e.split("\n").map(e=>e+"\n");return t?n.pop():n.push(n.pop().slice(0,-1)),n}function Jo(e,t,n){return e&&e.length?bo(e,0,(t=n||void 0===t?1:Ir(t))<0?0:t):[]}function _o(e,t,n={}){if(!ke(e))return{};if(!ke(t))return{};if(""===e&&""===t)return{};let r=be(n,"useNormNewline");Ie(r)||(r=!0),r&&(e=(e=e.replaceAll("\r\n","\n")).replaceAll("\r","\n"),t=(t=t.replaceAll("\r\n","\n")).replaceAll("\r","\n"));let i,o=Po(e,t),a=ar(o),s=[],l=[];for(i=-1;i++,!(i>a-1);){let e=o[i],t=be(e,"count",0),n=be(e,"removed",!1),r=be(e,"added",!1),a=Uo(be(e,"value",""),"\n");a=Jo(a,t);for(let e=1;e<=t;e++){let t=a[e-1];n||r?n&&!r?(s.push({p:"remove",v:t}),l.push({p:"empty",v:""})):!n&&r&&(s.push({p:"empty",v:""}),l.push({p:"add",v:t})):(s.push({p:"",v:t}),l.push({p:"",v:t}))}}let c=ar(s);for(i=-1;i++,!(i>c-1);){let e=be(s,i,null),t=be(l,i,null),n=be(e,"p",""),r=be(t,"p","");if("remove"===n&&"empty"===r){let e=0,t=i,n=-1;for(let t=i;t<=c-1;t++){let r=be(s,t,null),i=be(l,t,null),o=be(r,"p",""),a=be(i,"p","");if("remove"!==o||"empty"!==a)break;e++,n=t}if(e<=0)continue;let r=0,o=!1,a=-1;for(let t=i;t<=n+e;t++){let e=be(s,t,null),n=be(l,t,null),i=be(e,"p",""),c=be(n,"p","");if("empty"===i&&"add"===c)o||(a=t),o=!0,r++;else if(o)break}if(r<=0)continue;let u=Math.min(e,r);if(u>=1){for(let e=0;e<=u-1;e++){let n=t+e,r=a+e;s[n]={p:"modify",vo:be(s,`${n}.v`,""),vn:be(l,`${r}.v`,"")},l[n]=null,s[r]=null,l[r]=null}i+=u+1}}}let u=[];for(i=-1;i++,!(i>c-1);){let e=be(s,i,null),t=be(l,i,null),n=be(e,"p",""),r=be(t,"p",""),o=be(e,"v",""),a=be(t,"v","");if(null===e&&null===t)continue;let c="",f=o,d="";"modify"===n?(c="modify",f=e.vo,d=e.vn):"remove"===n&&"empty"===r?(c="remove",f=o,d=""):"empty"===n&&"add"===r&&(c="add",f=a,d=""),u.push({p:c,vo:f,vn:d})}return{diff:o,dfs:u}}let Xo="\n";function Ko(e,t){if(!Be(e))return{};if(!Be(t))return{};let n=wn(e,e=>`${e}${Xo}`);n=Ao(n,"");let r=wn(t,e=>`${e}${Xo}`);r=Ao(r,"");let i=_o(n,r,{eliminateEndLine:!0});return i.dfs=wn(i.dfs,(e,t)=>({p:e.p,k:t,vo:e.vo,vn:e.vn})),i}function Zo(e,t,n={}){if(!Be(e))return{};if(!Be(t))return{};if(0===ar(e)&&0===ar(t))return{};let r,i=be(n,"mode","");return"array"!==i&&"matrix"!==i&&(i="array"),"array"===i?r=Ko(e,t):"matrix"===i&&(r=function(e,t,n={}){if(!Be(e))return{};if(!Be(t))return{};let r=be(n,"dls","");Fe(r)||(r="⟋");let i=be(n,"dlq","");Fe(i)||(i="∶");let o=[];An(e,(t,n)=>{if(!Be(t))throw console.log("arrOld",e),console.log(n,t),new Error("arrOld is not a matrix");An(t,(e,t)=>{o.push(`${t}${i}${e}${r}`)}),o.push(Xo)}),o=Ao(o,"");let a=[];An(t,(e,n)=>{if(!Be(e))throw console.log("arrNew",t),console.log(n,e),new Error("arrNew is not a matrix");An(e,(e,t)=>{a.push(`${t}${i}${e}${r}`)}),a.push(Xo)}),a=Ao(a,"");let s=_o(o,a,{...n,eliminateEndLine:!0}),l=[];return An(s.dfs,e=>{let t=Uo(e.vo,r);if(t=Ho(t,1),"modify"===e.p){let n=Uo(e.vn,r);n=Ho(n,1);let i=Ko(t,n);e.dfs=i.dfs}let n=[];"modify"===e.p?An(e.dfs,e=>{n.push(e)}):An(t,t=>{n.push({p:e.p,vo:t,vn:""})}),n=wn(n,(e,t)=>{let n=be(Uo(e.vo,i),1,""),r=be(Uo(e.vn,i),1,"");return{p:e.p,k:t,vo:n,vn:r}}),l.push(n)}),{diff:s.diff,dfs:l}}(e,t,n)),r}function ea(e,t,n){if((e=me(e))&&(n||void 0===t))return pr(e);if(!e||!(t=ge(t)))return e;var r=Ro(e),i=Ro(t),o=function(e,t){for(var n=-1,r=e.length;++n<r&&Rn(t,e[n],0)>-1;);return n}(r,i),a=function(e,t){for(var n=e.length;n--&&Rn(t,e[n],0)>-1;);return n}(r,i)+1;return wo(r,o,a).join("")}function ta(e,t){if(!Fe(e))return[];if(!Fe(t))return[];return e.split(t)}function na(e,t){if(!Fe(e))return[];if(!Fe(t))return[];let n=ta(e,t);n=wn(n,ea);let r=[];return An(n,function(e){Fe(e)&&r.push(e)}),r}function ra(e,t){return Fe(e)&&mo(t)?0===(t=Yi(t))?"":e.substring(0,t):""}function ia(e,t){if(!Fe(e))return"";if(!mo(t))return"";if(0===(t=Yi(t)))return"";let n=e.length-t;return n<0&&(n=0),e.substring(n,n+t)}function oa(e,t){return Fe(e)&&mo(t)?0===(t=Yi(t))?e:ia(e,e.length-t):""}function aa(e,t){var n=[];return mt(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function sa(e,t){return(v(e)?Dt:aa)(e,pn(t))}function la(e){if(!Me(e))return!1;return xr(e)>0}function ca(e){return Tn(e)?e=wn(e=sa(e=Li(e),la),xr):[]}function ua(e,t){return on(e,t)}function fa(e){return"number"==typeof e||D(e)&&"[object Number]"==F(e)}function da(e,t){function n(e){return Be(e)?e:[e]}if(Mn(e))return!1;if(0===(e=n(e)).length)return!1;if(Mn(e))return!1;if(0===(t=n(t)).length)return!1;for(let n=0;n<e.length;n++)for(let r=0;r<t.length;r++)if(ua(e[n],t[r]))return!0;return!1}function ha(e,t,n={}){if(!Tn(e))return null;if(!Oi(t))return null;let r=be(n,"returnIndex");Ie(r)||(r=!1);let i=-1,o=null;for(let n=0;n<ar(e);n++){let r=t(o,e[n]);ua(o,r)||(o=r,i=n)}let a=null;return a=r?i:o,a}function pa(e,t){if(!Be(e))return[];if(!Be(t))return[];if(ar(e)!==ar(t))return[];let n=[];return An(e,function(r,i){let o=null,a=Me(e[i]),s=Me(t[i]);(a||s)&&(o=1),a&&(o*=xr(e[i])),s&&(o*=xr(t[i])),n.push(o)}),n}function ga(){if(ar(arguments)<2)return[];let e=arguments[0];for(let t=1;t<ar(arguments);t++){e=pa(e,arguments[t])}return e}function ma(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function ya(){if(ar(arguments)<2)return null;let e=ga(...arguments);return 0===ar(e)?null:(e=(t=e)&&t.length?ma(t,fn):0,e);var t}function va(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}var Aa=Array.prototype.splice;function ba(e,t){return e&&e.length&&t&&t.length?function(e,t,n,r){var i=r?va:Rn,o=-1,a=t.length,s=e;for(e===t&&(t=Bn(t)),n&&(s=de(e,Ke(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&Aa.call(s,l,1),Aa.call(e,l,1);return e}(e,t):e}function wa(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Ia=Object.prototype.hasOwnProperty;function xa(e,t){var n=-1,r=(t=ye(t,e)).length;if(!r)return!0;for(;++n<r;){var i=ve(t[n]);if("__proto__"===i&&!Ia.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&n<r-1)return!1}var o=function(e,t){return t.length<2?e:Ae(e,bo(t,0,-1))}(e,t);return null==o||delete o[ve(wa(t))]}var Ca=Array.prototype.splice;function Ba(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=N(e),a=void 0!==t,s=null===t,l=t==t,c=N(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var Ea=po(function(e,t){var n=null==e?0:e.length,r=eo(e,t);return function(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Je(i)?Ca.call(e,i,1):xa(e,i)}}}(e,de(t,function(e){return Je(e,n)?+e:e}).sort(Ba)),r});var Sa=Array.prototype.reverse;function ka(e){return null==e?e:Sa.call(e)}function Fa(e,t,n){t=t.length?de(t,function(e){return v(e)?function(t){return Ae(t,1===e.length?e[0]:e)}:e}):[fn];var r=-1;return t=de(t,Ke(pn)),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(bn(e,function(e,n,i){return{criteria:de(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Ba(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Da(e,t){return ho(ro(e,t,fn),e+"")}var Na=Da(function(e,t){if(null==e)return[];var n=t.length;return n>1&&gn(e,t[0],t[1])?t=[]:n>2&&gn(t[0],t[1],t[2])&&(t=[t[0]]),Fa(e,Cn(t,1),[])});function Ma(e){return"[object BigInt]"===Object.prototype.toString.call(e)}function Ta(e){if(!(Fe(e)||Me(e)||N(e)||Ma(e)))return"";let t="";try{t=String(e)}catch(e){}try{t=e.toString()}catch(e){}return t}function Qa(e,t,n){var r=null==e?0:e.length;return r?bo(e,(t=n||void 0===t?1:Ir(t))<0?0:t,r):[]}function La(e,t){return Fe(e)&&mo(t)?0===(t=Yi(t))?e:ra(e,e.length-t):""}function Ra(e,t={}){let n=be(t,"excludeString");if(Ie(n)||(n=!1),!Fe(e))return"";let r=e=>e>="0"&&e<="9"||"."===e||"-"===e||"+"===e,i=ea(e);if(n){let e=i.split("");for(let t=0;t<e.length;t++)if(r(e[t])){i=oa(i,t),e=Qa(e,t);break}e=ka(e);for(let t=0;t<e.length;t++)if(r(e[t])){i=La(i,t);break}}return i}function Ua(e){let t=0,n=0,r=0,i=ar(e);An(e,e=>{Me(e)?t+=1:ke(e)?n+=1:Ee(e)&&(r+=1)});let o="";return t===i?o="num":n===i?o="str":r===i?o="obj":t+n===i?o="str":console.log("eles in array are non-homogeneous",e),o}function Ha(e,t,n={}){let r=[];if("num"!==t&&"str"!==t&&"files"!==t)throw new Error(`invalid type[${t}]`);if("num"===t)r=wn(e,(e,t)=>({key:t,payload:e,value:xr(e)}));else if("files"===t)r=wn(e,(e,t)=>({key:t,payload:e,value:Ta(e)}));else if("str"===t){let t=wn(e,e=>Ra(e,{excludeString:!0})),n=0;An(t,e=>{Me(e)&&n++});let i=n===ar(t);r=wn(e,(e,n)=>{let r=e;return i?(r=t[n],r=xr(r)):r=Ta(r),{key:n,payload:e,value:r}})}return r}function qa(e,t){let n=Na(e,"value");return wn(n,t?"key":"payload")}function Oa(e,t){let n=function(e,t){let n=Li(e);return n.sort((e,n)=>e[t].localeCompare(n[t],"standard",{numeric:!0})),n}(e,"value");return wn(n,t?"key":"payload")}function Pa(e,t={}){if(!Tn(e))return[];if(1===ar(e))return e;let n=be(t,"localeCompare");Ie(n)||(n=!1);let r=be(t,"returnIndex");Ie(r)||(r=!1);let i=be(t,"compareKey",null),o=null;o=n?Oa:qa;let a,s=Ua(e);if(""===s)return[];if("obj"===s){if(!Fe(i))return[];let s=wn(e,(e,t)=>be(e,i,"")),l=Ua(s);if("num"!==l&&"str"!==l)return[];{n&&(l="files");let i=o(Ha(s,l,t),!0);a=r?i:wn(i,t=>e[t])}}else if("num"===s||"str"===s){n&&(s="files"),a=o(Ha(e,s,t),r)}return a}function $a(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!Fe(e))return r("invalid b64");let i="";try{i=Qr.parse(e).toString(Jr)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function za(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:{};if(!Fe(e))return r("invalid v");let i={};try{i=JSON.parse(e)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}let ja=/[\t\n\f\r ]/g,Va=/^[A-Za-z0-9+/]*={0,2}$/,Ya=/=+$/;function Wa(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!ke(e))return r("invalid b64");let i=e.replace(ja,"");if(!Va.test(i))return r("invalid b64, contains characters outside the base64 alphabet or misplaced padding");let o=i.length-i.replace(Ya,"").length,a=(i.length-o)%4;if(0===o&&1===a)return r(`invalid b64, the last chunk has only 1 character[${i.length}]`);if(1===o&&3!==a)return r("invalid b64, malformed padding, 1 padding requires the last chunk to have 3 characters");if(2===o&&2!==a)return r("invalid b64, malformed padding, 2 paddings require the last chunk to have 2 characters");let s=null;try{let e=Qr.parse(i),t=e.words,n=e.sigBytes;s=new Uint8Array(n);for(let e=0;e<n;e++){let n=t[e>>>2]>>>24-e%4*8&255;s[e]=n}}catch(e){return r(e.toString())}return n?{state:"success",msg:s}:s}function Ga(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint16Array;if(!ke(e))return r("invalid b64");let i=null;try{let t=Wa(e,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`b642u8arr: ${t.msg}`);let n=t.msg;if(n.byteLength%2!=0)return r(`byteLength[${n.byteLength}] is not even, can not be restored to Uint16Array`);let o=0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n:new Uint8Array(n);i=new Uint16Array(o.buffer)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function Ja(e,t,n="anyone"){if(!Fe(e))return!1;if("anyone"!==n&&"all"!==n)return!1;if(ke(t)){if(!Fe(t))return!1;t=[t]}if(!Tn(t))return!1;let r=!1;if(An(t,function(e){Fe(e)||(r=!0)}),r)return!1;let i=0;return An(t,function(t){-1!==function(e,t){return e.indexOf(t)}(e,t)&&i++}),"anyone"===n?i>0:"all"===n&&i===t.length}function _a(){let e,t,n=new Promise(function(){e=arguments[0],t=arguments[1]});return n.resolve=e,n.reject=t,n}function Xa(e){return"[object Blob]"===Object.prototype.toString.call(e)}function Ka(){return"undefined"!=typeof window&&void 0!==window.document}function Za(e){if(!Xa(e))return Promise.reject("invalid bb");if(!Ka())return Promise.reject("no window");try{return function(e){return e.arrayBuffer()}(e)}catch(t){return function(e){let t=_a();try{let n=new FileReader;n.onload=function(){let e=n.result;t.resolve(e)},n.onerror=function(e){t.reject(e)},n.readAsArrayBuffer(e)}catch(e){t.reject(e)}return t}(e)}}function es(e){if(!Xa(e))return Promise.reject("invalid bb");if(!Ka())return Promise.reject("no window");let t=_a();try{let n=new FileReader;n.onload=function(){t.resolve(n.result)},n.onerror=function(e){t.reject(e)},n.readAsDataURL(e)}catch(e){t.reject(e)}return t}function ts(e){let t=_a();return Za(e).then(e=>{let n=new Uint8Array(e);t.resolve(n)}).catch(e=>{t.reject(e)}),t}function ns(e){if(!Be(e))return Promise.reject("invalid bbs");if(0===e.length)return Promise.resolve([]);let t=wn(e,function(e){return es(e)});return Promise.all(t)}function rs(e){if(!Be(e))return Promise.reject("invalid bbs");if(0===e.length)return Promise.resolve([]);let t=wn(e,function(e){return ts(e)});return Promise.all(t)}var is={exports:{}};
6
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("dayjs"),require("xss"),require("child_process"),require("tree-kill"),require("path"),require("fs"),require("url"),require("readline"),require("stream"),require("stream/promises"),require("chokidar"),require("crypto"),require("events"),require("ua-parser-js"),require("html-to-text")):"function"==typeof define&&define.amd?define(["exports","dayjs","xss","child_process","tree-kill","path","fs","url","readline","stream","stream/promises","chokidar","crypto","events","ua-parser-js","html-to-text"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wsemi={},e.dayjs,e.filterXSS,e.child_process,e.treeKill,e.path,e.fs,e.url,e.readline,e.stream,e.streamPromises,e.chokidar,e.crypto,e.events,e.UAParser,e["html-to-text"])}(this,function(e,t,n,r,i,o,a,s,l,c,u,f,d,h,p,g){"use strict";function m(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var y=m(g),v=Array.isArray,A="object"==typeof global&&global&&global.Object===Object&&global,b="object"==typeof self&&self&&self.Object===Object&&self,w=A||b||Function("return this")(),I=w.Symbol,x=Object.prototype,C=x.hasOwnProperty,B=x.toString,E=I?I.toStringTag:void 0;var S=Object.prototype.toString;var k=I?I.toStringTag:void 0;function F(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":k&&k in Object(e)?function(e){var t=C.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var i=B.call(e);return r&&(t?e[E]=n:delete e[E]),i}(e):function(e){return S.call(e)}(e)}function D(e){return null!=e&&"object"==typeof e}function N(e){return"symbol"==typeof e||D(e)&&"[object Symbol]"==F(e)}var M=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T=/^\w*$/;function Q(e,t){if(v(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!N(e))||(T.test(e)||!M.test(e)||null!=t&&e in Object(t))}function L(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function R(e){if(!L(e))return!1;var t=F(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var U,H=w["__core-js_shared__"],q=(U=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+U:"";var O=Function.prototype.toString;function P(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var $=/^\[object .+?Constructor\]$/,z=Function.prototype,j=Object.prototype,V=z.toString,Y=j.hasOwnProperty,W=RegExp("^"+V.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function G(e){return!(!L(e)||(t=e,q&&q in t))&&(R(e)?W:$).test(P(e));var t}function J(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return G(n)?n:void 0}var _=J(Object,"create");var X=Object.prototype.hasOwnProperty;var K=Object.prototype.hasOwnProperty;function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ee(e,t){return e===t||e!=e&&t!=t}function te(e,t){for(var n=e.length;n--;)if(ee(e[n][0],t))return n;return-1}Z.prototype.clear=function(){this.__data__=_?_(null):{},this.size=0},Z.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Z.prototype.get=function(e){var t=this.__data__;if(_){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return X.call(t,e)?t[e]:void 0},Z.prototype.has=function(e){var t=this.__data__;return _?void 0!==t[e]:K.call(t,e)},Z.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=_&&void 0===t?"__lodash_hash_undefined__":t,this};var ne=Array.prototype.splice;function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}re.prototype.clear=function(){this.__data__=[],this.size=0},re.prototype.delete=function(e){var t=this.__data__,n=te(t,e);return!(n<0)&&(n==t.length-1?t.pop():ne.call(t,n,1),--this.size,!0)},re.prototype.get=function(e){var t=this.__data__,n=te(t,e);return n<0?void 0:t[n][1]},re.prototype.has=function(e){return te(this.__data__,e)>-1},re.prototype.set=function(e,t){var n=this.__data__,r=te(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var ie=J(w,"Map");function oe(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ae(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ae.prototype.clear=function(){this.size=0,this.__data__={hash:new Z,map:new(ie||re),string:new Z}},ae.prototype.delete=function(e){var t=oe(this,e).delete(e);return this.size-=t?1:0,t},ae.prototype.get=function(e){return oe(this,e).get(e)},ae.prototype.has=function(e){return oe(this,e).has(e)},ae.prototype.set=function(e,t){var n=oe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function se(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(se.Cache||ae),n}se.Cache=ae;var le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ce=/\\(\\)?/g,ue=function(e){var t=se(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(le,function(e,n,r,i){t.push(r?i.replace(ce,"$1"):n||e)}),t}),fe=ue;function de(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var he=I?I.prototype:void 0,pe=he?he.toString:void 0;function ge(e){if("string"==typeof e)return e;if(v(e))return de(e,ge)+"";if(N(e))return pe?pe.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function me(e){return null==e?"":ge(e)}function ye(e,t){return v(e)?e:Q(e,t)?[e]:fe(me(e))}function ve(e){if("string"==typeof e||N(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ae(e,t){for(var n=0,r=(t=ye(t,e)).length;null!=e&&n<r;)e=e[ve(t[n++])];return n&&n==r?e:void 0}function be(e,t,n){var r=null==e?void 0:Ae(e,t);return void 0===r?n:r}function we(e){return!0===e||!1===e||D(e)&&"[object Boolean]"==F(e)}function Ie(e){return we(e)}function xe(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}function Ce(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!xe(e))return r("invalid ab");let i=null;try{i=new Uint8Array(e)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function Be(e){return"[object Array]"===Object.prototype.toString.call(e)}function Ee(e){return"[object Object]"===Object.prototype.toString.call(e)}function Se(e){if(Ee(e)){for(let t in e)return!0;return!1}return!1}function ke(e){return"[object String]"===Object.prototype.toString.call(e)}function Fe(e){return!(!ke(e)||""===e)}function De(e){return"[object Number]"===Object.prototype.toString.call(e)}function Ne(e){return e!=e}function Me(e){let t=!1;if(Fe(e))t=!isNaN(Number(e));else if(De(e)){if(Ne(e))return!1;t=!0}return t}function Te(e,t){return!!Ee(e)&&(!(!Fe(t)&&!Me(t))&&t in e)}function Qe(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var Le,Re=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[Le?a:++r];if(!1===t(i[s],s,i))break}return e};function Ue(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function He(e){return D(e)&&"[object Arguments]"==F(e)}var qe=Object.prototype,Oe=qe.hasOwnProperty,Pe=qe.propertyIsEnumerable,$e=He(function(){return arguments}())?He:function(e){return D(e)&&Oe.call(e,"callee")&&!Pe.call(e,"callee")},ze=$e;var je="object"==typeof e&&e&&!e.nodeType&&e,Ve=je&&"object"==typeof module&&module&&!module.nodeType&&module,Ye=Ve&&Ve.exports===je?w.Buffer:void 0,We=(Ye?Ye.isBuffer:void 0)||function(){return!1},Ge=/^(?:0|[1-9]\d*)$/;function Je(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ge.test(e))&&e>-1&&e%1==0&&e<t}function _e(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var Xe={};function Ke(e){return function(t){return e(t)}}Xe["[object Float32Array]"]=Xe["[object Float64Array]"]=Xe["[object Int8Array]"]=Xe["[object Int16Array]"]=Xe["[object Int32Array]"]=Xe["[object Uint8Array]"]=Xe["[object Uint8ClampedArray]"]=Xe["[object Uint16Array]"]=Xe["[object Uint32Array]"]=!0,Xe["[object Arguments]"]=Xe["[object Array]"]=Xe["[object ArrayBuffer]"]=Xe["[object Boolean]"]=Xe["[object DataView]"]=Xe["[object Date]"]=Xe["[object Error]"]=Xe["[object Function]"]=Xe["[object Map]"]=Xe["[object Number]"]=Xe["[object Object]"]=Xe["[object RegExp]"]=Xe["[object Set]"]=Xe["[object String]"]=Xe["[object WeakMap]"]=!1;var Ze="object"==typeof e&&e&&!e.nodeType&&e,et=Ze&&"object"==typeof module&&module&&!module.nodeType&&module,tt=et&&et.exports===Ze&&A.process,nt=function(){try{var e=et&&et.require&&et.require("util").types;return e||tt&&tt.binding&&tt.binding("util")}catch(e){}}(),rt=nt&&nt.isTypedArray,it=rt?Ke(rt):function(e){return D(e)&&_e(e.length)&&!!Xe[F(e)]},ot=Object.prototype.hasOwnProperty;function at(e,t){var n=v(e),r=!n&&ze(e),i=!n&&!r&&We(e),o=!n&&!r&&!i&&it(e),a=n||r||i||o,s=a?Ue(e.length,String):[],l=s.length;for(var c in e)!t&&!ot.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Je(c,l))||s.push(c);return s}var st=Object.prototype;function lt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||st)}function ct(e,t){return function(n){return e(t(n))}}var ut=ct(Object.keys,Object),ft=Object.prototype.hasOwnProperty;function dt(e){if(!lt(e))return ut(e);var t=[];for(var n in Object(e))ft.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ht(e){return null!=e&&_e(e.length)&&!R(e)}function pt(e){return ht(e)?at(e):dt(e)}var gt=function(e,t){return function(n,r){if(null==n)return n;if(!ht(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}(function(e,t){return e&&Re(e,t,pt)}),mt=gt;function yt(e,t){var n=!0;return mt(e,function(e,r,i){return n=!!t(e,r,i)}),n}function vt(e){var t=this.__data__=new re(e);this.size=t.size}vt.prototype.clear=function(){this.__data__=new re,this.size=0},vt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},vt.prototype.get=function(e){return this.__data__.get(e)},vt.prototype.has=function(e){return this.__data__.has(e)},vt.prototype.set=function(e,t){var n=this.__data__;if(n instanceof re){var r=n.__data__;if(!ie||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ae(r)}return n.set(e,t),this.size=n.size,this};function At(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ae;++t<n;)this.add(e[t])}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function wt(e,t){return e.has(t)}At.prototype.add=At.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},At.prototype.has=function(e){return this.__data__.has(e)};function It(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,h=2&n?new At:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var p=e[f],g=t[f];if(r)var m=a?r(g,p,f,t,e,o):r(p,g,f,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!bt(t,function(e,t){if(!wt(h,t)&&(p===e||i(p,e,n,r,o)))return h.push(t)})){d=!1;break}}else if(p!==g&&!i(p,g,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}var xt=w.Uint8Array;function Ct(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Bt(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Et=I?I.prototype:void 0,St=Et?Et.valueOf:void 0;function kt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Ft(e,t,n){var r=t(e);return v(e)?r:kt(r,n(e))}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Nt(){return[]}var Mt=Object.prototype.propertyIsEnumerable,Tt=Object.getOwnPropertySymbols,Qt=Tt?function(e){return null==e?[]:(e=Object(e),Dt(Tt(e),function(t){return Mt.call(e,t)}))}:Nt;function Lt(e){return Ft(e,pt,Qt)}var Rt=Object.prototype.hasOwnProperty;var Ut=J(w,"DataView"),Ht=J(w,"Promise"),qt=J(w,"Set"),Ot=J(w,"WeakMap"),Pt="[object Map]",$t="[object Promise]",zt="[object Set]",jt="[object WeakMap]",Vt="[object DataView]",Yt=P(Ut),Wt=P(ie),Gt=P(Ht),Jt=P(qt),_t=P(Ot),Xt=F;(Ut&&Xt(new Ut(new ArrayBuffer(1)))!=Vt||ie&&Xt(new ie)!=Pt||Ht&&Xt(Ht.resolve())!=$t||qt&&Xt(new qt)!=zt||Ot&&Xt(new Ot)!=jt)&&(Xt=function(e){var t=F(e),n="[object Object]"==t?e.constructor:void 0,r=n?P(n):"";if(r)switch(r){case Yt:return Vt;case Wt:return Pt;case Gt:return $t;case Jt:return zt;case _t:return jt}return t});var Kt=Xt,Zt="[object Arguments]",en="[object Array]",tn="[object Object]",nn=Object.prototype.hasOwnProperty;function rn(e,t,n,r,i,o){var a=v(e),s=v(t),l=a?en:Kt(e),c=s?en:Kt(t),u=(l=l==Zt?tn:l)==tn,f=(c=c==Zt?tn:c)==tn,d=l==c;if(d&&We(e)){if(!We(t))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new vt),a||it(e)?It(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){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||!o(new xt(e),new xt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ee(+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 s=Ct;case"[object Set]":var l=1&r;if(s||(s=Bt),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=It(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(St)return St.call(e)==St.call(t)}return!1}(e,t,l,n,r,i,o);if(!(1&n)){var h=u&&nn.call(e,"__wrapped__"),p=f&&nn.call(t,"__wrapped__");if(h||p){var g=h?e.value():e,m=p?t.value():t;return o||(o=new vt),i(g,m,n,r,o)}}return!!d&&(o||(o=new vt),function(e,t,n,r,i,o){var a=1&n,s=Lt(e),l=s.length;if(l!=Lt(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Rt.call(t,u)))return!1}var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var h=!0;o.set(e,t),o.set(t,e);for(var p=a;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var y=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===y?g===m||i(g,m,n,r,o):y)){h=!1;break}p||(p="constructor"==u)}if(h&&!p){var v=e.constructor,A=t.constructor;v==A||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof A&&A instanceof A||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,o))}function on(e,t,n,r,i){return e===t||(null==e||null==t||!D(e)&&!D(t)?e!=e&&t!=t:rn(e,t,n,r,on,i))}function an(e){return e==e&&!L(e)}function sn(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function ln(e){var t=function(e){for(var t=pt(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,an(i)]}return t}(e);return 1==t.length&&t[0][2]?sn(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var f=new vt;if(r)var d=r(c,u,l,e,t,f);if(!(void 0===d?on(u,c,3,r,f):d))return!1}}return!0}(n,e,t)}}function cn(e,t){return null!=e&&t in Object(e)}function un(e,t){return null!=e&&function(e,t,n){for(var r=-1,i=(t=ye(t,e)).length,o=!1;++r<i;){var a=ve(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&_e(i)&&Je(a,i)&&(v(e)||ze(e))}(e,t,cn)}function fn(e){return e}function dn(e){return function(t){return null==t?void 0:t[e]}}function hn(e){return Q(e)?dn(ve(e)):function(e){return function(t){return Ae(t,e)}}(e)}function pn(e){return"function"==typeof e?e:null==e?fn:"object"==typeof e?v(e)?function(e,t){return Q(e)&&an(t)?sn(ve(e),t):function(n){var r=be(n,e);return void 0===r&&r===t?un(n,e):on(t,r,3)}}(e[0],e[1]):ln(e):hn(e)}function gn(e,t,n){if(!L(n))return!1;var r=typeof t;return!!("number"==r?ht(n)&&Je(t,n.length):"string"==r&&t in n)&&ee(n[t],e)}function mn(e,t,n){var r=v(e)?Qe:yt;return n&&gn(e,t,n)&&(t=void 0),r(e,pn(t))}function yn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function vn(e){return"function"==typeof e?e:fn}function An(e,t){return(v(e)?yn:mt)(e,vn(t))}function bn(e,t){var n=-1,r=ht(e)?Array(e.length):[];return mt(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function wn(e,t){return(v(e)?de:bn)(e,pn(t))}var In=I?I.isConcatSpreadable:void 0;function xn(e){return v(e)||ze(e)||!!(In&&e&&e[In])}function Cn(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=xn),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?Cn(s,t-1,n,r,i):kt(i,s):r||(i[i.length]=s)}return i}function Bn(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function En(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return kt(v(n)?Bn(n):[n],Cn(t,1))}function Sn(e){return"[object Undefined]"===Object.prototype.toString.call(e)}function kn(e){return"[object Null]"===Object.prototype.toString.call(e)}function Fn(e){if(Ee(e)){for(let t in e)return!1;return!0}return!1}function Dn(e){return!(!ke(e)||""!==e)}function Nn(e){return!!Be(e)&&0===e.length}function Mn(e){return!!Sn(e)||(!!kn(e)||(!!Fn(e)||(!!Dn(e)||(!!Nn(e)||!!Ne(e)))))}function Tn(e){return!!Be(e)&&(0!==e.length&&(1!==e.length||!Mn(e[0])))}function Qn(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Ln(e){return e!=e}function Rn(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Qn(e,Ln,n)}function Un(e,t){return!!(null==e?0:e.length)&&Rn(e,t,0)>-1}function Hn(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var qn=qt&&1/Bt(new qt([,-0]))[1]==1/0?function(e){return new qt(e)}:function(){},On=qn;function Pn(e,t,n){var r=-1,i=Un,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=Hn;else if(o>=200){var c=t?null:On(e);if(c)return Bt(c);a=!1,i=wt,l=new At}else l=t?[]:s;e:for(;++r<o;){var u=e[r],f=t?t(u):u;if(u=n||0!==u?u:0,a&&f==f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(u)}else i(l,f,n)||(l!==s&&l.push(f),s.push(u))}return s}function $n(e){return e&&e.length?Pn(e):[]}function zn(e){if(!Tn(e))return[];let t=[];return An(e,function(e){let n=pt(e);t=[...t,...n],t=$n(t)}),t}var jn=dn("length"),Vn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Yn(e){return Vn.test(e)}var Wn="\\ud800-\\udfff",Gn="["+Wn+"]",Jn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",_n="\\ud83c[\\udffb-\\udfff]",Xn="[^"+Wn+"]",Kn="(?:\\ud83c[\\udde6-\\uddff]){2}",Zn="[\\ud800-\\udbff][\\udc00-\\udfff]",er="(?:"+Jn+"|"+_n+")"+"?",tr="[\\ufe0e\\ufe0f]?",nr=tr+er+("(?:\\u200d(?:"+[Xn,Kn,Zn].join("|")+")"+tr+er+")*"),rr="(?:"+[Xn+Jn+"?",Jn,Kn,Zn,Gn].join("|")+")",ir=RegExp(_n+"(?="+_n+")|"+rr+nr,"g");function or(e){return Yn(e)?function(e){for(var t=ir.lastIndex=0;ir.test(e);)++t;return t}(e):jn(e)}function ar(e){if(null==e)return 0;if(ht(e))return"string"==typeof(t=e)||!v(t)&&D(t)&&"[object String]"==F(t)?or(e):e.length;var t,n=Kt(e);return"[object Map]"==n||"[object Set]"==n?e.size:dt(e).length}function sr(e,t=!1,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(Sn(e))return i("invalid v");let o="";try{o=t?JSON.stringify(e,null,2):JSON.stringify(e)}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o}function lr(e,t=null,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:[];if(!Tn(e))return i("invalid ltdt");if(Tn(t)||(t=zn(e)),0===ar(t))return i("invalid keys, can not extract any key from ltdt");let o=!1;if(An(e,function(e){Se(e)||(o=!0)}),o)return i("invalid ltdt, every element must be an effective object");let a=be(n,"empty",""),s=[];return An(e,function(e){let n=wn(t,function(t){return Te(e,t)?Ie(e[t])?e[t]?"true":"false":ke(e[t])||Me(e[t])?e[t]:sr(e[t]):a});s.push(n)}),r?{state:"success",msg:s}:s}function cr(e,t=[],n={},r={}){let i=be(r,"returnWithStateAndMsg",null);Ie(i)||(i=!1);let o=e=>i?{state:"error",msg:e}:[];if(!Tn(e))return o("invalid ltdt");Tn(t)||(t=zn(e)),Se(n)||(n={},An(t,e=>{n[e]=e}));let a=!1;if(An(e,function(e){Se(e)||(a=!0)}),a)return o("invalid ltdt, every element must be an effective object");let s=wn(t,function(e){return be(n,e)}),l=lr(e,t,{returnWithStateAndMsg:!0});if("error"===l.state)return o(`ltdtkeys2mat: ${l.msg}`);let c=En([s],l.msg);return i?{state:"success",msg:c}:c}function ur(e){if(!Be(e))return{error:"data is not an array"};let t=null;try{mn(e,Se)&&(e=cr(e)),t={rows:e}}catch(e){return{error:e}}return t}function fr(e){if(!Fe(e))return!1;let n="YYYY-MM";return e===t(e,n).format(n)}var dr=/\s/;var hr=/^\s+/;function pr(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&dr.test(e.charAt(t)););return t}(e)+1).replace(hr,""):e}var gr=/^[-+]0x[0-9a-f]+$/i,mr=/^0b[01]+$/i,yr=/^0o[0-7]+$/i,vr=parseInt;function Ar(e){if("number"==typeof e)return e;if(N(e))return NaN;if(L(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=L(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=pr(e);var n=mr.test(e);return n||yr.test(e)?vr(e.slice(2),n?2:8):gr.test(e)?NaN:+e}var br=1/0;function wr(e){return e?(e=Ar(e))===br||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Ir(e){var t=wr(e),n=t%1;return t==t?n?t-n:t:0}function xr(e){if(!Me(e))return 0;return wr(e)}function Cr(e,t={}){let n=be(t,"useLimitSafe",null);return Ie(n)||(n=!1),!!Me(e)&&(e=xr(e),n?Number.isSafeInteger(e):"number"==typeof(r=e)&&r==Ir(r));var r}var Br="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sr={exports:{}};var kr,Fr={exports:{}};function Dr(){return kr||(kr=1,function(e){var t;e.exports=(t=t||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==Br&&Br.crypto&&(n=Br.crypto),!n)try{n=require("crypto")}catch(e){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},a=o.lib={},s=a.Base={extend:function(e){var t=i(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)}},l=a.WordArray=s.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new l.init(t,e)}}),c=o.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},f=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},d=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*c,o);if(c){for(var f=0;f<c;f+=a)this._doProcessBlock(i,f);n=i.splice(0,c),r.sigBytes-=u}return new l.init(n,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=h.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.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,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}});var p=o.algo={};return o}(Math),t)}(Fr)),Fr.exports}var Nr={exports:{}};!function(e){var t;e.exports=(t=Dr(),function(){var e=t,n=e.lib.WordArray;function r(e,t,r){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return n.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return r(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64)}(Nr);var Mr,Tr=Nr.exports,Qr=Er(Tr),Lr={exports:{}};function Rr(){return Mr||(Mr=1,function(e){var t;e.exports=(t=Dr(),function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],h=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],v=e[t+7],A=e[t+8],b=e[t+9],w=e[t+10],I=e[t+11],x=e[t+12],C=e[t+13],B=e[t+14],E=e[t+15],S=o[0],k=o[1],F=o[2],D=o[3];S=c(S,k,F,D,a,7,s[0]),D=c(D,S,k,F,l,12,s[1]),F=c(F,D,S,k,h,17,s[2]),k=c(k,F,D,S,p,22,s[3]),S=c(S,k,F,D,g,7,s[4]),D=c(D,S,k,F,m,12,s[5]),F=c(F,D,S,k,y,17,s[6]),k=c(k,F,D,S,v,22,s[7]),S=c(S,k,F,D,A,7,s[8]),D=c(D,S,k,F,b,12,s[9]),F=c(F,D,S,k,w,17,s[10]),k=c(k,F,D,S,I,22,s[11]),S=c(S,k,F,D,x,7,s[12]),D=c(D,S,k,F,C,12,s[13]),F=c(F,D,S,k,B,17,s[14]),S=u(S,k=c(k,F,D,S,E,22,s[15]),F,D,l,5,s[16]),D=u(D,S,k,F,y,9,s[17]),F=u(F,D,S,k,I,14,s[18]),k=u(k,F,D,S,a,20,s[19]),S=u(S,k,F,D,m,5,s[20]),D=u(D,S,k,F,w,9,s[21]),F=u(F,D,S,k,E,14,s[22]),k=u(k,F,D,S,g,20,s[23]),S=u(S,k,F,D,b,5,s[24]),D=u(D,S,k,F,B,9,s[25]),F=u(F,D,S,k,p,14,s[26]),k=u(k,F,D,S,A,20,s[27]),S=u(S,k,F,D,C,5,s[28]),D=u(D,S,k,F,h,9,s[29]),F=u(F,D,S,k,v,14,s[30]),S=f(S,k=u(k,F,D,S,x,20,s[31]),F,D,m,4,s[32]),D=f(D,S,k,F,A,11,s[33]),F=f(F,D,S,k,I,16,s[34]),k=f(k,F,D,S,B,23,s[35]),S=f(S,k,F,D,l,4,s[36]),D=f(D,S,k,F,g,11,s[37]),F=f(F,D,S,k,v,16,s[38]),k=f(k,F,D,S,w,23,s[39]),S=f(S,k,F,D,C,4,s[40]),D=f(D,S,k,F,a,11,s[41]),F=f(F,D,S,k,p,16,s[42]),k=f(k,F,D,S,y,23,s[43]),S=f(S,k,F,D,b,4,s[44]),D=f(D,S,k,F,x,11,s[45]),F=f(F,D,S,k,E,16,s[46]),S=d(S,k=f(k,F,D,S,h,23,s[47]),F,D,a,6,s[48]),D=d(D,S,k,F,v,10,s[49]),F=d(F,D,S,k,B,15,s[50]),k=d(k,F,D,S,m,21,s[51]),S=d(S,k,F,D,x,6,s[52]),D=d(D,S,k,F,p,10,s[53]),F=d(F,D,S,k,w,15,s[54]),k=d(k,F,D,S,l,21,s[55]),S=d(S,k,F,D,A,6,s[56]),D=d(D,S,k,F,E,10,s[57]),F=d(F,D,S,k,y,15,s[58]),k=d(k,F,D,S,C,21,s[59]),S=d(S,k,F,D,g,6,s[60]),D=d(D,S,k,F,I,10,s[61]),F=d(F,D,S,k,h,15,s[62]),k=d(k,F,D,S,b,21,s[63]),o[0]=o[0]+S|0,o[1]=o[1]+k|0,o[2]=o[2]+F|0,o[3]=o[3]+D|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),t.MD5)}(Lr)),Lr.exports}var Ur={exports:{}},Hr={exports:{}};!function(e){var t;e.exports=(t=Dr(),function(){var e=t,n=e.lib,r=n.WordArray,i=n.Hasher,o=e.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var f=(r<<5|r>>>27)+l+a[c];f+=c<20?1518500249+(i&o|~i&s):c<40?1859775393+(i^o^s):c<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,l=s,s=o,o=i<<30|i>>>2,i=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=i._createHelper(s),e.HmacSHA1=i._createHmacHelper(s)}(),t.SHA1)}(Hr);var qr,Or,Pr=Hr.exports,$r=Er(Pr),zr={exports:{}};function jr(){return Or||(Or=1,function(e){var t;e.exports=(t=Dr(),qr||(qr=1,function(e){var t;e.exports=(t=Dr(),void function(){var e=t,n=e.lib.Base,r=e.enc.Utf8;e.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;o.sigBytes=a.sigBytes=i,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,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}())}(zr)),function(){var e=t,n=e.lib,r=n.Base,i=n.WordArray,o=e.algo,a=o.MD5,s=o.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,o=r.hasher.create(),a=i.create(),s=a.words,l=r.keySize,c=r.iterations;s.length<l;){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(var u=1;u<c;u++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=4*l,a}});e.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),t.EvpKDF)}(Ur)),Ur.exports}var Vr,Yr={exports:{}};!function(e){var t;e.exports=(t=Dr(),Rr(),jr(),Vr||(Vr=1,function(e){var t;e.exports=(t=Dr(),jr(),void(t.lib.Cipher||function(e){var n=t,r=n.lib,i=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var l=s.Base64,c=n.algo.EvpKDF,u=r.Cipher=a.extend({cfg:i.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,n){this.cfg=this.cfg.extend(n),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?A:y}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()});r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=n.mode={},d=r.BlockCipherMode=i.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}}),h=f.CBC=function(){var t=d.extend();function n(t,n,r){var i,o=this._iv;o?(i=o,this._iv=e):i=this._prevBlock;for(var a=0;a<r;a++)t[n+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=o}}),t}(),p=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(i);var l=o.create(a,r);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:h,padding:p}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.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 g=r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),m=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},y=r.SerializableCipher=i.extend({cfg:i.extend({format:m}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return g.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,i){if(r||(r=o.random(8)),i)a=c.create({keySize:t+n,hasher:i}).compute(e,r);else var a=c.create({keySize:t+n}).compute(e,r);var s=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,g.create({key:a,iv:s,salt:r})}},A=r.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:v}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=y.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=i.iv,y.decrypt.call(this,e,t,i.key,r)}})}()))}(Yr)),function(){var e=t,n=e.lib.BlockCipher,r=e.algo,i=[],o=[],a=[],s=[],l=[],c=[],u=[],f=[],d=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,o[p]=n;var g=e[n],m=e[g],y=e[m],v=257*e[p]^16843008*p;a[n]=v<<24|v>>>8,s[n]=v<<16|v>>>16,l[n]=v<<8|v>>>24,c[n]=v,v=16843009*y^65537*m^257*g^16843008*n,u[p]=v<<24|v>>>8,f[p]=v<<16|v>>>16,d[p]=v<<8|v>>>24,h[p]=v,n?(n=g^e[e[e[y^g]]],r^=e[e[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a<r;a++)a<n?o[a]=t[a]:(c=o[a-1],a%n?n>6&&a%n==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=p[a/n|0]<<24),o[a]=o[a-n]^c);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(a=r-l,l%4)var c=o[a];else c=o[a-4];s[l]=l<4||a<=4?c:u[i[c>>>24]]^f[i[c>>>16&255]]^d[i[c>>>8&255]]^h[i[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,f,d,h,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],f=e[t+2]^n[2],d=e[t+3]^n[3],h=4,p=1;p<l;p++){var g=r[c>>>24]^i[u>>>16&255]^o[f>>>8&255]^a[255&d]^n[h++],m=r[u>>>24]^i[f>>>16&255]^o[d>>>8&255]^a[255&c]^n[h++],y=r[f>>>24]^i[d>>>16&255]^o[c>>>8&255]^a[255&u]^n[h++],v=r[d>>>24]^i[c>>>16&255]^o[u>>>8&255]^a[255&f]^n[h++];c=g,u=m,f=y,d=v}g=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^n[h++],m=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^n[h++],y=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[h++],v=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^n[h++],e[t]=g,e[t+1]=m,e[t+2]=y,e[t+3]=v},keySize:8});e.AES=n._createHelper(g)}(),t.AES)}(Sr);var Wr=Er(Sr.exports),Gr={exports:{}};!function(e){e.exports=Dr().enc.Utf8}(Gr);var Jr=Er(Gr.exports),_r={exports:{}};!function(e){e.exports=Dr().enc.Hex}(_r);var Xr=Er(_r.exports);function Kr(e,t,n=!1,r={}){let i=be(r,"returnWithStateAndMsg",null);Ie(i)||(i=!1);let o=e=>i?{state:"error",msg:e}:"";if(!Fe(e))return o("invalid str");if(!Fe(t))return o("invalid key");Ie(n)||(n=!1);let a="";try{if(n){a=Wr.decrypt(e,t).toString(Jr)}else{let n=Xr.parse(e).toString(Qr);a=Wr.decrypt(n,t).toString(Jr)}}catch(e){return o(e.toString())}return""===a?o("can not decrypt str with key, or str is not a valid cipher text"):i?{state:"success",msg:a}:a}var Zr=function(){try{var e=J(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ei=Zr;function ti(e,t,n){"__proto__"==t&&ei?ei(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var ni=Object.prototype.hasOwnProperty;function ri(e,t,n){var r=e[t];ni.call(e,t)&&ee(r,n)&&(void 0!==n||t in e)||ti(e,t,n)}function ii(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?ti(n,s,l):ri(n,s,l)}return n}var oi=Object.prototype.hasOwnProperty;function ai(e){if(!L(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=lt(e),n=[];for(var r in e)("constructor"!=r||!t&&oi.call(e,r))&&n.push(r);return n}function si(e){return ht(e)?at(e,!0):ai(e)}var li="object"==typeof e&&e&&!e.nodeType&&e,ci=li&&"object"==typeof module&&module&&!module.nodeType&&module,ui=ci&&ci.exports===li?w.Buffer:void 0,fi=ui?ui.allocUnsafe:void 0;function di(e,t){if(t)return e.slice();var n=e.length,r=fi?fi(n):new e.constructor(n);return e.copy(r),r}var hi=ct(Object.getPrototypeOf,Object),pi=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)kt(t,Qt(e)),e=hi(e);return t}:Nt;function gi(e){return Ft(e,si,pi)}var mi=Object.prototype.hasOwnProperty;function yi(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}var vi=/\w*$/;var Ai=I?I.prototype:void 0,bi=Ai?Ai.valueOf:void 0;function wi(e,t){var n=t?yi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ii(e,t,n){var r,i,o,a=e.constructor;switch(t){case"[object ArrayBuffer]":return yi(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var n=t?yi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);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 wi(e,n);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(o=new(i=e).constructor(i.source,vi.exec(i))).lastIndex=i.lastIndex,o;case"[object Symbol]":return r=e,bi?Object(bi.call(r)):{}}}var xi=Object.create,Ci=function(){function e(){}return function(t){if(!L(t))return{};if(xi)return xi(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Bi(e){return"function"!=typeof e.constructor||lt(e)?{}:Ci(hi(e))}var Ei=nt&&nt.isMap,Si=Ei?Ke(Ei):function(e){return D(e)&&"[object Map]"==Kt(e)};var ki=nt&&nt.isSet,Fi=ki?Ke(ki):function(e){return D(e)&&"[object Set]"==Kt(e)},Di="[object Arguments]",Ni="[object Function]",Mi="[object Object]",Ti={};function Qi(e,t,n,r,i,o){var a,s=1&t,l=2&t,c=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!L(e))return e;var u=v(e);if(u){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&mi.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return Bn(e,a)}else{var f=Kt(e),d=f==Ni||"[object GeneratorFunction]"==f;if(We(e))return di(e,s);if(f==Mi||f==Di||d&&!i){if(a=l||d?{}:Bi(e),!s)return l?function(e,t){return ii(e,pi(e),t)}(e,function(e,t){return e&&ii(t,si(t),e)}(a,e)):function(e,t){return ii(e,Qt(e),t)}(e,function(e,t){return e&&ii(t,pt(t),e)}(a,e))}else{if(!Ti[f])return i?e:{};a=Ii(e,f,s)}}o||(o=new vt);var h=o.get(e);if(h)return h;o.set(e,a),Fi(e)?e.forEach(function(r){a.add(Qi(r,t,n,r,e,o))}):Si(e)&&e.forEach(function(r,i){a.set(i,Qi(r,t,n,i,e,o))});var p=u?void 0:(c?l?gi:Lt:l?si:pt)(e);return yn(p||e,function(r,i){p&&(r=e[i=r]),ri(a,i,Qi(r,t,n,i,e,o))}),a}Ti[Di]=Ti["[object Array]"]=Ti["[object ArrayBuffer]"]=Ti["[object DataView]"]=Ti["[object Boolean]"]=Ti["[object Date]"]=Ti["[object Float32Array]"]=Ti["[object Float64Array]"]=Ti["[object Int8Array]"]=Ti["[object Int16Array]"]=Ti["[object Int32Array]"]=Ti["[object Map]"]=Ti["[object Number]"]=Ti[Mi]=Ti["[object RegExp]"]=Ti["[object Set]"]=Ti["[object String]"]=Ti["[object Symbol]"]=Ti["[object Uint8Array]"]=Ti["[object Uint8ClampedArray]"]=Ti["[object Uint16Array]"]=Ti["[object Uint32Array]"]=!0,Ti["[object Error]"]=Ti[Ni]=Ti["[object WeakMap]"]=!1;function Li(e){return Qi(e,5)}let Ri=2147483647;var Ui={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,o),!0;case 6:return u.fn.call(u.context,t,r,i,o,a),!0}for(c=1,l=new Array(f-1);c<f;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var d,h=u.length;for(c=0;c<h;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),f){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,i);break;default:if(!l)for(d=1,l=new Array(f-1);d<f;d++)l[d-1]=arguments[d];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(Ui);var Hi=Er(Ui.exports);function qi(){return new Hi}function Oi(e){let t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}function Pi(e,t,n=[],r={}){let i=r.funSettle,o=r.tag||"evem",a=(t,...n)=>e.emit(t,...n);Oi(r.funEmit)&&(a=r.funEmit);try{return a(t,...n)}catch(r){if(Oi(i))try{i(r)}catch(e){}try{"error"!==t&&e.listenerCount("error")>0?a("error",{fun:"listener",name:t,msg:r,args:n}):console.error(`[wsemi ${o}] listener of '${String(t)}' threw:`,r)}catch(e){try{console.error(`[wsemi ${o}] listener of '${String(t)}' threw, and reporting it also threw:`,e,r)}catch(e){}}return!1}}var $i=w.isFinite,zi=Math.min;function ji(e){var t=Math[e];return function(e,n){if(e=Ar(e),(n=null==n?0:zi(Ir(n),292))&&$i(e)){var r=(me(e)+"e").split("e");return+((r=(me(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Vi=ji("round");function Yi(e,t={}){let n=be(t,"useClampSafe",null);Ie(n)||(n=!1);let r=be(t,"useLimitSafe",null);Ie(r)||(r=!1);let i=be(t,"returnWithStateAndMsg",null);Ie(i)||(i=!1);let o=e=>i?{state:"success",msg:e}:e,a=e=>{if(i)return{state:"error",msg:e};throw new Error(e)};if(!Me(e))return o(0);let s=null;try{e=xr(e),s=Vi(e),n&&(s>Number.MAX_SAFE_INTEGER?s=Number.MAX_SAFE_INTEGER:s<Number.MIN_SAFE_INTEGER&&(s=Number.MIN_SAFE_INTEGER))}catch(e){return a(e.toString())}return r&&!Number.isSafeInteger(Number(s))?a(`v[${e}] is not a safe integer`):("0"===String(s)&&(s=0),o(s))}function Wi(e,t={}){if(!Cr(e,t))return!1;return Yi(e)>0}function Gi(e,t){return function(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}(e||[],t||[],ri)}function Ji(e,t){if(!Be(e))return[];if(!Be(t))return[];if(ar(e)!==ar(t))return[];let n=[];return An(e,function(r,i){let o=null,a=Me(e[i]),s=Me(t[i]);(a||s)&&(o=0),a&&(o+=xr(e[i])),s&&(o+=xr(t[i])),n.push(o)}),n}var _i=Math.ceil,Xi=Math.max;var Ki=function(e){return function(t,n,r){return r&&"number"!=typeof r&&gn(t,n,r)&&(n=r=void 0),t=wr(t),void 0===n?(n=t,t=0):n=wr(n),function(e,t,n,r){for(var i=-1,o=Xi(_i((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}(t,n,r=void 0===r?t<n?1:-1:wr(r),e)}}(),Zi=Ki;function eo(e,t){for(var n=-1,r=t.length,i=Array(r),o=null==e;++n<r;)i[n]=o?void 0:be(e,t[n]);return i}function to(e){return(null==e?0:e.length)?Cn(e,1):[]}var no=Math.max;function ro(e,t,n){return t=no(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=no(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}function io(e){return function(){return e}}var oo=ei?function(e,t){return ei(e,"toString",{configurable:!0,enumerable:!1,value:io(t),writable:!0})}:fn,ao=oo,so=Date.now;var lo,co,uo,fo=(lo=ao,co=0,uo=0,function(){var e=so(),t=16-(e-uo);if(uo=e,t>0){if(++co>=800)return arguments[0]}else co=0;return lo.apply(void 0,arguments)}),ho=fo;function po(e){return ho(ro(e,void 0,to),e+"")}var go=po(eo);function mo(e,t={}){if(!Cr(e,t))return!1;return Yi(e)>=0}function yo(e,t,n=null){if(!Tn(e))return[];if(!mo(t))return[];let r;if(t=Yi(t),Mn(n)){if(t>=e.length)return[];r=go(e,t)}else{if(!mo(n))return[];if(n=Yi(n),t>=e.length||n>=e.length)return[];let i=Zi(t,n+1);r=go(e,i)}return r}var vo=Array.prototype.join;function Ao(e,t){return null==e?"":vo.call(e,t)}function bo(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}function wo(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:bo(e,t,n)}var Io=nt&&nt.isRegExp,xo=Io?Ke(Io):function(e){return D(e)&&"[object RegExp]"==F(e)};var Co="\\ud800-\\udfff",Bo="["+Co+"]",Eo="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",So="\\ud83c[\\udffb-\\udfff]",ko="[^"+Co+"]",Fo="(?:\\ud83c[\\udde6-\\uddff]){2}",Do="[\\ud800-\\udbff][\\udc00-\\udfff]",No="(?:"+Eo+"|"+So+")"+"?",Mo="[\\ufe0e\\ufe0f]?",To=Mo+No+("(?:\\u200d(?:"+[ko,Fo,Do].join("|")+")"+Mo+No+")*"),Qo="(?:"+[ko+Eo+"?",Eo,Fo,Do,Bo].join("|")+")",Lo=RegExp(So+"(?="+So+")|"+Qo+To,"g");function Ro(e){return Yn(e)?function(e){return e.match(Lo)||[]}(e):function(e){return e.split("")}(e)}function Uo(e,t,n){return n&&"number"!=typeof n&&gn(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=me(e))&&("string"==typeof t||null!=t&&!xo(t))&&!(t=ge(t))&&Yn(e)?wo(Ro(e),0,n):e.split(t,n):[]}function Ho(e,t,n){var r=null==e?0:e.length;return r?bo(e,0,(t=r-(t=n||void 0===t?1:Ir(t)))<0?0:t):[]}let qo=class{diff(e,t,n={}){let r;"function"==typeof n?(r=n,n={}):"callback"in n&&(r=n.callback);const i=this.castInput(e,n),o=this.castInput(t,n),a=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(o,n));return this.diffWithOptionsObj(a,s,n,r)}diffWithOptionsObj(e,t,n,r){var i;const o=e=>(e=this.postProcess(e,n),r?void setTimeout(function(){r(e)},0):e),a=t.length,s=e.length;let l=1,c=a+s;null!=n.maxEditLength&&(c=Math.min(c,n.maxEditLength));const u=null!==(i=n.timeout)&&void 0!==i?i:1/0,f=Date.now()+u,d=[{oldPos:-1,lastComponent:void 0}];let h=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=s&&h+1>=a)return o(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,g=1/0;const m=()=>{for(let r=Math.max(p,-l);r<=Math.min(g,l);r+=2){let i;const l=d[r-1],c=d[r+1];l&&(d[r-1]=void 0);let u=!1;if(c){const e=c.oldPos-r;u=c&&0<=e&&e<a}const f=l&&l.oldPos+1<s;if(u||f){if(i=!f||u&&l.oldPos<c.oldPos?this.addToPath(c,!0,!1,0,n):this.addToPath(l,!1,!0,1,n),h=this.extractCommon(i,t,e,r,n),i.oldPos+1>=s&&h+1>=a)return o(this.buildValues(i.lastComponent,t,e))||!0;d[r]=i,i.oldPos+1>=s&&(g=Math.min(g,r-1)),h+1>=a&&(p=Math.max(p,r+1))}else d[r]=void 0}l++};if(r)!function e(){setTimeout(function(){if(l>c||Date.now()>f)return r(void 0);m()||e()},0)}();else for(;l<=c&&Date.now()<=f;){const e=m();if(e)return e}}addToPath(e,t,n,r,i){const o=e.lastComponent;return o&&!i.oneChangePerToken&&o.added===t&&o.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:o.count+1,added:t,removed:n,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:o}}}extractCommon(e,t,n,r,i){const o=t.length,a=n.length;let s=e.oldPos,l=s-r,c=0;for(;l+1<o&&s+1<a&&this.equals(n[s+1],t[l+1],i);)l++,s++,c++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return c&&!i.oneChangePerToken&&(e.lastComponent={count:c,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,l}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){const r=[];let i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();const o=r.length;let a=0,s=0,l=0;for(;a<o;a++){const e=r[a];if(e.removed)e.value=this.join(n.slice(l,l+e.count)),l+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){const r=n[l+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(l+=e.count)}}return r}};const Oo=new class extends qo{constructor(){super(...arguments),this.tokenize=$o}equals(e,t,n){return n.ignoreWhitespace?(n.newlineIsToken&&e.includes("\n")||(e=e.trim()),n.newlineIsToken&&t.includes("\n")||(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith("\n")&&(e=e.slice(0,-1)),t.endsWith("\n")&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function Po(e,t,n){return Oo.diff(e,t,n)}function $o(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));const n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){const i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function zo(e){if(!function(e){for(let t=0;t<e.length;t++)if(e[t]<" "||e[t]>"~"||'"'===e[t]||"\\"===e[t])return!0;return!1}(e))return e;let t='"';const n=(new TextEncoder).encode(e);let r=0;for(;r<n.length;){const e=n[r];t+=7===e?"\\a":8===e?"\\b":9===e?"\\t":10===e?"\\n":11===e?"\\v":12===e?"\\f":13===e?"\\r":34===e?'\\"':92===e?"\\\\":e>=32&&e<=126?String.fromCharCode(e):"\\"+e.toString(8).padStart(3,"0"),r++}return t+='"',t}const jo={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Vo(e,t,n,r,i,o,a){let s;s=a?"function"==typeof a?{callback:a}:a:{},void 0===s.context&&(s.context=4);const l=s.context;if(s.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(!s.callback)return c(Po(n,r,s));{const{callback:e}=s;Po(n,r,Object.assign(Object.assign({},s),{callback:t=>{const n=c(t);e(n)}}))}function c(n){if(!n)return;function r(e){return e.map(function(e){return" "+e})}n.push({value:"",lines:[]});const a=[];let s=0,c=0,u=[],f=1,d=1;for(let e=0;e<n.length;e++){const t=n[e],i=t.lines||Go(t.value);if(t.lines=i,t.added||t.removed){if(!s){const t=n[e-1];s=f,c=d,t&&(u=l>0?r(t.lines.slice(-l)):[],s-=u.length,c-=u.length)}for(const e of i)u.push((t.added?"+":"-")+e);t.added?d+=i.length:f+=i.length}else{if(s)if(i.length<=2*l&&e<n.length-2)for(const e of r(i))u.push(e);else{const e=Math.min(i.length,l);for(const t of r(i.slice(0,e)))u.push(t);const t={oldStart:s,oldLines:f-s+e,newStart:c,newLines:d-c+e,lines:u};a.push(t),s=0,c=0,u=[]}f+=i.length,d+=i.length}}for(const e of a)for(let t=0;t<e.lines.length;t++)e.lines[t].endsWith("\n")?e.lines[t]=e.lines[t].slice(0,-1):(e.lines.splice(t+1,0,"\"),t++);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:a}}}function Yo(e,t){var n,r,i,o,a,s;if(t||(t=jo),Array.isArray(e)){if(e.length>1&&!t.includeFileHeaders&&!e.every(e=>e.isGit))throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map(e=>Yo(e,t)).join("\n")}const l=[];if(e.isGit){if(t=jo,!e.oldFileName)throw new Error("oldFileName must be specified for Git patches");if(!e.newFileName)throw new Error("newFileName must be specified for Git patches");let c=e.oldFileName,u=e.newFileName;e.isCreate&&"/dev/null"===c?c=u.replace(/^b\//,"a/"):e.isDelete&&"/dev/null"===u&&(u=c.replace(/^a\//,"b/")),l.push("diff --git "+zo(c)+" "+zo(u)),e.isDelete&&l.push("deleted file mode "+(null!==(n=e.oldMode)&&void 0!==n?n:"100644")),e.isCreate&&l.push("new file mode "+(null!==(r=e.newMode)&&void 0!==r?r:"100644")),e.oldMode&&e.newMode&&!e.isDelete&&!e.isCreate&&(l.push("old mode "+e.oldMode),l.push("new mode "+e.newMode)),e.isRename&&(l.push("rename from "+zo((null!==(i=e.oldFileName)&&void 0!==i?i:"").replace(/^a\//,""))),l.push("rename to "+zo((null!==(o=e.newFileName)&&void 0!==o?o:"").replace(/^b\//,"")))),e.isCopy&&(l.push("copy from "+zo((null!==(a=e.oldFileName)&&void 0!==a?a:"").replace(/^a\//,""))),l.push("copy to "+zo((null!==(s=e.newFileName)&&void 0!==s?s:"").replace(/^b\//,""))))}else t.includeIndex&&e.oldFileName==e.newFileName&&void 0!==e.oldFileName&&l.push("Index: "+e.oldFileName),t.includeUnderline&&l.push("===================================================================");const c=e.hunks.length>0;!t.includeFileHeaders||void 0===e.oldFileName||void 0===e.newFileName||e.isGit&&!c||(l.push("--- "+zo(e.oldFileName)+(e.oldHeader?"\t"+e.oldHeader:"")),l.push("+++ "+zo(e.newFileName)+(e.newHeader?"\t"+e.newHeader:"")));for(let t=0;t<e.hunks.length;t++){const n=e.hunks[t],r=0===n.oldLines?n.oldStart-1:n.oldStart,i=0===n.newLines?n.newStart-1:n.newStart;l.push("@@ -"+r+","+n.oldLines+" +"+i+","+n.newLines+" @@");for(const e of n.lines)l.push(e)}return l.join("\n")+"\n"}function Wo(e,t,n,r,i,o,a){if("function"==typeof a&&(a={callback:a}),!(null==a?void 0:a.callback)){const s=Vo(e,t,n,r,i,o,a);if(!s)return;return Yo(s,null==a?void 0:a.headerOptions)}{const{callback:s}=a;Vo(e,t,n,r,i,o,Object.assign(Object.assign({},a),{callback:e=>{s(e?Yo(e,a.headerOptions):void 0)}}))}}function Go(e){const t=e.endsWith("\n"),n=e.split("\n").map(e=>e+"\n");return t?n.pop():n.push(n.pop().slice(0,-1)),n}function Jo(e,t,n){return e&&e.length?bo(e,0,(t=n||void 0===t?1:Ir(t))<0?0:t):[]}function _o(e,t,n={}){if(!ke(e))return{};if(!ke(t))return{};if(""===e&&""===t)return{};let r=be(n,"useNormNewline");Ie(r)||(r=!0),r&&(e=(e=e.replaceAll("\r\n","\n")).replaceAll("\r","\n"),t=(t=t.replaceAll("\r\n","\n")).replaceAll("\r","\n"));let i,o=Po(e,t),a=ar(o),s=[],l=[];for(i=-1;i++,!(i>a-1);){let e=o[i],t=be(e,"count",0),n=be(e,"removed",!1),r=be(e,"added",!1),a=Uo(be(e,"value",""),"\n");a=Jo(a,t);for(let e=1;e<=t;e++){let t=a[e-1];n||r?n&&!r?(s.push({p:"remove",v:t}),l.push({p:"empty",v:""})):!n&&r&&(s.push({p:"empty",v:""}),l.push({p:"add",v:t})):(s.push({p:"",v:t}),l.push({p:"",v:t}))}}let c=ar(s);for(i=-1;i++,!(i>c-1);){let e=be(s,i,null),t=be(l,i,null),n=be(e,"p",""),r=be(t,"p","");if("remove"===n&&"empty"===r){let e=0,t=i,n=-1;for(let t=i;t<=c-1;t++){let r=be(s,t,null),i=be(l,t,null),o=be(r,"p",""),a=be(i,"p","");if("remove"!==o||"empty"!==a)break;e++,n=t}if(e<=0)continue;let r=0,o=!1,a=-1;for(let t=i;t<=n+e;t++){let e=be(s,t,null),n=be(l,t,null),i=be(e,"p",""),c=be(n,"p","");if("empty"===i&&"add"===c)o||(a=t),o=!0,r++;else if(o)break}if(r<=0)continue;let u=Math.min(e,r);if(u>=1){for(let e=0;e<=u-1;e++){let n=t+e,r=a+e;s[n]={p:"modify",vo:be(s,`${n}.v`,""),vn:be(l,`${r}.v`,"")},l[n]=null,s[r]=null,l[r]=null}i+=u+1}}}let u=[];for(i=-1;i++,!(i>c-1);){let e=be(s,i,null),t=be(l,i,null),n=be(e,"p",""),r=be(t,"p",""),o=be(e,"v",""),a=be(t,"v","");if(null===e&&null===t)continue;let c="",f=o,d="";"modify"===n?(c="modify",f=e.vo,d=e.vn):"remove"===n&&"empty"===r?(c="remove",f=o,d=""):"empty"===n&&"add"===r&&(c="add",f=a,d=""),u.push({p:c,vo:f,vn:d})}return{diff:o,dfs:u}}let Xo="\n";function Ko(e,t){if(!Be(e))return{};if(!Be(t))return{};let n=wn(e,e=>`${e}${Xo}`);n=Ao(n,"");let r=wn(t,e=>`${e}${Xo}`);r=Ao(r,"");let i=_o(n,r,{eliminateEndLine:!0});return i.dfs=wn(i.dfs,(e,t)=>({p:e.p,k:t,vo:e.vo,vn:e.vn})),i}function Zo(e,t,n={}){if(!Be(e))return{};if(!Be(t))return{};if(0===ar(e)&&0===ar(t))return{};let r,i=be(n,"mode","");return"array"!==i&&"matrix"!==i&&(i="array"),"array"===i?r=Ko(e,t):"matrix"===i&&(r=function(e,t,n={}){if(!Be(e))return{};if(!Be(t))return{};let r=be(n,"dls","");Fe(r)||(r="⟋");let i=be(n,"dlq","");Fe(i)||(i="∶");let o=[];An(e,(t,n)=>{if(!Be(t))throw console.log("arrOld",e),console.log(n,t),new Error("arrOld is not a matrix");An(t,(e,t)=>{o.push(`${t}${i}${e}${r}`)}),o.push(Xo)}),o=Ao(o,"");let a=[];An(t,(e,n)=>{if(!Be(e))throw console.log("arrNew",t),console.log(n,e),new Error("arrNew is not a matrix");An(e,(e,t)=>{a.push(`${t}${i}${e}${r}`)}),a.push(Xo)}),a=Ao(a,"");let s=_o(o,a,{...n,eliminateEndLine:!0}),l=[];return An(s.dfs,e=>{let t=Uo(e.vo,r);if(t=Ho(t,1),"modify"===e.p){let n=Uo(e.vn,r);n=Ho(n,1);let i=Ko(t,n);e.dfs=i.dfs}let n=[];"modify"===e.p?An(e.dfs,e=>{n.push(e)}):An(t,t=>{n.push({p:e.p,vo:t,vn:""})}),n=wn(n,(e,t)=>{let n=be(Uo(e.vo,i),1,""),r=be(Uo(e.vn,i),1,"");return{p:e.p,k:t,vo:n,vn:r}}),l.push(n)}),{diff:s.diff,dfs:l}}(e,t,n)),r}function ea(e,t,n){if((e=me(e))&&(n||void 0===t))return pr(e);if(!e||!(t=ge(t)))return e;var r=Ro(e),i=Ro(t),o=function(e,t){for(var n=-1,r=e.length;++n<r&&Rn(t,e[n],0)>-1;);return n}(r,i),a=function(e,t){for(var n=e.length;n--&&Rn(t,e[n],0)>-1;);return n}(r,i)+1;return wo(r,o,a).join("")}function ta(e,t){if(!Fe(e))return[];if(!Fe(t))return[];return e.split(t)}function na(e,t){if(!Fe(e))return[];if(!Fe(t))return[];let n=ta(e,t);n=wn(n,ea);let r=[];return An(n,function(e){Fe(e)&&r.push(e)}),r}function ra(e,t){return Fe(e)&&mo(t)?0===(t=Yi(t))?"":e.substring(0,t):""}function ia(e,t){if(!Fe(e))return"";if(!mo(t))return"";if(0===(t=Yi(t)))return"";let n=e.length-t;return n<0&&(n=0),e.substring(n,n+t)}function oa(e,t){return Fe(e)&&mo(t)?0===(t=Yi(t))?e:ia(e,e.length-t):""}function aa(e,t){var n=[];return mt(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function sa(e,t){return(v(e)?Dt:aa)(e,pn(t))}function la(e){if(!Me(e))return!1;return xr(e)>0}function ca(e){return Tn(e)?e=wn(e=sa(e=Li(e),la),xr):[]}function ua(e,t){return on(e,t)}function fa(e){return"number"==typeof e||D(e)&&"[object Number]"==F(e)}function da(e,t){function n(e){return Be(e)?e:[e]}if(Mn(e))return!1;if(0===(e=n(e)).length)return!1;if(Mn(e))return!1;if(0===(t=n(t)).length)return!1;for(let n=0;n<e.length;n++)for(let r=0;r<t.length;r++)if(ua(e[n],t[r]))return!0;return!1}function ha(e,t,n={}){if(!Tn(e))return null;if(!Oi(t))return null;let r=be(n,"returnIndex");Ie(r)||(r=!1);let i=-1,o=null;for(let n=0;n<ar(e);n++){let r=t(o,e[n]);ua(o,r)||(o=r,i=n)}let a=null;return a=r?i:o,a}function pa(e,t){if(!Be(e))return[];if(!Be(t))return[];if(ar(e)!==ar(t))return[];let n=[];return An(e,function(r,i){let o=null,a=Me(e[i]),s=Me(t[i]);(a||s)&&(o=1),a&&(o*=xr(e[i])),s&&(o*=xr(t[i])),n.push(o)}),n}function ga(){if(ar(arguments)<2)return[];let e=arguments[0];for(let t=1;t<ar(arguments);t++){e=pa(e,arguments[t])}return e}function ma(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function ya(){if(ar(arguments)<2)return null;let e=ga(...arguments);return 0===ar(e)?null:(e=(t=e)&&t.length?ma(t,fn):0,e);var t}function va(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}var Aa=Array.prototype.splice;function ba(e,t){return e&&e.length&&t&&t.length?function(e,t,n,r){var i=r?va:Rn,o=-1,a=t.length,s=e;for(e===t&&(t=Bn(t)),n&&(s=de(e,Ke(n)));++o<a;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(s,u,l,r))>-1;)s!==e&&Aa.call(s,l,1),Aa.call(e,l,1);return e}(e,t):e}function wa(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Ia=Object.prototype.hasOwnProperty;function xa(e,t){var n=-1,r=(t=ye(t,e)).length;if(!r)return!0;for(;++n<r;){var i=ve(t[n]);if("__proto__"===i&&!Ia.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&n<r-1)return!1}var o=function(e,t){return t.length<2?e:Ae(e,bo(t,0,-1))}(e,t);return null==o||delete o[ve(wa(t))]}var Ca=Array.prototype.splice;function Ba(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=N(e),a=void 0!==t,s=null===t,l=t==t,c=N(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var Ea=po(function(e,t){var n=null==e?0:e.length,r=eo(e,t);return function(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Je(i)?Ca.call(e,i,1):xa(e,i)}}}(e,de(t,function(e){return Je(e,n)?+e:e}).sort(Ba)),r});var Sa=Array.prototype.reverse;function ka(e){return null==e?e:Sa.call(e)}function Fa(e,t,n){t=t.length?de(t,function(e){return v(e)?function(t){return Ae(t,1===e.length?e[0]:e)}:e}):[fn];var r=-1;return t=de(t,Ke(pn)),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(bn(e,function(e,n,i){return{criteria:de(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Ba(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Da(e,t){return ho(ro(e,t,fn),e+"")}var Na=Da(function(e,t){if(null==e)return[];var n=t.length;return n>1&&gn(e,t[0],t[1])?t=[]:n>2&&gn(t[0],t[1],t[2])&&(t=[t[0]]),Fa(e,Cn(t,1),[])});function Ma(e){return"[object BigInt]"===Object.prototype.toString.call(e)}function Ta(e){if(!(Fe(e)||Me(e)||N(e)||Ma(e)))return"";let t="";try{t=String(e)}catch(e){}try{t=e.toString()}catch(e){}return t}function Qa(e,t,n){var r=null==e?0:e.length;return r?bo(e,(t=n||void 0===t?1:Ir(t))<0?0:t,r):[]}function La(e,t){return Fe(e)&&mo(t)?0===(t=Yi(t))?e:ra(e,e.length-t):""}function Ra(e,t={}){let n=be(t,"excludeString");if(Ie(n)||(n=!1),!Fe(e))return"";let r=e=>e>="0"&&e<="9"||"."===e||"-"===e||"+"===e,i=ea(e);if(n){let e=i.split("");for(let t=0;t<e.length;t++)if(r(e[t])){i=oa(i,t),e=Qa(e,t);break}e=ka(e);for(let t=0;t<e.length;t++)if(r(e[t])){i=La(i,t);break}}return i}function Ua(e){let t=0,n=0,r=0,i=ar(e);An(e,e=>{Me(e)?t+=1:ke(e)?n+=1:Ee(e)&&(r+=1)});let o="";return t===i?o="num":n===i?o="str":r===i?o="obj":t+n===i?o="str":console.log("eles in array are non-homogeneous",e),o}function Ha(e,t,n={}){let r=[];if("num"!==t&&"str"!==t&&"files"!==t)throw new Error(`invalid type[${t}]`);if("num"===t)r=wn(e,(e,t)=>({key:t,payload:e,value:xr(e)}));else if("files"===t)r=wn(e,(e,t)=>({key:t,payload:e,value:Ta(e)}));else if("str"===t){let t=wn(e,e=>Ra(e,{excludeString:!0})),n=0;An(t,e=>{Me(e)&&n++});let i=n===ar(t);r=wn(e,(e,n)=>{let r=e;return i?(r=t[n],r=xr(r)):r=Ta(r),{key:n,payload:e,value:r}})}return r}function qa(e,t){let n=Na(e,"value");return wn(n,t?"key":"payload")}function Oa(e,t){let n=function(e,t){let n=Li(e);return n.sort((e,n)=>e[t].localeCompare(n[t],"standard",{numeric:!0})),n}(e,"value");return wn(n,t?"key":"payload")}function Pa(e,t={}){if(!Tn(e))return[];if(1===ar(e))return e;let n=be(t,"localeCompare");Ie(n)||(n=!1);let r=be(t,"returnIndex");Ie(r)||(r=!1);let i=be(t,"compareKey",null),o=null;o=n?Oa:qa;let a,s=Ua(e);if(""===s)return[];if("obj"===s){if(!Fe(i))return[];let s=wn(e,(e,t)=>be(e,i,"")),l=Ua(s);if("num"!==l&&"str"!==l)return[];{n&&(l="files");let i=o(Ha(s,l,t),!0);a=r?i:wn(i,t=>e[t])}}else if("num"===s||"str"===s){n&&(s="files"),a=o(Ha(e,s,t),r)}return a}function $a(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!Fe(e))return r("invalid b64");let i="";try{i=Qr.parse(e).toString(Jr)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function za(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:{};if(!Fe(e))return r("invalid v");let i={};try{i=JSON.parse(e)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}let ja=/[\t\n\f\r ]/g,Va=/^[A-Za-z0-9+/]*={0,2}$/,Ya=/=+$/;function Wa(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!ke(e))return r("invalid b64");let i=e.replace(ja,"");if(!Va.test(i))return r("invalid b64, contains characters outside the base64 alphabet or misplaced padding");let o=i.length-i.replace(Ya,"").length,a=(i.length-o)%4;if(0===o&&1===a)return r(`invalid b64, the last chunk has only 1 character[${i.length}]`);if(1===o&&3!==a)return r("invalid b64, malformed padding, 1 padding requires the last chunk to have 3 characters");if(2===o&&2!==a)return r("invalid b64, malformed padding, 2 paddings require the last chunk to have 2 characters");let s=null;try{let e=Qr.parse(i),t=e.words,n=e.sigBytes;s=new Uint8Array(n);for(let e=0;e<n;e++){let n=t[e>>>2]>>>24-e%4*8&255;s[e]=n}}catch(e){return r(e.toString())}return n?{state:"success",msg:s}:s}function Ga(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint16Array;if(!ke(e))return r("invalid b64");let i=null;try{let t=Wa(e,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`b642u8arr: ${t.msg}`);let n=t.msg;if(n.byteLength%2!=0)return r(`byteLength[${n.byteLength}] is not even, can not be restored to Uint16Array`);let o=0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n:new Uint8Array(n);i=new Uint16Array(o.buffer)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function Ja(e,t,n="anyone"){if(!Fe(e))return!1;if("anyone"!==n&&"all"!==n)return!1;if(ke(t)){if(!Fe(t))return!1;t=[t]}if(!Tn(t))return!1;let r=!1;if(An(t,function(e){Fe(e)||(r=!0)}),r)return!1;let i=0;return An(t,function(t){-1!==function(e,t){return e.indexOf(t)}(e,t)&&i++}),"anyone"===n?i>0:"all"===n&&i===t.length}function _a(){let e,t,n=new Promise(function(){e=arguments[0],t=arguments[1]});return n.resolve=e,n.reject=t,n}function Xa(e){let t=Object.prototype.toString.call(e);if("[object Blob]"===t||"[object File]"===t)return!0;try{if("undefined"!=typeof Blob&&e instanceof Blob)return!0}catch(e){}return!1}function Ka(){return"undefined"!=typeof window&&void 0!==window.document}function Za(e){if(!Xa(e))return Promise.reject("invalid bb");if(!Ka())return Promise.reject("no window");try{return function(e){return e.arrayBuffer()}(e)}catch(t){return function(e){let t=_a();try{let n=new FileReader;n.onload=function(){let e=n.result;t.resolve(e)},n.onerror=function(e){t.reject(e)},n.readAsArrayBuffer(e)}catch(e){t.reject(e)}return t}(e)}}function es(e){if(!Xa(e))return Promise.reject("invalid bb");if(!Ka())return Promise.reject("no window");let t=_a();try{let n=new FileReader;n.onload=function(){t.resolve(n.result)},n.onerror=function(e){t.reject(e)},n.readAsDataURL(e)}catch(e){t.reject(e)}return t}function ts(e){let t=_a();return Za(e).then(e=>{let n=new Uint8Array(e);t.resolve(n)}).catch(e=>{t.reject(e)}),t}function ns(e){if(!Be(e))return Promise.reject("invalid bbs");if(0===e.length)return Promise.resolve([]);let t=wn(e,function(e){return es(e)});return Promise.all(t)}function rs(e){if(!Be(e))return Promise.reject("invalid bbs");if(0===e.length)return Promise.resolve([]);let t=wn(e,function(e){return ts(e)});return Promise.all(t)}var is={exports:{}};
7
7
  /*! https://mths.be/he v1.2.0 by @mathias | MIT license */!function(e,t){!function(n){var r=t,i=e&&e.exports==r&&e,o="object"==typeof Br&&Br;o.global!==o&&o.window!==o||(n=o);var a=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[\x01-\x7F]/g,l=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,c=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,u={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr","ª":"ordf","á":"aacute","Á":"Aacute","à":"agrave","À":"Agrave","ă":"abreve","Ă":"Abreve","â":"acirc","Â":"Acirc","å":"aring","Å":"angst","ä":"auml","Ä":"Auml","ã":"atilde","Ã":"Atilde","ą":"aogon","Ą":"Aogon","ā":"amacr","Ā":"Amacr","æ":"aelig","Æ":"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf","ℬ":"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf","ℭ":"Cfr","𝒞":"Cscr","ℂ":"Copf","ć":"cacute","Ć":"Cacute","ĉ":"ccirc","Ĉ":"Ccirc","č":"ccaron","Č":"Ccaron","ċ":"cdot","Ċ":"Cdot","ç":"ccedil","Ç":"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf","ď":"dcaron","Ď":"Dcaron","đ":"dstrok","Đ":"Dstrok","ð":"eth","Ð":"ETH","ⅇ":"ee","ℯ":"escr","𝔢":"efr","𝕖":"eopf","ℰ":"Escr","𝔈":"Efr","𝔼":"Eopf","é":"eacute","É":"Eacute","è":"egrave","È":"Egrave","ê":"ecirc","Ê":"Ecirc","ě":"ecaron","Ě":"Ecaron","ë":"euml","Ë":"Euml","ė":"edot","Ė":"Edot","ę":"eogon","Ę":"Eogon","ē":"emacr","Ē":"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf","ℱ":"Fscr","ff":"fflig","ffi":"ffilig","ffl":"ffllig","fi":"filig",fj:"fjlig","fl":"fllig","ƒ":"fnof","ℊ":"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr","ǵ":"gacute","ğ":"gbreve","Ğ":"Gbreve","ĝ":"gcirc","Ĝ":"Gcirc","ġ":"gdot","Ġ":"Gdot","Ģ":"Gcedil","𝔥":"hfr","ℎ":"planckh","𝒽":"hscr","𝕙":"hopf","ℋ":"Hscr","ℌ":"Hfr","ℍ":"Hopf","ĥ":"hcirc","Ĥ":"Hcirc","ℏ":"hbar","ħ":"hstrok","Ħ":"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf","ℐ":"Iscr","ℑ":"Im","í":"iacute","Í":"Iacute","ì":"igrave","Ì":"Igrave","î":"icirc","Î":"Icirc","ï":"iuml","Ï":"Iuml","ĩ":"itilde","Ĩ":"Itilde","İ":"Idot","į":"iogon","Į":"Iogon","ī":"imacr","Ī":"Imacr","ij":"ijlig","IJ":"IJlig","ı":"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf","ĵ":"jcirc","Ĵ":"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr","ķ":"kcedil","Ķ":"Kcedil","𝔩":"lfr","𝓁":"lscr","ℓ":"ell","𝕝":"lopf","ℒ":"Lscr","𝔏":"Lfr","𝕃":"Lopf","ĺ":"lacute","Ĺ":"Lacute","ľ":"lcaron","Ľ":"Lcaron","ļ":"lcedil","Ļ":"Lcedil","ł":"lstrok","Ł":"Lstrok","ŀ":"lmidot","Ŀ":"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf","ℳ":"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr","ℕ":"Nopf","𝒩":"Nscr","𝔑":"Nfr","ń":"nacute","Ń":"Nacute","ň":"ncaron","Ň":"Ncaron","ñ":"ntilde","Ñ":"Ntilde","ņ":"ncedil","Ņ":"Ncedil","№":"numero","ŋ":"eng","Ŋ":"ENG","𝕠":"oopf","𝔬":"ofr","ℴ":"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf","º":"ordm","ó":"oacute","Ó":"Oacute","ò":"ograve","Ò":"Ograve","ô":"ocirc","Ô":"Ocirc","ö":"ouml","Ö":"Ouml","ő":"odblac","Ő":"Odblac","õ":"otilde","Õ":"Otilde","ø":"oslash","Ø":"Oslash","ō":"omacr","Ō":"Omacr","œ":"oelig","Œ":"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf","ℙ":"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr","ℚ":"Qopf","ĸ":"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr","ℛ":"Rscr","ℜ":"Re","ℝ":"Ropf","ŕ":"racute","Ŕ":"Racute","ř":"rcaron","Ř":"Rcaron","ŗ":"rcedil","Ŗ":"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS","ś":"sacute","Ś":"Sacute","ŝ":"scirc","Ŝ":"Scirc","š":"scaron","Š":"Scaron","ş":"scedil","Ş":"Scedil","ß":"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf","ť":"tcaron","Ť":"Tcaron","ţ":"tcedil","Ţ":"Tcedil","™":"trade","ŧ":"tstrok","Ŧ":"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr","ú":"uacute","Ú":"Uacute","ù":"ugrave","Ù":"Ugrave","ŭ":"ubreve","Ŭ":"Ubreve","û":"ucirc","Û":"Ucirc","ů":"uring","Ů":"Uring","ü":"uuml","Ü":"Uuml","ű":"udblac","Ű":"Udblac","ũ":"utilde","Ũ":"Utilde","ų":"uogon","Ų":"Uogon","ū":"umacr","Ū":"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr","ŵ":"wcirc","Ŵ":"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf","ý":"yacute","Ý":"Yacute","ŷ":"ycirc","Ŷ":"Ycirc","ÿ":"yuml","Ÿ":"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf","ℨ":"Zfr","ℤ":"Zopf","𝒵":"Zscr","ź":"zacute","Ź":"Zacute","ž":"zcaron","Ž":"Zcaron","ż":"zdot","Ż":"Zdot","Ƶ":"imped","þ":"thorn","Þ":"THORN","ʼn":"napos","α":"alpha","Α":"Alpha","β":"beta","Β":"Beta","γ":"gamma","Γ":"Gamma","δ":"delta","Δ":"Delta","ε":"epsi","ϵ":"epsiv","Ε":"Epsilon","ϝ":"gammad","Ϝ":"Gammad","ζ":"zeta","Ζ":"Zeta","η":"eta","Η":"Eta","θ":"theta","ϑ":"thetav","Θ":"Theta","ι":"iota","Ι":"Iota","κ":"kappa","ϰ":"kappav","Κ":"Kappa","λ":"lambda","Λ":"Lambda","μ":"mu","µ":"micro","Μ":"Mu","ν":"nu","Ν":"Nu","ξ":"xi","Ξ":"Xi","ο":"omicron","Ο":"Omicron","π":"pi","ϖ":"piv","Π":"Pi","ρ":"rho","ϱ":"rhov","Ρ":"Rho","σ":"sigma","Σ":"Sigma","ς":"sigmaf","τ":"tau","Τ":"Tau","υ":"upsi","Υ":"Upsilon","ϒ":"Upsi","φ":"phi","ϕ":"phiv","Φ":"Phi","χ":"chi","Χ":"Chi","ψ":"psi","Ψ":"Psi","ω":"omega","Ω":"ohm","а":"acy","А":"Acy","б":"bcy","Б":"Bcy","в":"vcy","В":"Vcy","г":"gcy","Г":"Gcy","ѓ":"gjcy","Ѓ":"GJcy","д":"dcy","Д":"Dcy","ђ":"djcy","Ђ":"DJcy","е":"iecy","Е":"IEcy","ё":"iocy","Ё":"IOcy","є":"jukcy","Є":"Jukcy","ж":"zhcy","Ж":"ZHcy","з":"zcy","З":"Zcy","ѕ":"dscy","Ѕ":"DScy","и":"icy","И":"Icy","і":"iukcy","І":"Iukcy","ї":"yicy","Ї":"YIcy","й":"jcy","Й":"Jcy","ј":"jsercy","Ј":"Jsercy","к":"kcy","К":"Kcy","ќ":"kjcy","Ќ":"KJcy","л":"lcy","Л":"Lcy","љ":"ljcy","Љ":"LJcy","м":"mcy","М":"Mcy","н":"ncy","Н":"Ncy","њ":"njcy","Њ":"NJcy","о":"ocy","О":"Ocy","п":"pcy","П":"Pcy","р":"rcy","Р":"Rcy","с":"scy","С":"Scy","т":"tcy","Т":"Tcy","ћ":"tshcy","Ћ":"TSHcy","у":"ucy","У":"Ucy","ў":"ubrcy","Ў":"Ubrcy","ф":"fcy","Ф":"Fcy","х":"khcy","Х":"KHcy","ц":"tscy","Ц":"TScy","ч":"chcy","Ч":"CHcy","џ":"dzcy","Џ":"DZcy","ш":"shcy","Ш":"SHcy","щ":"shchcy","Щ":"SHCHcy","ъ":"hardcy","Ъ":"HARDcy","ы":"ycy","Ы":"Ycy","ь":"softcy","Ь":"SOFTcy","э":"ecy","Э":"Ecy","ю":"yucy","Ю":"YUcy","я":"yacy","Я":"YAcy","ℵ":"aleph","ℶ":"beth","ℷ":"gimel","ℸ":"daleth"},f=/["&'<>`]/g,d={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},h=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,p=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,m={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},y={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},v={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},A=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],b=String.fromCharCode,w={}.hasOwnProperty,I=function(e,t){return w.call(e,t)},x=function(e,t){if(!e)return t;var n,r={};for(n in t)r[n]=I(e,n)?e[n]:t[n];return r},C=function(e,t){var n="";return e>=55296&&e<=57343||e>1114111?(t&&S("character reference outside the permissible Unicode range"),"�"):I(v,e)?(t&&S("disallowed character reference"),v[e]):(t&&function(e,t){for(var n=-1,r=e.length;++n<r;)if(e[n]==t)return!0;return!1}(A,e)&&S("disallowed character reference"),e>65535&&(n+=b((e-=65536)>>>10&1023|55296),e=56320|1023&e),n+=b(e))},B=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},E=function(e){return"&#"+e+";"},S=function(e){throw Error("Parse error: "+e)},k=function(e,t){(t=x(t,k.options)).strict&&p.test(e)&&S("forbidden code point");var n=t.encodeEverything,r=t.useNamedReferences,i=t.allowUnsafeSymbols,o=t.decimal?E:B,d=function(e){return o(e.charCodeAt(0))};return n?(e=e.replace(s,function(e){return r&&I(u,e)?"&"+u[e]+";":d(e)}),r&&(e=e.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),r&&(e=e.replace(c,function(e){return"&"+u[e]+";"}))):r?(i||(e=e.replace(f,function(e){return"&"+u[e]+";"})),e=(e=e.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;")).replace(c,function(e){return"&"+u[e]+";"})):i||(e=e.replace(f,d)),e.replace(a,function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return o(1024*(t-55296)+n-56320+65536)}).replace(l,d)};k.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var F=function(e,t){var n=(t=x(t,F.options)).strict;return n&&h.test(e)&&S("malformed character reference"),e.replace(g,function(e,r,i,o,a,s,l,c,u){var f,d,h,p,g,v;return r?m[g=r]:i?(g=i,(v=o)&&t.isAttributeValue?(n&&"="==v&&S("`&` did not start a character reference"),e):(n&&S("named character reference was not terminated by a semicolon"),y[g]+(v||""))):a?(h=a,d=s,n&&!d&&S("character reference was not terminated by a semicolon"),f=parseInt(h,10),C(f,n)):l?(p=l,d=c,n&&!d&&S("character reference was not terminated by a semicolon"),f=parseInt(p,16),C(f,n)):(n&&S("named character reference was not terminated by a semicolon"),e)})};F.options={isAttributeValue:!1,strict:!1};var D={version:"1.2.0",encode:k,decode:F,escape:function(e){return e.replace(f,function(e){return d[e]})},unescape:F};if(r&&!r.nodeType)if(i)i.exports=D;else for(var N in D)I(D,N)&&(r[N]=D[N]);else n.he=D}(Br)}(is,is.exports);var os=Er(is.exports);function as(e,t={}){if(!Fe(e))return"";return os.encode(e,t)}function ss(e,t){let n=new Blob([e],{type:t});try{let e=window.URL.createObjectURL(n);window.open(e)}catch(e){console.log("window.URL.createObjectURL is not support for IE11",e)}}function ls(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function cs(e,t,n,r,i){if(!ls(e))return null;if(!Cr(t))return null;if(!Ie(n))return null;if(!Cr(r))return null;if(!Cr(i))return null;let o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,f=n?0:i-1,d=n?1:-1,h=e[t+f];for(f+=d,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+f],f+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)}function us(e,t=0,n=!0,r=52,i=8){return cs(e,t,n,r,i)}function fs(e,t,n,r,i,o){if(!Me(e))return null;if(!ls(t))return null;if(!Cr(n))return null;if(!Ie(r))return null;if(!Cr(i))return null;if(!Cr(o))return null;let a,s,l;e=xr(e);let c=8*o-i-1,u=(1<<c)-1,f=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?o-1:0,p=r?-1:1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(e*l-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[n+h]=255&a,h+=p,a/=256,c-=8);return t[n+h-p]|=128*g,null}function ds(e,t,n=0,r=!0,i=52,o=8){return fs(e,t,n,r,i,o)}function hs(e,t,n=[],r={}){let i=r.ms;return Wi(i)||(i=1),i=Yi(i),i=Math.min(i,Ri),setTimeout(()=>{Pi(e,t,n,r)},i)}function ps(e=10){Me(e)||(e=10),e=Math.min(e,Ri);let t=_a();return setTimeout(function(){t.resolve()},e),t}function gs(e){let t,n=Object.prototype.toString.call(e);if(t="[object Promise]"===n,t)return!0;if("[object Function]"!==n)return!1;try{t="function"!=typeof e.subscribe&&"function"==typeof e.then}catch(e){}return t}async function ms(e,t={}){let n=null,r=_a();if(!Oi(e))return r.reject("waitfunction需輸入函數f"),r;let i=async()=>{let t=e();return gs(t)&&(t=await t),t};if(n=await i(),!0===n)return r.resolve(),r;let o=be(t,"attemptNum",null);Wi(o)||(o=200);let a=be(t,"timeInterval",null);Wi(a)||(a=1e3),a=Math.min(a,Ri);let s=0,l=setInterval(async()=>{s+=1,n=await i(),!0===n&&(clearInterval(l),r.resolve()),s>o&&(clearInterval(l),r.reject(`exceeded attemptNum[${o}]`))},a);return r}function ys(e){return me(e).toLowerCase()}
8
8
  /*!
9
9
  * decimal.js v10.6.0
@@ -12,7 +12,7 @@
12
12
  * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
13
13
  * MIT Licence
14
14
  */
15
- var vs,As,bs=9e15,ws=1e9,Is="0123456789abcdef",xs="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Cs="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Bs={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-bs,maxE:bs,crypto:!1},Es=!0,Ss="[DecimalError] ",ks=Ss+"Invalid argument: ",Fs=Ss+"Precision limit exceeded",Ds=Ss+"crypto unavailable",Ns="[object Decimal]",Ms=Math.floor,Ts=Math.pow,Qs=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Ls=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Rs=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Us=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Hs=1e7,qs=xs.length-1,Os=Cs.length-1,Ps={toStringTag:Ns};function $s(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(n=7-(r=e[t]+"").length)&&(o+=Zs(n)),o+=r;(n=7-(r=(a=e[t])+"").length)&&(o+=Zs(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function zs(e,t,n){if(e!==~~e||e<t||e>n)throw Error(ks+e)}function js(e,t,n,r){var i,o,a,s;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),o=Ts(10,7-t),s=e[i]%o|0,null==r?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):a=(n<4&&s+1==o||n>3&&s+1==o/2)&&(e[i+1]/o/100|0)==Ts(10,t-2)-1||(s==o/2||0==s)&&!(e[i+1]/o/100|0):t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),a=(r||n<4)&&9999==s||!r&&n>3&&4999==s):a=((r||n<4)&&s+1==o||!r&&n>3&&s+1==o/2)&&(e[i+1]/o/1e3|0)==Ts(10,t-3)-1,a}function Vs(e,t,n){for(var r,i,o=[0],a=0,s=e.length;a<s;){for(i=o.length;i--;)o[i]*=t;for(o[0]+=Is.indexOf(e.charAt(a++)),r=0;r<o.length;r++)o[r]>n-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}Ps.absoluteValue=Ps.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),Ws(e)},Ps.ceil=function(){return Ws(new this.constructor(this),this.e+1,2)},Ps.clampedTo=Ps.clamp=function(e,t){var n=this,r=n.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(ks+t);return n.cmp(e)<0?e:n.cmp(t)>0?t:new r(n)},Ps.comparedTo=Ps.cmp=function(e){var t,n,r,i,o=this,a=o.d,s=(e=new o.constructor(e)).d,l=o.s,c=e.s;if(!a||!s)return l&&c?l!==c?l:a===s?0:!a^l<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?l:s[0]?-c:0;if(l!==c)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(t=0,n=(r=a.length)<(i=s.length)?r:i;t<n;++t)if(a[t]!==s[t])return a[t]>s[t]^l<0?1:-1;return r===i?0:r>i^l<0?1:-1},Ps.cosine=Ps.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r,i;if(t.isZero())return t;r=t.d.length,r<32?i=(1/cl(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10");e.precision+=n,t=ll(e,1,t.times(i),new e(1));for(var o=n;o--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=n,t}(r,ul(r,n)),r.precision=e,r.rounding=t,Ws(2==As||3==As?n.neg():n,e,t,!0)):new r(1):new r(NaN)},Ps.cubeRoot=Ps.cbrt=function(){var e,t,n,r,i,o,a,s,l,c,u=this,f=u.constructor;if(!u.isFinite()||u.isZero())return new f(u);for(Es=!1,(o=u.s*Ts(u.s*u,1/3))&&Math.abs(o)!=1/0?r=new f(o.toString()):(n=$s(u.d),(o=((e=u.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=Ts(n,1/3),e=Ms((e+1)/3)-(e%3==(e<0?-1:2)),(r=new f(n=o==1/0?"5e"+e:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=u.s),a=(e=f.precision)+3;;)if(c=(l=(s=r).times(s).times(s)).plus(u),r=Ys(c.plus(u).times(s),c.plus(l),a+2,1),$s(s.d).slice(0,a)===(n=$s(r.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(Ws(r,e+1,1),t=!r.times(r).times(r).eq(u));break}if(!i&&(Ws(s,e+1,0),s.times(s).times(s).eq(u))){r=s;break}a+=4,i=1}return Es=!0,Ws(r,e,f.rounding,t)},Ps.decimalPlaces=Ps.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=7*((e=t.length-1)-Ms(this.e/7)),e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},Ps.dividedBy=Ps.div=function(e){return Ys(this,new this.constructor(e))},Ps.dividedToIntegerBy=Ps.divToInt=function(e){var t=this.constructor;return Ws(Ys(this,new t(e),0,1,1),t.precision,t.rounding)},Ps.equals=Ps.eq=function(e){return 0===this.cmp(e)},Ps.floor=function(){return Ws(new this.constructor(this),this.e+1,3)},Ps.greaterThan=Ps.gt=function(e){return this.cmp(e)>0},Ps.greaterThanOrEqualTo=Ps.gte=function(e){var t=this.cmp(e);return 1==t||0===t},Ps.hyperbolicCosine=Ps.cosh=function(){var e,t,n,r,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;n=a.precision,r=a.rounding,a.precision=n+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?t=(1/cl(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=ll(a,1,o.times(t),new a(1),!0);for(var l,c=e,u=new a(8);c--;)l=o.times(o),o=s.minus(l.times(u.minus(l.times(u))));return Ws(o,a.precision=n,a.rounding=r,!0)},Ps.hyperbolicSine=Ps.sinh=function(){var e,t,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,n=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=ll(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,i=ll(o,2,i=i.times(1/cl(5,e)),i,!0);for(var a,s=new o(5),l=new o(16),c=new o(20);e--;)a=i.times(i),i=i.times(s.plus(a.times(l.times(a).plus(c))))}return o.precision=t,o.rounding=n,Ws(i,t,n,!0)},Ps.hyperbolicTangent=Ps.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,Ys(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)},Ps.inverseCosine=Ps.acos=function(){var e=this,t=e.constructor,n=e.abs().cmp(1),r=t.precision,i=t.rounding;return-1!==n?0===n?e.isNeg()?Xs(t,r,i):new t(0):new t(NaN):e.isZero()?Xs(t,r+4,i).times(.5):(t.precision=r+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=r,t.rounding=i,e.times(2))},Ps.inverseHyperbolicCosine=Ps.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,Es=!1,n=n.times(n).minus(1).sqrt().plus(n),Es=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},Ps.inverseHyperbolicSine=Ps.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,Es=!1,n=n.times(n).plus(1).sqrt().plus(n),Es=!0,r.precision=e,r.rounding=t,n.ln())},Ps.inverseHyperbolicTangent=Ps.atanh=function(){var e,t,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,r=i.sd(),Math.max(r,e)<2*-i.e-1?Ws(new o(i),e,t,!0):(o.precision=n=r-i.e,i=Ys(i.plus(1),new o(1).minus(i),n+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)},Ps.inverseSine=Ps.asin=function(){var e,t,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==t?0===t?((e=Xs(o,n+4,r).times(.5)).s=i.s,e):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2)))},Ps.inverseTangent=Ps.atan=function(){var e,t,n,r,i,o,a,s,l,c=this,u=c.constructor,f=u.precision,d=u.rounding;if(c.isFinite()){if(c.isZero())return new u(c);if(c.abs().eq(1)&&f+4<=Os)return(a=Xs(u,f+4,d).times(.25)).s=c.s,a}else{if(!c.s)return new u(NaN);if(f+4<=Os)return(a=Xs(u,f+4,d).times(.5)).s=c.s,a}for(u.precision=s=f+10,u.rounding=1,e=n=Math.min(28,s/7+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(Es=!1,t=Math.ceil(s/7),r=1,l=c.times(c),a=new u(c),i=c;-1!==e;)if(i=i.times(l),o=a.minus(i.div(r+=2)),i=i.times(l),void 0!==(a=o.plus(i.div(r+=2))).d[t])for(e=t;a.d[e]===o.d[e]&&e--;);return n&&(a=a.times(2<<n-1)),Es=!0,Ws(a,u.precision=f,u.rounding=d,!0)},Ps.isFinite=function(){return!!this.d},Ps.isInteger=Ps.isInt=function(){return!!this.d&&Ms(this.e/7)>this.d.length-2},Ps.isNaN=function(){return!this.s},Ps.isNegative=Ps.isNeg=function(){return this.s<0},Ps.isPositive=Ps.isPos=function(){return this.s>0},Ps.isZero=function(){return!!this.d&&0===this.d[0]},Ps.lessThan=Ps.lt=function(e){return this.cmp(e)<0},Ps.lessThanOrEqualTo=Ps.lte=function(e){return this.cmp(e)<1},Ps.logarithm=Ps.log=function(e){var t,n,r,i,o,a,s,l,c=this,u=c.constructor,f=u.precision,d=u.rounding;if(null==e)e=new u(10),t=!0;else{if(n=(e=new u(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(n=c.d,c.s<0||!n||!n[0]||c.eq(1))return new u(n&&!n[0]?-1/0:1!=c.s?NaN:n?0:1/0);if(t)if(n.length>1)o=!0;else{for(i=n[0];i%10==0;)i/=10;o=1!==i}if(Es=!1,a=il(c,s=f+5),r=t?_s(u,s+10):il(e,s),js((l=Ys(a,r,s,1)).d,i=f,d))do{if(a=il(c,s+=10),r=t?_s(u,s+10):il(e,s),l=Ys(a,r,s,1),!o){+$s(l.d).slice(i+1,i+15)+1==1e14&&(l=Ws(l,f+1,0));break}}while(js(l.d,i+=10,d));return Es=!0,Ws(l,f,d)},Ps.minus=Ps.sub=function(e){var t,n,r,i,o,a,s,l,c,u,f,d,h=this,p=h.constructor;if(e=new p(e),!h.d||!e.d)return h.s&&e.s?h.d?e.s=-e.s:e=new p(e.d||h.s!==e.s?h:NaN):e=new p(NaN),e;if(h.s!=e.s)return e.s=-e.s,h.plus(e);if(c=h.d,d=e.d,s=p.precision,l=p.rounding,!c[0]||!d[0]){if(d[0])e.s=-e.s;else{if(!c[0])return new p(3===l?-0:0);e=new p(h)}return Es?Ws(e,s,l):e}if(n=Ms(e.e/7),u=Ms(h.e/7),c=c.slice(),o=u-n){for((f=o<0)?(t=c,o=-o,a=d.length):(t=d,n=u,a=c.length),o>(r=Math.max(Math.ceil(s/7),a)+2)&&(o=r,t.length=1),t.reverse(),r=o;r--;)t.push(0);t.reverse()}else{for((f=(r=c.length)<(a=d.length))&&(a=r),r=0;r<a;r++)if(c[r]!=d[r]){f=c[r]<d[r];break}o=0}for(f&&(t=c,c=d,d=t,e.s=-e.s),a=c.length,r=d.length-a;r>0;--r)c[a++]=0;for(r=d.length;r>o;){if(c[--r]<d[r]){for(i=r;i&&0===c[--i];)c[i]=Hs-1;--c[i],c[r]+=Hs}c[r]-=d[r]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(e.d=c,e.e=Js(c,n),Es?Ws(e,s,l):e):new p(3===l?-0:0)},Ps.modulo=Ps.mod=function(e){var t,n=this,r=n.constructor;return e=new r(e),!n.d||!e.s||e.d&&!e.d[0]?new r(NaN):!e.d||n.d&&!n.d[0]?Ws(new r(n),r.precision,r.rounding):(Es=!1,9==r.modulo?(t=Ys(n,e.abs(),0,3,1)).s*=e.s:t=Ys(n,e,0,r.modulo,1),t=t.times(e),Es=!0,n.minus(t))},Ps.naturalExponential=Ps.exp=function(){return rl(this)},Ps.naturalLogarithm=Ps.ln=function(){return il(this)},Ps.negated=Ps.neg=function(){var e=new this.constructor(this);return e.s=-e.s,Ws(e)},Ps.plus=Ps.add=function(e){var t,n,r,i,o,a,s,l,c,u,f=this,d=f.constructor;if(e=new d(e),!f.d||!e.d)return f.s&&e.s?f.d||(e=new d(e.d||f.s===e.s?f:NaN)):e=new d(NaN),e;if(f.s!=e.s)return e.s=-e.s,f.minus(e);if(c=f.d,u=e.d,s=d.precision,l=d.rounding,!c[0]||!u[0])return u[0]||(e=new d(f)),Es?Ws(e,s,l):e;if(o=Ms(f.e/7),r=Ms(e.e/7),c=c.slice(),i=o-r){for(i<0?(n=c,i=-i,a=u.length):(n=u,r=o,a=c.length),i>(a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((a=c.length)-(i=u.length)<0&&(i=a,n=u,u=c,c=n),t=0;i;)t=(c[--i]=c[i]+u[i]+t)/Hs|0,c[i]%=Hs;for(t&&(c.unshift(t),++r),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=Js(c,r),Es?Ws(e,s,l):e},Ps.precision=Ps.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(ks+e);return n.d?(t=Ks(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},Ps.round=function(){var e=this,t=e.constructor;return Ws(new t(e),e.e+1,t.rounding)},Ps.sine=Ps.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:ll(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=t.times(1/cl(5,n)),t=ll(e,2,t,t);for(var i,o=new e(5),a=new e(16),s=new e(20);n--;)i=t.times(t),t=t.times(o.plus(i.times(a.times(i).minus(s))));return t}(r,ul(r,n)),r.precision=e,r.rounding=t,Ws(As>2?n.neg():n,e,t,!0)):new r(NaN)},Ps.squareRoot=Ps.sqrt=function(){var e,t,n,r,i,o,a=this,s=a.d,l=a.e,c=a.s,u=a.constructor;if(1!==c||!s||!s[0])return new u(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(Es=!1,0==(c=Math.sqrt(+a))||c==1/0?(((t=$s(s)).length+l)%2==0&&(t+="0"),c=Math.sqrt(t),l=Ms((l+1)/2)-(l<0||l%2),r=new u(t=c==1/0?"5e"+l:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+l)):r=new u(c.toString()),n=(l=u.precision)+3;;)if(r=(o=r).plus(Ys(a,o,n+2,1)).times(.5),$s(o.d).slice(0,n)===(t=$s(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(Ws(r,l+1,1),e=!r.times(r).eq(a));break}if(!i&&(Ws(o,l+1,0),o.times(o).eq(a))){r=o;break}n+=4,i=1}return Es=!0,Ws(r,l,u.rounding,e)},Ps.tangent=Ps.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=Ys(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,Ws(2==As||4==As?n.neg():n,e,t,!0)):new r(NaN)},Ps.times=Ps.mul=function(e){var t,n,r,i,o,a,s,l,c,u=this,f=u.constructor,d=u.d,h=(e=new f(e)).d;if(e.s*=u.s,!(d&&d[0]&&h&&h[0]))return new f(!e.s||d&&!d[0]&&!h||h&&!h[0]&&!d?NaN:d&&h?0*e.s:e.s/0);for(n=Ms(u.e/7)+Ms(e.e/7),(l=d.length)<(c=h.length)&&(o=d,d=h,h=o,a=l,l=c,c=a),o=[],r=a=l+c;r--;)o.push(0);for(r=c;--r>=0;){for(t=0,i=l+r;i>r;)s=o[i]+h[r]*d[i-r-1]+t,o[i--]=s%Hs|0,t=s/Hs|0;o[i]=(o[i]+t)%Hs|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=Js(o,n),Es?Ws(e,f.precision,f.rounding):e},Ps.toBinary=function(e,t){return fl(this,2,e,t)},Ps.toDecimalPlaces=Ps.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(zs(e,0,ws),void 0===t?t=r.rounding:zs(t,0,8),Ws(n,e+n.e+1,t))},Ps.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=Gs(r,!0):(zs(e,0,ws),void 0===t?t=i.rounding:zs(t,0,8),n=Gs(r=Ws(new i(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},Ps.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?n=Gs(i):(zs(e,0,ws),void 0===t?t=o.rounding:zs(t,0,8),n=Gs(r=Ws(new o(i),e+i.e+1,t),!1,e+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},Ps.toFraction=function(e){var t,n,r,i,o,a,s,l,c,u,f,d,h=this,p=h.d,g=h.constructor;if(!p)return new g(h);if(c=n=new g(1),r=l=new g(0),a=(o=(t=new g(r)).e=Ks(p)-h.e-1)%7,t.d[0]=Ts(10,a<0?7+a:a),null==e)e=o>0?t:c;else{if(!(s=new g(e)).isInt()||s.lt(c))throw Error(ks+s);e=s.gt(t)?o>0?t:c:s}for(Es=!1,s=new g($s(p)),u=g.precision,g.precision=o=7*p.length*2;f=Ys(s,t,0,1,1),1!=(i=n.plus(f.times(r))).cmp(e);)n=r,r=i,i=c,c=l.plus(f.times(i)),l=i,i=t,t=s.minus(f.times(i)),s=i;return i=Ys(e.minus(n),r,0,1,1),l=l.plus(i.times(c)),n=n.plus(i.times(r)),l.s=c.s=h.s,d=Ys(c,r,o,1).minus(h).abs().cmp(Ys(l,n,o,1).minus(h).abs())<1?[c,r]:[l,n],g.precision=u,Es=!0,d},Ps.toHexadecimal=Ps.toHex=function(e,t){return fl(this,16,e,t)},Ps.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:zs(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(Es=!1,n=Ys(n,e,0,t,1).times(e),Es=!0,Ws(n)):(e.s=n.s,n=e),n},Ps.toNumber=function(){return+this},Ps.toOctal=function(e,t){return fl(this,8,e,t)},Ps.toPower=Ps.pow=function(e){var t,n,r,i,o,a,s=this,l=s.constructor,c=+(e=new l(e));if(!(s.d&&e.d&&s.d[0]&&e.d[0]))return new l(Ts(+s,c));if((s=new l(s)).eq(1))return s;if(r=l.precision,o=l.rounding,e.eq(1))return Ws(s,r,o);if((t=Ms(e.e/7))>=e.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return i=el(l,s,n,r),e.s<0?new l(1).div(i):Ws(i,r,o);if((a=s.s)<0){if(t<e.d.length-1)return new l(NaN);if(1&e.d[t]||(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(t=0!=(n=Ts(+s,c))&&isFinite(n)?new l(n+"").e:Ms(c*(Math.log("0."+$s(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?a/0:0):(Es=!1,l.rounding=s.s=1,n=Math.min(12,(t+"").length),(i=rl(e.times(il(s,r+n)),r)).d&&js((i=Ws(i,r+5,1)).d,r,o)&&(t=r+10,+$s((i=Ws(rl(e.times(il(s,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=Ws(i,r+1,0))),i.s=a,Es=!0,l.rounding=o,Ws(i,r,o))},Ps.toPrecision=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=Gs(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(zs(e,1,ws),void 0===t?t=i.rounding:zs(t,0,8),n=Gs(r=Ws(new i(r),e,t),e<=r.e||r.e<=i.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},Ps.toSignificantDigits=Ps.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(zs(e,1,ws),void 0===t?t=n.rounding:zs(t,0,8)),Ws(new n(this),e,t)},Ps.toString=function(){var e=this,t=e.constructor,n=Gs(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},Ps.truncated=Ps.trunc=function(){return Ws(new this.constructor(this),this.e+1,1)},Ps.valueOf=Ps.toJSON=function(){var e=this,t=e.constructor,n=Gs(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var Ys=function(){function e(e,t,n){var r,i=0,o=e.length;for(e=e.slice();o--;)r=e[o]*t+i,e[o]=r%n|0,i=r/n|0;return i&&e.unshift(i),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,a,s,l){var c,u,f,d,h,p,g,m,y,v,A,b,w,I,x,C,B,E,S,k,F=r.constructor,D=r.s==i.s?1:-1,N=r.d,M=i.d;if(!(N&&N[0]&&M&&M[0]))return new F(r.s&&i.s&&(N?!M||N[0]!=M[0]:M)?N&&0==N[0]||!M?0*D:D/0:NaN);for(l?(h=1,u=r.e-i.e):(l=Hs,h=7,u=Ms(r.e/h)-Ms(i.e/h)),S=M.length,B=N.length,v=(y=new F(D)).d=[],f=0;M[f]==(N[f]||0);f++);if(M[f]>(N[f]||0)&&u--,null==o?(I=o=F.precision,a=F.rounding):I=s?o+(r.e-i.e)+1:o,I<0)v.push(1),p=!0;else{if(I=I/h+2|0,f=0,1==S){for(d=0,M=M[0],I++;(f<B||d)&&I--;f++)x=d*l+(N[f]||0),v[f]=x/M|0,d=x%M|0;p=d||f<B}else{for((d=l/(M[0]+1)|0)>1&&(M=e(M,d,l),N=e(N,d,l),S=M.length,B=N.length),C=S,b=(A=N.slice(0,S)).length;b<S;)A[b++]=0;(k=M.slice()).unshift(0),E=M[0],M[1]>=l/2&&++E;do{d=0,(c=t(M,A,S,b))<0?(w=A[0],S!=b&&(w=w*l+(A[1]||0)),(d=w/E|0)>1?(d>=l&&(d=l-1),1==(c=t(g=e(M,d,l),A,m=g.length,b=A.length))&&(d--,n(g,S<m?k:M,m,l))):(0==d&&(c=d=1),g=M.slice()),(m=g.length)<b&&g.unshift(0),n(A,g,b,l),-1==c&&(c=t(M,A,S,b=A.length))<1&&(d++,n(A,S<b?k:M,b,l)),b=A.length):0===c&&(d++,A=[0]),v[f++]=d,c&&A[0]?A[b++]=N[C]||0:(A=[N[C]],b=1)}while((C++<B||void 0!==A[0])&&I--);p=void 0!==A[0]}v[0]||v.shift()}if(1==h)y.e=u,vs=p;else{for(f=1,d=v[0];d>=10;d/=10)f++;y.e=f+u*h-1,Ws(y,s?o+y.e+1:o,a,p)}return y}}();function Ws(e,t,n,r){var i,o,a,s,l,c,u,f,d,h=e.constructor;e:if(null!=t){if(!(f=e.d))return e;for(i=1,s=f[0];s>=10;s/=10)i++;if((o=t-i)<0)o+=7,a=t,l=(u=f[d=0])/Ts(10,i-a-1)%10|0;else if((d=Math.ceil((o+1)/7))>=(s=f.length)){if(!r)break e;for(;s++<=d;)f.push(0);u=l=0,i=1,a=(o%=7)-7+1}else{for(u=s=f[d],i=1;s>=10;s/=10)i++;l=(a=(o%=7)-7+i)<0?0:u/Ts(10,i-a-1)%10|0}if(r=r||t<0||void 0!==f[d+1]||(a<0?u:u%Ts(10,i-a-1)),c=n<4?(l||r)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||r||6==n&&(o>0?a>0?u/Ts(10,i-a):0:f[d-1])%10&1||n==(e.s<0?8:7)),t<1||!f[0])return f.length=0,c?(t-=e.e+1,f[0]=Ts(10,(7-t%7)%7),e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=d,s=1,d--):(f.length=d+1,s=Ts(10,7-o),f[d]=a>0?(u/Ts(10,i-a)%Ts(10,a)|0)*s:0),c)for(;;){if(0==d){for(o=1,a=f[0];a>=10;a/=10)o++;for(a=f[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(e.e++,f[0]==Hs&&(f[0]=1));break}if(f[d]+=s,f[d]!=Hs)break;f[d--]=0,s=1}for(o=f.length;0===f[--o];)f.pop()}return Es&&(e.e>h.maxE?(e.d=null,e.e=NaN):e.e<h.minE&&(e.e=0,e.d=[0])),e}function Gs(e,t,n){if(!e.isFinite())return ol(e);var r,i=e.e,o=$s(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+Zs(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+Zs(-i-1)+o,n&&(r=n-a)>0&&(o+=Zs(r))):i>=a?(o+=Zs(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+Zs(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=Zs(r))),o}function Js(e,t){var n=e[0];for(t*=7;n>=10;n/=10)t++;return t}function _s(e,t,n){if(t>qs)throw Es=!0,n&&(e.precision=n),Error(Fs);return Ws(new e(xs),t,1,!0)}function Xs(e,t,n){if(t>Os)throw Error(Fs);return Ws(new e(Cs),t,n,!0)}function Ks(e){var t=e.length-1,n=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function Zs(e){for(var t="";e--;)t+="0";return t}function el(e,t,n,r){var i,o=new e(1),a=Math.ceil(r/7+4);for(Es=!1;;){if(n%2&&dl((o=o.times(t)).d,a)&&(i=!0),0===(n=Ms(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}dl((t=t.times(t)).d,a)}return Es=!0,o}function tl(e){return 1&e.d[e.d.length-1]}function nl(e,t,n){for(var r,i,o=new e(t[0]),a=0;++a<t.length;){if(!(i=new e(t[a])).s){o=i;break}((r=o.cmp(i))===n||0===r&&o.s===n)&&(o=i)}return o}function rl(e,t){var n,r,i,o,a,s,l,c=0,u=0,f=0,d=e.constructor,h=d.rounding,p=d.precision;if(!e.d||!e.d[0]||e.e>17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(Es=!1,l=p):l=t,s=new d(.03125);e.e>-2;)e=e.times(s),f+=5;for(l+=r=Math.log(Ts(2,f))/Math.LN10*2+5|0,n=o=a=new d(1),d.precision=l;;){if(o=Ws(o.times(e),l,1),n=n.times(++u),$s((s=a.plus(Ys(o,n,l,1))).d).slice(0,l)===$s(a.d).slice(0,l)){for(i=f;i--;)a=Ws(a.times(a),l,1);if(null!=t)return d.precision=p,a;if(!(c<3&&js(a.d,l-r,h,c)))return Ws(a,d.precision=p,h,Es=!0);d.precision=l+=10,n=o=s=new d(1),u=0,c++}a=s}}function il(e,t){var n,r,i,o,a,s,l,c,u,f,d,h=1,p=e,g=p.d,m=p.constructor,y=m.rounding,v=m.precision;if(p.s<0||!g||!g[0]||!p.e&&1==g[0]&&1==g.length)return new m(g&&!g[0]?-1/0:1!=p.s?NaN:g?0:p);if(null==t?(Es=!1,u=v):u=t,m.precision=u+=10,r=(n=$s(g)).charAt(0),!(Math.abs(o=p.e)<15e14))return c=_s(m,u+2,v).times(o+""),p=il(new m(r+"."+n.slice(1)),u-10).plus(c),m.precision=v,null==t?Ws(p,v,y,Es=!0):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=$s((p=p.times(e)).d)).charAt(0),h++;for(o=p.e,r>1?(p=new m("0."+n),o++):p=new m(r+"."+n.slice(1)),f=p,l=a=p=Ys(p.minus(1),p.plus(1),u,1),d=Ws(p.times(p),u,1),i=3;;){if(a=Ws(a.times(d),u,1),$s((c=l.plus(Ys(a,new m(i),u,1))).d).slice(0,u)===$s(l.d).slice(0,u)){if(l=l.times(2),0!==o&&(l=l.plus(_s(m,u+2,v).times(o+""))),l=Ys(l,new m(h),u,1),null!=t)return m.precision=v,l;if(!js(l.d,u-10,y,s))return Ws(l,m.precision=v,y,Es=!0);m.precision=u+=10,c=a=p=Ys(f.minus(1),f.plus(1),u,1),d=Ws(p.times(p),u,1),i=s=1}l=c,i+=2}}function ol(e){return String(e.s*e.s/0)}function al(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);r++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(r,i)){if(i-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=7;r<i;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=i;for(;r--;)t+="0";e.d.push(+t),Es&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function sl(e,t){var n,r,i,o,a,s,l,c,u;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),Us.test(t))return al(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Ls.test(t))n=16,t=t.toLowerCase();else if(Qs.test(t))n=2;else{if(!Rs.test(t))throw Error(ks+t);n=8}for((o=t.search(/p/i))>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),a=(o=t.indexOf("."))>=0,r=e.constructor,a&&(o=(s=(t=t.replace(".","")).length)-o,i=el(r,new r(n),o,2*o)),o=u=(c=Vs(t,n,Hs)).length-1;0===c[o];--o)c.pop();return o<0?new r(0*e.s):(e.e=Js(c,u),e.d=c,Es=!1,a&&(e=Ys(e,i,4*s)),l&&(e=e.times(Math.abs(l)<54?Ts(2,l):Zl.pow(2,l))),Es=!0,e)}function ll(e,t,n,r,i){var o,a,s,l,c=e.precision,u=Math.ceil(c/7);for(Es=!1,l=n.times(n),s=new e(r);;){if(a=Ys(s.times(l),new e(t++*t++),c,1),s=i?r.plus(a):r.minus(a),r=Ys(a.times(l),new e(t++*t++),c,1),void 0!==(a=s.plus(r)).d[u]){for(o=u;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=r,r=a,a=o}return Es=!0,a.d.length=u+1,a}function cl(e,t){for(var n=e;--t;)n*=e;return n}function ul(e,t){var n,r=t.s<0,i=Xs(e,e.precision,1),o=i.times(.5);if((t=t.abs()).lte(o))return As=r?4:1,t;if((n=t.divToInt(i)).isZero())As=r?3:2;else{if((t=t.minus(n.times(i))).lte(o))return As=tl(n)?r?2:3:r?4:1,t;As=tl(n)?r?1:4:r?3:2}return t.minus(i).abs()}function fl(e,t,n,r){var i,o,a,s,l,c,u,f,d,h=e.constructor,p=void 0!==n;if(p?(zs(n,1,ws),void 0===r?r=h.rounding:zs(r,0,8)):(n=h.precision,r=h.rounding),e.isFinite()){for(p?(i=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):i=t,(a=(u=Gs(e)).indexOf("."))>=0&&(u=u.replace(".",""),(d=new h(1)).e=u.length-a,d.d=Vs(Gs(d),10,i),d.e=d.d.length),o=l=(f=Vs(u,10,i)).length;0==f[--l];)f.pop();if(f[0]){if(a<0?o--:((e=new h(e)).d=f,e.e=o,f=(e=Ys(e,d,n,r,0,i)).d,o=e.e,c=vs),a=f[n],s=i/2,c=c||void 0!==f[n+1],c=r<4?(void 0!==a||c)&&(0===r||r===(e.s<0?3:2)):a>s||a===s&&(4===r||c||6===r&&1&f[n-1]||r===(e.s<0?8:7)),f.length=n,c)for(;++f[--n]>i-1;)f[n]=0,n||(++o,f.unshift(1));for(l=f.length;!f[l-1];--l);for(a=0,u="";a<l;a++)u+=Is.charAt(f[a]);if(p){if(l>1)if(16==t||8==t){for(a=16==t?4:3,--l;l%a;l++)u+="0";for(l=(f=Vs(u,i,t)).length;!f[l-1];--l);for(a=1,u="1.";a<l;a++)u+=Is.charAt(f[a])}else u=u.charAt(0)+"."+u.slice(1);u=u+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)u="0"+u;u="0."+u}else if(++o>l)for(o-=l;o--;)u+="0";else o<l&&(u=u.slice(0,o)+"."+u.slice(o))}else u=p?"0p+0":"0";u=(16==t?"0x":2==t?"0b":8==t?"0o":"")+u}else u=ol(e);return e.s<0?"-"+u:u}function dl(e,t){if(e.length>t)return e.length=t,!0}function hl(e){return new this(e).abs()}function pl(e){return new this(e).acos()}function gl(e){return new this(e).acosh()}function ml(e,t){return new this(e).plus(t)}function yl(e){return new this(e).asin()}function vl(e){return new this(e).asinh()}function Al(e){return new this(e).atan()}function bl(e){return new this(e).atanh()}function wl(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,o=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?Xs(this,r,i):new this(0)).s=e.s:!e.d||t.isZero()?(n=Xs(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,n=this.atan(Ys(e,t,o,1)),t=Xs(this,o,1),this.precision=r,this.rounding=i,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(Ys(e,t,o,1)):(n=Xs(this,o,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function Il(e){return new this(e).cbrt()}function xl(e){return Ws(e=new this(e),e.e+1,2)}function Cl(e,t,n){return new this(e).clamp(t,n)}function Bl(e){if(!e||"object"!=typeof e)throw Error(Ss+"Object expected");var t,n,r,i=!0===e.defaults,o=["precision",1,ws,"rounding",0,8,"toExpNeg",-bs,0,"toExpPos",0,bs,"maxE",0,bs,"minE",-bs,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(n=o[t],i&&(this[n]=Bs[n]),void 0!==(r=e[n])){if(!(Ms(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(ks+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=Bs[n]),void 0!==(r=e[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(ks+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(Ds);this[n]=!0}else this[n]=!1}return this}function El(e){return new this(e).cos()}function Sl(e){return new this(e).cosh()}function kl(e,t){return new this(e).div(t)}function Fl(e){return new this(e).exp()}function Dl(e){return Ws(e=new this(e),e.e+1,3)}function Nl(){var e,t,n=new this(0);for(Es=!1,e=0;e<arguments.length;)if((t=new this(arguments[e++])).d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return Es=!0,new this(1/0);n=t}return Es=!0,n.sqrt()}function Ml(e){return e instanceof Zl||e&&e.toStringTag===Ns||!1}function Tl(e){return new this(e).ln()}function Ql(e,t){return new this(e).log(t)}function Ll(e){return new this(e).log(2)}function Rl(e){return new this(e).log(10)}function Ul(){return nl(this,arguments,-1)}function Hl(){return nl(this,arguments,1)}function ql(e,t){return new this(e).mod(t)}function Ol(e,t){return new this(e).mul(t)}function Pl(e,t){return new this(e).pow(t)}function $l(e){var t,n,r,i,o=0,a=new this(1),s=[];if(void 0===e?e=this.precision:zs(e,1,ws),r=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));o<r;)(i=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(Ds);for(t=crypto.randomBytes(r*=4);o<r;)(i=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,o):(s.push(i%1e7),o+=4);o=r/4}else for(;o<r;)s[o++]=1e7*Math.random()|0;for(e%=7,(r=s[--o])&&e&&(i=Ts(10,7-e),s[o]=(r/i|0)*i);0===s[o];o--)s.pop();if(o<0)n=0,s=[0];else{for(n=-1;0===s[0];n-=7)s.shift();for(r=1,i=s[0];i>=10;i/=10)r++;r<7&&(n-=7-r)}return a.e=n,a.d=s,a}function zl(e){return Ws(e=new this(e),e.e+1,this.rounding)}function jl(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function Vl(e){return new this(e).sin()}function Yl(e){return new this(e).sinh()}function Wl(e){return new this(e).sqrt()}function Gl(e,t){return new this(e).sub(t)}function Jl(){var e=0,t=arguments,n=new this(t[e]);for(Es=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return Es=!0,Ws(n,this.precision,this.rounding)}function _l(e){return new this(e).tan()}function Xl(e){return new this(e).tanh()}function Kl(e){return Ws(e=new this(e),e.e+1,1)}Ps[Symbol.for("nodejs.util.inspect.custom")]=Ps.toString,Ps[Symbol.toStringTag]="Decimal";var Zl=Ps.constructor=function e(t){var n,r,i;function o(e){var t,n,r,i=this;if(!(i instanceof o))return new o(e);if(i.constructor=o,Ml(e))return i.s=e.s,void(Es?!e.d||e.e>o.maxE?(i.e=NaN,i.d=null):e.e<o.minE?(i.e=0,i.d=[0]):(i.e=e.e,i.d=e.d.slice()):(i.e=e.e,i.d=e.d?e.d.slice():e.d));if("number"===(r=typeof e)){if(0===e)return i.s=1/e<0?-1:1,i.e=0,void(i.d=[0]);if(e<0?(e=-e,i.s=-1):i.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;return void(Es?t>o.maxE?(i.e=NaN,i.d=null):t<o.minE?(i.e=0,i.d=[0]):(i.e=t,i.d=[e]):(i.e=t,i.d=[e]))}return 0*e!=0?(e||(i.s=NaN),i.e=NaN,void(i.d=null)):al(i,e.toString())}if("string"===r)return 45===(n=e.charCodeAt(0))?(e=e.slice(1),i.s=-1):(43===n&&(e=e.slice(1)),i.s=1),Us.test(e)?al(i,e):sl(i,e);if("bigint"===r)return e<0?(e=-e,i.s=-1):i.s=1,al(i,e.toString());throw Error(ks+e)}if(o.prototype=Ps,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=Bl,o.clone=e,o.isDecimal=Ml,o.abs=hl,o.acos=pl,o.acosh=gl,o.add=ml,o.asin=yl,o.asinh=vl,o.atan=Al,o.atanh=bl,o.atan2=wl,o.cbrt=Il,o.ceil=xl,o.clamp=Cl,o.cos=El,o.cosh=Sl,o.div=kl,o.exp=Fl,o.floor=Dl,o.hypot=Nl,o.ln=Tl,o.log=Ql,o.log10=Rl,o.log2=Ll,o.max=Ul,o.min=Hl,o.mod=ql,o.mul=Ol,o.pow=Pl,o.random=$l,o.round=zl,o.sign=jl,o.sin=Vl,o.sinh=Yl,o.sqrt=Wl,o.sub=Gl,o.sum=Jl,o.tan=_l,o.tanh=Xl,o.trunc=Kl,void 0===t&&(t={}),t&&!0!==t.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}(Bs);function ec(e,t=0){if(mo(t)||(t=0),t=Yi(t),!Me(e))return"";return new Zl(e).toDecimalPlaces(t,Zl.ROUND_CEIL).toNumber()}function tc(e,t=0){if(!Me(e))return"";if(!mo(t))return"";return e=xr(e),Vi(e,t).toFixed(t)}function nc(){return"undefined"!=typeof self?self:Ka()?window:"undefined"!=typeof global?global:null}function rc(e){let t=function(){let e=nc();return n||e.xss}();let r=function e(n){return Be(n)||Ee(n)?(An(n,function(t,r){n[r]=e(t)}),n):Fe(n)?t(n,{onIgnoreTagAttr:function(e,n,r,i){if("style"===n)return n+'="'+t.escapeAttrValue(r)+'"'}}):n}(Li(e));return r}function ic(e,t){let n=_a();if(!Be(e)&&!Ee(e))return n.reject("rs is not an array or object"),n;let r=!1;if(Ee(e)){r=!0;let t=[];An(e,(e,n)=>{t.push({k:n,v:e})}),e=t}Oi(t)||(t=function(e){return e});let i=-1,o=[];return e.reduce(function(e,n){return e.then(function(e){o.push(e),i+=1;let a=i,s=n;return r&&(a=n.k,s=n.v),Oi(t)?t(s,a):s})},Promise.resolve()).then(function(e){o.push(e),o=Qa(o),n.resolve(o)}).catch(function(e){n.reject(e)}),n}xs=new Zl(xs),Cs=new Zl(Cs);let oc={},ac={};function sc({tagName:e,path:t,attributes:n={},func:r}){let i=_a();if("done"===oc[t])return i.resolve("loaded"),i;if("loading"===oc[t])return ms(()=>"done"===oc[t]).then(function(){i.resolve("loaded")}),i;oc[t]="loading";let o=document.createElement(e);return An(n,(e,t)=>{o.setAttribute(t,e)}),n.rel&&"stylesheet"===n.rel?(o.setAttribute("href",t),setTimeout(()=>{i.resolve(o),oc[t]="done"},1)):(o.src=t,o.addEventListener("load",()=>{let e;Oi(r)?e=ms(r):(e=_a(),e.resolve()),e.then(()=>ps(500)).then(function(){i.resolve(o),oc[t]="done"})}),o.addEventListener("error",()=>{i.reject(o),oc[t]="done"})),document.getElementsByTagName("head")[0].appendChild(o),i}function lc(e){let t=_a();Be(e)||(e=[e]),An(e,(t,n)=>{ke(t)&&(e[n]={path:t})});let n=Ao(wn(e,"path"),"|");return"done"===ac[n]?(t.resolve("loaded"),t):"loading"===ac[n]?(ms(()=>"done"===ac[n]).then(function(){t.resolve("loaded")}),t):(ac[n]="loading",An(e,(e,t)=>{e.type||(".js"===ia(e.path,3)?e.type="js":".css"===ia(e.path,4)?e.type="css":e.type="unknow")}),ic(e,e=>{let t=_a();if("js"===e.type)t=sc({tagName:"script",path:e.path,attributes:{type:"text/javascript"},func:e.func});else if("css"===e.type)t=sc({tagName:"link",path:e.path,attributes:{rel:"stylesheet"}});else{let n="invalid pathItem.type: "+e.type;console.log(n),t.reject(n)}return t}).finally(()=>{ac[n]="done"}))}function cc(e){return me(e).toUpperCase()}function uc(e,t,n){if(!Fe(e))return"";if(!Fe(t))return"";if(!ke(n))return"";return String(e).replaceAll(t,n)}function fc(e,t,n=1){return Fe(e)&&mo(t)?(n=Wi(n)?Yi(n):1,e.substring(t,t+n)):""}let dc={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 hc(e){return gc(e,1)}function pc(e){return gc(e,360)}function gc(e,t=1){if(e.indexOf("%")>=0){if(!Me(e=uc(e,"%","")))throw new Error("invalid color: value is not a number");e=xr(e)/100}else{if(!Me(e))throw new Error("invalid color: value is not a number");e=xr(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 mc(e){if(!Me(e))throw new Error("invalid color: value is not a number");if((e=xr(e))>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function yc(e,t="rgba"){if(!Be(e))throw new Error("invalid colors array");let n=be(e,0,0),r=be(e,1,0),i=be(e,2,0),o=be(e,3,1);if(4!==ar(t=t.split("")))throw new Error("tar.length !== 4");let a=be(t,0),s=be(t,1),l=be(t,2),c=be(t,3);return{[a]:n,[s]:r,[l]:i,[c]:o}}function vc(e){let t=(e=oa(e,1)).length;if(2===t)e=`${e}${e}${e}ff`;else if(3===t){let t=fc(e,0,1),n=fc(e,1,1),r=fc(e,2,1);e=`${t}${t}${n}${n}${r}${r}ff`}else if(6===t)e=`${e}ff`;else if(8!==t)throw new Error("invalid hex color");function n(e){if(2!==e.length)throw new Error("hex.length of color is not equal to 2");if(!Me(e=parseInt(e,16)))throw new Error("invalid hex of color");return(e=xr(e))/255}return{r:n(fc(e,0,2)),g:n(fc(e,2,2)),b:n(fc(e,4,2)),a:n(fc(e,6,2))}}function Ac(e){return e=yc(e=wn(e,(e,t)=>t<=2?gc(e,255):3===t?mc(e):null),"rgba")}function bc(e){return e=kc(e=yc(e=wn(e,(e,t)=>0===t?pc(e):1===t||2===t?hc(e):3===t?mc(e):null),"hsla"))}function wc(e){return e=Fc(e=yc(e=wn(e,(e,t)=>0===t?pc(e):1===t||2===t?hc(e):3===t?mc(e):null),"hsva"))}function Ic(e){if("transparent"===e)return{r:0,g:0,b:0,a:0};if(function(e){return Te(dc,e)}(e))return vc(e=function(e){return`#${dc[e]}`}(e));if(function(e){return"#"===ra(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 vc(e);if(function(e){return"rgb"===ra(e,3)||"rgba"===ra(e,4)}(e))return function(e){return e=uc(e,"rgba",""),e=uc(e,"rgb",""),Ac(na(e=uc(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsl"===ra(e,3)||"hsla"===ra(e,4)}(e))return function(e){return e=uc(e,"hsla",""),e=uc(e,"hsl",""),bc(na(e=uc(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsv"===ra(e,3)||"hsva"===ra(e,4)}(e))return function(e){return e=uc(e,"hsva",""),e=uc(e,"hsv",""),wc(na(e=uc(e=e.replace(/[()]/g,""),","," ")," "))}(e);throw new Error("format of color string is not hex-color, name-color, rgba, hsla, hsva")}function xc(e,t){return!!Te(e,t=ys(t))||!!Te(e,t=cc(t))}function Cc(e,t,n){let r;return r=be(e,t,null),null!==r?r:(r=be(e,t=cc(t),null),null!==r?r:n)}function Bc(e){if(function(e){let t=xc(e,"r"),n=xc(e,"g"),r=xc(e,"b");return t&&n&&r}(e))return function(e){let t=[Cc(e,"r",null),Cc(e,"g",null),Cc(e,"b",null),Cc(e,"a",1)];return t=wn(t,Ta),Ac(t)}(e);if(function(e){let t=xc(e,"h"),n=xc(e,"s"),r=xc(e,"l");return t&&n&&r}(e))return function(e){let t=[Cc(e,"h",null),Cc(e,"s",null),Cc(e,"l",null),Cc(e,"a",1)];return t=wn(t,Ta),bc(t)}(e);if(function(e){let t=xc(e,"h"),n=xc(e,"s"),r=xc(e,"v");return t&&n&&r}(e))return function(e){let t=[Cc(e,"h",null),Cc(e,"s",null),Cc(e,"v",null),Cc(e,"a",1)];return t=wn(t,Ta),wc(t)}(e);throw new Error("color object is not one of rgba, hsla, hsva")}function Ec(e){let t,n,r=e.r,i=e.g,o=e.b,a=Math.max(r,i,o),s=Math.min(r,i,o),l=(a+s)/2;if(a===s)t=n=0;else{let e=a-s;switch(n=l>.5?e/(2-a-s):e/(a+s),a){case r:t=(i-o)/e+(i<o?6:0);break;case i:t=(o-r)/e+2;break;case o:t=(r-i)/e+4}t/=6}return{h:t,s:n,l:l,a:e.a}}function Sc(e){let t,n,r=e.r,i=e.g,o=e.b,a=Math.max(r,i,o),s=Math.min(r,i,o),l=a,c=a-s;if(n=0===a?0:c/a,a===s)t=0;else{switch(a){case r:t=(i-o)/c+(i<o?6:0);break;case i:t=(o-r)/c+2;break;case o:t=(r-i)/c+4}t/=6}return{h:t,s:n,v:l,a:e.a}}function kc(e){let t,n,r,i=e.h,o=e.s,a=e.l;function s(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0===o)t=n=r=a;else{let e=a<.5?a*(1+o):a+o-a*o,l=2*a-e;t=s(l,e,i+1/3),n=s(l,e,i),r=s(l,e,i-1/3)}return{r:t,g:n,b:r,a:e.a}}function Fc(e){let t,n,r,i=e.h,o=e.s,a=e.v,s=Math.floor(6*i),l=6*i-s,c=a*(1-o),u=a*(1-l*o),f=a*(1-(1-l)*o);switch(s%6){case 0:t=a,n=f,r=c;break;case 1:t=u,n=a,r=c;break;case 2:t=c,n=a,r=f;break;case 3:t=c,n=u,r=a;break;case 4:t=f,n=c,r=a;break;case 5:t=a,n=c,r=u}return{r:t,g:n,b:r,a:e.a}}function Dc(e){let t=Math.round(255*e).toString(16);if(1===t.length)return`0${t}`;if(2===t.length)return t;throw new Error("invalid value")}function Nc(e,t=!0){let n=e.r,r=e.g,i=e.b,o=e.a,a=`${Dc(n)}${Dc(r)}${Dc(i)}`;return t&&(a=`${a}${Dc(o)}`),a}function Mc(e){return Math.min(1,Math.max(0,e))}function Tc(e,t){if(!Fe(t))throw new Error("fmtOutput is not a string");if(!hu[t])throw console.log(`fmtOutput must be [${pt(hu)}]`),new Error("invalid fmtOutput");return e=hu[t](e)}function Qc(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let r=Ec(e);return r.h+=t,r.h=r.h%1,Tc(kc(r),n)}function Lc(e,t,n,r,i="toRgbString"){if(t<0||t>1)throw new Error("w1 < 0 or > 1");if(r<0||r>1)throw new Error("w1 < 0 or > 1");return Tc({r:e.r*t+n.r*r,g:e.g*t+n.g*r,b:e.b*t+n.b*r,a:e.a*t+n.a*r},i)}function Rc(e){return`${Vi(100*e,1)}%`}function Uc(e){return Vi(e,0)}function Hc(e){return Vi(e,3)}function qc(e){return{r:Uc(255*e.r),g:Uc(255*e.g),b:Uc(255*e.b)}}function Oc(e){return`rgb(${Uc(255*e.r)}, ${Uc(255*e.g)}, ${Uc(255*e.b)})`}function Pc(e){return{r:Uc(255*e.r),g:Uc(255*e.g),b:Uc(255*e.b),a:Hc(e.a)}}function $c(e){return`rgba(${Uc(255*e.r)}, ${Uc(255*e.g)}, ${Uc(255*e.b)}, ${Hc(e.a)})`}function zc(e){let t=Ec(e);return{h:Uc(360*t.h),s:Hc(t.s),l:Hc(t.l)}}function jc(e){let t=Ec(e);return`hsl(${Uc(360*t.h)}, ${Hc(t.s)}, ${Hc(t.l)})`}function Vc(e){let t=Ec(e);return{h:Uc(360*t.h),s:Hc(t.s),l:Hc(t.l),a:Hc(t.a)}}function Yc(e){let t=Ec(e);return`hsla(${Uc(360*t.h)}, ${Hc(t.s)}, ${Hc(t.l)}, ${Hc(t.a)})`}function Wc(e){let t=Sc(e);return{h:Uc(360*t.h),s:Hc(t.s),v:Hc(t.v)}}function Gc(e){let t=Sc(e);return`hsv(${Uc(360*t.h)}, ${Hc(t.s)}, ${Hc(t.v)})`}function Jc(e){let t=Sc(e);return{h:Uc(360*t.h),s:Hc(t.s),v:Hc(t.v),a:Hc(t.a)}}function _c(e){let t=Sc(e);return`hsva(${Uc(360*t.h)}, ${Hc(t.s)}, ${Hc(t.v)}, ${Hc(t.a)})`}function Xc(e){return{r:Rc(e.r),g:Rc(e.g),b:Rc(e.b)}}function Kc(e){return`rgb(${Rc(e.r)}, ${Rc(e.g)}, ${Rc(e.b)})`}function Zc(e){return{r:Rc(e.r),g:Rc(e.g),b:Rc(e.b),a:Hc(e.a)}}function eu(e){return`rgba(${Rc(e.r)}, ${Rc(e.g)}, ${Rc(e.b)}, ${Hc(e.a)})`}function tu(e){let t=Ec(e);return{h:Uc(360*t.h),s:Rc(t.s),l:Rc(t.l)}}function nu(e){let t=Ec(e);return`hsl(${Uc(360*t.h)}, ${Rc(t.s)}, ${Rc(t.l)})`}function ru(e){let t=Ec(e);return{h:Uc(360*t.h),s:Rc(t.s),l:Rc(t.l),a:Hc(t.a)}}function iu(e){let t=Ec(e);return`hsla(${Uc(360*t.h)}, ${Rc(t.s)}, ${Rc(t.l)}, ${Hc(t.a)})`}function ou(e){let t=Sc(e);return{h:Uc(360*t.h),s:Rc(t.s),v:Rc(t.v)}}function au(e){let t=Sc(e);return`hsv(${Uc(360*t.h)}, ${Rc(t.s)}, ${Rc(t.v)})`}function su(e){let t=Sc(e);return{h:Uc(360*t.h),s:Rc(t.s),v:Rc(t.v),a:Hc(t.a)}}function lu(e){let t=Sc(e);return`hsva(${Uc(360*t.h)}, ${Rc(t.s)}, ${Rc(t.v)}, ${Hc(t.a)})`}function cu(e){let t=function(e){return Nc(e,!1)}(e);return`#${t}`}function uu(e){return`#${Nc(e)}`}function fu(e){let t=null,n=null,r=null;if(Fe(e))t=ys(ea(e));else{if(!Se(e))throw console.log("color=",e),new Error("color is not a string or an object");n=e}if(null!==t)try{r=Ic(t)}catch(e){throw console.log(e),new Error(`can not parse color: ${t}`)}else if(null!==n)try{r=Bc(n)}catch(e){throw console.log(e),new Error(`can not parse color: ${JSON.stringify(n)}`)}return r}function du(e){if(!Se(e))return console.log("gradient is not an effective object"),e=>`rgb(${255*(e=Math.min(Math.max(e,0),1))},${255*e},${255*e})`;let t=[];return An(e,(e,n)=>{t.push([xr(n),Pc(fu(e)),e])}),t=Na(t,0),function(e){let n=null;for(let r=1;r<t.length;r++){let i=t[r-1][0],o=t[r-1][1],a=t[r][0],s=t[r][1];if(i<=e&&a>=e){let t=(a-e)/(a-i),r=(e-i)/(a-i);n=Lc(fu(o),t,fu(s),r,"toRgbaString");break}}return n}}let hu={toRgb:qc,toRgbString:Oc,toRgba:Pc,toRgbaString:$c,toHsl:zc,toHslString:jc,toHsla:Vc,toHslaString:Yc,toHsv:Wc,toHsvString:Gc,toHsva:Jc,toHsvaString:_c,toRgbP:Xc,toRgbPString:Kc,toRgbaP:Zc,toRgbaPString:eu,toHslP:tu,toHslPString:nu,toHslaP:ru,toHslaPString:iu,toHsvP:ou,toHsvPString:au,toHsvaP:su,toHsvaPString:lu,toHexString:cu,toHex8String:uu};var pu=function(){let e={toRgb:e=>qc(fu(e)),toRgbString:e=>Oc(fu(e)),toRgba:e=>Pc(fu(e)),toRgbaString:e=>$c(fu(e)),toHsl:e=>zc(fu(e)),toHslString:e=>jc(fu(e)),toHsla:e=>Vc(fu(e)),toHslaString:e=>Yc(fu(e)),toHsv:e=>Wc(fu(e)),toHsvString:e=>Gc(fu(e)),toHsva:e=>Jc(fu(e)),toHsvaString:e=>_c(fu(e)),toRgbP:e=>Xc(fu(e)),toRgbPString:e=>Kc(fu(e)),toRgbaP:e=>Zc(fu(e)),toRgbaPString:e=>eu(fu(e)),toHslP:e=>tu(fu(e)),toHslPString:e=>nu(fu(e)),toHslaP:e=>ru(fu(e)),toHslaPString:e=>iu(fu(e)),toHsvP:e=>ou(fu(e)),toHsvPString:e=>au(fu(e)),toHsvaP:e=>su(fu(e)),toHsvaPString:e=>lu(fu(e)),toHexString:e=>cu(fu(e)),toHex8String:e=>uu(fu(e)),modSaturate:(e,t,n)=>function(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let r=Ec(e);return r.s+=t,r.s=Mc(r.s),Tc(kc(r),n)}(fu(e),t,n),modGrey:(e,t)=>function(e,t="toRgbString"){let n=Ec(e);return n.s=0,Tc(kc(n),t)}(fu(e),t),modLighten:(e,t,n)=>function(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let r=Ec(e);return r.l+=t,r.l=Mc(r.l),Tc(kc(r),n)}(fu(e),t,n),modBrighten:(e,t,n)=>function(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");return e.r+=t,e.r=Mc(e.r),e.g+=t,e.g=Mc(e.g),e.b+=t,e.b=Mc(e.b),Tc(e,n)}(fu(e),t,n),modHue:(e,t,n)=>Qc(fu(e),t,n),modComplement:(e,t)=>function(e,t="toRgbString"){return Qc(e,.5,t)}(fu(e),t),spreadHue:(e,t,n)=>function(e,t,n="toRgbString"){if(!Cr(t))throw new Error("num is not an integer");if((t=Yi(t))<=1)return[e];let r=Ec(e),i=1/t,o=[];for(let e=0;e<t;e++)o.push(Tc(kc(r),n)),r.h+=i,r.h=r.h%1;return o}(fu(e),t,n),spreadMonochromatic:(e,t,n)=>function(e,t,n="toRgbString"){if(!Cr(t))throw new Error("num is not an integer");if((t=Yi(t))<=1)return[e];let r=Sc(e);r.s=1,r.l=1;let i=1/t,o=[];for(let e=0;e<t;e++)o.push(Tc(Fc(r),n)),r.h-=i,r.l-=i;return o}(fu(e),t,n),mix:(e,t,n,r,i)=>Lc(fu(e),t,fu(n),r,i),getBrightness:e=>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}(fu(e)),getLuminance:e=>function(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");let t,n,r,i=e.r,o=e.g,a=e.b;return t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),n=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),r=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),.2126*t+.7152*n+.0722*r}(fu(e)),interp:du};return e}();function gu(e,t,n){return null==e?e:function(e,t,n,r){if(!L(e))return e;for(var i=-1,o=(t=ye(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=ve(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=L(u)?u:Je(t[i+1])?[]:{})}ri(s,l,c),s=s[l]}return e}(e,t,n)}var mu=Function.prototype,yu=Object.prototype,vu=mu.toString,Au=yu.hasOwnProperty,bu=vu.call(Object);function wu(e){if(!D(e)||"[object Object]"!=F(e))return!1;var t=hi(e);if(null===t)return!0;var n=Au.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&vu.call(n)==bu}function Iu(e){return wu(e)?void 0:e}var xu=po(function(e,t){var n={};if(null==e)return n;var r=!1;t=de(t,function(t){return t=ye(t,e),r||(r=t.length>1),t}),ii(e,gi(e),n),r&&(n=Qi(n,7,Iu));for(var i=t.length;i--;)xa(n,t[i]);return n}),Cu=xu;function Bu(e,t={}){let n="$level",r="$parents";if(!Tn(e))return[];let i=be(t,"bindKey",null);Fe(i)||(i="id");let o=be(t,"bindParent",null);Fe(o)||(o="parentId");let a=be(t,"bindChildren",null);Fe(a)||(a="children");let s=be(t,"saveExtProps",null);Ie(s)||(s=!1),e=function(e){let t=[];function a(a){let s=[];An(e,(e,l)=>{let c=be(e,o),u=be(a,i);if(c&&u&&c===u){let o=be(a,r,[]);o=Li(o),o.push(a[i]),t.push({[n]:a[n]+1,[r]:o,...e})}else s.push(e)}),e=s}if(e=Li(e),function(){let i=[];An(e,(e,a)=>{Mn(e[o])?t.push({[n]:0,[r]:[],...e}):i.push(e)}),e=i}(),0===t.length)return t;let s=-1;for(;s+=1,!(s>t.length-1);){if(a(t[s]),0===e.length)break}return t}(e);let l=function(e){let t=[];function l(e){return s?e:Cu(e,[n,r])}let c={};return An(e,(r,s)=>{if(0===r[n]){let e=l(r);t.push(e),c[r[i]]=[s]}else{let n=function(t){for(let n=0;n<e.length;n++){let r=e[n];if(t[o]===r[i])return r}return null}(r);if(null!==n){let e=c[n[i]];e=[...e,a];let o=be(t,e,[]),s=l(r);o.push(s),c[r[i]]=[...e,o.length-1],gu(t,e,o)}else console.log(`can not find parent for ${be(r,o)}`)}}),t}(e);return l}function Eu(e,t=null,n={}){R(t)||(t=e=>e);let r=be(n,"force",!1);return Ie(r)||(r=!1),function(e,t,n=!1){let r=[];if(!Be(e)&&!Ee(e))return t(e,null,[]);function i(e){if(Be(e))return Zi(ar(e));if(Ee(e)){let t=Object.getOwnPropertyNames(e),r=null;return n&&(r=Object.getOwnPropertySymbols(e)),Be(t)||(t=[]),Be(r)||(r=[]),[...t,...r]}return e}return function e(n,o){if(Be(n))return i(n).map(i=>{let o=n[i],a=Li(r);return r.push(i),o=t(o,i,a),o=e(o),r.pop(),o});if(Ee(n)){let o=i(n),a={};return o.map(i=>{let o=n[i],s=Li(r);r.push(i),o=t(o,i,s),o=e(o),r.pop(),a[i]=o}),a}return n}(e)}(e,t,r)}function Su(e,t={}){if(!Se(e)&&!Tn(e))return[];let n=be(t,"bindKey",null);Fe(n)||(n="id");let r=be(t,"bindParent",null);Fe(r)||(r="parentId");let i=be(t,"bindBelong",null);Fe(i)||(i="key");let o=be(t,"bindText",null);Fe(o)||(o="text");let a=be(t,"bindType",null);Fe(a)||(a="type");let s=be(t,"bindNumOfChilren",null);function l(e,t){return e=wn(e=Li(e),e=>N(e)?Ta(e):e),N(t)&&(t=Ta(t)),(Fe(t)||Me(t))&&e.push(t),Ao(e,"-")}Fe(s)||(s="numOfChilren");let c=[];return Eu(e,(e,t,u)=>{let f=l(u,t),d=l(u,null),h="node";Ee(e)?h="object":Be(e)&&(h="array");let p={[n]:f,[r]:d,[a]:h};if((Fe(t)||fa(t))&&(p[i]=t),Ee(e)||Be(e)||(p[o]=e),Ee(e)||Be(e)){let t=null;Ee(e)?t=ar(pt(e)):Be(e)&&(t=ar(e)),p[s]=t}return c.push(p),e},{force:!0}),c}function ku(e){return D(t=e)&&1===t.nodeType&&!wu(t);var t}function Fu(e){if(!ku(e))return"invalid element";let t=!1;try{t=document.activeElement===e}catch(e){console.log(e)}return t}function Du(e){return Me(e)?(e=xr(e),Math.cos(e*Math.PI/180)):null}function Nu(e){return Me(e)?(e=xr(e),Math.tan(e*Math.PI/180)):null}function Mu(){return{sheets:[]}}function Tu(e){return Me(e)?(e=xr(e),Math.sin(e*Math.PI/180)):null}function Qu(e){if(!Fe(e))return!1;let n="YYYY-MM-DD";return e===t(e,n).format(n)}function Lu(e=300){return new function(e){let t=[],n=null,r=Date.now();return Wi(e)||(e=300),e=Yi(e),function(i,...o){Oi(i)?(r=Date.now(),t.push({func:i,input:o}),null===n&&(n=setInterval(()=>{if(0===ar(t))return clearInterval(n),void(n=null);if(Date.now()-r>e){let e=t.pop();t=[];try{e.func(...e.input)}catch(e){console.log("m.func catch",e)}}},10))):console.log("func is not a function")}}(e)}let Ru="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),Uu=Ru.length;function Hu(e=32){let t=[];e=Wi(e)?Yi(e):32;for(let n=0;n<e;n++)t[n]=Ru[0|Math.random()*Uu];return t.join("")}function qu(e,t={}){if(!ku(e))return;let n=be(t,"duration",500);n=xr(n),n<0&&(n=1e3);let r=be(t,"delay",0);r=xr(r),r<0&&(r=0);let i=be(t,"opacityIni",0);i=xr(i),i=Math.min(Math.max(i,0),1),Me(e.style.opacity)&&(i=xr(e.style.opacity));let o=10/n,a=`tag-${Hu()}`;e.setAttribute("dom-fade-tag",a),setTimeout(()=>{let t=setInterval(()=>{try{e.getAttribute("dom-fade-tag")!==a&&clearInterval(t),e.style.opacity=i,i>=1&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),i+=o,i>1&&(i=1)}catch(e){console.log(e),clearInterval(t)}},10)},r)}function Ou(e,t={}){if(!ku(e))return;let n=be(t,"duration",500);n=xr(n),n<0&&(n=1e3);let r=be(t,"delay",0);r=xr(r),r<0&&(r=0);let i=be(t,"opacityIni",1);i=xr(i),i=Math.min(Math.max(i,0),1),Me(e.style.opacity)&&(i=xr(e.style.opacity));let o=10/n,a=`tag-${Hu()}`;e.setAttribute("dom-fade-tag",a),setTimeout(()=>{let t=setInterval(()=>{try{e.getAttribute("dom-fade-tag")!==a&&clearInterval(t),e.style.opacity=i,i<=0&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),i-=o,i<0&&(i=0)}catch(e){console.log(e),clearInterval(t)}},10)},r)}let Pu='<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>',$u={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:Pu},zu={},ju=null,Vu=nc();function Yu(){An(["top-right","top-left","bottom-right","bottom-left"],e=>{!function(e){let t=sa(zu,{position:e});t=Na(t,"timeStart");let n=16;An(t,e=>{zu[e.id].ele||(zu[e.id].ele=document.querySelector(`#${e.id}`)),zu[e.id].loc.top=n,zu[e.id].loc.height=zu[e.id].ele.offsetHeight,n+=zu[e.id].loc.height+16}),An(t,t=>{e.indexOf("bottom-")>=0?(zu[t.id].ele.style.bottom=`${zu[t.id].loc.top}px`,zu[t.id].loc.bottom=zu[t.id].loc.top):zu[t.id].ele.style.top=`${zu[t.id].loc.top}px`,e.indexOf("-left")>=0?(zu[t.id].ele.style.left="16px",zu[t.id].loc.left=16):(zu[t.id].ele.style.right="16px",zu[t.id].loc.right=16),zu[t.id].ele.style.zIndex=2e5,zu[t.id].ele.style.opacity=1,zu[t.id].ele.style.transform="",zu[t.id].ele.style.transform=null})}(e)})}function Wu(e){zu[e].ele&&zu[e].ele.parentNode.removeChild(zu[e].ele),zu[e]&&delete zu[e],Yu()}function Gu(e,t){if(!ku(e))return"invalid eleParent";if(ke(t))e.insertAdjacentHTML("beforeend",t);else{if(!ku(t))return"invalid itemChild";e.appendChild(t)}}function Ju(){return null!==navigator.userAgent.toLowerCase().match(/rv:([\d.]+)\) like gecko/)}function _u(e){if(!e)return"invalid event";if(!e.cancelable)return"event is not cancelable";try{Ju()?e.cancelBubble=!0:e.stopPropagation(),e.preventDefault()}catch(e){}}var Xu;Vu.ttWAlertCancel=function(e){Wu(e)},Vu.ttWAlertFadeIn=function(e){qu(document.querySelector(`#${e}`))},Vu.ttWAlertFadeOut=function(e){Ou(document.querySelector(`#${e}`))},function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(Xu||(Xu={}));var Ku;!function(e){e.AUTO="auto",e.DARK="dark",e.LIGHT="light"}(Ku||(Ku={}));const Zu=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");function ef(e){return e?e.replace(/\\/g,"/"):e}function tf(e){const t=e.length;let n=-1/0;for(let r=0;r<t;r++)n=Math.max(n,e[r]);return n}function nf(e,t){const n=e.split(".");return n.length>1?n[n.length-1]:t}function rf(e,t){return t.reduce((t,n)=>t||e.startsWith(n),!1)}const of=["a/","b/","i/","w/","c/","o/"];function af(e,t,n){const r=void 0!==n?[...of,n]:of,i=t?new RegExp(`^${o=t,o.replace(Zu,"\\$&")} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$');var o;const[,a=""]=i.exec(e)||[],s=r.find(e=>0===a.indexOf(e));return(s?a.slice(s.length):a).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function sf(e,t={}){const n=[];let r=null,i=null,o=null,a=null,s=null,l=null,c=null;const u="--- ",f="+++ ",d="@@",h=/^old mode (\d{6})/,p=/^new mode (\d{6})/,g=/^deleted file mode (\d{6})/,m=/^new file mode (\d{6})/,y=/^copy from "?(.+)"?/,v=/^copy to "?(.+)"?/,A=/^rename from "?(.+)"?/,b=/^rename to "?(.+)"?/,w=/^similarity index (\d+)%/,I=/^dissimilarity index (\d+)%/,x=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,C=/^Binary files (.*) and (.*) differ/,B=/^GIT binary patch/,E=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,S=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,k=/^new file mode (\d{6})/,F=/^deleted file mode (\d{6}),(\d{6})/,D=e.replace(/\/g,"").replace(/\r\n?/g,"\n").split("\n");function N(){null!==i&&null!==r&&(r.blocks.push(i),i=null)}function M(){null!==r&&(r.oldName||null===l||(r.oldName=l),r.newName||null===c||(r.newName=c),r.newName&&(n.push(r),r=null)),l=null,c=null}function T(){N(),M(),r={blocks:[],deletedLines:0,addedLines:0}}function Q(e){let t;N(),null!==r&&((t=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(r.isCombined=!1,o=parseInt(t[1],10),s=parseInt(t[2],10)):(t=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(r.isCombined=!0,o=parseInt(t[1],10),a=parseInt(t[2],10),s=parseInt(t[3],10)):(e.startsWith(d)&&console.error("Failed to parse lines, starting in 0!"),o=0,s=0,r.isCombined=!1)),i={lines:[],oldStartLine:o,oldStartLine2:a,newStartLine:s,header:e}}return D.forEach((e,a)=>{if(!e||e.startsWith("*"))return;let N;const M=D[a-1],L=D[a+1],R=D[a+2];if(e.startsWith("diff --git")||e.startsWith("diff --combined")){T();if((N=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(e))&&(l=af(N[1],void 0,t.dstPrefix),c=af(N[2],void 0,t.srcPrefix)),null===r)throw new Error("Where is my file !!!");return void(r.isGitDiff=!0)}if(e.startsWith("Binary files")&&!(null==r?void 0:r.isGitDiff)){T();if((N=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(e))&&(l=af(N[1],void 0,t.dstPrefix),c=af(N[2],void 0,t.srcPrefix)),null===r)throw new Error("Where is my file !!!");return void(r.isBinary=!0)}if((!r||!r.isGitDiff&&r&&e.startsWith(u)&&L.startsWith(f)&&R.startsWith(d))&&T(),null==r?void 0:r.isTooBig)return;if(r&&("number"==typeof t.diffMaxChanges&&r.addedLines+r.deletedLines>t.diffMaxChanges||"number"==typeof t.diffMaxLineLength&&e.length>t.diffMaxLineLength)){r.isTooBig=!0,r.addedLines=0,r.deletedLines=0,r.blocks=[],i=null;return void Q("function"==typeof t.diffTooBigMessage?t.diffTooBigMessage(n.length):"Diff too big to be displayed")}if(e.startsWith(u)&&L.startsWith(f)||e.startsWith(f)&&M.startsWith(u)){if(r&&!r.oldName&&e.startsWith("--- ")&&(N=function(e,t){return af(e,"---",t)}(e,t.srcPrefix)))return r.oldName=N,void(r.language=nf(r.oldName,r.language));if(r&&!r.newName&&e.startsWith("+++ ")&&(N=function(e,t){return af(e,"+++",t)}(e,t.dstPrefix)))return r.newName=N,void(r.language=nf(r.newName,r.language))}if(r&&(e.startsWith(d)||r.isGitDiff&&r.oldName&&r.newName&&!i))return void Q(e);if(i&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))return void function(e){if(null===r||null===i||null===o||null===s)return;const t={content:e},n=r.isCombined?["+ "," +","++"]:["+"],a=r.isCombined?["- "," -","--"]:["-"];rf(e,n)?(r.addedLines++,t.type=Xu.INSERT,t.oldNumber=void 0,t.newNumber=s++):rf(e,a)?(r.deletedLines++,t.type=Xu.DELETE,t.oldNumber=o++,t.newNumber=void 0):(t.type=Xu.CONTEXT,t.oldNumber=o++,t.newNumber=s++),i.lines.push(t)}(e);const U=!function(e,t){let n=t;for(;n<D.length-3;){if(e.startsWith("diff"))return!1;if(D[n].startsWith(u)&&D[n+1].startsWith(f)&&D[n+2].startsWith(d))return!0;n++}return!1}(e,a);if(null===r)throw new Error("Where is my file !!!");(N=h.exec(e))?r.oldMode=N[1]:(N=p.exec(e))?r.newMode=N[1]:(N=g.exec(e))?(r.deletedFileMode=N[1],r.isDeleted=!0):(N=m.exec(e))?(r.newFileMode=N[1],r.isNew=!0):(N=y.exec(e))?(U&&(r.oldName=N[1]),r.isCopy=!0):(N=v.exec(e))?(U&&(r.newName=N[1]),r.isCopy=!0):(N=A.exec(e))?(U&&(r.oldName=N[1]),r.isRename=!0):(N=b.exec(e))?(U&&(r.newName=N[1]),r.isRename=!0):(N=C.exec(e))?(r.isBinary=!0,r.oldName=af(N[1],void 0,t.srcPrefix),r.newName=af(N[2],void 0,t.dstPrefix),Q("Binary file")):B.test(e)?(r.isBinary=!0,Q(e)):(N=w.exec(e))?r.unchangedPercentage=parseInt(N[1],10):(N=I.exec(e))?r.changedPercentage=parseInt(N[1],10):(N=x.exec(e))?(r.checksumBefore=N[1],r.checksumAfter=N[2],N[3]&&(r.mode=N[3])):(N=E.exec(e))?(r.checksumBefore=[N[2],N[3]],r.checksumAfter=N[1]):(N=S.exec(e))?(r.oldMode=[N[2],N[3]],r.newMode=N[1]):(N=k.exec(e))?(r.newFileMode=N[1],r.isNew=!0):(N=F.exec(e))&&(r.deletedFileMode=N[1],r.isDeleted=!0)}),N(),M(),n}class lf{diff(e,t,n={}){let r;"function"==typeof n?(r=n,n={}):"callback"in n&&(r=n.callback);const i=this.castInput(e,n),o=this.castInput(t,n),a=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(o,n));return this.diffWithOptionsObj(a,s,n,r)}diffWithOptionsObj(e,t,n,r){var i;const o=e=>(e=this.postProcess(e,n),r?void setTimeout(function(){r(e)},0):e),a=t.length,s=e.length;let l=1,c=a+s;null!=n.maxEditLength&&(c=Math.min(c,n.maxEditLength));const u=null!==(i=n.timeout)&&void 0!==i?i:1/0,f=Date.now()+u,d=[{oldPos:-1,lastComponent:void 0}];let h=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=s&&h+1>=a)return o(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,g=1/0;const m=()=>{for(let r=Math.max(p,-l);r<=Math.min(g,l);r+=2){let i;const l=d[r-1],c=d[r+1];l&&(d[r-1]=void 0);let u=!1;if(c){const e=c.oldPos-r;u=c&&0<=e&&e<a}const f=l&&l.oldPos+1<s;if(u||f){if(i=!f||u&&l.oldPos<c.oldPos?this.addToPath(c,!0,!1,0,n):this.addToPath(l,!1,!0,1,n),h=this.extractCommon(i,t,e,r,n),i.oldPos+1>=s&&h+1>=a)return o(this.buildValues(i.lastComponent,t,e))||!0;d[r]=i,i.oldPos+1>=s&&(g=Math.min(g,r-1)),h+1>=a&&(p=Math.max(p,r+1))}else d[r]=void 0}l++};if(r)!function e(){setTimeout(function(){if(l>c||Date.now()>f)return r(void 0);m()||e()},0)}();else for(;l<=c&&Date.now()<=f;){const e=m();if(e)return e}}addToPath(e,t,n,r,i){const o=e.lastComponent;return o&&!i.oneChangePerToken&&o.added===t&&o.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:o.count+1,added:t,removed:n,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:o}}}extractCommon(e,t,n,r,i){const o=t.length,a=n.length;let s=e.oldPos,l=s-r,c=0;for(;l+1<o&&s+1<a&&this.equals(n[s+1],t[l+1],i);)l++,s++,c++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return c&&!i.oneChangePerToken&&(e.lastComponent={count:c,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,l}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){const r=[];let i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();const o=r.length;let a=0,s=0,l=0;for(;a<o;a++){const e=r[a];if(e.removed)e.value=this.join(n.slice(l,l+e.count)),l+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){const r=n[l+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(l+=e.count)}}return r}}const cf=new class extends lf{};const uf="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";const ff=new class extends lf{tokenize(e){const t=new RegExp(`(\\r?\\n)|[${uf}]+|[^\\S\\n\\r]+|[^${uf}]`,"ug");return e.match(t)||[]}};function df(e){return(t,n)=>{const r=e(t).trim(),i=e(n).trim();return function(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const n=[];let r,i;for(r=0;r<=t.length;r++)n[r]=[r];for(i=0;i<=e.length;i++)n[0][i]=i;for(r=1;r<=t.length;r++)for(i=1;i<=e.length;i++)t.charAt(r-1)===e.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[t.length][e.length]}(r,i)/(r.length+i.length)}}function hf(e){return function t(n,r,i=0,o=new Map){const a=function(t,n,r=new Map){let i,o=1/0;for(let a=0;a<t.length;++a)for(let s=0;s<n.length;++s){const l=JSON.stringify([t[a],n[s]]);let c;r.has(l)&&(c=r.get(l))||(c=e(t[a],n[s]),r.set(l,c)),c<o&&(o=c,i={indexA:a,indexB:s,score:o})}return i}(n,r,o);if(!a||n.length+r.length<3)return[[n,r]];const s=n.slice(0,a.indexA),l=r.slice(0,a.indexB),c=[n[a.indexA]],u=[r[a.indexB]],f=a.indexA+1,d=a.indexB+1,h=n.slice(f),p=r.slice(d),g=t(s,l,i+1,o),m=t(c,u,i+1,o),y=t(h,p,i+1,o);let v=m;return(a.indexA>0||a.indexB>0)&&(v=g.concat(v)),(n.length>f||r.length>d)&&(v=v.concat(y)),v}}const pf={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},gf={matching:"none",matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:"word",colorScheme:Ku.LIGHT},mf="/",yf=df(e=>e.value),vf=hf(yf);function Af(e){return-1!==e.indexOf("dev/null")}function bf(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function wf(e){switch(e){case Xu.CONTEXT:return pf.CONTEXT;case Xu.INSERT:return pf.INSERTS;case Xu.DELETE:return pf.DELETES}}function If(e){switch(e){case Ku.DARK:return"d2h-dark-color-scheme";case Ku.AUTO:return"d2h-auto-color-scheme";case Ku.LIGHT:default:return"d2h-light-color-scheme"}}function xf(e){return e.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function Cf(e,t,n=!0){const r=function(e){return e?2:1}(t);return{prefix:e.substring(0,r),content:n?xf(e.substring(r)):e.substring(r)}}function Bf(e){const t=ef(e.oldName),n=ef(e.newName);if(t===n||Af(t)||Af(n))return Af(n)?t:n;{const e=[],r=[],i=t.split(mf),o=n.split(mf);let a=0,s=i.length-1,l=o.length-1;for(;a<s&&a<l&&i[a]===o[a];)e.push(o[a]),a+=1;for(;s>a&&l>a&&i[s]===o[l];)r.unshift(o[l]),s-=1,l-=1;const c=e.join(mf),u=r.join(mf),f=i.slice(a,s+1).join(mf),d=o.slice(a,l+1).join(mf);return c.length&&u.length?c+mf+"{"+f+" → "+d+"}"+mf+u:c.length?c+mf+"{"+f+" → "+d+"}":u.length?"{"+f+" → "+d+"}"+mf+u:t+" → "+n}}function Ef(e){return`d2h-${function(e){let t,n,r,i=0;for(t=0,r=e.length;t<r;t++)n=e.charCodeAt(t),i=(i<<5)-i+n,i|=0;return i}(Bf(e)).toString().slice(-6)}`}function Sf(e){let t="file-changed";return e.isRename||e.isCopy?t="file-renamed":e.isNew?t="file-added":e.isDeleted?t="file-deleted":e.newName!==e.oldName&&(t="file-renamed"),t}function kf(e,t,n,r={}){const{matching:i,maxLineLengthHighlight:o,matchWordsThreshold:a,diffStyle:s}=Object.assign(Object.assign({},gf),r),l=Cf(e,n,!1),c=Cf(t,n,!1);if(l.content.length>o||c.content.length>o)return{oldLine:{prefix:l.prefix,content:xf(l.content)},newLine:{prefix:c.prefix,content:xf(c.content)}};const u="char"===s?(f=l.content,d=c.content,cf.diff(f,d,h)):function(e,t,n){return ff.diff(e,t,n)}(l.content,c.content);var f,d,h;const p=[];if("word"===s&&"words"===i){const e=u.filter(e=>e.removed),t=u.filter(e=>e.added);vf(t,e).forEach(e=>{if(1===e[0].length&&1===e[1].length){yf(e[0][0],e[1][0])<a&&(p.push(e[0][0]),p.push(e[1][0]))}})}const g=u.reduce((e,t)=>{const n=t.added?"ins":t.removed?"del":null,r=p.indexOf(t)>-1?' class="d2h-change"':"",i=xf(t.value);return null!==n?`${e}<${n}${r}>${i}</${n}>`:`${e}${i}`},"");return{oldLine:{prefix:l.prefix,content:(m=g,m.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:c.prefix,content:bf(g)}};var m}const Ff="file-summary",Df={colorScheme:gf.colorScheme};class Nf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Df),t)}render(e){const t=e.map(e=>this.hoganUtils.render(Ff,"line",{fileHtmlId:Ef(e),oldName:e.oldName,newName:e.newName,fileName:Bf(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:this.hoganUtils.template("icon",Sf(e))})).join("\n");return this.hoganUtils.render(Ff,"wrapper",{colorScheme:If(this.config.colorScheme),filesNumber:e.length,files:t})}}const Mf=Object.assign(Object.assign({},gf),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Tf="generic",Qf="line-by-line";class Lf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Mf),t)}render(e){const t=e.map(e=>{let t;return t=e.blocks.length?this.generateFileHtml(e):this.generateEmptyDiff(),this.makeFileDiffHtml(e,t)}).join("\n");return this.hoganUtils.render(Tf,"wrapper",{colorScheme:If(this.config.colorScheme),content:t})}makeFileDiffHtml(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";const n=this.hoganUtils.template(Qf,"file-diff"),r=this.hoganUtils.template(Tf,"file-path"),i=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",Sf(e));return n.render({file:e,fileHtmlId:Ef(e),diffs:t,filePath:r.render({fileDiffName:Bf(e)},{fileIcon:i,fileTag:o})})}generateEmptyDiff(){return this.hoganUtils.render(Tf,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:pf})}generateFileHtml(e){const t=hf(df(t=>Cf(t.content,e.isCombined).content));return e.blocks.map(n=>{let r=this.hoganUtils.render(Tf,"block-header",{CSSLineClass:pf,blockHeader:e.isTooBig?n.header:xf(n.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(n).forEach(([n,i,o])=>{if(i.length&&o.length&&!n.length)this.applyRematchMatching(i,o,t).map(([t,n])=>{const{left:i,right:o}=this.processChangedLines(e,e.isCombined,t,n);r+=i,r+=o});else if(n.length)n.forEach(t=>{const{prefix:n,content:i}=Cf(t.content,e.isCombined);r+=this.generateSingleLineHtml(e,{type:pf.CONTEXT,prefix:n,content:i,oldNumber:t.oldNumber,newNumber:t.newNumber})});else if(i.length||o.length){const{left:t,right:n}=this.processChangedLines(e,e.isCombined,i,o);r+=t,r+=n}else console.error("Unknown state reached while processing groups of lines",n,i,o)}),r}).join("\n")}applyLineGroupping(e){const t=[];let n=[],r=[];for(let i=0;i<e.lines.length;i++){const o=e.lines[i];(o.type!==Xu.INSERT&&r.length||o.type===Xu.CONTEXT&&n.length>0)&&(t.push([[],n,r]),n=[],r=[]),o.type===Xu.CONTEXT?t.push([[o],[],[]]):o.type===Xu.INSERT&&0===n.length?t.push([[],[],[o]]):o.type===Xu.INSERT&&n.length>0?r.push(o):o.type===Xu.DELETE&&n.push(o)}return(n.length||r.length)&&(t.push([[],n,r]),n=[],r=[]),t}applyRematchMatching(e,t,n){const r=e.length*t.length,i=tf(e.concat(t).map(e=>e.content.length));return r<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?n(e,t):[[e,t]]}processChangedLines(e,t,n,r){const i={right:"",left:""},o=Math.max(n.length,r.length);for(let a=0;a<o;a++){const o=n[a],s=r[a],l=void 0!==o&&void 0!==s?kf(o.content,s.content,t,this.config):void 0,c=void 0!==o&&void 0!==o.oldNumber?Object.assign(Object.assign({},void 0!==l?{prefix:l.oldLine.prefix,content:l.oldLine.content,type:pf.DELETE_CHANGES}:Object.assign(Object.assign({},Cf(o.content,t)),{type:wf(o.type)})),{oldNumber:o.oldNumber,newNumber:o.newNumber}):void 0,u=void 0!==s&&void 0!==s.newNumber?Object.assign(Object.assign({},void 0!==l?{prefix:l.newLine.prefix,content:l.newLine.content,type:pf.INSERT_CHANGES}:Object.assign(Object.assign({},Cf(s.content,t)),{type:wf(s.type)})),{oldNumber:s.oldNumber,newNumber:s.newNumber}):void 0,{left:f,right:d}=this.generateLineHtml(e,c,u);i.left+=f,i.right+=d}return i}generateLineHtml(e,t,n){return{left:this.generateSingleLineHtml(e,t),right:this.generateSingleLineHtml(e,n)}}generateSingleLineHtml(e,t){if(void 0===t)return"";const n=this.hoganUtils.render(Qf,"numbers",{oldNumber:t.oldNumber||"",newNumber:t.newNumber||""});return this.hoganUtils.render(Tf,"line",{type:t.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===t.prefix?"&nbsp;":t.prefix,content:t.content,lineNumber:n,line:t,file:e})}}const Rf=Object.assign(Object.assign({},gf),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Uf="generic";class Hf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Rf),t)}render(e){const t=e.map(e=>{let t;return t=e.blocks.length?this.generateFileHtml(e):this.generateEmptyDiff(),this.makeFileDiffHtml(e,t)}).join("\n");return this.hoganUtils.render(Uf,"wrapper",{colorScheme:If(this.config.colorScheme),content:t})}makeFileDiffHtml(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";const n=this.hoganUtils.template("side-by-side","file-diff"),r=this.hoganUtils.template(Uf,"file-path"),i=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",Sf(e));return n.render({file:e,fileHtmlId:Ef(e),diffs:t,filePath:r.render({fileDiffName:Bf(e)},{fileIcon:i,fileTag:o})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Uf,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:pf})}}generateFileHtml(e){const t=hf(df(t=>Cf(t.content,e.isCombined).content));return e.blocks.map(n=>{const r={left:this.makeHeaderHtml(n.header,e),right:this.makeHeaderHtml("")};return this.applyLineGroupping(n).forEach(([n,i,o])=>{if(i.length&&o.length&&!n.length)this.applyRematchMatching(i,o,t).map(([t,n])=>{const{left:i,right:o}=this.processChangedLines(e.isCombined,t,n);r.left+=i,r.right+=o});else if(n.length)n.forEach(t=>{const{prefix:n,content:i}=Cf(t.content,e.isCombined),{left:o,right:a}=this.generateLineHtml({type:pf.CONTEXT,prefix:n,content:i,number:t.oldNumber},{type:pf.CONTEXT,prefix:n,content:i,number:t.newNumber});r.left+=o,r.right+=a});else if(i.length||o.length){const{left:t,right:n}=this.processChangedLines(e.isCombined,i,o);r.left+=t,r.right+=n}else console.error("Unknown state reached while processing groups of lines",n,i,o)}),r}).reduce((e,t)=>({left:e.left+t.left,right:e.right+t.right}),{left:"",right:""})}applyLineGroupping(e){const t=[];let n=[],r=[];for(let i=0;i<e.lines.length;i++){const o=e.lines[i];(o.type!==Xu.INSERT&&r.length||o.type===Xu.CONTEXT&&n.length>0)&&(t.push([[],n,r]),n=[],r=[]),o.type===Xu.CONTEXT?t.push([[o],[],[]]):o.type===Xu.INSERT&&0===n.length?t.push([[],[],[o]]):o.type===Xu.INSERT&&n.length>0?r.push(o):o.type===Xu.DELETE&&n.push(o)}return(n.length||r.length)&&(t.push([[],n,r]),n=[],r=[]),t}applyRematchMatching(e,t,n){const r=e.length*t.length,i=tf(e.concat(t).map(e=>e.content.length));return r<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?n(e,t):[[e,t]]}makeHeaderHtml(e,t){return this.hoganUtils.render(Uf,"block-header",{CSSLineClass:pf,blockHeader:(null==t?void 0:t.isTooBig)?e:xf(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(e,t,n){const r={right:"",left:""},i=Math.max(t.length,n.length);for(let o=0;o<i;o++){const i=t[o],a=n[o],s=void 0!==i&&void 0!==a?kf(i.content,a.content,e,this.config):void 0,l=void 0!==i&&void 0!==i.oldNumber?Object.assign(Object.assign({},void 0!==s?{prefix:s.oldLine.prefix,content:s.oldLine.content,type:pf.DELETE_CHANGES}:Object.assign(Object.assign({},Cf(i.content,e)),{type:wf(i.type)})),{number:i.oldNumber}):void 0,c=void 0!==a&&void 0!==a.newNumber?Object.assign(Object.assign({},void 0!==s?{prefix:s.newLine.prefix,content:s.newLine.content,type:pf.INSERT_CHANGES}:Object.assign(Object.assign({},Cf(a.content,e)),{type:wf(a.type)})),{number:a.newNumber}):void 0,{left:u,right:f}=this.generateLineHtml(l,c);r.left+=u,r.right+=f}return r}generateLineHtml(e,t){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(t)}}generateSingleHtml(e){const t="d2h-code-side-linenumber",n="d2h-code-side-line";return this.hoganUtils.render(Uf,"line",{type:(null==e?void 0:e.type)||`${pf.CONTEXT} d2h-emptyplaceholder`,lineClass:void 0!==e?t:`${t} d2h-code-side-emptyplaceholder`,contentClass:void 0!==e?n:`${n} d2h-code-side-emptyplaceholder`,prefix:" "===(null==e?void 0:e.prefix)?"&nbsp;":null==e?void 0:e.prefix,content:null==e?void 0:e.content,lineNumber:null==e?void 0:e.number})}}var qf={};!function(e){!function(e){var t=/\S/,n=/\"/g,r=/\n/g,i=/\r/g,o=/\\/g,a=/\u2028/,s=/\u2029/;function l(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function c(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function u(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var r=1,i=e.length;r<i;r++)if(t.charAt(n+r)!=e.charAt(r))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(n,r){var i=n.length,o=0,a=null,s=null,f="",d=[],h=!1,p=0,g=0,m="{{",y="}}";function v(){f.length>0&&(d.push({tag:"_t",text:new String(f)}),f="")}function A(n,r){if(v(),n&&function(){for(var n=!0,r=g;r<d.length;r++)if(!(n=e.tags[d[r].tag]<e.tags._v||"_t"==d[r].tag&&null===d[r].text.match(t)))return!1;return n}())for(var i,o=g;o<d.length;o++)d[o].text&&((i=d[o+1])&&">"==i.tag&&(i.indent=d[o].text.toString()),d.splice(o,1));else r||d.push({tag:"\n"});h=!1,g=d.length}function b(e,t){var n="="+y,r=e.indexOf(n,t),i=c(e.substring(e.indexOf("=",t)+1,r)).split(" ");return m=i[0],y=i[i.length-1],r+n.length-1}for(r&&(r=r.split(" "),m=r[0],y=r[1]),p=0;p<i;p++)0==o?u(m,n,p)?(--p,v(),o=1):"\n"==n.charAt(p)?A(h):f+=n.charAt(p):1==o?(p+=m.length-1,"="==(a=(s=e.tags[n.charAt(p+1)])?n.charAt(p+1):"_v")?(p=b(n,p),o=0):(s&&p++,o=2),h=p):u(y,n,p)?(d.push({tag:a,n:c(f),otag:m,ctag:y,i:"/"==a?h-m.length:p+y.length}),f="",p+=y.length-1,o=0,"{"==a&&("}}"==y?p++:l(d[d.length-1]))):f+=n.charAt(p);return A(h,!0),d};var f={_t:!0,"\n":!0,$:!0,"/":!0};function d(t,n,r,i){var o,a=[],s=null,l=null;for(o=r[r.length-1];t.length>0;){if(l=t.shift(),o&&"<"==o.tag&&!(l.tag in f))throw new Error("Illegal content in < super tag.");if(e.tags[l.tag]<=e.tags.$||h(l,i))r.push(l),l.nodes=d(t,l.tag,r,i);else{if("/"==l.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+l.n);if(s=r.pop(),l.n!=s.n&&!p(l.n,s.n,i))throw new Error("Nesting error: "+s.n+" vs. "+l.n);return s.end=l.i,a}"\n"==l.tag&&(l.last=0==t.length||"\n"==t[0].tag)}a.push(l)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return a}function h(e,t){for(var n=0,r=t.length;n<r;n++)if(t[n].o==e.n)return e.tag="#",!0}function p(e,t,n){for(var r=0,i=n.length;r<i;r++)if(n[r].c==e&&n[r].o==t)return!0}function g(e){var t=[];for(var n in e.partials)t.push('"'+y(n)+'":{name:"'+y(e.partials[n].name)+'", '+g(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var n in e)t.push('"'+y(n)+'": function(c,p,t,i) {'+e[n]+"}");return"{ "+t.join(",")+" }"}(e.subs)}e.stringify=function(t,n,r){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+g(t)+"}"};var m=0;function y(e){return e.replace(o,"\\\\").replace(n,'\\"').replace(r,"\\n").replace(i,"\\r").replace(a,"\\u2028").replace(s,"\\u2029")}function v(e){return~e.indexOf(".")?"d":"f"}function A(e,t){var n="<"+(t.prefix||"")+e.n+m++;return t.partials[n]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+y(n)+'",c,p,"'+(e.indent||"")+'"));',n}function b(e,t){t.code+="t.b(t.t(t."+v(e.n)+'("'+y(e.n)+'",c,p,0)));'}function w(e){return"t.b("+e+");"}e.generate=function(t,n,r){m=0;var i={code:"",subs:{},partials:{}};return e.walk(t,i),r.asString?this.stringify(i,n,r):this.makeTemplate(i,n,r)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,n){var r=this.makePartials(e);return r.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(r,t,this,n)},e.makePartials=function(e){var t,n={subs:{},partials:e.partials,name:e.name};for(t in n.partials)n.partials[t]=this.makePartials(n.partials[t]);for(t in e.subs)n.subs[t]=new Function("c","p","t","i",e.subs[t]);return n},e.codegen={"#":function(t,n){n.code+="if(t.s(t."+v(t.n)+'("'+y(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,n),n.code+="});c.pop();}"},"^":function(t,n){n.code+="if(!t.s(t."+v(t.n)+'("'+y(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,n),n.code+="};"},">":A,"<":function(t,n){var r={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,r);var i=n.partials[A(t,n)];i.subs=r.subs,i.partials=r.partials},$:function(t,n){var r={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,r),n.subs[t.n]=r.code,n.inPartial||(n.code+='t.sub("'+y(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=w('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+v(e.n)+'("'+y(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=w('"'+y(e.text)+'"')},"{":b,"&":b},e.walk=function(t,n){for(var r,i=0,o=t.length;i<o;i++)(r=e.codegen[t[i].tag])&&r(t[i],n);return n},e.parse=function(e,t,n){return d(e,0,[],(n=n||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var r=e.cacheKey(t,n),i=this.cache[r];if(i){var o=i.partials;for(var a in o)delete o[a].instance;return i}return i=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[r]=i}}(e)}(qf);var Of={};!function(e){!function(e){function t(e,t,n){var r;return t&&"object"==typeof t&&(void 0!==t[e]?r=t[e]:n&&t.get&&"function"==typeof t.get&&(r=t.get(e))),r}e.Template=function(e,t,n,r){e=e||{},this.r=e.code||this.r,this.c=n,this.options=r||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:function(e){return e=l(e),s.test(e)?e.replace(n,"&amp;").replace(r,"&lt;").replace(i,"&gt;").replace(o,"&#39;").replace(a,"&quot;"):e},t:l,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var n=this.partials[e],r=t[n.name];if(n.instance&&n.base==r)return n.instance;if("string"==typeof r){if(!this.c)throw new Error("No compiler available.");r=this.c.compile(r,this.options)}if(!r)return null;if(this.partials[e].base=r,n.subs){for(key in t.stackText||(t.stackText={}),n.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);r=function(e,t,n,r,i,o){function a(){}function s(){}var l;a.prototype=e,s.prototype=e.subs;var c=new a;for(l in c.subs=new s,c.subsText={},c.buf="",r=r||{},c.stackSubs=r,c.subsText=o,t)r[l]||(r[l]=t[l]);for(l in r)c.subs[l]=r[l];for(l in i=i||{},c.stackPartials=i,n)i[l]||(i[l]=n[l]);for(l in i)c.partials[l]=i[l];return c}(r,n.subs,n.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=r,r},rp:function(e,t,n,r){var i=this.ep(e,n);return i?i.ri(t,n,r):""},rs:function(e,t,n){var r=e[e.length-1];if(c(r))for(var i=0;i<r.length;i++)e.push(r[i]),n(e,t,this),e.pop();else n(e,t,this)},s:function(e,t,n,r,i,o,a){var s;return(!c(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,n,r,i,o,a)),s=!!e,!r&&s&&t&&t.push("object"==typeof e?e:t[t.length-1]),s)},d:function(e,n,r,i){var o,a=e.split("."),s=this.f(a[0],n,r,i),l=this.options.modelGet,u=null;if("."===e&&c(n[n.length-2]))s=n[n.length-1];else for(var f=1;f<a.length;f++)void 0!==(o=t(a[f],s,l))?(u=s,s=o):s="";return!(i&&!s)&&(i||"function"!=typeof s||(n.push(u),s=this.mv(s,n,r),n.pop()),s)},f:function(e,n,r,i){for(var o=!1,a=!1,s=this.options.modelGet,l=n.length-1;l>=0;l--)if(void 0!==(o=t(e,n[l],s))){a=!0;break}return a?(i||"function"!=typeof o||(o=this.mv(o,n,r)),o):!i&&""},ls:function(e,t,n,r,i,o){var a=this.options.delimiters;return this.options.delimiters=o,this.b(this.ct(l(e.call(t,i,n)),t,r)),this.options.delimiters=a,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,r,i,o,a){var s,l=t[t.length-1],c=e.call(l);return"function"==typeof c?!!r||(s=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,l,t,n,s.substring(i,o),a)):c},mv:function(e,t,n){var r=t[t.length-1],i=e.call(r);return"function"==typeof i?this.ct(l(i.call(r)),r,n):i},sub:function(e,t,n,r){var i=this.subs[e];i&&(this.activeSub=e,i(t,n,this,r),this.activeSub=!1)}};var n=/&/g,r=/</g,i=/>/g,o=/\'/g,a=/\"/g,s=/[&<>\"\']/;function l(e){return String(null==e?"":e)}var c=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(e)}(Of);var Pf=qf;Pf.Template=Of.Template,Pf.template=Pf.Template;var $f=Pf;const zf={};zf["file-summary-line"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<li class="d2h-file-list-line">'),r.b("\n"+n),r.b(' <span class="d2h-file-name-wrapper">'),r.b("\n"+n),r.b(r.rp("<fileIcon0",e,t," ")),r.b(' <a href="#'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-name">'),r.b(r.v(r.f("fileName",e,t,0))),r.b("</a>"),r.b("\n"+n),r.b(' <span class="d2h-file-stats">'),r.b("\n"+n),r.b(' <span class="d2h-lines-added">'),r.b(r.v(r.f("addedLines",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(' <span class="d2h-lines-deleted">'),r.b(r.v(r.f("deletedLines",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(" </span>"),r.b("\n"+n),r.b(" </span>"),r.b("\n"+n),r.b("</li>"),r.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),zf["file-summary-wrapper"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div class="d2h-file-list-wrapper '),r.b(r.v(r.f("colorScheme",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="d2h-file-list-header">'),r.b("\n"+n),r.b(' <span class="d2h-file-list-title">Files changed ('),r.b(r.v(r.f("filesNumber",e,t,0))),r.b(")</span>"),r.b("\n"+n),r.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),r.b("\n"+n),r.b(' <a class="d2h-file-switch d2h-show">show</a>'),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <ol class="d2h-file-list">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("files",e,t,0))),r.b("\n"+n),r.b(" </ol>"),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),zf["generic-block-header"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("lineClass",e,t,0))),r.b(" "),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('"></td>'),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.s(r.f("blockHeader",e,t,1),e,t,0,156,173,"{{ }}")&&(r.rs(e,t,function(e,t,n){n.b(n.t(n.f("blockHeader",e,t,0)))}),e.pop()),r.s(r.f("blockHeader",e,t,1),e,t,1,0,0,"")||r.b("&nbsp;"),r.b("</div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),r.fl()},partials:{},subs:{}}),zf["generic-empty-diff"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.b("\n"+n),r.b(" File without changes"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),r.fl()},partials:{},subs:{}}),zf["generic-file-path"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-file-name-wrapper">'),r.b("\n"+n),r.b(r.rp("<fileIcon0",e,t," ")),r.b(' <span class="d2h-file-name">'),r.b(r.v(r.f("fileDiffName",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(r.rp("<fileTag1",e,t," ")),r.b("</span>"),r.b("\n"+n),r.b('<label class="d2h-file-collapse">'),r.b("\n"+n),r.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),r.b("\n"+n),r.b(" Viewed"),r.b("\n"+n),r.b("</label>"),r.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),zf["generic-line"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("lineClass",e,t,0))),r.b(" "),r.b(r.v(r.f("type",e,t,0))),r.b('">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("lineNumber",e,t,0))),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("type",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.b("\n"+n),r.s(r.f("prefix",e,t,1),e,t,0,162,238,"{{ }}")&&(r.rs(e,t,function(e,t,r){r.b(' <span class="d2h-code-line-prefix">'),r.b(r.t(r.f("prefix",e,t,0))),r.b("</span>"),r.b("\n"+n)}),e.pop()),r.s(r.f("prefix",e,t,1),e,t,1,0,0,"")||(r.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),r.b("\n"+n)),r.s(r.f("content",e,t,1),e,t,0,371,445,"{{ }}")&&(r.rs(e,t,function(e,t,r){r.b(' <span class="d2h-code-line-ctn">'),r.b(r.t(r.f("content",e,t,0))),r.b("</span>"),r.b("\n"+n)}),e.pop()),r.s(r.f("content",e,t,1),e,t,1,0,0,"")||(r.b(' <span class="d2h-code-line-ctn"><br></span>'),r.b("\n"+n)),r.b(" </div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),r.fl()},partials:{},subs:{}}),zf["generic-wrapper"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div class="d2h-wrapper '),r.b(r.v(r.f("colorScheme",e,t,0))),r.b('">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("content",e,t,0))),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),zf["icon-file-added"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),r.b("\n"+n),r.b(' width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),zf["icon-file-changed"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),zf["icon-file-deleted"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),zf["icon-file-renamed"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),zf["icon-file"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),r.b("\n"+n),r.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),zf["line-by-line-file-diff"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div id="'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-wrapper" data-lang="'),r.b(r.v(r.d("file.language",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="d2h-file-header">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("filePath",e,t,0))),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-file-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("diffs",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),zf["line-by-line-numbers"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div class="line-num1">'),r.b(r.v(r.f("oldNumber",e,t,0))),r.b("</div>"),r.b("\n"+n),r.b('<div class="line-num2">'),r.b(r.v(r.f("newNumber",e,t,0))),r.b("</div>"),r.fl()},partials:{},subs:{}}),zf["side-by-side-file-diff"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div id="'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-wrapper" data-lang="'),r.b(r.v(r.d("file.language",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="d2h-file-header">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("filePath",e,t,0))),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-files-diff">'),r.b("\n"+n),r.b(' <div class="d2h-file-side-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.d("diffs.left",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-file-side-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.d("diffs.right",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),zf["tag-file-added"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),r.fl()},partials:{},subs:{}}),zf["tag-file-changed"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),r.fl()},partials:{},subs:{}}),zf["tag-file-deleted"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),r.fl()},partials:{},subs:{}}),zf["tag-file-renamed"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),r.fl()},partials:{},subs:{}});class jf{constructor({compiledTemplates:e={},rawTemplates:t={}}){const n=Object.entries(t).reduce((e,[t,n])=>{const r=$f.compile(n,{asString:!1});return Object.assign(Object.assign({},e),{[t]:r})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},zf),e),n)}static compile(e){return $f.compile(e,{asString:!1})}render(e,t,n,r,i){const o=this.templateKey(e,t);try{return this.preCompiledTemplates[o].render(n,r,i)}catch(e){throw new Error(`Could not find template to render '${o}'`)}}template(e,t){return this.preCompiledTemplates[this.templateKey(e,t)]}templateKey(e,t){return`${e}-${t}`}}const Vf=Object.assign(Object.assign(Object.assign({},Mf),Rf),{outputFormat:"line-by-line",drawFileList:!0});var Yf=Object.freeze({__proto__:null,defaultDiff2HtmlConfig:Vf,html:function(e,t={}){const n=Object.assign(Object.assign({},Vf),t),r="string"==typeof e?sf(e,n):e,i=new jf(n),{colorScheme:o}=n,a={colorScheme:o};return(n.drawFileList?new Nf(i,a).render(r):"")+("side-by-side"===n.outputFormat?new Hf(i,n).render(r):new Lf(i,n).render(r))},parse:function(e,t={}){return sf(e,Object.assign(Object.assign({},Vf),t))}});function Wf(){if("[object Module]"===Object.prototype.toString.call(Yf))return Yf;let e=nc(),t=be(e,"Diff2Html.default",null),n=be(e,"Diff2Html",null),r="html";if(Se(t)&&Oi(t[r]))return t;if(Se(n)&&Oi(n[r]))return n;throw console.log("Diff2Html",Yf,"g.Diff2Html",e.Diff2Html),new Error("invalid Diff2Html, g.Diff2Html, g.Diff2Html.default, use script for import")}var Gf=Object.defineProperty,Jf=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},_f=(e,t)=>{for(var n in t)Gf(e,n,{get:t[n],enumerable:!0})};var Xf,Kf,Zf=Jf(()=>{Xf=class extends Map{constructor(e=100,...t){super(...t),this._maxSize=e}set(e,t){if(this.size>=this._maxSize&&!this.has(e)){let e=this.keys().next().value;void 0!==e&&this.delete(e)}return super.set(e,t)}},Kf={image:new Xf(100),background:new Xf(100),resource:new Xf(150),defaultStyle:new Xf(30),baseStyle:new Xf(50),compress:new Xf(50),computedStyle:new WeakMap,measureHints:new WeakMap,burstAdvice:new WeakMap,warnedReconcile:!1,font:new Set,session:{styleMap:new Map,styleCache:new WeakMap,nodeMap:new Map}}});function ed(e){let t=e.match(/url\((['"]?)(.*?)(\1)\)/);if(!t)return null;let n=t[2].trim();return n.startsWith("#")?null:n}function td(e,t=1){let n=e.match(/^\s*-?(?:webkit-)?image-set\(([\s\S]*)\)\s*$/i);if(!n)return null;let r=[];for(let e of n[1].split(",")){let t=e.match(/url\((['"]?)(.*?)(\1)\)/);if(!t)continue;let n=e.match(/type\(\s*["']([^"']+)["']\s*\)/i);if(n&&!rd.test(n[1].trim()))continue;let i=e.match(/(\d+(?:\.\d+)?)\s*(x|dpi|dppx)/i),o=1;if(i){let e=parseFloat(i[1]);o=/dpi/i.test(i[2])?e/96:e}r.push({url:t[2].trim(),dppx:o})}return r.length?(r.sort((e,t)=>e.dppx-t.dppx),(r.find(e=>e.dppx>=t)||r[r.length-1]).url):null}function nd(e){if(/%[0-9A-Fa-f]{2}/.test(e))return e;try{return encodeURI(e)}catch{return e}}var rd,id=Jf(()=>{rd=/^image\/(jpeg|jpg|png|gif|webp|avif|apng|svg\+xml|bmp|x-icon|vnd\.microsoft\.icon)\s*(;|$)/i});function od(e,t){if(!t||function(e){return/^data:|^blob:|^about:blank$/i.test(e)}(e)||function(e,t){try{let n=typeof location<"u"&&location.href?location.href:"http://localhost/",r=t.includes("{url}")?t.split("{url}")[0]:t,i=new URL(r||".",n),o=new URL(e,n);if(o.origin===i.origin)return!0;let a=o.searchParams;if(a&&(a.has("url")||a.has("target")))return!0}catch{}return!1}(e,t))return!1;try{let t=typeof location<"u"&&location.href?location.href:"http://localhost/",n=new URL(e,t);return!(typeof location<"u")||n.origin!==location.origin}catch{return!!t}}function ad(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result||"")),r.onerror=()=>n(new Error("read_failed")),r.readAsDataURL(e)})}async function sd(e,t={}){let n=t.as??"blob",r=t.timeout??3e3,i=t.useProxy||"",o=t.errorTTL??8e3,a=t.headers||{},s=!!t.silent;if(/^data:/i.test(e))try{if("text"===n)return{ok:!0,data:String(e),status:200,url:e,fromCache:!1};if("dataURL"===n)return{ok:!0,data:String(e),status:200,url:e,fromCache:!1,mime:String(e).slice(5).split(";")[0]||""};let[,t="",r=""]=String(e).match(/^data:([^,]*),(.*)$/)||[],i=/;base64/i.test(t)?atob(r):decodeURIComponent(r),o=new Uint8Array([...i].map(e=>e.charCodeAt(0))),a=new Blob([o],{type:(t||"").split(";")[0]||""});return{ok:!0,data:a,status:200,url:e,fromCache:!1,mime:a.type||""}}catch{return{ok:!1,data:null,status:0,url:e,fromCache:!1,reason:"special_url_error"}}if(/^blob:/i.test(e))try{let t=await fetch(e);if(!t.ok)return{ok:!1,data:null,status:t.status,url:e,fromCache:!1,reason:"http_error"};let r=await t.blob(),i=r.type||t.headers.get("content-type")||"";return"dataURL"===n?{ok:!0,data:await ad(r),status:t.status,url:e,fromCache:!1,mime:i}:"text"===n?{ok:!0,data:await r.text(),status:t.status,url:e,fromCache:!1,mime:i}:{ok:!0,data:r,status:t.status,url:e,fromCache:!1,mime:i}}catch{return{ok:!1,data:null,status:0,url:e,fromCache:!1,reason:"network"}}if(/^about:blank$/i.test(e))return"dataURL"===n?{ok:!0,data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==",status:200,url:e,fromCache:!1,mime:"image/png"}:{ok:!0,data:"text"===n?"":new Blob([]),status:200,url:e,fromCache:!1};let l=function(e,t){return[t.as||"blob",t.timeout??3e3,t.useProxy||"",t.errorTTL??8e3,e].join("|")}(e,{as:n,timeout:r,useProxy:i,errorTTL:o}),c=ud.get(l);if(c&&c.until>Date.now())return{...c.result,fromCache:!0};c&&ud.delete(l);let u=cd.get(l);if(u)return u;let f=od(e,i)?function(e,t){if(!t)return e;if(t.includes("{url}"))return t.replace("{urlRaw}",nd(e)).replace("{url}",encodeURIComponent(e));if(/[?&]url=?$/.test(t))return`${t}${encodeURIComponent(e)}`;if(t.endsWith("?"))return`${t}url=${encodeURIComponent(e)}`;if(t.endsWith("/"))return`${t}${nd(e)}`;let n=t.includes("?")?"&":"?";return`${t}${n}url=${encodeURIComponent(e)}`}(e,i):e,d=t.credentials;if(!d)try{let t=typeof location<"u"&&location.href?location.href:"http://localhost/",n=new URL(e,t);d=typeof location<"u"&&n.origin===location.origin?"include":"omit"}catch{d="omit"}let h=new AbortController,p=setTimeout(()=>h.abort("timeout"),r),g=(async()=>{try{let r=await fetch(f,{signal:h.signal,credentials:d,headers:a});if(!r.ok){let i={ok:!1,data:null,status:r.status,url:f,fromCache:!1,reason:"http_error"};if(o>0&&ud.set(l,{until:Date.now()+o,result:i}),!s){let t=`${r.status} ${r.statusText||""}`.trim();ld.warnOnce(`http:${r.status}:${n}:${new URL(e,location?.href??"http://localhost/").origin}`,`HTTP error ${t} while fetching ${n} ${e}`)}return t.onError&&t.onError(i),i}if("text"===n)return{ok:!0,data:await r.text(),status:r.status,url:f,fromCache:!1};let i=await r.blob(),c=i.type||r.headers.get("content-type")||"";return"dataURL"===n?{ok:!0,data:await ad(i),status:r.status,url:f,fromCache:!1,mime:c}:{ok:!0,data:i,status:r.status,url:f,fromCache:!1,mime:c}}catch(i){let a=i&&"object"==typeof i&&"name"in i&&"AbortError"===i.name?String(i.message||"").includes("timeout")?"timeout":"abort":"network",c={ok:!1,data:null,status:0,url:f,fromCache:!1,reason:a};if(!/^blob:/i.test(e)&&o>0&&ud.set(l,{until:Date.now()+o,result:c}),!s){let t=`${a}:${n}:${new URL(e,location?.href??"http://localhost/").origin}`,i="timeout"===a?`Timeout after ${r}ms. Consider increasing timeout or using a proxy for ${e}`:"abort"===a?`Request aborted while fetching ${n} ${e}`:`Network/CORS issue while fetching ${n} ${e}. A proxy may be required`;ld.errorOnce(t,i)}return t.onError&&t.onError(c),c}finally{clearTimeout(p),cd.delete(l)}})();return cd.set(l,g),g}var ld,cd,ud,fd=Jf(()=>{id(),ld=function(e="[snapDOM]",{ttlMs:t=3e5,maxEntries:n=12}={}){let r=new Map,i=0;function o(o,a,s){if(i>=n)return;let l=Date.now();(r.get(a)||0)>l||(r.set(a,l+t),i++,"warn"===o&&console&&console.warn?console.warn(`${e} ${s}`):console&&console.error&&console.error(`${e} ${s}`))}return{warnOnce(e,t){o("warn",e,t)},errorOnce(e,t){o("error",e,t)},reset(){r.clear(),i=0}}}("[snapDOM]",{ttlMs:18e4,maxEntries:10}),cd=new Map,ud=new Map});async function dd(e,t={}){if(/^((repeating-)?(linear|radial|conic)-gradient)\(/i.test(e)||"none"===e.trim())return e;let n=td(e,typeof devicePixelRatio<"u"&&devicePixelRatio||1)??ed(e);if(!n)return e;let r=function(e,t){if(!e||/^(data|blob|about|#)/i.test(e.trim()))return e;try{let n=t||typeof document<"u"&&(document.baseURI||document.location?.href)||"http://localhost/";return new URL(e,n).href}catch{return e}}(n),i=nd(r),o=(t.useProxy||"")+"|"+i;if(Kf.background.has(o)){let e=Kf.background.get(o);return e?`url("${e}")`:"none"}try{let e=await sd(i,{as:"dataURL",useProxy:t.useProxy});return e.ok?(Kf.background.set(o,e.data),`url("${e.data}")`):(Kf.background.set(o,null),"none")}catch{return Kf.background.set(o,null),"none"}}var hd=Jf(()=>{Zf(),id(),fd()});function pd(e){if(e=String(e).toLowerCase(),Id.has(e)){let t={};return Kf.defaultStyle.set(e,t),t}if(Kf.defaultStyle.has(e))return Kf.defaultStyle.get(e);let t=document.getElementById("snapdom-sandbox");t||(t=document.createElement("div"),t.id="snapdom-sandbox",t.setAttribute("data-snapdom-sandbox","true"),t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.left="-9999px",t.style.top="-9999px",t.style.width="0px",t.style.height="0px",t.style.overflow="hidden",document.body.appendChild(t));let n=document.createElement(e);n.style.all="initial",t.appendChild(n);let r=getComputedStyle(n),i={};for(let e of r){if(gd(e))continue;let t=r.getPropertyValue(e);i[e]=t}return t.removeChild(n),Kf.defaultStyle.set(e,i),i}function gd(e){let t=Ed.get(e);if(void 0===t){let n=String(e).toLowerCase();t=Bd.has(n)||Cd.test(n)||xd.test(n),Ed.set(e,t)}return t}function md(e,t){return!Fd.has(e)&&("inline"===t||Sd.has(e)||kd.has(e))}function yd(e,t,n=!0,r=!1){if(t=String(t||"").toLowerCase(),Id.has(t))return"";let i=[],o=pd(t),a=(e.display||"").toLowerCase(),s="inline"===a,l=md(t,a),c=e["text-wrap-mode"]||e["white-space"]||"",u="nowrap"===c||"pre"===c,f=l&&n&&!(l&&n&&!s&&u),d=!1;for(let t in e){if(gd(t))continue;let n=e[t];if(f){if(Dd.has(t))continue;if(Nd.has(t)){n&&n!==o[t]&&(i.push(`${t}:${n}`),"auto"!==n&&(d=!0));continue}}if(n&&n!==o[t]){if(!u&&("width"===t||"inline-size"===t)&&n.endsWith("px")&&n.includes(".")){let e=parseFloat(n);if(Number.isFinite(e)){i.push(`${t}:${(e+Md).toFixed(3)}px`);continue}}i.push(`${t}:${n}`)}}if(f&&!s&&!r&&!d){let t=e.width;t&&"auto"!==t&&t!==o.width&&i.push(`min-width:${t}`)}return i.sort(),i.join(";")}function vd(e,t=null){let n=()=>{let e={length:0,getPropertyValue:()=>"",item:()=>""};return e[Symbol.iterator]=function*(){},e};if(1!==e?.nodeType){let r=typeof window<"u"?window:null;if(r&&"function"==typeof r.getComputedStyle)try{return r.getComputedStyle(e,t)||n()}catch{return n()}return n()}let r=Kf.computedStyle.get(e);r||(r=new Map,Kf.computedStyle.set(e,r));let i=r.get(t);if(!i){let o=function(e){try{let t=e?.ownerDocument;if(!t)return typeof window<"u"?window:null;let n=t.defaultView;if(n&&"function"==typeof n.getComputedStyle)return n;if(typeof window<"u"&&window.frames)for(let e=0;e<window.frames.length;e++)try{if(window.frames[e]?.document===t)return window.frames[e]}catch{}}catch{}return typeof window<"u"?window:null}(e),a=null;try{a=o&&"function"==typeof o.getComputedStyle?o.getComputedStyle(e,t):null}catch{}if(!a&&typeof window<"u"&&"function"==typeof window.getComputedStyle)try{e.ownerDocument===document&&(a=window.getComputedStyle(e,t))}catch{}i=a||n(),r.set(t,i)}return i}function Ad(e){let t={};for(let n of e)t[n]=e.getPropertyValue(n);for(let e of Qd){let n=t[`border-${e}-style`],r=t[`border-${e}-width`];("none"===n||"hidden"===n||"0px"===r)&&(delete t[`border-${e}-style`],delete t[`border-${e}-width`],delete t[`border-${e}-color`])}return t}function bd(e){let t=[],n=0,r=0;for(let i=0;i<e.length;i++){let o=e[i];"("===o&&n++,")"===o&&n--,","===o&&0===n&&(t.push(e.slice(r,i).trim()),r=i+1)}return t.push(e.slice(r).trim()),t}var wd,Id,xd,Cd,Bd,Ed,Sd,kd,Fd,Dd,Nd,Md,Td,Qd,Ld=Jf(()=>{Zf(),wd=new Set(["meta","script","noscript","title","link","template"]),Id=new Set(["meta","link","style","title","noscript","script","template","g","defs","use","marker","mask","clipPath","pattern","symbol","path","polygon","polyline","line","circle","ellipse","rect","filter","lineargradient","radialgradient","stop"]),xd=/(?:^|-)(animation|transition)(?:-|$)/i,Cd=/^(--.+|view-timeline|scroll-timeline|animation-trigger|offset-|position-try|app-region|interactivity|overlay|view-transition|-webkit-locale|-webkit-user-(?:drag|modify)|-webkit-tap-highlight-color|-webkit-text-security)$/i,Bd=new Set(["cursor","pointer-events","touch-action","user-select","print-color-adjust","speak","reading-flow","reading-order","anchor-name","anchor-scope","container-name","container-type","timeline-scope","zoom","stroke-color"]),Ed=new Map,Sd=new Set(["span","small","em","strong","b","i","u","s","code","cite","mark","sub","sup"]),kd=new Set(["table","thead","tbody","tfoot","tr","td","th"]),Fd=new Set(["img","video","canvas","svg","iframe","embed","object","input","textarea","select"]),Dd=new Set(["width","max-width","inline-size","max-inline-size"]),Nd=new Set(["min-width","min-inline-size"]),Md=.001,Td=new Set(["inline-block","inline-flex","inline-grid","inline-table","inline-flow-root","table"]),Qd=["top","right","bottom","left"]});function Rd(e,{fast:t=!1}={}){if(t)return e();"requestIdleCallback"in window?requestIdleCallback(e,{timeout:50}):setTimeout(e,1)}function Ud(e=1e3){return"function"!=typeof requestAnimationFrame||typeof document<"u"&&"hidden"===document.visibilityState?Promise.resolve():new Promise(t=>{let n=!1,r=()=>{n||(n=!0,t())};try{requestAnimationFrame(r)}catch{return void r()}setTimeout(r,e)})}function Hd(){if(typeof navigator>"u")return!1;let e=navigator.userAgent||"",t=e.toLowerCase(),n=t.includes("safari")&&!t.includes("chrome")&&!t.includes("crios")&&!t.includes("fxios")&&!t.includes("android"),r=/applewebkit/i.test(e),i=/mobile/i.test(e),o=!/safari/i.test(e),a=r&&i&&o,s=/(micromessenger|wxwork|wecom|windowswechat|macwechat)/i.test(e),l=/(baiduboxapp|baidubrowser|baidusearch|baiduboxlite)/i.test(t),c=/ipad|iphone|ipod/.test(t)&&r;return n||a||s||l||c}var qd=Jf(()=>{});function Od(e,t,n){let r=e&&"object"==typeof e&&(e.options||e);r&&r.debug&&(void 0!==n?console.warn("[snapdom]",t,n):console.warn("[snapdom]",t))}var Pd=Jf(()=>{}),$d=Jf(()=>{hd(),Ld(),qd(),id(),Pd()}),zd={};function jd(e){return"string"==typeof e&&/^data:image\/svg\+xml/i.test(e)}function Vd(e){let t=e.indexOf(",");return t>=0?decodeURIComponent(e.slice(t+1)):""}function Yd(e){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}function Wd(e){let t=[],n="",r=0;for(let i=0;i<e.length;i++){let o=e[i];"("===o&&r++,")"===o&&(r=Math.max(0,r-1)),";"===o&&0===r?(t.push(n),n=""):n+=o}return n.trim()&&t.push(n),t.map(e=>e.trim()).filter(Boolean)}function Gd(e){let t=Wd(e),n=null,r=null,i=null,o=[];for(let e of t){let t=e.indexOf(":");if(t<0)continue;let a=e.slice(0,t).trim().toLowerCase(),s=e.slice(t+1).trim();"box-shadow"===a?i=s:"filter"===a?n=s:"-webkit-filter"===a?r=s:o.push([a,s])}if(i){let e=function(e){let t=[],n="",r=0;for(let i=0;i<e.length;i++){let o=e[i];"("===o&&r++,")"===o&&(r=Math.max(0,r-1)),","===o&&0===r?(t.push(n.trim()),n=""):n+=o}n.trim()&&t.push(n.trim());let i=[];for(let e of t){if(/\binset\b/i.test(e))continue;let t=e.match(/-?\d+(?:\.\d+)?px/gi)||[],[n="0px",r="0px",o="0px"]=t;o=parseFloat(o)/2+"px";let a=e.replace(/-?\d+(?:\.\d+)?px/gi,"").replace(/\binset\b/gi,"").trim().replace(/\s{2,}/g," "),s=!!a&&","!==a;i.push(`drop-shadow(${n} ${r} ${o}${s?` ${a}`:""})`)}return i.join(" ")}(i);e&&(n=n?`${n} ${e}`:e,r=r?`${r} ${e}`:e)}let a=[...o];return n&&a.push(["filter",n]),r&&a.push(["-webkit-filter",r]),a.map(([e,t])=>`${e}:${t}`).join(";")}function Jd(e){return e=e.replace(/<style[^>]*>([\s\S]*?)<\/style>/gi,(e,t)=>e.replace(t,function(e){return e.replace(/([^{}]+)\{([^}]*)\}/g,(e,t,n)=>`${t}{${Gd(n)}}`)}(t))),e=e.replace(/style=(['"])([\s\S]*?)\1/gi,(e,t,n)=>`style=${t}${Gd(n)}${t}`)}function _d(e,t){let n=e=>Wd(e).map(e=>{let n=e.indexOf(":");if(n<0)return e;let r=e.slice(0,n).trim().toLowerCase();return"text-shadow"===r||t&&"box-shadow"===r?`${r}:${function(e){let t=[],n=0,r=0;for(let i=0;i<e.length;i++){let o=e[i];"("===o?n++:")"===o?n=Math.max(0,n-1):","===o&&0===n&&(t.push(e.slice(r,i)),r=i+1)}return t.push(e.slice(r)),t.map(e=>{let t=0,n=0,r="",i=0;for(;i<e.length;){let o=e[i];if("("===o?t++:")"===o&&(t=Math.max(0,t-1)),0===t&&(0===i||" "===e[i-1])){let t=/^-?\d*\.?\d+px/.exec(e.slice(i));if(t){n++,r+=2===n?-parseFloat(t[0])+"px":t[0],i+=t[0].length;continue}}r+=o,i++}return r}).join(",")}(e.slice(n+1))}`:e}).join(";");return e=(e=e.replace(/<style[^>]*>([\s\S]*?)<\/style>/gi,(e,t)=>e.replace(t,t.replace(/([^{}]+)\{([^}]*)\}/g,(e,t,r)=>`${t}{${n(r)}}`)))).replace(/style=(['"])([\s\S]*?)\1/gi,(e,t,r)=>`style=${t}${n(r)}${t}`)}async function Xd(e){if(!/(?:box-shadow|text-shadow)\s*:[^;"}]*px/i.test(e))return{svg:e,naturalOnly:!1};let{native:t,flippedY:n}=await(th||(th=(async()=>{try{let e='<svg xmlns="http://www.w3.org/2000/svg" width="8" height="20"><foreignObject width="8" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="width:4px;height:4px;margin-top:8px;background:#000;box-shadow:0 8px 0 0 #000"></div></foreignObject></svg>',t=new Image;t.decoding="sync",t.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`,await t.decode();let n=document.createElement("canvas");n.width=8,n.height=20;let r=n.getContext("2d",{willReadFrequently:!0});r.drawImage(t,0,0);let i=r.getImageData(2,18,1,1).data[3]>128,o=r.getImageData(2,2,1,1).data[3]>128;return{native:i||o,flippedY:o&&!i}}catch{return{native:!1,flippedY:!1}}})(),th));try{let r=e;return t||(r=Jd(r)),n&&(r=_d(r,t)),{svg:r,naturalOnly:!0}}catch{return{svg:e,naturalOnly:!0}}}async function Kd(e,t){let{width:n,height:r,scale:i=1,dpr:o=1,meta:a={},backgroundColor:s,crop:l=null}=t,c=e,u=!1,f=!1;if(l&&!jd(e))throw new RangeError("[snapdom] canvas crop requires an SVG capture payload");if(jd(e)){let t=(function(e){let t=e.indexOf(",");if(t<0)return"";let n=e.slice(t+1,t+1201).replace(/%[0-9A-Fa-f]?$/,"");try{return decodeURIComponent(n)}catch{return""}}(e).match(/<svg\b[^>]*>/i)||[])[0]||"",n=parseFloat((t.match(/\bwidth="([\d.]+)/i)||[])[1]),r=parseFloat((t.match(/\bheight="([\d.]+)/i)||[])[1]),i=Number.isFinite(n)&&Number.isFinite(r)&&n>0&&r>0&&Math.min(1,Zd/n,Zd/r,Math.sqrt(eh/(n*r)))<1;if(l||i||Hd())try{let t=Vd(e);if(l&&(t=function(e,t){let n=["x","y","width","height"].map(e=>Number(t?.[e]));if(!n.every(Number.isFinite)||n[2]<=0||n[3]<=0)throw new RangeError("[snapdom] canvas crop requires finite x/y and positive width/height");let r=e.match(/<svg\b[^>]*>/i);if(!r)throw new Error("[snapdom] cannot crop a non-SVG capture");let i=r[0],o=(i.match(/\bviewBox="([^"]+)"/i)||[])[1],a=String(o||"").trim().split(/[\s,]+/).map(Number);if(4!==a.length||!a.every(Number.isFinite)||a[2]<=0||a[3]<=0)throw new Error("[snapdom] cannot crop an SVG without a finite viewBox");let[s,l,c,u]=a,f=Math.max(s,n[0]),d=Math.max(l,n[1]),h=Math.min(s+c,n[0]+n[2]),p=Math.min(l+u,n[1]+n[3]);if(!(h>f&&p>d))throw new RangeError("[snapdom] canvas crop does not intersect the SVG viewBox");let g=parseFloat((i.match(/\bwidth="([\d.]+)/i)||[])[1]),m=parseFloat((i.match(/\bheight="([\d.]+)/i)||[])[1]),y=Number.isFinite(g)&&g>0?g/c:1,v=Number.isFinite(m)&&m>0?m/u:1,A=Math.max(1,(h-f)*y),b=Math.max(1,(p-d)*v),w=i.replace(/(\bwidth=")[^"]*/i,`$1${A}`).replace(/(\bheight=")[^"]*/i,`$1${b}`).replace(/(\bviewBox=")[^"]*/i,`$1${f} ${d} ${h-f} ${p-d}`);return e.replace(i,w)}(t,l)),Hd()){let e=await Xd(t);t=e.svg,u=e.naturalOnly,f=/@font-face|data:image\//i.test(t)}(i||l)&&(t=function(e){try{let t=e.match(/<svg\b[^>]*>/i);if(!t)return e;let n=t[0],r=parseFloat((n.match(/\bwidth="([\d.]+)/i)||[])[1]),i=parseFloat((n.match(/\bheight="([\d.]+)/i)||[])[1]);if(!Number.isFinite(r)||!Number.isFinite(i)||r<=0||i<=0)return e;let o=Math.min(1,Zd/r,Zd/i,Math.sqrt(eh/(r*i)));if(o>=1)return e;let a=Math.max(1,Math.floor(r*o)),s=Math.max(1,Math.floor(i*o));return console.warn(`[snapDOM] Capture ${Math.round(r)}×${Math.round(i)}px exceeds the browser image-decode limit (${Zd}px/side); downscaling to ${a}×${s}px. Lower \`scale\` or set \`width\`/\`height\` to control output size.`),e.replace(n,n.replace(/(\bwidth=")[\d.]+/i,`$1${a}`).replace(/(\bheight=")[\d.]+/i,`$1${s}`))}catch{return e}}(t)),c=Yd(t)}catch(t){if(l)throw t;c=e}}let d=new Image;d.loading="eager",d.decoding="sync",d.crossOrigin="anonymous",d.src=c,await d.decode(),Hd()&&await async function(e,t){e.setAttribute("data-snapdom-internal",""),e.style.cssText="position:fixed;left:-99999px;top:-99999px;pointer-events:none",document.body.appendChild(e);try{let n=document.createElement("canvas");n.width=16,n.height=16;let r=()=>new Promise(e=>{requestAnimationFrame(e),setTimeout(e,50)}),i=n.getContext("2d",{willReadFrequently:!0});if(!i)return await r(),void await r();let o=performance.now()+(t?600:150);for(;;){i.clearRect(0,0,16,16);try{i.drawImage(e,0,0,16,16)}catch{return}let t=i.getImageData(0,0,16,16).data,n=!1;for(let e=3;e<t.length;e+=4)if(t[e]>0){n=!0;break}if(n||performance.now()>o)return;await r()}}finally{try{e.remove()}catch{}}}(d,f);let h,p,g=d.naturalWidth,m=d.naturalHeight,y=l?g:Number.isFinite(a.vbW)?a.vbW:Number.isFinite(a.w0)?a.w0:g,v=l?m:Number.isFinite(a.vbH)?a.vbH:Number.isFinite(a.h0)?a.h0:m,A=Number.isFinite(n),b=Number.isFinite(r);if(A&&b)h=Math.max(1,n),p=Math.max(1,r);else if(A){h=n,p=v*(n/Math.max(1,y))}else if(b){p=r,h=y*(r/Math.max(1,v))}else h=g,p=m;h*=i,p*=i;let w=h*o,I=p*o,x=Math.max(w/Zd,I/Zd,Math.sqrt(w*I/eh));x>1&&(console.warn(`[snapDOM] Output ${Math.round(w)}×${Math.round(I)}px exceeds the browser canvas limit (${Zd}px/side); downscaling. Lower \`scale\`/\`dpr\` or set \`width\`/\`height\`.`),h/=x,p/=x);let C=document.createElement("canvas");C.width=h*o,C.height=p*o,C.style.width=`${h}px`,C.style.height=`${p}px`;let B=C.getContext("2d");if(1!==o&&B.scale(o,o),s&&(B.save(),B.fillStyle=s,B.fillRect(0,0,h,p),B.restore()),!u||Math.round(h*o)===g&&Math.round(p*o)===m)B.drawImage(d,0,0,h,p);else{let e=document.createElement("canvas");e.width=g,e.height=m,e.getContext("2d").drawImage(d,0,0),B.drawImage(e,0,0,h,p)}return C}_f(zd,{decodeSvgFromDataURL:()=>Vd,encodeSvgToDataURL:()=>Yd,fixSafariShadows:()=>Xd,toCanvas:()=>Kd});var Zd,eh,th,nh=Jf(()=>{qd(),Zd=16384,eh=268435456,th=null}),rh={};async function ih(e,t){let n=await Kd(e,t),r=await new Promise(e=>{let r=()=>e(n.toDataURL(`image/${t.format}`,t.quality));try{n.toBlob(t=>{if(!t)return r();let n=new FileReader;n.onload=()=>e(String(n.result||"")),n.onerror=r,n.readAsDataURL(t)},`image/${t.format}`,t.quality)}catch{r()}}),i=new Image;return i.src=r,await i.decode(),i.style.width=n.width/t.dpr+"px",i.style.height=n.height/t.dpr+"px",i}_f(rh,{rasterize:()=>ih});var oh=Jf(()=>{nh()}),ah={};async function sh(e,t){let{scale:n=1,width:r,height:i,meta:o={}}=t,a=Number.isFinite(r),s=Number.isFinite(i),l=Number.isFinite(n)&&1!==n||a||s;if(Hd()&&l)try{let{svg:t}=await Xd(Vd(e)),l=(t.match(/<svg\b[^>]*>/i)||[])[0]||"",c=parseFloat((l.match(/\bwidth="([\d.]+)/i)||[])[1]),u=parseFloat((l.match(/\bheight="([\d.]+)/i)||[])[1]);if(!Number.isFinite(c)||!Number.isFinite(u))throw new Error("svg without dimensions");let f,d,h=Number.isFinite(o.vbW)?o.vbW:Number.isFinite(o.w0)?o.w0:c,p=Number.isFinite(o.vbH)?o.vbH:Number.isFinite(o.h0)?o.h0:u;a&&s?(f=r,d=i):a?(f=r,d=Math.round(p*(r/Math.max(1,h)))):s?(d=i,f=Math.round(h*(i/Math.max(1,p)))):(f=Math.round(c*n),d=Math.round(u*n));let g=t.replace(/width="[^"]*"/,`width="${f}"`).replace(/height="[^"]*"/,`height="${d}"`),m=new Image;return m.decoding="sync",m.loading="eager",m.src=Yd(g),await m.decode(),m.style.width=`${f}px`,m.style.height=`${d}px`,m}catch(n){return Od(t,"safari vector toImg failed, falling back to PNG",n),ih(e,{...t,format:"png",quality:1,meta:o})}let c=new Image;if(c.decoding="sync",c.loading="eager",c.src=e,await c.decode(),a&&s)c.style.width=`${r}px`,c.style.height=`${i}px`;else if(a){let e=Number.isFinite(o.vbW)?o.vbW:Number.isFinite(o.w0)?o.w0:c.naturalWidth,t=Number.isFinite(o.vbH)?o.vbH:Number.isFinite(o.h0)?o.h0:c.naturalHeight,n=r/Math.max(1,e);c.style.width=`${r}px`,c.style.height=`${Math.round(t*n)}px`}else if(s){let e=Number.isFinite(o.vbW)?o.vbW:Number.isFinite(o.w0)?o.w0:c.naturalWidth,t=Number.isFinite(o.vbH)?o.vbH:Number.isFinite(o.h0)?o.h0:c.naturalHeight,n=i/Math.max(1,t);c.style.height=`${i}px`,c.style.width=`${Math.round(e*n)}px`}else{let r=Math.round(c.naturalWidth*n),i=Math.round(c.naturalHeight*n);if(c.style.width=`${r}px`,c.style.height=`${i}px`,"string"==typeof e&&e.startsWith("data:image/svg+xml"))try{let t=decodeURIComponent(e.split(",")[1]).replace(/width="[^"]*"/,`width="${r}"`).replace(/height="[^"]*"/,`height="${i}"`);e=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(t)}`,c.src=e}catch(e){Od(t,"SVG width/height patch in toImg failed",e)}}return c}_f(ah,{toImg:()=>sh,toSvg:()=>sh});var lh=Jf(()=>{$d(),oh(),nh()}),ch={};async function uh(e,t){let n=t.type;if("svg"===n){let t=decodeURIComponent(e.split(",")[1]);return new Blob([t],{type:"image/svg+xml"})}let r=await Kd(e,t);return new Promise(e=>r.toBlob(t=>e(t),`image/${n}`,t.quality))}_f(ch,{toBlob:()=>uh});var fh=Jf(()=>{nh()}),dh={};async function hh(e,t){let n=new File([e],t,{type:e.type});if(!navigator.canShare?.({files:[n]}))return!1;try{await navigator.share({files:[n],title:t})}catch(e){if("AbortError"!==e.name)return!1}return!0}async function ph(e,t){let n=new Set(["png","jpeg","jpg","webp","svg"]),r=(t?.type||"").toLowerCase(),i=n.has(r)?r:"",o=(t?.format||i||"").toLowerCase(),a="jpg"===o?"jpeg":o||"png",s=t?.filename||`snapdom.${a}`,l={...t||{},format:a,type:a};l.dpr=1;let c=function(){if(typeof navigator>"u")return!1;if(navigator.userAgentData)return"iOS"===navigator.userAgentData.platform;let e=navigator.userAgent||"",t=/iPhone|iPad|iPod/.test(e),n=navigator.maxTouchPoints>2&&/Macintosh/.test(e);return t||n}();if("svg"===a){let t=await uh(e,{...l,type:"svg"});if(c&&await hh(t,s))return;let n=URL.createObjectURL(t),r=document.createElement("a");return r.href=n,r.download=s,document.body.appendChild(r),r.click(),URL.revokeObjectURL(n),void r.remove()}let u=await Kd(e,l);if(c){let e=`image/${a}`,n=await new Promise(n=>u.toBlob(n,e,t?.quality));if(n&&await hh(n,s))return}let f=document.createElement("a");f.href=u.toDataURL(`image/${a}`,t?.quality),f.download=s,document.body.appendChild(f),f.click(),f.remove()}_f(dh,{download:()=>ph});var gh=Jf(()=>{fh(),nh(),qd()});$d(),$d(),Zf();var mh=new WeakMap,yh=new Map,vh=0;function Ah(){vh++,yh.size>2e3&&yh.clear()}function bh(e){let t=e&&(1===e.nodeType?e:e.parentElement);return!!(t&&t.closest&&t.closest("[data-snapdom-sandbox],[data-snapdom-internal],[data-snapdom]"))}function wh(e){for(let t of e)if(!bh(t.target)){if("childList"===t.type){let e=!0;for(let n of t.addedNodes)if(!bh(n)){e=!1;break}if(e)for(let n of t.removedNodes)if(!bh(n)){e=!1;break}if(e)continue}return!0}return!1}var Ih=!1;var xh=["mask","mask-image","-webkit-mask","-webkit-mask-image","mask-source","mask-box-image-source","mask-border-source","-webkit-mask-box-image-source","border-image","border-image-source"];function Ch(e){let t=mh.get(e);if(t&&t.epoch===vh){let e=t.snapshot&&t.snapshot.__needsBgInline;if(void 0!==e)return e}return!0}function Bh(e,t,n){try{if("function"==typeof e.computedStyleMap){let t=e.computedStyleMap().get("width");if(null!=t)return!Sh(String(t).trim().toLowerCase())}}catch{}let r=e.style&&(e.style.width||e.style.inlineSize);return!(!r||Sh(String(r).trim().toLowerCase()))||!!function(e,t){let n=e.getBoundingClientRect().width-(parseFloat(t.paddingLeft)||0)-(parseFloat(t.paddingRight)||0)-(parseFloat(t.borderLeftWidth)||0)-(parseFloat(t.borderRightWidth)||0);if(!(n>0))return!1;let r=1/0,i=-1/0,o=null;for(let t=e.firstChild;t;t=t.nextSibling){let e;if(3===t.nodeType){if(!/\S/.test(t.nodeValue||"")||(o=o||document.createRange(),o.selectNode(t),e=o.getBoundingClientRect(),!e.width&&!e.height))continue}else{if(1!==t.nodeType)continue;{let n=vd(t);if("none"===n.display||"absolute"===n.position||"fixed"===n.position)continue;e=t.getBoundingClientRect()}}e.left<r&&(r=e.left),e.right>i&&(i=e.right)}return i!==-1/0&&i-r<n-.5}(e,t)&&(n||function(e,t){let n=e.parentElement;if(!n)return!1;let r=vd(n),i=n.getBoundingClientRect().width-(parseFloat(r.paddingLeft)||0)-(parseFloat(r.paddingRight)||0)-(parseFloat(r.borderLeftWidth)||0)-(parseFloat(r.borderRightWidth)||0)-(parseFloat(t.marginLeft)||0)-(parseFloat(t.marginRight)||0);return i>0&&Math.abs(e.getBoundingClientRect().width-i)>.5}(e,t))}var Eh=new Set(["auto","min-content","max-content","stretch","fill-available","-webkit-fill-available"]);function Sh(e){return Eh.has(e)||e.startsWith("fit-content")}var kh=new WeakMap;function Fh(e,t=null,n={}){let r=mh.get(e),i=!(!n||!n.embedFonts),o=n&&n.excludeStyleProps||null;if(r&&r.epoch===vh&&r.embedFonts===i&&r.excludeStyleProps===o)return r.snapshot;let a=t||getComputedStyle(e),s=function(e,t={}){let n={},r=t.excludeStyleProps;for(let t=0;t<e.length;t++){let i=e[t];if(gd(i)||r&&(r instanceof RegExp&&r.test(i)||"function"==typeof r&&r(i)))continue;let o=e.getPropertyValue(i);("background-image"===i||"content"===i)&&o.includes("url(")&&!o.includes("data:")&&(o="none"),n[i]=o}let i=["text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-thickness","text-underline-offset","text-decoration-skip-ink"];for(let t of i)if(!n[t])try{let r=e.getPropertyValue(t);r&&(n[t]=r)}catch{}let o=["-webkit-text-stroke","-webkit-text-stroke-width","-webkit-text-stroke-color","paint-order"];for(let t of o)if(!n[t])try{let r=e.getPropertyValue(t);r&&(n[t]=r)}catch{}if(t.embedFonts){let t=["font-feature-settings","font-variation-settings","font-kerning","font-variant","font-variant-ligatures","font-optical-sizing"];for(let r of t)if(!n[r])try{let t=e.getPropertyValue(r);t&&(n[r]=t)}catch{}}try{"hidden"===(n["content-visibility"]||e.getPropertyValue("content-visibility"))&&(n["content-visibility"]="hidden")}catch{}let a=!1;{let t=e.getPropertyValue("background-image");if(t&&"none"!==t&&(a=!0),!a){let t=e.getPropertyValue("background-color");t&&"rgba(0, 0, 0, 0)"!==t&&"transparent"!==t&&(a=!0)}if(!a)for(let t of xh){let n=e.getPropertyValue(t);if(n&&"none"!==n){a=!0;break}}if(!a){let t=e.getPropertyValue("background");t&&/url\s*\(/i.test(t)&&(a=!0)}}Object.defineProperty(n,"__needsBgInline",{value:a,enumerable:!1});let s=parseFloat(e.getPropertyValue("border-top-width")||0)||0,l=parseFloat(e.getPropertyValue("border-right-width")||0)||0,c=parseFloat(e.getPropertyValue("border-bottom-width")||0)||0,u=parseFloat(e.getPropertyValue("border-left-width")||0)||0;if(0===s&&0===l&&0===c&&0===u){let t=(e.getPropertyValue("border-image-source")||"").trim(),r=t&&"none"!==t,i=["border","border-top","border-right","border-bottom","border-left","border-width","border-style","border-color","border-top-width","border-top-style","border-top-color","border-right-width","border-right-style","border-right-color","border-bottom-width","border-bottom-style","border-bottom-color","border-left-width","border-left-style","border-left-color","border-block","border-block-width","border-block-style","border-block-color","border-inline","border-inline-width","border-inline-style","border-inline-color"];for(let e of i)delete n[e];r||(n.border="none")}return n}(a,n);return function(e,t,n){if(e instanceof HTMLElement&&e.style&&e.style.height)return;let r=e.tagName&&e.tagName.toLowerCase();if(!r||!["div","section","article","main","aside","header","footer","nav"].includes(r)||t.aspectRatio&&"none"!==t.aspectRatio&&"auto"!==t.aspectRatio)return;let i=t.display||"";if(i.includes("flex")||i.includes("grid"))return;let o=t.position;if("absolute"===o||"fixed"===o||"sticky"===o||"none"!==t.transform||function(e){return!!(e.backgroundImage&&"none"!==e.backgroundImage||e.backgroundColor&&"rgba(0, 0, 0, 0)"!==e.backgroundColor&&"transparent"!==e.backgroundColor||(parseFloat(e.borderTopWidth)||0)>0||(parseFloat(e.borderBottomWidth)||0)>0||(parseFloat(e.paddingTop)||0)>0||(parseFloat(e.paddingBottom)||0)>0)||"visible"!==(e.overflowBlock||e.overflowY||"visible")}(t)||Nh(e))return;let a=t.overflowX||t.overflow||"visible",s=t.overflowY||t.overflow||"visible";if("visible"!==a||"visible"!==s)return;let l=t.clip;if(l&&"auto"!==l&&"rect(auto, auto, auto, auto)"!==l||"hidden"===t.visibility||"0"===t.opacity||!function(e){for(let t=e.firstChild;t;t=t.nextSibling)if(3===t.nodeType&&/\S/.test(t.nodeValue))return!0;let t=e.firstElementChild,n=e.lastElementChild;if(t&&"BR"===t.tagName||n&&"BR"===n.tagName)return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling){let e=vd(t);if("none"===e.display)continue;let n=e.position;if("absolute"!==n&&"fixed"!==n)return!0}return!1}(e))return;let c=parseFloat(t.height),u=function(e){let t=e.getBoundingClientRect().top,n=-1/0,r=null;for(let t=e.firstChild;t;t=t.nextSibling){if(3===t.nodeType){if(!/\S/.test(t.nodeValue||""))continue;r=r||document.createRange(),r.selectNode(t);let e=r.getBoundingClientRect();(e.width||e.height)&&(n=Math.max(n,e.bottom));continue}if(1!==t.nodeType)continue;let e=vd(t);if("none"===e.display)continue;let i=e.position;"absolute"===i||"fixed"===i||e.float&&"none"!==e.float||(n=Math.max(n,t.getBoundingClientRect().bottom))}return n===-1/0?NaN:n-t}(e);Number.isFinite(c)&&Number.isFinite(u)&&Math.abs(c-u)>2||(delete n.height,delete n["block-size"])}(e,a,s),mh.set(e,{epoch:vh,snapshot:s,embedFonts:i,excludeStyleProps:o}),s}async function Dh(e,t,n,r){if("STYLE"===e.tagName)return;let i=function(e,t){return e&&e.session&&e.persist?e:e&&(e.styleMap||e.styleCache||e.nodeMap)?{session:e,persist:{snapshotKeyCache:yh,defaultStyle:Kf.defaultStyle,baseStyle:Kf.baseStyle,image:Kf.image,resource:Kf.resource,background:Kf.background,font:Kf.font},options:t||{}}:{session:Kf.session,persist:{snapshotKeyCache:yh,defaultStyle:Kf.defaultStyle,baseStyle:Kf.baseStyle,image:Kf.image,resource:Kf.resource,background:Kf.background,font:Kf.font},options:e||t||{}}}(n,r),o=i.options&&i.options.cache||"auto";"disabled"!==o&&function(e=document.documentElement){if(Ih)return;Ih=!0;let t=e=>{wh(e)&&Ah()};try{new MutationObserver(t).observe(e,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{new MutationObserver(t).observe(document.head,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{let e=document.fonts;e&&(e.addEventListener?.("loadingdone",Ah),e.ready?.then(()=>Ah()).catch(()=>{}))}catch{}}(document.documentElement),"disabled"===o&&!i.session.__bumpedForDisabled&&(Ah(),yh.clear(),i.session.__bumpedForDisabled=!0);let{session:a,persist:s}=i;if(!a.styleCache.has(e)){let t=null;try{t=getComputedStyle(e)}catch{}a.styleCache.set(e,t||getComputedStyle(document.documentElement))}let l=a.styleCache.get(e);e.getAttribute?.("style")&&function(e,t,n){if(e.style&&0!==e.style.length)for(let r=0;r<e.style.length;r++){let i=e.style[r],o=n.getPropertyValue(i);o&&t.style.setProperty(i,o)}}(e,t,l);let c=l.getPropertyValue("animation-name");t&&t.style&&c&&"none"!==c&&t.style.setProperty("animation","none","important");let u=Fh(e,l,i.options),f=Nh(e);if(f){let e=l.getPropertyValue("min-width");(!e||"auto"===e||"0px"===e)&&(u["min-width"]="0px")}let d=e.tagName?.toLowerCase()||"div",h=function(e){let t=kh.get(e);return t||(t=Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:e[0]>t[0]?1:0).map(([e,t])=>`${e}:${t}`).join(";"),kh.set(e,t),t)}(u),p=!0;if(md(d,(u.display||"").toLowerCase())){p=function(e){for(let t=e.firstChild;t;t=t.nextSibling){if(3===t.nodeType&&/\S/.test(t.nodeValue||""))return!0;if(1===t.nodeType){let e=vd(t).position;if("absolute"!==e&&"fixed"!==e)return!0}}return!1}(e),p&&function(e,t,n){let r=(t.display||"").toLowerCase();if("inline"===r||kd.has(e))return!1;if(n)return!0;if("none"!==(t.float||"none").toLowerCase())return!1;let i=(t.position||"static").toLowerCase();return"absolute"!==i&&"fixed"!==i&&!Td.has(r)}(d,u,f)&&Bh(e,l,f)&&(p=!1),h=`${h}|${d}${p?"|c":""}${f?"|f":""}`;let t=u["text-wrap-mode"]||u["white-space"]||"";p&&"nowrap"!==t&&"pre"!==t&&(a.reconcileRisk=(a.reconcileRisk||0)+1)}let g=s.snapshotKeyCache.get(h);void 0===g&&(g=yd(u,d,p,f),s.snapshotKeyCache.set(h,g)),a.styleMap.set(t,g)}function Nh(e){let t=e.parentElement;if(!t)return!1;let n=vd(t).display||"";return n.includes("flex")||n.includes("grid")}Ld();var Mh=["fill","stroke","color","background-color","stop-color"],Th=new Set(["symbol","defs","pattern","marker","linearGradient","radialGradient","filter"]);function Qh(e){let t=e;for(;t&&1===t.nodeType;){if("http://www.w3.org/2000/svg"===t.namespaceURI){if("mask"===t.localName||"clipPath"===t.localName)return!1;if(Th.has(t.localName))return!0}t=t.parentNode}return!1}var Lh=new Map;function Rh(e,t){if(1!==e?.nodeType||1!==t?.nodeType||Qh(e))return;let n=e.getAttribute?.("style"),r=!(!n||!n.includes("var("));if(!r&&e.attributes?.length){let t=e.attributes;for(let e=0;e<t.length;e++){let n=t[e];if(n&&"string"==typeof n.value&&n.value.includes("var(")){r=!0;break}}}let i=null;if(r)try{i=getComputedStyle(e)}catch{}if(r){let n=e.style;if(n&&n.length){let e=new Set;for(let r=0;r<n.length;r++){let o=n[r];if(e.has(o))continue;e.add(o);let a=n.getPropertyValue(o);if(!a||!a.includes("var("))continue;let s=i&&i.getPropertyValue(o);if(s)try{t.style.setProperty(o,s.trim(),n.getPropertyPriority(o))}catch{}}}}if(r&&e.attributes?.length){let n=e.attributes;for(let e=0;e<n.length;e++){let r=n[e];if(!r||"string"!=typeof r.value||!r.value.includes("var("))continue;let o=r.name,a=i&&i.getPropertyValue(o);if(a)try{t.style.setProperty(o,a.trim())}catch{}}}if(!r){if(!i)try{i=getComputedStyle(e)}catch{i=null}if(!i)return;let n=e.namespaceURI||"html",r=function(e,t){let n=t+"::"+e.toLowerCase(),r=Lh.get(n);if(r)return r;let i=document,o="http://www.w3.org/2000/svg"===t?i.createElementNS(t,e):i.createElement(e),a=i.createElement("div");a.setAttribute("data-snapdom-internal",""),a.style.cssText="position:absolute;left:-99999px;top:-99999px;contain:strict;display:block;",a.appendChild(o),i.documentElement.appendChild(a);let s=getComputedStyle(o),l={};for(let e of Mh)l[e]=s.getPropertyValue(e)||"";return a.remove(),Lh.set(n,l),l}(e.tagName,n);for(let e of Mh){let n=i.getPropertyValue(e)||"",o=r[e]||"";if(n&&n!==o)try{t.style.setProperty(e,n.trim())}catch{}}}}function Uh(e){return!!(!e||e.startsWith("data:")||e.startsWith("blob:")||/^data:image\/(gif|png|svg)/.test(e)&&e.length<200)}$d(),$d(),Zf(),fd(),fd();var Hh="img[data-src], img[data-lazy-src], img[data-original], img[data-hi-res-src], img[data-srcset], img[data-lazy-srcset]";var qh=/^image\/(jpeg|jpg|png|gif|webp|avif|apng|svg\+xml|bmp|x-icon|vnd\.microsoft\.icon)\s*(;|$)/i;function Oh(e,t){if(!e)return null;let n=0;try{n=t?t.getBoundingClientRect().width||t.width:0}catch{}n||(n=window.innerWidth||1e3);let r=[];for(let t of e.split(",")){let e=t.trim().split(/\s+/);if(!e[0])continue;let i=e[1]||"",o=1;/^\d*\.?\d+x$/i.test(i)?o=parseFloat(i):/^\d+w$/i.test(i)&&(o=parseInt(i,10)/n),r.push({url:e[0],d:o})}if(!r.length)return null;r.sort((e,t)=>e.d-t.d);let i=window.devicePixelRatio||1;return(r.find(e=>e.d>=i)||r[r.length-1]).url}function Ph(e,t){let n=e.currentSrc||"";if(n&&!Uh(n))return n;let r=t.querySelectorAll("source[srcset]"),i=null;for(let t of r){let n=t.getAttribute("srcset");if(!n||Uh(n))continue;let r=t.getAttribute("type");if(r&&!qh.test(r.trim()))continue;let o=t.getAttribute("media");if(o)try{if(window.matchMedia(o).matches)return Oh(n,e)}catch{}i||(i=Oh(n,e))}return i}function $h(e){let t=[e.getAttribute("data-src"),e.getAttribute("data-lazy-src"),e.getAttribute("data-original"),e.getAttribute("data-hi-res-src")];for(let e of t)if(e&&!Uh(e))return e;let n=e.getAttribute("data-srcset")||e.getAttribute("data-lazy-srcset");if(n){let e=n.split(",")[0].trim().split(/\s+/)[0];if(e&&!Uh(e))return e}return null}async function zh(e,t={}){if(!e||1!==e?.nodeType||!1===t.resolvePicturePlaceholders)return null;let{timeout:n,concurrency:r,resolveLazySrc:i,silent:o,useProxy:a}=function(e={}){let t=e.pictureResolver&&"object"==typeof e.pictureResolver?e.pictureResolver:{};return{timeout:t.timeout??5e3,concurrency:t.concurrency??4,resolveLazySrc:!1!==t.resolveLazySrc,silent:t.silent??!1,useProxy:"string"==typeof e.useProxy?e.useProxy:""}}(t);if(!function(e,t){return!!(e&&1===e?.nodeType&&(e.matches?.("picture")||e.querySelector("picture")||t&&(e.matches?.(Hh)||e.querySelector(Hh))))}(e,i))return null;let s=[],l=[];async function c(e){let t=await sd(e,{as:"dataURL",timeout:n,useProxy:a,silent:!0});return t.ok?t.data:null}let u=Array.from(e.querySelectorAll("picture"));e.matches?.("picture")&&u.unshift(e);for(let e of u){let t=e.querySelector("img");if(!t)continue;if(!Uh(t.getAttribute("src")||""))continue;let n=Ph(t,e);n&&l.push(async()=>{let r=await c(n);if(!r)return void(o||console.warn(`[snapdom:picture-resolver] Failed to fetch: ${n.slice(0,60)}`));let i=t.getAttribute("src"),a=t.getAttribute("srcset"),l=t.getAttribute("sizes"),u=[];t.src=r,t.setAttribute("src",r),t.removeAttribute("srcset"),t.removeAttribute("sizes");let f=e.querySelectorAll("source");for(let e of f)u.push({el:e,parent:e.parentElement,next:e.nextSibling}),e.remove();s.push(()=>{null!==i?t.setAttribute("src",i):t.removeAttribute("src"),null!==a&&t.setAttribute("srcset",a),null!==l&&t.setAttribute("sizes",l);for(let{el:e,parent:t,next:n}of u)t&&t.insertBefore(e,n)})})}if(i){let t=Array.from(e.querySelectorAll("img"));"img"===e.localName&&t.unshift(e);for(let e of t){if(e.closest("picture")&&Uh(e.getAttribute("src")||""))continue;let t=e.getAttribute("src")||"",n=$h(e);n&&Uh(t)&&l.push(async()=>{let t=await c(n);if(!t)return;let r=e.getAttribute("src");e.src=t,e.setAttribute("src",t),e.removeAttribute("srcset"),e.removeAttribute("sizes"),s.push(()=>{null!==r?e.setAttribute("src",r):e.removeAttribute("src")})})}}return 0===l.length?null:(await async function(e){for(let t=0;t<e.length;t+=r){let n=e.slice(t,t+r);await Promise.allSettled(n.map(e=>e()))}}(l),async function(){for(let e of s)try{e()}catch{}})}function jh(e,t,n){return n?Promise.all(e.map(e=>new Promise(n=>t(e,n)))):Promise.all(e.map(e=>new Promise(r=>{!function i(){Rd(n=>{!n||"function"!=typeof n.timeRemaining||n.timeRemaining()>0?t(e,r):i()},{fast:n})}()})))}function Vh(e,t,n){return e?(e=(e=(e=(e=(e=e.replace(/:host\(([^)]+)\)/g,(e,n)=>`:where(${t}:is(${n.trim()}))`)).replace(/:host\b/g,`:where(${t})`)).replace(/:host-context\(([^)]+)\)/g,(e,n)=>`:where(:where(${n.trim()}) ${t})`)).replace(/::slotted\(([^)]+)\)/g,(e,n)=>`:where(${t} ${n.trim()})`)).replace(/(^|})(\s*)([^@}{]+){/g,(e,r,i,o)=>{let a=function(e,t,n=!0,r){return e.split(",").map(e=>e.trim()).filter(Boolean).map(e=>{if(e.startsWith(":where(")||e.startsWith("@"))return e;let i=n?function(e,t){if(!(e=e.trim()))return e;let n=t?`[data-sd-slotted~="${t}"]`:"[data-sd-slotted]";return e.endsWith(":not([data-sd-slotted])")||e.endsWith(`:not(${n})`)?e:`${e}:not(${n})`}(e,r):e;return`:where(${t} ${i})`}).join(", ")}(o,t,!0,n);return`${r}${i}${a}{`}),e):""}function Yh(e,t){try{let n=getComputedStyle(e).getPropertyValue(t).trim();if(n)return n}catch{}try{let e=getComputedStyle(document.documentElement).getPropertyValue(t).trim();if(e)return e}catch{}return""}function Wh(e){let t=0,n=0;if(e.offsetWidth>0&&(t=e.offsetWidth),e.offsetHeight>0&&(n=e.offsetHeight),0===t||0===n)try{let r=getComputedStyle(e);if(0===t){let e=parseFloat(r.width);!isNaN(e)&&e>0&&(t=e)}if(0===n){let e=parseFloat(r.height);!isNaN(e)&&e>0&&(n=e)}}catch{}if(0===t||0===n)try{if(0===t){let n=parseFloat(e.getAttribute("width"));!isNaN(n)&&n>0&&(t=n)}if(0===n){let t=parseFloat(e.getAttribute("height"));!isNaN(t)&&t>0&&(n=t)}}catch{}if((0===t||0===n)&&(e.naturalWidth||e.naturalHeight))try{0===t&&e.naturalWidth>0&&(t=e.naturalWidth),0===n&&e.naturalHeight>0&&(n=e.naturalHeight)}catch{}return{width:t,height:n}}async function Gh(e,t,n){let r=await async function(e,t=3){let n=()=>{try{return e.contentDocument||e.contentWindow?.document||null}catch{return null}},r=n(),i=0;for(;i<t&&(!r||!r.body&&!r.documentElement);)await new Promise(e=>setTimeout(e,0)),r=n(),i++;return r&&(r.body||r.documentElement)?r:null}(e,3);if(!r)throw new Error("iframe document not accessible/ready");let{contentWidth:i,contentHeight:o,rect:a}=function(e){let t=e.getBoundingClientRect(),n=0,r=0,i=0,o=0;try{let t=getComputedStyle(e);n=parseFloat(t.borderLeftWidth)||0,r=parseFloat(t.borderRightWidth)||0,i=parseFloat(t.borderTopWidth)||0,o=parseFloat(t.borderBottomWidth)||0}catch{}return{contentWidth:Math.max(0,Math.round(t.width-(n+r))),contentHeight:Math.max(0,Math.round(t.height-(i+o))),rect:t}}(e),s=n?.snap;if(!s&&typeof window<"u"&&window.snapdom&&(s=window.snapdom),!s||"function"!=typeof s.toPng)throw new Error("[snapdom] iframe capture requires snapdom.toPng. Use snapdom(el) or pass options.snap. With ESM, assign window.snapdom = snapdom after import if using iframes.");let l,c={...n,scale:1,clip:null},u=function(e,t,n){let r=e.defaultView,i=r?r.scrollX:0,o=r?r.scrollY:0,a=e.body?e.body.scrollLeft:0,s=e.body?e.body.scrollTop:0,l=e.documentElement?e.documentElement.scrollLeft:0,c=e.documentElement?e.documentElement.scrollTop:0,u=0,f=0,d=0,h=0;try{let t=r&&e.body?r.getComputedStyle(e.body):null;t&&(u=(parseFloat(t.marginTop)||0)+(parseFloat(t.paddingTop)||0),f=(parseFloat(t.marginRight)||0)+(parseFloat(t.paddingRight)||0),d=(parseFloat(t.marginBottom)||0)+(parseFloat(t.paddingBottom)||0),h=(parseFloat(t.marginLeft)||0)+(parseFloat(t.paddingLeft)||0))}catch{}try{e.documentElement.setAttribute("data-sd-pinned","")}catch{}let p=e.createElement("style");return p.setAttribute("data-sd-iframe-pin",""),p.textContent=`html {margin: 0 !important;padding: 0 !important;width: ${t}px !important;height: ${n}px !important;min-width: ${t}px !important;min-height: ${n}px !important;box-sizing: border-box !important;overflow: hidden !important;background-clip: border-box !important;}body {margin: 0 !important;padding: ${u}px ${f}px ${d}px ${h}px !important;width: ${t}px !important;height: ${n}px !important;min-width: ${t}px !important;min-height: ${n}px !important;box-sizing: border-box !important;overflow: hidden !important;background-clip: border-box !important;}`,(e.head||e.documentElement).appendChild(p),()=>{try{p.remove()}catch{}try{e.documentElement.removeAttribute("data-sd-pinned")}catch{}try{r&&"function"==typeof r.scrollTo&&r.scrollTo(i,o),e.body&&(e.body.scrollLeft=a,e.body.scrollTop=s),e.documentElement&&(e.documentElement.scrollLeft=l,e.documentElement.scrollTop=c)}catch{}}}(r,i,o),f=Kf.session.nodeMap,d=Kf.session.styleMap,h=Kf.session.styleCache;try{l=await s.toPng(r.documentElement,c)}finally{u(),Kf.session.nodeMap=f,Kf.session.styleMap=d,Kf.session.styleCache=h}l.style.display="block",l.style.width=`${i}px`,l.style.height=`${o}px`;let p=document.createElement("div");return t.nodeMap.set(p,e),Dh(e,p,t,n),p.style.overflow="hidden",p.style.display="block",p.style.width||(p.style.width=`${Math.round(a.width)}px`),p.style.height||(p.style.height=`${Math.round(a.height)}px`),p.appendChild(l),p}var Jh=new Xf(80);async function _h(e){if(Kf.resource?.has(e))return Kf.resource.get(e);if(Jh.has(e))return Jh.get(e);let t=(async()=>{let t=await sd(e,{as:"dataURL",silent:!0});if(!t.ok||"string"!=typeof t.data)throw new Error(`[snapDOM] Failed to read blob URL: ${e}`);return Kf.resource?.set(e,t.data),t.data})();Jh.set(e,t);try{let n=await t;return Jh.set(e,n),n}catch(t){throw Jh.delete(e),t}}var Xh=/\bblob:[^)"'\s]+/g;async function Kh(e){if(!e||-1===e.indexOf("blob:"))return e;let t=Array.from(new Set(e.match(Xh)||[]));if(0===t.length)return e;let n=e;for(let e of t)try{let t=await _h(e);n=n.split(e).join(t)}catch{}return n}function Zh(e){return"string"==typeof e&&e.startsWith("blob:")}function ep(e){return(e||"").split(",").map(e=>e.trim()).filter(Boolean).map(e=>{let t=e.match(/^(\S+)(\s+.+)?$/);return t?{url:t[1],desc:t[2]||""}:null}).filter(Boolean)}function tp(e){return e.map(e=>e.desc?`${e.url} ${e.desc.trim()}`:e.url).join(", ")}function np(e,t){let n=e.querySelectorAll?Array.from(e.querySelectorAll(t)):[];return e.matches?.(t)&&n.unshift(e),n}qd();var rp=new Map,ip=new Set(["IFRAME"]);function op(e,t){rp.set(String(e).toUpperCase(),t)}function ap(e){let{width:t,height:n}=Wh(e),r=t,i=n;if(!r||!i){let t=e.getBoundingClientRect();r=r||t.width||0,i=i||t.height||0}let o=document.createElement("div");return o.style.cssText=`display:inline-block;width:${r}px;height:${i}px;visibility:hidden;`,o}var sp=200,lp=new Set(["img","canvas","video","iframe","object","embed"]);function cp(e,t){return e.right>=t.left-sp&&e.left<=t.right+sp&&e.bottom>=t.top-sp&&e.top<=t.bottom+sp}async function up(e,t,n){if(!e)throw new Error("Invalid node");let r,i=new Set,o=null,a=null;if(e.nodeType===Node.ELEMENT_NODE){let n=(e.localName||e.tagName||"").toLowerCase();if("snapdom-sandbox"===e.id||e.hasAttribute("data-snapdom-sandbox")||wd.has(n))return null;if("foreignobject"===n&&e.parentElement?.closest?.("foreignObject"))return Od(t,"Nested <foreignObject> skipped (SVG spec limitation — not rendered by browsers)"),null;if("source"===n&&"picture"===e.parentElement?.localName)return null}if(e.nodeType===Node.TEXT_NODE||e.nodeType!==Node.ELEMENT_NODE)return e.cloneNode(!0);if("exclude"===e.getAttribute("data-capture")){if("hide"===n.excludeMode)return ap(e);if("remove"===n.excludeMode)return null}if(n.exclude&&Array.isArray(n.exclude))for(let t of n.exclude)try{if(e.matches?.(t)){if("hide"===n.excludeMode)return ap(e);if("remove"===n.excludeMode)return null}}catch(e){console.warn(`Invalid selector in exclude option: ${t}`,e)}if("function"==typeof n.filter)try{if(!n.filter(e)){if("hide"===n.filterMode)return ap(e);if("remove"===n.filterMode)return null}}catch(e){console.warn("Error in filter function:",e)}if(t.clip&&function(e,t){if(e===t.root)return!1;let n;try{n=e.getBoundingClientRect()}catch{return!1}if(0===n.width&&0===n.height)return!1;let r=vd(e);if("inline"===r.display&&!lp.has((e.localName||"").toLowerCase()))return!1;let i=t.rect,o=e.scrollWidth||0,a=e.scrollHeight||0,s={left:"rtl"===r.direction?Math.min(n.left,n.right-o):n.left,top:n.top,right:Math.max(n.right,n.left+o),bottom:Math.max(n.bottom,n.top+a)},l=r.writingMode||"";if((l.startsWith("vertical")||l.startsWith("sideways"))&&(s.top=Math.min(n.top,n.bottom-a),s.left=Math.min(s.left,n.right-o)),cp(s,i))return!1;let c=(e.ownerDocument||document).createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;c.nextNode();){let e=c.currentNode.getBoundingClientRect();if((e.width>0||e.height>0)&&cp(e,i))return!1}return!0}(e,t.clip))return function(e,t,n){let r=e.cloneNode(!1);"IMG"===e.tagName&&(r.removeAttribute("src"),r.removeAttribute("srcset"),r.removeAttribute("sizes")),Dh(e,r,t,n);let{width:i,height:o}=Wh(e);return i>0&&(r.style.width=`${i}px`,r.style.minWidth=`${i}px`,r.style.maxWidth=`${i}px`),o>0&&(r.style.height=`${o}px`,r.style.minHeight=`${o}px`,r.style.maxHeight=`${o}px`),r.style.visibility="hidden",r.style.overflow="hidden",r.style.boxSizing="border-box",r}(e,t,n);if(n.__resolveNodeHooks)for(let r of n.__resolveNodeHooks){let i;try{i=await r(e,n)}catch(e){Od(t,"resolveNode plugin hook failed",e)}if(null===i)return null;if(i instanceof Node)return i.nodeType===Node.ELEMENT_NODE&&(t.nodeMap.set(i,e),Dh(e,i,t,n)),i}{let r=ip.has(e.tagName)&&rp.get(e.tagName);if(r){let i=await r(e,t,n);if(void 0!==i)return i}}if("placeholder"===e.getAttribute("data-capture")){let r=e.cloneNode(!1);t.nodeMap.set(r,e),Dh(e,r,t,n);let i=document.createElement("div");return i.textContent=e.getAttribute("data-placeholder-text")||"",i.style.cssText="color:#666;font-size:12px;text-align:center;line-height:1.4;padding:0.5em;box-sizing:border-box;",r.appendChild(i),r}{let r=!ip.has(e.tagName)&&rp.get(e.tagName);if(r){let i=await r(e,t,n);if(void 0!==i)return i}}try{if(r=e.cloneNode(!1),r.attributes?.length)try{for(let e of r.attributes)/[\x00-\x08\x0B\x0C\x0E-\x1F\uFFFE\uFFFF]/.test(e.value)&&r.setAttribute(e.name,e.value.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\uFFFE\uFFFF]/g,""))}catch{}if(Rh(e,r),t.nodeMap.set(r,e),"IMG"===e.tagName){!function(e,t){try{let n=null,r=vd(e).content;if(r&&r.includes("url(")){let e=r.match(/url\(["']?([^"')]+)["']?\)/);e&&(n=e[1])}let i=e.closest?.("picture"),o=n||(i?Ph(e,i):e.currentSrc)||e.src||Oh(e.getAttribute("srcset"),e)||"";if(!o)return;t.setAttribute("src",o),t.removeAttribute("srcset"),t.removeAttribute("sizes"),t.loading="eager",t.decoding="sync"}catch{}}(e,r);try{let{width:t,height:n}=Wh(e),i=Math.round(t||0),o=Math.round(n||0);i&&(r.dataset.snapdomWidth=String(i)),o&&(r.dataset.snapdomHeight=String(o))}catch(e){Od(t,"getUnscaledDimensions for IMG failed",e)}try{let t=e.getAttribute("style")||"",n=window.getComputedStyle(e),i=e=>{let r=t.match(new RegExp(`${e}\\s*:\\s*([^;]+)`,"i")),i=r?r[1].trim():n.getPropertyValue(e);return/%|auto/i.test(String(i||""))},o=parseInt(r.dataset.snapdomWidth||"0",10),a=parseInt(r.dataset.snapdomHeight||"0",10),s=i("width")||!o,l=i("height")||!a;s&&o&&(r.style.width=`${o}px`),l&&a&&(r.style.height=`${a}px`);let c=n.getPropertyValue("object-fit"),u=n.getPropertyValue("object-position");c&&"fill"!==c?(r.style.objectFit=c,u&&(r.style.objectPosition=u)):(o&&(r.style.minWidth=`${o}px`),a&&(r.style.minHeight=`${a}px`))}catch(e){Od(t,"IMG dimension freeze failed",e)}}}catch(t){throw console.error("[Snapdom] Failed to clone node:",e,t),t}let s=null;if(e instanceof HTMLTextAreaElement){let{width:t,height:n}=Wh(e),i=t||e.getBoundingClientRect().width||0,o=n||e.getBoundingClientRect().height||0;i&&(r.style.width=`${i}px`),o&&(r.style.height=`${o}px`)}if(e instanceof HTMLInputElement){let n=(e.type||"text").toLowerCase();if("checkbox"!==n&&"radio"!==n||!function(){if(typeof navigator>"u")return!1;let e=(navigator.userAgent||"").toLowerCase();return e.includes("firefox")||e.includes("fxios")}())r.value=e.value,r.setAttribute("value",e.value),void 0!==e.checked&&(r.checked=e.checked,e.checked&&r.setAttribute("checked",""),e.indeterminate&&(r.indeterminate=e.indeterminate));else{let{el:n,applyVisual:i}=function(e){let t,{width:n,height:r}=Wh(e),i=e.getBoundingClientRect();try{t=window.getComputedStyle(e)}catch{}let o=t?parseFloat(t.width):NaN,a=t?parseFloat(t.height):NaN,s=Math.round(n||i.width||0),l=Math.round(r||i.height||0),c=Number.isFinite(o)&&o>0?Math.round(o):Math.max(12,s||16),u=Number.isFinite(a)&&a>0?Math.round(a):Math.max(12,l||16),f="checkbox"===(e.type||"text").toLowerCase(),d=!!e.checked,h=!!e.indeterminate,p=Math.max(Math.min(c,u),12),g="middle";try{t&&t.verticalAlign&&(g=t.verticalAlign)}catch{}let m=document.createElement("div");m.setAttribute("data-snapdom-input-replacement",e.type||"checkbox"),m.style.cssText=`display:inline-block;width:${p}px;height:${p}px;vertical-align:${g};flex-shrink:0;line-height:0;`;let y=document.createElementNS("http://www.w3.org/2000/svg","svg");function v(){let e="#0a6ed1";try{t&&(e=t.accentColor||t.color||e)}catch{}let n=p-2;if(y.innerHTML="",f){let t=document.createElementNS("http://www.w3.org/2000/svg","rect");if(t.setAttribute("x",String(1)),t.setAttribute("y",String(1)),t.setAttribute("width",String(n)),t.setAttribute("height",String(n)),t.setAttribute("rx","2"),t.setAttribute("ry","2"),t.setAttribute("fill",d?e:"none"),t.setAttribute("stroke",e),t.setAttribute("stroke-width",String(2)),y.appendChild(t),d){let e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("d",`M 3 ${p/2} L ${p/2-1} ${p-1-2} L ${p-1-2} 3`),e.setAttribute("stroke","white"),e.setAttribute("stroke-width",String(Math.max(1.5,2))),e.setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),y.appendChild(e)}else if(h){let t=document.createElementNS("http://www.w3.org/2000/svg","rect"),r=Math.max(6,n-4);t.setAttribute("x",String((p-r)/2)),t.setAttribute("y",String((p-2)/2)),t.setAttribute("width",String(r)),t.setAttribute("height",String(2)),t.setAttribute("fill",e),t.setAttribute("rx","1"),y.appendChild(t)}}else{let t=document.createElementNS("http://www.w3.org/2000/svg","circle");if(t.setAttribute("cx",String(p/2)),t.setAttribute("cy",String(p/2)),t.setAttribute("r",String((p-2)/2)),t.setAttribute("fill",d?e:"none"),t.setAttribute("stroke",e),t.setAttribute("stroke-width",String(2)),y.appendChild(t),d){let e=document.createElementNS("http://www.w3.org/2000/svg","circle"),t=Math.max(2,.35*(p-4));e.setAttribute("cx",String(p/2)),e.setAttribute("cy",String(p/2)),e.setAttribute("r",String(t)),e.setAttribute("fill","white"),y.appendChild(e)}}m.style.setProperty("width",`${p}px`,"important"),m.style.setProperty("height",`${p}px`,"important"),m.style.setProperty("min-width",`${p}px`,"important"),m.style.setProperty("min-height",`${p}px`,"important")}return y.setAttribute("width",String(p)),y.setAttribute("height",String(p)),y.setAttribute("viewBox",`0 0 ${p} ${p}`),m.appendChild(y),v(),{el:m,applyVisual:v}}(e);t.nodeMap.set(n,e),s=i,r=n}}if((e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&!e.value&&e.placeholder)try{let t=window.getComputedStyle(e,"::placeholder"),n=t&&t.color;if(n&&"rgba(0, 0, 0, 0)"!==n){let e="snapdom-ph-"+(1e6*Math.random()|0);r.classList.add(e);let i=document.createElement("style");i.textContent=`.${e}::placeholder{color:${n}!important;opacity:${t.opacity||"1"}!important;-webkit-text-fill-color:${n}!important;}`,r.prepend(i)}}catch{}if(e instanceof HTMLSelectElement&&(o=e.value),e instanceof HTMLTextAreaElement&&(a=e.value),e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement){e.disabled&&r.setAttribute("disabled",""),e.required&&r.setAttribute("required",""),e.readOnly&&r.setAttribute("readonly","");let t=e;void 0!==t.min&&""!==t.min&&r.setAttribute("min",t.min),void 0!==t.max&&""!==t.max&&r.setAttribute("max",t.max),void 0!==t.pattern&&""!==t.pattern&&r.setAttribute("pattern",t.pattern);let n=e.getAttribute("aria-invalid");null!==n&&r.setAttribute("aria-invalid",n)}if(Qh(e)||Dh(e,r,t,n),s&&s(),e instanceof SVGElement&&!Qh(e)){let t=["fill","stroke","stroke-width","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","opacity","fill-opacity","stroke-opacity","fill-rule","clip-rule","marker","marker-start","marker-mid","marker-end","visibility","display"];try{let n=window.getComputedStyle(e);for(let e of t){let t=n.getPropertyValue(e);t&&r.style.setProperty(e,t)}}catch{}}if(e.shadowRoot){try{let t=e.shadowRoot.querySelectorAll("slot");for(let e of t){let t=e.assignedNodes?.()||[];for(let e of t)i.add(e)}}catch{}let o=function(e){return e.shadowScopeSeq=(e.shadowScopeSeq||0)+1,`s${e.shadowScopeSeq}`}(t),a=`[data-sd="${o}"]`;t.shadowScopes||=new WeakMap,t.shadowScopes.set(e.shadowRoot,o);try{r.setAttribute("data-sd",o)}catch{}let s=function(e){let t="";try{e.querySelectorAll("style").forEach(e=>{t+=(e.textContent||"")+"\n"});let n=e.adoptedStyleSheets||[];for(let e of n)try{if(e&&e.cssRules)for(let n of e.cssRules)t+=n.cssText+"\n"}catch{}}catch{}return t}(e.shadowRoot),l=Vh(s,a,o),c=function(e){let t=new Set;if(!e)return t;let n,r=/var\(\s*(--[A-Za-z0-9_-]+)\b/g;for(;n=r.exec(e);)t.add(n[1]);return t}(s),u=function(e,t,n){let r=[];for(let n of t){let t=Yh(e,n);t&&r.push(`${n}: ${t};`)}return r.length?`${n}{${r.join("")}}\n`:""}(e,c,a);!function(e,t,n){if(!t)return;let r=document.createElement("style");r.setAttribute("data-sd",n),r.textContent=t,e.insertBefore(r,e.firstChild||null)}(r,u+l,o);let f=document.createDocumentFragment(),d=(e,r)=>{if(e.nodeType===Node.ELEMENT_NODE&&"STYLE"===e.tagName)return r(null);up(e,t,n).then(e=>{r(e||null)}).catch(()=>{r(null)})},h=await jh(Array.from(e.shadowRoot.childNodes),d,n.fast);f.append(...h.filter(e=>!!e)),r.appendChild(f)}if("SLOT"===e.tagName){let r=t.shadowScopes?.get(e.getRootNode()),i=e.assignedNodes?.()||[],o=i.length?e.assignedNodes?.({flatten:!0})||i:[],a=o.length?o:Array.from(e.childNodes),s=document.createDocumentFragment(),l=(e,o)=>{up(e,t,n).then(e=>{e&&i.length&&function(e,t){if(!e)return;let n=e=>{let n=e.getAttribute("data-sd-slotted")||"";t?` ${n} `.includes(` ${t} `)||e.setAttribute("data-sd-slotted",n?`${n} ${t}`:t):e.setAttribute("data-sd-slotted",n)};e.nodeType===Node.ELEMENT_NODE&&n(e),e.querySelectorAll?.("*").forEach(n)}(e,r),o(e||null)}).catch(()=>{o(null)})},c=await jh(Array.from(a),l,n.fast);return s.append(...c.filter(e=>!!e)),s}let l=await jh(Array.from(e.childNodes),function(r,o){if(i.has(r)||e.shadowRoot&&!r.assignedSlot)return o(null);up(r,t,n).then(e=>{o(e||null)}).catch(()=>{o(null)})},n.fast);if(r.append(...l.filter(e=>!!e)),null!==o&&r instanceof HTMLSelectElement){r.value=o;for(let e of r.options)e.value===o?e.setAttribute("selected",""):e.removeAttribute("selected")}return null!==a&&r instanceof HTMLTextAreaElement&&(r.textContent=a),r}op("IFRAME",async function(e,t,n){let r=!1;try{r=!(!e.contentDocument&&!e.contentWindow?.document)}catch(e){Od(t,"iframe same-origin probe failed",e)}if(r)try{return await Gh(e,t,n)}catch(e){console.warn("[SnapDOM] iframe rasterization failed, fallback:",e)}if(r||console.warn("[snapdom] cross-origin <iframe> skipped (its document cannot be read). Captured as a placeholder that keeps the frame's box; pass { placeholders: false } for an invisible spacer.",e),n.placeholders){let{width:r,height:i}=Wh(e),o=document.createElement("div");return o.style.cssText=`width:${r}px;height:${i}px;background-image:repeating-linear-gradient(45deg,#ddd,#ddd 5px,#f9f9f9 5px,#f9f9f9 10px);display:flex;align-items:center;justify-content:center;font-size:12px;color:#555;border:1px solid #aaa;`,Dh(e,o,t,n),o}{let{width:r,height:i}=Wh(e),o=document.createElement("div");return o.style.cssText=`display:inline-block;width:${r}px;height:${i}px;visibility:hidden;`,Dh(e,o,t,n),o}}),op("CANVAS",async function(e,t,n){let r="";try{let t=e.getContext("2d",{willReadFrequently:!0});try{t&&t.getImageData(0,0,1,1)}catch{}if((Hd()||!t)&&await Ud(),r=e.toDataURL("image/png"),!r||"data:,"===r){try{t&&t.getImageData(0,0,1,1)}catch{}if(await Ud(),r=e.toDataURL("image/png"),!r||"data:,"===r){let t=document.createElement("canvas");t.width=e.width,t.height=e.height;let n=t.getContext("2d");n&&(n.drawImage(e,0,0),r=t.toDataURL("image/png"))}}}catch(e){Od(t,"Canvas toDataURL failed, using empty/fallback",e)}n&&n.debug&&r&&function(e){try{let t=Math.max(1,Math.min(32,e.width)),n=Math.max(1,Math.min(32,e.height)),r=document.createElement("canvas");r.width=t,r.height=n;let i=r.getContext("2d",{willReadFrequently:!0});if(!i)return!1;i.drawImage(e,0,0,t,n);let o=i.getImageData(0,0,t,n).data;for(let e=3;e<o.length;e+=4)if(0!==o[e])return!1;return!0}catch{return!1}}(e)&&Od(t,"canvas is empty at capture time — capture it after its first frame is drawn",e);let i=document.createElement("img");try{i.decoding="sync",i.loading="eager"}catch(e){Od(t,"img decoding/loading hints failed",e)}r&&(i.src=r),i.width=e.width,i.height=e.height;let{width:o,height:a}=Wh(e);return o>0&&(i.style.width=`${o}px`),a>0&&(i.style.height=`${a}px`),t.nodeMap.set(i,e),Dh(e,i,t,n),i}),op("VIDEO",async function(e,t,n){let r="";try{let t=document.createElement("canvas");t.width=e.videoWidth||e.offsetWidth||320,t.height=e.videoHeight||e.offsetHeight||240;let n=t.getContext("2d");n&&(n.drawImage(e,0,0,t.width,t.height),r=t.toDataURL("image/png"),(!r||"data:,"===r)&&(r=""))}catch(e){Od(t,"Video frame capture failed, using poster fallback",e)}let i=document.createElement("img");try{i.decoding="sync",i.loading="eager"}catch{}r?i.src=r:e.poster&&(i.src=e.poster),i.width=e.videoWidth||e.offsetWidth||0,i.height=e.videoHeight||e.offsetHeight||0;let{width:o,height:a}=Wh(e);return o>0&&(i.style.width=`${o}px`),a>0&&(i.style.height=`${a}px`),i.style.objectFit="contain",t.nodeMap.set(i,e),Dh(e,i,t,n),i}),op("AUDIO",async function(e,t,n){if(!e.controls)return;let{width:r,height:i}=Wh(e),o=Math.round(r||e.offsetWidth||300),a=Math.round(i||e.offsetHeight||54),s=a/2,l=Math.max(4,.16*a),c=.34*a,u=o-.34*a,f=c+l+.55*a,d=Math.max(0,u-.7*a-f),h=Math.max(9,Math.round(.24*a)),p=`<svg xmlns="http://www.w3.org/2000/svg" width="${o}" height="${a}" viewBox="0 0 ${o} ${a}"><rect width="${o}" height="${a}" rx="${Math.min(a/2,10)}" fill="#f1f3f4"/><path d="M ${c} ${s-l} L ${c+l} ${s} L ${c} ${s+l} Z" fill="#5f6368"/><rect x="${f}" y="${s-1.5}" width="${d}" height="3" rx="1.5" fill="#bdc1c6"/><circle cx="${f}" cy="${s}" r="${Math.max(3,.09*a)}" fill="#5f6368"/><text x="${u}" y="${s}" fill="#5f6368" font-family="sans-serif" font-size="${h}" text-anchor="end" dominant-baseline="central">0:00</text></svg>`,g=document.createElement("img");try{g.decoding="sync",g.loading="eager"}catch{}return g.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(p)}`,g.width=o,g.height=a,g.style.width=`${o}px`,g.style.height=`${a}px`,t.nodeMap.set(g,e),Dh(e,g,t,n),g}),$d(),id(),Ld(),Zf(),Zf();var fp=[/font\s*awesome/i,/material\s*icons/i,/ionicons/i,/glyphicons/i,/feather/i,/bootstrap\s*icons/i,/remix\s*icons/i,/heroicons/i,/layui/i,/lucide/i],dp=Object.assign({materialIconsFilled:"https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2",materialIconsOutlined:"https://fonts.gstatic.com/s/materialiconsoutlined/v110/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUcel5euIg.woff2",materialIconsRound:"https://fonts.gstatic.com/s/materialiconsround/v109/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmPq_HTTw.woff2",materialIconsSharp:"https://fonts.gstatic.com/s/materialiconssharp/v110/oPWQ_lt5nv4pWNJpghLP75WiFR4kLh3kvmvRImcycg.woff2"},typeof window<"u"&&window.__SNAPDOM_ICON_FONTS__||{}),hp=[],pp=new Set;function gp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function mp(e){let t="string"==typeof e?e:"",n=[...fp,...hp];for(let e of n)if(e instanceof RegExp&&e.test(t))return!0;return!!(/icon/i.test(t)||/glyph/i.test(t)||/symbols/i.test(t)||/feather/i.test(t)||/fontawesome/i.test(t))}function yp(e=""){let t=String(e).toLowerCase();return/\bmaterial\s*icons\b/.test(t)||/\bmaterial\s*symbols\b/.test(t)}var vp=new Map;function Ap(e){let t=e.getPropertyValue("-webkit-text-fill-color")?.trim()||"",n=/^transparent$/i.test(t)||/rgba?\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(t);if(t&&!n&&"currentcolor"!==t.toLowerCase())return t;let r=e.color?.trim();return r&&"inherit"!==r?r:"#000"}async function bp(e,{family:t="Material Icons",weight:n="normal",fontSize:r=32,color:i="#000",variation:o="",className:a=""}={}){let s=String(t||"").replace(/^['"]+|['"]+$/g,""),l=window.devicePixelRatio||1,c=function(e=""){let t,n=Object.create(null),r=String(e||""),i=/['"]?\s*([A-Za-z]{3,4})\s*['"]?\s*([+-]?\d+(?:\.\d+)?)\s*/g;for(;t=i.exec(r);)n[t[1].toUpperCase()]=Number(t[2]);return n}(o),{familyForMeasure:u,familyForCanvas:f}=await async function(e,t,n){let r=String(e||""),i=r.toLowerCase(),o=String(t||"").toLowerCase();if(/\bmaterial\s*icons\b/.test(i)&&!/\bsymbols\b/.test(i))return{familyForMeasure:r,familyForCanvas:r};if(!/\bmaterial\s*symbols\b/.test(i))return{familyForMeasure:r,familyForCanvas:r};let a=n&&(n.FILL??n.fill),s="outlined";/\brounded\b/.test(o)||/\bround\b/.test(o)?s="rounded":/\bsharp\b/.test(o)?s="sharp":/\boutlined\b/.test(o)&&(s="outlined");let l=null;if(1===a&&("outlined"===s&&dp.materialIconsFilled?l={url:dp.materialIconsFilled,alias:"snapdom-mi-filled"}:"rounded"===s&&dp.materialIconsRound?l={url:dp.materialIconsRound,alias:"snapdom-mi-round"}:"sharp"===s&&dp.materialIconsSharp&&(l={url:dp.materialIconsSharp,alias:"snapdom-mi-sharp"})),!l)return{familyForMeasure:r,familyForCanvas:r};if(!vp.has(l.alias))try{let e=new FontFace(l.alias,`url(${l.url})`,{style:"normal",weight:"400"});document.fonts.add(e),await e.load(),vp.set(l.alias,!0)}catch{return{familyForMeasure:r,familyForCanvas:r}}let c=`"${l.alias}"`;return{familyForMeasure:c,familyForCanvas:c}}(s,a,c);await async function(e="Material Icons",t=24){try{await Promise.all([document.fonts.load(`400 ${t}px "${String(e).replace(/["']/g,"")}"`),document.fonts.ready])}catch{}}(f.replace(/^["']+|["']+$/g,""),r);let d=document.createElement("span");d.setAttribute("data-snapdom-internal",""),d.textContent=e,d.style.position="absolute",d.style.visibility="hidden",d.style.left="-99999px",d.style.whiteSpace="nowrap",d.style.fontFamily=u,d.style.fontWeight=String(n||"normal"),d.style.fontSize=`${r}px`,d.style.lineHeight="1",d.style.margin="0",d.style.padding="0",d.style.fontFeatureSettings="'liga' 1",d.style.fontVariantLigatures="normal",d.style.color=i,document.body.appendChild(d);let h=d.getBoundingClientRect(),p=Math.max(1,Math.ceil(h.width)),g=Math.max(1,Math.ceil(h.height));document.body.removeChild(d);let m=document.createElement("canvas");m.width=p*l,m.height=g*l;let y=m.getContext("2d");y.scale(l,l),y.font=`${n?`${n} `:""}${r}px ${f}`,y.textAlign="left",y.textBaseline="top",y.fillStyle=i;try{y.fontKerning="normal"}catch{}return y.fillText(e,0,0),{dataUrl:m.toDataURL(),width:p,height:g}}async function wp(e,t,n,r=32,i="#000"){t=t.replace(/^['"]+|['"]+$/g,"");let o=window.devicePixelRatio||1;try{await document.fonts.ready}catch{}let a=document.createElement("span");a.setAttribute("data-snapdom-internal",""),a.textContent=e,a.style.position="absolute",a.style.visibility="hidden",a.style.fontFamily=`"${t}"`,a.style.fontWeight=n||"normal",a.style.fontSize=`${r}px`,a.style.lineHeight="1",a.style.whiteSpace="nowrap",a.style.padding="0",a.style.margin="0",document.body.appendChild(a);let s=a.getBoundingClientRect(),l=Math.ceil(s.width),c=Math.ceil(s.height);document.body.removeChild(a);let u=document.createElement("canvas");u.width=Math.max(1,l*o),u.height=Math.max(1,c*o);let f=u.getContext("2d");return f.scale(o,o),f.font=n?`${n} ${r}px "${t}"`:`${r}px "${t}"`,f.textAlign="left",f.textBaseline="top",f.fillStyle=i,f.fillText(e,0,0),{dataUrl:u.toDataURL(),width:l,height:c}}fd(),qd();var Ip=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","emoji","math","fangsong","ui-serif","ui-sans-serif","ui-monospace","ui-rounded"]),xp=["katex","mathjax","mathml"];function Cp(e){if(!e)return"";for(let t of e.split(",")){let e=t.trim().replace(/^['"]+|['"]+$/g,"");if(e&&!Ip.has(e.toLowerCase()))return e}return""}function Bp(e){let t=String(e??"400").trim().toLowerCase();if("normal"===t)return 400;if("bold"===t)return 700;let n=parseInt(t,10);return Number.isFinite(n)?Math.min(900,Math.max(100,n)):400}function Ep(e){let t=String(e??"normal").trim().toLowerCase();return t.startsWith("italic")?"italic":t.startsWith("oblique")?"oblique":"normal"}function Sp(e){let t=String(e??"100%").match(/(\d+(?:\.\d+)?)\s*%/);return t?Math.max(50,Math.min(200,parseFloat(t[1]))):100}function kp(e){return e&&"string"==typeof e?e.replace(/\s+(variable|vf|v[0-9]+)$/i,"").trim().toLowerCase().replace(/\s+/g,"-"):""}function Fp(e,t,n=[]){if(!e)return!1;try{let r=new URL(e,location.href);if(r.origin===location.origin)return!0;let i=r.host.toLowerCase();if(["fonts.googleapis.com","fonts.gstatic.com","use.typekit.net","p.typekit.net","kit.fontawesome.com","use.fontawesome.com","cdn.jsdelivr.net","unpkg.com","cdnjs.cloudflare.com","esm.sh"].some(e=>i.endsWith(e))||n.some(e=>i===e.toLowerCase()||i.endsWith("."+e.toLowerCase())))return!0;let o=(r.pathname+r.search).toLowerCase();if(/\bfont(s)?\b/.test(o)||/\.woff2?(\b|$)/.test(o)||xp.some(e=>o.includes(e)))return!0;for(let e of t){let t=e.toLowerCase().replace(/\s+/g,"+"),n=e.toLowerCase().replace(/\s+/g,"-"),r=kp(e);if(o.includes(t)||o.includes(n)||r&&o.includes(r))return!0}return!1}catch{return!1}}function Dp(e,t){return e&&e.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/g,(e,n,r)=>{let i=(r||"").trim();if(!i||/^data:|^blob:|^https?:|^file:|^about:/i.test(i))return e;let o=i;try{o=new URL(i,t||location.href).href}catch{}return`url("${o}")`})}var Np=/@import\s+(?:url\(\s*(['"]?)([^)"']+)\1\s*\)|(['"])([^"']+)\3)([^;]*);/g;async function Mp(e,t,n){if(!e)return e;let r=new Set;function i(e,t){try{return new URL(e,t||location.href).href}catch{return e}}let o=Dp(e,t||location.href);return o=await async function e(t,o,a=0){if(a>4)return console.warn(`[snapDOM] @import depth exceeded (4) at ${o}`),t;let s,l="",c=0;for(;s=Np.exec(t);){l+=t.slice(c,s.index),c=Np.lastIndex;let u=i((s[2]||s[4]||"").trim(),o);if(r.has(u)){console.warn(`[snapDOM] Skipping circular @import: ${u}`);continue}r.add(u);let f="";try{let e=await sd(u,{as:"text",useProxy:n,silent:!0});e.ok&&"string"==typeof e.data&&(f=e.data)}catch{}f?(f=Dp(f,u),f=await e(f,u,a+1),l+=`\n/* inlined: ${u} */\n${f}\n`):l+=s[0]}return l+=t.slice(c),l}(o,t||location.href,0),o}var Tp=/url\((["']?)([^"')]+)\1\)/g,Qp=/@font-face[^{}]*\{[^}]*\}/g;function Lp(e,t,n=""){return(e.match(new RegExp(`${t}\\s*:\\s*([^;}]+)[;}]`,"i"))?.[1]||n).trim()}function Rp(e){if(!e)return[];let t=[],n=e.split(",").map(e=>e.trim()).filter(Boolean);for(let e of n){let n=e.match(/^U\+([0-9A-Fa-f?]+)(?:-([0-9A-Fa-f?]+))?$/);if(!n)continue;let r=n[1],i=n[2],o=e=>{if(!e.includes("?"))return parseInt(e,16);return[parseInt(e.replace(/\?/g,"0"),16),parseInt(e.replace(/\?/g,"F"),16)]};if(i){let e=o(r),n=o(i),a=Array.isArray(e)?e[0]:e,s=Array.isArray(n)?n[1]:n;t.push([Math.min(a,s),Math.max(a,s)])}else{let e=o(r);Array.isArray(e)?t.push([e[0],e[1]]):t.push([e,e])}}return t}function Up(e,t){if(!t.length||!e||0===e.size)return!0;for(let n of e)for(let[e,r]of t)if(n>=e&&n<=r)return!0;return!1}function Hp(e,t){let n=[];if(!e)return n;for(let r of e.matchAll(Tp)){let e=(r[2]||"").trim();if(e&&!e.startsWith("data:")){if(!/^https?:/i.test(e))try{e=new URL(e,t||location.href).href}catch{}n.push(e)}}return n}async function qp(e,t,n=""){let r=e;for(let i of e.matchAll(Tp)){let e=ed(i[0]);if(!e)continue;let o=e;if(!o.startsWith("http")&&!o.startsWith("data:"))try{o=new URL(o,t||location.href).href}catch{}if(!mp(o)){if(Kf.resource?.has(o)){Kf.font?.add(o),r=r.replace(i[0],`url(${Kf.resource.get(o)})`);continue}try{let e=await sd(o,{as:"dataURL",useProxy:n,silent:!0});if(e.ok&&"string"==typeof e.data){let t=e.data;Kf.resource?.set(o,t),Kf.font?.add(o),r=r.replace(i[0],`url(${t})`)}}catch{console.warn("[snapDOM] Failed to fetch font resource:",o)}}}return r}function Op(e={}){let t=new Set((e.families||[]).map(e=>String(e).toLowerCase())),n=new Set((e.domains||[]).map(e=>String(e).toLowerCase())),r=new Set((e.subsets||[]).map(e=>String(e).toLowerCase()));return(e,i)=>{if(t.size&&t.has(e.family.toLowerCase()))return!0;if(n.size)for(let t of e.srcUrls)try{if(n.has(new URL(t).host.toLowerCase()))return!0}catch{}if(r.size){let e=function(e){if(!e.length)return null;let t=(t,n)=>e.some(([e,r])=>!(r<t||e>n)),n=t(0,255)||t(305,305),r=t(256,591)||t(7680,7935),i=t(880,1023),o=t(1024,1279);return t(7840,7929)||t(258,259)||t(416,417)||t(431,432)?"vietnamese":o?"cyrillic":i?"greek":r?"latin-ext":n?"latin":null}(i);if(e&&r.has(e))return!0}return!1}}var Pp=new WeakMap,$p=0;function zp(e,t,n,r,i,o){let a=Array.from(e||[]).sort().join("|"),s=t?JSON.stringify({families:(t.families||[]).map(e=>String(e).toLowerCase()).sort(),domains:(t.domains||[]).map(e=>String(e).toLowerCase()).sort(),subsets:(t.subsets||[]).map(e=>String(e).toLowerCase()).sort()}):"",l=(n||[]).map(e=>`${(e.family||"").toLowerCase()}::${e.weight||"normal"}::${e.style||"normal"}::${e.src||""}`).sort().join("|"),c=r||"",u=(i||[]).map(e=>String(e).toLowerCase()).sort().join("|"),f=function(e){let t=Pp.get(e);return void 0===t&&(t=$p++,Pp.set(e,t)),t}(o||document);return`fonts-embed-css::req=${a}::ex=${s}::lf=${l}::px=${c}::fd=${u}::doc=${f}`}async function jp(e,t,n,r){let i;try{i=e.cssRules||[]}catch{return}let o=(e,t)=>{try{return new URL(e,t||location.href).href}catch{return e}};for(let e of i){if(e.type===CSSRule.IMPORT_RULE&&e.styleSheet){let i=e.href?o(e.href,t):t;if(r.depth>=4){console.warn(`[snapDOM] CSSOM import depth exceeded (4) at ${i}`);continue}if(i&&r.visitedSheets.has(i)){console.warn(`[snapDOM] Skipping circular CSSOM import: ${i}`);continue}i&&r.visitedSheets.add(i);let a={...r,depth:(r.depth||0)+1};await jp(e.styleSheet,i,n,a);continue}if(e.type===CSSRule.FONT_FACE_RULE){let i=Cp((e.style.getPropertyValue("font-family")||"").trim());if(!i||mp(i))continue;let o=(e.style.getPropertyValue("font-weight")||"").trim(),a=(e.style.getPropertyValue("font-style")||"").trim(),s=(e.style.getPropertyValue("font-stretch")||"").trim(),l=(e.style.getPropertyValue("font-variation-settings")||"").trim(),c=(e.style.getPropertyValue("src")||"").trim(),u=(e.style.getPropertyValue("unicode-range")||"").trim(),f=o||"400",d=a||"normal",h=s||"100%",p=(a?`font-style:${a};`:"")+(o?`font-weight:${o};`:"")+(s?`font-stretch:${s};`:"")+(l?`font-variation-settings:${l};`:"")+(u?`unicode-range:${u};`:""),g=r.faceMatchesRequired(i,d,f,h);if(!g&&!r.requiredIndex.has(i.toLowerCase()))continue;let m=Rp(u);if(!Up(r.usedCodepoints,m))continue;let y={family:i,weightSpec:f,styleSpec:d,stretchSpec:h,unicodeRange:u,srcRaw:c,srcUrls:Hp(c,t||location.href),href:t||location.href};if(r.simpleExcluder&&r.simpleExcluder(y,m))continue;if(!g){r.provisionalFaces.push({family:i.toLowerCase(),block:`@font-face{font-family:${i};src:${c};${p}}`,srcRaw:c,baseHref:t||location.href});continue}if(r.coveredFamilies.add(i.toLowerCase()),/url\(/i.test(c)){let e=await qp(c,t||location.href,r.useProxy);await n(`@font-face{font-family:${i};src:${e};${p}}`)}else await n(`@font-face{font-family:${i};src:${c};${p}}`)}}}async function Vp({required:e,usedCodepoints:t,exclude:n,localFonts:r=[],useProxy:i="",fontStylesheetDomains:o=[],doc:a=document}={}){e instanceof Set||(e=new Set),t instanceof Set||(t=new Set);let s=new Map;for(let t of e){let[e,n,r,i]=String(t).split("__");if(!e)continue;let o=e.toLowerCase(),a=s.get(o)||[];a.push({w:parseInt(n,10),s:r,st:parseInt(i,10)}),s.set(o,a)}function l(e,t,n,r){let i=String(e).toLowerCase();if(!s.has(i))return!1;let o=s.get(i),a=function(e){let t=String(e||"400").trim(),n=t.match(/^(\d{2,3})\s+(\d{2,3})$/);if(n){let e=Bp(n[1]),t=Bp(n[2]);return{min:Math.min(e,t),max:Math.max(e,t)}}let r=Bp(t);return{min:r,max:r}}(n),l=function(e){let t=String(e||"normal").trim().toLowerCase();return"italic"===t?{kind:"italic"}:t.startsWith("oblique")?{kind:"oblique"}:{kind:"normal"}}(t),c=function(e){let t=String(e||"100%").trim(),n=t.match(/(\d+(?:\.\d+)?)\s*%\s+(\d+(?:\.\d+)?)\s*%/);if(n){let e=parseFloat(n[1]),t=parseFloat(n[2]);return{min:Math.min(e,t),max:Math.max(e,t)}}let r=t.match(/(\d+(?:\.\d+)?)\s*%/),i=r?parseFloat(r[1]):100;return{min:i,max:i}}(r),u=a.min!==a.max,f=a.min,d=e=>"normal"===l.kind&&"normal"===e||"normal"!==l.kind&&("italic"===e||"oblique"===e),h=!1;for(let e of o){let t=u?e.w>=a.min&&e.w<=a.max:e.w===f,n=d(Ep(e.s)),r=e.st>=c.min&&e.st<=c.max;if(t&&n&&r){h=!0;break}}if(h)return!0;if(!u)for(let e of o){let t=d(Ep(e.s)),n=e.st>=c.min&&e.st<=c.max;if(Math.abs(f-e.w)<=300&&t&&n)return!0}if(!u&&"normal"===l.kind&&o.some(e=>"normal"!==Ep(e.s)))for(let e of o){let t=Math.abs(f-e.w)<=300,n=e.st>=c.min&&e.st<=c.max;if(t&&n)return!0}return!1}let c=Op(n),u=zp(e,n,r,i,o,a);if(Kf.resource?.has(u))return Kf.resource.get(u);let f=function(e){let t=new Set;for(let n of e||[]){let e=String(n).split("__")[0]?.trim();e&&t.add(e)}return t}(e),d=[],h=Np;for(let e of a.querySelectorAll("style")){let t=e.textContent||"";for(let e of t.matchAll(h)){let t=(e[2]||e[4]||"").trim();t&&!mp(t)&&(a.querySelector(`link[rel="stylesheet"][href="${t}"]`)||d.push(t))}}let p=[];d.length&&await Promise.all(d.map(e=>new Promise(t=>{if(a.querySelector(`link[rel="stylesheet"][href="${e}"]`))return t(null);let n=a.createElement("link");n.rel="stylesheet",n.href=e,n.setAttribute("data-snapdom","injected-import"),n.onload=()=>t(n),n.onerror=()=>t(null),a.head.appendChild(n),p.push(n)})));let g="",m=new Set,y=[],v=Array.from(a.querySelectorAll('link[rel="stylesheet"]')).filter(e=>!!e.href);for(let e of p)try{e.remove()}catch{}for(let e of v)try{if(mp(e.href))continue;let r="",u=!1;try{u=new URL(e.href,location.href).origin===location.origin}catch{}if(!u){let t=Array.isArray(o)?o:[];if(!Fp(e.href,f,t))continue}if(u){let t=Array.from(a.styleSheets).find(t=>t.href===e.href);if(t)try{let e=t.cssRules||[];r=Array.from(e).map(e=>e.cssText).join("")}catch{}}if(!r){let t=await sd(e.href,{as:"text",useProxy:i});if(t?.ok&&"string"==typeof t.data&&(r=t.data),mp(e.href))continue}r=await Mp(r,e.href,i);let d="";for(let o of r.match(Qp)||[]){let r=Cp(Lp(o,"font-family"));if(!r||mp(r))continue;let a=Lp(o,"font-weight","400"),u=Lp(o,"font-style","normal"),f=Lp(o,"font-stretch","100%"),h=Lp(o,"unicode-range"),p=Lp(o,"src"),g=Hp(p,e.href),v=l(r,u,a,f);if(!v&&!s.has(r.toLowerCase()))continue;let A=Rp(h);if(!Up(t,A))continue;let b={family:r,weightSpec:a,styleSpec:u,stretchSpec:f,unicodeRange:h,srcRaw:p,srcUrls:g,href:e.href};n&&c(b,A)||(v?(m.add(r.toLowerCase()),d+=/url\(/i.test(p)?await qp(o,e.href,i):o):y.push({family:r.toLowerCase(),block:o,srcRaw:p,baseHref:e.href}))}d.trim()&&(g+=d)}catch{console.warn("[snapDOM] Failed to process stylesheet:",e.href)}let A={requiredIndex:s,usedCodepoints:t,faceMatchesRequired:l,coveredFamilies:m,provisionalFaces:y,simpleExcluder:n?Op(n):null,useProxy:i,visitedSheets:new Set,depth:0};for(let e of a.styleSheets)if(!e.href||!v.some(t=>t.href===e.href))try{let t=e.href||location.origin+"/";t&&A.visitedSheets.add(t),await jp(e,t,async e=>{g+=e},A)}catch{}for(let e of y)m.has(e.family)||(g+=/url\(/i.test(e.srcRaw)?await qp(e.block,e.baseHref,i):e.block);try{for(let e of a.fonts||[]){if(!e||!e.family||"loaded"!==e.status||!e._snapdomSrc)continue;let t=String(e.family).replace(/^['"]+|['"]+$/g,"");if(mp(t)||!s.has(t.toLowerCase())||n?.families&&n.families.some(e=>String(e).toLowerCase()===t.toLowerCase()))continue;let r=e._snapdomSrc;if(!String(r).startsWith("data:"))if(Kf.resource?.has(e._snapdomSrc))r=Kf.resource.get(e._snapdomSrc),Kf.font?.add(e._snapdomSrc);else if(!Kf.font?.has(e._snapdomSrc))try{let t=await sd(e._snapdomSrc,{as:"dataURL",useProxy:i,silent:!0});if(!t.ok||"string"!=typeof t.data)continue;r=t.data,Kf.resource?.set(e._snapdomSrc,r),Kf.font?.add(e._snapdomSrc)}catch{console.warn("[snapDOM] Failed to fetch dynamic font src:",e._snapdomSrc);continue}g+=`@font-face{font-family:'${t}';src:url(${r});font-style:${e.style||"normal"};font-weight:${e.weight||"normal"};}`}}catch{}for(let e of r){if(!e||"object"!=typeof e)continue;let t=String(e.family||"").replace(/^['"]+|['"]+$/g,"");if(!t||mp(t)||!s.has(t.toLowerCase())||n?.families&&n.families.some(e=>String(e).toLowerCase()===t.toLowerCase()))continue;let r=null!=e.weight?String(e.weight):"normal",o=null!=e.style?String(e.style):"normal",a=null!=e.stretchPct?`${e.stretchPct}%`:"100%",l=String(e.src||""),c=l;if(!c.startsWith("data:"))if(Kf.resource?.has(l))c=Kf.resource.get(l),Kf.font?.add(l);else if(!Kf.font?.has(l))try{let e=await sd(l,{as:"dataURL",useProxy:i,silent:!0});if(!e.ok||"string"!=typeof e.data)continue;c=e.data,Kf.resource?.set(l,c),Kf.font?.add(l)}catch{console.warn("[snapDOM] Failed to fetch localFonts src:",l);continue}g+=`@font-face{font-family:'${t}';src:url(${c});font-style:${o};font-weight:${r};font-stretch:${a};}`}return g&&(g=function(e){if(!e)return e;let t=/@font-face[^{}]*\{[^}]*\}/gi,n=new Set,r=[];for(let i of e.match(t)||[]){let e=Cp(Lp(i,"font-family")),t=Lp(i,"font-weight","400"),o=Lp(i,"font-style","normal"),a=Lp(i,"font-stretch","100%"),s=Lp(i,"unicode-range"),l=Lp(i,"src"),c=Hp(l,location.href),u=c.length?c.map(e=>String(e).toLowerCase()).sort().join("|"):l.toLowerCase(),f=[String(e||"").toLowerCase(),t,o,a,s.toLowerCase(),u].join("|");n.has(f)||(n.add(f),r.push(i))}if(0===r.length)return e;let i=0;return e.replace(t,()=>r[i++]||"")}(g),Kf.resource?.set(u,g)),g}function Yp(e,t){let n=new Set,r=new Set;if(!e)return{required:n,usedCodepoints:r};let i=e=>{if(e)for(let t of e)r.add(t.codePointAt(0))},o=e=>{let t=function(e){if(!e)return[];let t=[];for(let n of e.split(",")){let e=n.trim().replace(/^['"]+|['"]+$/g,"");e&&(Ip.has(e.toLowerCase())||t.push(e))}return t}(e.fontFamily);if(t.length)for(let r of t)n.add(`${r}__${Bp(e.fontWeight)}__${Ep(e.fontStyle)}__${Sp(e.fontStretch)}`)},a=e=>{o(vd(e));for(let t of["::before","::after"]){let n=vd(e,t),a=n&&n.content;if(a&&"none"!==a&&"normal"!==a)if(o(n),/^["']/.test(a))i(a.slice(1,-1));else{let e=a.match(/\\[0-9A-Fa-f]{1,6}/g);if(e)for(let t of e)try{r.add(parseInt(t.slice(1),16))}catch{}}}};a(e);let s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null);for(;s.nextNode();){let e=s.currentNode;if(e.nodeType===Node.TEXT_NODE){if(t&&e.parentElement&&!t(e.parentElement))continue;i(e.nodeValue||"")}else{if(t&&!t(e))continue;a(e)}}return{required:n,usedCodepoints:r}}async function Wp(e,t=2,n=document){try{await n.fonts.ready}catch{}let r=Array.from(e||[]).filter(Boolean);if(0===r.length)return;let i=()=>{let e=n.createElement("div");e.setAttribute("data-snapdom-internal",""),e.style.cssText="position:absolute!important;left:-9999px!important;top:0!important;opacity:0!important;pointer-events:none!important;contain:layout size style;";for(let t of r){let r=n.createElement("span");r.textContent="AaBbGg1234ÁÉÍÓÚçñ—∞",r.style.fontFamily=`"${t}"`,r.style.fontWeight="700",r.style.fontStyle="italic",r.style.fontSize="32px",r.style.lineHeight="1",r.style.whiteSpace="nowrap",r.style.margin="0",r.style.padding="0",e.appendChild(r)}n.body.appendChild(e),e.offsetWidth,n.body.removeChild(e)};for(let e=0;e<Math.max(1,t);e++)i(),await Ud(),await Ud()}function Gp(e,t=!1){let n="",r=Math.max(1,e);for(;r>0;)r--,n=String.fromCharCode(97+r%26)+n,r=Math.floor(r/26);return t?n.toUpperCase():n}function Jp(e,t=!0){let n=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]],r=Math.max(1,Math.min(3999,e)),i="";for(let[e,t]of n)for(;r>=e;)i+=t,r-=e;return t?i:i.toLowerCase()}function _p(e,t){switch((t||"decimal").toLowerCase()){case"decimal":default:return String(e);case"decimal-leading-zero":{let t=Math.abs(e);return(e<0?"-":"")+(t<10?"0":"")+String(t)}case"lower-alpha":return Gp(e,!1);case"upper-alpha":return Gp(e,!0);case"lower-roman":return Jp(e,!1);case"upper-roman":return Jp(e,!0)}}function Xp(e){let t=new WeakMap,n=e instanceof Document?e.documentElement:e,r=e=>{let t=0,n=e?.parentElement;if(!n)return 0;for(let r of n.children){if(r===e)break;"LI"===r.tagName&&t++}return t},i=(e,t,n)=>{let i,o,a,s=(e=>{let t=new Map;for(let[n,r]of e)t.set(n,r.slice());return t})(e);try{i=n.style?.counterReset||getComputedStyle(n).counterReset}catch{}if(i&&"none"!==i)for(let e of i.split(",")){let n=e.trim().split(/\s+/),r=n[0],i=Number.isFinite(Number(n[1]))?Number(n[1]):0;if(!r)continue;let o=t.get(r);if(o&&o.length){let e=o.slice();e.push(i),s.set(r,e)}else s.set(r,[i])}try{o=n.style?.counterSet||getComputedStyle(n).counterSet}catch{}if(o&&"none"!==o)for(let e of o.split(",")){let t=e.trim().split(/\s+/),n=t[0],r=Number.isFinite(Number(t[1]))?Number(t[1]):0;if(!n)continue;let i=s.get(n)||[];0===i.length&&i.push(0),i[i.length-1]=r,s.set(n,i)}try{a=n.style?.counterIncrement||getComputedStyle(n).counterIncrement}catch{}if(a&&"none"!==a)for(let e of a.split(",")){let t=e.trim().split(/\s+/),n=t[0],r=Number.isFinite(Number(t[1]))?Number(t[1]):1;if(!n)continue;let i=s.get(n)||[];0===i.length&&i.push(0),i[i.length-1]+=r,s.set(n,i)}try{if("list-item"===getComputedStyle(n).display&&(e=>e&&"LI"===e.tagName)(n)){let e=n.parentElement,t=1;if(e&&"OL"===e.tagName){let i=e.getAttribute("start"),o=Number.isFinite(Number(i))?Number(i):1,a=r(n),s=n.getAttribute("value");t=Number.isFinite(Number(s))?Number(s):o+a}else t=1+r(n);let i=s.get("list-item")||[];0===i.length&&i.push(0),i[i.length-1]=t,s.set("list-item",i)}}catch{}return s},o=(e,n,r)=>{let a=i(r,n,e);t.set(e,a);let s=a;for(let t of e.children)s=o(t,a,s);let l=new Map;for(let[e,t]of r){let n=t.length,r=s.get(e);l.set(e,r&&r.length?r.slice(0,n):t.slice())}for(let[e,t]of s)!l.has(e)&&t.length&&!n.has(e)&&l.set(e,t.slice(0,1));return l},a=new Map;return o(n,a,a),{get(e,n){let r=t.get(e)?.get(n);return r&&r.length?r[r.length-1]:0},getStack(e,n){let r=t.get(e)?.get(n);return r?r.slice():[]}}}fd();var Kp=new WeakMap;function Zp(e){try{return e&&e.cssRules?e.cssRules:null}catch{return null}}function eg(e){let t=e.querySelectorAll('style,link[rel~="stylesheet"]'),n=`n:${t.length}|`,r=0;for(let e=0;e<t.length;e++){let i=t[e];if("STYLE"===i.tagName){n+=`S${i.textContent?i.textContent.length:0}|`;let e=i.sheet,t=e?Zp(e):null;t&&(r+=t.length)}else{n+=`L${i.getAttribute("href")||""}|m:${i.getAttribute("media")||"all"}|`;let e=i.sheet,t=e?Zp(e):null;t&&(r+=t.length)}}let i=e.adoptedStyleSheets;return n+=`ass:${Array.isArray(i)?i.length:0}|tr:${r}`,n}function tg(e,t,n){let r=Zp(e);if(!r)return!1;for(let e=0;e<r.length;e++){if(n.budget<=0)return!1;let i=r[e],o=i&&i.cssText?i.cssText:"";n.budget--;for(let e of t)if(o.includes(e))return!0;if(i&&i.cssRules&&i.cssRules.length)for(let e=0;e<i.cssRules.length&&n.budget>0;e++){let r=i.cssRules[e],o=r&&r.cssText?r.cssText:"";n.budget--;for(let e of t)if(o.includes(e))return!0}if(n.budget<=0)return!1}return!1}function ng(e=document,t=eg(e)){let n=Kp.get(e);if(n&&n.fingerprint===t)return n.result;let r=["::before","::after","::first-letter",":before",":after",":first-letter","counter(","counters(","counter-increment","counter-reset"],i=e.querySelectorAll("style");for(let n=0;n<i.length;n++){let o=i[n].textContent||"";for(let n of r)if(o.includes(n))return Kp.set(e,{fingerprint:t,result:!0}),!0}let o=e.adoptedStyleSheets;if(Array.isArray(o)&&o.length){let n={budget:1e3};try{for(let i of o)if(tg(i,r,n))return Kp.set(e,{fingerprint:t,result:!0}),!0}catch{}}{let n=e.querySelectorAll('style,link[rel~="stylesheet"]'),i={budget:1e3};for(let o=0;o<n.length&&i.budget>0;o++){let a=n[o],s=null;if(a.tagName,s=a.sheet||null,s&&tg(s,r,i))return Kp.set(e,{fingerprint:t,result:!0}),!0}}return e.querySelector('[style*="counter("], [style*="counters("]')?(Kp.set(e,{fingerprint:t,result:!0}),!0):(Kp.set(e,{fingerprint:t,result:!1}),!1)}function rg(e){for(let t of["Top","Right","Bottom","Left"]){let n=parseFloat(e[`border${t}Width`])||0,r=e[`border${t}Style`];if(n>0&&r&&"none"!==r&&"hidden"!==r)return!0}return!1}function ig(e){if(!e)return"";let t,n=[],r=/"([^"]*)"/g,i=0;for(;t=r.exec(e);){let o=e.slice(i,t.index).trim();o&&n.push(o),n.push(t[1]),i=r.lastIndex}let o=e.slice(i).trim();return o&&n.push(o),n.join("")}function og(e,t,n){let r=e.parentElement,i=r&&n?n.get(r):null;return i?{get(e,n){let r=t.get(e,n),o=i.get(n);return"number"==typeof o?Math.max(r,o):r},getStack(e,n){let r=t.getStack(e,n);if(!r.length)return r;let o=i.get(n);if("number"==typeof o){let e=r.slice();return e[e.length-1]=Math.max(e[e.length-1],o),e}return r}}:t}function ag(e,t,n){let r=new Map;function i(e){let t=[];if(!e||"none"===e)return t;for(let n of String(e).split(",")){let e=n.trim().split(/\s+/),r=e[0],i=Number.isFinite(Number(e[1]))?Number(e[1]):void 0;r&&t.push({name:r,num:i})}return t}let o=i(t?.counterReset),a=i(t?.counterSet),s=i(t?.counterIncrement);function l(t){if(r.has(t))return r.get(t).slice();let i=n.getStack(e,t);i=i.length?i.slice():[];let l=o.find(e=>e.name===t);if(l){let e=Number.isFinite(l.num)?l.num:0;i=i.length?[...i,e]:[e]}let c=a.find(e=>e.name===t);if(c){let e=Number.isFinite(c.num)?c.num:0;0===i.length&&(i=[0]),i[i.length-1]=e}let u=s.find(e=>e.name===t);if(u){let e=Number.isFinite(u.num)?u.num:1;0===i.length&&(i=[0]),i[i.length-1]+=e}return r.set(t,i.slice()),i}return{get(e,t){let n=l(t);return n.length?n[n.length-1]:0},getStack:(e,t)=>l(t),__incs:s}}function sg(e,t,n,r){let i;try{i=vd(e,t)}catch{}let o=i?.content;if(!o||"none"===o||"normal"===o)return{text:"",incs:[]};o=function(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];if('"'===r)t=!t;else if("/"===r&&!t)return e.slice(0,n).trim()}return e}(o);let a=ag(e,i,og(e,n,r)),s=function(e){return/\bcounter\s*\(|\bcounters\s*\(/.test(e||"")}(o)?function(e,t,n){if(!e||"none"===e)return e;try{let r=/\b(counter|counters)\s*\(([^)]+)\)/g;return e.replace(r,(e,r,i)=>{let o=String(i).split(",").map(e=>e.trim());if("counter"===r){let e=o[0]?.replace(/^["']|["']$/g,""),r=(o[1]||"decimal").toLowerCase();return _p(n.get(t,e),r)}{let e=o[0]?.replace(/^["']|["']$/g,""),r=o[1]?.replace(/^["']|["']$/g,"")??"",i=(o[2]||"decimal").toLowerCase(),a=n.getStack(t,e);return a.length?a.map(e=>_p(e,i)).join(r):""}})}catch{return"- "}}(o,e,a):o;return{text:ig(s),incs:a.__incs||[]}}async function lg(e,t,n,r){if(1!==e?.nodeType||1!==t?.nodeType||"TEXTAREA"===e.tagName)return;if(!function(e,t){let n=eg(e);return t?(t.__pseudoPreflightFp!==n&&(t.__pseudoPreflight=ng(e,n),t.__pseudoPreflightFp=n),!!t.__pseudoPreflight):ng(e,n)}(e.ownerDocument||document,n))return;n.__siblingCounters||(n.__siblingCounters=new WeakMap),n.__counterCtx||(n.__counterCtx=function(e,t){let n=null,r=()=>{if(!n)try{n=Xp(e)}catch(e){Od(t,"buildCounterContext failed",e),n={get:()=>0,getStack:()=>[]}}return n};return{get:(e,t)=>r().get(e,t),getStack:(e,t)=>r().getStack(e,t)}}(e.ownerDocument||document,n));let i=n.__counterCtx;for(let o of["::before","::after","::first-letter"])try{let a=vd(e,o);if(!a||"none"===a.content&&"none"===a.backgroundImage&&"transparent"===a.backgroundColor&&!rg(a)&&(!a.transform||"none"===a.transform)&&"inline"===a.display)continue;if("::first-letter"===o){let r=vd(e),i=(r?.display||"").toLowerCase();if(i.includes("flex")||i.includes("grid"))continue;let o=e=>a[e]!==r[e]&&0!==(parseFloat(a[e])||0);if(!(a.color!==r.color||a.fontSize!==r.fontSize||a.fontWeight!==r.fontWeight||a.fontFamily!==r.fontFamily||a.fontStyle!==r.fontStyle||a.textTransform!==r.textTransform||a.float!==r.float&&"none"!==a.float||o("paddingTop")||o("paddingRight")||o("paddingBottom")||o("paddingLeft")||o("marginTop")||o("marginRight")||o("marginBottom")||o("marginLeft")))continue;let s=Array.from(t.childNodes).find(e=>e.nodeType===Node.TEXT_NODE&&e.textContent?.trim().length>0);if(!s)continue;let l=s.textContent,c=l.match(/^([^\p{L}\p{N}\s]*[\p{L}\p{N}](?:['’])?)/u)?.[0],u=l.slice(c?.length||0);if(!c||/[\uD800-\uDFFF]/.test(c))continue;let f=document.createElement("span");f.textContent=c,f.dataset.snapdomPseudo="::first-letter";let d=yd(Ad(a),"span");n.styleMap.set(f,d);let h=document.createTextNode(u);t.replaceChild(h,s),t.insertBefore(f,h);continue}let s=a.content??"",l=""===s||"none"===s||"normal"===s,{text:c,incs:u}=sg(e,o,i,n.__siblingCounters),f=a.backgroundImage,d=a.backgroundColor,h=a.fontFamily,p=parseInt(a.fontSize)||32,g=parseInt(a.fontWeight)||!1,m=a.color||"#000",y=a.transform,v=mp(h),A=!l&&""!==c,b=f&&"none"!==f,w=d&&"transparent"!==d&&"rgba(0, 0, 0, 0)"!==d,I=rg(a),x=y&&"none"!==y,C="none"!==s&&"normal"!==s,B=C&&((parseFloat(a.width)||0)>0||(parseFloat(a.height)||0)>0),E=C&&a.boxShadow&&"none"!==a.boxShadow,S=C&&a.outlineStyle&&"none"!==a.outlineStyle&&(parseFloat(a.outlineWidth)||0)>0;if(!(A||b||w||I||x||B||E||S)){if(u&&u.length&&e.parentElement){let t=n.__siblingCounters.get(e.parentElement)||new Map;for(let{name:r}of u){if(!r)continue;let a=og(e,i,n.__siblingCounters),s=ag(e,vd(e,o),a).get(e,r);t.set(r,s)}n.__siblingCounters.set(e.parentElement,t)}continue}let k=c.startsWith("url(")||/^-?(?:webkit-)?image-set\(/i.test(c),F=!1;if(A&&!v&&c.length>1&&!k){let n=vd(e),r=parseFloat(n.fontSize)||16,i=parseFloat(n.lineHeight);Number.isFinite(i)||(i=1.5*r),e.getBoundingClientRect().height<1.6*i&&(t.style.whiteSpace="nowrap",F=!0)}let D=document.createElement("span");D.dataset.snapdomPseudo=o,D.style.pointerEvents="none",F&&(D.style.whiteSpace="nowrap");let N=Ad(a),M=(vd(e).display||"").toLowerCase(),T=M.includes("flex")||M.includes("grid");if(T){let e=N["min-width"];(!e||"auto"===e||"0px"===e)&&(N["min-width"]="0px")}let Q=yd(N,"span",A,T);if(n.styleMap.set(D,Q),v&&c&&1===c.length){let{dataUrl:e,width:n,height:r}=await wp(c,h,g,p,m),i=document.createElement("img");i.src=e,i.style=`height:${p}px;width:${n/r*p}px;object-fit:contain;`,D.appendChild(i),t.dataset.snapdomHasIcon="true"}else if(c&&k){let t=td(c,typeof devicePixelRatio<"u"&&devicePixelRatio||1)??ed(c);if(t?.trim())try{let e=await sd(nd(t),{as:"dataURL",useProxy:r.useProxy});if(e?.ok&&"string"==typeof e.data){let t=document.createElement("img");t.src=e.data,t.style=`width:${p}px;height:auto;object-fit:contain;`,D.appendChild(t)}}catch(t){console.error(`[snapdom] Error in pseudo ${o} for`,e,t)}}else!v&&A&&(D.textContent=c);D.style.backgroundImage="none","maskImage"in D.style&&(D.style.maskImage="none"),"webkitMaskImage"in D.style&&(D.style.webkitMaskImage="none");try{D.style.backgroundRepeat=a.backgroundRepeat,D.style.backgroundSize=a.backgroundSize,a.backgroundPositionX&&a.backgroundPositionY?(D.style.backgroundPositionX=a.backgroundPositionX,D.style.backgroundPositionY=a.backgroundPositionY):D.style.backgroundPosition=a.backgroundPosition,D.style.backgroundOrigin=a.backgroundOrigin,D.style.backgroundClip=a.backgroundClip,D.style.backgroundAttachment=a.backgroundAttachment,D.style.backgroundBlendMode=a.backgroundBlendMode}catch{}if(b)try{let e=bd(f),t=await Promise.all(e.map(dd));D.style.backgroundImage=t.join(", ")}catch(e){console.warn(`[snapdom] Failed to inline background-image for ${o}`,e)}w&&(D.style.backgroundColor=d);let L=D.childNodes.length>0||""!==D.textContent?.trim()||b||w||I||x||B||E||S;if(u&&u.length&&e.parentElement){let t=n.__siblingCounters.get(e.parentElement)||new Map,r=og(e,i,n.__siblingCounters),a=ag(e,vd(e,o),r);for(let{name:n}of u){if(!n)continue;let r=a.get(e,n);t.set(n,r)}n.__siblingCounters.set(e.parentElement,t)}if(!L)continue;"::before"===o?(t.dataset.snapdomHasBefore="1",t.insertBefore(D,t.firstChild)):(t.dataset.snapdomHasAfter="1",t.appendChild(D))}catch(t){console.warn(`[snapdom] Failed to capture ${o} for`,e,t)}let o=Array.from(t.children).filter(e=>!e.dataset.snapdomPseudo);if(n.nodeMap)for(let e of o){let t=n.nodeMap.get(e);1===t?.nodeType&&await lg(t,e,n,r)}else{let t=Array.from(e.children);for(let e=0;e<Math.min(t.length,o.length);e++)await lg(t[e],o[e],n,r)}}function cg(e,t){if(!e||1!==e?.nodeType)return;let n=e.ownerDocument||document,r=t||n,i=e instanceof SVGSVGElement?[e]:Array.from(e.querySelectorAll("svg"));if(0===i.length)return;let o=/url\(\s*#([^)]+)\)/g,a=["fill","stroke","filter","clip-path","mask","marker","marker-start","marker-mid","marker-end"],s=e=>{if(!e||!e.getAttribute)return null;let t=e.getAttribute("href")||e.getAttribute("xlink:href")||("function"==typeof e.getAttributeNS?e.getAttributeNS("http://www.w3.org/1999/xlink","href"):null);if(t)return t;let n=e.attributes;if(!n)return null;for(let e=0;e<n.length;e++){let t=n[e];if(!t||!t.name)continue;if("href"===t.name)return t.value;let r=t.name.indexOf(":");if(-1!==r&&"href"===t.name.slice(r+1))return t.value}return null},l=new Set(Array.from(e.querySelectorAll("[id]")).map(e=>e.id)),c=new Set,u=!1,f=(e,t=null)=>{if(!e)return;let n;for(o.lastIndex=0;n=o.exec(e);){u=!0;let e=(n[1]||"").trim();e&&(l.has(e)||(c.add(e),t&&!t.has(e)&&t.add(e)))}},d=e=>{let t=e.querySelectorAll("use");for(let e of t){let t=s(e);if(!t||!t.startsWith("#"))continue;u=!0;let n=t.slice(1).trim();n&&!l.has(n)&&c.add(n)}f(e.getAttribute("style")||"");for(let t of a)f(e.getAttribute(t));let n=e.querySelectorAll('*[style*="url("],*[fill^="url("], *[stroke^="url("],*[filter^="url("],*[clip-path^="url("],*[mask^="url("],*[marker^="url("],*[marker-start^="url("],*[marker-mid^="url("],*[marker-end^="url("]');for(let e of n){f(e.getAttribute("style")||"");for(let t of a)f(e.getAttribute(t))}};for(let e of i)d(e);if(!u)return;let h=e.querySelector("svg.inline-defs-container");h||(h=n.createElementNS("http://www.w3.org/2000/svg","svg"),h.classList.add("inline-defs-container"),h.setAttribute("aria-hidden","true"),h.setAttribute("style","position:absolute;width:0;height:0;overflow:hidden"),e.insertBefore(h,e.firstChild||null));let p=h.querySelector("defs")||null,g=t=>{if(!t||l.has(t))return null;let n=(e=>window.CSS&&CSS.escape?CSS.escape(e):e.replace(/[^a-zA-Z0-9_-]/g,"\\$&"))(t),i=t=>{let n=r.querySelector(t);return n&&!e.contains(n)?n:null};return i(`svg defs > *#${n}`)||i(`svg > symbol#${n}`)||i(`*#${n}`)};if(!c.size)return;let m=new Set(c),y=new Set;for(;m.size;){let e=m.values().next().value;if(m.delete(e),!e||l.has(e)||y.has(e))continue;let t=g(e);if(!t){y.add(e);continue}p||(p=n.createElementNS("http://www.w3.org/2000/svg","defs"),h.appendChild(p));let r=t.cloneNode(!0);r.id||r.setAttribute("id",e),p.appendChild(r),y.add(e),l.add(e);let i=[r,...r.querySelectorAll("*")];for(let e of i){let t=s(e);if(t&&t.startsWith("#")){let e=t.slice(1).trim();e&&!l.has(e)&&!y.has(e)&&m.add(e)}let n=e.getAttribute?.("style")||"";n&&f(n,m);for(let t of a){let n=e.getAttribute?.(t);n&&f(n,m)}}}}function ug(e){if(!e||"none"===e)return{top:0,right:0,bottom:0,left:0};let t=[],n="",r=0;for(let i=0;i<e.length;i++){let o=e[i];"("===o?r++:")"===o&&(r=Math.max(0,r-1)),","===o&&0===r?(t.push(n),n=""):n+=o}n.trim()&&t.push(n);let i=0,o=0,a=0,s=0;for(let e of t){if(/\binset\b/i.test(e))continue;let t=e.match(/-?\d+(\.\d+)?px/g)?.map(e=>parseFloat(e))||[];if(t.length<2)continue;let[n,r,l=0,c=0]=t,u=Math.abs(n)+l+c,f=Math.abs(r)+l+c;o=Math.max(o,u+Math.max(n,0)),s=Math.max(s,u+Math.max(-n,0)),a=Math.max(a,f+Math.max(r,0)),i=Math.max(i,f+Math.max(-r,0))}return{top:Math.ceil(i),right:Math.ceil(o),bottom:Math.ceil(a),left:Math.ceil(s)}}function fg(e,t,n,r,i){let o=n.a,a=n.b,s=n.c,l=n.d,c=n.e||0,u=n.f||0;function f(e,t){let n=e-r,f=t-i,d=o*n+s*f,h=a*n+l*f;return d+=r+c,h+=i+u,[d,h]}let d=[f(0,0),f(e,0),f(0,t),f(e,t)],h=1/0,p=1/0,g=-1/0,m=-1/0;for(let[e,t]of d)e<h&&(h=e),t<p&&(p=t),e>g&&(g=e),t>m&&(m=t);return{minX:h,minY:p,maxX:g,maxY:m,width:g-h,height:m-p}}function dg(e,t,n){let r=(e.transformOrigin||"0 0").trim().split(/\s+/),[i,o]=[r[0]||"0",r[1]||"0"],a=(e,t)=>{let n=e.toLowerCase();return"left"===n||"top"===n?0:"center"===n?t/2:"right"===n||"bottom"===n?t:n.endsWith("px")?parseFloat(n)||0:n.endsWith("%")?(parseFloat(n)||0)*t/100:/^-?\d+(\.\d+)?$/.test(n)&&parseFloat(n)||0};return{ox:a(i,t),oy:a(o,n)}}function hg(e){let t={rotate:"0deg",scale:null,translate:null},n="function"==typeof e.computedStyleMap?e.computedStyleMap():null;if(n){let r=e=>{try{return"function"==typeof n.has&&!n.has(e)||"function"!=typeof n.get?null:n.get(e)}catch{return null}},i=r("rotate");if(i)if(i.angle){let e=i.angle;t.rotate="rad"===e.unit?180*e.value/Math.PI+"deg":e.value+e.unit}else i.unit?t.rotate="rad"===i.unit?180*i.value/Math.PI+"deg":i.value+i.unit:t.rotate=String(i);else{let n=getComputedStyle(e);t.rotate=n.rotate&&"none"!==n.rotate?n.rotate:"0deg"}let o=r("scale");if(o){let e="x"in o&&null!=o.x?.value?o.x.value:Array.isArray(o)?o[0]?.value:Number(o)||1,n="y"in o&&null!=o.y?.value?o.y.value:Array.isArray(o)?o[1]?.value:e;t.scale=`${e} ${n}`}else{let n=getComputedStyle(e);t.scale=n.scale&&"none"!==n.scale?n.scale:null}let a=r("translate");if(a){let e="x"in a&&"value"in a.x?a.x.value:Array.isArray(a)?a[0]?.value:0,n="y"in a&&"value"in a.y?a.y.value:Array.isArray(a)?a[1]?.value:0,r="x"in a&&a.x?.unit?a.x.unit:"px",i="y"in a&&a.y?.unit?a.y.unit:"px";t.translate=`${e}${r} ${n}${i}`}else{let n=getComputedStyle(e);t.translate=n.translate&&"none"!==n.translate?n.translate:null}return t}let r=getComputedStyle(e);return t.rotate=r.rotate&&"none"!==r.rotate?r.rotate:"0deg",t.scale=r.scale&&"none"!==r.scale?r.scale:null,t.translate=r.translate&&"none"!==r.translate?r.translate:null,t}Zf(),$d(),Ld();var pg=null;function gg(e){let t=function(){if(pg)return pg;let e=document.createElement("div");return e.id="snapdom-measure-slot",e.setAttribute("aria-hidden","true"),Object.assign(e.style,{position:"absolute",left:"-99999px",top:"0px",width:"0px",height:"0px",overflow:"hidden",opacity:"0",pointerEvents:"none",contain:"size layout style"}),document.documentElement.appendChild(e),pg=e,e}(),n=document.createElement("div");n.style.transformOrigin="0 0",e.baseTransform&&(n.style.transform=e.baseTransform),e.rotate&&(n.style.rotate=e.rotate),e.scale&&(n.style.scale=e.scale),e.translate&&(n.style.translate=e.translate),t.appendChild(n);let r=function(e){let t=getComputedStyle(e).transform;if(!t||"none"===t)return new DOMMatrix;try{return new DOMMatrix(t)}catch{return new WebKitCSSMatrix(t)}}(n);return t.removeChild(n),r}var mg="http://www.w3.org/1999/xhtml",yg=new WeakSet;function vg(e,t){if(!t)return null;let n,r,i,o,a=e.ownerDocument||document,s=a.defaultView||window;if("viewport"===t)n=0,r=0,i=a.documentElement?.clientWidth||s.innerWidth,o=a.documentElement?.clientHeight||s.innerHeight;else{if("object"!=typeof t)return null;n=(Number(t.x)||0)-(s.scrollX||0),r=(Number(t.y)||0)-(s.scrollY||0),i=Number(t.width),o=Number(t.height)}return i>0&&o>0?{left:n,top:r,width:i,height:o,right:n+i,bottom:r+o}:null}function Ag(e){if(e.parentElement)return e.parentElement;let t=e.getRootNode&&e.getRootNode();return t instanceof ShadowRoot?t.host:null}function bg(e,t){for(let n=t;n;n=Ag(n))if(n===e)return!0;return!1}function wg(e,t){for(let n=Ag(e);n&&n!==t&&1===n?.nodeType;n=Ag(n)){let e=vd(n);if("static"!==e.position||e.transform&&"none"!==e.transform||e.filter&&"none"!==e.filter||e.backdropFilter&&"none"!==e.backdropFilter||e.perspective&&"none"!==e.perspective||/transform|perspective|filter/.test(e.willChange||"")||/layout|paint|strict|content/.test(e.contain||""))return n}return null}function Ig(e,t){try{let n=new DOMMatrix;if(t&&t.rotate&&"0deg"!==t.rotate&&(n=n.multiply(new DOMMatrix(`rotate(${t.rotate})`))),t&&t.scale){let e=String(t.scale).trim().split(/\s+/).filter(Boolean);e.length&&e.every(e=>Number.isFinite(Number(e)))&&(n=n.multiply(new DOMMatrix(`scale(${e.join(",")})`)))}return e&&(n=n.multiply(new DOMMatrix(e))),n}catch{return null}}function xg(e){let t=e.display||"";if(t.includes("flex")||t.includes("grid")||t.startsWith("table")||"inline-block"===t||"flow-root"===t||"absolute"===e.position||"fixed"===e.position||e.float&&"none"!==e.float)return!0;let n=e.overflowX||e.overflow||"visible",r=e.overflowY||e.overflow||"visible";return!!("visible"!==n||"visible"!==r||e.contain&&/\b(layout|content|paint|strict)\b/.test(e.contain))}function Cg(e,t){let n=Array.from(e.childNodes),r="top"===t?n:n.reverse();for(let e of r){if(e.nodeType===Node.TEXT_NODE){if(/\S/.test(e.textContent||""))return null;continue}if(e.nodeType!==Node.ELEMENT_NODE)continue;let t=getComputedStyle(e),n=String(t.display||"");if("none"!==n&&"contents"!==n&&"absolute"!==t.position&&"fixed"!==t.position)return t.float&&"none"!==t.float||n.startsWith("inline")?null:e}return null}var Bg=/[\x00-\x08\x0B\x0C\x0E-\x1F\uFFFE\uFFFF]/g;function Eg(e,t={}){e&&(function(e,t={}){let{stripFrameworkDirectives:n=!0}=t,r=new Set(["xml","xlink"]),i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;i.nextNode();){let e=i.currentNode;for(let t of Array.from(e.attributes)){let i=t.name;if(i.startsWith("*"))e.removeAttribute(i);else if(i.includes("@"))e.removeAttribute(i);else{if(i.includes(":")){let t=i.split(":",1)[0];if(!r.has(t)){e.removeAttribute(i);continue}}n&&(i.startsWith("x-")||i.startsWith("v-")||i.startsWith(":")||i.startsWith("on:")||i.startsWith("bind:")||i.startsWith("let:")||i.startsWith("class:"))&&e.removeAttribute(i)}}}}(e,t),function(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT),n=[];for(;t.nextNode();)n.push(t.currentNode);for(let e of n)e.remove()}(e),function(e){if(!e)return;let t=e=>{if(e.nodeType===Node.ELEMENT_NODE){if(e.attributes)for(let t of Array.from(e.attributes)){let n=t.value.replace(Bg,"");if(n!==t.value)try{e.setAttribute(t.name,n)}catch{}}}else if(e.nodeType===Node.TEXT_NODE||e.nodeType===Node.CDATA_SECTION_NODE){let t=e.data.replace(Bg,"");t!==e.data&&(e.data=t)}};t(e);let n,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT);for(;n=r.nextNode();)t(n)}(e))}function Sg(e,t){if(1!==e?.nodeType||function(e){try{let t=e.getAttribute?.("style")||"";return/\b(height|width|block-size|inline-size)\s*:/.test(t)}catch{return!1}}(e)||function(e){return e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof HTMLIFrameElement||e instanceof SVGElement||e instanceof HTMLObjectElement||e instanceof HTMLEmbedElement}(e))return!1;let n=t.position;if("absolute"===n||"fixed"===n||"sticky"===n)return!1;let r=t.display||"";return!(r.includes("flex")||r.includes("grid")||r.startsWith("table")||t.transform&&"none"!==t.transform)}function kg(e){let t=getComputedStyle(e);return!("none"===t.display||"absolute"===t.position||"fixed"===t.position)}function Fg(e,t){if(1!==e?.nodeType)return!1;if("exclude"===e.getAttribute("data-capture")&&"remove"===t?.excludeMode)return!0;if(Array.isArray(t?.exclude))for(let n of t.exclude)try{if(e.matches(n))return"remove"===t.excludeMode}catch(e){Od(t,"exclude selector match failed",e)}if("function"==typeof t?.filter&&"remove"===t.filterMode)try{if(!t.filter(e))return!0}catch(e){Od(t,"filter function failed",e)}return!1}var Dg=(e,t=3)=>Number.isFinite(e)?Math.round(e*10**t)/10**t:e,Ng=.75;var Mg=/::-webkit-scrollbar(-[a-z]+)?\b/i;function Tg(e,t=new Set){let n="";if(!e)return n;for(let r=0;r<e.length;r++){let i=e[r];try{if(i.type===CSSRule.IMPORT_RULE&&i.styleSheet){n+=Tg(i.styleSheet.cssRules,t);continue}if(i.type===CSSRule.MEDIA_RULE&&i.cssRules){let e=Tg(i.cssRules,t);e&&(n+=`@media ${i.conditionText}{${e}}`);continue}if(i.type===CSSRule.STYLE_RULE){let e=i.selectorText||"";if(Mg.test(e)){let e=i.cssText;e&&!t.has(e)&&(t.add(e),n+=e)}}}catch{}}return n}var Qg=new WeakMap;qd();var Lg=new Set;async function Rg(e,t={}){let n=t.__session||Kf.session,r={styleMap:n.styleMap,styleCache:n.styleCache,nodeMap:n.nodeMap,options:t},i=null;if(t.clip){let n=vg(e,t.clip);if(n){r.clip={rect:n,root:e};let t=e.getBoundingClientRect();i={x:n.left-t.left,y:n.top-t.top,width:n.width,height:n.height}}}let o,a="",s="";if(Lg.size){let t=(e,t)=>{for(let n=t;n;n=n.assignedSlot||n.parentElement||n.getRootNode()?.host)if(n===e)return!0;return!1};for(;;){let n=[...Lg].filter(({root:n})=>t(n,e)||t(e,n)).map(({promise:e})=>e.catch(()=>{}));if(!n.length)break;await Promise.all(n)}}if(!r.clip&&e.isConnected&&"hidden"!==e.ownerDocument?.visibilityState)try{let t=e.getBoundingClientRect(),n=e.ownerDocument?.defaultView||window,r=t.right<=0||t.bottom<=0||t.left>=n.innerWidth||t.top>=n.innerHeight,i=[];if(r&&(()=>{let t=[];e.shadowRoot&&t.push(e.shadowRoot);for(let n of e.querySelectorAll("*"))n.shadowRoot&&t.push(n.shadowRoot);for(;t.length;){let e=t.pop(),n="calcite-icon"===e.host?.localName;for(let r of e.querySelectorAll("*")){if(r.shadowRoot&&t.push(r.shadowRoot),!n||"svg"!==r.localName)continue;let e=r.querySelectorAll("path");if(!e.length||[...e].some(e=>e.getAttribute("d")?.trim()))continue;let o=r.getBoundingClientRect();o.width&&o.height&&i.push(r)}}})(),i.length){let t=(async()=>{let t=e.style,r=e.hasAttribute("style"),o=new Map,a=(e,n)=>{o.has(e)||o.set(e,{value:t.getPropertyValue(e),priority:t.getPropertyPriority(e)}),t.setProperty(e,n,"important");let r=o.get(e);r.forcedValue=t.getPropertyValue(e),r.forcedPriority=t.getPropertyPriority(e)};try{a("left","0"),a("top","0"),a("right","auto"),a("bottom","auto"),a("margin-top","0"),a("margin-right","0"),a("margin-bottom","0"),a("margin-left","0"),a("transform","none"),a("translate","none"),a("opacity","0"),a("pointer-events","none");let t=e.getBoundingClientRect();if(t.right<=0||t.bottom<=0||t.left>=n.innerWidth||t.top>=n.innerHeight){let t=e.parentElement?.getBoundingClientRect(),r=t&&t.right>0&&t.left<n.innerWidth?Math.max(0,t.left):0,i=t&&t.bottom>0&&t.top<n.innerHeight?Math.max(0,t.top):0;a("position","fixed"),a("left",`${r}px`),a("top",`${i}px`)}await Ud(100);let r=Date.now()+1500,o=()=>i.some(e=>{if([...e.querySelectorAll("path")].some(e=>e.getAttribute("d")?.trim()))return!1;let t=e.getBoundingClientRect();return t.width&&t.height&&t.right>0&&t.bottom>0&&t.left<n.innerWidth&&t.top<n.innerHeight});for(;Date.now()<r&&o();)await new Promise(e=>setTimeout(e,25));await Ud(100)}finally{for(let[e,n]of o)t.getPropertyValue(e)!==n.forcedValue||t.getPropertyPriority(e)!==n.forcedPriority||(n.value?t.setProperty(e,n.value,n.priority):t.removeProperty(e));!r&&!t.length&&e.removeAttribute("style"),await Ud(100)}})(),r={root:e,promise:t};Lg.add(r);try{await t}finally{Lg.delete(r)}}}catch{}let l=function(e){let t=getComputedStyle(e),n=t.outlineStyle,r=t.outlineWidth,i=t.borderStyle,o=t.borderWidth,a="none"!==n&&parseFloat(r)>0,s="none"===i||0===parseFloat(o);if(a&&s){let t=e.style.border;return e.style.border=`${r} solid transparent`,()=>{e.style.border=t}}return()=>{}}(e),c=r.clip?()=>{}:function(e){let t=[];try{let n=e.querySelectorAll("*");for(let e of n){if(!(e instanceof HTMLElement))continue;let n=e.style.contentVisibility||"",r=getComputedStyle(e);"auto"===(r.contentVisibility||r.getPropertyValue("content-visibility")||"")&&(t.push({el:e,original:n}),e.style.contentVisibility="visible")}if(e instanceof HTMLElement){let n=getComputedStyle(e);"auto"===(n.contentVisibility||n.getPropertyValue("content-visibility")||"")&&(t.push({el:e,original:e.style.contentVisibility||""}),e.style.contentVisibility="visible")}}catch{}return()=>{for(let{el:e,original:n}of t)try{e.style.contentVisibility=n}catch{}}}(e);try{o=await up(e,r,t)}catch(e){throw console.warn("deepClone failed:",e),e}finally{c(),l()}try{cg(o)}catch(e){console.warn("inlineExternal defs or symbol failed:",e)}try{await lg(e,o,r,t)}catch(e){console.warn("inlinePseudoElements failed:",e)}await async function(e,t=null){if(!e)return;let n=t,r=np(e,"img");for(let e of r)try{let t=e.getAttribute("src")||e.currentSrc||"";if(Zh(t)){let n=await _h(t);e.setAttribute("src",n)}let r=e.getAttribute("srcset");if(r&&r.includes("blob:")){let t=ep(r),i=!1;for(let e of t)if(Zh(e.url))try{e.url=await _h(e.url),i=!0}catch(e){Od(n,"blobUrlToDataUrl for srcset item failed",e)}i&&e.setAttribute("srcset",tp(t))}}catch(e){Od(n,"resolveBlobUrls for img failed",e)}let i=np(e,"image");for(let e of i)try{let t="http://www.w3.org/1999/xlink",n=e.getAttribute("href")||e.getAttributeNS?.(t,"href");if(Zh(n)){let r=await _h(n);e.setAttribute("href",r),e.removeAttributeNS?.(t,"href")}}catch(e){Od(n,"resolveBlobUrls for SVG image href failed",e)}let o=np(e,"[style*='blob:']");for(let e of o)try{let t=e.getAttribute("style");if(t&&t.includes("blob:")){let n=await Kh(t);e.setAttribute("style",n)}}catch(e){Od(n,"replaceBlobUrls in inline style failed",e)}let a=e.querySelectorAll?e.querySelectorAll("style"):[];for(let e of a)try{let t=e.textContent||"";t.includes("blob:")&&(e.textContent=await Kh(t))}catch(e){Od(n,"replaceBlobUrls in style tag failed",e)}let s=["poster"];for(let t of s){let r=np(e,`[${t}^='blob:']`);for(let e of r)try{let n=e.getAttribute(t);Zh(n)&&e.setAttribute(t,await _h(n))}catch(e){Od(n,`resolveBlobUrls for ${t} failed`,e)}}}(o,r);try{let e=o.querySelectorAll("style[data-sd]");for(let t of e)s+=t.textContent||"",t.remove()}catch(e){Od(r,"Failed to extract shadow CSS from style[data-sd]",e)}let u=function(e){let t=Array.from(new Set(e.values())).filter(Boolean).sort(),n=new Map,r=1;for(let e of t)n.set(e,"c"+r++);return n}(r.styleMap);a=Array.from(u.entries()).map(([e,t])=>`.${t}{${e}}`).join(""),a=s+"[data-snapdom-has-after]::after,[data-snapdom-has-before]::before{content:none!important;display:none!important}"+a;for(let[e,t]of r.styleMap.entries()){if("STYLE"===e.tagName)continue;if(e.getRootNode&&e.getRootNode()instanceof ShadowRoot){e.setAttribute("style",t.replace(/;/g,"; "));continue}let n=u.get(t);n&&e.classList.add(n);let r=e.style?.backgroundImage,i=e.dataset?.snapdomHasIcon;r&&"none"!==r&&(e.style.backgroundImage=r),i&&(e.style.verticalAlign="middle",e.style.display="inline")}if((r.clip||e.scrollTop||e.scrollLeft)&&1===o?.nodeType)try{let t=r.clip&&i?{x:i.x,y:i.y}:{x:0,y:0};!function(e,t,n,r,i){let o=e.getBoundingClientRect();1===t?.nodeType&&t.namespaceURI===mg&&"static"===vd(e).position&&(t.style.position="relative");let a=[];for(let[t,s]of n){if(1!==t?.nodeType||t.namespaceURI!==mg||1!==s?.nodeType||s===e||!bg(e,s))continue;let n=r.get(s)||vd(s),l=n.position;if("fixed"!==l&&"sticky"!==l&&"-webkit-sticky"!==l||"absolute"===t.style.position)continue;let c=s.getBoundingClientRect();if(!(c.width>0&&c.height>0))continue;yg.add(t);let u=n.transform&&"none"!==n.transform?n.transform:"",f=hg(s),d=!!(u||"0deg"!==f.rotate||f.scale||f.translate),h=d?Ig(u,f):null,p=!h||!h.is2D||1===h.a&&0===h.b&&0===h.c&&1===h.d,g=c.width,m=c.height;p||(g=s.offsetWidth||c.width,m=s.offsetHeight||c.height);let y=s.getRootNode&&s.getRootNode()instanceof ShadowRoot,v=o,A=e.clientLeft||0,b=e.clientTop||0;if(y){let t=wg(s,e);t&&(v=t.getBoundingClientRect(),A=t.clientLeft||0,b=t.clientTop||0)}let w=c.left-v.left-A,I=c.top-v.top-b;if(d)if(t.style.translate="none",t.style.rotate="none",t.style.scale="none",p)t.style.transform="none";else{t.style.transform=`matrix(${h.a},${h.b},${h.c},${h.d},0,0)`;let{ox:e,oy:r}=dg(n,g,m),i=fg(g,m,{a:h.a,b:h.b,c:h.c,d:h.d,e:0,f:0},e,r);w-=i.minX,I-=i.minY}if("fixed"!==l){let e=t.cloneNode(!1);e.setAttribute("data-snap-ph","1"),e.style.position="static",e.style.visibility="hidden",e.style.width=`${g}px`,e.style.height=`${m}px`,e.style.boxSizing="border-box",t.parentElement?.insertBefore(e,t)}let x=g+2,C=m;i&&(Math.abs(I-i.y)<.5&&(I-=1,C+=1),Math.abs(w-i.x)<.5&&(w-=1,x+=1)),t.style.position="absolute",t.style.left=`${w}px`,t.style.top=`${I}px`,t.style.right="auto",t.style.bottom="auto",t.style.margin="0",t.style.width=`${x}px`,t.style.height=`${C}px`,t.style.boxSizing="border-box",y||a.push(t)}for(let e of a)t.appendChild(e)}(e,o,r.nodeMap,r.styleCache,t)}catch(e){Od(r,"freezeViewportPositioned failed",e)}for(let[t,n]of r.nodeMap.entries()){if(r.clip&&n===e)continue;let i=n.scrollLeft,o=n.scrollTop;if((i||o)&&1===t?.nodeType&&"http://www.w3.org/1999/xhtml"===t.namespaceURI){t.style.overflow="hidden",t.style.scrollbarWidth="none",t.style.msOverflowStyle="none";try{let e=t.querySelectorAll("*");for(let t of e){if(1!==t.nodeType||"http://www.w3.org/1999/xhtml"!==t.namespaceURI)continue;let e=t.style.position;if("fixed"===e||"absolute"===e){let n=parseFloat(t.style.top)||0,r=parseFloat(t.style.left)||0;t.style.top=`${n+o}px`,t.style.left=`${r+i}px`,"fixed"===e&&(t.style.position="absolute")}}}catch{}let e=document.createElement("div");for(e.style.all="unset",e.style.transform=`translate(${-i}px, ${-o}px)`,e.style.willChange="transform",e.style.display="inline-block",e.style.width="100%";t.firstChild;)e.appendChild(t.firstChild);t.appendChild(e)}}if(e===r.nodeMap.get(o)){let t=r.styleCache.get(e)||vd(e);r.styleCache.set(e,t);let n=function(e){if(!e||"none"===e)return"";let t=e.replace(/translate[XY]?\([^)]*\)/g,"");return t=t.replace(/matrix\(([^)]+)\)/g,(e,t)=>{let n=t.split(",").map(e=>e.trim());return 6!==n.length?`matrix(${t})`:(n[4]="0",n[5]="0",`matrix(${n.join(", ")})`)}),t=t.replace(/matrix3d\(([^)]+)\)/g,(e,t)=>{let n=t.split(",").map(e=>e.trim());return 16!==n.length?`matrix3d(${t})`:(n[12]="0",n[13]="0",`matrix3d(${n.join(", ")})`)}),t.trim().replace(/\s{2,}/g," ")}(t.transform);o.style.margin="0",o.style.top="auto",o.style.left="auto",o.style.right="auto",o.style.bottom="auto",o.style.animation="none",o.style.transition="none",o.style.willChange="auto",o.style.float="none",o.style.clear="none",o.style.transform=n||""}for(let[e,t]of r.nodeMap.entries())"PRE"===t.tagName&&(e.style.marginTop="0",e.style.marginBlockStart="0");return{clone:o,classCSS:a,styleCache:r.styleCache,nodeMap:r.nodeMap,reconcileRisk:r.reconcileRisk||0,clipWindow:i}}fd(),Zf();var Ug="http://www.w3.org/1999/xlink";async function Hg(e,t={}){let n=Array.from(e.querySelectorAll("img"));"IMG"===e.tagName&&n.unshift(e);let r=async e=>{if(!e.getAttribute("src")){let t=e.currentSrc||e.src||Oh(e.getAttribute("srcset"),e)||"";t&&e.setAttribute("src",t)}e.removeAttribute("srcset"),e.removeAttribute("sizes");let n=e.src||"";if(!n)return;let r=Kf.image?.get(n);if(r)return e.src=r,e.width||(e.width=e.naturalWidth||100),void(e.height||(e.height=e.naturalHeight||100));let i=await sd(n,{as:"dataURL",useProxy:t.useProxy});if(i.ok&&"string"==typeof i.data&&i.data.startsWith("data:"))return Kf.image?.set(n,i.data),e.src=i.data,e.width||(e.width=e.naturalWidth||100),void(e.height||(e.height=e.naturalHeight||100));let{width:o,height:a}=function(e){let t=parseInt(e.dataset?.snapdomWidth||"",10)||0,n=parseInt(e.dataset?.snapdomHeight||"",10)||0,r=parseInt(e.getAttribute("width")||"",10)||0,i=parseInt(e.getAttribute("height")||"",10)||0,o=parseFloat(e.style?.width||"")||0,a=parseFloat(e.style?.height||"")||0;return{width:t||o||r||e.width||e.naturalWidth||100,height:n||a||i||e.height||e.naturalHeight||100}}(e),{fallbackURL:s}=t||{};if(s)try{let r="function"==typeof s?await s({width:o,height:a,src:n,element:e}):s;if(r){let n=await sd(r,{as:"dataURL",useProxy:t.useProxy});if(n?.ok&&"string"==typeof n.data)return e.src=n.data,e.width||(e.width=o),void(e.height||(e.height=a))}}catch{}if(!1!==t.placeholders){let t=document.createElement("div");t.style.cssText=[`width:${o}px`,`height:${a}px`,"background:#ccc","display:inline-block","text-align:center",`line-height:${a}px`,"color:#666","font-size:12px","overflow:hidden"].join(";"),t.textContent="img",e.replaceWith(t)}else{let t=document.createElement("div");t.style.cssText=`display:inline-block;width:${o}px;height:${a}px;visibility:hidden;`,e.replaceWith(t)}};for(let e=0;e<n.length;e+=6){let t=n.slice(e,e+6).map(r);await Promise.allSettled(t)}let i=Array.from(e.querySelectorAll("image"));"image"===e.localName&&i.unshift(e);let o=async e=>{let n=function(e){return e.getAttribute("href")||e.getAttribute("xlink:href")||("function"==typeof e.getAttributeNS?e.getAttributeNS(Ug,"href"):null)}(e);if(!n||n.startsWith("data:")||n.startsWith("blob:"))return;let r=await sd(n,{as:"dataURL",useProxy:t.useProxy});r.ok&&"string"==typeof r.data&&r.data.startsWith("data:")&&(e.setAttribute("href",r.data),e.removeAttribute("xlink:href"),"function"==typeof e.removeAttributeNS&&e.removeAttributeNS(Ug,"href"))};for(let e=0;e<i.length;e+=6){let t=i.slice(e,e+6).map(o);await Promise.allSettled(t)}}$d(),Zf();var qg=["background-image","mask","mask-image","-webkit-mask","-webkit-mask-image","mask-source","mask-box-image-source","mask-border-source","-webkit-mask-box-image-source","border-image","border-image-source"],Og=["mask-position","mask-size","mask-repeat","mask-mode","mask-composite","-webkit-mask-position","-webkit-mask-size","-webkit-mask-repeat","-webkit-mask-composite","mask-origin","mask-clip","-webkit-mask-origin","-webkit-mask-clip","-webkit-mask-position-x","-webkit-mask-position-y"],Pg=["background-position","background-position-x","background-position-y","background-size","background-repeat","background-origin","background-clip","background-attachment","background-blend-mode"],$g=["border-image-slice","border-image-width","border-image-outset","border-image-repeat"];async function zg(e,t,n,r){let i=n.get(e)||vd(e);n.has(e)||n.set(e,i);let o=i.getPropertyValue("border-image"),a=i.getPropertyValue("border-image-source"),s=o&&"none"!==o||a&&"none"!==a,l=i.getPropertyValue("background-image"),c=i.getPropertyValue("background-color");if(l&&"none"!==l||c&&"rgba(0, 0, 0, 0)"!==c&&"transparent"!==c||/url\s*\(|gradient\s*\(/i.test(i.getPropertyValue("background")||""))for(let e of Pg){let n=i.getPropertyValue(e);n&&t.style.setProperty(e,n)}for(let e of qg){let n=i.getPropertyValue(e);if("background-image"===e&&(!n||"none"===n)){let e=i.getPropertyValue("background");e&&/url\s*\(/.test(e)&&(n=bd(e).filter(e=>/url\s*\(/.test(e)).join(", ")||n)}if(!n||"none"===n)continue;let o=bd(n),a=await Promise.all(o.map(e=>dd(e,r)));a.some(e=>e&&"none"!==e&&!/^url\(undefined/.test(e))&&t.style.setProperty(e,a.join(", "))}for(let e of Og){let n=i.getPropertyValue(e);!n||"initial"===n||t.style.setProperty(e,n)}if(s)for(let e of $g){let n=i.getPropertyValue(e);!n||"initial"===n||t.style.setProperty(e,n)}}function jg(e,t,n=Kf.session.nodeMap){let r=[],i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(let e=i.currentNode;e;e=i.nextNode()){let i=n.get(e);if(1!==i?.nodeType)continue;let o=vd(i),a=o.getPropertyValue("backdrop-filter")||o.getPropertyValue("-webkit-backdrop-filter");a&&"none"!==a&&e!==t&&r.push({cloneEl:e,orig:i,bf:a,path:Wg(t,e)})}if(!r.length)return;let o=e.getBoundingClientRect(),a=r.map((e,i)=>{let o=t.cloneNode(!0);(function(e,t,n,r){let i=[[e,t]];for(;i.length;){let[e,t]=i.pop(),o=r.get(t);if(1===o?.nodeType){let t=o.getBoundingClientRect();(t.left>n.right+Yg||t.right<n.left-Yg||t.top>n.bottom+Yg||t.bottom<n.top-Yg)&&("IMG"===e.tagName&&e.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA="),e.style&&(e.style.backgroundImage="none"))}let a=e.children,s=t.children;for(let e=0;e<a.length;e++)i.push([a[e],s[e]])}})(o,t,e.orig.getBoundingClientRect(),n),function(e){if(e)for(let t=e;t&&t.parentNode;){let n=t.parentNode;for(;t.nextSibling;)t.nextSibling.remove();t===e&&t.remove(),t=n}}(Gg(o,e.path));for(let e=0;e<i;e++){let t=Gg(o,r[e].path);t&&(t.style.setProperty("backdrop-filter","none","important"),t.style.setProperty("-webkit-backdrop-filter","none","important"))}return{...e,copy:o}});for(let{cloneEl:e,orig:t,bf:n,copy:r}of a)Vg(e,t,n,r,o)}function Vg(e,t,n,r,i){let o=t.getBoundingClientRect();if(!o.width||!o.height)return;let a=vd(t),s=t.offsetWidth?o.width/t.offsetWidth:1,l=Math.abs(s-1)>.001?1/s:1;r.style.position="absolute",r.style.left=(i.left-o.left)*l+"px",r.style.top=(i.top-o.top)*l+"px",r.style.width=`${i.width}px`,r.style.height=`${i.height}px`,r.style.margin="0",r.style.filter=n,1!==l&&(r.style.transform=`scale(${l})`,r.style.transformOrigin="top left");let c=document.createElement("div");c.style.cssText="position:absolute;inset:0;overflow:hidden;border-radius:inherit;z-index:-2",c.appendChild(r);let u=document.createElement("div");u.style.cssText="position:absolute;inset:0;border-radius:inherit;z-index:-1",u.style.backgroundColor=a.backgroundColor,u.style.backgroundImage=e.style.backgroundImage||a.backgroundImage;for(let e of["background-size","background-position","background-repeat","background-origin","background-clip"])u.style.setProperty(e,a.getPropertyValue(e));e.style.setProperty("background-color","transparent","important"),e.style.setProperty("background-image","none","important"),e.style.setProperty("backdrop-filter","none","important"),e.style.setProperty("-webkit-backdrop-filter","none","important"),"static"===a.position&&(e.style.position="relative"),e.style.isolation="isolate",e.prepend(u),e.prepend(c)}Zf(),$d();var Yg=128;function Wg(e,t){let n=[];for(let r=t;r!==e;r=r.parentElement){if(!r?.parentElement)return null;n.push([...r.parentElement.children].indexOf(r))}return n.reverse()}function Gg(e,t){if(!t)return null;let n=e;for(let e of t)if(n=n.children[e],!n)return null;return n}function Jg(e,t){if(!e)return()=>{};let n=[],r=200;return function e(i){if(t){let e=i.getBoundingClientRect();if(e.width>0||e.height>0){let n=Math.max(e.right,e.left+(i.scrollWidth||0)),o=Math.max(e.bottom,e.top+(i.scrollHeight||0));if(n<t.left-r||e.left>t.right+r||o<t.top-r||e.top>t.bottom+r)return}}let o=getComputedStyle(i),a=function(e,t){if(!e)return()=>{};t=t||getComputedStyle(e);let n=function(e){let t=e.getPropertyValue("-webkit-line-clamp")||e.getPropertyValue("line-clamp");t=(t||"").trim();let n=parseInt(t,10);return Number.isFinite(n)&&n>0?n:0}(t);if(n<=0)return()=>{};if(!Xg(e))return()=>{};let r=_g(e),i=r.text,o=function(e){return(parseFloat(e.paddingTop)||0)+(parseFloat(e.paddingBottom)||0)}(t);r.write("X");let a=e.scrollHeight-o;r.restore();let s=a>0?a:function(e){let t=(e.lineHeight||"").trim(),n=parseFloat(e.fontSize)||16;return t&&"normal"!==t?t.endsWith("px")?parseFloat(t):/^\d+(\.\d+)?$/.test(t)?Math.round(parseFloat(t)*n):t.endsWith("%")?Math.round(parseFloat(t)/100*n):Math.round(1.2*n):Math.round(1.2*n)}(t),l=Math.round(s*n+o);if(e.scrollHeight<=l+.5)return()=>{};let c=0,u=i.length,f=-1;for(;c<=u;){let t=c+u>>1;r.write(i.slice(0,t)+"…"),e.scrollHeight<=l+.5?(f=t,c=t+1):u=t-1}return r.write((f>=0?i.slice(0,f):"")+"…"),()=>{r.restore()}}(i,o);a&&n.push(a);let s=function(e,t){if(!e)return()=>{};if(t=t||getComputedStyle(e),"ellipsis"!==t.textOverflow)return()=>{};if("nowrap"!==t.whiteSpace&&"pre"!==t.whiteSpace)return()=>{};if("hidden"!==t.overflowX&&"clip"!==t.overflowX)return()=>{};if(!Xg(e))return()=>{};if(e.scrollWidth<=e.clientWidth+.5)return()=>{};let n=_g(e),r=n.text,i=0,o=r.length,a=-1;for(;i<=o;){let t=i+o>>1;n.write(r.slice(0,t)+"…"),e.scrollWidth<=e.clientWidth+.5?(a=t,i=t+1):o=t-1}return n.write((a>=0?r.slice(0,a):"")+"…"),()=>{n.restore()}}(i,o);s&&n.push(s);for(let t of i.children||[])e(t)}(e),()=>n.forEach(e=>e())}function _g(e){let t=[];for(let n=e.firstChild;n;n=n.nextSibling)n.nodeType===Node.TEXT_NODE&&t.push(n);let n=t.map(e=>e.data);return{text:n.join(""),write(e){t[0].data=e;for(let e=1;e<t.length;e++)t[e].data=""},restore(){for(let e=0;e<t.length;e++)t[e].data=n[e]}}}function Xg(e){return!(e.childElementCount>0)&&Array.from(e.childNodes).some(e=>e.nodeType===Node.TEXT_NODE)}$d(),Zf();var Kg=[];function Zg(e){if(!e)return null;if(Array.isArray(e)){let[t,n]=e;return"function"==typeof t?t(n):t}if("object"==typeof e&&"plugin"in e){let{plugin:t,options:n}=e;return"function"==typeof t?t(n):t}return"function"==typeof e?e():e}function em(e){return e&&Array.isArray(e.plugins)?e.plugins:Kg}async function tm(e,t,n){let r=n,i=em(t);for(let n of i){let i=n&&"function"==typeof n[e]?n[e]:null;if(!i)continue;let o=await i(t,r);typeof o<"u"&&(r=o)}return r}function nm(e,t,n=!1){return!e||e.plugins&&!n||(e.plugins=function(e){let t=[];if(Array.isArray(e))for(let n of e){let e=Zg(n);if(!e||!e.name)continue;let r=t.findIndex(t=>t&&t.name===e.name);r>=0&&t.splice(r,1),t.push(e)}for(let e of Kg)e&&e.name&&!t.some(t=>t.name===e.name)&&t.push(e);return Object.freeze(t)}(t)),e}function rm(){return Kg.slice()}Zf();async function im(e,t,n){if("string"!=typeof e||!e.startsWith("data:image")||e.startsWith("data:image/svg"))return null;let r=e.length+":"+e.slice(0,64)+e.slice(-64)+":"+Math.round(t)+"x"+Math.round(n);if(Kf.compress.has(r))return Kf.compress.get(r);let i=await(async()=>{let r;try{r=await async function(e){let t=new Image;if(t.decoding="sync",t.src=e,"function"==typeof t.decode)try{return await t.decode(),t}catch{}return await new Promise((e,n)=>{t.onload=()=>e(),t.onerror=n}),t}(e)}catch{return null}let i=r.naturalWidth||r.width,o=r.naturalHeight||r.height;if(!i||!o)return null;let a=Math.min(1,Math.max(t/i,n/o));if(!(a>0)||a>=.95)return null;let s=.95*a,l=Math.max(1,Math.round(i*s)),c=Math.max(1,Math.round(o*s)),u=document.createElement("canvas");u.width=l,u.height=c;let f=u.getContext("2d");if(!f)return null;f.imageSmoothingEnabled=!0,f.imageSmoothingQuality="high",f.drawImage(r,0,0,l,c);let d=function(e){let t=/^data:([^;,]+)/.exec(e);return t?t[1]:""}(e),h="image/jpeg"===d?"image/jpeg":"image/webp"===d?"image/webp":"image/png";try{let t=u.toDataURL(h,.92);if("string"==typeof t&&t.startsWith("data:image")&&t.length<e.length)return t}catch{}return null})();return Kf.compress.set(r,i),i}async function om(e,t,n){t.compress&&(await async function(e,t){if(!t.compress)return{count:0,before:0,after:0};let n=(t.scale||1)*(t.dpr||1),r=Array.from(e.querySelectorAll("img"));"IMG"===e.tagName&&r.unshift(e);let i=0,o=0,a=0,s=async e=>{let t=e.getAttribute("src")||"";if(!t.startsWith("data:image")||t.startsWith("data:image/svg"))return;let r=parseFloat(e.dataset.snapdomWidth)||parseFloat(e.style.width)||e.width||0,s=parseFloat(e.dataset.snapdomHeight)||parseFloat(e.style.height)||e.height||0;if(!r||!s)return;let l=await im(t,r*n,s*n);l&&(i++,o+=t.length,a+=l.length,e.setAttribute("src",l))};for(let e=0;e<r.length;e+=6)await Promise.allSettled(r.slice(e,e+6).map(s));return{count:i,before:o,after:a}}(e,t),await async function(e,t,n=Kf.session.nodeMap){if(!t.compress)return{count:0};let r=(t.scale||1)*(t.dpr||1),i=[],o=[e,...e.querySelectorAll("*")];for(let e of o){let t=e.style&&e.style.backgroundImage;t&&t.includes("data:image")&&i.push(e)}let a=0,s=async e=>{let t,i=n.get(e);if(!i||!i.isConnected)return;try{t=getComputedStyle(i)}catch{return}if((t.backgroundRepeat||"repeat").toLowerCase().split(",").some(e=>"no-repeat"!==e.trim()))return;let{w:o,h:s}=function(e){return{w:e.offsetWidth||e.getBoundingClientRect().width||0,h:e.offsetHeight||e.getBoundingClientRect().height||0}}(i);if(!o||!s)return;let l=o*r,c=s*r,u=e.style.backgroundImage,f=[...u.matchAll(/url\((['"]?)(data:image\/[^)'"]+)\1\)/gi)],d=u;for(let e of f){let t=e[2];if(t.startsWith("data:image/svg"))continue;let n=await im(t,l,c);n&&(d=d.split(t).join(n),a++)}d!==u&&(e.style.backgroundImage=d)};for(let e=0;e<i.length;e+=6)await Promise.allSettled(i.slice(e,e+6).map(s));return{count:a}}(e,t,n),await async function(e,t){if(!t.compress)return{count:0};let n=(t.scale||1)*(t.dpr||1),r=Array.from(e.querySelectorAll("image"));"image"===e.localName&&r.unshift(e);let i=0,o=async e=>{let t=e.getAttribute("href")||("function"==typeof e.getAttributeNS?e.getAttributeNS("http://www.w3.org/1999/xlink","href"):null);if(!t||!t.startsWith("data:image")||t.startsWith("data:image/svg"))return;let r=parseFloat(e.getAttribute("width"))||0,o=parseFloat(e.getAttribute("height"))||0;if(!r||!o)return;let a=await im(t,r*n,o*n);a&&(e.setAttribute("href",a),e.hasAttribute("xlink:href")&&e.setAttribute("xlink:href",a),i++)};for(let e=0;e<r.length;e+=6)await Promise.allSettled(r.slice(e,e+6).map(o));return{count:i}}(e,t))}async function am(e,t){if(!e)throw new Error("Element cannot be null or undefined");(function(e="soft"){switch(e){case"auto":return Kf.session.styleMap=new Map,void(Kf.session.nodeMap=new Map);case"soft":default:return Kf.session.styleMap=new Map,Kf.session.nodeMap=new Map,void(Kf.session.styleCache=new WeakMap);case"full":return;case"disabled":Kf.session.styleMap=new Map,Kf.session.nodeMap=new Map,Kf.session.styleCache=new WeakMap,Kf.computedStyle=new WeakMap,Kf.measureHints=new WeakMap,Kf.baseStyle=new Xf(50),Kf.defaultStyle=new Xf(30),Kf.image=new Xf(100),Kf.background=new Xf(100),Kf.resource=new Xf(150),Kf.compress=new Xf(50),Kf.font=new Set}})(t.cache),t.__session={styleMap:Kf.session.styleMap,styleCache:Kf.session.styleCache,nodeMap:Kf.session.nodeMap},t.burst||function(e){let t=Date.now(),n=Kf.burstAdvice.get(e);!n||t-n.firstTs>2e3?Kf.burstAdvice.set(e,{count:1,firstTs:t,warned:!1}):(n.count++,n.count>=3&&!n.warned&&(n.warned=!0,console.warn("[snapdom] Captured this element multiple times. Pass { burst: true } to increase the speed.")))}(e),t.__resolveNodeHooks=function(e){let t=Array.isArray(e.plugins)?e.plugins:rm(),n=[];for(let e of t){let t=Zg(e);t&&"function"==typeof t.resolveNode&&n.push(t.resolveNode.bind(t))}return n.length?n:null}(t);let n,r,i,o,a,s,l,c,u=t.fast,f=!1!==t.outerTransforms,d=!!t.outerShadows,h=t.clip?vg(e,t.clip):null,p={element:e,options:t,plugins:t.plugins},g="",m="",y=null;await tm("beforeSnap",p);let v=null;!1!==t.resolvePicturePlaceholders&&!function(e){if(Array.isArray(e.plugins))for(let t of e.plugins)if("picture-resolver"===Zg(t)?.name)return!0;return rm().some(e=>"picture-resolver"===e?.name)}(t)&&(v=await zh(p.element,p.options)),await tm("beforeClone",p);let A=Jg(p.element,h);try{({clone:n,classCSS:r,styleCache:i,nodeMap:o,reconcileRisk:a,clipWindow:s}=await Rg(p.element,p.options)),a>0&&!t.reconcile&&!Kf.warnedReconcile&&(Kf.warnedReconcile=!0,console.warn("[snapdom] Text in inline/table-cell elements kept its natural width and may re-wrap under font-fallback rasterization. Pass { reconcile: true } for pixel-exact layout (roughly doubles capture time).")),!f&&n&&(y=function(e,t){if(!e||!t||!t.style)return null;let n=getComputedStyle(e);try{t.style.transformOrigin="0 0"}catch{}try{"translate"in t.style&&(t.style.translate="none"),"rotate"in t.style&&(t.style.rotate="none")}catch{}let r=n.transform||"none";if(!r||"none"===r){let n=null;try{n=hg(e).scale}catch{}try{t.style.transform="none"}catch{}if(!n)return{a:1,b:0,c:0,d:1};let r=n.trim().split(/\s+/).map(parseFloat),i=Number.isFinite(r[0])?r[0]:1;return{a:i,b:0,c:0,d:Number.isFinite(r[1])?r[1]:i}}function i(e,t,n,r){let i=Math.sqrt(e*e+t*t)||0,o=0,a=0;if(i>0){let s=e/i,l=t/i;o=s*n+l*r;let c=n-s*o,u=r-l*o;a=Math.sqrt(c*c+u*u)||0,a>0?o/=a:o=0}return{a:i,b:0,c:o*a,d:a}}let o=r.match(/^matrix\(\s*([^)]+)\)$/i);if(o){let e=o[1].split(",").map(e=>parseFloat(e.trim()));if(6===e.length&&e.every(Number.isFinite)){let[n,r,o,a]=e,s=i(n,r,o,a);try{t.style.transform=`matrix(${s.a}, ${s.b}, ${s.c}, ${s.d}, 0, 0)`}catch{}return s}}let a=r.match(/^matrix3d\(\s*([^)]+)\)$/i);if(a){let e=a[1].split(",").map(e=>parseFloat(e.trim()));if(16===e.length&&e.every(Number.isFinite)){let n=i(e[0],e[1],e[4],e[5]);try{t.style.transform=`matrix(${n.a}, ${n.b}, ${n.c}, ${n.d}, 0, 0)`}catch{}return n}}try{let e=new DOMMatrix(r),n=i(e.a,e.b,e.c,e.d);try{t.style.transform=`matrix(${n.a}, ${n.b}, ${n.c}, ${n.d}, 0, 0)`}catch{}return n}catch{return null}}(p.element,n)),!d&&n&&function(e,t,n={}){if(!e||!t||!t.style)return;let r=getComputedStyle(e);try{t.style.boxShadow="none"}catch(e){Od(n,"stripRootShadows boxShadow",e)}try{t.style.textShadow="none"}catch(e){Od(n,"stripRootShadows textShadow",e)}try{t.style.outline="none"}catch(e){Od(n,"stripRootShadows outline",e)}let i=(r.filter||"").replace(/\bdrop-shadow\((?:[^()]|\([^()]*\))*\)\s*/gi,"").trim().replace(/\s+/g," ");try{t.style.filter=i.length?i:"none"}catch(e){Od(n,"stripRootShadows filter",e)}}(p.element,n,p.options),n&&(function(e,t,n){if(!e||!t||!t.style)return;let r=getComputedStyle(e);if(!xg(r))for(let i of["top","bottom"]){let o="top"===i?"Top":"Bottom";if((parseFloat(r[`border${o}Width`])||0)>0||(parseFloat(r[`padding${o}`])||0)>0)continue;let a=e,s=t;for(;a&&s;){let e=Cg(a,i);if(!e)break;let t=n?Array.from(s.children).find(t=>n.get(t)===e)||null:s.children[Array.from(a.children).indexOf(e)]||null,r=getComputedStyle(e),l=parseFloat(r[`margin${o}`])||0;if(t&&t.style&&l>0&&(t.style[`margin${o}`]="0px"),xg(r)||(parseFloat(r[`border${o}Width`])||0)>0||(parseFloat(r[`padding${o}`])||0)>0)break;a=e,s=t}}}(p.element,n,o),function(e,t){if(!e||!t||!t.style)return;let n=1;try{n=parseFloat(getComputedStyle(e).zoom)}catch{return}if(t.style.getPropertyValue("zoom")||Number.isFinite(n)&&1!==n)try{t.style.setProperty("zoom","1","important")}catch{}}(p.element,n))}finally{A()}if(p={clone:n,classCSS:r,styleCache:i,nodeMap:o,...p},await tm("afterClone",p),v&&await v(),Eg(p.clone),"remove"===p.options?.excludeMode||"remove"===p.options?.filterMode)try{!function(e,t,n=new Map){!function e(t,r){if(1!==t?.nodeType||1!==r?.nodeType)return;let i=t.childElementCount>r.childElementCount,o=n.get(t)||getComputedStyle(t);if(n.has(t)||n.set(t,o),i&&Sg(t,o)){r.style.height||(r.style.height="auto"),r.style.width||(r.style.width="auto"),r.style.removeProperty("block-size"),r.style.removeProperty("inline-size"),r.style.minHeight||(r.style.minHeight="0"),r.style.minWidth||(r.style.minWidth="0"),r.style.maxHeight||(r.style.maxHeight="none"),r.style.maxWidth||(r.style.maxWidth="none");let e=o.overflowY||o.overflowBlock||"visible",t=o.overflowX||o.overflowInline||"visible";("visible"!==e||"visible"!==t)&&(r.style.overflow="visible")}let a=Array.from(t.children),s=Array.from(r.children);for(let t=0;t<Math.min(a.length,s.length);t++)e(a[t],s[t])}(e,t)}(p.element,p.clone,p.styleCache)}catch(e){console.warn("[snapdom] shrink pass failed:",e)}try{await async function(e,t,n=Kf.session.nodeMap){if(1!==e?.nodeType)return 0;let r='.material-icons, [class*="material-symbols"]',i=Array.from(e.querySelectorAll(r)).filter(e=>e&&e.textContent&&e.textContent.trim());if(e.matches?.(r)&&e.textContent&&e.textContent.trim()&&i.unshift(e),0===i.length)return 0;let o=1===t?.nodeType?Array.from(t.querySelectorAll(r)).filter(e=>e&&e.textContent&&e.textContent.trim()):[];1===t?.nodeType&&t.matches?.(r)&&t.textContent&&t.textContent.trim()&&o.unshift(t);let a=0;for(let e=0;e<i.length;e++){let t=i[e],r=n&&n.get(t)||o[e]||null;try{let e=getComputedStyle(r||t),n=e.fontFamily||"Material Icons";if(!yp(n))continue;let i=(r||t).textContent.trim();if(!i)continue;let o=parseInt(e.fontSize,10)||24,s=e.fontWeight&&"normal"!==e.fontWeight?e.fontWeight:"normal",l=Ap(e),c=e.fontVariationSettings&&"normal"!==e.fontVariationSettings?e.fontVariationSettings:"",u=(r||t).className||"",{dataUrl:f,width:d,height:h}=await bp(i,{family:n,weight:s,fontSize:o,color:l,variation:c,className:u});t.textContent="";let p=t.ownerDocument.createElement("img");p.src=f,p.alt=i,p.style.height=`${o}px`,p.style.width=`${Math.max(1,Math.round(d/h*o))}px`,p.style.objectFit="contain",p.style.verticalAlign=getComputedStyle(t).verticalAlign||"baseline",t.appendChild(p),a++}catch{}}return a}(p.clone,p.element,p.nodeMap)}catch{}let b=e=>new Promise((t,n)=>{Rd(()=>{Promise.resolve().then(e).then(t,n)},{fast:u})}),w=(async()=>{await Promise.all([b(()=>Hg(p.clone,p.options)),b(()=>async function(e,t,n,r={},i=Kf.session.nodeMap){if(!t)return;let o=[];e&&Ch(e)&&o.push([e,t]);let a=[t];for(;a.length;){let e=a.pop();if(e.children)for(let t of e.children){if("STYLE"===t.tagName)continue;let e=i.get(t);e&&Ch(e)&&o.push([e,t]),a.push(t)}}for(let e=0;e<o.length;e+=6)await Promise.allSettled(o.slice(e,e+6).map(([e,t])=>zg(e,t,n,r)))}(p.element,p.clone,p.styleCache,p.options,p.nodeMap))]);try{jg(p.element,p.clone,p.nodeMap)}catch(e){console.warn("[snapdom] backdrop-filter emulation failed:",e)}t.compress&&await b(()=>om(p.clone,p.options,p.nodeMap))})(),I=Promise.resolve();t.embedFonts&&(I=b(async()=>{let e=p.element.ownerDocument||document,t=h?e=>{try{let t=e.getBoundingClientRect();return t.right>=h.left-200&&t.left<=h.right+200&&t.bottom>=h.top-200&&t.top<=h.bottom+200}catch{return!0}}:null,{required:n,usedCodepoints:r}=Yp(p.element,t);if(Hd()){let t=new Set(Array.from(n).map(e=>String(e).split("__")[0]).filter(Boolean));await Wp(t,1,e)}g=await Vp({required:n,usedCodepoints:r,preCached:!1,exclude:p.options.excludeFonts,localFonts:p.options.localFonts,useProxy:p.options.useProxy,fontStylesheetDomains:p.options.fontStylesheetDomains,doc:e})})),await Promise.all([w,I]);let x=function(e){let t=new Set;return e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?[]:(e.tagName&&t.add(e.tagName.toLowerCase()),"function"==typeof e.querySelectorAll&&e.querySelectorAll("*").forEach(e=>t.add(e.tagName.toLowerCase())),Array.from(t))}(p.clone).sort(),C=x.join(",");Kf.baseStyle.has(C)?m=Kf.baseStyle.get(C):await new Promise(e=>{Rd(()=>{m=function(e){let t=new Map;for(let n of e){let e=pd(n);if(!e)continue;let r=Object.entries(e).map(([e,t])=>`${e}:${t};`).sort().join("");r&&(t.has(r)||t.set(r,[]),t.get(r).push(n))}let n="";for(let[e,r]of t.entries())n+=`${r.join(",")} { ${e} }\n`;return n}(x),Kf.baseStyle.set(C,m),e()},{fast:u})});let B=function(e){if(!e||!e.styleSheets)return"";let t=function(e){let t="";for(let n of e.styleSheets){let e=-1;try{e=n.cssRules?n.cssRules.length:-1}catch{}t+=(n.href||"inline")+":"+e+"|"}return t}(e),n=Qg.get(e);if(n&&n.fp===t)return n.css;let r=new Set,i="";for(let t of Array.from(e.styleSheets))try{let e=t.cssRules;e&&(i+=Tg(e,r))}catch{}return Qg.set(e,{fp:t,css:i}),i}(p.element?.ownerDocument||document);p={fontsCSS:g,baseCSS:m,scrollbarCSS:B,...p},await tm("beforeRender",p),await new Promise(e=>{Rd(()=>{let n=vd(p.element),r=p.element.getBoundingClientRect(),i=Math.max(1,Dg(p.element.offsetWidth||parseFloat(n.width)||r.width||1)),o=Math.max(1,Dg(p.element.offsetHeight||parseFloat(n.height)||r.height||1)),a=p.element.ownerDocument||document;if(!(s||p.element!==a.body&&p.element!==a.documentElement||a.documentElement.hasAttribute("data-sd-pinned"))){let e=Math.max(p.element.scrollHeight||0,a.documentElement?.scrollHeight||0,a.body?.scrollHeight||0),t=Math.max(p.element.scrollWidth||0,a.documentElement?.scrollWidth||0,a.body?.scrollWidth||0);e>0&&(o=Math.max(o,Dg(e))),t>0&&(i=Math.max(i,Dg(t)));try{let e=(p.scrollbarCSS||"").length+(p.baseCSS||"").length+(p.fontsCSS||"").length+(p.classCSS||"").length,t=Kf.measureHints.get(p.element);if(t&&t.cssLen===e&&t.w0===i)t.csh>0&&(o=Math.max(o,Dg(t.csh))),t.csw>0&&(i=Math.max(i,Dg(t.csw)));else{let t=a.createElement("div");t.setAttribute("data-snapdom-internal",""),t.style.cssText="position:absolute!important;left:-9999px!important;top:0!important;width:"+i+"px!important;overflow:visible!important;visibility:hidden!important;";let n=t.attachShadow({mode:"open"}),r=a.createElement("style");r.textContent=(p.scrollbarCSS||"")+p.baseCSS+"svg{overflow:visible;} foreignObject{overflow:visible;}"+p.classCSS,n.appendChild(r),n.appendChild(p.clone.cloneNode(!0)),a.body.appendChild(t);let s=t.scrollHeight,l=t.scrollWidth;a.body.removeChild(t),Kf.measureHints.set(p.element,{cssLen:e,w0:i,csh:s,csw:l}),s>0&&(o=Math.max(o,Dg(s))),l>0&&(i=Math.max(i,Dg(l)))}}catch{}}if("remove"===p.options?.excludeMode||"remove"===p.options?.filterMode){let e=function(e,t){let n=getComputedStyle(e),r=e.getBoundingClientRect(),i=1/0,o=-1/0,a=!1,s=Array.from(e.children);for(let e of s){if(Fg(e,t)||!kg(e))continue;let n=e.getBoundingClientRect(),s=n.top-r.top,l=n.bottom-r.top;l<=s||(s<i&&(i=s),l>o&&(o=l),a=!0)}let l=a?Math.max(0,o-i):0;return(parseFloat(n.borderTopWidth)||0)+(parseFloat(n.borderBottomWidth)||0)+(parseFloat(n.paddingTop)||0)+(parseFloat(n.paddingBottom)||0)+l}(p.element,p.options);Number.isFinite(e)&&e>0&&(o=Math.max(1,Math.min(o,Dg(e+1))))}if(p.options?.reconcile)try{let e=(p.scrollbarCSS||"")+p.baseCSS+"svg{overflow:visible;} foreignObject{overflow:visible;}"+p.classCSS;!function(e,t,n,r,i,o){let a=e.ownerDocument||document,s=e.getBoundingClientRect(),l=i>0&&s.width>0?s.width/i:1,c=o>0&&s.height>0?s.height/o:1;if(Math.abs(l-c)>.02)return 0;let u=a.createElement("div");u.setAttribute("data-snapdom-internal",""),u.style.cssText="position:absolute!important;left:-9999px!important;top:0!important;width:"+i+"px!important;overflow:visible!important;visibility:hidden!important;";let f=u.attachShadow({mode:"open"}),d=a.createElement("style");d.textContent=n,f.appendChild(d);let h=t.cloneNode(!0);f.appendChild(h),a.body.appendChild(u);let p=0,g=(e,t,n)=>{let r=vd(e),i="border-box"===r.boxSizing,o=(e,t,...n)=>{let r=parseFloat(e);if(!Number.isFinite(r))return t;let o=r+(i?0:n.reduce((e,t)=>e+(parseFloat(t)||0),0));return Math.abs(o-t)<=.51?o:t};return{width:o(r.width,t,r.paddingLeft,r.paddingRight,r.borderLeftWidth,r.borderRightWidth),height:o(r.height,n,r.paddingTop,r.paddingBottom,r.borderTopWidth,r.borderBottomWidth)}};try{let e=h.getBoundingClientRect(),n=h.offsetWidth||i,a=h.offsetHeight||o,s=n>0&&e.width>0?e.width/n:1,u=a>0&&e.height>0?e.height/a:1,f=(e,t,n=!1)=>{let i=e.children,o=t.children,a=Math.min(i.length,o.length);for(let e=0;e<a;e++){let t=i[e],a=o[e],d=r.get(t),h=n||yg.has(t);if(1===d?.nodeType&&t?.namespaceURI===mg&&t.style&&d.isConnected){let e=d.getBoundingClientRect();if(e.width>0&&e.height>0){let n=a.getBoundingClientRect(),r=e.width/l,i=e.height/c,o=n.width,f=n.height,m=d.offsetWidth||r,y=d.offsetHeight||i,v=a.offsetWidth||o,A=a.offsetHeight||f,b=Math.abs(r-m)>Ng||Math.abs(i-y)>Ng||Math.abs(o-v)>Ng||Math.abs(f-A)>Ng;if(h){let e=g(a,v,A);r=o>0?r*s*e.width/o:r,i=f>0?i*u*e.height/f:i,o=e.width,f=e.height}else if(b){let e=g(d,m,y),t=g(a,v,A);r=e.width,i=e.height,o=t.width,f=t.height}let w=o-r,I=f-i;(Math.abs(w)>Ng||Math.abs(I)>Ng)&&(t.style.boxSizing="border-box",t.style.width=`${Dg(r)}px`,t.style.height=`${Dg(i)}px`,p++)}}f(t,a,h)}};f(t,h)}finally{u.remove()}}(p.element,p.clone,e,p.nodeMap,i,o)}catch(e){console.warn("[snapdom] reconcile pass failed:",e)}let u=(e,t=NaN)=>{let n="string"==typeof e?parseFloat(e):e;return Number.isFinite(n)?n:t},h=u(p.options.width),g=u(p.options.height),m=s?Dg(s.width):i,v=s?Dg(s.height):o,A=m,b=v,w=Number.isFinite(h),I=Number.isFinite(g),x=v>0?m/v:1;w&&I?(A=Math.max(1,Dg(h)),b=Math.max(1,Dg(g))):w?(A=Math.max(1,Dg(h)),b=Math.max(1,Dg(A/(x||1)))):I&&(b=Math.max(1,Dg(g)),A=Math.max(1,Dg(b*(x||1))));let C=0,B=0,E=i,S=o;if(s){let e=0,t=0;if(sm(p.element)){let r=null;if(!f&&y&&Number.isFinite(y.a))r={a:y.a,b:y.b||0,c:y.c||0,d:y.d||1,e:0,f:0};else{let e=hg(p.element),t=Ig(n.transform&&"none"!==n.transform?n.transform:"",e);t&&t.is2D&&(r={a:t.a,b:t.b,c:t.c,d:t.d,e:0,f:0})}if(r&&(1!==r.a||0!==r.b||0!==r.c||1!==r.d)){let{ox:a,oy:s}=dg(n,i,o),l=fg(i,o,r,a,s);e=l.minX,t=l.minY}}C=Dg(s.x+e),B=Dg(s.y+t),E=Dg(C+s.width),S=Dg(B+s.height)}else if(!f&&y&&Number.isFinite(y.a)){let e=fg(i,o,{a:y.a,b:y.b||0,c:y.c||0,d:y.d||1,e:0,f:0},0,0);C=Dg(e.minX),B=Dg(e.minY),E=Dg(e.maxX),S=Dg(e.maxY)}else if(f&&sm(p.element)){let e=n.transform&&"none"!==n.transform?n.transform:"",t=hg(p.element),r=gg({baseTransform:e,rotate:t.rotate||"0deg",scale:t.scale,translate:t.translate}),{ox:a,oy:s}=dg(n,i,o),l=r.is2D?r:new DOMMatrix(r.toString()),c=fg(i,o,{a:l.a,b:l.b,c:l.c,d:l.d,e:0,f:0},a,s);C=Dg(c.minX),B=Dg(c.minY),E=Dg(c.maxX),S=Dg(c.maxY)}let k=function(e){return ug(e.boxShadow)}(n),F=function(e){return ug(e.textShadow)}(n),D=function(e){let t,n=e.filter&&"none"!==e.filter?e.filter:e.webkitFilter||"",r=/blur\(\s*([0-9.]+)px\s*\)/gi,i=0;for(;t=r.exec(n);)i+=parseFloat(t[1])||0;let o=Math.ceil(i);return{top:o,right:o,bottom:o,left:o}}(n),N=function(e){if("none"===(e.outlineStyle||"none"))return{top:0,right:0,bottom:0,left:0};let t=Math.ceil(parseFloat(e.outlineWidth||"0")||0),n=parseFloat(e.outlineOffset||"0")||0,r=t+Math.max(0,Math.ceil(n));return{top:r,right:r,bottom:r,left:r}}(n),M=function(e){let t=`${e.filter||""} ${e.webkitFilter||""}`.trim();if(!t||"none"===t)return{bleed:{top:0,right:0,bottom:0,left:0},has:!1};let n=t.match(/drop-shadow\((?:[^()]|\([^()]*\))*\)/gi)||[],r=0,i=0,o=0,a=0,s=!1;for(let e of n){s=!0;let t=e.match(/-?\d+(?:\.\d+)?px/gi)?.map(e=>parseFloat(e))||[],[n=0,l=0,c=0]=t,u=Math.abs(n)+c,f=Math.abs(l)+c;i=Math.max(i,u+Math.max(n,0)),a=Math.max(a,u+Math.max(-n,0)),o=Math.max(o,f+Math.max(l,0)),r=Math.max(r,f+Math.max(-l,0))}return{bleed:{top:Dg(r),right:Dg(i),bottom:Dg(o),left:Dg(a)},has:s}}(n),T=s?{top:0,right:0,bottom:0,left:0}:d?{top:Dg(Math.max(k.top,F.top)+D.top+N.top+M.bleed.top),right:Dg(Math.max(k.right,F.right)+D.right+N.right+M.bleed.right),bottom:Dg(Math.max(k.bottom,F.bottom)+D.bottom+N.bottom+M.bleed.bottom),left:Dg(Math.max(k.left,F.left)+D.left+N.left+M.bleed.left)}:{top:D.top,right:D.right,bottom:D.bottom,left:D.left};C=Dg(C-T.left),B=Dg(B-T.top),E=Dg(E+T.right),S=Dg(S+T.bottom);let Q=Math.max(1,Dg(E-C)),L=Math.max(1,Dg(S-B)),R=w||I?Dg(A/m):1,U=I||w?Dg(b/v):1,H=Math.max(1,Dg(Q*R)),q=Math.max(1,Dg(L*U)),O="http://www.w3.org/2000/svg",P=sm(p.element)?2:0,$=Dg(P+(f?0:1)),z=Math.ceil(Q+2*$),j=Math.ceil(L+2*$),V=Dg(-(Dg(C)-$)),Y=Dg(-(Dg(B)-$)),W=Math.max(0,V),G=Math.max(0,Y),J=Dg(z-Math.min(0,V)),_=Dg(j-Math.min(0,Y)),X=document.createElementNS(O,"foreignObject");X.setAttribute("x",String(Math.min(0,V))),X.setAttribute("y",String(Math.min(0,Y))),X.setAttribute("width",String(J)),X.setAttribute("height",String(_)),X.style.overflow="visible";let K=document.createElement("style");K.textContent=(p.scrollbarCSS||"")+p.baseCSS+p.fontsCSS+"svg{overflow:visible;} foreignObject{overflow:visible;} foreignObject>div{-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;}"+p.classCSS,X.appendChild(K);let Z=document.createElement("div");Z.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),Z.style.cssText=`all:initial;box-sizing:border-box;display:block;overflow:visible;width:${J}px;height:${_}px`+(0!==W||0!==G?`;padding:${G}px 0 0 ${W}px !important`:""),Z.appendChild(p.clone),X.appendChild(Z);let ee=(new XMLSerializer).serializeToString(X),te=w||I,ne=Object.freeze({w0:m,h0:v,vbW:z,vbH:j,targetW:A,targetH:b,contentX:Dg(V+(s?C:0)),contentY:Dg(Y+(s?B:0)),clip:s?Object.freeze({x:Dg(C),y:Dg(B),width:m,height:v}):null});Object.defineProperty(t,"meta",{value:ne,enumerable:!0,writable:!1,configurable:!0});let re=!te||Hd()?z:Dg(H+2*$),ie=!te||Hd()?j:Dg(q+2*$),oe=parseFloat(vd(a.documentElement)?.fontSize)||16;c=`<svg xmlns="${O}" width="${re}" height="${ie}" viewBox="0 0 ${z} ${j}" font-size="${oe}px">`+ee+"</svg>",l=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(c)}`,p={svgString:c,dataURL:l,...p},e()},{fast:u})}),await tm("afterRender",p);let E=document.getElementById("snapdom-sandbox");return E&&"absolute"===E.style.position&&E.remove(),p.dataURL}function sm(e){return function(e){let t=vd(e),n=t.transform||"none";if("none"!==n&&!/^matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\)$/i.test(n))return!0;let r=t.rotate&&"none"!==t.rotate&&"0deg"!==t.rotate,i=t.scale&&"none"!==t.scale&&"1"!==t.scale,o=t.translate&&"none"!==t.translate&&"0px 0px"!==t.translate;return!!(r||i||o)}(e)}Zf(),qd(),Pd();var lm=new WeakMap;function cm(e,t,n){let r=new Set;if(e instanceof HTMLVideoElement&&r.add(e),e.querySelectorAll)for(let t of e.querySelectorAll("video"))r.add(t);for(let e of t.trackedVideos)r.has(e)||(e.removeEventListener("timeupdate",n),e.removeEventListener("seeked",n),t.trackedVideos.delete(e));for(let e of r)t.trackedVideos.has(e)||(e.addEventListener("timeupdate",n),e.addEventListener("seeked",n),t.trackedVideos.add(e))}function um(e){let{burst:t,invalidate:n,...r}=e||{};try{return JSON.stringify(r,Object.keys(r).sort())}catch{return null}}function fm(e,t,n,r){let i=lm.get(e);i||(i=function(e){let t={dirty:!0,capturing:!1,last:null,inflight:Promise.resolve(),observers:[],trackedVideos:new Set},n=e=>{t.capturing||wh(e)&&(t.dirty=!0)},r=()=>{t.capturing||(t.dirty=!0)},i=e.ownerDocument||document;try{let r=new MutationObserver(n);r.observe(e,{subtree:!0,childList:!0,attributes:!0,characterData:!0}),t.observers.push(r)}catch{}try{if(i.head){let e=new MutationObserver(n);e.observe(i.head,{subtree:!0,childList:!0,characterData:!0,attributes:!0}),t.observers.push(e)}}catch{}return t.markDirty=n,t.onMediaDirty=r,cm(e,t,r),t}(e),i.baselineSignature=um(t),lm.set(e,i));let o=um(t),a=null===o||o!==i.baselineSignature,s=async()=>{for(let e of i.observers)i.markDirty(e.takeRecords());if(n.invalidate&&(i.dirty=!0),!a&&!i.dirty&&i.last)return i.last;i.capturing=!0,a||(i.dirty=!1);try{let e=await r();return a||(i.last=e),e}finally{for(let e of i.observers)e.takeRecords();i.capturing=!1,cm(e,i,i.onMediaDirty)}},l=i.inflight.then(s,s);return i.inflight=l.catch(()=>{}),l}$d(),fd(),Zf();var dm=Object.assign(async function(e,t){if(!e)throw new Error("Element cannot be null or undefined");let n=function(e={}){let t=e.format??"png";"jpg"===t&&(t="jpeg");let n=function(e){if(!0===e)return"soft";if(!1===e)return"disabled";if("string"==typeof e){let t=e.toLowerCase().trim();if("auto"===t)return"auto";if("full"===t)return"full";if("soft"===t||"disabled"===t)return t}return"soft"}(e.cache);return{debug:e.debug??!1,fast:e.fast??!0,scale:e.scale??1,exclude:e.exclude??[],excludeMode:e.excludeMode??"hide",filter:e.filter??null,filterMode:e.filterMode??"hide",placeholders:!1!==e.placeholders,embedFonts:e.embedFonts??!1,iconFonts:Array.isArray(e.iconFonts)?e.iconFonts:e.iconFonts?[e.iconFonts]:[],localFonts:Array.isArray(e.localFonts)?e.localFonts:[],excludeFonts:e.excludeFonts??void 0,fontStylesheetDomains:Array.isArray(e.fontStylesheetDomains)?e.fontStylesheetDomains:[],fallbackURL:e.fallbackURL??void 0,cache:n,useProxy:"string"==typeof e.useProxy?e.useProxy:"",width:e.width??null,height:e.height??null,format:t,type:e.type??"svg",quality:e.quality??.92,dpr:e.dpr??(window.devicePixelRatio||1),backgroundColor:e.backgroundColor??(["jpeg","webp"].includes(t)?"#ffffff":null),filename:e.filename??"snapDOM",outerTransforms:e.outerTransforms??!0,outerShadows:e.outerShadows??!1,reconcile:e.reconcile??!1,burst:e.burst??!1,invalidate:e.invalidate??!1,clip:e.clip??null,compress:!1!==e.compress,excludeStyleProps:e.excludeStyleProps??null,resolvePicturePlaceholders:!1!==e.resolvePicturePlaceholders,pictureResolver:e.pictureResolver&&"object"==typeof e.pictureResolver?e.pictureResolver:{}}}(t);if(nm(n,t&&t.plugins),Hd()){if(!0===n.embedFonts)try{let t=function(e,t){return Yp(e,t).required}(e),n=new Set([...t].map(e=>String(e).split("__")[0]).filter(Boolean));await Wp(n,1)}catch{}let r=Array.from(e.querySelectorAll("canvas"));"CANVAS"===e.tagName&&r.unshift(e);for(let e of r)try{let t=e.getContext("2d",{willReadFrequently:!0});t&&t.getImageData(0,0,1,1)}catch(e){Od(t,"safari canvas poke failed",e)}}return n.iconFonts&&n.iconFonts.length>0&&function(e){let t=Array.isArray(e)?e:[e];for(let e of t){let t;if(e instanceof RegExp)t=e;else{if("string"!=typeof e){console.warn("[snapdom] Ignored invalid iconFont value:",e);continue}t=new RegExp(gp(e),"i")}let n=`${t.source}/${t.flags}`;pp.has(n)||(pp.add(n),hp.push(t))}}(n.iconFonts),n.snap||(n.snap={toPng:(e,t)=>dm.toPng(e,t),toSvg:(e,t)=>dm.toSvg(e,t)}),n.burst?fm(e,t,n,()=>dm.capture(e,n,hm)):dm.capture(e,n,hm)},{plugins:function(...e){return function(...e){let t=e.flat();for(let e of t){let t=Zg(e);t&&(Kg.some(e=>e&&e.name&&t.name&&e.name===t.name)||Kg.push(t))}}(...e),dm}}),hm=Symbol("snapdom.internal"),pm=Symbol("snapdom.internal.silent");function gm(e){return document.querySelectorAll(e)}function mm(e){function t(e){e.parentNode.removeChild(e)}if(ku(e)){return void t(e)}if(!Fe(e))return;An(gm(e),function(e){t(e)})}function ym(e,t){if(!ku(e))return"invalid eleParent";if(ke(t))e.insertAdjacentHTML("afterbegin",t);else{if(!ku(t))return"invalid itemChild";e.insertBefore(t,e.firstChild)}}async function vm(e,t={}){if(!ku(e))return Promise.reject("invalid ele");let n=be(t,"scale",null);if(Me(n)||(n=1),n=xr(n),n<1)return Promise.reject("opt.scale can not less then 1");let r=be(t,"picType",null);"image/jpg"!==r&&"image/jpeg"!==r&&"image/png"!==r&&"svg"!==r&&(r="image/png");let i=be(t,"toBase64",null);Ie(i)||(i=!0);let o=e.cloneNode(!0),a=document.createElement("div");a.style.position="absolute",a.style.top=0,a.style.left=0,a.style.zIndex=-1,a.appendChild(o);let s=document.createElement("div");s.style.opacity=0,s.style.position="relative",s.appendChild(a),ym(document.querySelector("body"),s);let l,c={scale:n,quality:1,cache:"disabled"};return"image/jpg"===r||"image/jpeg"===r?l=await dm.toJpg(a,c):"image/png"===r?l=await dm.toPng(a,c):"svg"===r&&(l=await dm.toSvg(a,c)),i&&(l=be(l,"src","")),mm(s),l}dm.capture=async(e,t,n)=>{if(n!==hm)throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");t.element=e;let r=await am(e,t),i={img:async(e,t)=>{let{toImg:n}=await Promise.resolve().then(()=>(lh(),ah));return n(r,{...e,...t||{}})},svg:async(e,t)=>{let{toSvg:n}=await Promise.resolve().then(()=>(lh(),ah));return n(r,{...e,...t||{}})},canvas:async(e,t)=>{let{toCanvas:n}=await Promise.resolve().then(()=>(nh(),zd));return n(r,{...e,...t||{}})},blob:async(e,t)=>{let{toBlob:n}=await Promise.resolve().then(()=>(fh(),ch));return n(r,{...e,...t||{}})},png:async(e,t)=>{let{rasterize:n}=await Promise.resolve().then(()=>(oh(),rh));return n(r,{...e,...t||{},format:"png"})},jpeg:async(e,t)=>{let{rasterize:n}=await Promise.resolve().then(()=>(oh(),rh));return n(r,{...e,...t||{},format:"jpeg"})},webp:async(e,t)=>{let{rasterize:n}=await Promise.resolve().then(()=>(oh(),rh));return n(r,{...e,...t||{},format:"webp"})},download:async(e,t)=>{let{download:n}=await Promise.resolve().then(()=>(gh(),dh));return n(r,{...e,...t||{}})}},o={};for(let e of["img","svg","canvas","blob","png","jpeg","webp"])o[e]=async n=>i[e](t,{...n||{},[pm]:!0});o.jpg=o.jpeg;let a={...t,export:{url:r},exports:o},s=await async function(e,t,n){let r=[],i=em(t);for(let o of i){let i=o&&"function"==typeof o[e]?o[e]:null;if(!i)continue;let a=await i(t,n);typeof a<"u"&&r.push(a)}return r}("defineExports",a),l=Object.assign({},...s.filter(e=>e&&"object"==typeof e).reverse()),c={...i,...l};c.jpeg&&!c.jpg&&(c.jpg=(e,t)=>c.jpeg(e,t));let u=!1,f=Promise.resolve();async function d(e,n){let i=Object.freeze(n&&"object"==typeof n?{...n}:{}),o=f.then(async()=>{let n=c[e];if(!n)throw new Error(`[snapdom] Unknown export type: ${e}`);let o=function(e,n){let r={...t,...n||{}};return[e,r.format,r.type].map(e=>"string"==typeof e?e.toLowerCase():"").find(e=>"jpeg"===e||"jpg"===e||"webp"===e)&&(null==r.backgroundColor||"transparent"===r.backgroundColor)&&(r.backgroundColor="#ffffff"),r}(e,i),a={...t,export:{type:e,options:o,requestedOptions:i,url:r}};await tm("beforeExport",a,{format:e,options:o});let s=await n(a,o);return await tm("afterExport",a,{format:e,options:o,result:s}),u||(u=!0,await tm("afterSnap",t)),s});return f=o.catch(()=>{}),o}let h={url:r,toRaw:()=>r,to:(e,t)=>d(e,t),toImg:e=>d("img",e),toSvg:e=>d("svg",e),toCanvas:e=>d("canvas",e),toBlob:e=>d("blob",e),toPng:e=>d("png",e),toJpg:e=>d("jpg",e),toWebp:e=>d("webp",e),download:e=>d("download",e)};Object.defineProperty(h,"meta",{value:t.meta,enumerable:!0,writable:!1,configurable:!1});for(let e of Object.keys(c)){let t="to"+e.charAt(0).toUpperCase()+e.slice(1);h[t]||(h[t]=t=>d(e,t))}return h},dm.toRaw=(e,t)=>dm(e,t).then(e=>e.toRaw()),dm.toImg=(e,t)=>dm(e,t).then(e=>e.toImg()),dm.toSvg=(e,t)=>dm(e,t).then(e=>e.toSvg()),dm.toCanvas=(e,t)=>dm(e,t).then(e=>e.toCanvas()),dm.toBlob=(e,t)=>dm(e,t).then(e=>e.toBlob()),dm.toPng=(e,t)=>dm(e,{...t,format:"png"}).then(e=>e.toPng()),dm.toJpg=(e,t)=>dm(e,{...t,format:"jpeg"}).then(e=>e.toJpg()),dm.toWebp=(e,t)=>dm(e,{...t,format:"webp"}).then(e=>e.toWebp()),dm.download=(e,t)=>dm(e,t).then(e=>e.download());var Am=Da(ba);function bm(e){let t=function(e,n){return null===e.parentNode?n:t(e.parentNode,n.concat([e]))};return e instanceof HTMLElement||e instanceof SVGElement?t(e.parentNode,[]):[]}function wm(e){let t=be(e,"clientX",null),n=be(e,"clientY",null),r=be(e,"pageX",null),i=be(e,"pageY",null);if(null!==t&&null!==n&&null!==r&&null!==i)return{clientX:t,clientY:n,pageX:r,pageY:i};let o=be(e,"changedTouches",[]);if(1!==ar(o))return null;let a=o[0];return{clientX:be(a,"clientX",null),clientY:be(a,"clientY",null),pageX:be(a,"pageX",null),pageY:be(a,"pageY",null)}}function Im(e,t){let n=[];try{n=document.elementsFromPoint(e,t)}catch(e){console.log(e)}return n}function xm(e,t){if(!ku(e))return null;if(!Fe(t))return null;try{return e.getAttribute(t)}catch(e){}return null}function Cm(e){if(!ku(e))return null;try{return e.getBoundingClientRect()}catch(e){}return null}function Bm(e,t){if(!Se(e))return null;if(!fa(e.clientX)||!fa(e.clientY))return null;if(!ku(t))return null;let n=Cm(t);return n?{x:e.clientX-n.left,y:e.clientY-n.top,w:t.offsetWidth,h:t.offsetHeight}:null}function Em(e={}){let t="dragpreviewid",n=null,r=null,i=null,o=null,a=null,s=!1,l=be(e,"attIdentify",null);Fe(l)||(l="dragprevid");let c=be(e,"containerOpacity",null);fa(c)||(c=.4);let u=be(e,"containerBackground",null);Fe(u)||(u="white");let f=be(e,"containerBorderWidth",null);fa(f)||(f=1);let d=be(e,"containerBorderColor",null);Fe(d)||(d="#f26");let h=`c${Hu(8)}`;function p(e,t,n){r&&i&&o&&a&&!s&&(a.style.top=t-r.tShiftY+"px",a.style.left=e-r.tShiftX+"px")}function g(){mm(`[${t}='${h}']`),r=null,i=null,o=null,a=null}let m=function(e){p(e.clientX,e.clientY)};window.addEventListener("mousemove",m);let y=function(e){let t=wm(e);t&&p(t.clientX,t.clientY)};return window.addEventListener("touchmove",y),{createPreview:function(e,s,m){try{!function(){let g=function(e,t,r){let i=Cm(e);if(!i)return null;n=e;let o=e.cloneNode(!0);return o.tShiftX=t-i.left,o.tShiftY=r-i.top,o.tWidth=e.offsetWidth,o.tHeight=e.offsetHeight,o.tParent=e.parentNode,o.setAttribute(l,""),o}(e,s,m);if(null===g)return;let y=document.createElement("div");y.style.position="absolute",y.style.zIndex=1,y.style.top=0,y.style.left=0,y.style.width="100%",y.style.height="100%",y.appendChild(g);let v=document.createElement("div");v.style.position="relative",v.appendChild(y);let A=document.createElement("div");A.setAttribute(t,h),A.style.position="fixed",A.style.zIndex=1e5,A.style.width=`${g.tWidth+2*f}px`,A.style.height=`${g.tHeight+2*f}px`,A.style.opacity=c,A.style.background=u,A.style.border=`${f}px solid ${d}`,A.style.pointerEvents="none",A.appendChild(v),document.querySelector("body").appendChild(A),r=g,i=y,o=v,a=A,p(s,m)}()}catch(e){}let y=setInterval(()=>{let e=xm(n,l);document.querySelector(`[${l}='${e}']`)||(clearInterval(y),g())},500)},updateDragPreview:p,pauseDragPreview:function(e){s=e},removeDragPreview:g,setNodeStyle:function(e){try{An(e,(e,t)=>{r.style[t]=e})}catch(e){}},setCoverStyle:function(e){try{An(e,(e,t)=>{i.style[t]=e})}catch(e){}},setSellStyle:function(e){try{An(e,(e,t)=>{o.style[t]=e})}catch(e){}},setContainerStyle:function(e){try{An(e,(e,t)=>{a.style[t]=e})}catch(e){}},clear:function(){window.removeEventListener("mousemove",m),window.removeEventListener("touchmove",y)}}}let Sm={};function km(e,t,{attIdentify:n,previewOpacity:r,previewBackground:i,previewBorderWidth:o,previewBorderColor:a}){if(!Te(Sm,e)){let t=qi(),s=function(e){let t=[];function n(){let n;n="mousemove";let r=function(t){e.dragMove({e:t,name:"mousemove"})};window.addEventListener(n,r),t.push({ele:window,name:n,f:r}),n="mouseup";let i=function(t){e.dragDrop({e:t,name:"mouseup"})};window.addEventListener(n,i),t.push({ele:window,name:n,f:i}),n="touchmove";let o=function(t){e.dragMove({e:t,name:"touchmove"})};window.addEventListener(n,o),t.push({ele:window,name:n,f:o}),n="touchend";let a=function(t){e.dragDrop({e:t,name:"touchend"})};window.addEventListener(n,a),t.push({ele:window,name:n,f:a})}function r(){An(t,({ele:e,name:t,f:n})=>{e.removeEventListener(t,n)})}return{bind:n,unbind:r}}({dragMove:n=>{t.emit(e+"-dragMove",n)},dragDrop:n=>{t.emit(e+"-dragDrop",n)}});s.bind();let l=Em({attIdentify:n,containerOpacity:r,containerBackground:i,containerBorderWidth:o,containerBorderColor:a});Sm[e]={eleIds:[],evg:t,oevg:s,pv:l,isInit:!1,isActive:!0}}return Sm[e].eleIds.push(t),Sm[e].evg}function Fm(e,t){let n=xm(e,t);return n=Yi(n),n}function Dm({gid:e,attGroup:t,attIndex:n,attIdentify:r,timeDragStartDelay:i,previewOpacity:o,previewDisabledOpacity:a}){let s=null,l=null,c=null,u=null;if(Sm[e].isInit)return Sm[e].evg;Sm[e].isInit=!0;let f=Sm[e].evg;f.on(e+"-dragStart",function({e:t,ele:o,from:c}){if(!Sm[e].isActive)return;let u=Fm(o,n);if(null===u)return;s=u,l=o;let h={event:t,startInd:s,startEle:l,tarInd:s,tarEid:xm(l,r)};f.emit(e+"-change",{mode:"start",...h}),f.emit(e+"-start",h);let p=wm(t);if(!p)return;setTimeout(()=>{null!==s&&(d.createPreview(l,p.clientX,p.clientY),d.setContainerStyle({opacity:a}))},i)}),f.on(e+"-dragMove",function({e:i,name:h,from:p}){if(!Sm[e].isActive)return;let g=function(e,t,n){let r=null;return An(bm(e.target),e=>{if(xm(e,t)===n)return r=e,!1}),r}(i,t,e);if(null===s)return;let m=wm(i);if(!m)return;function y(){let t={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:xm(u,r)};f.emit(e+"-change",{mode:"leave",...t}),f.emit(e+"-leave",t),c=null,u=null,d.setContainerStyle({opacity:a})}if(!g)return void(null!==c&&y());let v=Fm(g,n);if(null===v)return;if(v===s)return void(null!==c&&y());if(v!==c)null!==c&&y(),function(t,n){c=t,u=n;let a={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:xm(u,r)};f.emit(e+"-change",{mode:"enter",...a}),f.emit(e+"-enter",a),d.setContainerStyle({opacity:o})}(v,g);else{let t=Bm(m,g),n=0;t.w>0&&(n=t.x/t.w);let a=0;t.h>0&&(a=t.y/t.h),n>=0&&n<=1&&a>=0&&a<=1&&function(t,n,a){let h={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:xm(u,r),...t,rx:n,ry:a};f.emit(e+"-change",{mode:"move",...h}),f.emit(e+"-move",h),d.setContainerStyle({opacity:o})}(t,n,a)}}),f.on(e+"-dragDrop",function({e:i,name:o,from:a}){if(d.removeDragPreview(),!Sm[e].isActive)return;if(null===s)return;let h=function(e,t,n){let r=null,i=wm(e);return i?(An(Im(i.clientX,i.clientY),e=>{if(xm(e,t)===n)return r=e,!1}),r):r}(i,t,e);if(!h)return s=null,l=null,c=null,void(u=null);let p=Fm(h,n);if(null===p)return;(function(t,n){c=t,u=n;let o={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:xm(u,r)};f.emit(e+"-change",{mode:"drop",...o}),f.emit(e+"-drop",o)})(p,h),s=null,l=null,c=null,u=null});let d=Sm[e].pv}async function Nm(e){let t=[],n=_a();return await async function e(n){let r=null;if(n.isFile&&(r=await function(e){let t=_a();try{e.file(t.resolve,t.reject)}catch(e){t.reject(e)}return t}(n)),t.push({type:n.isDirectory?"folder":n.isFile?"file":"unknow",path:n.fullPath,name:n.name,entry:n,file:r}),n.isDirectory){let t=n.createReader(),r=await function(e){let t=_a();try{e.readEntries(t.resolve,t.reject)}catch(e){t.reject(e)}return t}(t);await ic(r,async t=>{await e(t)})}}(e),n.resolve(t),n}async function Mm(e){let t=[];An(e,e=>{let n=e.webkitGetAsEntry();n&&t.push(n)});let n=await async function(e){let t=[];return await ic(e,async e=>{An(await Nm(e),e=>{t.push(e)})}),t}(t);return n}async function Tm(e){let t=[],n=[];try{t=await async function(e){let t=[];return An(e,e=>{e.type&&t.push({type:"file",name:e.name,file:e})}),t}(be(e,"files",[])),Ju()||(n=await Mm(be(e,"items",[])).catch(e=>{console.log(e)}))}catch(e){return Promise.reject(e)}return{files:t,entries:n}}function Qm(e){return document.querySelector(e)}function Lm(e){return!Mn(e)}var Rm=Math.max;var Um,Hm=(Um=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ir(n);return i<0&&(i=Rm(r+i,0)),Qn(e,pn(t),i)},function(e,t,n){var r=Object(e);if(!ht(e)){var i=pn(t);e=pt(e),t=function(e){return i(r[e],e,r)}}var o=Um(e,t,n);return o>-1?r[i?e[o]:o]:void 0});let qm=[{name:"pic",group:"image",acp:"image/*",exec:"imageviwer"},{name:"xml",group:"data",acp:"text/xml",exec:"textviwer"},{name:"htm",group:"docums",acp:"text/html",exec:"browser"},{name:"html",group:"docums",acp:"text/html",exec:"browser"},{name:"json",group:"data",acp:"application/json",exec:"textviwer"},{name:"geojson",group:"data",acp:"application/geo+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"},{name:"7z",group:"compress",acp:"application/x-7z-compressed",exec:"compressor"},{name:"bzip",group:"compress",acp:"application/x-bzip",exec:"7z"},{name:"bzip2",group:"compress",acp:"application/x-bzip2",exec:"compressor"},{name:"bz2",group:"compress",acp:"application/x-bzip2",exec:"compressor"},{name:"ace",group:"compress",acp:"application/x-ace-compressed",exec:"compressor"},{name:"Z",group:"compress",acp:"application/x-compress",exec:"compressor"},{name:"lzh",group:"compress",acp:"application/x-lzh-compressed",exec:"compressor"},{name:"lz",group:"compress",acp:"application/x-lzip",exec:"compressor"},{name:"rar",group:"compress",acp:"application/x-rar-compressed",exec:"compressor"},{name:"tar",group:"compress",acp:"application/x-tar",exec:"compressor"},{name:"ar",group:"compress",acp:"application/x-unix-archive",exec:"compressor"},{name:"zip",group:"compress",acp:"application/zip",exec:"compressor"},{name:"gz",group:"compress",acp:"application/gzip",exec:"compressor"},{name:"avro",group:"",acp:"application/avro",exec:""},{name:"dcm",group:"",acp:"application/dicom",exec:""},{name:"eps",group:"",acp:"application/eps",exec:""},{name:"epub",group:"",acp:"application/epub+zip",exec:""},{name:"class",group:"",acp:"application/java-vm",exec:""},{name:"mxf",group:"",acp:"application/mxf",exec:""},{name:"ogx",group:"",acp:"application/ogg",exec:""},{name:"pdf",group:"docums",acp:"application/pdf",exec:"acrobat"},{name:"pgp",group:"",acp:"application/pgp-encrypted",exec:""},{name:"ps",group:"",acp:"application/postscript",exec:""},{name:"ai",group:"",acp:"application/postscript",exec:""},{name:"rtf",group:"docums",acp:"application/rtf",exec:"word"},{name:"icc",group:"",acp:"application/vnd.iccprofile",exec:""},{name:"asf",group:"",acp:"application/vnd.ms-asf",exec:"",msg:"asf的acp可能為application/vnd.ms-asf或audio/x-ms-asf或video/x-ms-asf"},{name:"cab",group:"",acp:"application/vnd.ms-cab-compressed",exec:""},{name:"eot",group:"",acp:"application/vnd.ms-fontobject",exec:""},{name:"chm",group:"",acp:"application/vnd.ms-htmlhelp",exec:""},{name:"pst",group:"",acp:"application/vnd.ms-outlook",exec:""},{name:"odp",group:"docums",acp:"application/vnd.oasis.opendocument.presentation",exec:"powerpoint"},{name:"ods",group:"docums",acp:"application/vnd.oasis.opendocument.spreadsheet",exec:"excel"},{name:"odt",group:"docums",acp:"application/vnd.oasis.opendocument.text",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:"doc",group:"docums",acp:"application/msword",exec:"word"},{name:"docx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",exec:"word"},{name:"skp",group:"",acp:"application/vnd.sketchup.skp",exec:""},{name:"pcap",group:"",acp:"application/vnd.tcpdump.pcap",exec:""},{name:"wasm",group:"",acp:"application/wasm",exec:""},{name:"arrow",group:"",acp:"application/x-apache-arrow",exec:""},{name:"dmg",group:"",acp:"application/x-apple-diskimage",exec:""},{name:"arj",group:"",acp:"application/x-arj",exec:""},{name:"asar",group:"",acp:"application/x-asar",exec:""},{name:"blend",group:"",acp:"application/x-blender",exec:"blender"},{name:"cfb",group:"",acp:"application/x-cfb",exec:""},{name:"cpio",group:"",acp:"application/x-cpio",exec:""},{name:"deb",group:"",acp:"application/x-deb",exec:""},{name:"elf",group:"",acp:"application/x-elf",exec:""},{name:"shp",group:"",acp:"application/x-esri-shape",exec:""},{name:"crx",group:"",acp:"application/x-google-chrome-extension",exec:""},{name:"indd",group:"",acp:"application/x-indesign",exec:""},{name:"macho",group:"",acp:"application/x-mach-binary",exec:""},{name:"mie",group:"",acp:"application/x-mie",exec:""},{name:"mobi",group:"",acp:"application/x-mobipocket-ebook",exec:""},{name:"exe",group:"",acp:"application/x-msdownload",exec:""},{name:"nes",group:"",acp:"application/x-nintendo-nes-rom",exec:""},{name:"parquet",group:"",acp:"application/x-parquet",exec:""},{name:"rpm",group:"",acp:"application/x-rpm",exec:""},{name:"swf",group:"",acp:"application/x-shockwave-flash",exec:""},{name:"sqlite",group:"",acp:"application/x-sqlite3",exec:""},{name:"xpi",group:"",acp:"application/x-xpinstall",exec:""},{name:"xz",group:"",acp:"application/x-xz",exec:""},{name:"alias",group:"",acp:"application/x.apple.alias",exec:""},{name:"fbx",group:"",acp:"application/x.autodesk.fbx",exec:""},{name:"lnk",group:"",acp:"application/x.ms.shortcut",exec:""},{name:"zst",group:"",acp:"application/zstd",exec:""},{name:"aac",group:"audio",acp:"audio/aac",exec:"audioplayer"},{name:"aif",group:"audio",acp:"audio/aiff",exec:"audioplayer"},{name:"amr",group:"audio",acp:"audio/amr",exec:"audioplayer"},{name:"ape",group:"audio",acp:"audio/ape",exec:"audioplayer"},{name:"mid",group:"audio",acp:"audio/midi",exec:"audioplayer"},{name:"m4b",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"f4a",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"f4b",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"mp3",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"mp2",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"mp1",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"oga",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"spx",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"ogg",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"opus",group:"audio",acp:"audio/opus",exec:"audioplayer"},{name:"qcp",group:"audio",acp:"audio/qcelp",exec:"audioplayer"},{name:"ac3",group:"audio",acp:"audio/vnd.dolby.dd-raw",exec:"audioplayer"},{name:"wav",group:"audio",acp:"audio/wav",exec:"audioplayer"},{name:"wv",group:"audio",acp:"audio/wavpack",exec:"audioplayer"},{name:"dsf",group:"audio",acp:"audio/x-dsf",exec:"audioplayer"},{name:"flac",group:"audio",acp:"audio/x-flac",exec:"audioplayer"},{name:"it",group:"audio",acp:"audio/x-it",exec:"audioplayer"},{name:"m4a",group:"audio",acp:"audio/x-m4a",exec:"audioplayer"},{name:"mpc",group:"audio",acp:"audio/x-musepack",exec:"audioplayer"},{name:"s3m",group:"audio",acp:"audio/x-s3m",exec:"audioplayer"},{name:"voc",group:"audio",acp:"audio/x-voc",exec:"audioplayer"},{name:"xm",group:"audio",acp:"audio/x-xm",exec:"audioplayer"},{name:"otf",group:"",acp:"font/otf",exec:""},{name:"ttf",group:"",acp:"font/ttf",exec:""},{name:"woff",group:"",acp:"font/woff",exec:""},{name:"woff2",group:"",acp:"font/woff2",exec:""},{name:"apng",group:"image",acp:"image/apng",exec:"imageviwer"},{name:"avif",group:"image",acp:"image/avif",exec:"imageviwer"},{name:"bmp",group:"image",acp:"image/bmp",exec:"imageviwer"},{name:"bpg",group:"image",acp:"image/bpg",exec:"imageviwer"},{name:"flif",group:"image",acp:"image/flif",exec:"imageviwer"},{name:"gif",group:"image",acp:"image/gif",exec:"imageviwer"},{name:"heic",group:"image",acp:"image/heif",exec:"imageviwer"},{name:"icns",group:"image",acp:"image/icns",exec:"imageviwer"},{name:"j2c",group:"image",acp:"image/j2c",exec:"imageviwer"},{name:"jls",group:"image",acp:"image/jls",exec:"imageviwer"},{name:"jp2",group:"image",acp:"image/jp2",exec:"imageviwer"},{name:"jpg",group:"image",acp:"image/jpeg",exec:"imageviwer"},{name:"jpm",group:"image",acp:"image/jpm",exec:"imageviwer"},{name:"jpx",group:"image",acp:"image/jpx",exec:"imageviwer"},{name:"jxl",group:"image",acp:"image/jxl",exec:"imageviwer"},{name:"ktx",group:"image",acp:"image/ktx",exec:"imageviwer"},{name:"mj2",group:"image",acp:"image/mj2",exec:"imageviwer"},{name:"png",group:"image",acp:"image/png",exec:"imageviwer"},{name:"tif",group:"image",acp:"image/tiff",exec:"imageviwer"},{name:"psd",group:"image",acp:"image/vnd.adobe.photoshop",exec:"imageviwer"},{name:"dwg",group:"image",acp:"image/vnd.dwg",exec:"imageviwer"},{name:"jxr",group:"image",acp:"image/vnd.ms-photo",exec:"imageviwer"},{name:"webp",group:"image",acp:"image/webp",exec:"imageviwer"},{name:"dng",group:"image",acp:"image/x-adobe-dng",exec:"imageviwer"},{name:"cr2",group:"image",acp:"image/x-canon-cr2",exec:"imageviwer"},{name:"cr3",group:"image",acp:"image/x-canon-cr3",exec:"imageviwer"},{name:"raf",group:"image",acp:"image/x-fujifilm-raf",exec:"imageviwer"},{name:"ico",group:"image",acp:"image/x-icon",exec:"imageviwer"},{name:"cur",group:"image",acp:"image/x-icon",exec:"imageviwer"},{name:"nef",group:"image",acp:"image/x-nikon-nef",exec:"imageviwer"},{name:"orf",group:"image",acp:"image/x-olympus-orf",exec:"imageviwer"},{name:"rw2",group:"image",acp:"image/x-panasonic-rw2",exec:"imageviwer"},{name:"arw",group:"image",acp:"image/x-sony-arw",exec:"imageviwer"},{name:"xcf",group:"image",acp:"image/x-xcf",exec:"imageviwer"},{name:"3mf",group:"",acp:"model/3mf",exec:""},{name:"glb",group:"",acp:"model/gltf-binary",exec:""},{name:"stl",group:"",acp:"model/stl",exec:""},{name:"vtp",group:"",acp:"model/vtp",exec:""},{name:"vtk",group:"",acp:"model/vtk",exec:""},{name:"vtu",group:"",acp:"model/vtu",exec:""},{name:"vti",group:"",acp:"model/vti",exec:""},{name:"vts",group:"",acp:"model/vts",exec:""},{name:"vtr",group:"",acp:"model/vtr",exec:""},{name:"ics",group:"",acp:"text/calendar",exec:""},{name:"vcf",group:"",acp:"text/vcard",exec:""},{name:"3gp",group:"video",acp:"video/3gpp",exec:"videoplayer"},{name:"3g2",group:"video",acp:"video/3gpp2",exec:"videoplayer"},{name:"m2p",group:"video",acp:"video/MP2P",exec:"videoplayer"},{name:"vob",group:"video",acp:"video/MP2P",exec:"videoplayer"},{name:"sub",group:"video",acp:"video/MP2P",exec:"videoplayer",msg:"與字幕檔衝突"},{name:"mts",group:"video",acp:"video/mp2t",exec:"videoplayer"},{name:"m4p",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"f4v",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"f4p",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"mp4",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"mpg",group:"video",acp:"video/mpeg",exec:"videoplayer",msg:"mpg可能為mpeg或video/MP1S或video/MP2S"},{name:"ogv",group:"video",acp:"video/ogg",exec:"videoplayer"},{name:"ogm",group:"video",acp:"video/ogg",exec:"videoplayer"},{name:"mov",group:"video",acp:"video/quicktime",exec:"videoplayer"},{name:"avi",group:"video",acp:"video/vnd.avi",exec:"videoplayer"},{name:"webm",group:"video",acp:"video/webm",exec:"videoplayer"},{name:"flv",group:"video",acp:"video/x-flv",exec:"videoplayer"},{name:"m4v",group:"video",acp:"video/x-m4v",exec:"videoplayer"},{name:"mkv",group:"video",acp:"video/x-matroska",exec:"videoplayer"}];function Om(e=""){let t=null;return Fe(e)?(t=Hm(qm,{name:e}),Se(t)||(t=null)):t=qm,t}function Pm(e=""){if(""!==e&&"name"!==e&&"group"!==e&&"acp"!==e&&"exec"!==e)return[];let t=Om();if(""===e)return t;let n={};return An(t,function(t){let r=t[e];Te(n,r)||(n[r]=[]),n[r].push(t)}),n}function $m(e="*"){if("*"===e)return e;if(!ke(e)&&!Tn(e))return"*";"common"===e&&(e=["docums","compress","image","data"]);let t=Pm();function n(e){return $n(wn(e,"acp"))}ke(e)&&(e=[e]);let r="";if(Tn(e)){let i=wn(e,function(e){return function(e){return n(sa(t,{group:e}))}(e)}),o=En(i,wn(e,function(e){return n(sa(t,{name:e}))}));o=sa(o,Lm),r=Ao(o,",")}return r}function zm(e,t=1e3){(t=xr(t))<=0&&(t=1e3);let n={},r=[];return An(be(e,"files",[]),function(e,i){let o=e.size/1024/1024;o>t&&(n[i]=`file size[${o}]mb > ${t}mb`),r.push(e)}),{files:r,errs:n}}function jm(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!N(a):n(a,s)))var s=a,l=o}return l}function Vm(e,t){return e<t}function Ym(e){return e&&e.length?jm(e,fn,Vm):void 0}function Wm(){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}}()||Oi(window.IntersectionObserverEntry))}function Gm(e,t,n={}){if(!ku(e))return Promise.reject("invalid ele");let r=nc().markmap,{Transformer:i,Markmap:o,loadCSS:a,loadJS:s}=r,l=e=>{let t=new i,{root:n,features:r}=t.transform(e),{styles:o,scripts:a}=t.getUsedAssets(r);return{root:n,features:r,styles:o,scripts:a}},{root:c,styles:u,scripts:f}=l(t);u&&a(u),f&&s(f,{getMarkmap:()=>r}),e.innerHTML="";let d=o.create(e,null,c);return d.transMarkdown=l,d}const Jm=e=>void 0===e||"auto"===e||"instant"===e||"smooth"===e;function _m(e,t){this.scrollLeft=e,this.scrollTop=t}const Xm=(e,t,n="cannot convert to dictionary.")=>`Failed to execute '${e}' on '${t}': ${n}`,Km=(e,t,n)=>Xm(e,t,`The provided value '${n}' is not a valid enum value of type ScrollBehavior.`),Zm=(e,t,n)=>{var r;const i=`__SEAMLESS.BACKUP$${t}`;return e[i]||!e[t]||(null===(r=e[t])||void 0===r?void 0:r.__isPolyfill)||(e[i]=e[t]),e[i]||n},ey=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},ty=e=>"scrollBehavior"in window.document.documentElement.style&&!0!==(null==e?void 0:e.forcePolyfill),ny=e=>{Object.defineProperty(e,"__isPolyfill",{value:!0})},ry=(e,t)=>{ny(t),[HTMLElement.prototype,SVGElement.prototype,Element.prototype].forEach(n=>{Zm(n,e),n[e]=t})},iy=e=>e.ownerDocument.scrollingElement||e.ownerDocument.documentElement;const oy=e=>.5*(1-Math.cos(Math.PI*e));function ay(){var e;let t;return t=(null===(e=window.performance)||void 0===e?void 0:e.now)?()=>window.performance.now():()=>window.Date.now(),ay=t,t()}const sy=e=>{const t=(ay()-e.timeStamp)/(e.duration||500);if(t>1)return e.method(e.targetX,e.targetY),void e.callback();const n=(e.timingFunc||oy)(t),r=e.startX+(e.targetX-e.startX)*n,i=e.startY+(e.targetY-e.startY)*n;e.method(r,i),e.rafId=window.requestAnimationFrame(()=>{sy(e)})},ly=e=>isFinite(e)?Number(e):0,cy=(e,t,n)=>{var r,i;if(!(e=>{var t;return null!==(t=e.isConnected)&&void 0!==t?t:!(e.ownerDocument&&1&e.ownerDocument.compareDocumentPosition(e))})(e))return;const o=e.scrollLeft,a=e.scrollTop,s=ly(null!==(r=t.left)&&void 0!==r?r:o),l=ly(null!==(i=t.top)&&void 0!==i?i:a);if(s===o&&l===a)return;const c=Zm(HTMLElement.prototype,"scroll",_m),u=Zm(Object.getPrototypeOf(e),"scroll",c).bind(e);if("smooth"!==t.behavior)return void u(s,l);const f=()=>{window.removeEventListener("wheel",h),window.removeEventListener("touchmove",h)},d=Object.assign(Object.assign({},n),{timeStamp:ay(),startX:o,startY:a,targetX:s,targetY:l,rafId:0,method:u,callback:()=>{f();const t=9===e.nodeType;e.dispatchEvent(function(e){if("function"==typeof Event)return new Event("scrollend",{bubbles:e,cancelable:!1});const t=document.createEvent("Event");return t.initEvent("scrollend",e,!1),t}(t))}}),h=()=>{window.cancelAnimationFrame(d.rafId),f()};window.addEventListener("wheel",h,{passive:!0,once:!0}),window.addEventListener("touchmove",h,{passive:!0,once:!0}),sy(d)},uy=e=>(t,n,r)=>{const[i,o]=(a=t).window===a?[iy(t.document.documentElement),"Window"]:[t,"Element"];var a;const s=null!=n?n:{};if(!ey(s))throw new TypeError(Xm(e,o));if(!Jm(s.behavior))throw new TypeError(Km(e,o,s.behavior));"scrollBy"===e&&(s.left=ly(s.left)+i.scrollLeft,s.top=ly(s.top)+i.scrollTop),cy(i,s,r)},fy=uy("scroll"),dy=uy("scrollTo"),hy=uy("scrollBy"),py=fy,gy=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},my=(e,t,n,r)=>{let i=0;switch(t||(i^=2),e){case 0:i=i>>1|(1&i)<<1,[n,r]=[r,n];break;case 1:case 3:i^=1;break;case 4:i^=2}return[i,n,r]},yy=e=>!(1&~my(gy(e.writingMode),"rtl"!==e.direction,void 0,void 0)[0]),vy=(e,t,n,r,i,o,a)=>0!==e?e:i<t&&o>n||i>t&&o<n?null:i<=t&&a<=r||o>=n&&a>=r?2:o>n&&a<r||i<t&&a>r?3:null,Ay=e=>"visible"!==e&&"clip"!==e,by=(e,t)=>(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth)&&(Ay(t.overflowY)||Ay(t.overflowX)||e===iy(e)),wy=e=>{const t=e.parentNode,n=e.parentElement;if(null===n&&null!==t){if(11===t.nodeType)return t.host;if(9===t.nodeType)return(e=>{var t;try{return(null===(t=e.ownerDocument.defaultView)||void 0===t?void 0:t.frameElement)||null}catch(e){return null}})(e)}return n},Iy=(e,t,n)=>e<t?t:e>n?n:e,xy=(e,t,n)=>{switch(e){case 1:return(t+n)/2;case 3:return n;case 2:case 0:return t}},Cy=(e,t)=>{var n,r,i;const o=null===(n=e.ownerDocument.defaultView)||void 0===n?void 0:n.visualViewport,[a,s,l,c]=e===iy(e)?[0,0,null!==(r=null==o?void 0:o.width)&&void 0!==r?r:e.clientWidth,null!==(i=null==o?void 0:o.height)&&void 0!==i?i:e.clientHeight]:[t.left,t.top,e.clientWidth,e.clientHeight],u=a+e.clientLeft,f=s+e.clientTop;return[f,u+l,f+c,u]},By=(e,t)=>{const n=[];let r=e.ownerDocument,i=r.defaultView;if(!i)return n;const o=window.getComputedStyle(e),a="rtl"!==o.direction,s=gy(o.writingMode||o.getPropertyValue("-webkit-writing-mode")||o.getPropertyValue("-ms-writing-mode")),[l,c]=((e,t,n)=>{const[r,i,o]=my(t,n,e.block||"start",e.inline||"nearest");return[i,o].map((e,t)=>{switch(e){case"center":return 1;case"nearest":return 0;default:return"start"===e==!(r>>t&1)?2:3}})})(t,s,a);let[u,f,d,h]=((e,t,n)=>{const{top:r,right:i,bottom:o,left:a}=t,s=(l=e.ownerDocument,["scroll-margin","scroll-snap-margin"].filter(e=>e in l.documentElement.style)[0]);var l;if(!s)return[r,i,o,a];const c=e=>{const t=n.getPropertyValue(`${s}-${e}`);return parseInt(t,10)||0};return[r-c("top"),i+c("right"),o+c("bottom"),a-c("left")]})(e,e.getBoundingClientRect(),o);for(let o=wy(e);null!==o;o=wy(o)){if(r!==o.ownerDocument){if(r=o.ownerDocument,i=r.defaultView,!i)break;const{left:e,top:t}=o.getBoundingClientRect();u+=t,f+=e,d+=t,h+=e}const e=i.getComputedStyle(o);if("fixed"===e.position)break;if(!by(o,e))continue;const a=o.getBoundingClientRect(),[s,p,g,m]=Cy(o,a),y=vy(l,m,p,o.clientWidth,h,f,f-h),v=vy(c,s,g,o.clientHeight,u,d,d-u),A=null===y?0:xy(y,h,f)-xy(y,m,p),b=null===v?0:xy(v,u,d)-xy(v,s,g),w=yy(e)?Iy(A,-o.scrollWidth+o.clientWidth-o.scrollLeft,-o.scrollLeft):Iy(A,-o.scrollLeft,o.scrollWidth-o.clientWidth-o.scrollLeft),I=Iy(b,-o.scrollTop,o.scrollHeight-o.clientHeight-o.scrollTop);n.push([o,{left:o.scrollLeft+w,top:o.scrollTop+I,behavior:t.behavior}]),u=Math.max(u-I,s),f=Math.min(f-w,p),d=Math.min(d-I,g),h=Math.max(h-w,m)}return n},Ey=(e,t,n)=>{const r=t||{};if(!Jm(r.behavior))throw new TypeError(Km("scrollIntoView","Element",r.behavior));By(e,r).forEach(([e,t])=>{py(e,t,n)})},Sy=(e,t)=>n=>{if(ty(n))return;const r={scroll:fy,scrollTo:dy,scrollBy:hy}[e];t(e,function(){const e=arguments;if(1===arguments.length)return void r(this,e[0],n);r(this,{left:e[0],top:e[1]})})},ky=Sy("scroll",ry),Fy=Sy("scrollTo",ry),Dy=Sy("scrollBy",ry),Ny=(e,t)=>{ny(t),Zm(window,e),window[e]=t},My=Sy("scroll",Ny),Ty=Sy("scrollTo",Ny),Qy=Sy("scrollBy",Ny);function Ly(e){Ey(this,{block:null==e||e?"start":"end",inline:"nearest"})}const Ry=e=>{if(ty(e))return;const t=Zm(window.HTMLElement.prototype,"scrollIntoView",Ly);ry("scrollIntoView",function(){const n=arguments,r=n[0];1===n.length&&ey(r)?Ey(this,r,e):t.apply(this,n)})},Uy=e=>{ty(e)||(ky(e),Fy(e),Dy(e),Ry(e),My(e),Ty(e),Qy(e))};var Hy={exports:{}};
15
+ var vs,As,bs=9e15,ws=1e9,Is="0123456789abcdef",xs="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Cs="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Bs={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-bs,maxE:bs,crypto:!1},Es=!0,Ss="[DecimalError] ",ks=Ss+"Invalid argument: ",Fs=Ss+"Precision limit exceeded",Ds=Ss+"crypto unavailable",Ns="[object Decimal]",Ms=Math.floor,Ts=Math.pow,Qs=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Ls=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Rs=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Us=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Hs=1e7,qs=xs.length-1,Os=Cs.length-1,Ps={toStringTag:Ns};function $s(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(n=7-(r=e[t]+"").length)&&(o+=Zs(n)),o+=r;(n=7-(r=(a=e[t])+"").length)&&(o+=Zs(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function zs(e,t,n){if(e!==~~e||e<t||e>n)throw Error(ks+e)}function js(e,t,n,r){var i,o,a,s;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),o=Ts(10,7-t),s=e[i]%o|0,null==r?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):a=(n<4&&s+1==o||n>3&&s+1==o/2)&&(e[i+1]/o/100|0)==Ts(10,t-2)-1||(s==o/2||0==s)&&!(e[i+1]/o/100|0):t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),a=(r||n<4)&&9999==s||!r&&n>3&&4999==s):a=((r||n<4)&&s+1==o||!r&&n>3&&s+1==o/2)&&(e[i+1]/o/1e3|0)==Ts(10,t-3)-1,a}function Vs(e,t,n){for(var r,i,o=[0],a=0,s=e.length;a<s;){for(i=o.length;i--;)o[i]*=t;for(o[0]+=Is.indexOf(e.charAt(a++)),r=0;r<o.length;r++)o[r]>n-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}Ps.absoluteValue=Ps.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),Ws(e)},Ps.ceil=function(){return Ws(new this.constructor(this),this.e+1,2)},Ps.clampedTo=Ps.clamp=function(e,t){var n=this,r=n.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(ks+t);return n.cmp(e)<0?e:n.cmp(t)>0?t:new r(n)},Ps.comparedTo=Ps.cmp=function(e){var t,n,r,i,o=this,a=o.d,s=(e=new o.constructor(e)).d,l=o.s,c=e.s;if(!a||!s)return l&&c?l!==c?l:a===s?0:!a^l<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?l:s[0]?-c:0;if(l!==c)return l;if(o.e!==e.e)return o.e>e.e^l<0?1:-1;for(t=0,n=(r=a.length)<(i=s.length)?r:i;t<n;++t)if(a[t]!==s[t])return a[t]>s[t]^l<0?1:-1;return r===i?0:r>i^l<0?1:-1},Ps.cosine=Ps.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r,i;if(t.isZero())return t;r=t.d.length,r<32?i=(1/cl(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10");e.precision+=n,t=ll(e,1,t.times(i),new e(1));for(var o=n;o--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=n,t}(r,ul(r,n)),r.precision=e,r.rounding=t,Ws(2==As||3==As?n.neg():n,e,t,!0)):new r(1):new r(NaN)},Ps.cubeRoot=Ps.cbrt=function(){var e,t,n,r,i,o,a,s,l,c,u=this,f=u.constructor;if(!u.isFinite()||u.isZero())return new f(u);for(Es=!1,(o=u.s*Ts(u.s*u,1/3))&&Math.abs(o)!=1/0?r=new f(o.toString()):(n=$s(u.d),(o=((e=u.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=Ts(n,1/3),e=Ms((e+1)/3)-(e%3==(e<0?-1:2)),(r=new f(n=o==1/0?"5e"+e:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=u.s),a=(e=f.precision)+3;;)if(c=(l=(s=r).times(s).times(s)).plus(u),r=Ys(c.plus(u).times(s),c.plus(l),a+2,1),$s(s.d).slice(0,a)===(n=$s(r.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(Ws(r,e+1,1),t=!r.times(r).times(r).eq(u));break}if(!i&&(Ws(s,e+1,0),s.times(s).times(s).eq(u))){r=s;break}a+=4,i=1}return Es=!0,Ws(r,e,f.rounding,t)},Ps.decimalPlaces=Ps.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=7*((e=t.length-1)-Ms(this.e/7)),e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},Ps.dividedBy=Ps.div=function(e){return Ys(this,new this.constructor(e))},Ps.dividedToIntegerBy=Ps.divToInt=function(e){var t=this.constructor;return Ws(Ys(this,new t(e),0,1,1),t.precision,t.rounding)},Ps.equals=Ps.eq=function(e){return 0===this.cmp(e)},Ps.floor=function(){return Ws(new this.constructor(this),this.e+1,3)},Ps.greaterThan=Ps.gt=function(e){return this.cmp(e)>0},Ps.greaterThanOrEqualTo=Ps.gte=function(e){var t=this.cmp(e);return 1==t||0===t},Ps.hyperbolicCosine=Ps.cosh=function(){var e,t,n,r,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;n=a.precision,r=a.rounding,a.precision=n+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?t=(1/cl(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=ll(a,1,o.times(t),new a(1),!0);for(var l,c=e,u=new a(8);c--;)l=o.times(o),o=s.minus(l.times(u.minus(l.times(u))));return Ws(o,a.precision=n,a.rounding=r,!0)},Ps.hyperbolicSine=Ps.sinh=function(){var e,t,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,n=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=ll(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,i=ll(o,2,i=i.times(1/cl(5,e)),i,!0);for(var a,s=new o(5),l=new o(16),c=new o(20);e--;)a=i.times(i),i=i.times(s.plus(a.times(l.times(a).plus(c))))}return o.precision=t,o.rounding=n,Ws(i,t,n,!0)},Ps.hyperbolicTangent=Ps.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,Ys(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)},Ps.inverseCosine=Ps.acos=function(){var e=this,t=e.constructor,n=e.abs().cmp(1),r=t.precision,i=t.rounding;return-1!==n?0===n?e.isNeg()?Xs(t,r,i):new t(0):new t(NaN):e.isZero()?Xs(t,r+4,i).times(.5):(t.precision=r+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=r,t.rounding=i,e.times(2))},Ps.inverseHyperbolicCosine=Ps.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,Es=!1,n=n.times(n).minus(1).sqrt().plus(n),Es=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},Ps.inverseHyperbolicSine=Ps.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,Es=!1,n=n.times(n).plus(1).sqrt().plus(n),Es=!0,r.precision=e,r.rounding=t,n.ln())},Ps.inverseHyperbolicTangent=Ps.atanh=function(){var e,t,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,r=i.sd(),Math.max(r,e)<2*-i.e-1?Ws(new o(i),e,t,!0):(o.precision=n=r-i.e,i=Ys(i.plus(1),new o(1).minus(i),n+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)},Ps.inverseSine=Ps.asin=function(){var e,t,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==t?0===t?((e=Xs(o,n+4,r).times(.5)).s=i.s,e):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2)))},Ps.inverseTangent=Ps.atan=function(){var e,t,n,r,i,o,a,s,l,c=this,u=c.constructor,f=u.precision,d=u.rounding;if(c.isFinite()){if(c.isZero())return new u(c);if(c.abs().eq(1)&&f+4<=Os)return(a=Xs(u,f+4,d).times(.25)).s=c.s,a}else{if(!c.s)return new u(NaN);if(f+4<=Os)return(a=Xs(u,f+4,d).times(.5)).s=c.s,a}for(u.precision=s=f+10,u.rounding=1,e=n=Math.min(28,s/7+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(Es=!1,t=Math.ceil(s/7),r=1,l=c.times(c),a=new u(c),i=c;-1!==e;)if(i=i.times(l),o=a.minus(i.div(r+=2)),i=i.times(l),void 0!==(a=o.plus(i.div(r+=2))).d[t])for(e=t;a.d[e]===o.d[e]&&e--;);return n&&(a=a.times(2<<n-1)),Es=!0,Ws(a,u.precision=f,u.rounding=d,!0)},Ps.isFinite=function(){return!!this.d},Ps.isInteger=Ps.isInt=function(){return!!this.d&&Ms(this.e/7)>this.d.length-2},Ps.isNaN=function(){return!this.s},Ps.isNegative=Ps.isNeg=function(){return this.s<0},Ps.isPositive=Ps.isPos=function(){return this.s>0},Ps.isZero=function(){return!!this.d&&0===this.d[0]},Ps.lessThan=Ps.lt=function(e){return this.cmp(e)<0},Ps.lessThanOrEqualTo=Ps.lte=function(e){return this.cmp(e)<1},Ps.logarithm=Ps.log=function(e){var t,n,r,i,o,a,s,l,c=this,u=c.constructor,f=u.precision,d=u.rounding;if(null==e)e=new u(10),t=!0;else{if(n=(e=new u(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(n=c.d,c.s<0||!n||!n[0]||c.eq(1))return new u(n&&!n[0]?-1/0:1!=c.s?NaN:n?0:1/0);if(t)if(n.length>1)o=!0;else{for(i=n[0];i%10==0;)i/=10;o=1!==i}if(Es=!1,a=il(c,s=f+5),r=t?_s(u,s+10):il(e,s),js((l=Ys(a,r,s,1)).d,i=f,d))do{if(a=il(c,s+=10),r=t?_s(u,s+10):il(e,s),l=Ys(a,r,s,1),!o){+$s(l.d).slice(i+1,i+15)+1==1e14&&(l=Ws(l,f+1,0));break}}while(js(l.d,i+=10,d));return Es=!0,Ws(l,f,d)},Ps.minus=Ps.sub=function(e){var t,n,r,i,o,a,s,l,c,u,f,d,h=this,p=h.constructor;if(e=new p(e),!h.d||!e.d)return h.s&&e.s?h.d?e.s=-e.s:e=new p(e.d||h.s!==e.s?h:NaN):e=new p(NaN),e;if(h.s!=e.s)return e.s=-e.s,h.plus(e);if(c=h.d,d=e.d,s=p.precision,l=p.rounding,!c[0]||!d[0]){if(d[0])e.s=-e.s;else{if(!c[0])return new p(3===l?-0:0);e=new p(h)}return Es?Ws(e,s,l):e}if(n=Ms(e.e/7),u=Ms(h.e/7),c=c.slice(),o=u-n){for((f=o<0)?(t=c,o=-o,a=d.length):(t=d,n=u,a=c.length),o>(r=Math.max(Math.ceil(s/7),a)+2)&&(o=r,t.length=1),t.reverse(),r=o;r--;)t.push(0);t.reverse()}else{for((f=(r=c.length)<(a=d.length))&&(a=r),r=0;r<a;r++)if(c[r]!=d[r]){f=c[r]<d[r];break}o=0}for(f&&(t=c,c=d,d=t,e.s=-e.s),a=c.length,r=d.length-a;r>0;--r)c[a++]=0;for(r=d.length;r>o;){if(c[--r]<d[r]){for(i=r;i&&0===c[--i];)c[i]=Hs-1;--c[i],c[r]+=Hs}c[r]-=d[r]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(e.d=c,e.e=Js(c,n),Es?Ws(e,s,l):e):new p(3===l?-0:0)},Ps.modulo=Ps.mod=function(e){var t,n=this,r=n.constructor;return e=new r(e),!n.d||!e.s||e.d&&!e.d[0]?new r(NaN):!e.d||n.d&&!n.d[0]?Ws(new r(n),r.precision,r.rounding):(Es=!1,9==r.modulo?(t=Ys(n,e.abs(),0,3,1)).s*=e.s:t=Ys(n,e,0,r.modulo,1),t=t.times(e),Es=!0,n.minus(t))},Ps.naturalExponential=Ps.exp=function(){return rl(this)},Ps.naturalLogarithm=Ps.ln=function(){return il(this)},Ps.negated=Ps.neg=function(){var e=new this.constructor(this);return e.s=-e.s,Ws(e)},Ps.plus=Ps.add=function(e){var t,n,r,i,o,a,s,l,c,u,f=this,d=f.constructor;if(e=new d(e),!f.d||!e.d)return f.s&&e.s?f.d||(e=new d(e.d||f.s===e.s?f:NaN)):e=new d(NaN),e;if(f.s!=e.s)return e.s=-e.s,f.minus(e);if(c=f.d,u=e.d,s=d.precision,l=d.rounding,!c[0]||!u[0])return u[0]||(e=new d(f)),Es?Ws(e,s,l):e;if(o=Ms(f.e/7),r=Ms(e.e/7),c=c.slice(),i=o-r){for(i<0?(n=c,i=-i,a=u.length):(n=u,r=o,a=c.length),i>(a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((a=c.length)-(i=u.length)<0&&(i=a,n=u,u=c,c=n),t=0;i;)t=(c[--i]=c[i]+u[i]+t)/Hs|0,c[i]%=Hs;for(t&&(c.unshift(t),++r),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=Js(c,r),Es?Ws(e,s,l):e},Ps.precision=Ps.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(ks+e);return n.d?(t=Ks(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},Ps.round=function(){var e=this,t=e.constructor;return Ws(new t(e),e.e+1,t.rounding)},Ps.sine=Ps.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:ll(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=t.times(1/cl(5,n)),t=ll(e,2,t,t);for(var i,o=new e(5),a=new e(16),s=new e(20);n--;)i=t.times(t),t=t.times(o.plus(i.times(a.times(i).minus(s))));return t}(r,ul(r,n)),r.precision=e,r.rounding=t,Ws(As>2?n.neg():n,e,t,!0)):new r(NaN)},Ps.squareRoot=Ps.sqrt=function(){var e,t,n,r,i,o,a=this,s=a.d,l=a.e,c=a.s,u=a.constructor;if(1!==c||!s||!s[0])return new u(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(Es=!1,0==(c=Math.sqrt(+a))||c==1/0?(((t=$s(s)).length+l)%2==0&&(t+="0"),c=Math.sqrt(t),l=Ms((l+1)/2)-(l<0||l%2),r=new u(t=c==1/0?"5e"+l:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+l)):r=new u(c.toString()),n=(l=u.precision)+3;;)if(r=(o=r).plus(Ys(a,o,n+2,1)).times(.5),$s(o.d).slice(0,n)===(t=$s(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(Ws(r,l+1,1),e=!r.times(r).eq(a));break}if(!i&&(Ws(o,l+1,0),o.times(o).eq(a))){r=o;break}n+=4,i=1}return Es=!0,Ws(r,l,u.rounding,e)},Ps.tangent=Ps.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=Ys(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,Ws(2==As||4==As?n.neg():n,e,t,!0)):new r(NaN)},Ps.times=Ps.mul=function(e){var t,n,r,i,o,a,s,l,c,u=this,f=u.constructor,d=u.d,h=(e=new f(e)).d;if(e.s*=u.s,!(d&&d[0]&&h&&h[0]))return new f(!e.s||d&&!d[0]&&!h||h&&!h[0]&&!d?NaN:d&&h?0*e.s:e.s/0);for(n=Ms(u.e/7)+Ms(e.e/7),(l=d.length)<(c=h.length)&&(o=d,d=h,h=o,a=l,l=c,c=a),o=[],r=a=l+c;r--;)o.push(0);for(r=c;--r>=0;){for(t=0,i=l+r;i>r;)s=o[i]+h[r]*d[i-r-1]+t,o[i--]=s%Hs|0,t=s/Hs|0;o[i]=(o[i]+t)%Hs|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=Js(o,n),Es?Ws(e,f.precision,f.rounding):e},Ps.toBinary=function(e,t){return fl(this,2,e,t)},Ps.toDecimalPlaces=Ps.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(zs(e,0,ws),void 0===t?t=r.rounding:zs(t,0,8),Ws(n,e+n.e+1,t))},Ps.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=Gs(r,!0):(zs(e,0,ws),void 0===t?t=i.rounding:zs(t,0,8),n=Gs(r=Ws(new i(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},Ps.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?n=Gs(i):(zs(e,0,ws),void 0===t?t=o.rounding:zs(t,0,8),n=Gs(r=Ws(new o(i),e+i.e+1,t),!1,e+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},Ps.toFraction=function(e){var t,n,r,i,o,a,s,l,c,u,f,d,h=this,p=h.d,g=h.constructor;if(!p)return new g(h);if(c=n=new g(1),r=l=new g(0),a=(o=(t=new g(r)).e=Ks(p)-h.e-1)%7,t.d[0]=Ts(10,a<0?7+a:a),null==e)e=o>0?t:c;else{if(!(s=new g(e)).isInt()||s.lt(c))throw Error(ks+s);e=s.gt(t)?o>0?t:c:s}for(Es=!1,s=new g($s(p)),u=g.precision,g.precision=o=7*p.length*2;f=Ys(s,t,0,1,1),1!=(i=n.plus(f.times(r))).cmp(e);)n=r,r=i,i=c,c=l.plus(f.times(i)),l=i,i=t,t=s.minus(f.times(i)),s=i;return i=Ys(e.minus(n),r,0,1,1),l=l.plus(i.times(c)),n=n.plus(i.times(r)),l.s=c.s=h.s,d=Ys(c,r,o,1).minus(h).abs().cmp(Ys(l,n,o,1).minus(h).abs())<1?[c,r]:[l,n],g.precision=u,Es=!0,d},Ps.toHexadecimal=Ps.toHex=function(e,t){return fl(this,16,e,t)},Ps.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:zs(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(Es=!1,n=Ys(n,e,0,t,1).times(e),Es=!0,Ws(n)):(e.s=n.s,n=e),n},Ps.toNumber=function(){return+this},Ps.toOctal=function(e,t){return fl(this,8,e,t)},Ps.toPower=Ps.pow=function(e){var t,n,r,i,o,a,s=this,l=s.constructor,c=+(e=new l(e));if(!(s.d&&e.d&&s.d[0]&&e.d[0]))return new l(Ts(+s,c));if((s=new l(s)).eq(1))return s;if(r=l.precision,o=l.rounding,e.eq(1))return Ws(s,r,o);if((t=Ms(e.e/7))>=e.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return i=el(l,s,n,r),e.s<0?new l(1).div(i):Ws(i,r,o);if((a=s.s)<0){if(t<e.d.length-1)return new l(NaN);if(1&e.d[t]||(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(t=0!=(n=Ts(+s,c))&&isFinite(n)?new l(n+"").e:Ms(c*(Math.log("0."+$s(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?a/0:0):(Es=!1,l.rounding=s.s=1,n=Math.min(12,(t+"").length),(i=rl(e.times(il(s,r+n)),r)).d&&js((i=Ws(i,r+5,1)).d,r,o)&&(t=r+10,+$s((i=Ws(rl(e.times(il(s,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=Ws(i,r+1,0))),i.s=a,Es=!0,l.rounding=o,Ws(i,r,o))},Ps.toPrecision=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=Gs(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(zs(e,1,ws),void 0===t?t=i.rounding:zs(t,0,8),n=Gs(r=Ws(new i(r),e,t),e<=r.e||r.e<=i.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},Ps.toSignificantDigits=Ps.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(zs(e,1,ws),void 0===t?t=n.rounding:zs(t,0,8)),Ws(new n(this),e,t)},Ps.toString=function(){var e=this,t=e.constructor,n=Gs(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},Ps.truncated=Ps.trunc=function(){return Ws(new this.constructor(this),this.e+1,1)},Ps.valueOf=Ps.toJSON=function(){var e=this,t=e.constructor,n=Gs(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var Ys=function(){function e(e,t,n){var r,i=0,o=e.length;for(e=e.slice();o--;)r=e[o]*t+i,e[o]=r%n|0,i=r/n|0;return i&&e.unshift(i),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,a,s,l){var c,u,f,d,h,p,g,m,y,v,A,b,w,I,x,C,B,E,S,k,F=r.constructor,D=r.s==i.s?1:-1,N=r.d,M=i.d;if(!(N&&N[0]&&M&&M[0]))return new F(r.s&&i.s&&(N?!M||N[0]!=M[0]:M)?N&&0==N[0]||!M?0*D:D/0:NaN);for(l?(h=1,u=r.e-i.e):(l=Hs,h=7,u=Ms(r.e/h)-Ms(i.e/h)),S=M.length,B=N.length,v=(y=new F(D)).d=[],f=0;M[f]==(N[f]||0);f++);if(M[f]>(N[f]||0)&&u--,null==o?(I=o=F.precision,a=F.rounding):I=s?o+(r.e-i.e)+1:o,I<0)v.push(1),p=!0;else{if(I=I/h+2|0,f=0,1==S){for(d=0,M=M[0],I++;(f<B||d)&&I--;f++)x=d*l+(N[f]||0),v[f]=x/M|0,d=x%M|0;p=d||f<B}else{for((d=l/(M[0]+1)|0)>1&&(M=e(M,d,l),N=e(N,d,l),S=M.length,B=N.length),C=S,b=(A=N.slice(0,S)).length;b<S;)A[b++]=0;(k=M.slice()).unshift(0),E=M[0],M[1]>=l/2&&++E;do{d=0,(c=t(M,A,S,b))<0?(w=A[0],S!=b&&(w=w*l+(A[1]||0)),(d=w/E|0)>1?(d>=l&&(d=l-1),1==(c=t(g=e(M,d,l),A,m=g.length,b=A.length))&&(d--,n(g,S<m?k:M,m,l))):(0==d&&(c=d=1),g=M.slice()),(m=g.length)<b&&g.unshift(0),n(A,g,b,l),-1==c&&(c=t(M,A,S,b=A.length))<1&&(d++,n(A,S<b?k:M,b,l)),b=A.length):0===c&&(d++,A=[0]),v[f++]=d,c&&A[0]?A[b++]=N[C]||0:(A=[N[C]],b=1)}while((C++<B||void 0!==A[0])&&I--);p=void 0!==A[0]}v[0]||v.shift()}if(1==h)y.e=u,vs=p;else{for(f=1,d=v[0];d>=10;d/=10)f++;y.e=f+u*h-1,Ws(y,s?o+y.e+1:o,a,p)}return y}}();function Ws(e,t,n,r){var i,o,a,s,l,c,u,f,d,h=e.constructor;e:if(null!=t){if(!(f=e.d))return e;for(i=1,s=f[0];s>=10;s/=10)i++;if((o=t-i)<0)o+=7,a=t,l=(u=f[d=0])/Ts(10,i-a-1)%10|0;else if((d=Math.ceil((o+1)/7))>=(s=f.length)){if(!r)break e;for(;s++<=d;)f.push(0);u=l=0,i=1,a=(o%=7)-7+1}else{for(u=s=f[d],i=1;s>=10;s/=10)i++;l=(a=(o%=7)-7+i)<0?0:u/Ts(10,i-a-1)%10|0}if(r=r||t<0||void 0!==f[d+1]||(a<0?u:u%Ts(10,i-a-1)),c=n<4?(l||r)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||r||6==n&&(o>0?a>0?u/Ts(10,i-a):0:f[d-1])%10&1||n==(e.s<0?8:7)),t<1||!f[0])return f.length=0,c?(t-=e.e+1,f[0]=Ts(10,(7-t%7)%7),e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=d,s=1,d--):(f.length=d+1,s=Ts(10,7-o),f[d]=a>0?(u/Ts(10,i-a)%Ts(10,a)|0)*s:0),c)for(;;){if(0==d){for(o=1,a=f[0];a>=10;a/=10)o++;for(a=f[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(e.e++,f[0]==Hs&&(f[0]=1));break}if(f[d]+=s,f[d]!=Hs)break;f[d--]=0,s=1}for(o=f.length;0===f[--o];)f.pop()}return Es&&(e.e>h.maxE?(e.d=null,e.e=NaN):e.e<h.minE&&(e.e=0,e.d=[0])),e}function Gs(e,t,n){if(!e.isFinite())return ol(e);var r,i=e.e,o=$s(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+Zs(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+Zs(-i-1)+o,n&&(r=n-a)>0&&(o+=Zs(r))):i>=a?(o+=Zs(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+Zs(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=Zs(r))),o}function Js(e,t){var n=e[0];for(t*=7;n>=10;n/=10)t++;return t}function _s(e,t,n){if(t>qs)throw Es=!0,n&&(e.precision=n),Error(Fs);return Ws(new e(xs),t,1,!0)}function Xs(e,t,n){if(t>Os)throw Error(Fs);return Ws(new e(Cs),t,n,!0)}function Ks(e){var t=e.length-1,n=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function Zs(e){for(var t="";e--;)t+="0";return t}function el(e,t,n,r){var i,o=new e(1),a=Math.ceil(r/7+4);for(Es=!1;;){if(n%2&&dl((o=o.times(t)).d,a)&&(i=!0),0===(n=Ms(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}dl((t=t.times(t)).d,a)}return Es=!0,o}function tl(e){return 1&e.d[e.d.length-1]}function nl(e,t,n){for(var r,i,o=new e(t[0]),a=0;++a<t.length;){if(!(i=new e(t[a])).s){o=i;break}((r=o.cmp(i))===n||0===r&&o.s===n)&&(o=i)}return o}function rl(e,t){var n,r,i,o,a,s,l,c=0,u=0,f=0,d=e.constructor,h=d.rounding,p=d.precision;if(!e.d||!e.d[0]||e.e>17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(Es=!1,l=p):l=t,s=new d(.03125);e.e>-2;)e=e.times(s),f+=5;for(l+=r=Math.log(Ts(2,f))/Math.LN10*2+5|0,n=o=a=new d(1),d.precision=l;;){if(o=Ws(o.times(e),l,1),n=n.times(++u),$s((s=a.plus(Ys(o,n,l,1))).d).slice(0,l)===$s(a.d).slice(0,l)){for(i=f;i--;)a=Ws(a.times(a),l,1);if(null!=t)return d.precision=p,a;if(!(c<3&&js(a.d,l-r,h,c)))return Ws(a,d.precision=p,h,Es=!0);d.precision=l+=10,n=o=s=new d(1),u=0,c++}a=s}}function il(e,t){var n,r,i,o,a,s,l,c,u,f,d,h=1,p=e,g=p.d,m=p.constructor,y=m.rounding,v=m.precision;if(p.s<0||!g||!g[0]||!p.e&&1==g[0]&&1==g.length)return new m(g&&!g[0]?-1/0:1!=p.s?NaN:g?0:p);if(null==t?(Es=!1,u=v):u=t,m.precision=u+=10,r=(n=$s(g)).charAt(0),!(Math.abs(o=p.e)<15e14))return c=_s(m,u+2,v).times(o+""),p=il(new m(r+"."+n.slice(1)),u-10).plus(c),m.precision=v,null==t?Ws(p,v,y,Es=!0):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=$s((p=p.times(e)).d)).charAt(0),h++;for(o=p.e,r>1?(p=new m("0."+n),o++):p=new m(r+"."+n.slice(1)),f=p,l=a=p=Ys(p.minus(1),p.plus(1),u,1),d=Ws(p.times(p),u,1),i=3;;){if(a=Ws(a.times(d),u,1),$s((c=l.plus(Ys(a,new m(i),u,1))).d).slice(0,u)===$s(l.d).slice(0,u)){if(l=l.times(2),0!==o&&(l=l.plus(_s(m,u+2,v).times(o+""))),l=Ys(l,new m(h),u,1),null!=t)return m.precision=v,l;if(!js(l.d,u-10,y,s))return Ws(l,m.precision=v,y,Es=!0);m.precision=u+=10,c=a=p=Ys(f.minus(1),f.plus(1),u,1),d=Ws(p.times(p),u,1),i=s=1}l=c,i+=2}}function ol(e){return String(e.s*e.s/0)}function al(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);r++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(r,i)){if(i-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=7;r<i;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=i;for(;r--;)t+="0";e.d.push(+t),Es&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function sl(e,t){var n,r,i,o,a,s,l,c,u;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),Us.test(t))return al(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Ls.test(t))n=16,t=t.toLowerCase();else if(Qs.test(t))n=2;else{if(!Rs.test(t))throw Error(ks+t);n=8}for((o=t.search(/p/i))>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),a=(o=t.indexOf("."))>=0,r=e.constructor,a&&(o=(s=(t=t.replace(".","")).length)-o,i=el(r,new r(n),o,2*o)),o=u=(c=Vs(t,n,Hs)).length-1;0===c[o];--o)c.pop();return o<0?new r(0*e.s):(e.e=Js(c,u),e.d=c,Es=!1,a&&(e=Ys(e,i,4*s)),l&&(e=e.times(Math.abs(l)<54?Ts(2,l):Zl.pow(2,l))),Es=!0,e)}function ll(e,t,n,r,i){var o,a,s,l,c=e.precision,u=Math.ceil(c/7);for(Es=!1,l=n.times(n),s=new e(r);;){if(a=Ys(s.times(l),new e(t++*t++),c,1),s=i?r.plus(a):r.minus(a),r=Ys(a.times(l),new e(t++*t++),c,1),void 0!==(a=s.plus(r)).d[u]){for(o=u;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=r,r=a,a=o}return Es=!0,a.d.length=u+1,a}function cl(e,t){for(var n=e;--t;)n*=e;return n}function ul(e,t){var n,r=t.s<0,i=Xs(e,e.precision,1),o=i.times(.5);if((t=t.abs()).lte(o))return As=r?4:1,t;if((n=t.divToInt(i)).isZero())As=r?3:2;else{if((t=t.minus(n.times(i))).lte(o))return As=tl(n)?r?2:3:r?4:1,t;As=tl(n)?r?1:4:r?3:2}return t.minus(i).abs()}function fl(e,t,n,r){var i,o,a,s,l,c,u,f,d,h=e.constructor,p=void 0!==n;if(p?(zs(n,1,ws),void 0===r?r=h.rounding:zs(r,0,8)):(n=h.precision,r=h.rounding),e.isFinite()){for(p?(i=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):i=t,(a=(u=Gs(e)).indexOf("."))>=0&&(u=u.replace(".",""),(d=new h(1)).e=u.length-a,d.d=Vs(Gs(d),10,i),d.e=d.d.length),o=l=(f=Vs(u,10,i)).length;0==f[--l];)f.pop();if(f[0]){if(a<0?o--:((e=new h(e)).d=f,e.e=o,f=(e=Ys(e,d,n,r,0,i)).d,o=e.e,c=vs),a=f[n],s=i/2,c=c||void 0!==f[n+1],c=r<4?(void 0!==a||c)&&(0===r||r===(e.s<0?3:2)):a>s||a===s&&(4===r||c||6===r&&1&f[n-1]||r===(e.s<0?8:7)),f.length=n,c)for(;++f[--n]>i-1;)f[n]=0,n||(++o,f.unshift(1));for(l=f.length;!f[l-1];--l);for(a=0,u="";a<l;a++)u+=Is.charAt(f[a]);if(p){if(l>1)if(16==t||8==t){for(a=16==t?4:3,--l;l%a;l++)u+="0";for(l=(f=Vs(u,i,t)).length;!f[l-1];--l);for(a=1,u="1.";a<l;a++)u+=Is.charAt(f[a])}else u=u.charAt(0)+"."+u.slice(1);u=u+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)u="0"+u;u="0."+u}else if(++o>l)for(o-=l;o--;)u+="0";else o<l&&(u=u.slice(0,o)+"."+u.slice(o))}else u=p?"0p+0":"0";u=(16==t?"0x":2==t?"0b":8==t?"0o":"")+u}else u=ol(e);return e.s<0?"-"+u:u}function dl(e,t){if(e.length>t)return e.length=t,!0}function hl(e){return new this(e).abs()}function pl(e){return new this(e).acos()}function gl(e){return new this(e).acosh()}function ml(e,t){return new this(e).plus(t)}function yl(e){return new this(e).asin()}function vl(e){return new this(e).asinh()}function Al(e){return new this(e).atan()}function bl(e){return new this(e).atanh()}function wl(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,o=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?Xs(this,r,i):new this(0)).s=e.s:!e.d||t.isZero()?(n=Xs(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,n=this.atan(Ys(e,t,o,1)),t=Xs(this,o,1),this.precision=r,this.rounding=i,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(Ys(e,t,o,1)):(n=Xs(this,o,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function Il(e){return new this(e).cbrt()}function xl(e){return Ws(e=new this(e),e.e+1,2)}function Cl(e,t,n){return new this(e).clamp(t,n)}function Bl(e){if(!e||"object"!=typeof e)throw Error(Ss+"Object expected");var t,n,r,i=!0===e.defaults,o=["precision",1,ws,"rounding",0,8,"toExpNeg",-bs,0,"toExpPos",0,bs,"maxE",0,bs,"minE",-bs,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(n=o[t],i&&(this[n]=Bs[n]),void 0!==(r=e[n])){if(!(Ms(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(ks+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=Bs[n]),void 0!==(r=e[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(ks+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(Ds);this[n]=!0}else this[n]=!1}return this}function El(e){return new this(e).cos()}function Sl(e){return new this(e).cosh()}function kl(e,t){return new this(e).div(t)}function Fl(e){return new this(e).exp()}function Dl(e){return Ws(e=new this(e),e.e+1,3)}function Nl(){var e,t,n=new this(0);for(Es=!1,e=0;e<arguments.length;)if((t=new this(arguments[e++])).d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return Es=!0,new this(1/0);n=t}return Es=!0,n.sqrt()}function Ml(e){return e instanceof Zl||e&&e.toStringTag===Ns||!1}function Tl(e){return new this(e).ln()}function Ql(e,t){return new this(e).log(t)}function Ll(e){return new this(e).log(2)}function Rl(e){return new this(e).log(10)}function Ul(){return nl(this,arguments,-1)}function Hl(){return nl(this,arguments,1)}function ql(e,t){return new this(e).mod(t)}function Ol(e,t){return new this(e).mul(t)}function Pl(e,t){return new this(e).pow(t)}function $l(e){var t,n,r,i,o=0,a=new this(1),s=[];if(void 0===e?e=this.precision:zs(e,1,ws),r=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));o<r;)(i=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(Ds);for(t=crypto.randomBytes(r*=4);o<r;)(i=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,o):(s.push(i%1e7),o+=4);o=r/4}else for(;o<r;)s[o++]=1e7*Math.random()|0;for(e%=7,(r=s[--o])&&e&&(i=Ts(10,7-e),s[o]=(r/i|0)*i);0===s[o];o--)s.pop();if(o<0)n=0,s=[0];else{for(n=-1;0===s[0];n-=7)s.shift();for(r=1,i=s[0];i>=10;i/=10)r++;r<7&&(n-=7-r)}return a.e=n,a.d=s,a}function zl(e){return Ws(e=new this(e),e.e+1,this.rounding)}function jl(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function Vl(e){return new this(e).sin()}function Yl(e){return new this(e).sinh()}function Wl(e){return new this(e).sqrt()}function Gl(e,t){return new this(e).sub(t)}function Jl(){var e=0,t=arguments,n=new this(t[e]);for(Es=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return Es=!0,Ws(n,this.precision,this.rounding)}function _l(e){return new this(e).tan()}function Xl(e){return new this(e).tanh()}function Kl(e){return Ws(e=new this(e),e.e+1,1)}Ps[Symbol.for("nodejs.util.inspect.custom")]=Ps.toString,Ps[Symbol.toStringTag]="Decimal";var Zl=Ps.constructor=function e(t){var n,r,i;function o(e){var t,n,r,i=this;if(!(i instanceof o))return new o(e);if(i.constructor=o,Ml(e))return i.s=e.s,void(Es?!e.d||e.e>o.maxE?(i.e=NaN,i.d=null):e.e<o.minE?(i.e=0,i.d=[0]):(i.e=e.e,i.d=e.d.slice()):(i.e=e.e,i.d=e.d?e.d.slice():e.d));if("number"===(r=typeof e)){if(0===e)return i.s=1/e<0?-1:1,i.e=0,void(i.d=[0]);if(e<0?(e=-e,i.s=-1):i.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;return void(Es?t>o.maxE?(i.e=NaN,i.d=null):t<o.minE?(i.e=0,i.d=[0]):(i.e=t,i.d=[e]):(i.e=t,i.d=[e]))}return 0*e!=0?(e||(i.s=NaN),i.e=NaN,void(i.d=null)):al(i,e.toString())}if("string"===r)return 45===(n=e.charCodeAt(0))?(e=e.slice(1),i.s=-1):(43===n&&(e=e.slice(1)),i.s=1),Us.test(e)?al(i,e):sl(i,e);if("bigint"===r)return e<0?(e=-e,i.s=-1):i.s=1,al(i,e.toString());throw Error(ks+e)}if(o.prototype=Ps,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=Bl,o.clone=e,o.isDecimal=Ml,o.abs=hl,o.acos=pl,o.acosh=gl,o.add=ml,o.asin=yl,o.asinh=vl,o.atan=Al,o.atanh=bl,o.atan2=wl,o.cbrt=Il,o.ceil=xl,o.clamp=Cl,o.cos=El,o.cosh=Sl,o.div=kl,o.exp=Fl,o.floor=Dl,o.hypot=Nl,o.ln=Tl,o.log=Ql,o.log10=Rl,o.log2=Ll,o.max=Ul,o.min=Hl,o.mod=ql,o.mul=Ol,o.pow=Pl,o.random=$l,o.round=zl,o.sign=jl,o.sin=Vl,o.sinh=Yl,o.sqrt=Wl,o.sub=Gl,o.sum=Jl,o.tan=_l,o.tanh=Xl,o.trunc=Kl,void 0===t&&(t={}),t&&!0!==t.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}(Bs);function ec(e,t=0){if(mo(t)||(t=0),t=Yi(t),!Me(e))return"";return new Zl(e).toDecimalPlaces(t,Zl.ROUND_CEIL).toNumber()}function tc(e,t=0){if(!Me(e))return"";if(!mo(t))return"";return e=xr(e),Vi(e,t).toFixed(t)}function nc(){return"undefined"!=typeof self?self:Ka()?window:"undefined"!=typeof global?global:null}function rc(e){let t=function(){let e=nc();return n||e.xss}();let r=function e(n){return Be(n)||Ee(n)?(An(n,function(t,r){n[r]=e(t)}),n):Fe(n)?t(n,{onIgnoreTagAttr:function(e,n,r,i){if("style"===n)return n+'="'+t.escapeAttrValue(r)+'"'}}):n}(Li(e));return r}function ic(e,t){let n=_a();if(!Be(e)&&!Ee(e))return n.reject("rs is not an array or object"),n;let r=!1;if(Ee(e)){r=!0;let t=[];An(e,(e,n)=>{t.push({k:n,v:e})}),e=t}Oi(t)||(t=function(e){return e});let i=-1,o=[];return e.reduce(function(e,n){return e.then(function(e){o.push(e),i+=1;let a=i,s=n;return r&&(a=n.k,s=n.v),Oi(t)?t(s,a):s})},Promise.resolve()).then(function(e){o.push(e),o=Qa(o),n.resolve(o)}).catch(function(e){n.reject(e)}),n}xs=new Zl(xs),Cs=new Zl(Cs);let oc={},ac={};function sc({tagName:e,path:t,attributes:n={},func:r}){let i=_a();if("done"===oc[t])return i.resolve("loaded"),i;if("loading"===oc[t])return ms(()=>"done"===oc[t]).then(function(){i.resolve("loaded")}),i;oc[t]="loading";let o=document.createElement(e);return An(n,(e,t)=>{o.setAttribute(t,e)}),n.rel&&"stylesheet"===n.rel?(o.setAttribute("href",t),setTimeout(()=>{i.resolve(o),oc[t]="done"},1)):(o.src=t,o.addEventListener("load",()=>{let e;Oi(r)?e=ms(r):(e=_a(),e.resolve()),e.then(()=>ps(500)).then(function(){i.resolve(o),oc[t]="done"})}),o.addEventListener("error",()=>{i.reject(o),oc[t]="done"})),document.getElementsByTagName("head")[0].appendChild(o),i}function lc(e){let t=_a();Be(e)||(e=[e]),An(e,(t,n)=>{ke(t)&&(e[n]={path:t})});let n=Ao(wn(e,"path"),"|");return"done"===ac[n]?(t.resolve("loaded"),t):"loading"===ac[n]?(ms(()=>"done"===ac[n]).then(function(){t.resolve("loaded")}),t):(ac[n]="loading",An(e,(e,t)=>{e.type||(".js"===ia(e.path,3)?e.type="js":".css"===ia(e.path,4)?e.type="css":e.type="unknow")}),ic(e,e=>{let t=_a();if("js"===e.type)t=sc({tagName:"script",path:e.path,attributes:{type:"text/javascript"},func:e.func});else if("css"===e.type)t=sc({tagName:"link",path:e.path,attributes:{rel:"stylesheet"}});else{let n="invalid pathItem.type: "+e.type;console.log(n),t.reject(n)}return t}).finally(()=>{ac[n]="done"}))}function cc(e){return me(e).toUpperCase()}function uc(e,t,n){if(!Fe(e))return"";if(!Fe(t))return"";if(!ke(n))return"";return String(e).replaceAll(t,n)}function fc(e,t,n=1){return Fe(e)&&mo(t)?(n=Wi(n)?Yi(n):1,e.substring(t,t+n)):""}let dc={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 hc(e){return gc(e,1)}function pc(e){return gc(e,360)}function gc(e,t=1){if(e.indexOf("%")>=0){if(!Me(e=uc(e,"%","")))throw new Error("invalid color: value is not a number");e=xr(e)/100}else{if(!Me(e))throw new Error("invalid color: value is not a number");e=xr(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 mc(e){if(!Me(e))throw new Error("invalid color: value is not a number");if((e=xr(e))>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function yc(e,t="rgba"){if(!Be(e))throw new Error("invalid colors array");let n=be(e,0,0),r=be(e,1,0),i=be(e,2,0),o=be(e,3,1);if(4!==ar(t=t.split("")))throw new Error("tar.length !== 4");let a=be(t,0),s=be(t,1),l=be(t,2),c=be(t,3);return{[a]:n,[s]:r,[l]:i,[c]:o}}function vc(e){let t=(e=oa(e,1)).length;if(2===t)e=`${e}${e}${e}ff`;else if(3===t){let t=fc(e,0,1),n=fc(e,1,1),r=fc(e,2,1);e=`${t}${t}${n}${n}${r}${r}ff`}else if(6===t)e=`${e}ff`;else if(8!==t)throw new Error("invalid hex color");function n(e){if(2!==e.length)throw new Error("hex.length of color is not equal to 2");if(!Me(e=parseInt(e,16)))throw new Error("invalid hex of color");return(e=xr(e))/255}return{r:n(fc(e,0,2)),g:n(fc(e,2,2)),b:n(fc(e,4,2)),a:n(fc(e,6,2))}}function Ac(e){return e=yc(e=wn(e,(e,t)=>t<=2?gc(e,255):3===t?mc(e):null),"rgba")}function bc(e){return e=kc(e=yc(e=wn(e,(e,t)=>0===t?pc(e):1===t||2===t?hc(e):3===t?mc(e):null),"hsla"))}function wc(e){return e=Fc(e=yc(e=wn(e,(e,t)=>0===t?pc(e):1===t||2===t?hc(e):3===t?mc(e):null),"hsva"))}function Ic(e){if("transparent"===e)return{r:0,g:0,b:0,a:0};if(function(e){return Te(dc,e)}(e))return vc(e=function(e){return`#${dc[e]}`}(e));if(function(e){return"#"===ra(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 vc(e);if(function(e){return"rgb"===ra(e,3)||"rgba"===ra(e,4)}(e))return function(e){return e=uc(e,"rgba",""),e=uc(e,"rgb",""),Ac(na(e=uc(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsl"===ra(e,3)||"hsla"===ra(e,4)}(e))return function(e){return e=uc(e,"hsla",""),e=uc(e,"hsl",""),bc(na(e=uc(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsv"===ra(e,3)||"hsva"===ra(e,4)}(e))return function(e){return e=uc(e,"hsva",""),e=uc(e,"hsv",""),wc(na(e=uc(e=e.replace(/[()]/g,""),","," ")," "))}(e);throw new Error("format of color string is not hex-color, name-color, rgba, hsla, hsva")}function xc(e,t){return!!Te(e,t=ys(t))||!!Te(e,t=cc(t))}function Cc(e,t,n){let r;return r=be(e,t,null),null!==r?r:(r=be(e,t=cc(t),null),null!==r?r:n)}function Bc(e){if(function(e){let t=xc(e,"r"),n=xc(e,"g"),r=xc(e,"b");return t&&n&&r}(e))return function(e){let t=[Cc(e,"r",null),Cc(e,"g",null),Cc(e,"b",null),Cc(e,"a",1)];return t=wn(t,Ta),Ac(t)}(e);if(function(e){let t=xc(e,"h"),n=xc(e,"s"),r=xc(e,"l");return t&&n&&r}(e))return function(e){let t=[Cc(e,"h",null),Cc(e,"s",null),Cc(e,"l",null),Cc(e,"a",1)];return t=wn(t,Ta),bc(t)}(e);if(function(e){let t=xc(e,"h"),n=xc(e,"s"),r=xc(e,"v");return t&&n&&r}(e))return function(e){let t=[Cc(e,"h",null),Cc(e,"s",null),Cc(e,"v",null),Cc(e,"a",1)];return t=wn(t,Ta),wc(t)}(e);throw new Error("color object is not one of rgba, hsla, hsva")}function Ec(e){let t,n,r=e.r,i=e.g,o=e.b,a=Math.max(r,i,o),s=Math.min(r,i,o),l=(a+s)/2;if(a===s)t=n=0;else{let e=a-s;switch(n=l>.5?e/(2-a-s):e/(a+s),a){case r:t=(i-o)/e+(i<o?6:0);break;case i:t=(o-r)/e+2;break;case o:t=(r-i)/e+4}t/=6}return{h:t,s:n,l:l,a:e.a}}function Sc(e){let t,n,r=e.r,i=e.g,o=e.b,a=Math.max(r,i,o),s=Math.min(r,i,o),l=a,c=a-s;if(n=0===a?0:c/a,a===s)t=0;else{switch(a){case r:t=(i-o)/c+(i<o?6:0);break;case i:t=(o-r)/c+2;break;case o:t=(r-i)/c+4}t/=6}return{h:t,s:n,v:l,a:e.a}}function kc(e){let t,n,r,i=e.h,o=e.s,a=e.l;function s(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0===o)t=n=r=a;else{let e=a<.5?a*(1+o):a+o-a*o,l=2*a-e;t=s(l,e,i+1/3),n=s(l,e,i),r=s(l,e,i-1/3)}return{r:t,g:n,b:r,a:e.a}}function Fc(e){let t,n,r,i=e.h,o=e.s,a=e.v,s=Math.floor(6*i),l=6*i-s,c=a*(1-o),u=a*(1-l*o),f=a*(1-(1-l)*o);switch(s%6){case 0:t=a,n=f,r=c;break;case 1:t=u,n=a,r=c;break;case 2:t=c,n=a,r=f;break;case 3:t=c,n=u,r=a;break;case 4:t=f,n=c,r=a;break;case 5:t=a,n=c,r=u}return{r:t,g:n,b:r,a:e.a}}function Dc(e){let t=Math.round(255*e).toString(16);if(1===t.length)return`0${t}`;if(2===t.length)return t;throw new Error("invalid value")}function Nc(e,t=!0){let n=e.r,r=e.g,i=e.b,o=e.a,a=`${Dc(n)}${Dc(r)}${Dc(i)}`;return t&&(a=`${a}${Dc(o)}`),a}function Mc(e){return Math.min(1,Math.max(0,e))}function Tc(e,t){if(!Fe(t))throw new Error("fmtOutput is not a string");if(!hu[t])throw console.log(`fmtOutput must be [${pt(hu)}]`),new Error("invalid fmtOutput");return e=hu[t](e)}function Qc(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let r=Ec(e);return r.h+=t,r.h=r.h%1,Tc(kc(r),n)}function Lc(e,t,n,r,i="toRgbString"){if(t<0||t>1)throw new Error("w1 < 0 or > 1");if(r<0||r>1)throw new Error("w1 < 0 or > 1");return Tc({r:e.r*t+n.r*r,g:e.g*t+n.g*r,b:e.b*t+n.b*r,a:e.a*t+n.a*r},i)}function Rc(e){return`${Vi(100*e,1)}%`}function Uc(e){return Vi(e,0)}function Hc(e){return Vi(e,3)}function qc(e){return{r:Uc(255*e.r),g:Uc(255*e.g),b:Uc(255*e.b)}}function Oc(e){return`rgb(${Uc(255*e.r)}, ${Uc(255*e.g)}, ${Uc(255*e.b)})`}function Pc(e){return{r:Uc(255*e.r),g:Uc(255*e.g),b:Uc(255*e.b),a:Hc(e.a)}}function $c(e){return`rgba(${Uc(255*e.r)}, ${Uc(255*e.g)}, ${Uc(255*e.b)}, ${Hc(e.a)})`}function zc(e){let t=Ec(e);return{h:Uc(360*t.h),s:Hc(t.s),l:Hc(t.l)}}function jc(e){let t=Ec(e);return`hsl(${Uc(360*t.h)}, ${Hc(t.s)}, ${Hc(t.l)})`}function Vc(e){let t=Ec(e);return{h:Uc(360*t.h),s:Hc(t.s),l:Hc(t.l),a:Hc(t.a)}}function Yc(e){let t=Ec(e);return`hsla(${Uc(360*t.h)}, ${Hc(t.s)}, ${Hc(t.l)}, ${Hc(t.a)})`}function Wc(e){let t=Sc(e);return{h:Uc(360*t.h),s:Hc(t.s),v:Hc(t.v)}}function Gc(e){let t=Sc(e);return`hsv(${Uc(360*t.h)}, ${Hc(t.s)}, ${Hc(t.v)})`}function Jc(e){let t=Sc(e);return{h:Uc(360*t.h),s:Hc(t.s),v:Hc(t.v),a:Hc(t.a)}}function _c(e){let t=Sc(e);return`hsva(${Uc(360*t.h)}, ${Hc(t.s)}, ${Hc(t.v)}, ${Hc(t.a)})`}function Xc(e){return{r:Rc(e.r),g:Rc(e.g),b:Rc(e.b)}}function Kc(e){return`rgb(${Rc(e.r)}, ${Rc(e.g)}, ${Rc(e.b)})`}function Zc(e){return{r:Rc(e.r),g:Rc(e.g),b:Rc(e.b),a:Hc(e.a)}}function eu(e){return`rgba(${Rc(e.r)}, ${Rc(e.g)}, ${Rc(e.b)}, ${Hc(e.a)})`}function tu(e){let t=Ec(e);return{h:Uc(360*t.h),s:Rc(t.s),l:Rc(t.l)}}function nu(e){let t=Ec(e);return`hsl(${Uc(360*t.h)}, ${Rc(t.s)}, ${Rc(t.l)})`}function ru(e){let t=Ec(e);return{h:Uc(360*t.h),s:Rc(t.s),l:Rc(t.l),a:Hc(t.a)}}function iu(e){let t=Ec(e);return`hsla(${Uc(360*t.h)}, ${Rc(t.s)}, ${Rc(t.l)}, ${Hc(t.a)})`}function ou(e){let t=Sc(e);return{h:Uc(360*t.h),s:Rc(t.s),v:Rc(t.v)}}function au(e){let t=Sc(e);return`hsv(${Uc(360*t.h)}, ${Rc(t.s)}, ${Rc(t.v)})`}function su(e){let t=Sc(e);return{h:Uc(360*t.h),s:Rc(t.s),v:Rc(t.v),a:Hc(t.a)}}function lu(e){let t=Sc(e);return`hsva(${Uc(360*t.h)}, ${Rc(t.s)}, ${Rc(t.v)}, ${Hc(t.a)})`}function cu(e){let t=function(e){return Nc(e,!1)}(e);return`#${t}`}function uu(e){return`#${Nc(e)}`}function fu(e){let t=null,n=null,r=null;if(Fe(e))t=ys(ea(e));else{if(!Se(e))throw console.log("color=",e),new Error("color is not a string or an object");n=e}if(null!==t)try{r=Ic(t)}catch(e){throw console.log(e),new Error(`can not parse color: ${t}`)}else if(null!==n)try{r=Bc(n)}catch(e){throw console.log(e),new Error(`can not parse color: ${JSON.stringify(n)}`)}return r}function du(e){if(!Se(e))return console.log("gradient is not an effective object"),e=>`rgb(${255*(e=Math.min(Math.max(e,0),1))},${255*e},${255*e})`;let t=[];return An(e,(e,n)=>{t.push([xr(n),Pc(fu(e)),e])}),t=Na(t,0),function(e){let n=null;for(let r=1;r<t.length;r++){let i=t[r-1][0],o=t[r-1][1],a=t[r][0],s=t[r][1];if(i<=e&&a>=e){let t=(a-e)/(a-i),r=(e-i)/(a-i);n=Lc(fu(o),t,fu(s),r,"toRgbaString");break}}return n}}let hu={toRgb:qc,toRgbString:Oc,toRgba:Pc,toRgbaString:$c,toHsl:zc,toHslString:jc,toHsla:Vc,toHslaString:Yc,toHsv:Wc,toHsvString:Gc,toHsva:Jc,toHsvaString:_c,toRgbP:Xc,toRgbPString:Kc,toRgbaP:Zc,toRgbaPString:eu,toHslP:tu,toHslPString:nu,toHslaP:ru,toHslaPString:iu,toHsvP:ou,toHsvPString:au,toHsvaP:su,toHsvaPString:lu,toHexString:cu,toHex8String:uu};var pu=function(){let e={toRgb:e=>qc(fu(e)),toRgbString:e=>Oc(fu(e)),toRgba:e=>Pc(fu(e)),toRgbaString:e=>$c(fu(e)),toHsl:e=>zc(fu(e)),toHslString:e=>jc(fu(e)),toHsla:e=>Vc(fu(e)),toHslaString:e=>Yc(fu(e)),toHsv:e=>Wc(fu(e)),toHsvString:e=>Gc(fu(e)),toHsva:e=>Jc(fu(e)),toHsvaString:e=>_c(fu(e)),toRgbP:e=>Xc(fu(e)),toRgbPString:e=>Kc(fu(e)),toRgbaP:e=>Zc(fu(e)),toRgbaPString:e=>eu(fu(e)),toHslP:e=>tu(fu(e)),toHslPString:e=>nu(fu(e)),toHslaP:e=>ru(fu(e)),toHslaPString:e=>iu(fu(e)),toHsvP:e=>ou(fu(e)),toHsvPString:e=>au(fu(e)),toHsvaP:e=>su(fu(e)),toHsvaPString:e=>lu(fu(e)),toHexString:e=>cu(fu(e)),toHex8String:e=>uu(fu(e)),modSaturate:(e,t,n)=>function(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let r=Ec(e);return r.s+=t,r.s=Mc(r.s),Tc(kc(r),n)}(fu(e),t,n),modGrey:(e,t)=>function(e,t="toRgbString"){let n=Ec(e);return n.s=0,Tc(kc(n),t)}(fu(e),t),modLighten:(e,t,n)=>function(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let r=Ec(e);return r.l+=t,r.l=Mc(r.l),Tc(kc(r),n)}(fu(e),t,n),modBrighten:(e,t,n)=>function(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");return e.r+=t,e.r=Mc(e.r),e.g+=t,e.g=Mc(e.g),e.b+=t,e.b=Mc(e.b),Tc(e,n)}(fu(e),t,n),modHue:(e,t,n)=>Qc(fu(e),t,n),modComplement:(e,t)=>function(e,t="toRgbString"){return Qc(e,.5,t)}(fu(e),t),spreadHue:(e,t,n)=>function(e,t,n="toRgbString"){if(!Cr(t))throw new Error("num is not an integer");if((t=Yi(t))<=1)return[e];let r=Ec(e),i=1/t,o=[];for(let e=0;e<t;e++)o.push(Tc(kc(r),n)),r.h+=i,r.h=r.h%1;return o}(fu(e),t,n),spreadMonochromatic:(e,t,n)=>function(e,t,n="toRgbString"){if(!Cr(t))throw new Error("num is not an integer");if((t=Yi(t))<=1)return[e];let r=Sc(e);r.s=1,r.l=1;let i=1/t,o=[];for(let e=0;e<t;e++)o.push(Tc(Fc(r),n)),r.h-=i,r.l-=i;return o}(fu(e),t,n),mix:(e,t,n,r,i)=>Lc(fu(e),t,fu(n),r,i),getBrightness:e=>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}(fu(e)),getLuminance:e=>function(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");let t,n,r,i=e.r,o=e.g,a=e.b;return t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),n=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),r=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),.2126*t+.7152*n+.0722*r}(fu(e)),interp:du};return e}();function gu(e,t,n){return null==e?e:function(e,t,n,r){if(!L(e))return e;for(var i=-1,o=(t=ye(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=ve(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=L(u)?u:Je(t[i+1])?[]:{})}ri(s,l,c),s=s[l]}return e}(e,t,n)}var mu=Function.prototype,yu=Object.prototype,vu=mu.toString,Au=yu.hasOwnProperty,bu=vu.call(Object);function wu(e){if(!D(e)||"[object Object]"!=F(e))return!1;var t=hi(e);if(null===t)return!0;var n=Au.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&vu.call(n)==bu}function Iu(e){return wu(e)?void 0:e}var xu=po(function(e,t){var n={};if(null==e)return n;var r=!1;t=de(t,function(t){return t=ye(t,e),r||(r=t.length>1),t}),ii(e,gi(e),n),r&&(n=Qi(n,7,Iu));for(var i=t.length;i--;)xa(n,t[i]);return n}),Cu=xu;function Bu(e,t={}){let n="$level",r="$parents";if(!Tn(e))return[];let i=be(t,"bindKey",null);Fe(i)||(i="id");let o=be(t,"bindParent",null);Fe(o)||(o="parentId");let a=be(t,"bindChildren",null);Fe(a)||(a="children");let s=be(t,"saveExtProps",null);Ie(s)||(s=!1),e=function(e){let t=[];function a(a){let s=[];An(e,(e,l)=>{let c=be(e,o),u=be(a,i);if(c&&u&&c===u){let o=be(a,r,[]);o=Li(o),o.push(a[i]),t.push({[n]:a[n]+1,[r]:o,...e})}else s.push(e)}),e=s}if(e=Li(e),function(){let i=[];An(e,(e,a)=>{Mn(e[o])?t.push({[n]:0,[r]:[],...e}):i.push(e)}),e=i}(),0===t.length)return t;let s=-1;for(;s+=1,!(s>t.length-1);){if(a(t[s]),0===e.length)break}return t}(e);let l=function(e){let t=[];function l(e){return s?e:Cu(e,[n,r])}let c={};return An(e,(r,s)=>{if(0===r[n]){let e=l(r);t.push(e),c[r[i]]=[s]}else{let n=function(t){for(let n=0;n<e.length;n++){let r=e[n];if(t[o]===r[i])return r}return null}(r);if(null!==n){let e=c[n[i]];e=[...e,a];let o=be(t,e,[]),s=l(r);o.push(s),c[r[i]]=[...e,o.length-1],gu(t,e,o)}else console.log(`can not find parent for ${be(r,o)}`)}}),t}(e);return l}function Eu(e,t=null,n={}){R(t)||(t=e=>e);let r=be(n,"force",!1);return Ie(r)||(r=!1),function(e,t,n=!1){let r=[];if(!Be(e)&&!Ee(e))return t(e,null,[]);function i(e){if(Be(e))return Zi(ar(e));if(Ee(e)){let t=Object.getOwnPropertyNames(e),r=null;return n&&(r=Object.getOwnPropertySymbols(e)),Be(t)||(t=[]),Be(r)||(r=[]),[...t,...r]}return e}return function e(n,o){if(Be(n))return i(n).map(i=>{let o=n[i],a=Li(r);return r.push(i),o=t(o,i,a),o=e(o),r.pop(),o});if(Ee(n)){let o=i(n),a={};return o.map(i=>{let o=n[i],s=Li(r);r.push(i),o=t(o,i,s),o=e(o),r.pop(),a[i]=o}),a}return n}(e)}(e,t,r)}function Su(e,t={}){if(!Se(e)&&!Tn(e))return[];let n=be(t,"bindKey",null);Fe(n)||(n="id");let r=be(t,"bindParent",null);Fe(r)||(r="parentId");let i=be(t,"bindBelong",null);Fe(i)||(i="key");let o=be(t,"bindText",null);Fe(o)||(o="text");let a=be(t,"bindType",null);Fe(a)||(a="type");let s=be(t,"bindNumOfChilren",null);function l(e,t){return e=wn(e=Li(e),e=>N(e)?Ta(e):e),N(t)&&(t=Ta(t)),(Fe(t)||Me(t))&&e.push(t),Ao(e,"-")}Fe(s)||(s="numOfChilren");let c=[];return Eu(e,(e,t,u)=>{let f=l(u,t),d=l(u,null),h="node";Ee(e)?h="object":Be(e)&&(h="array");let p={[n]:f,[r]:d,[a]:h};if((Fe(t)||fa(t))&&(p[i]=t),Ee(e)||Be(e)||(p[o]=e),Ee(e)||Be(e)){let t=null;Ee(e)?t=ar(pt(e)):Be(e)&&(t=ar(e)),p[s]=t}return c.push(p),e},{force:!0}),c}function ku(e){return D(t=e)&&1===t.nodeType&&!wu(t);var t}function Fu(e){if(!ku(e))return"invalid element";let t=!1;try{t=document.activeElement===e}catch(e){console.log(e)}return t}function Du(e){return Me(e)?(e=xr(e),Math.cos(e*Math.PI/180)):null}function Nu(e){return Me(e)?(e=xr(e),Math.tan(e*Math.PI/180)):null}function Mu(){return{sheets:[]}}function Tu(e){return Me(e)?(e=xr(e),Math.sin(e*Math.PI/180)):null}function Qu(e){if(!Fe(e))return!1;let n="YYYY-MM-DD";return e===t(e,n).format(n)}function Lu(e=300){return new function(e){let t=[],n=null,r=Date.now();return Wi(e)||(e=300),e=Yi(e),function(i,...o){Oi(i)?(r=Date.now(),t.push({func:i,input:o}),null===n&&(n=setInterval(()=>{if(0===ar(t))return clearInterval(n),void(n=null);if(Date.now()-r>e){let e=t.pop();t=[];try{e.func(...e.input)}catch(e){console.log("m.func catch",e)}}},10))):console.log("func is not a function")}}(e)}let Ru="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),Uu=Ru.length;function Hu(e=32){let t=[];e=Wi(e)?Yi(e):32;for(let n=0;n<e;n++)t[n]=Ru[0|Math.random()*Uu];return t.join("")}function qu(e,t={}){if(!ku(e))return;let n=be(t,"duration",500);n=xr(n),n<0&&(n=1e3);let r=be(t,"delay",0);r=xr(r),r<0&&(r=0);let i=be(t,"opacityIni",0);i=xr(i),i=Math.min(Math.max(i,0),1),Me(e.style.opacity)&&(i=xr(e.style.opacity));let o=10/n,a=`tag-${Hu()}`;e.setAttribute("dom-fade-tag",a),setTimeout(()=>{let t=setInterval(()=>{try{e.getAttribute("dom-fade-tag")!==a&&clearInterval(t),e.style.opacity=i,i>=1&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),i+=o,i>1&&(i=1)}catch(e){console.log(e),clearInterval(t)}},10)},r)}function Ou(e,t={}){if(!ku(e))return;let n=be(t,"duration",500);n=xr(n),n<0&&(n=1e3);let r=be(t,"delay",0);r=xr(r),r<0&&(r=0);let i=be(t,"opacityIni",1);i=xr(i),i=Math.min(Math.max(i,0),1),Me(e.style.opacity)&&(i=xr(e.style.opacity));let o=10/n,a=`tag-${Hu()}`;e.setAttribute("dom-fade-tag",a),setTimeout(()=>{let t=setInterval(()=>{try{e.getAttribute("dom-fade-tag")!==a&&clearInterval(t),e.style.opacity=i,i<=0&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),i-=o,i<0&&(i=0)}catch(e){console.log(e),clearInterval(t)}},10)},r)}let Pu='<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>',$u={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:Pu},zu={},ju=null,Vu=nc();function Yu(){An(["top-right","top-left","bottom-right","bottom-left"],e=>{!function(e){let t=sa(zu,{position:e});t=Na(t,"timeStart");let n=16;An(t,e=>{zu[e.id].ele||(zu[e.id].ele=document.querySelector(`#${e.id}`)),zu[e.id].loc.top=n,zu[e.id].loc.height=zu[e.id].ele.offsetHeight,n+=zu[e.id].loc.height+16}),An(t,t=>{e.indexOf("bottom-")>=0?(zu[t.id].ele.style.bottom=`${zu[t.id].loc.top}px`,zu[t.id].loc.bottom=zu[t.id].loc.top):zu[t.id].ele.style.top=`${zu[t.id].loc.top}px`,e.indexOf("-left")>=0?(zu[t.id].ele.style.left="16px",zu[t.id].loc.left=16):(zu[t.id].ele.style.right="16px",zu[t.id].loc.right=16),zu[t.id].ele.style.zIndex=2e5,zu[t.id].ele.style.opacity=1,zu[t.id].ele.style.transform="",zu[t.id].ele.style.transform=null})}(e)})}function Wu(e){zu[e].ele&&zu[e].ele.parentNode.removeChild(zu[e].ele),zu[e]&&delete zu[e],Yu()}function Gu(e,t){if(!ku(e))return"invalid eleParent";if(ke(t))e.insertAdjacentHTML("beforeend",t);else{if(!ku(t))return"invalid itemChild";e.appendChild(t)}}function Ju(){return null!==navigator.userAgent.toLowerCase().match(/rv:([\d.]+)\) like gecko/)}function _u(e){if(!e)return"invalid event";if(!e.cancelable)return"event is not cancelable";try{Ju()?e.cancelBubble=!0:e.stopPropagation(),e.preventDefault()}catch(e){}}var Xu;Vu.ttWAlertCancel=function(e){Wu(e)},Vu.ttWAlertFadeIn=function(e){qu(document.querySelector(`#${e}`))},Vu.ttWAlertFadeOut=function(e){Ou(document.querySelector(`#${e}`))},function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(Xu||(Xu={}));var Ku;!function(e){e.AUTO="auto",e.DARK="dark",e.LIGHT="light"}(Ku||(Ku={}));const Zu=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");function ef(e){return e?e.replace(/\\/g,"/"):e}function tf(e){const t=e.length;let n=-1/0;for(let r=0;r<t;r++)n=Math.max(n,e[r]);return n}function nf(e,t){const n=e.split(".");return n.length>1?n[n.length-1]:t}function rf(e,t){return t.reduce((t,n)=>t||e.startsWith(n),!1)}const of=["a/","b/","i/","w/","c/","o/"];function af(e,t,n){const r=void 0!==n?[...of,n]:of,i=t?new RegExp(`^${o=t,o.replace(Zu,"\\$&")} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$');var o;const[,a=""]=i.exec(e)||[],s=r.find(e=>0===a.indexOf(e));return(s?a.slice(s.length):a).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function sf(e,t={}){const n=[];let r=null,i=null,o=null,a=null,s=null,l=null,c=null;const u="--- ",f="+++ ",d="@@",h=/^old mode (\d{6})/,p=/^new mode (\d{6})/,g=/^deleted file mode (\d{6})/,m=/^new file mode (\d{6})/,y=/^copy from "?(.+)"?/,v=/^copy to "?(.+)"?/,A=/^rename from "?(.+)"?/,b=/^rename to "?(.+)"?/,w=/^similarity index (\d+)%/,I=/^dissimilarity index (\d+)%/,x=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,C=/^Binary files (.*) and (.*) differ/,B=/^GIT binary patch/,E=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,S=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,k=/^new file mode (\d{6})/,F=/^deleted file mode (\d{6}),(\d{6})/,D=e.replace(/\/g,"").replace(/\r\n?/g,"\n").split("\n");function N(){null!==i&&null!==r&&(r.blocks.push(i),i=null)}function M(){null!==r&&(r.oldName||null===l||(r.oldName=l),r.newName||null===c||(r.newName=c),r.newName&&(n.push(r),r=null)),l=null,c=null}function T(){N(),M(),r={blocks:[],deletedLines:0,addedLines:0}}function Q(e){let t;N(),null!==r&&((t=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(r.isCombined=!1,o=parseInt(t[1],10),s=parseInt(t[2],10)):(t=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(r.isCombined=!0,o=parseInt(t[1],10),a=parseInt(t[2],10),s=parseInt(t[3],10)):(e.startsWith(d)&&console.error("Failed to parse lines, starting in 0!"),o=0,s=0,r.isCombined=!1)),i={lines:[],oldStartLine:o,oldStartLine2:a,newStartLine:s,header:e}}return D.forEach((e,a)=>{if(!e||e.startsWith("*"))return;let N;const M=D[a-1],L=D[a+1],R=D[a+2];if(e.startsWith("diff --git")||e.startsWith("diff --combined")){T();if((N=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(e))&&(l=af(N[1],void 0,t.dstPrefix),c=af(N[2],void 0,t.srcPrefix)),null===r)throw new Error("Where is my file !!!");return void(r.isGitDiff=!0)}if(e.startsWith("Binary files")&&!(null==r?void 0:r.isGitDiff)){T();if((N=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(e))&&(l=af(N[1],void 0,t.dstPrefix),c=af(N[2],void 0,t.srcPrefix)),null===r)throw new Error("Where is my file !!!");return void(r.isBinary=!0)}if((!r||!r.isGitDiff&&r&&e.startsWith(u)&&L.startsWith(f)&&R.startsWith(d))&&T(),null==r?void 0:r.isTooBig)return;if(r&&("number"==typeof t.diffMaxChanges&&r.addedLines+r.deletedLines>t.diffMaxChanges||"number"==typeof t.diffMaxLineLength&&e.length>t.diffMaxLineLength)){r.isTooBig=!0,r.addedLines=0,r.deletedLines=0,r.blocks=[],i=null;return void Q("function"==typeof t.diffTooBigMessage?t.diffTooBigMessage(n.length):"Diff too big to be displayed")}if(e.startsWith(u)&&L.startsWith(f)||e.startsWith(f)&&M.startsWith(u)){if(r&&!r.oldName&&e.startsWith("--- ")&&(N=function(e,t){return af(e,"---",t)}(e,t.srcPrefix)))return r.oldName=N,void(r.language=nf(r.oldName,r.language));if(r&&!r.newName&&e.startsWith("+++ ")&&(N=function(e,t){return af(e,"+++",t)}(e,t.dstPrefix)))return r.newName=N,void(r.language=nf(r.newName,r.language))}if(r&&(e.startsWith(d)||r.isGitDiff&&r.oldName&&r.newName&&!i))return void Q(e);if(i&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))return void function(e){if(null===r||null===i||null===o||null===s)return;const t={content:e},n=r.isCombined?["+ "," +","++"]:["+"],a=r.isCombined?["- "," -","--"]:["-"];rf(e,n)?(r.addedLines++,t.type=Xu.INSERT,t.oldNumber=void 0,t.newNumber=s++):rf(e,a)?(r.deletedLines++,t.type=Xu.DELETE,t.oldNumber=o++,t.newNumber=void 0):(t.type=Xu.CONTEXT,t.oldNumber=o++,t.newNumber=s++),i.lines.push(t)}(e);const U=!function(e,t){let n=t;for(;n<D.length-3;){if(e.startsWith("diff"))return!1;if(D[n].startsWith(u)&&D[n+1].startsWith(f)&&D[n+2].startsWith(d))return!0;n++}return!1}(e,a);if(null===r)throw new Error("Where is my file !!!");(N=h.exec(e))?r.oldMode=N[1]:(N=p.exec(e))?r.newMode=N[1]:(N=g.exec(e))?(r.deletedFileMode=N[1],r.isDeleted=!0):(N=m.exec(e))?(r.newFileMode=N[1],r.isNew=!0):(N=y.exec(e))?(U&&(r.oldName=N[1]),r.isCopy=!0):(N=v.exec(e))?(U&&(r.newName=N[1]),r.isCopy=!0):(N=A.exec(e))?(U&&(r.oldName=N[1]),r.isRename=!0):(N=b.exec(e))?(U&&(r.newName=N[1]),r.isRename=!0):(N=C.exec(e))?(r.isBinary=!0,r.oldName=af(N[1],void 0,t.srcPrefix),r.newName=af(N[2],void 0,t.dstPrefix),Q("Binary file")):B.test(e)?(r.isBinary=!0,Q(e)):(N=w.exec(e))?r.unchangedPercentage=parseInt(N[1],10):(N=I.exec(e))?r.changedPercentage=parseInt(N[1],10):(N=x.exec(e))?(r.checksumBefore=N[1],r.checksumAfter=N[2],N[3]&&(r.mode=N[3])):(N=E.exec(e))?(r.checksumBefore=[N[2],N[3]],r.checksumAfter=N[1]):(N=S.exec(e))?(r.oldMode=[N[2],N[3]],r.newMode=N[1]):(N=k.exec(e))?(r.newFileMode=N[1],r.isNew=!0):(N=F.exec(e))&&(r.deletedFileMode=N[1],r.isDeleted=!0)}),N(),M(),n}class lf{diff(e,t,n={}){let r;"function"==typeof n?(r=n,n={}):"callback"in n&&(r=n.callback);const i=this.castInput(e,n),o=this.castInput(t,n),a=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(o,n));return this.diffWithOptionsObj(a,s,n,r)}diffWithOptionsObj(e,t,n,r){var i;const o=e=>(e=this.postProcess(e,n),r?void setTimeout(function(){r(e)},0):e),a=t.length,s=e.length;let l=1,c=a+s;null!=n.maxEditLength&&(c=Math.min(c,n.maxEditLength));const u=null!==(i=n.timeout)&&void 0!==i?i:1/0,f=Date.now()+u,d=[{oldPos:-1,lastComponent:void 0}];let h=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=s&&h+1>=a)return o(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,g=1/0;const m=()=>{for(let r=Math.max(p,-l);r<=Math.min(g,l);r+=2){let i;const l=d[r-1],c=d[r+1];l&&(d[r-1]=void 0);let u=!1;if(c){const e=c.oldPos-r;u=c&&0<=e&&e<a}const f=l&&l.oldPos+1<s;if(u||f){if(i=!f||u&&l.oldPos<c.oldPos?this.addToPath(c,!0,!1,0,n):this.addToPath(l,!1,!0,1,n),h=this.extractCommon(i,t,e,r,n),i.oldPos+1>=s&&h+1>=a)return o(this.buildValues(i.lastComponent,t,e))||!0;d[r]=i,i.oldPos+1>=s&&(g=Math.min(g,r-1)),h+1>=a&&(p=Math.max(p,r+1))}else d[r]=void 0}l++};if(r)!function e(){setTimeout(function(){if(l>c||Date.now()>f)return r(void 0);m()||e()},0)}();else for(;l<=c&&Date.now()<=f;){const e=m();if(e)return e}}addToPath(e,t,n,r,i){const o=e.lastComponent;return o&&!i.oneChangePerToken&&o.added===t&&o.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:o.count+1,added:t,removed:n,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:o}}}extractCommon(e,t,n,r,i){const o=t.length,a=n.length;let s=e.oldPos,l=s-r,c=0;for(;l+1<o&&s+1<a&&this.equals(n[s+1],t[l+1],i);)l++,s++,c++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return c&&!i.oneChangePerToken&&(e.lastComponent={count:c,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,l}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){const r=[];let i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();const o=r.length;let a=0,s=0,l=0;for(;a<o;a++){const e=r[a];if(e.removed)e.value=this.join(n.slice(l,l+e.count)),l+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){const r=n[l+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(l+=e.count)}}return r}}const cf=new class extends lf{};const uf="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";const ff=new class extends lf{tokenize(e){const t=new RegExp(`(\\r?\\n)|[${uf}]+|[^\\S\\n\\r]+|[^${uf}]`,"ug");return e.match(t)||[]}};function df(e){return(t,n)=>{const r=e(t).trim(),i=e(n).trim();return function(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const n=[];let r,i;for(r=0;r<=t.length;r++)n[r]=[r];for(i=0;i<=e.length;i++)n[0][i]=i;for(r=1;r<=t.length;r++)for(i=1;i<=e.length;i++)t.charAt(r-1)===e.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[t.length][e.length]}(r,i)/(r.length+i.length)}}function hf(e){return function t(n,r,i=0,o=new Map){const a=function(t,n,r=new Map){let i,o=1/0;for(let a=0;a<t.length;++a)for(let s=0;s<n.length;++s){const l=JSON.stringify([t[a],n[s]]);let c;r.has(l)&&(c=r.get(l))||(c=e(t[a],n[s]),r.set(l,c)),c<o&&(o=c,i={indexA:a,indexB:s,score:o})}return i}(n,r,o);if(!a||n.length+r.length<3)return[[n,r]];const s=n.slice(0,a.indexA),l=r.slice(0,a.indexB),c=[n[a.indexA]],u=[r[a.indexB]],f=a.indexA+1,d=a.indexB+1,h=n.slice(f),p=r.slice(d),g=t(s,l,i+1,o),m=t(c,u,i+1,o),y=t(h,p,i+1,o);let v=m;return(a.indexA>0||a.indexB>0)&&(v=g.concat(v)),(n.length>f||r.length>d)&&(v=v.concat(y)),v}}const pf={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},gf={matching:"none",matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:"word",colorScheme:Ku.LIGHT},mf="/",yf=df(e=>e.value),vf=hf(yf);function Af(e){return-1!==e.indexOf("dev/null")}function bf(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function wf(e){switch(e){case Xu.CONTEXT:return pf.CONTEXT;case Xu.INSERT:return pf.INSERTS;case Xu.DELETE:return pf.DELETES}}function If(e){switch(e){case Ku.DARK:return"d2h-dark-color-scheme";case Ku.AUTO:return"d2h-auto-color-scheme";case Ku.LIGHT:default:return"d2h-light-color-scheme"}}function xf(e){return e.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function Cf(e,t,n=!0){const r=function(e){return e?2:1}(t);return{prefix:e.substring(0,r),content:n?xf(e.substring(r)):e.substring(r)}}function Bf(e){const t=ef(e.oldName),n=ef(e.newName);if(t===n||Af(t)||Af(n))return Af(n)?t:n;{const e=[],r=[],i=t.split(mf),o=n.split(mf);let a=0,s=i.length-1,l=o.length-1;for(;a<s&&a<l&&i[a]===o[a];)e.push(o[a]),a+=1;for(;s>a&&l>a&&i[s]===o[l];)r.unshift(o[l]),s-=1,l-=1;const c=e.join(mf),u=r.join(mf),f=i.slice(a,s+1).join(mf),d=o.slice(a,l+1).join(mf);return c.length&&u.length?c+mf+"{"+f+" → "+d+"}"+mf+u:c.length?c+mf+"{"+f+" → "+d+"}":u.length?"{"+f+" → "+d+"}"+mf+u:t+" → "+n}}function Ef(e){return`d2h-${function(e){let t,n,r,i=0;for(t=0,r=e.length;t<r;t++)n=e.charCodeAt(t),i=(i<<5)-i+n,i|=0;return i}(Bf(e)).toString().slice(-6)}`}function Sf(e){let t="file-changed";return e.isRename||e.isCopy?t="file-renamed":e.isNew?t="file-added":e.isDeleted?t="file-deleted":e.newName!==e.oldName&&(t="file-renamed"),t}function kf(e,t,n,r={}){const{matching:i,maxLineLengthHighlight:o,matchWordsThreshold:a,diffStyle:s}=Object.assign(Object.assign({},gf),r),l=Cf(e,n,!1),c=Cf(t,n,!1);if(l.content.length>o||c.content.length>o)return{oldLine:{prefix:l.prefix,content:xf(l.content)},newLine:{prefix:c.prefix,content:xf(c.content)}};const u="char"===s?(f=l.content,d=c.content,cf.diff(f,d,h)):function(e,t,n){return ff.diff(e,t,n)}(l.content,c.content);var f,d,h;const p=[];if("word"===s&&"words"===i){const e=u.filter(e=>e.removed),t=u.filter(e=>e.added);vf(t,e).forEach(e=>{if(1===e[0].length&&1===e[1].length){yf(e[0][0],e[1][0])<a&&(p.push(e[0][0]),p.push(e[1][0]))}})}const g=u.reduce((e,t)=>{const n=t.added?"ins":t.removed?"del":null,r=p.indexOf(t)>-1?' class="d2h-change"':"",i=xf(t.value);return null!==n?`${e}<${n}${r}>${i}</${n}>`:`${e}${i}`},"");return{oldLine:{prefix:l.prefix,content:(m=g,m.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:c.prefix,content:bf(g)}};var m}const Ff="file-summary",Df={colorScheme:gf.colorScheme};class Nf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Df),t)}render(e){const t=e.map(e=>this.hoganUtils.render(Ff,"line",{fileHtmlId:Ef(e),oldName:e.oldName,newName:e.newName,fileName:Bf(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:this.hoganUtils.template("icon",Sf(e))})).join("\n");return this.hoganUtils.render(Ff,"wrapper",{colorScheme:If(this.config.colorScheme),filesNumber:e.length,files:t})}}const Mf=Object.assign(Object.assign({},gf),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Tf="generic",Qf="line-by-line";class Lf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Mf),t)}render(e){const t=e.map(e=>{let t;return t=e.blocks.length?this.generateFileHtml(e):this.generateEmptyDiff(),this.makeFileDiffHtml(e,t)}).join("\n");return this.hoganUtils.render(Tf,"wrapper",{colorScheme:If(this.config.colorScheme),content:t})}makeFileDiffHtml(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";const n=this.hoganUtils.template(Qf,"file-diff"),r=this.hoganUtils.template(Tf,"file-path"),i=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",Sf(e));return n.render({file:e,fileHtmlId:Ef(e),diffs:t,filePath:r.render({fileDiffName:Bf(e)},{fileIcon:i,fileTag:o})})}generateEmptyDiff(){return this.hoganUtils.render(Tf,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:pf})}generateFileHtml(e){const t=hf(df(t=>Cf(t.content,e.isCombined).content));return e.blocks.map(n=>{let r=this.hoganUtils.render(Tf,"block-header",{CSSLineClass:pf,blockHeader:e.isTooBig?n.header:xf(n.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(n).forEach(([n,i,o])=>{if(i.length&&o.length&&!n.length)this.applyRematchMatching(i,o,t).map(([t,n])=>{const{left:i,right:o}=this.processChangedLines(e,e.isCombined,t,n);r+=i,r+=o});else if(n.length)n.forEach(t=>{const{prefix:n,content:i}=Cf(t.content,e.isCombined);r+=this.generateSingleLineHtml(e,{type:pf.CONTEXT,prefix:n,content:i,oldNumber:t.oldNumber,newNumber:t.newNumber})});else if(i.length||o.length){const{left:t,right:n}=this.processChangedLines(e,e.isCombined,i,o);r+=t,r+=n}else console.error("Unknown state reached while processing groups of lines",n,i,o)}),r}).join("\n")}applyLineGroupping(e){const t=[];let n=[],r=[];for(let i=0;i<e.lines.length;i++){const o=e.lines[i];(o.type!==Xu.INSERT&&r.length||o.type===Xu.CONTEXT&&n.length>0)&&(t.push([[],n,r]),n=[],r=[]),o.type===Xu.CONTEXT?t.push([[o],[],[]]):o.type===Xu.INSERT&&0===n.length?t.push([[],[],[o]]):o.type===Xu.INSERT&&n.length>0?r.push(o):o.type===Xu.DELETE&&n.push(o)}return(n.length||r.length)&&(t.push([[],n,r]),n=[],r=[]),t}applyRematchMatching(e,t,n){const r=e.length*t.length,i=tf(e.concat(t).map(e=>e.content.length));return r<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?n(e,t):[[e,t]]}processChangedLines(e,t,n,r){const i={right:"",left:""},o=Math.max(n.length,r.length);for(let a=0;a<o;a++){const o=n[a],s=r[a],l=void 0!==o&&void 0!==s?kf(o.content,s.content,t,this.config):void 0,c=void 0!==o&&void 0!==o.oldNumber?Object.assign(Object.assign({},void 0!==l?{prefix:l.oldLine.prefix,content:l.oldLine.content,type:pf.DELETE_CHANGES}:Object.assign(Object.assign({},Cf(o.content,t)),{type:wf(o.type)})),{oldNumber:o.oldNumber,newNumber:o.newNumber}):void 0,u=void 0!==s&&void 0!==s.newNumber?Object.assign(Object.assign({},void 0!==l?{prefix:l.newLine.prefix,content:l.newLine.content,type:pf.INSERT_CHANGES}:Object.assign(Object.assign({},Cf(s.content,t)),{type:wf(s.type)})),{oldNumber:s.oldNumber,newNumber:s.newNumber}):void 0,{left:f,right:d}=this.generateLineHtml(e,c,u);i.left+=f,i.right+=d}return i}generateLineHtml(e,t,n){return{left:this.generateSingleLineHtml(e,t),right:this.generateSingleLineHtml(e,n)}}generateSingleLineHtml(e,t){if(void 0===t)return"";const n=this.hoganUtils.render(Qf,"numbers",{oldNumber:t.oldNumber||"",newNumber:t.newNumber||""});return this.hoganUtils.render(Tf,"line",{type:t.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===t.prefix?"&nbsp;":t.prefix,content:t.content,lineNumber:n,line:t,file:e})}}const Rf=Object.assign(Object.assign({},gf),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Uf="generic";class Hf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Rf),t)}render(e){const t=e.map(e=>{let t;return t=e.blocks.length?this.generateFileHtml(e):this.generateEmptyDiff(),this.makeFileDiffHtml(e,t)}).join("\n");return this.hoganUtils.render(Uf,"wrapper",{colorScheme:If(this.config.colorScheme),content:t})}makeFileDiffHtml(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";const n=this.hoganUtils.template("side-by-side","file-diff"),r=this.hoganUtils.template(Uf,"file-path"),i=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",Sf(e));return n.render({file:e,fileHtmlId:Ef(e),diffs:t,filePath:r.render({fileDiffName:Bf(e)},{fileIcon:i,fileTag:o})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Uf,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:pf})}}generateFileHtml(e){const t=hf(df(t=>Cf(t.content,e.isCombined).content));return e.blocks.map(n=>{const r={left:this.makeHeaderHtml(n.header,e),right:this.makeHeaderHtml("")};return this.applyLineGroupping(n).forEach(([n,i,o])=>{if(i.length&&o.length&&!n.length)this.applyRematchMatching(i,o,t).map(([t,n])=>{const{left:i,right:o}=this.processChangedLines(e.isCombined,t,n);r.left+=i,r.right+=o});else if(n.length)n.forEach(t=>{const{prefix:n,content:i}=Cf(t.content,e.isCombined),{left:o,right:a}=this.generateLineHtml({type:pf.CONTEXT,prefix:n,content:i,number:t.oldNumber},{type:pf.CONTEXT,prefix:n,content:i,number:t.newNumber});r.left+=o,r.right+=a});else if(i.length||o.length){const{left:t,right:n}=this.processChangedLines(e.isCombined,i,o);r.left+=t,r.right+=n}else console.error("Unknown state reached while processing groups of lines",n,i,o)}),r}).reduce((e,t)=>({left:e.left+t.left,right:e.right+t.right}),{left:"",right:""})}applyLineGroupping(e){const t=[];let n=[],r=[];for(let i=0;i<e.lines.length;i++){const o=e.lines[i];(o.type!==Xu.INSERT&&r.length||o.type===Xu.CONTEXT&&n.length>0)&&(t.push([[],n,r]),n=[],r=[]),o.type===Xu.CONTEXT?t.push([[o],[],[]]):o.type===Xu.INSERT&&0===n.length?t.push([[],[],[o]]):o.type===Xu.INSERT&&n.length>0?r.push(o):o.type===Xu.DELETE&&n.push(o)}return(n.length||r.length)&&(t.push([[],n,r]),n=[],r=[]),t}applyRematchMatching(e,t,n){const r=e.length*t.length,i=tf(e.concat(t).map(e=>e.content.length));return r<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?n(e,t):[[e,t]]}makeHeaderHtml(e,t){return this.hoganUtils.render(Uf,"block-header",{CSSLineClass:pf,blockHeader:(null==t?void 0:t.isTooBig)?e:xf(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(e,t,n){const r={right:"",left:""},i=Math.max(t.length,n.length);for(let o=0;o<i;o++){const i=t[o],a=n[o],s=void 0!==i&&void 0!==a?kf(i.content,a.content,e,this.config):void 0,l=void 0!==i&&void 0!==i.oldNumber?Object.assign(Object.assign({},void 0!==s?{prefix:s.oldLine.prefix,content:s.oldLine.content,type:pf.DELETE_CHANGES}:Object.assign(Object.assign({},Cf(i.content,e)),{type:wf(i.type)})),{number:i.oldNumber}):void 0,c=void 0!==a&&void 0!==a.newNumber?Object.assign(Object.assign({},void 0!==s?{prefix:s.newLine.prefix,content:s.newLine.content,type:pf.INSERT_CHANGES}:Object.assign(Object.assign({},Cf(a.content,e)),{type:wf(a.type)})),{number:a.newNumber}):void 0,{left:u,right:f}=this.generateLineHtml(l,c);r.left+=u,r.right+=f}return r}generateLineHtml(e,t){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(t)}}generateSingleHtml(e){const t="d2h-code-side-linenumber",n="d2h-code-side-line";return this.hoganUtils.render(Uf,"line",{type:(null==e?void 0:e.type)||`${pf.CONTEXT} d2h-emptyplaceholder`,lineClass:void 0!==e?t:`${t} d2h-code-side-emptyplaceholder`,contentClass:void 0!==e?n:`${n} d2h-code-side-emptyplaceholder`,prefix:" "===(null==e?void 0:e.prefix)?"&nbsp;":null==e?void 0:e.prefix,content:null==e?void 0:e.content,lineNumber:null==e?void 0:e.number})}}var qf={};!function(e){!function(e){var t=/\S/,n=/\"/g,r=/\n/g,i=/\r/g,o=/\\/g,a=/\u2028/,s=/\u2029/;function l(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function c(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function u(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var r=1,i=e.length;r<i;r++)if(t.charAt(n+r)!=e.charAt(r))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(n,r){var i=n.length,o=0,a=null,s=null,f="",d=[],h=!1,p=0,g=0,m="{{",y="}}";function v(){f.length>0&&(d.push({tag:"_t",text:new String(f)}),f="")}function A(n,r){if(v(),n&&function(){for(var n=!0,r=g;r<d.length;r++)if(!(n=e.tags[d[r].tag]<e.tags._v||"_t"==d[r].tag&&null===d[r].text.match(t)))return!1;return n}())for(var i,o=g;o<d.length;o++)d[o].text&&((i=d[o+1])&&">"==i.tag&&(i.indent=d[o].text.toString()),d.splice(o,1));else r||d.push({tag:"\n"});h=!1,g=d.length}function b(e,t){var n="="+y,r=e.indexOf(n,t),i=c(e.substring(e.indexOf("=",t)+1,r)).split(" ");return m=i[0],y=i[i.length-1],r+n.length-1}for(r&&(r=r.split(" "),m=r[0],y=r[1]),p=0;p<i;p++)0==o?u(m,n,p)?(--p,v(),o=1):"\n"==n.charAt(p)?A(h):f+=n.charAt(p):1==o?(p+=m.length-1,"="==(a=(s=e.tags[n.charAt(p+1)])?n.charAt(p+1):"_v")?(p=b(n,p),o=0):(s&&p++,o=2),h=p):u(y,n,p)?(d.push({tag:a,n:c(f),otag:m,ctag:y,i:"/"==a?h-m.length:p+y.length}),f="",p+=y.length-1,o=0,"{"==a&&("}}"==y?p++:l(d[d.length-1]))):f+=n.charAt(p);return A(h,!0),d};var f={_t:!0,"\n":!0,$:!0,"/":!0};function d(t,n,r,i){var o,a=[],s=null,l=null;for(o=r[r.length-1];t.length>0;){if(l=t.shift(),o&&"<"==o.tag&&!(l.tag in f))throw new Error("Illegal content in < super tag.");if(e.tags[l.tag]<=e.tags.$||h(l,i))r.push(l),l.nodes=d(t,l.tag,r,i);else{if("/"==l.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+l.n);if(s=r.pop(),l.n!=s.n&&!p(l.n,s.n,i))throw new Error("Nesting error: "+s.n+" vs. "+l.n);return s.end=l.i,a}"\n"==l.tag&&(l.last=0==t.length||"\n"==t[0].tag)}a.push(l)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return a}function h(e,t){for(var n=0,r=t.length;n<r;n++)if(t[n].o==e.n)return e.tag="#",!0}function p(e,t,n){for(var r=0,i=n.length;r<i;r++)if(n[r].c==e&&n[r].o==t)return!0}function g(e){var t=[];for(var n in e.partials)t.push('"'+y(n)+'":{name:"'+y(e.partials[n].name)+'", '+g(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var n in e)t.push('"'+y(n)+'": function(c,p,t,i) {'+e[n]+"}");return"{ "+t.join(",")+" }"}(e.subs)}e.stringify=function(t,n,r){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+g(t)+"}"};var m=0;function y(e){return e.replace(o,"\\\\").replace(n,'\\"').replace(r,"\\n").replace(i,"\\r").replace(a,"\\u2028").replace(s,"\\u2029")}function v(e){return~e.indexOf(".")?"d":"f"}function A(e,t){var n="<"+(t.prefix||"")+e.n+m++;return t.partials[n]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+y(n)+'",c,p,"'+(e.indent||"")+'"));',n}function b(e,t){t.code+="t.b(t.t(t."+v(e.n)+'("'+y(e.n)+'",c,p,0)));'}function w(e){return"t.b("+e+");"}e.generate=function(t,n,r){m=0;var i={code:"",subs:{},partials:{}};return e.walk(t,i),r.asString?this.stringify(i,n,r):this.makeTemplate(i,n,r)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,n){var r=this.makePartials(e);return r.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(r,t,this,n)},e.makePartials=function(e){var t,n={subs:{},partials:e.partials,name:e.name};for(t in n.partials)n.partials[t]=this.makePartials(n.partials[t]);for(t in e.subs)n.subs[t]=new Function("c","p","t","i",e.subs[t]);return n},e.codegen={"#":function(t,n){n.code+="if(t.s(t."+v(t.n)+'("'+y(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,n),n.code+="});c.pop();}"},"^":function(t,n){n.code+="if(!t.s(t."+v(t.n)+'("'+y(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,n),n.code+="};"},">":A,"<":function(t,n){var r={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,r);var i=n.partials[A(t,n)];i.subs=r.subs,i.partials=r.partials},$:function(t,n){var r={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,r),n.subs[t.n]=r.code,n.inPartial||(n.code+='t.sub("'+y(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=w('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+v(e.n)+'("'+y(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=w('"'+y(e.text)+'"')},"{":b,"&":b},e.walk=function(t,n){for(var r,i=0,o=t.length;i<o;i++)(r=e.codegen[t[i].tag])&&r(t[i],n);return n},e.parse=function(e,t,n){return d(e,0,[],(n=n||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var r=e.cacheKey(t,n),i=this.cache[r];if(i){var o=i.partials;for(var a in o)delete o[a].instance;return i}return i=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[r]=i}}(e)}(qf);var Of={};!function(e){!function(e){function t(e,t,n){var r;return t&&"object"==typeof t&&(void 0!==t[e]?r=t[e]:n&&t.get&&"function"==typeof t.get&&(r=t.get(e))),r}e.Template=function(e,t,n,r){e=e||{},this.r=e.code||this.r,this.c=n,this.options=r||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:function(e){return e=l(e),s.test(e)?e.replace(n,"&amp;").replace(r,"&lt;").replace(i,"&gt;").replace(o,"&#39;").replace(a,"&quot;"):e},t:l,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var n=this.partials[e],r=t[n.name];if(n.instance&&n.base==r)return n.instance;if("string"==typeof r){if(!this.c)throw new Error("No compiler available.");r=this.c.compile(r,this.options)}if(!r)return null;if(this.partials[e].base=r,n.subs){for(key in t.stackText||(t.stackText={}),n.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);r=function(e,t,n,r,i,o){function a(){}function s(){}var l;a.prototype=e,s.prototype=e.subs;var c=new a;for(l in c.subs=new s,c.subsText={},c.buf="",r=r||{},c.stackSubs=r,c.subsText=o,t)r[l]||(r[l]=t[l]);for(l in r)c.subs[l]=r[l];for(l in i=i||{},c.stackPartials=i,n)i[l]||(i[l]=n[l]);for(l in i)c.partials[l]=i[l];return c}(r,n.subs,n.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=r,r},rp:function(e,t,n,r){var i=this.ep(e,n);return i?i.ri(t,n,r):""},rs:function(e,t,n){var r=e[e.length-1];if(c(r))for(var i=0;i<r.length;i++)e.push(r[i]),n(e,t,this),e.pop();else n(e,t,this)},s:function(e,t,n,r,i,o,a){var s;return(!c(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,n,r,i,o,a)),s=!!e,!r&&s&&t&&t.push("object"==typeof e?e:t[t.length-1]),s)},d:function(e,n,r,i){var o,a=e.split("."),s=this.f(a[0],n,r,i),l=this.options.modelGet,u=null;if("."===e&&c(n[n.length-2]))s=n[n.length-1];else for(var f=1;f<a.length;f++)void 0!==(o=t(a[f],s,l))?(u=s,s=o):s="";return!(i&&!s)&&(i||"function"!=typeof s||(n.push(u),s=this.mv(s,n,r),n.pop()),s)},f:function(e,n,r,i){for(var o=!1,a=!1,s=this.options.modelGet,l=n.length-1;l>=0;l--)if(void 0!==(o=t(e,n[l],s))){a=!0;break}return a?(i||"function"!=typeof o||(o=this.mv(o,n,r)),o):!i&&""},ls:function(e,t,n,r,i,o){var a=this.options.delimiters;return this.options.delimiters=o,this.b(this.ct(l(e.call(t,i,n)),t,r)),this.options.delimiters=a,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,r,i,o,a){var s,l=t[t.length-1],c=e.call(l);return"function"==typeof c?!!r||(s=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,l,t,n,s.substring(i,o),a)):c},mv:function(e,t,n){var r=t[t.length-1],i=e.call(r);return"function"==typeof i?this.ct(l(i.call(r)),r,n):i},sub:function(e,t,n,r){var i=this.subs[e];i&&(this.activeSub=e,i(t,n,this,r),this.activeSub=!1)}};var n=/&/g,r=/</g,i=/>/g,o=/\'/g,a=/\"/g,s=/[&<>\"\']/;function l(e){return String(null==e?"":e)}var c=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(e)}(Of);var Pf=qf;Pf.Template=Of.Template,Pf.template=Pf.Template;var $f=Pf;const zf={};zf["file-summary-line"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<li class="d2h-file-list-line">'),r.b("\n"+n),r.b(' <span class="d2h-file-name-wrapper">'),r.b("\n"+n),r.b(r.rp("<fileIcon0",e,t," ")),r.b(' <a href="#'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-name">'),r.b(r.v(r.f("fileName",e,t,0))),r.b("</a>"),r.b("\n"+n),r.b(' <span class="d2h-file-stats">'),r.b("\n"+n),r.b(' <span class="d2h-lines-added">'),r.b(r.v(r.f("addedLines",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(' <span class="d2h-lines-deleted">'),r.b(r.v(r.f("deletedLines",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(" </span>"),r.b("\n"+n),r.b(" </span>"),r.b("\n"+n),r.b("</li>"),r.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),zf["file-summary-wrapper"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div class="d2h-file-list-wrapper '),r.b(r.v(r.f("colorScheme",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="d2h-file-list-header">'),r.b("\n"+n),r.b(' <span class="d2h-file-list-title">Files changed ('),r.b(r.v(r.f("filesNumber",e,t,0))),r.b(")</span>"),r.b("\n"+n),r.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),r.b("\n"+n),r.b(' <a class="d2h-file-switch d2h-show">show</a>'),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <ol class="d2h-file-list">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("files",e,t,0))),r.b("\n"+n),r.b(" </ol>"),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),zf["generic-block-header"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("lineClass",e,t,0))),r.b(" "),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('"></td>'),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.s(r.f("blockHeader",e,t,1),e,t,0,156,173,"{{ }}")&&(r.rs(e,t,function(e,t,n){n.b(n.t(n.f("blockHeader",e,t,0)))}),e.pop()),r.s(r.f("blockHeader",e,t,1),e,t,1,0,0,"")||r.b("&nbsp;"),r.b("</div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),r.fl()},partials:{},subs:{}}),zf["generic-empty-diff"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.b("\n"+n),r.b(" File without changes"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),r.fl()},partials:{},subs:{}}),zf["generic-file-path"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-file-name-wrapper">'),r.b("\n"+n),r.b(r.rp("<fileIcon0",e,t," ")),r.b(' <span class="d2h-file-name">'),r.b(r.v(r.f("fileDiffName",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(r.rp("<fileTag1",e,t," ")),r.b("</span>"),r.b("\n"+n),r.b('<label class="d2h-file-collapse">'),r.b("\n"+n),r.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),r.b("\n"+n),r.b(" Viewed"),r.b("\n"+n),r.b("</label>"),r.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),zf["generic-line"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("lineClass",e,t,0))),r.b(" "),r.b(r.v(r.f("type",e,t,0))),r.b('">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("lineNumber",e,t,0))),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("type",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.b("\n"+n),r.s(r.f("prefix",e,t,1),e,t,0,162,238,"{{ }}")&&(r.rs(e,t,function(e,t,r){r.b(' <span class="d2h-code-line-prefix">'),r.b(r.t(r.f("prefix",e,t,0))),r.b("</span>"),r.b("\n"+n)}),e.pop()),r.s(r.f("prefix",e,t,1),e,t,1,0,0,"")||(r.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),r.b("\n"+n)),r.s(r.f("content",e,t,1),e,t,0,371,445,"{{ }}")&&(r.rs(e,t,function(e,t,r){r.b(' <span class="d2h-code-line-ctn">'),r.b(r.t(r.f("content",e,t,0))),r.b("</span>"),r.b("\n"+n)}),e.pop()),r.s(r.f("content",e,t,1),e,t,1,0,0,"")||(r.b(' <span class="d2h-code-line-ctn"><br></span>'),r.b("\n"+n)),r.b(" </div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),r.fl()},partials:{},subs:{}}),zf["generic-wrapper"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div class="d2h-wrapper '),r.b(r.v(r.f("colorScheme",e,t,0))),r.b('">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("content",e,t,0))),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),zf["icon-file-added"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),r.b("\n"+n),r.b(' width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),zf["icon-file-changed"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),zf["icon-file-deleted"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),zf["icon-file-renamed"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),zf["icon-file"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),r.b("\n"+n),r.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),zf["line-by-line-file-diff"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div id="'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-wrapper" data-lang="'),r.b(r.v(r.d("file.language",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="d2h-file-header">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("filePath",e,t,0))),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-file-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("diffs",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),zf["line-by-line-numbers"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div class="line-num1">'),r.b(r.v(r.f("oldNumber",e,t,0))),r.b("</div>"),r.b("\n"+n),r.b('<div class="line-num2">'),r.b(r.v(r.f("newNumber",e,t,0))),r.b("</div>"),r.fl()},partials:{},subs:{}}),zf["side-by-side-file-diff"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div id="'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-wrapper" data-lang="'),r.b(r.v(r.d("file.language",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="d2h-file-header">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("filePath",e,t,0))),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-files-diff">'),r.b("\n"+n),r.b(' <div class="d2h-file-side-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.d("diffs.left",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-file-side-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.d("diffs.right",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),zf["tag-file-added"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),r.fl()},partials:{},subs:{}}),zf["tag-file-changed"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),r.fl()},partials:{},subs:{}}),zf["tag-file-deleted"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),r.fl()},partials:{},subs:{}}),zf["tag-file-renamed"]=new $f.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),r.fl()},partials:{},subs:{}});class jf{constructor({compiledTemplates:e={},rawTemplates:t={}}){const n=Object.entries(t).reduce((e,[t,n])=>{const r=$f.compile(n,{asString:!1});return Object.assign(Object.assign({},e),{[t]:r})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},zf),e),n)}static compile(e){return $f.compile(e,{asString:!1})}render(e,t,n,r,i){const o=this.templateKey(e,t);try{return this.preCompiledTemplates[o].render(n,r,i)}catch(e){throw new Error(`Could not find template to render '${o}'`)}}template(e,t){return this.preCompiledTemplates[this.templateKey(e,t)]}templateKey(e,t){return`${e}-${t}`}}const Vf=Object.assign(Object.assign(Object.assign({},Mf),Rf),{outputFormat:"line-by-line",drawFileList:!0});var Yf=Object.freeze({__proto__:null,defaultDiff2HtmlConfig:Vf,html:function(e,t={}){const n=Object.assign(Object.assign({},Vf),t),r="string"==typeof e?sf(e,n):e,i=new jf(n),{colorScheme:o}=n,a={colorScheme:o};return(n.drawFileList?new Nf(i,a).render(r):"")+("side-by-side"===n.outputFormat?new Hf(i,n).render(r):new Lf(i,n).render(r))},parse:function(e,t={}){return sf(e,Object.assign(Object.assign({},Vf),t))}});function Wf(e=Yf){let t="html";if(Oi(be(e,t)))return e;if(Oi(be(e,["default",t])))return e.default;let n=nc(),r=be(n,"Diff2Html.default",null),i=be(n,"Diff2Html",null);if(Oi(be(r,t)))return r;if(Oi(be(i,t)))return i;throw console.log("Diff2Html",e,"g.Diff2Html",be(n,"Diff2Html")),new Error("invalid Diff2Html, g.Diff2Html, g.Diff2Html.default, use script for import")}var Gf=Object.defineProperty,Jf=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},_f=(e,t)=>{for(var n in t)Gf(e,n,{get:t[n],enumerable:!0})};var Xf,Kf,Zf=Jf(()=>{Xf=class extends Map{constructor(e=100,...t){super(...t),this._maxSize=e}set(e,t){if(this.size>=this._maxSize&&!this.has(e)){let e=this.keys().next().value;void 0!==e&&this.delete(e)}return super.set(e,t)}},Kf={image:new Xf(100),background:new Xf(100),resource:new Xf(150),defaultStyle:new Xf(30),baseStyle:new Xf(50),compress:new Xf(50),computedStyle:new WeakMap,measureHints:new WeakMap,burstAdvice:new WeakMap,warnedReconcile:!1,font:new Set,session:{styleMap:new Map,styleCache:new WeakMap,nodeMap:new Map}}});function ed(e){let t=e.match(/url\((['"]?)(.*?)(\1)\)/);if(!t)return null;let n=t[2].trim();return n.startsWith("#")?null:n}function td(e,t=1){let n=e.match(/^\s*-?(?:webkit-)?image-set\(([\s\S]*)\)\s*$/i);if(!n)return null;let r=[];for(let e of n[1].split(",")){let t=e.match(/url\((['"]?)(.*?)(\1)\)/);if(!t)continue;let n=e.match(/type\(\s*["']([^"']+)["']\s*\)/i);if(n&&!rd.test(n[1].trim()))continue;let i=e.match(/(\d+(?:\.\d+)?)\s*(x|dpi|dppx)/i),o=1;if(i){let e=parseFloat(i[1]);o=/dpi/i.test(i[2])?e/96:e}r.push({url:t[2].trim(),dppx:o})}return r.length?(r.sort((e,t)=>e.dppx-t.dppx),(r.find(e=>e.dppx>=t)||r[r.length-1]).url):null}function nd(e){if(/%[0-9A-Fa-f]{2}/.test(e))return e;try{return encodeURI(e)}catch{return e}}var rd,id=Jf(()=>{rd=/^image\/(jpeg|jpg|png|gif|webp|avif|apng|svg\+xml|bmp|x-icon|vnd\.microsoft\.icon)\s*(;|$)/i});function od(e,t){if(!t||function(e){return/^data:|^blob:|^about:blank$/i.test(e)}(e)||function(e,t){try{let n=typeof location<"u"&&location.href?location.href:"http://localhost/",r=t.includes("{url}")?t.split("{url}")[0]:t,i=new URL(r||".",n),o=new URL(e,n);if(o.origin===i.origin)return!0;let a=o.searchParams;if(a&&(a.has("url")||a.has("target")))return!0}catch{}return!1}(e,t))return!1;try{let t=typeof location<"u"&&location.href?location.href:"http://localhost/",n=new URL(e,t);return!(typeof location<"u")||n.origin!==location.origin}catch{return!!t}}function ad(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result||"")),r.onerror=()=>n(new Error("read_failed")),r.readAsDataURL(e)})}async function sd(e,t={}){let n=t.as??"blob",r=t.timeout??3e3,i=t.useProxy||"",o=t.errorTTL??8e3,a=t.headers||{},s=!!t.silent;if(/^data:/i.test(e))try{if("text"===n)return{ok:!0,data:String(e),status:200,url:e,fromCache:!1};if("dataURL"===n)return{ok:!0,data:String(e),status:200,url:e,fromCache:!1,mime:String(e).slice(5).split(";")[0]||""};let[,t="",r=""]=String(e).match(/^data:([^,]*),(.*)$/)||[],i=/;base64/i.test(t)?atob(r):decodeURIComponent(r),o=new Uint8Array([...i].map(e=>e.charCodeAt(0))),a=new Blob([o],{type:(t||"").split(";")[0]||""});return{ok:!0,data:a,status:200,url:e,fromCache:!1,mime:a.type||""}}catch{return{ok:!1,data:null,status:0,url:e,fromCache:!1,reason:"special_url_error"}}if(/^blob:/i.test(e))try{let t=await fetch(e);if(!t.ok)return{ok:!1,data:null,status:t.status,url:e,fromCache:!1,reason:"http_error"};let r=await t.blob(),i=r.type||t.headers.get("content-type")||"";return"dataURL"===n?{ok:!0,data:await ad(r),status:t.status,url:e,fromCache:!1,mime:i}:"text"===n?{ok:!0,data:await r.text(),status:t.status,url:e,fromCache:!1,mime:i}:{ok:!0,data:r,status:t.status,url:e,fromCache:!1,mime:i}}catch{return{ok:!1,data:null,status:0,url:e,fromCache:!1,reason:"network"}}if(/^about:blank$/i.test(e))return"dataURL"===n?{ok:!0,data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==",status:200,url:e,fromCache:!1,mime:"image/png"}:{ok:!0,data:"text"===n?"":new Blob([]),status:200,url:e,fromCache:!1};let l=function(e,t){return[t.as||"blob",t.timeout??3e3,t.useProxy||"",t.errorTTL??8e3,e].join("|")}(e,{as:n,timeout:r,useProxy:i,errorTTL:o}),c=ud.get(l);if(c&&c.until>Date.now())return{...c.result,fromCache:!0};c&&ud.delete(l);let u=cd.get(l);if(u)return u;let f=od(e,i)?function(e,t){if(!t)return e;if(t.includes("{url}"))return t.replace("{urlRaw}",nd(e)).replace("{url}",encodeURIComponent(e));if(/[?&]url=?$/.test(t))return`${t}${encodeURIComponent(e)}`;if(t.endsWith("?"))return`${t}url=${encodeURIComponent(e)}`;if(t.endsWith("/"))return`${t}${nd(e)}`;let n=t.includes("?")?"&":"?";return`${t}${n}url=${encodeURIComponent(e)}`}(e,i):e,d=t.credentials;if(!d)try{let t=typeof location<"u"&&location.href?location.href:"http://localhost/",n=new URL(e,t);d=typeof location<"u"&&n.origin===location.origin?"include":"omit"}catch{d="omit"}let h=new AbortController,p=setTimeout(()=>h.abort("timeout"),r),g=(async()=>{try{let r=await fetch(f,{signal:h.signal,credentials:d,headers:a});if(!r.ok){let i={ok:!1,data:null,status:r.status,url:f,fromCache:!1,reason:"http_error"};if(o>0&&ud.set(l,{until:Date.now()+o,result:i}),!s){let t=`${r.status} ${r.statusText||""}`.trim();ld.warnOnce(`http:${r.status}:${n}:${new URL(e,location?.href??"http://localhost/").origin}`,`HTTP error ${t} while fetching ${n} ${e}`)}return t.onError&&t.onError(i),i}if("text"===n)return{ok:!0,data:await r.text(),status:r.status,url:f,fromCache:!1};let i=await r.blob(),c=i.type||r.headers.get("content-type")||"";return"dataURL"===n?{ok:!0,data:await ad(i),status:r.status,url:f,fromCache:!1,mime:c}:{ok:!0,data:i,status:r.status,url:f,fromCache:!1,mime:c}}catch(i){let a=i&&"object"==typeof i&&"name"in i&&"AbortError"===i.name?String(i.message||"").includes("timeout")?"timeout":"abort":"network",c={ok:!1,data:null,status:0,url:f,fromCache:!1,reason:a};if(!/^blob:/i.test(e)&&o>0&&ud.set(l,{until:Date.now()+o,result:c}),!s){let t=`${a}:${n}:${new URL(e,location?.href??"http://localhost/").origin}`,i="timeout"===a?`Timeout after ${r}ms. Consider increasing timeout or using a proxy for ${e}`:"abort"===a?`Request aborted while fetching ${n} ${e}`:`Network/CORS issue while fetching ${n} ${e}. A proxy may be required`;ld.errorOnce(t,i)}return t.onError&&t.onError(c),c}finally{clearTimeout(p),cd.delete(l)}})();return cd.set(l,g),g}var ld,cd,ud,fd=Jf(()=>{id(),ld=function(e="[snapDOM]",{ttlMs:t=3e5,maxEntries:n=12}={}){let r=new Map,i=0;function o(o,a,s){if(i>=n)return;let l=Date.now();(r.get(a)||0)>l||(r.set(a,l+t),i++,"warn"===o&&console&&console.warn?console.warn(`${e} ${s}`):console&&console.error&&console.error(`${e} ${s}`))}return{warnOnce(e,t){o("warn",e,t)},errorOnce(e,t){o("error",e,t)},reset(){r.clear(),i=0}}}("[snapDOM]",{ttlMs:18e4,maxEntries:10}),cd=new Map,ud=new Map});async function dd(e,t={}){if(/^((repeating-)?(linear|radial|conic)-gradient)\(/i.test(e)||"none"===e.trim())return e;let n=td(e,typeof devicePixelRatio<"u"&&devicePixelRatio||1)??ed(e);if(!n)return e;let r=function(e,t){if(!e||/^(data|blob|about|#)/i.test(e.trim()))return e;try{let n=t||typeof document<"u"&&(document.baseURI||document.location?.href)||"http://localhost/";return new URL(e,n).href}catch{return e}}(n),i=nd(r),o=(t.useProxy||"")+"|"+i;if(Kf.background.has(o)){let e=Kf.background.get(o);return e?`url("${e}")`:"none"}try{let e=await sd(i,{as:"dataURL",useProxy:t.useProxy});return e.ok?(Kf.background.set(o,e.data),`url("${e.data}")`):(Kf.background.set(o,null),"none")}catch{return Kf.background.set(o,null),"none"}}var hd=Jf(()=>{Zf(),id(),fd()});function pd(e){if(e=String(e).toLowerCase(),Id.has(e)){let t={};return Kf.defaultStyle.set(e,t),t}if(Kf.defaultStyle.has(e))return Kf.defaultStyle.get(e);let t=document.getElementById("snapdom-sandbox");t||(t=document.createElement("div"),t.id="snapdom-sandbox",t.setAttribute("data-snapdom-sandbox","true"),t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.left="-9999px",t.style.top="-9999px",t.style.width="0px",t.style.height="0px",t.style.overflow="hidden",document.body.appendChild(t));let n=document.createElement(e);n.style.all="initial",t.appendChild(n);let r=getComputedStyle(n),i={};for(let e of r){if(gd(e))continue;let t=r.getPropertyValue(e);i[e]=t}return t.removeChild(n),Kf.defaultStyle.set(e,i),i}function gd(e){let t=Ed.get(e);if(void 0===t){let n=String(e).toLowerCase();t=Bd.has(n)||Cd.test(n)||xd.test(n),Ed.set(e,t)}return t}function md(e,t){return!Fd.has(e)&&("inline"===t||Sd.has(e)||kd.has(e))}function yd(e,t,n=!0,r=!1){if(t=String(t||"").toLowerCase(),Id.has(t))return"";let i=[],o=pd(t),a=(e.display||"").toLowerCase(),s="inline"===a,l=md(t,a),c=e["text-wrap-mode"]||e["white-space"]||"",u="nowrap"===c||"pre"===c,f=l&&n&&!(l&&n&&!s&&u),d=!1;for(let t in e){if(gd(t))continue;let n=e[t];if(f){if(Dd.has(t))continue;if(Nd.has(t)){n&&n!==o[t]&&(i.push(`${t}:${n}`),"auto"!==n&&(d=!0));continue}}if(n&&n!==o[t]){if(!u&&("width"===t||"inline-size"===t)&&n.endsWith("px")&&n.includes(".")){let e=parseFloat(n);if(Number.isFinite(e)){i.push(`${t}:${(e+Md).toFixed(3)}px`);continue}}i.push(`${t}:${n}`)}}if(f&&!s&&!r&&!d){let t=e.width;t&&"auto"!==t&&t!==o.width&&i.push(`min-width:${t}`)}return i.sort(),i.join(";")}function vd(e,t=null){let n=()=>{let e={length:0,getPropertyValue:()=>"",item:()=>""};return e[Symbol.iterator]=function*(){},e};if(1!==e?.nodeType){let r=typeof window<"u"?window:null;if(r&&"function"==typeof r.getComputedStyle)try{return r.getComputedStyle(e,t)||n()}catch{return n()}return n()}let r=Kf.computedStyle.get(e);r||(r=new Map,Kf.computedStyle.set(e,r));let i=r.get(t);if(!i){let o=function(e){try{let t=e?.ownerDocument;if(!t)return typeof window<"u"?window:null;let n=t.defaultView;if(n&&"function"==typeof n.getComputedStyle)return n;if(typeof window<"u"&&window.frames)for(let e=0;e<window.frames.length;e++)try{if(window.frames[e]?.document===t)return window.frames[e]}catch{}}catch{}return typeof window<"u"?window:null}(e),a=null;try{a=o&&"function"==typeof o.getComputedStyle?o.getComputedStyle(e,t):null}catch{}if(!a&&typeof window<"u"&&"function"==typeof window.getComputedStyle)try{e.ownerDocument===document&&(a=window.getComputedStyle(e,t))}catch{}i=a||n(),r.set(t,i)}return i}function Ad(e){let t={};for(let n of e)t[n]=e.getPropertyValue(n);for(let e of Qd){let n=t[`border-${e}-style`],r=t[`border-${e}-width`];("none"===n||"hidden"===n||"0px"===r)&&(delete t[`border-${e}-style`],delete t[`border-${e}-width`],delete t[`border-${e}-color`])}return t}function bd(e){let t=[],n=0,r=0;for(let i=0;i<e.length;i++){let o=e[i];"("===o&&n++,")"===o&&n--,","===o&&0===n&&(t.push(e.slice(r,i).trim()),r=i+1)}return t.push(e.slice(r).trim()),t}var wd,Id,xd,Cd,Bd,Ed,Sd,kd,Fd,Dd,Nd,Md,Td,Qd,Ld=Jf(()=>{Zf(),wd=new Set(["meta","script","noscript","title","link","template"]),Id=new Set(["meta","link","style","title","noscript","script","template","g","defs","use","marker","mask","clipPath","pattern","symbol","path","polygon","polyline","line","circle","ellipse","rect","filter","lineargradient","radialgradient","stop"]),xd=/(?:^|-)(animation|transition)(?:-|$)/i,Cd=/^(--.+|view-timeline|scroll-timeline|animation-trigger|offset-|position-try|app-region|interactivity|overlay|view-transition|-webkit-locale|-webkit-user-(?:drag|modify)|-webkit-tap-highlight-color|-webkit-text-security)$/i,Bd=new Set(["cursor","pointer-events","touch-action","user-select","print-color-adjust","speak","reading-flow","reading-order","anchor-name","anchor-scope","container-name","container-type","timeline-scope","zoom","stroke-color"]),Ed=new Map,Sd=new Set(["span","small","em","strong","b","i","u","s","code","cite","mark","sub","sup"]),kd=new Set(["table","thead","tbody","tfoot","tr","td","th"]),Fd=new Set(["img","video","canvas","svg","iframe","embed","object","input","textarea","select"]),Dd=new Set(["width","max-width","inline-size","max-inline-size"]),Nd=new Set(["min-width","min-inline-size"]),Md=.001,Td=new Set(["inline-block","inline-flex","inline-grid","inline-table","inline-flow-root","table"]),Qd=["top","right","bottom","left"]});function Rd(e,{fast:t=!1}={}){if(t)return e();"requestIdleCallback"in window?requestIdleCallback(e,{timeout:50}):setTimeout(e,1)}function Ud(e=1e3){return"function"!=typeof requestAnimationFrame||typeof document<"u"&&"hidden"===document.visibilityState?Promise.resolve():new Promise(t=>{let n=!1,r=()=>{n||(n=!0,t())};try{requestAnimationFrame(r)}catch{return void r()}setTimeout(r,e)})}function Hd(){if(typeof navigator>"u")return!1;let e=navigator.userAgent||"",t=e.toLowerCase(),n=t.includes("safari")&&!t.includes("chrome")&&!t.includes("crios")&&!t.includes("fxios")&&!t.includes("android"),r=/applewebkit/i.test(e),i=/mobile/i.test(e),o=!/safari/i.test(e),a=r&&i&&o,s=/(micromessenger|wxwork|wecom|windowswechat|macwechat)/i.test(e),l=/(baiduboxapp|baidubrowser|baidusearch|baiduboxlite)/i.test(t),c=/ipad|iphone|ipod/.test(t)&&r;return n||a||s||l||c}var qd=Jf(()=>{});function Od(e,t,n){let r=e&&"object"==typeof e&&(e.options||e);r&&r.debug&&(void 0!==n?console.warn("[snapdom]",t,n):console.warn("[snapdom]",t))}var Pd=Jf(()=>{}),$d=Jf(()=>{hd(),Ld(),qd(),id(),Pd()}),zd={};function jd(e){return"string"==typeof e&&/^data:image\/svg\+xml/i.test(e)}function Vd(e){let t=e.indexOf(",");return t>=0?decodeURIComponent(e.slice(t+1)):""}function Yd(e){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}function Wd(e){let t=[],n="",r=0;for(let i=0;i<e.length;i++){let o=e[i];"("===o&&r++,")"===o&&(r=Math.max(0,r-1)),";"===o&&0===r?(t.push(n),n=""):n+=o}return n.trim()&&t.push(n),t.map(e=>e.trim()).filter(Boolean)}function Gd(e){let t=Wd(e),n=null,r=null,i=null,o=[];for(let e of t){let t=e.indexOf(":");if(t<0)continue;let a=e.slice(0,t).trim().toLowerCase(),s=e.slice(t+1).trim();"box-shadow"===a?i=s:"filter"===a?n=s:"-webkit-filter"===a?r=s:o.push([a,s])}if(i){let e=function(e){let t=[],n="",r=0;for(let i=0;i<e.length;i++){let o=e[i];"("===o&&r++,")"===o&&(r=Math.max(0,r-1)),","===o&&0===r?(t.push(n.trim()),n=""):n+=o}n.trim()&&t.push(n.trim());let i=[];for(let e of t){if(/\binset\b/i.test(e))continue;let t=e.match(/-?\d+(?:\.\d+)?px/gi)||[],[n="0px",r="0px",o="0px"]=t;o=parseFloat(o)/2+"px";let a=e.replace(/-?\d+(?:\.\d+)?px/gi,"").replace(/\binset\b/gi,"").trim().replace(/\s{2,}/g," "),s=!!a&&","!==a;i.push(`drop-shadow(${n} ${r} ${o}${s?` ${a}`:""})`)}return i.join(" ")}(i);e&&(n=n?`${n} ${e}`:e,r=r?`${r} ${e}`:e)}let a=[...o];return n&&a.push(["filter",n]),r&&a.push(["-webkit-filter",r]),a.map(([e,t])=>`${e}:${t}`).join(";")}function Jd(e){return e=e.replace(/<style[^>]*>([\s\S]*?)<\/style>/gi,(e,t)=>e.replace(t,function(e){return e.replace(/([^{}]+)\{([^}]*)\}/g,(e,t,n)=>`${t}{${Gd(n)}}`)}(t))),e=e.replace(/style=(['"])([\s\S]*?)\1/gi,(e,t,n)=>`style=${t}${Gd(n)}${t}`)}function _d(e,t){let n=e=>Wd(e).map(e=>{let n=e.indexOf(":");if(n<0)return e;let r=e.slice(0,n).trim().toLowerCase();return"text-shadow"===r||t&&"box-shadow"===r?`${r}:${function(e){let t=[],n=0,r=0;for(let i=0;i<e.length;i++){let o=e[i];"("===o?n++:")"===o?n=Math.max(0,n-1):","===o&&0===n&&(t.push(e.slice(r,i)),r=i+1)}return t.push(e.slice(r)),t.map(e=>{let t=0,n=0,r="",i=0;for(;i<e.length;){let o=e[i];if("("===o?t++:")"===o&&(t=Math.max(0,t-1)),0===t&&(0===i||" "===e[i-1])){let t=/^-?\d*\.?\d+px/.exec(e.slice(i));if(t){n++,r+=2===n?-parseFloat(t[0])+"px":t[0],i+=t[0].length;continue}}r+=o,i++}return r}).join(",")}(e.slice(n+1))}`:e}).join(";");return e=(e=e.replace(/<style[^>]*>([\s\S]*?)<\/style>/gi,(e,t)=>e.replace(t,t.replace(/([^{}]+)\{([^}]*)\}/g,(e,t,r)=>`${t}{${n(r)}}`)))).replace(/style=(['"])([\s\S]*?)\1/gi,(e,t,r)=>`style=${t}${n(r)}${t}`)}async function Xd(e){if(!/(?:box-shadow|text-shadow)\s*:[^;"}]*px/i.test(e))return{svg:e,naturalOnly:!1};let{native:t,flippedY:n}=await(th||(th=(async()=>{try{let e='<svg xmlns="http://www.w3.org/2000/svg" width="8" height="20"><foreignObject width="8" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="width:4px;height:4px;margin-top:8px;background:#000;box-shadow:0 8px 0 0 #000"></div></foreignObject></svg>',t=new Image;t.decoding="sync",t.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`,await t.decode();let n=document.createElement("canvas");n.width=8,n.height=20;let r=n.getContext("2d",{willReadFrequently:!0});r.drawImage(t,0,0);let i=r.getImageData(2,18,1,1).data[3]>128,o=r.getImageData(2,2,1,1).data[3]>128;return{native:i||o,flippedY:o&&!i}}catch{return{native:!1,flippedY:!1}}})(),th));try{let r=e;return t||(r=Jd(r)),n&&(r=_d(r,t)),{svg:r,naturalOnly:!0}}catch{return{svg:e,naturalOnly:!0}}}async function Kd(e,t){let{width:n,height:r,scale:i=1,dpr:o=1,meta:a={},backgroundColor:s,crop:l=null}=t,c=e,u=!1,f=!1;if(l&&!jd(e))throw new RangeError("[snapdom] canvas crop requires an SVG capture payload");if(jd(e)){let t=(function(e){let t=e.indexOf(",");if(t<0)return"";let n=e.slice(t+1,t+1201).replace(/%[0-9A-Fa-f]?$/,"");try{return decodeURIComponent(n)}catch{return""}}(e).match(/<svg\b[^>]*>/i)||[])[0]||"",n=parseFloat((t.match(/\bwidth="([\d.]+)/i)||[])[1]),r=parseFloat((t.match(/\bheight="([\d.]+)/i)||[])[1]),i=Number.isFinite(n)&&Number.isFinite(r)&&n>0&&r>0&&Math.min(1,Zd/n,Zd/r,Math.sqrt(eh/(n*r)))<1;if(l||i||Hd())try{let t=Vd(e);if(l&&(t=function(e,t){let n=["x","y","width","height"].map(e=>Number(t?.[e]));if(!n.every(Number.isFinite)||n[2]<=0||n[3]<=0)throw new RangeError("[snapdom] canvas crop requires finite x/y and positive width/height");let r=e.match(/<svg\b[^>]*>/i);if(!r)throw new Error("[snapdom] cannot crop a non-SVG capture");let i=r[0],o=(i.match(/\bviewBox="([^"]+)"/i)||[])[1],a=String(o||"").trim().split(/[\s,]+/).map(Number);if(4!==a.length||!a.every(Number.isFinite)||a[2]<=0||a[3]<=0)throw new Error("[snapdom] cannot crop an SVG without a finite viewBox");let[s,l,c,u]=a,f=Math.max(s,n[0]),d=Math.max(l,n[1]),h=Math.min(s+c,n[0]+n[2]),p=Math.min(l+u,n[1]+n[3]);if(!(h>f&&p>d))throw new RangeError("[snapdom] canvas crop does not intersect the SVG viewBox");let g=parseFloat((i.match(/\bwidth="([\d.]+)/i)||[])[1]),m=parseFloat((i.match(/\bheight="([\d.]+)/i)||[])[1]),y=Number.isFinite(g)&&g>0?g/c:1,v=Number.isFinite(m)&&m>0?m/u:1,A=Math.max(1,(h-f)*y),b=Math.max(1,(p-d)*v),w=i.replace(/(\bwidth=")[^"]*/i,`$1${A}`).replace(/(\bheight=")[^"]*/i,`$1${b}`).replace(/(\bviewBox=")[^"]*/i,`$1${f} ${d} ${h-f} ${p-d}`);return e.replace(i,w)}(t,l)),Hd()){let e=await Xd(t);t=e.svg,u=e.naturalOnly,f=/@font-face|data:image\//i.test(t)}(i||l)&&(t=function(e){try{let t=e.match(/<svg\b[^>]*>/i);if(!t)return e;let n=t[0],r=parseFloat((n.match(/\bwidth="([\d.]+)/i)||[])[1]),i=parseFloat((n.match(/\bheight="([\d.]+)/i)||[])[1]);if(!Number.isFinite(r)||!Number.isFinite(i)||r<=0||i<=0)return e;let o=Math.min(1,Zd/r,Zd/i,Math.sqrt(eh/(r*i)));if(o>=1)return e;let a=Math.max(1,Math.floor(r*o)),s=Math.max(1,Math.floor(i*o));return console.warn(`[snapDOM] Capture ${Math.round(r)}×${Math.round(i)}px exceeds the browser image-decode limit (${Zd}px/side); downscaling to ${a}×${s}px. Lower \`scale\` or set \`width\`/\`height\` to control output size.`),e.replace(n,n.replace(/(\bwidth=")[\d.]+/i,`$1${a}`).replace(/(\bheight=")[\d.]+/i,`$1${s}`))}catch{return e}}(t)),c=Yd(t)}catch(t){if(l)throw t;c=e}}let d=new Image;d.loading="eager",d.decoding="sync",d.crossOrigin="anonymous",d.src=c,await d.decode(),Hd()&&await async function(e,t){e.setAttribute("data-snapdom-internal",""),e.style.cssText="position:fixed;left:-99999px;top:-99999px;pointer-events:none",document.body.appendChild(e);try{let n=document.createElement("canvas");n.width=16,n.height=16;let r=()=>new Promise(e=>{requestAnimationFrame(e),setTimeout(e,50)}),i=n.getContext("2d",{willReadFrequently:!0});if(!i)return await r(),void await r();let o=performance.now()+(t?600:150);for(;;){i.clearRect(0,0,16,16);try{i.drawImage(e,0,0,16,16)}catch{return}let t=i.getImageData(0,0,16,16).data,n=!1;for(let e=3;e<t.length;e+=4)if(t[e]>0){n=!0;break}if(n||performance.now()>o)return;await r()}}finally{try{e.remove()}catch{}}}(d,f);let h,p,g=d.naturalWidth,m=d.naturalHeight,y=l?g:Number.isFinite(a.vbW)?a.vbW:Number.isFinite(a.w0)?a.w0:g,v=l?m:Number.isFinite(a.vbH)?a.vbH:Number.isFinite(a.h0)?a.h0:m,A=Number.isFinite(n),b=Number.isFinite(r);if(A&&b)h=Math.max(1,n),p=Math.max(1,r);else if(A){h=n,p=v*(n/Math.max(1,y))}else if(b){p=r,h=y*(r/Math.max(1,v))}else h=g,p=m;h*=i,p*=i;let w=h*o,I=p*o,x=Math.max(w/Zd,I/Zd,Math.sqrt(w*I/eh));x>1&&(console.warn(`[snapDOM] Output ${Math.round(w)}×${Math.round(I)}px exceeds the browser canvas limit (${Zd}px/side); downscaling. Lower \`scale\`/\`dpr\` or set \`width\`/\`height\`.`),h/=x,p/=x);let C=document.createElement("canvas");C.width=h*o,C.height=p*o,C.style.width=`${h}px`,C.style.height=`${p}px`;let B=C.getContext("2d");if(1!==o&&B.scale(o,o),s&&(B.save(),B.fillStyle=s,B.fillRect(0,0,h,p),B.restore()),!u||Math.round(h*o)===g&&Math.round(p*o)===m)B.drawImage(d,0,0,h,p);else{let e=document.createElement("canvas");e.width=g,e.height=m,e.getContext("2d").drawImage(d,0,0),B.drawImage(e,0,0,h,p)}return C}_f(zd,{decodeSvgFromDataURL:()=>Vd,encodeSvgToDataURL:()=>Yd,fixSafariShadows:()=>Xd,toCanvas:()=>Kd});var Zd,eh,th,nh=Jf(()=>{qd(),Zd=16384,eh=268435456,th=null}),rh={};async function ih(e,t){let n=await Kd(e,t),r=await new Promise(e=>{let r=()=>e(n.toDataURL(`image/${t.format}`,t.quality));try{n.toBlob(t=>{if(!t)return r();let n=new FileReader;n.onload=()=>e(String(n.result||"")),n.onerror=r,n.readAsDataURL(t)},`image/${t.format}`,t.quality)}catch{r()}}),i=new Image;return i.src=r,await i.decode(),i.style.width=n.width/t.dpr+"px",i.style.height=n.height/t.dpr+"px",i}_f(rh,{rasterize:()=>ih});var oh=Jf(()=>{nh()}),ah={};async function sh(e,t){let{scale:n=1,width:r,height:i,meta:o={}}=t,a=Number.isFinite(r),s=Number.isFinite(i),l=Number.isFinite(n)&&1!==n||a||s;if(Hd()&&l)try{let{svg:t}=await Xd(Vd(e)),l=(t.match(/<svg\b[^>]*>/i)||[])[0]||"",c=parseFloat((l.match(/\bwidth="([\d.]+)/i)||[])[1]),u=parseFloat((l.match(/\bheight="([\d.]+)/i)||[])[1]);if(!Number.isFinite(c)||!Number.isFinite(u))throw new Error("svg without dimensions");let f,d,h=Number.isFinite(o.vbW)?o.vbW:Number.isFinite(o.w0)?o.w0:c,p=Number.isFinite(o.vbH)?o.vbH:Number.isFinite(o.h0)?o.h0:u;a&&s?(f=r,d=i):a?(f=r,d=Math.round(p*(r/Math.max(1,h)))):s?(d=i,f=Math.round(h*(i/Math.max(1,p)))):(f=Math.round(c*n),d=Math.round(u*n));let g=t.replace(/width="[^"]*"/,`width="${f}"`).replace(/height="[^"]*"/,`height="${d}"`),m=new Image;return m.decoding="sync",m.loading="eager",m.src=Yd(g),await m.decode(),m.style.width=`${f}px`,m.style.height=`${d}px`,m}catch(n){return Od(t,"safari vector toImg failed, falling back to PNG",n),ih(e,{...t,format:"png",quality:1,meta:o})}let c=new Image;if(c.decoding="sync",c.loading="eager",c.src=e,await c.decode(),a&&s)c.style.width=`${r}px`,c.style.height=`${i}px`;else if(a){let e=Number.isFinite(o.vbW)?o.vbW:Number.isFinite(o.w0)?o.w0:c.naturalWidth,t=Number.isFinite(o.vbH)?o.vbH:Number.isFinite(o.h0)?o.h0:c.naturalHeight,n=r/Math.max(1,e);c.style.width=`${r}px`,c.style.height=`${Math.round(t*n)}px`}else if(s){let e=Number.isFinite(o.vbW)?o.vbW:Number.isFinite(o.w0)?o.w0:c.naturalWidth,t=Number.isFinite(o.vbH)?o.vbH:Number.isFinite(o.h0)?o.h0:c.naturalHeight,n=i/Math.max(1,t);c.style.height=`${i}px`,c.style.width=`${Math.round(e*n)}px`}else{let r=Math.round(c.naturalWidth*n),i=Math.round(c.naturalHeight*n);if(c.style.width=`${r}px`,c.style.height=`${i}px`,"string"==typeof e&&e.startsWith("data:image/svg+xml"))try{let t=decodeURIComponent(e.split(",")[1]).replace(/width="[^"]*"/,`width="${r}"`).replace(/height="[^"]*"/,`height="${i}"`);e=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(t)}`,c.src=e}catch(e){Od(t,"SVG width/height patch in toImg failed",e)}}return c}_f(ah,{toImg:()=>sh,toSvg:()=>sh});var lh=Jf(()=>{$d(),oh(),nh()}),ch={};async function uh(e,t){let n=t.type;if("svg"===n){let t=decodeURIComponent(e.split(",")[1]);return new Blob([t],{type:"image/svg+xml"})}let r=await Kd(e,t);return new Promise(e=>r.toBlob(t=>e(t),`image/${n}`,t.quality))}_f(ch,{toBlob:()=>uh});var fh=Jf(()=>{nh()}),dh={};async function hh(e,t){let n=new File([e],t,{type:e.type});if(!navigator.canShare?.({files:[n]}))return!1;try{await navigator.share({files:[n],title:t})}catch(e){if("AbortError"!==e.name)return!1}return!0}async function ph(e,t){let n=new Set(["png","jpeg","jpg","webp","svg"]),r=(t?.type||"").toLowerCase(),i=n.has(r)?r:"",o=(t?.format||i||"").toLowerCase(),a="jpg"===o?"jpeg":o||"png",s=t?.filename||`snapdom.${a}`,l={...t||{},format:a,type:a};l.dpr=1;let c=function(){if(typeof navigator>"u")return!1;if(navigator.userAgentData)return"iOS"===navigator.userAgentData.platform;let e=navigator.userAgent||"",t=/iPhone|iPad|iPod/.test(e),n=navigator.maxTouchPoints>2&&/Macintosh/.test(e);return t||n}();if("svg"===a){let t=await uh(e,{...l,type:"svg"});if(c&&await hh(t,s))return;let n=URL.createObjectURL(t),r=document.createElement("a");return r.href=n,r.download=s,document.body.appendChild(r),r.click(),URL.revokeObjectURL(n),void r.remove()}let u=await Kd(e,l);if(c){let e=`image/${a}`,n=await new Promise(n=>u.toBlob(n,e,t?.quality));if(n&&await hh(n,s))return}let f=document.createElement("a");f.href=u.toDataURL(`image/${a}`,t?.quality),f.download=s,document.body.appendChild(f),f.click(),f.remove()}_f(dh,{download:()=>ph});var gh=Jf(()=>{fh(),nh(),qd()});$d(),$d(),Zf();var mh=new WeakMap,yh=new Map,vh=0;function Ah(){vh++,yh.size>2e3&&yh.clear()}function bh(e){let t=e&&(1===e.nodeType?e:e.parentElement);return!!(t&&t.closest&&t.closest("[data-snapdom-sandbox],[data-snapdom-internal],[data-snapdom]"))}function wh(e){for(let t of e)if(!bh(t.target)){if("childList"===t.type){let e=!0;for(let n of t.addedNodes)if(!bh(n)){e=!1;break}if(e)for(let n of t.removedNodes)if(!bh(n)){e=!1;break}if(e)continue}return!0}return!1}var Ih=!1;var xh=["mask","mask-image","-webkit-mask","-webkit-mask-image","mask-source","mask-box-image-source","mask-border-source","-webkit-mask-box-image-source","border-image","border-image-source"];function Ch(e){let t=mh.get(e);if(t&&t.epoch===vh){let e=t.snapshot&&t.snapshot.__needsBgInline;if(void 0!==e)return e}return!0}function Bh(e,t,n){try{if("function"==typeof e.computedStyleMap){let t=e.computedStyleMap().get("width");if(null!=t)return!Sh(String(t).trim().toLowerCase())}}catch{}let r=e.style&&(e.style.width||e.style.inlineSize);return!(!r||Sh(String(r).trim().toLowerCase()))||!!function(e,t){let n=e.getBoundingClientRect().width-(parseFloat(t.paddingLeft)||0)-(parseFloat(t.paddingRight)||0)-(parseFloat(t.borderLeftWidth)||0)-(parseFloat(t.borderRightWidth)||0);if(!(n>0))return!1;let r=1/0,i=-1/0,o=null;for(let t=e.firstChild;t;t=t.nextSibling){let e;if(3===t.nodeType){if(!/\S/.test(t.nodeValue||"")||(o=o||document.createRange(),o.selectNode(t),e=o.getBoundingClientRect(),!e.width&&!e.height))continue}else{if(1!==t.nodeType)continue;{let n=vd(t);if("none"===n.display||"absolute"===n.position||"fixed"===n.position)continue;e=t.getBoundingClientRect()}}e.left<r&&(r=e.left),e.right>i&&(i=e.right)}return i!==-1/0&&i-r<n-.5}(e,t)&&(n||function(e,t){let n=e.parentElement;if(!n)return!1;let r=vd(n),i=n.getBoundingClientRect().width-(parseFloat(r.paddingLeft)||0)-(parseFloat(r.paddingRight)||0)-(parseFloat(r.borderLeftWidth)||0)-(parseFloat(r.borderRightWidth)||0)-(parseFloat(t.marginLeft)||0)-(parseFloat(t.marginRight)||0);return i>0&&Math.abs(e.getBoundingClientRect().width-i)>.5}(e,t))}var Eh=new Set(["auto","min-content","max-content","stretch","fill-available","-webkit-fill-available"]);function Sh(e){return Eh.has(e)||e.startsWith("fit-content")}var kh=new WeakMap;function Fh(e,t=null,n={}){let r=mh.get(e),i=!(!n||!n.embedFonts),o=n&&n.excludeStyleProps||null;if(r&&r.epoch===vh&&r.embedFonts===i&&r.excludeStyleProps===o)return r.snapshot;let a=t||getComputedStyle(e),s=function(e,t={}){let n={},r=t.excludeStyleProps;for(let t=0;t<e.length;t++){let i=e[t];if(gd(i)||r&&(r instanceof RegExp&&r.test(i)||"function"==typeof r&&r(i)))continue;let o=e.getPropertyValue(i);("background-image"===i||"content"===i)&&o.includes("url(")&&!o.includes("data:")&&(o="none"),n[i]=o}let i=["text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-thickness","text-underline-offset","text-decoration-skip-ink"];for(let t of i)if(!n[t])try{let r=e.getPropertyValue(t);r&&(n[t]=r)}catch{}let o=["-webkit-text-stroke","-webkit-text-stroke-width","-webkit-text-stroke-color","paint-order"];for(let t of o)if(!n[t])try{let r=e.getPropertyValue(t);r&&(n[t]=r)}catch{}if(t.embedFonts){let t=["font-feature-settings","font-variation-settings","font-kerning","font-variant","font-variant-ligatures","font-optical-sizing"];for(let r of t)if(!n[r])try{let t=e.getPropertyValue(r);t&&(n[r]=t)}catch{}}try{"hidden"===(n["content-visibility"]||e.getPropertyValue("content-visibility"))&&(n["content-visibility"]="hidden")}catch{}let a=!1;{let t=e.getPropertyValue("background-image");if(t&&"none"!==t&&(a=!0),!a){let t=e.getPropertyValue("background-color");t&&"rgba(0, 0, 0, 0)"!==t&&"transparent"!==t&&(a=!0)}if(!a)for(let t of xh){let n=e.getPropertyValue(t);if(n&&"none"!==n){a=!0;break}}if(!a){let t=e.getPropertyValue("background");t&&/url\s*\(/i.test(t)&&(a=!0)}}Object.defineProperty(n,"__needsBgInline",{value:a,enumerable:!1});let s=parseFloat(e.getPropertyValue("border-top-width")||0)||0,l=parseFloat(e.getPropertyValue("border-right-width")||0)||0,c=parseFloat(e.getPropertyValue("border-bottom-width")||0)||0,u=parseFloat(e.getPropertyValue("border-left-width")||0)||0;if(0===s&&0===l&&0===c&&0===u){let t=(e.getPropertyValue("border-image-source")||"").trim(),r=t&&"none"!==t,i=["border","border-top","border-right","border-bottom","border-left","border-width","border-style","border-color","border-top-width","border-top-style","border-top-color","border-right-width","border-right-style","border-right-color","border-bottom-width","border-bottom-style","border-bottom-color","border-left-width","border-left-style","border-left-color","border-block","border-block-width","border-block-style","border-block-color","border-inline","border-inline-width","border-inline-style","border-inline-color"];for(let e of i)delete n[e];r||(n.border="none")}return n}(a,n);return function(e,t,n){if(e instanceof HTMLElement&&e.style&&e.style.height)return;let r=e.tagName&&e.tagName.toLowerCase();if(!r||!["div","section","article","main","aside","header","footer","nav"].includes(r)||t.aspectRatio&&"none"!==t.aspectRatio&&"auto"!==t.aspectRatio)return;let i=t.display||"";if(i.includes("flex")||i.includes("grid"))return;let o=t.position;if("absolute"===o||"fixed"===o||"sticky"===o||"none"!==t.transform||function(e){return!!(e.backgroundImage&&"none"!==e.backgroundImage||e.backgroundColor&&"rgba(0, 0, 0, 0)"!==e.backgroundColor&&"transparent"!==e.backgroundColor||(parseFloat(e.borderTopWidth)||0)>0||(parseFloat(e.borderBottomWidth)||0)>0||(parseFloat(e.paddingTop)||0)>0||(parseFloat(e.paddingBottom)||0)>0)||"visible"!==(e.overflowBlock||e.overflowY||"visible")}(t)||Nh(e))return;let a=t.overflowX||t.overflow||"visible",s=t.overflowY||t.overflow||"visible";if("visible"!==a||"visible"!==s)return;let l=t.clip;if(l&&"auto"!==l&&"rect(auto, auto, auto, auto)"!==l||"hidden"===t.visibility||"0"===t.opacity||!function(e){for(let t=e.firstChild;t;t=t.nextSibling)if(3===t.nodeType&&/\S/.test(t.nodeValue))return!0;let t=e.firstElementChild,n=e.lastElementChild;if(t&&"BR"===t.tagName||n&&"BR"===n.tagName)return!0;for(let t=e.firstElementChild;t;t=t.nextElementSibling){let e=vd(t);if("none"===e.display)continue;let n=e.position;if("absolute"!==n&&"fixed"!==n)return!0}return!1}(e))return;let c=parseFloat(t.height),u=function(e){let t=e.getBoundingClientRect().top,n=-1/0,r=null;for(let t=e.firstChild;t;t=t.nextSibling){if(3===t.nodeType){if(!/\S/.test(t.nodeValue||""))continue;r=r||document.createRange(),r.selectNode(t);let e=r.getBoundingClientRect();(e.width||e.height)&&(n=Math.max(n,e.bottom));continue}if(1!==t.nodeType)continue;let e=vd(t);if("none"===e.display)continue;let i=e.position;"absolute"===i||"fixed"===i||e.float&&"none"!==e.float||(n=Math.max(n,t.getBoundingClientRect().bottom))}return n===-1/0?NaN:n-t}(e);Number.isFinite(c)&&Number.isFinite(u)&&Math.abs(c-u)>2||(delete n.height,delete n["block-size"])}(e,a,s),mh.set(e,{epoch:vh,snapshot:s,embedFonts:i,excludeStyleProps:o}),s}async function Dh(e,t,n,r){if("STYLE"===e.tagName)return;let i=function(e,t){return e&&e.session&&e.persist?e:e&&(e.styleMap||e.styleCache||e.nodeMap)?{session:e,persist:{snapshotKeyCache:yh,defaultStyle:Kf.defaultStyle,baseStyle:Kf.baseStyle,image:Kf.image,resource:Kf.resource,background:Kf.background,font:Kf.font},options:t||{}}:{session:Kf.session,persist:{snapshotKeyCache:yh,defaultStyle:Kf.defaultStyle,baseStyle:Kf.baseStyle,image:Kf.image,resource:Kf.resource,background:Kf.background,font:Kf.font},options:e||t||{}}}(n,r),o=i.options&&i.options.cache||"auto";"disabled"!==o&&function(e=document.documentElement){if(Ih)return;Ih=!0;let t=e=>{wh(e)&&Ah()};try{new MutationObserver(t).observe(e,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{new MutationObserver(t).observe(document.head,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{let e=document.fonts;e&&(e.addEventListener?.("loadingdone",Ah),e.ready?.then(()=>Ah()).catch(()=>{}))}catch{}}(document.documentElement),"disabled"===o&&!i.session.__bumpedForDisabled&&(Ah(),yh.clear(),i.session.__bumpedForDisabled=!0);let{session:a,persist:s}=i;if(!a.styleCache.has(e)){let t=null;try{t=getComputedStyle(e)}catch{}a.styleCache.set(e,t||getComputedStyle(document.documentElement))}let l=a.styleCache.get(e);e.getAttribute?.("style")&&function(e,t,n){if(e.style&&0!==e.style.length)for(let r=0;r<e.style.length;r++){let i=e.style[r],o=n.getPropertyValue(i);o&&t.style.setProperty(i,o)}}(e,t,l);let c=l.getPropertyValue("animation-name");t&&t.style&&c&&"none"!==c&&t.style.setProperty("animation","none","important");let u=Fh(e,l,i.options),f=Nh(e);if(f){let e=l.getPropertyValue("min-width");(!e||"auto"===e||"0px"===e)&&(u["min-width"]="0px")}let d=e.tagName?.toLowerCase()||"div",h=function(e){let t=kh.get(e);return t||(t=Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:e[0]>t[0]?1:0).map(([e,t])=>`${e}:${t}`).join(";"),kh.set(e,t),t)}(u),p=!0;if(md(d,(u.display||"").toLowerCase())){p=function(e){for(let t=e.firstChild;t;t=t.nextSibling){if(3===t.nodeType&&/\S/.test(t.nodeValue||""))return!0;if(1===t.nodeType){let e=vd(t).position;if("absolute"!==e&&"fixed"!==e)return!0}}return!1}(e),p&&function(e,t,n){let r=(t.display||"").toLowerCase();if("inline"===r||kd.has(e))return!1;if(n)return!0;if("none"!==(t.float||"none").toLowerCase())return!1;let i=(t.position||"static").toLowerCase();return"absolute"!==i&&"fixed"!==i&&!Td.has(r)}(d,u,f)&&Bh(e,l,f)&&(p=!1),h=`${h}|${d}${p?"|c":""}${f?"|f":""}`;let t=u["text-wrap-mode"]||u["white-space"]||"";p&&"nowrap"!==t&&"pre"!==t&&(a.reconcileRisk=(a.reconcileRisk||0)+1)}let g=s.snapshotKeyCache.get(h);void 0===g&&(g=yd(u,d,p,f),s.snapshotKeyCache.set(h,g)),a.styleMap.set(t,g)}function Nh(e){let t=e.parentElement;if(!t)return!1;let n=vd(t).display||"";return n.includes("flex")||n.includes("grid")}Ld();var Mh=["fill","stroke","color","background-color","stop-color"],Th=new Set(["symbol","defs","pattern","marker","linearGradient","radialGradient","filter"]);function Qh(e){let t=e;for(;t&&1===t.nodeType;){if("http://www.w3.org/2000/svg"===t.namespaceURI){if("mask"===t.localName||"clipPath"===t.localName)return!1;if(Th.has(t.localName))return!0}t=t.parentNode}return!1}var Lh=new Map;function Rh(e,t){if(1!==e?.nodeType||1!==t?.nodeType||Qh(e))return;let n=e.getAttribute?.("style"),r=!(!n||!n.includes("var("));if(!r&&e.attributes?.length){let t=e.attributes;for(let e=0;e<t.length;e++){let n=t[e];if(n&&"string"==typeof n.value&&n.value.includes("var(")){r=!0;break}}}let i=null;if(r)try{i=getComputedStyle(e)}catch{}if(r){let n=e.style;if(n&&n.length){let e=new Set;for(let r=0;r<n.length;r++){let o=n[r];if(e.has(o))continue;e.add(o);let a=n.getPropertyValue(o);if(!a||!a.includes("var("))continue;let s=i&&i.getPropertyValue(o);if(s)try{t.style.setProperty(o,s.trim(),n.getPropertyPriority(o))}catch{}}}}if(r&&e.attributes?.length){let n=e.attributes;for(let e=0;e<n.length;e++){let r=n[e];if(!r||"string"!=typeof r.value||!r.value.includes("var("))continue;let o=r.name,a=i&&i.getPropertyValue(o);if(a)try{t.style.setProperty(o,a.trim())}catch{}}}if(!r){if(!i)try{i=getComputedStyle(e)}catch{i=null}if(!i)return;let n=e.namespaceURI||"html",r=function(e,t){let n=t+"::"+e.toLowerCase(),r=Lh.get(n);if(r)return r;let i=document,o="http://www.w3.org/2000/svg"===t?i.createElementNS(t,e):i.createElement(e),a=i.createElement("div");a.setAttribute("data-snapdom-internal",""),a.style.cssText="position:absolute;left:-99999px;top:-99999px;contain:strict;display:block;",a.appendChild(o),i.documentElement.appendChild(a);let s=getComputedStyle(o),l={};for(let e of Mh)l[e]=s.getPropertyValue(e)||"";return a.remove(),Lh.set(n,l),l}(e.tagName,n);for(let e of Mh){let n=i.getPropertyValue(e)||"",o=r[e]||"";if(n&&n!==o)try{t.style.setProperty(e,n.trim())}catch{}}}}function Uh(e){return!!(!e||e.startsWith("data:")||e.startsWith("blob:")||/^data:image\/(gif|png|svg)/.test(e)&&e.length<200)}$d(),$d(),Zf(),fd(),fd();var Hh="img[data-src], img[data-lazy-src], img[data-original], img[data-hi-res-src], img[data-srcset], img[data-lazy-srcset]";var qh=/^image\/(jpeg|jpg|png|gif|webp|avif|apng|svg\+xml|bmp|x-icon|vnd\.microsoft\.icon)\s*(;|$)/i;function Oh(e,t){if(!e)return null;let n=0;try{n=t?t.getBoundingClientRect().width||t.width:0}catch{}n||(n=window.innerWidth||1e3);let r=[];for(let t of e.split(",")){let e=t.trim().split(/\s+/);if(!e[0])continue;let i=e[1]||"",o=1;/^\d*\.?\d+x$/i.test(i)?o=parseFloat(i):/^\d+w$/i.test(i)&&(o=parseInt(i,10)/n),r.push({url:e[0],d:o})}if(!r.length)return null;r.sort((e,t)=>e.d-t.d);let i=window.devicePixelRatio||1;return(r.find(e=>e.d>=i)||r[r.length-1]).url}function Ph(e,t){let n=e.currentSrc||"";if(n&&!Uh(n))return n;let r=t.querySelectorAll("source[srcset]"),i=null;for(let t of r){let n=t.getAttribute("srcset");if(!n||Uh(n))continue;let r=t.getAttribute("type");if(r&&!qh.test(r.trim()))continue;let o=t.getAttribute("media");if(o)try{if(window.matchMedia(o).matches)return Oh(n,e)}catch{}i||(i=Oh(n,e))}return i}function $h(e){let t=[e.getAttribute("data-src"),e.getAttribute("data-lazy-src"),e.getAttribute("data-original"),e.getAttribute("data-hi-res-src")];for(let e of t)if(e&&!Uh(e))return e;let n=e.getAttribute("data-srcset")||e.getAttribute("data-lazy-srcset");if(n){let e=n.split(",")[0].trim().split(/\s+/)[0];if(e&&!Uh(e))return e}return null}async function zh(e,t={}){if(!e||1!==e?.nodeType||!1===t.resolvePicturePlaceholders)return null;let{timeout:n,concurrency:r,resolveLazySrc:i,silent:o,useProxy:a}=function(e={}){let t=e.pictureResolver&&"object"==typeof e.pictureResolver?e.pictureResolver:{};return{timeout:t.timeout??5e3,concurrency:t.concurrency??4,resolveLazySrc:!1!==t.resolveLazySrc,silent:t.silent??!1,useProxy:"string"==typeof e.useProxy?e.useProxy:""}}(t);if(!function(e,t){return!!(e&&1===e?.nodeType&&(e.matches?.("picture")||e.querySelector("picture")||t&&(e.matches?.(Hh)||e.querySelector(Hh))))}(e,i))return null;let s=[],l=[];async function c(e){let t=await sd(e,{as:"dataURL",timeout:n,useProxy:a,silent:!0});return t.ok?t.data:null}let u=Array.from(e.querySelectorAll("picture"));e.matches?.("picture")&&u.unshift(e);for(let e of u){let t=e.querySelector("img");if(!t)continue;if(!Uh(t.getAttribute("src")||""))continue;let n=Ph(t,e);n&&l.push(async()=>{let r=await c(n);if(!r)return void(o||console.warn(`[snapdom:picture-resolver] Failed to fetch: ${n.slice(0,60)}`));let i=t.getAttribute("src"),a=t.getAttribute("srcset"),l=t.getAttribute("sizes"),u=[];t.src=r,t.setAttribute("src",r),t.removeAttribute("srcset"),t.removeAttribute("sizes");let f=e.querySelectorAll("source");for(let e of f)u.push({el:e,parent:e.parentElement,next:e.nextSibling}),e.remove();s.push(()=>{null!==i?t.setAttribute("src",i):t.removeAttribute("src"),null!==a&&t.setAttribute("srcset",a),null!==l&&t.setAttribute("sizes",l);for(let{el:e,parent:t,next:n}of u)t&&t.insertBefore(e,n)})})}if(i){let t=Array.from(e.querySelectorAll("img"));"img"===e.localName&&t.unshift(e);for(let e of t){if(e.closest("picture")&&Uh(e.getAttribute("src")||""))continue;let t=e.getAttribute("src")||"",n=$h(e);n&&Uh(t)&&l.push(async()=>{let t=await c(n);if(!t)return;let r=e.getAttribute("src");e.src=t,e.setAttribute("src",t),e.removeAttribute("srcset"),e.removeAttribute("sizes"),s.push(()=>{null!==r?e.setAttribute("src",r):e.removeAttribute("src")})})}}return 0===l.length?null:(await async function(e){for(let t=0;t<e.length;t+=r){let n=e.slice(t,t+r);await Promise.allSettled(n.map(e=>e()))}}(l),async function(){for(let e of s)try{e()}catch{}})}function jh(e,t,n){return n?Promise.all(e.map(e=>new Promise(n=>t(e,n)))):Promise.all(e.map(e=>new Promise(r=>{!function i(){Rd(n=>{!n||"function"!=typeof n.timeRemaining||n.timeRemaining()>0?t(e,r):i()},{fast:n})}()})))}function Vh(e,t,n){return e?(e=(e=(e=(e=(e=e.replace(/:host\(([^)]+)\)/g,(e,n)=>`:where(${t}:is(${n.trim()}))`)).replace(/:host\b/g,`:where(${t})`)).replace(/:host-context\(([^)]+)\)/g,(e,n)=>`:where(:where(${n.trim()}) ${t})`)).replace(/::slotted\(([^)]+)\)/g,(e,n)=>`:where(${t} ${n.trim()})`)).replace(/(^|})(\s*)([^@}{]+){/g,(e,r,i,o)=>{let a=function(e,t,n=!0,r){return e.split(",").map(e=>e.trim()).filter(Boolean).map(e=>{if(e.startsWith(":where(")||e.startsWith("@"))return e;let i=n?function(e,t){if(!(e=e.trim()))return e;let n=t?`[data-sd-slotted~="${t}"]`:"[data-sd-slotted]";return e.endsWith(":not([data-sd-slotted])")||e.endsWith(`:not(${n})`)?e:`${e}:not(${n})`}(e,r):e;return`:where(${t} ${i})`}).join(", ")}(o,t,!0,n);return`${r}${i}${a}{`}),e):""}function Yh(e,t){try{let n=getComputedStyle(e).getPropertyValue(t).trim();if(n)return n}catch{}try{let e=getComputedStyle(document.documentElement).getPropertyValue(t).trim();if(e)return e}catch{}return""}function Wh(e){let t=0,n=0;if(e.offsetWidth>0&&(t=e.offsetWidth),e.offsetHeight>0&&(n=e.offsetHeight),0===t||0===n)try{let r=getComputedStyle(e);if(0===t){let e=parseFloat(r.width);!isNaN(e)&&e>0&&(t=e)}if(0===n){let e=parseFloat(r.height);!isNaN(e)&&e>0&&(n=e)}}catch{}if(0===t||0===n)try{if(0===t){let n=parseFloat(e.getAttribute("width"));!isNaN(n)&&n>0&&(t=n)}if(0===n){let t=parseFloat(e.getAttribute("height"));!isNaN(t)&&t>0&&(n=t)}}catch{}if((0===t||0===n)&&(e.naturalWidth||e.naturalHeight))try{0===t&&e.naturalWidth>0&&(t=e.naturalWidth),0===n&&e.naturalHeight>0&&(n=e.naturalHeight)}catch{}return{width:t,height:n}}async function Gh(e,t,n){let r=await async function(e,t=3){let n=()=>{try{return e.contentDocument||e.contentWindow?.document||null}catch{return null}},r=n(),i=0;for(;i<t&&(!r||!r.body&&!r.documentElement);)await new Promise(e=>setTimeout(e,0)),r=n(),i++;return r&&(r.body||r.documentElement)?r:null}(e,3);if(!r)throw new Error("iframe document not accessible/ready");let{contentWidth:i,contentHeight:o,rect:a}=function(e){let t=e.getBoundingClientRect(),n=0,r=0,i=0,o=0;try{let t=getComputedStyle(e);n=parseFloat(t.borderLeftWidth)||0,r=parseFloat(t.borderRightWidth)||0,i=parseFloat(t.borderTopWidth)||0,o=parseFloat(t.borderBottomWidth)||0}catch{}return{contentWidth:Math.max(0,Math.round(t.width-(n+r))),contentHeight:Math.max(0,Math.round(t.height-(i+o))),rect:t}}(e),s=n?.snap;if(!s&&typeof window<"u"&&window.snapdom&&(s=window.snapdom),!s||"function"!=typeof s.toPng)throw new Error("[snapdom] iframe capture requires snapdom.toPng. Use snapdom(el) or pass options.snap. With ESM, assign window.snapdom = snapdom after import if using iframes.");let l,c={...n,scale:1,clip:null},u=function(e,t,n){let r=e.defaultView,i=r?r.scrollX:0,o=r?r.scrollY:0,a=e.body?e.body.scrollLeft:0,s=e.body?e.body.scrollTop:0,l=e.documentElement?e.documentElement.scrollLeft:0,c=e.documentElement?e.documentElement.scrollTop:0,u=0,f=0,d=0,h=0;try{let t=r&&e.body?r.getComputedStyle(e.body):null;t&&(u=(parseFloat(t.marginTop)||0)+(parseFloat(t.paddingTop)||0),f=(parseFloat(t.marginRight)||0)+(parseFloat(t.paddingRight)||0),d=(parseFloat(t.marginBottom)||0)+(parseFloat(t.paddingBottom)||0),h=(parseFloat(t.marginLeft)||0)+(parseFloat(t.paddingLeft)||0))}catch{}try{e.documentElement.setAttribute("data-sd-pinned","")}catch{}let p=e.createElement("style");return p.setAttribute("data-sd-iframe-pin",""),p.textContent=`html {margin: 0 !important;padding: 0 !important;width: ${t}px !important;height: ${n}px !important;min-width: ${t}px !important;min-height: ${n}px !important;box-sizing: border-box !important;overflow: hidden !important;background-clip: border-box !important;}body {margin: 0 !important;padding: ${u}px ${f}px ${d}px ${h}px !important;width: ${t}px !important;height: ${n}px !important;min-width: ${t}px !important;min-height: ${n}px !important;box-sizing: border-box !important;overflow: hidden !important;background-clip: border-box !important;}`,(e.head||e.documentElement).appendChild(p),()=>{try{p.remove()}catch{}try{e.documentElement.removeAttribute("data-sd-pinned")}catch{}try{r&&"function"==typeof r.scrollTo&&r.scrollTo(i,o),e.body&&(e.body.scrollLeft=a,e.body.scrollTop=s),e.documentElement&&(e.documentElement.scrollLeft=l,e.documentElement.scrollTop=c)}catch{}}}(r,i,o),f=Kf.session.nodeMap,d=Kf.session.styleMap,h=Kf.session.styleCache;try{l=await s.toPng(r.documentElement,c)}finally{u(),Kf.session.nodeMap=f,Kf.session.styleMap=d,Kf.session.styleCache=h}l.style.display="block",l.style.width=`${i}px`,l.style.height=`${o}px`;let p=document.createElement("div");return t.nodeMap.set(p,e),Dh(e,p,t,n),p.style.overflow="hidden",p.style.display="block",p.style.width||(p.style.width=`${Math.round(a.width)}px`),p.style.height||(p.style.height=`${Math.round(a.height)}px`),p.appendChild(l),p}var Jh=new Xf(80);async function _h(e){if(Kf.resource?.has(e))return Kf.resource.get(e);if(Jh.has(e))return Jh.get(e);let t=(async()=>{let t=await sd(e,{as:"dataURL",silent:!0});if(!t.ok||"string"!=typeof t.data)throw new Error(`[snapDOM] Failed to read blob URL: ${e}`);return Kf.resource?.set(e,t.data),t.data})();Jh.set(e,t);try{let n=await t;return Jh.set(e,n),n}catch(t){throw Jh.delete(e),t}}var Xh=/\bblob:[^)"'\s]+/g;async function Kh(e){if(!e||-1===e.indexOf("blob:"))return e;let t=Array.from(new Set(e.match(Xh)||[]));if(0===t.length)return e;let n=e;for(let e of t)try{let t=await _h(e);n=n.split(e).join(t)}catch{}return n}function Zh(e){return"string"==typeof e&&e.startsWith("blob:")}function ep(e){return(e||"").split(",").map(e=>e.trim()).filter(Boolean).map(e=>{let t=e.match(/^(\S+)(\s+.+)?$/);return t?{url:t[1],desc:t[2]||""}:null}).filter(Boolean)}function tp(e){return e.map(e=>e.desc?`${e.url} ${e.desc.trim()}`:e.url).join(", ")}function np(e,t){let n=e.querySelectorAll?Array.from(e.querySelectorAll(t)):[];return e.matches?.(t)&&n.unshift(e),n}qd();var rp=new Map,ip=new Set(["IFRAME"]);function op(e,t){rp.set(String(e).toUpperCase(),t)}function ap(e){let{width:t,height:n}=Wh(e),r=t,i=n;if(!r||!i){let t=e.getBoundingClientRect();r=r||t.width||0,i=i||t.height||0}let o=document.createElement("div");return o.style.cssText=`display:inline-block;width:${r}px;height:${i}px;visibility:hidden;`,o}var sp=200,lp=new Set(["img","canvas","video","iframe","object","embed"]);function cp(e,t){return e.right>=t.left-sp&&e.left<=t.right+sp&&e.bottom>=t.top-sp&&e.top<=t.bottom+sp}async function up(e,t,n){if(!e)throw new Error("Invalid node");let r,i=new Set,o=null,a=null;if(e.nodeType===Node.ELEMENT_NODE){let n=(e.localName||e.tagName||"").toLowerCase();if("snapdom-sandbox"===e.id||e.hasAttribute("data-snapdom-sandbox")||wd.has(n))return null;if("foreignobject"===n&&e.parentElement?.closest?.("foreignObject"))return Od(t,"Nested <foreignObject> skipped (SVG spec limitation — not rendered by browsers)"),null;if("source"===n&&"picture"===e.parentElement?.localName)return null}if(e.nodeType===Node.TEXT_NODE||e.nodeType!==Node.ELEMENT_NODE)return e.cloneNode(!0);if("exclude"===e.getAttribute("data-capture")){if("hide"===n.excludeMode)return ap(e);if("remove"===n.excludeMode)return null}if(n.exclude&&Array.isArray(n.exclude))for(let t of n.exclude)try{if(e.matches?.(t)){if("hide"===n.excludeMode)return ap(e);if("remove"===n.excludeMode)return null}}catch(e){console.warn(`Invalid selector in exclude option: ${t}`,e)}if("function"==typeof n.filter)try{if(!n.filter(e)){if("hide"===n.filterMode)return ap(e);if("remove"===n.filterMode)return null}}catch(e){console.warn("Error in filter function:",e)}if(t.clip&&function(e,t){if(e===t.root)return!1;let n;try{n=e.getBoundingClientRect()}catch{return!1}if(0===n.width&&0===n.height)return!1;let r=vd(e);if("inline"===r.display&&!lp.has((e.localName||"").toLowerCase()))return!1;let i=t.rect,o=e.scrollWidth||0,a=e.scrollHeight||0,s={left:"rtl"===r.direction?Math.min(n.left,n.right-o):n.left,top:n.top,right:Math.max(n.right,n.left+o),bottom:Math.max(n.bottom,n.top+a)},l=r.writingMode||"";if((l.startsWith("vertical")||l.startsWith("sideways"))&&(s.top=Math.min(n.top,n.bottom-a),s.left=Math.min(s.left,n.right-o)),cp(s,i))return!1;let c=(e.ownerDocument||document).createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;c.nextNode();){let e=c.currentNode.getBoundingClientRect();if((e.width>0||e.height>0)&&cp(e,i))return!1}return!0}(e,t.clip))return function(e,t,n){let r=e.cloneNode(!1);"IMG"===e.tagName&&(r.removeAttribute("src"),r.removeAttribute("srcset"),r.removeAttribute("sizes")),Dh(e,r,t,n);let{width:i,height:o}=Wh(e);return i>0&&(r.style.width=`${i}px`,r.style.minWidth=`${i}px`,r.style.maxWidth=`${i}px`),o>0&&(r.style.height=`${o}px`,r.style.minHeight=`${o}px`,r.style.maxHeight=`${o}px`),r.style.visibility="hidden",r.style.overflow="hidden",r.style.boxSizing="border-box",r}(e,t,n);if(n.__resolveNodeHooks)for(let r of n.__resolveNodeHooks){let i;try{i=await r(e,n)}catch(e){Od(t,"resolveNode plugin hook failed",e)}if(null===i)return null;if(i instanceof Node)return i.nodeType===Node.ELEMENT_NODE&&(t.nodeMap.set(i,e),Dh(e,i,t,n)),i}{let r=ip.has(e.tagName)&&rp.get(e.tagName);if(r){let i=await r(e,t,n);if(void 0!==i)return i}}if("placeholder"===e.getAttribute("data-capture")){let r=e.cloneNode(!1);t.nodeMap.set(r,e),Dh(e,r,t,n);let i=document.createElement("div");return i.textContent=e.getAttribute("data-placeholder-text")||"",i.style.cssText="color:#666;font-size:12px;text-align:center;line-height:1.4;padding:0.5em;box-sizing:border-box;",r.appendChild(i),r}{let r=!ip.has(e.tagName)&&rp.get(e.tagName);if(r){let i=await r(e,t,n);if(void 0!==i)return i}}try{if(r=e.cloneNode(!1),r.attributes?.length)try{for(let e of r.attributes)/[\x00-\x08\x0B\x0C\x0E-\x1F\uFFFE\uFFFF]/.test(e.value)&&r.setAttribute(e.name,e.value.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\uFFFE\uFFFF]/g,""))}catch{}if(Rh(e,r),t.nodeMap.set(r,e),"IMG"===e.tagName){!function(e,t){try{let n=null,r=vd(e).content;if(r&&r.includes("url(")){let e=r.match(/url\(["']?([^"')]+)["']?\)/);e&&(n=e[1])}let i=e.closest?.("picture"),o=n||(i?Ph(e,i):e.currentSrc)||e.src||Oh(e.getAttribute("srcset"),e)||"";if(!o)return;t.setAttribute("src",o),t.removeAttribute("srcset"),t.removeAttribute("sizes"),t.loading="eager",t.decoding="sync"}catch{}}(e,r);try{let{width:t,height:n}=Wh(e),i=Math.round(t||0),o=Math.round(n||0);i&&(r.dataset.snapdomWidth=String(i)),o&&(r.dataset.snapdomHeight=String(o))}catch(e){Od(t,"getUnscaledDimensions for IMG failed",e)}try{let t=e.getAttribute("style")||"",n=window.getComputedStyle(e),i=e=>{let r=t.match(new RegExp(`${e}\\s*:\\s*([^;]+)`,"i")),i=r?r[1].trim():n.getPropertyValue(e);return/%|auto/i.test(String(i||""))},o=parseInt(r.dataset.snapdomWidth||"0",10),a=parseInt(r.dataset.snapdomHeight||"0",10),s=i("width")||!o,l=i("height")||!a;s&&o&&(r.style.width=`${o}px`),l&&a&&(r.style.height=`${a}px`);let c=n.getPropertyValue("object-fit"),u=n.getPropertyValue("object-position");c&&"fill"!==c?(r.style.objectFit=c,u&&(r.style.objectPosition=u)):(o&&(r.style.minWidth=`${o}px`),a&&(r.style.minHeight=`${a}px`))}catch(e){Od(t,"IMG dimension freeze failed",e)}}}catch(t){throw console.error("[Snapdom] Failed to clone node:",e,t),t}let s=null;if(e instanceof HTMLTextAreaElement){let{width:t,height:n}=Wh(e),i=t||e.getBoundingClientRect().width||0,o=n||e.getBoundingClientRect().height||0;i&&(r.style.width=`${i}px`),o&&(r.style.height=`${o}px`)}if(e instanceof HTMLInputElement){let n=(e.type||"text").toLowerCase();if("checkbox"!==n&&"radio"!==n||!function(){if(typeof navigator>"u")return!1;let e=(navigator.userAgent||"").toLowerCase();return e.includes("firefox")||e.includes("fxios")}())r.value=e.value,r.setAttribute("value",e.value),void 0!==e.checked&&(r.checked=e.checked,e.checked&&r.setAttribute("checked",""),e.indeterminate&&(r.indeterminate=e.indeterminate));else{let{el:n,applyVisual:i}=function(e){let t,{width:n,height:r}=Wh(e),i=e.getBoundingClientRect();try{t=window.getComputedStyle(e)}catch{}let o=t?parseFloat(t.width):NaN,a=t?parseFloat(t.height):NaN,s=Math.round(n||i.width||0),l=Math.round(r||i.height||0),c=Number.isFinite(o)&&o>0?Math.round(o):Math.max(12,s||16),u=Number.isFinite(a)&&a>0?Math.round(a):Math.max(12,l||16),f="checkbox"===(e.type||"text").toLowerCase(),d=!!e.checked,h=!!e.indeterminate,p=Math.max(Math.min(c,u),12),g="middle";try{t&&t.verticalAlign&&(g=t.verticalAlign)}catch{}let m=document.createElement("div");m.setAttribute("data-snapdom-input-replacement",e.type||"checkbox"),m.style.cssText=`display:inline-block;width:${p}px;height:${p}px;vertical-align:${g};flex-shrink:0;line-height:0;`;let y=document.createElementNS("http://www.w3.org/2000/svg","svg");function v(){let e="#0a6ed1";try{t&&(e=t.accentColor||t.color||e)}catch{}let n=p-2;if(y.innerHTML="",f){let t=document.createElementNS("http://www.w3.org/2000/svg","rect");if(t.setAttribute("x",String(1)),t.setAttribute("y",String(1)),t.setAttribute("width",String(n)),t.setAttribute("height",String(n)),t.setAttribute("rx","2"),t.setAttribute("ry","2"),t.setAttribute("fill",d?e:"none"),t.setAttribute("stroke",e),t.setAttribute("stroke-width",String(2)),y.appendChild(t),d){let e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("d",`M 3 ${p/2} L ${p/2-1} ${p-1-2} L ${p-1-2} 3`),e.setAttribute("stroke","white"),e.setAttribute("stroke-width",String(Math.max(1.5,2))),e.setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),y.appendChild(e)}else if(h){let t=document.createElementNS("http://www.w3.org/2000/svg","rect"),r=Math.max(6,n-4);t.setAttribute("x",String((p-r)/2)),t.setAttribute("y",String((p-2)/2)),t.setAttribute("width",String(r)),t.setAttribute("height",String(2)),t.setAttribute("fill",e),t.setAttribute("rx","1"),y.appendChild(t)}}else{let t=document.createElementNS("http://www.w3.org/2000/svg","circle");if(t.setAttribute("cx",String(p/2)),t.setAttribute("cy",String(p/2)),t.setAttribute("r",String((p-2)/2)),t.setAttribute("fill",d?e:"none"),t.setAttribute("stroke",e),t.setAttribute("stroke-width",String(2)),y.appendChild(t),d){let e=document.createElementNS("http://www.w3.org/2000/svg","circle"),t=Math.max(2,.35*(p-4));e.setAttribute("cx",String(p/2)),e.setAttribute("cy",String(p/2)),e.setAttribute("r",String(t)),e.setAttribute("fill","white"),y.appendChild(e)}}m.style.setProperty("width",`${p}px`,"important"),m.style.setProperty("height",`${p}px`,"important"),m.style.setProperty("min-width",`${p}px`,"important"),m.style.setProperty("min-height",`${p}px`,"important")}return y.setAttribute("width",String(p)),y.setAttribute("height",String(p)),y.setAttribute("viewBox",`0 0 ${p} ${p}`),m.appendChild(y),v(),{el:m,applyVisual:v}}(e);t.nodeMap.set(n,e),s=i,r=n}}if((e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&!e.value&&e.placeholder)try{let t=window.getComputedStyle(e,"::placeholder"),n=t&&t.color;if(n&&"rgba(0, 0, 0, 0)"!==n){let e="snapdom-ph-"+(1e6*Math.random()|0);r.classList.add(e);let i=document.createElement("style");i.textContent=`.${e}::placeholder{color:${n}!important;opacity:${t.opacity||"1"}!important;-webkit-text-fill-color:${n}!important;}`,r.prepend(i)}}catch{}if(e instanceof HTMLSelectElement&&(o=e.value),e instanceof HTMLTextAreaElement&&(a=e.value),e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement){e.disabled&&r.setAttribute("disabled",""),e.required&&r.setAttribute("required",""),e.readOnly&&r.setAttribute("readonly","");let t=e;void 0!==t.min&&""!==t.min&&r.setAttribute("min",t.min),void 0!==t.max&&""!==t.max&&r.setAttribute("max",t.max),void 0!==t.pattern&&""!==t.pattern&&r.setAttribute("pattern",t.pattern);let n=e.getAttribute("aria-invalid");null!==n&&r.setAttribute("aria-invalid",n)}if(Qh(e)||Dh(e,r,t,n),s&&s(),e instanceof SVGElement&&!Qh(e)){let t=["fill","stroke","stroke-width","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","opacity","fill-opacity","stroke-opacity","fill-rule","clip-rule","marker","marker-start","marker-mid","marker-end","visibility","display"];try{let n=window.getComputedStyle(e);for(let e of t){let t=n.getPropertyValue(e);t&&r.style.setProperty(e,t)}}catch{}}if(e.shadowRoot){try{let t=e.shadowRoot.querySelectorAll("slot");for(let e of t){let t=e.assignedNodes?.()||[];for(let e of t)i.add(e)}}catch{}let o=function(e){return e.shadowScopeSeq=(e.shadowScopeSeq||0)+1,`s${e.shadowScopeSeq}`}(t),a=`[data-sd="${o}"]`;t.shadowScopes||=new WeakMap,t.shadowScopes.set(e.shadowRoot,o);try{r.setAttribute("data-sd",o)}catch{}let s=function(e){let t="";try{e.querySelectorAll("style").forEach(e=>{t+=(e.textContent||"")+"\n"});let n=e.adoptedStyleSheets||[];for(let e of n)try{if(e&&e.cssRules)for(let n of e.cssRules)t+=n.cssText+"\n"}catch{}}catch{}return t}(e.shadowRoot),l=Vh(s,a,o),c=function(e){let t=new Set;if(!e)return t;let n,r=/var\(\s*(--[A-Za-z0-9_-]+)\b/g;for(;n=r.exec(e);)t.add(n[1]);return t}(s),u=function(e,t,n){let r=[];for(let n of t){let t=Yh(e,n);t&&r.push(`${n}: ${t};`)}return r.length?`${n}{${r.join("")}}\n`:""}(e,c,a);!function(e,t,n){if(!t)return;let r=document.createElement("style");r.setAttribute("data-sd",n),r.textContent=t,e.insertBefore(r,e.firstChild||null)}(r,u+l,o);let f=document.createDocumentFragment(),d=(e,r)=>{if(e.nodeType===Node.ELEMENT_NODE&&"STYLE"===e.tagName)return r(null);up(e,t,n).then(e=>{r(e||null)}).catch(()=>{r(null)})},h=await jh(Array.from(e.shadowRoot.childNodes),d,n.fast);f.append(...h.filter(e=>!!e)),r.appendChild(f)}if("SLOT"===e.tagName){let r=t.shadowScopes?.get(e.getRootNode()),i=e.assignedNodes?.()||[],o=i.length?e.assignedNodes?.({flatten:!0})||i:[],a=o.length?o:Array.from(e.childNodes),s=document.createDocumentFragment(),l=(e,o)=>{up(e,t,n).then(e=>{e&&i.length&&function(e,t){if(!e)return;let n=e=>{let n=e.getAttribute("data-sd-slotted")||"";t?` ${n} `.includes(` ${t} `)||e.setAttribute("data-sd-slotted",n?`${n} ${t}`:t):e.setAttribute("data-sd-slotted",n)};e.nodeType===Node.ELEMENT_NODE&&n(e),e.querySelectorAll?.("*").forEach(n)}(e,r),o(e||null)}).catch(()=>{o(null)})},c=await jh(Array.from(a),l,n.fast);return s.append(...c.filter(e=>!!e)),s}let l=await jh(Array.from(e.childNodes),function(r,o){if(i.has(r)||e.shadowRoot&&!r.assignedSlot)return o(null);up(r,t,n).then(e=>{o(e||null)}).catch(()=>{o(null)})},n.fast);if(r.append(...l.filter(e=>!!e)),null!==o&&r instanceof HTMLSelectElement){r.value=o;for(let e of r.options)e.value===o?e.setAttribute("selected",""):e.removeAttribute("selected")}return null!==a&&r instanceof HTMLTextAreaElement&&(r.textContent=a),r}op("IFRAME",async function(e,t,n){let r=!1;try{r=!(!e.contentDocument&&!e.contentWindow?.document)}catch(e){Od(t,"iframe same-origin probe failed",e)}if(r)try{return await Gh(e,t,n)}catch(e){console.warn("[SnapDOM] iframe rasterization failed, fallback:",e)}if(r||console.warn("[snapdom] cross-origin <iframe> skipped (its document cannot be read). Captured as a placeholder that keeps the frame's box; pass { placeholders: false } for an invisible spacer.",e),n.placeholders){let{width:r,height:i}=Wh(e),o=document.createElement("div");return o.style.cssText=`width:${r}px;height:${i}px;background-image:repeating-linear-gradient(45deg,#ddd,#ddd 5px,#f9f9f9 5px,#f9f9f9 10px);display:flex;align-items:center;justify-content:center;font-size:12px;color:#555;border:1px solid #aaa;`,Dh(e,o,t,n),o}{let{width:r,height:i}=Wh(e),o=document.createElement("div");return o.style.cssText=`display:inline-block;width:${r}px;height:${i}px;visibility:hidden;`,Dh(e,o,t,n),o}}),op("CANVAS",async function(e,t,n){let r="";try{let t=e.getContext("2d",{willReadFrequently:!0});try{t&&t.getImageData(0,0,1,1)}catch{}if((Hd()||!t)&&await Ud(),r=e.toDataURL("image/png"),!r||"data:,"===r){try{t&&t.getImageData(0,0,1,1)}catch{}if(await Ud(),r=e.toDataURL("image/png"),!r||"data:,"===r){let t=document.createElement("canvas");t.width=e.width,t.height=e.height;let n=t.getContext("2d");n&&(n.drawImage(e,0,0),r=t.toDataURL("image/png"))}}}catch(e){Od(t,"Canvas toDataURL failed, using empty/fallback",e)}n&&n.debug&&r&&function(e){try{let t=Math.max(1,Math.min(32,e.width)),n=Math.max(1,Math.min(32,e.height)),r=document.createElement("canvas");r.width=t,r.height=n;let i=r.getContext("2d",{willReadFrequently:!0});if(!i)return!1;i.drawImage(e,0,0,t,n);let o=i.getImageData(0,0,t,n).data;for(let e=3;e<o.length;e+=4)if(0!==o[e])return!1;return!0}catch{return!1}}(e)&&Od(t,"canvas is empty at capture time — capture it after its first frame is drawn",e);let i=document.createElement("img");try{i.decoding="sync",i.loading="eager"}catch(e){Od(t,"img decoding/loading hints failed",e)}r&&(i.src=r),i.width=e.width,i.height=e.height;let{width:o,height:a}=Wh(e);return o>0&&(i.style.width=`${o}px`),a>0&&(i.style.height=`${a}px`),t.nodeMap.set(i,e),Dh(e,i,t,n),i}),op("VIDEO",async function(e,t,n){let r="";try{let t=document.createElement("canvas");t.width=e.videoWidth||e.offsetWidth||320,t.height=e.videoHeight||e.offsetHeight||240;let n=t.getContext("2d");n&&(n.drawImage(e,0,0,t.width,t.height),r=t.toDataURL("image/png"),(!r||"data:,"===r)&&(r=""))}catch(e){Od(t,"Video frame capture failed, using poster fallback",e)}let i=document.createElement("img");try{i.decoding="sync",i.loading="eager"}catch{}r?i.src=r:e.poster&&(i.src=e.poster),i.width=e.videoWidth||e.offsetWidth||0,i.height=e.videoHeight||e.offsetHeight||0;let{width:o,height:a}=Wh(e);return o>0&&(i.style.width=`${o}px`),a>0&&(i.style.height=`${a}px`),i.style.objectFit="contain",t.nodeMap.set(i,e),Dh(e,i,t,n),i}),op("AUDIO",async function(e,t,n){if(!e.controls)return;let{width:r,height:i}=Wh(e),o=Math.round(r||e.offsetWidth||300),a=Math.round(i||e.offsetHeight||54),s=a/2,l=Math.max(4,.16*a),c=.34*a,u=o-.34*a,f=c+l+.55*a,d=Math.max(0,u-.7*a-f),h=Math.max(9,Math.round(.24*a)),p=`<svg xmlns="http://www.w3.org/2000/svg" width="${o}" height="${a}" viewBox="0 0 ${o} ${a}"><rect width="${o}" height="${a}" rx="${Math.min(a/2,10)}" fill="#f1f3f4"/><path d="M ${c} ${s-l} L ${c+l} ${s} L ${c} ${s+l} Z" fill="#5f6368"/><rect x="${f}" y="${s-1.5}" width="${d}" height="3" rx="1.5" fill="#bdc1c6"/><circle cx="${f}" cy="${s}" r="${Math.max(3,.09*a)}" fill="#5f6368"/><text x="${u}" y="${s}" fill="#5f6368" font-family="sans-serif" font-size="${h}" text-anchor="end" dominant-baseline="central">0:00</text></svg>`,g=document.createElement("img");try{g.decoding="sync",g.loading="eager"}catch{}return g.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(p)}`,g.width=o,g.height=a,g.style.width=`${o}px`,g.style.height=`${a}px`,t.nodeMap.set(g,e),Dh(e,g,t,n),g}),$d(),id(),Ld(),Zf(),Zf();var fp=[/font\s*awesome/i,/material\s*icons/i,/ionicons/i,/glyphicons/i,/feather/i,/bootstrap\s*icons/i,/remix\s*icons/i,/heroicons/i,/layui/i,/lucide/i],dp=Object.assign({materialIconsFilled:"https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2",materialIconsOutlined:"https://fonts.gstatic.com/s/materialiconsoutlined/v110/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUcel5euIg.woff2",materialIconsRound:"https://fonts.gstatic.com/s/materialiconsround/v109/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmPq_HTTw.woff2",materialIconsSharp:"https://fonts.gstatic.com/s/materialiconssharp/v110/oPWQ_lt5nv4pWNJpghLP75WiFR4kLh3kvmvRImcycg.woff2"},typeof window<"u"&&window.__SNAPDOM_ICON_FONTS__||{}),hp=[],pp=new Set;function gp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function mp(e){let t="string"==typeof e?e:"",n=[...fp,...hp];for(let e of n)if(e instanceof RegExp&&e.test(t))return!0;return!!(/icon/i.test(t)||/glyph/i.test(t)||/symbols/i.test(t)||/feather/i.test(t)||/fontawesome/i.test(t))}function yp(e=""){let t=String(e).toLowerCase();return/\bmaterial\s*icons\b/.test(t)||/\bmaterial\s*symbols\b/.test(t)}var vp=new Map;function Ap(e){let t=e.getPropertyValue("-webkit-text-fill-color")?.trim()||"",n=/^transparent$/i.test(t)||/rgba?\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(t);if(t&&!n&&"currentcolor"!==t.toLowerCase())return t;let r=e.color?.trim();return r&&"inherit"!==r?r:"#000"}async function bp(e,{family:t="Material Icons",weight:n="normal",fontSize:r=32,color:i="#000",variation:o="",className:a=""}={}){let s=String(t||"").replace(/^['"]+|['"]+$/g,""),l=window.devicePixelRatio||1,c=function(e=""){let t,n=Object.create(null),r=String(e||""),i=/['"]?\s*([A-Za-z]{3,4})\s*['"]?\s*([+-]?\d+(?:\.\d+)?)\s*/g;for(;t=i.exec(r);)n[t[1].toUpperCase()]=Number(t[2]);return n}(o),{familyForMeasure:u,familyForCanvas:f}=await async function(e,t,n){let r=String(e||""),i=r.toLowerCase(),o=String(t||"").toLowerCase();if(/\bmaterial\s*icons\b/.test(i)&&!/\bsymbols\b/.test(i))return{familyForMeasure:r,familyForCanvas:r};if(!/\bmaterial\s*symbols\b/.test(i))return{familyForMeasure:r,familyForCanvas:r};let a=n&&(n.FILL??n.fill),s="outlined";/\brounded\b/.test(o)||/\bround\b/.test(o)?s="rounded":/\bsharp\b/.test(o)?s="sharp":/\boutlined\b/.test(o)&&(s="outlined");let l=null;if(1===a&&("outlined"===s&&dp.materialIconsFilled?l={url:dp.materialIconsFilled,alias:"snapdom-mi-filled"}:"rounded"===s&&dp.materialIconsRound?l={url:dp.materialIconsRound,alias:"snapdom-mi-round"}:"sharp"===s&&dp.materialIconsSharp&&(l={url:dp.materialIconsSharp,alias:"snapdom-mi-sharp"})),!l)return{familyForMeasure:r,familyForCanvas:r};if(!vp.has(l.alias))try{let e=new FontFace(l.alias,`url(${l.url})`,{style:"normal",weight:"400"});document.fonts.add(e),await e.load(),vp.set(l.alias,!0)}catch{return{familyForMeasure:r,familyForCanvas:r}}let c=`"${l.alias}"`;return{familyForMeasure:c,familyForCanvas:c}}(s,a,c);await async function(e="Material Icons",t=24){try{await Promise.all([document.fonts.load(`400 ${t}px "${String(e).replace(/["']/g,"")}"`),document.fonts.ready])}catch{}}(f.replace(/^["']+|["']+$/g,""),r);let d=document.createElement("span");d.setAttribute("data-snapdom-internal",""),d.textContent=e,d.style.position="absolute",d.style.visibility="hidden",d.style.left="-99999px",d.style.whiteSpace="nowrap",d.style.fontFamily=u,d.style.fontWeight=String(n||"normal"),d.style.fontSize=`${r}px`,d.style.lineHeight="1",d.style.margin="0",d.style.padding="0",d.style.fontFeatureSettings="'liga' 1",d.style.fontVariantLigatures="normal",d.style.color=i,document.body.appendChild(d);let h=d.getBoundingClientRect(),p=Math.max(1,Math.ceil(h.width)),g=Math.max(1,Math.ceil(h.height));document.body.removeChild(d);let m=document.createElement("canvas");m.width=p*l,m.height=g*l;let y=m.getContext("2d");y.scale(l,l),y.font=`${n?`${n} `:""}${r}px ${f}`,y.textAlign="left",y.textBaseline="top",y.fillStyle=i;try{y.fontKerning="normal"}catch{}return y.fillText(e,0,0),{dataUrl:m.toDataURL(),width:p,height:g}}async function wp(e,t,n,r=32,i="#000"){t=t.replace(/^['"]+|['"]+$/g,"");let o=window.devicePixelRatio||1;try{await document.fonts.ready}catch{}let a=document.createElement("span");a.setAttribute("data-snapdom-internal",""),a.textContent=e,a.style.position="absolute",a.style.visibility="hidden",a.style.fontFamily=`"${t}"`,a.style.fontWeight=n||"normal",a.style.fontSize=`${r}px`,a.style.lineHeight="1",a.style.whiteSpace="nowrap",a.style.padding="0",a.style.margin="0",document.body.appendChild(a);let s=a.getBoundingClientRect(),l=Math.ceil(s.width),c=Math.ceil(s.height);document.body.removeChild(a);let u=document.createElement("canvas");u.width=Math.max(1,l*o),u.height=Math.max(1,c*o);let f=u.getContext("2d");return f.scale(o,o),f.font=n?`${n} ${r}px "${t}"`:`${r}px "${t}"`,f.textAlign="left",f.textBaseline="top",f.fillStyle=i,f.fillText(e,0,0),{dataUrl:u.toDataURL(),width:l,height:c}}fd(),qd();var Ip=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","emoji","math","fangsong","ui-serif","ui-sans-serif","ui-monospace","ui-rounded"]),xp=["katex","mathjax","mathml"];function Cp(e){if(!e)return"";for(let t of e.split(",")){let e=t.trim().replace(/^['"]+|['"]+$/g,"");if(e&&!Ip.has(e.toLowerCase()))return e}return""}function Bp(e){let t=String(e??"400").trim().toLowerCase();if("normal"===t)return 400;if("bold"===t)return 700;let n=parseInt(t,10);return Number.isFinite(n)?Math.min(900,Math.max(100,n)):400}function Ep(e){let t=String(e??"normal").trim().toLowerCase();return t.startsWith("italic")?"italic":t.startsWith("oblique")?"oblique":"normal"}function Sp(e){let t=String(e??"100%").match(/(\d+(?:\.\d+)?)\s*%/);return t?Math.max(50,Math.min(200,parseFloat(t[1]))):100}function kp(e){return e&&"string"==typeof e?e.replace(/\s+(variable|vf|v[0-9]+)$/i,"").trim().toLowerCase().replace(/\s+/g,"-"):""}function Fp(e,t,n=[]){if(!e)return!1;try{let r=new URL(e,location.href);if(r.origin===location.origin)return!0;let i=r.host.toLowerCase();if(["fonts.googleapis.com","fonts.gstatic.com","use.typekit.net","p.typekit.net","kit.fontawesome.com","use.fontawesome.com","cdn.jsdelivr.net","unpkg.com","cdnjs.cloudflare.com","esm.sh"].some(e=>i.endsWith(e))||n.some(e=>i===e.toLowerCase()||i.endsWith("."+e.toLowerCase())))return!0;let o=(r.pathname+r.search).toLowerCase();if(/\bfont(s)?\b/.test(o)||/\.woff2?(\b|$)/.test(o)||xp.some(e=>o.includes(e)))return!0;for(let e of t){let t=e.toLowerCase().replace(/\s+/g,"+"),n=e.toLowerCase().replace(/\s+/g,"-"),r=kp(e);if(o.includes(t)||o.includes(n)||r&&o.includes(r))return!0}return!1}catch{return!1}}function Dp(e,t){return e&&e.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/g,(e,n,r)=>{let i=(r||"").trim();if(!i||/^data:|^blob:|^https?:|^file:|^about:/i.test(i))return e;let o=i;try{o=new URL(i,t||location.href).href}catch{}return`url("${o}")`})}var Np=/@import\s+(?:url\(\s*(['"]?)([^)"']+)\1\s*\)|(['"])([^"']+)\3)([^;]*);/g;async function Mp(e,t,n){if(!e)return e;let r=new Set;function i(e,t){try{return new URL(e,t||location.href).href}catch{return e}}let o=Dp(e,t||location.href);return o=await async function e(t,o,a=0){if(a>4)return console.warn(`[snapDOM] @import depth exceeded (4) at ${o}`),t;let s,l="",c=0;for(;s=Np.exec(t);){l+=t.slice(c,s.index),c=Np.lastIndex;let u=i((s[2]||s[4]||"").trim(),o);if(r.has(u)){console.warn(`[snapDOM] Skipping circular @import: ${u}`);continue}r.add(u);let f="";try{let e=await sd(u,{as:"text",useProxy:n,silent:!0});e.ok&&"string"==typeof e.data&&(f=e.data)}catch{}f?(f=Dp(f,u),f=await e(f,u,a+1),l+=`\n/* inlined: ${u} */\n${f}\n`):l+=s[0]}return l+=t.slice(c),l}(o,t||location.href,0),o}var Tp=/url\((["']?)([^"')]+)\1\)/g,Qp=/@font-face[^{}]*\{[^}]*\}/g;function Lp(e,t,n=""){return(e.match(new RegExp(`${t}\\s*:\\s*([^;}]+)[;}]`,"i"))?.[1]||n).trim()}function Rp(e){if(!e)return[];let t=[],n=e.split(",").map(e=>e.trim()).filter(Boolean);for(let e of n){let n=e.match(/^U\+([0-9A-Fa-f?]+)(?:-([0-9A-Fa-f?]+))?$/);if(!n)continue;let r=n[1],i=n[2],o=e=>{if(!e.includes("?"))return parseInt(e,16);return[parseInt(e.replace(/\?/g,"0"),16),parseInt(e.replace(/\?/g,"F"),16)]};if(i){let e=o(r),n=o(i),a=Array.isArray(e)?e[0]:e,s=Array.isArray(n)?n[1]:n;t.push([Math.min(a,s),Math.max(a,s)])}else{let e=o(r);Array.isArray(e)?t.push([e[0],e[1]]):t.push([e,e])}}return t}function Up(e,t){if(!t.length||!e||0===e.size)return!0;for(let n of e)for(let[e,r]of t)if(n>=e&&n<=r)return!0;return!1}function Hp(e,t){let n=[];if(!e)return n;for(let r of e.matchAll(Tp)){let e=(r[2]||"").trim();if(e&&!e.startsWith("data:")){if(!/^https?:/i.test(e))try{e=new URL(e,t||location.href).href}catch{}n.push(e)}}return n}async function qp(e,t,n=""){let r=e;for(let i of e.matchAll(Tp)){let e=ed(i[0]);if(!e)continue;let o=e;if(!o.startsWith("http")&&!o.startsWith("data:"))try{o=new URL(o,t||location.href).href}catch{}if(!mp(o)){if(Kf.resource?.has(o)){Kf.font?.add(o),r=r.replace(i[0],`url(${Kf.resource.get(o)})`);continue}try{let e=await sd(o,{as:"dataURL",useProxy:n,silent:!0});if(e.ok&&"string"==typeof e.data){let t=e.data;Kf.resource?.set(o,t),Kf.font?.add(o),r=r.replace(i[0],`url(${t})`)}}catch{console.warn("[snapDOM] Failed to fetch font resource:",o)}}}return r}function Op(e={}){let t=new Set((e.families||[]).map(e=>String(e).toLowerCase())),n=new Set((e.domains||[]).map(e=>String(e).toLowerCase())),r=new Set((e.subsets||[]).map(e=>String(e).toLowerCase()));return(e,i)=>{if(t.size&&t.has(e.family.toLowerCase()))return!0;if(n.size)for(let t of e.srcUrls)try{if(n.has(new URL(t).host.toLowerCase()))return!0}catch{}if(r.size){let e=function(e){if(!e.length)return null;let t=(t,n)=>e.some(([e,r])=>!(r<t||e>n)),n=t(0,255)||t(305,305),r=t(256,591)||t(7680,7935),i=t(880,1023),o=t(1024,1279);return t(7840,7929)||t(258,259)||t(416,417)||t(431,432)?"vietnamese":o?"cyrillic":i?"greek":r?"latin-ext":n?"latin":null}(i);if(e&&r.has(e))return!0}return!1}}var Pp=new WeakMap,$p=0;function zp(e,t,n,r,i,o){let a=Array.from(e||[]).sort().join("|"),s=t?JSON.stringify({families:(t.families||[]).map(e=>String(e).toLowerCase()).sort(),domains:(t.domains||[]).map(e=>String(e).toLowerCase()).sort(),subsets:(t.subsets||[]).map(e=>String(e).toLowerCase()).sort()}):"",l=(n||[]).map(e=>`${(e.family||"").toLowerCase()}::${e.weight||"normal"}::${e.style||"normal"}::${e.src||""}`).sort().join("|"),c=r||"",u=(i||[]).map(e=>String(e).toLowerCase()).sort().join("|"),f=function(e){let t=Pp.get(e);return void 0===t&&(t=$p++,Pp.set(e,t)),t}(o||document);return`fonts-embed-css::req=${a}::ex=${s}::lf=${l}::px=${c}::fd=${u}::doc=${f}`}async function jp(e,t,n,r){let i;try{i=e.cssRules||[]}catch{return}let o=(e,t)=>{try{return new URL(e,t||location.href).href}catch{return e}};for(let e of i){if(e.type===CSSRule.IMPORT_RULE&&e.styleSheet){let i=e.href?o(e.href,t):t;if(r.depth>=4){console.warn(`[snapDOM] CSSOM import depth exceeded (4) at ${i}`);continue}if(i&&r.visitedSheets.has(i)){console.warn(`[snapDOM] Skipping circular CSSOM import: ${i}`);continue}i&&r.visitedSheets.add(i);let a={...r,depth:(r.depth||0)+1};await jp(e.styleSheet,i,n,a);continue}if(e.type===CSSRule.FONT_FACE_RULE){let i=Cp((e.style.getPropertyValue("font-family")||"").trim());if(!i||mp(i))continue;let o=(e.style.getPropertyValue("font-weight")||"").trim(),a=(e.style.getPropertyValue("font-style")||"").trim(),s=(e.style.getPropertyValue("font-stretch")||"").trim(),l=(e.style.getPropertyValue("font-variation-settings")||"").trim(),c=(e.style.getPropertyValue("src")||"").trim(),u=(e.style.getPropertyValue("unicode-range")||"").trim(),f=o||"400",d=a||"normal",h=s||"100%",p=(a?`font-style:${a};`:"")+(o?`font-weight:${o};`:"")+(s?`font-stretch:${s};`:"")+(l?`font-variation-settings:${l};`:"")+(u?`unicode-range:${u};`:""),g=r.faceMatchesRequired(i,d,f,h);if(!g&&!r.requiredIndex.has(i.toLowerCase()))continue;let m=Rp(u);if(!Up(r.usedCodepoints,m))continue;let y={family:i,weightSpec:f,styleSpec:d,stretchSpec:h,unicodeRange:u,srcRaw:c,srcUrls:Hp(c,t||location.href),href:t||location.href};if(r.simpleExcluder&&r.simpleExcluder(y,m))continue;if(!g){r.provisionalFaces.push({family:i.toLowerCase(),block:`@font-face{font-family:${i};src:${c};${p}}`,srcRaw:c,baseHref:t||location.href});continue}if(r.coveredFamilies.add(i.toLowerCase()),/url\(/i.test(c)){let e=await qp(c,t||location.href,r.useProxy);await n(`@font-face{font-family:${i};src:${e};${p}}`)}else await n(`@font-face{font-family:${i};src:${c};${p}}`)}}}async function Vp({required:e,usedCodepoints:t,exclude:n,localFonts:r=[],useProxy:i="",fontStylesheetDomains:o=[],doc:a=document}={}){e instanceof Set||(e=new Set),t instanceof Set||(t=new Set);let s=new Map;for(let t of e){let[e,n,r,i]=String(t).split("__");if(!e)continue;let o=e.toLowerCase(),a=s.get(o)||[];a.push({w:parseInt(n,10),s:r,st:parseInt(i,10)}),s.set(o,a)}function l(e,t,n,r){let i=String(e).toLowerCase();if(!s.has(i))return!1;let o=s.get(i),a=function(e){let t=String(e||"400").trim(),n=t.match(/^(\d{2,3})\s+(\d{2,3})$/);if(n){let e=Bp(n[1]),t=Bp(n[2]);return{min:Math.min(e,t),max:Math.max(e,t)}}let r=Bp(t);return{min:r,max:r}}(n),l=function(e){let t=String(e||"normal").trim().toLowerCase();return"italic"===t?{kind:"italic"}:t.startsWith("oblique")?{kind:"oblique"}:{kind:"normal"}}(t),c=function(e){let t=String(e||"100%").trim(),n=t.match(/(\d+(?:\.\d+)?)\s*%\s+(\d+(?:\.\d+)?)\s*%/);if(n){let e=parseFloat(n[1]),t=parseFloat(n[2]);return{min:Math.min(e,t),max:Math.max(e,t)}}let r=t.match(/(\d+(?:\.\d+)?)\s*%/),i=r?parseFloat(r[1]):100;return{min:i,max:i}}(r),u=a.min!==a.max,f=a.min,d=e=>"normal"===l.kind&&"normal"===e||"normal"!==l.kind&&("italic"===e||"oblique"===e),h=!1;for(let e of o){let t=u?e.w>=a.min&&e.w<=a.max:e.w===f,n=d(Ep(e.s)),r=e.st>=c.min&&e.st<=c.max;if(t&&n&&r){h=!0;break}}if(h)return!0;if(!u)for(let e of o){let t=d(Ep(e.s)),n=e.st>=c.min&&e.st<=c.max;if(Math.abs(f-e.w)<=300&&t&&n)return!0}if(!u&&"normal"===l.kind&&o.some(e=>"normal"!==Ep(e.s)))for(let e of o){let t=Math.abs(f-e.w)<=300,n=e.st>=c.min&&e.st<=c.max;if(t&&n)return!0}return!1}let c=Op(n),u=zp(e,n,r,i,o,a);if(Kf.resource?.has(u))return Kf.resource.get(u);let f=function(e){let t=new Set;for(let n of e||[]){let e=String(n).split("__")[0]?.trim();e&&t.add(e)}return t}(e),d=[],h=Np;for(let e of a.querySelectorAll("style")){let t=e.textContent||"";for(let e of t.matchAll(h)){let t=(e[2]||e[4]||"").trim();t&&!mp(t)&&(a.querySelector(`link[rel="stylesheet"][href="${t}"]`)||d.push(t))}}let p=[];d.length&&await Promise.all(d.map(e=>new Promise(t=>{if(a.querySelector(`link[rel="stylesheet"][href="${e}"]`))return t(null);let n=a.createElement("link");n.rel="stylesheet",n.href=e,n.setAttribute("data-snapdom","injected-import"),n.onload=()=>t(n),n.onerror=()=>t(null),a.head.appendChild(n),p.push(n)})));let g="",m=new Set,y=[],v=Array.from(a.querySelectorAll('link[rel="stylesheet"]')).filter(e=>!!e.href);for(let e of p)try{e.remove()}catch{}for(let e of v)try{if(mp(e.href))continue;let r="",u=!1;try{u=new URL(e.href,location.href).origin===location.origin}catch{}if(!u){let t=Array.isArray(o)?o:[];if(!Fp(e.href,f,t))continue}if(u){let t=Array.from(a.styleSheets).find(t=>t.href===e.href);if(t)try{let e=t.cssRules||[];r=Array.from(e).map(e=>e.cssText).join("")}catch{}}if(!r){let t=await sd(e.href,{as:"text",useProxy:i});if(t?.ok&&"string"==typeof t.data&&(r=t.data),mp(e.href))continue}r=await Mp(r,e.href,i);let d="";for(let o of r.match(Qp)||[]){let r=Cp(Lp(o,"font-family"));if(!r||mp(r))continue;let a=Lp(o,"font-weight","400"),u=Lp(o,"font-style","normal"),f=Lp(o,"font-stretch","100%"),h=Lp(o,"unicode-range"),p=Lp(o,"src"),g=Hp(p,e.href),v=l(r,u,a,f);if(!v&&!s.has(r.toLowerCase()))continue;let A=Rp(h);if(!Up(t,A))continue;let b={family:r,weightSpec:a,styleSpec:u,stretchSpec:f,unicodeRange:h,srcRaw:p,srcUrls:g,href:e.href};n&&c(b,A)||(v?(m.add(r.toLowerCase()),d+=/url\(/i.test(p)?await qp(o,e.href,i):o):y.push({family:r.toLowerCase(),block:o,srcRaw:p,baseHref:e.href}))}d.trim()&&(g+=d)}catch{console.warn("[snapDOM] Failed to process stylesheet:",e.href)}let A={requiredIndex:s,usedCodepoints:t,faceMatchesRequired:l,coveredFamilies:m,provisionalFaces:y,simpleExcluder:n?Op(n):null,useProxy:i,visitedSheets:new Set,depth:0};for(let e of a.styleSheets)if(!e.href||!v.some(t=>t.href===e.href))try{let t=e.href||location.origin+"/";t&&A.visitedSheets.add(t),await jp(e,t,async e=>{g+=e},A)}catch{}for(let e of y)m.has(e.family)||(g+=/url\(/i.test(e.srcRaw)?await qp(e.block,e.baseHref,i):e.block);try{for(let e of a.fonts||[]){if(!e||!e.family||"loaded"!==e.status||!e._snapdomSrc)continue;let t=String(e.family).replace(/^['"]+|['"]+$/g,"");if(mp(t)||!s.has(t.toLowerCase())||n?.families&&n.families.some(e=>String(e).toLowerCase()===t.toLowerCase()))continue;let r=e._snapdomSrc;if(!String(r).startsWith("data:"))if(Kf.resource?.has(e._snapdomSrc))r=Kf.resource.get(e._snapdomSrc),Kf.font?.add(e._snapdomSrc);else if(!Kf.font?.has(e._snapdomSrc))try{let t=await sd(e._snapdomSrc,{as:"dataURL",useProxy:i,silent:!0});if(!t.ok||"string"!=typeof t.data)continue;r=t.data,Kf.resource?.set(e._snapdomSrc,r),Kf.font?.add(e._snapdomSrc)}catch{console.warn("[snapDOM] Failed to fetch dynamic font src:",e._snapdomSrc);continue}g+=`@font-face{font-family:'${t}';src:url(${r});font-style:${e.style||"normal"};font-weight:${e.weight||"normal"};}`}}catch{}for(let e of r){if(!e||"object"!=typeof e)continue;let t=String(e.family||"").replace(/^['"]+|['"]+$/g,"");if(!t||mp(t)||!s.has(t.toLowerCase())||n?.families&&n.families.some(e=>String(e).toLowerCase()===t.toLowerCase()))continue;let r=null!=e.weight?String(e.weight):"normal",o=null!=e.style?String(e.style):"normal",a=null!=e.stretchPct?`${e.stretchPct}%`:"100%",l=String(e.src||""),c=l;if(!c.startsWith("data:"))if(Kf.resource?.has(l))c=Kf.resource.get(l),Kf.font?.add(l);else if(!Kf.font?.has(l))try{let e=await sd(l,{as:"dataURL",useProxy:i,silent:!0});if(!e.ok||"string"!=typeof e.data)continue;c=e.data,Kf.resource?.set(l,c),Kf.font?.add(l)}catch{console.warn("[snapDOM] Failed to fetch localFonts src:",l);continue}g+=`@font-face{font-family:'${t}';src:url(${c});font-style:${o};font-weight:${r};font-stretch:${a};}`}return g&&(g=function(e){if(!e)return e;let t=/@font-face[^{}]*\{[^}]*\}/gi,n=new Set,r=[];for(let i of e.match(t)||[]){let e=Cp(Lp(i,"font-family")),t=Lp(i,"font-weight","400"),o=Lp(i,"font-style","normal"),a=Lp(i,"font-stretch","100%"),s=Lp(i,"unicode-range"),l=Lp(i,"src"),c=Hp(l,location.href),u=c.length?c.map(e=>String(e).toLowerCase()).sort().join("|"):l.toLowerCase(),f=[String(e||"").toLowerCase(),t,o,a,s.toLowerCase(),u].join("|");n.has(f)||(n.add(f),r.push(i))}if(0===r.length)return e;let i=0;return e.replace(t,()=>r[i++]||"")}(g),Kf.resource?.set(u,g)),g}function Yp(e,t){let n=new Set,r=new Set;if(!e)return{required:n,usedCodepoints:r};let i=e=>{if(e)for(let t of e)r.add(t.codePointAt(0))},o=e=>{let t=function(e){if(!e)return[];let t=[];for(let n of e.split(",")){let e=n.trim().replace(/^['"]+|['"]+$/g,"");e&&(Ip.has(e.toLowerCase())||t.push(e))}return t}(e.fontFamily);if(t.length)for(let r of t)n.add(`${r}__${Bp(e.fontWeight)}__${Ep(e.fontStyle)}__${Sp(e.fontStretch)}`)},a=e=>{o(vd(e));for(let t of["::before","::after"]){let n=vd(e,t),a=n&&n.content;if(a&&"none"!==a&&"normal"!==a)if(o(n),/^["']/.test(a))i(a.slice(1,-1));else{let e=a.match(/\\[0-9A-Fa-f]{1,6}/g);if(e)for(let t of e)try{r.add(parseInt(t.slice(1),16))}catch{}}}};a(e);let s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null);for(;s.nextNode();){let e=s.currentNode;if(e.nodeType===Node.TEXT_NODE){if(t&&e.parentElement&&!t(e.parentElement))continue;i(e.nodeValue||"")}else{if(t&&!t(e))continue;a(e)}}return{required:n,usedCodepoints:r}}async function Wp(e,t=2,n=document){try{await n.fonts.ready}catch{}let r=Array.from(e||[]).filter(Boolean);if(0===r.length)return;let i=()=>{let e=n.createElement("div");e.setAttribute("data-snapdom-internal",""),e.style.cssText="position:absolute!important;left:-9999px!important;top:0!important;opacity:0!important;pointer-events:none!important;contain:layout size style;";for(let t of r){let r=n.createElement("span");r.textContent="AaBbGg1234ÁÉÍÓÚçñ—∞",r.style.fontFamily=`"${t}"`,r.style.fontWeight="700",r.style.fontStyle="italic",r.style.fontSize="32px",r.style.lineHeight="1",r.style.whiteSpace="nowrap",r.style.margin="0",r.style.padding="0",e.appendChild(r)}n.body.appendChild(e),e.offsetWidth,n.body.removeChild(e)};for(let e=0;e<Math.max(1,t);e++)i(),await Ud(),await Ud()}function Gp(e,t=!1){let n="",r=Math.max(1,e);for(;r>0;)r--,n=String.fromCharCode(97+r%26)+n,r=Math.floor(r/26);return t?n.toUpperCase():n}function Jp(e,t=!0){let n=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]],r=Math.max(1,Math.min(3999,e)),i="";for(let[e,t]of n)for(;r>=e;)i+=t,r-=e;return t?i:i.toLowerCase()}function _p(e,t){switch((t||"decimal").toLowerCase()){case"decimal":default:return String(e);case"decimal-leading-zero":{let t=Math.abs(e);return(e<0?"-":"")+(t<10?"0":"")+String(t)}case"lower-alpha":return Gp(e,!1);case"upper-alpha":return Gp(e,!0);case"lower-roman":return Jp(e,!1);case"upper-roman":return Jp(e,!0)}}function Xp(e){let t=new WeakMap,n=e instanceof Document?e.documentElement:e,r=e=>{let t=0,n=e?.parentElement;if(!n)return 0;for(let r of n.children){if(r===e)break;"LI"===r.tagName&&t++}return t},i=(e,t,n)=>{let i,o,a,s=(e=>{let t=new Map;for(let[n,r]of e)t.set(n,r.slice());return t})(e);try{i=n.style?.counterReset||getComputedStyle(n).counterReset}catch{}if(i&&"none"!==i)for(let e of i.split(",")){let n=e.trim().split(/\s+/),r=n[0],i=Number.isFinite(Number(n[1]))?Number(n[1]):0;if(!r)continue;let o=t.get(r);if(o&&o.length){let e=o.slice();e.push(i),s.set(r,e)}else s.set(r,[i])}try{o=n.style?.counterSet||getComputedStyle(n).counterSet}catch{}if(o&&"none"!==o)for(let e of o.split(",")){let t=e.trim().split(/\s+/),n=t[0],r=Number.isFinite(Number(t[1]))?Number(t[1]):0;if(!n)continue;let i=s.get(n)||[];0===i.length&&i.push(0),i[i.length-1]=r,s.set(n,i)}try{a=n.style?.counterIncrement||getComputedStyle(n).counterIncrement}catch{}if(a&&"none"!==a)for(let e of a.split(",")){let t=e.trim().split(/\s+/),n=t[0],r=Number.isFinite(Number(t[1]))?Number(t[1]):1;if(!n)continue;let i=s.get(n)||[];0===i.length&&i.push(0),i[i.length-1]+=r,s.set(n,i)}try{if("list-item"===getComputedStyle(n).display&&(e=>e&&"LI"===e.tagName)(n)){let e=n.parentElement,t=1;if(e&&"OL"===e.tagName){let i=e.getAttribute("start"),o=Number.isFinite(Number(i))?Number(i):1,a=r(n),s=n.getAttribute("value");t=Number.isFinite(Number(s))?Number(s):o+a}else t=1+r(n);let i=s.get("list-item")||[];0===i.length&&i.push(0),i[i.length-1]=t,s.set("list-item",i)}}catch{}return s},o=(e,n,r)=>{let a=i(r,n,e);t.set(e,a);let s=a;for(let t of e.children)s=o(t,a,s);let l=new Map;for(let[e,t]of r){let n=t.length,r=s.get(e);l.set(e,r&&r.length?r.slice(0,n):t.slice())}for(let[e,t]of s)!l.has(e)&&t.length&&!n.has(e)&&l.set(e,t.slice(0,1));return l},a=new Map;return o(n,a,a),{get(e,n){let r=t.get(e)?.get(n);return r&&r.length?r[r.length-1]:0},getStack(e,n){let r=t.get(e)?.get(n);return r?r.slice():[]}}}fd();var Kp=new WeakMap;function Zp(e){try{return e&&e.cssRules?e.cssRules:null}catch{return null}}function eg(e){let t=e.querySelectorAll('style,link[rel~="stylesheet"]'),n=`n:${t.length}|`,r=0;for(let e=0;e<t.length;e++){let i=t[e];if("STYLE"===i.tagName){n+=`S${i.textContent?i.textContent.length:0}|`;let e=i.sheet,t=e?Zp(e):null;t&&(r+=t.length)}else{n+=`L${i.getAttribute("href")||""}|m:${i.getAttribute("media")||"all"}|`;let e=i.sheet,t=e?Zp(e):null;t&&(r+=t.length)}}let i=e.adoptedStyleSheets;return n+=`ass:${Array.isArray(i)?i.length:0}|tr:${r}`,n}function tg(e,t,n){let r=Zp(e);if(!r)return!1;for(let e=0;e<r.length;e++){if(n.budget<=0)return!1;let i=r[e],o=i&&i.cssText?i.cssText:"";n.budget--;for(let e of t)if(o.includes(e))return!0;if(i&&i.cssRules&&i.cssRules.length)for(let e=0;e<i.cssRules.length&&n.budget>0;e++){let r=i.cssRules[e],o=r&&r.cssText?r.cssText:"";n.budget--;for(let e of t)if(o.includes(e))return!0}if(n.budget<=0)return!1}return!1}function ng(e=document,t=eg(e)){let n=Kp.get(e);if(n&&n.fingerprint===t)return n.result;let r=["::before","::after","::first-letter",":before",":after",":first-letter","counter(","counters(","counter-increment","counter-reset"],i=e.querySelectorAll("style");for(let n=0;n<i.length;n++){let o=i[n].textContent||"";for(let n of r)if(o.includes(n))return Kp.set(e,{fingerprint:t,result:!0}),!0}let o=e.adoptedStyleSheets;if(Array.isArray(o)&&o.length){let n={budget:1e3};try{for(let i of o)if(tg(i,r,n))return Kp.set(e,{fingerprint:t,result:!0}),!0}catch{}}{let n=e.querySelectorAll('style,link[rel~="stylesheet"]'),i={budget:1e3};for(let o=0;o<n.length&&i.budget>0;o++){let a=n[o],s=null;if(a.tagName,s=a.sheet||null,s&&tg(s,r,i))return Kp.set(e,{fingerprint:t,result:!0}),!0}}return e.querySelector('[style*="counter("], [style*="counters("]')?(Kp.set(e,{fingerprint:t,result:!0}),!0):(Kp.set(e,{fingerprint:t,result:!1}),!1)}function rg(e){for(let t of["Top","Right","Bottom","Left"]){let n=parseFloat(e[`border${t}Width`])||0,r=e[`border${t}Style`];if(n>0&&r&&"none"!==r&&"hidden"!==r)return!0}return!1}function ig(e){if(!e)return"";let t,n=[],r=/"([^"]*)"/g,i=0;for(;t=r.exec(e);){let o=e.slice(i,t.index).trim();o&&n.push(o),n.push(t[1]),i=r.lastIndex}let o=e.slice(i).trim();return o&&n.push(o),n.join("")}function og(e,t,n){let r=e.parentElement,i=r&&n?n.get(r):null;return i?{get(e,n){let r=t.get(e,n),o=i.get(n);return"number"==typeof o?Math.max(r,o):r},getStack(e,n){let r=t.getStack(e,n);if(!r.length)return r;let o=i.get(n);if("number"==typeof o){let e=r.slice();return e[e.length-1]=Math.max(e[e.length-1],o),e}return r}}:t}function ag(e,t,n){let r=new Map;function i(e){let t=[];if(!e||"none"===e)return t;for(let n of String(e).split(",")){let e=n.trim().split(/\s+/),r=e[0],i=Number.isFinite(Number(e[1]))?Number(e[1]):void 0;r&&t.push({name:r,num:i})}return t}let o=i(t?.counterReset),a=i(t?.counterSet),s=i(t?.counterIncrement);function l(t){if(r.has(t))return r.get(t).slice();let i=n.getStack(e,t);i=i.length?i.slice():[];let l=o.find(e=>e.name===t);if(l){let e=Number.isFinite(l.num)?l.num:0;i=i.length?[...i,e]:[e]}let c=a.find(e=>e.name===t);if(c){let e=Number.isFinite(c.num)?c.num:0;0===i.length&&(i=[0]),i[i.length-1]=e}let u=s.find(e=>e.name===t);if(u){let e=Number.isFinite(u.num)?u.num:1;0===i.length&&(i=[0]),i[i.length-1]+=e}return r.set(t,i.slice()),i}return{get(e,t){let n=l(t);return n.length?n[n.length-1]:0},getStack:(e,t)=>l(t),__incs:s}}function sg(e,t,n,r){let i;try{i=vd(e,t)}catch{}let o=i?.content;if(!o||"none"===o||"normal"===o)return{text:"",incs:[]};o=function(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];if('"'===r)t=!t;else if("/"===r&&!t)return e.slice(0,n).trim()}return e}(o);let a=ag(e,i,og(e,n,r)),s=function(e){return/\bcounter\s*\(|\bcounters\s*\(/.test(e||"")}(o)?function(e,t,n){if(!e||"none"===e)return e;try{let r=/\b(counter|counters)\s*\(([^)]+)\)/g;return e.replace(r,(e,r,i)=>{let o=String(i).split(",").map(e=>e.trim());if("counter"===r){let e=o[0]?.replace(/^["']|["']$/g,""),r=(o[1]||"decimal").toLowerCase();return _p(n.get(t,e),r)}{let e=o[0]?.replace(/^["']|["']$/g,""),r=o[1]?.replace(/^["']|["']$/g,"")??"",i=(o[2]||"decimal").toLowerCase(),a=n.getStack(t,e);return a.length?a.map(e=>_p(e,i)).join(r):""}})}catch{return"- "}}(o,e,a):o;return{text:ig(s),incs:a.__incs||[]}}async function lg(e,t,n,r){if(1!==e?.nodeType||1!==t?.nodeType||"TEXTAREA"===e.tagName)return;if(!function(e,t){let n=eg(e);return t?(t.__pseudoPreflightFp!==n&&(t.__pseudoPreflight=ng(e,n),t.__pseudoPreflightFp=n),!!t.__pseudoPreflight):ng(e,n)}(e.ownerDocument||document,n))return;n.__siblingCounters||(n.__siblingCounters=new WeakMap),n.__counterCtx||(n.__counterCtx=function(e,t){let n=null,r=()=>{if(!n)try{n=Xp(e)}catch(e){Od(t,"buildCounterContext failed",e),n={get:()=>0,getStack:()=>[]}}return n};return{get:(e,t)=>r().get(e,t),getStack:(e,t)=>r().getStack(e,t)}}(e.ownerDocument||document,n));let i=n.__counterCtx;for(let o of["::before","::after","::first-letter"])try{let a=vd(e,o);if(!a||"none"===a.content&&"none"===a.backgroundImage&&"transparent"===a.backgroundColor&&!rg(a)&&(!a.transform||"none"===a.transform)&&"inline"===a.display)continue;if("::first-letter"===o){let r=vd(e),i=(r?.display||"").toLowerCase();if(i.includes("flex")||i.includes("grid"))continue;let o=e=>a[e]!==r[e]&&0!==(parseFloat(a[e])||0);if(!(a.color!==r.color||a.fontSize!==r.fontSize||a.fontWeight!==r.fontWeight||a.fontFamily!==r.fontFamily||a.fontStyle!==r.fontStyle||a.textTransform!==r.textTransform||a.float!==r.float&&"none"!==a.float||o("paddingTop")||o("paddingRight")||o("paddingBottom")||o("paddingLeft")||o("marginTop")||o("marginRight")||o("marginBottom")||o("marginLeft")))continue;let s=Array.from(t.childNodes).find(e=>e.nodeType===Node.TEXT_NODE&&e.textContent?.trim().length>0);if(!s)continue;let l=s.textContent,c=l.match(/^([^\p{L}\p{N}\s]*[\p{L}\p{N}](?:['’])?)/u)?.[0],u=l.slice(c?.length||0);if(!c||/[\uD800-\uDFFF]/.test(c))continue;let f=document.createElement("span");f.textContent=c,f.dataset.snapdomPseudo="::first-letter";let d=yd(Ad(a),"span");n.styleMap.set(f,d);let h=document.createTextNode(u);t.replaceChild(h,s),t.insertBefore(f,h);continue}let s=a.content??"",l=""===s||"none"===s||"normal"===s,{text:c,incs:u}=sg(e,o,i,n.__siblingCounters),f=a.backgroundImage,d=a.backgroundColor,h=a.fontFamily,p=parseInt(a.fontSize)||32,g=parseInt(a.fontWeight)||!1,m=a.color||"#000",y=a.transform,v=mp(h),A=!l&&""!==c,b=f&&"none"!==f,w=d&&"transparent"!==d&&"rgba(0, 0, 0, 0)"!==d,I=rg(a),x=y&&"none"!==y,C="none"!==s&&"normal"!==s,B=C&&((parseFloat(a.width)||0)>0||(parseFloat(a.height)||0)>0),E=C&&a.boxShadow&&"none"!==a.boxShadow,S=C&&a.outlineStyle&&"none"!==a.outlineStyle&&(parseFloat(a.outlineWidth)||0)>0;if(!(A||b||w||I||x||B||E||S)){if(u&&u.length&&e.parentElement){let t=n.__siblingCounters.get(e.parentElement)||new Map;for(let{name:r}of u){if(!r)continue;let a=og(e,i,n.__siblingCounters),s=ag(e,vd(e,o),a).get(e,r);t.set(r,s)}n.__siblingCounters.set(e.parentElement,t)}continue}let k=c.startsWith("url(")||/^-?(?:webkit-)?image-set\(/i.test(c),F=!1;if(A&&!v&&c.length>1&&!k){let n=vd(e),r=parseFloat(n.fontSize)||16,i=parseFloat(n.lineHeight);Number.isFinite(i)||(i=1.5*r),e.getBoundingClientRect().height<1.6*i&&(t.style.whiteSpace="nowrap",F=!0)}let D=document.createElement("span");D.dataset.snapdomPseudo=o,D.style.pointerEvents="none",F&&(D.style.whiteSpace="nowrap");let N=Ad(a),M=(vd(e).display||"").toLowerCase(),T=M.includes("flex")||M.includes("grid");if(T){let e=N["min-width"];(!e||"auto"===e||"0px"===e)&&(N["min-width"]="0px")}let Q=yd(N,"span",A,T);if(n.styleMap.set(D,Q),v&&c&&1===c.length){let{dataUrl:e,width:n,height:r}=await wp(c,h,g,p,m),i=document.createElement("img");i.src=e,i.style=`height:${p}px;width:${n/r*p}px;object-fit:contain;`,D.appendChild(i),t.dataset.snapdomHasIcon="true"}else if(c&&k){let t=td(c,typeof devicePixelRatio<"u"&&devicePixelRatio||1)??ed(c);if(t?.trim())try{let e=await sd(nd(t),{as:"dataURL",useProxy:r.useProxy});if(e?.ok&&"string"==typeof e.data){let t=document.createElement("img");t.src=e.data,t.style=`width:${p}px;height:auto;object-fit:contain;`,D.appendChild(t)}}catch(t){console.error(`[snapdom] Error in pseudo ${o} for`,e,t)}}else!v&&A&&(D.textContent=c);D.style.backgroundImage="none","maskImage"in D.style&&(D.style.maskImage="none"),"webkitMaskImage"in D.style&&(D.style.webkitMaskImage="none");try{D.style.backgroundRepeat=a.backgroundRepeat,D.style.backgroundSize=a.backgroundSize,a.backgroundPositionX&&a.backgroundPositionY?(D.style.backgroundPositionX=a.backgroundPositionX,D.style.backgroundPositionY=a.backgroundPositionY):D.style.backgroundPosition=a.backgroundPosition,D.style.backgroundOrigin=a.backgroundOrigin,D.style.backgroundClip=a.backgroundClip,D.style.backgroundAttachment=a.backgroundAttachment,D.style.backgroundBlendMode=a.backgroundBlendMode}catch{}if(b)try{let e=bd(f),t=await Promise.all(e.map(dd));D.style.backgroundImage=t.join(", ")}catch(e){console.warn(`[snapdom] Failed to inline background-image for ${o}`,e)}w&&(D.style.backgroundColor=d);let L=D.childNodes.length>0||""!==D.textContent?.trim()||b||w||I||x||B||E||S;if(u&&u.length&&e.parentElement){let t=n.__siblingCounters.get(e.parentElement)||new Map,r=og(e,i,n.__siblingCounters),a=ag(e,vd(e,o),r);for(let{name:n}of u){if(!n)continue;let r=a.get(e,n);t.set(n,r)}n.__siblingCounters.set(e.parentElement,t)}if(!L)continue;"::before"===o?(t.dataset.snapdomHasBefore="1",t.insertBefore(D,t.firstChild)):(t.dataset.snapdomHasAfter="1",t.appendChild(D))}catch(t){console.warn(`[snapdom] Failed to capture ${o} for`,e,t)}let o=Array.from(t.children).filter(e=>!e.dataset.snapdomPseudo);if(n.nodeMap)for(let e of o){let t=n.nodeMap.get(e);1===t?.nodeType&&await lg(t,e,n,r)}else{let t=Array.from(e.children);for(let e=0;e<Math.min(t.length,o.length);e++)await lg(t[e],o[e],n,r)}}function cg(e,t){if(!e||1!==e?.nodeType)return;let n=e.ownerDocument||document,r=t||n,i=e instanceof SVGSVGElement?[e]:Array.from(e.querySelectorAll("svg"));if(0===i.length)return;let o=/url\(\s*#([^)]+)\)/g,a=["fill","stroke","filter","clip-path","mask","marker","marker-start","marker-mid","marker-end"],s=e=>{if(!e||!e.getAttribute)return null;let t=e.getAttribute("href")||e.getAttribute("xlink:href")||("function"==typeof e.getAttributeNS?e.getAttributeNS("http://www.w3.org/1999/xlink","href"):null);if(t)return t;let n=e.attributes;if(!n)return null;for(let e=0;e<n.length;e++){let t=n[e];if(!t||!t.name)continue;if("href"===t.name)return t.value;let r=t.name.indexOf(":");if(-1!==r&&"href"===t.name.slice(r+1))return t.value}return null},l=new Set(Array.from(e.querySelectorAll("[id]")).map(e=>e.id)),c=new Set,u=!1,f=(e,t=null)=>{if(!e)return;let n;for(o.lastIndex=0;n=o.exec(e);){u=!0;let e=(n[1]||"").trim();e&&(l.has(e)||(c.add(e),t&&!t.has(e)&&t.add(e)))}},d=e=>{let t=e.querySelectorAll("use");for(let e of t){let t=s(e);if(!t||!t.startsWith("#"))continue;u=!0;let n=t.slice(1).trim();n&&!l.has(n)&&c.add(n)}f(e.getAttribute("style")||"");for(let t of a)f(e.getAttribute(t));let n=e.querySelectorAll('*[style*="url("],*[fill^="url("], *[stroke^="url("],*[filter^="url("],*[clip-path^="url("],*[mask^="url("],*[marker^="url("],*[marker-start^="url("],*[marker-mid^="url("],*[marker-end^="url("]');for(let e of n){f(e.getAttribute("style")||"");for(let t of a)f(e.getAttribute(t))}};for(let e of i)d(e);if(!u)return;let h=e.querySelector("svg.inline-defs-container");h||(h=n.createElementNS("http://www.w3.org/2000/svg","svg"),h.classList.add("inline-defs-container"),h.setAttribute("aria-hidden","true"),h.setAttribute("style","position:absolute;width:0;height:0;overflow:hidden"),e.insertBefore(h,e.firstChild||null));let p=h.querySelector("defs")||null,g=t=>{if(!t||l.has(t))return null;let n=(e=>window.CSS&&CSS.escape?CSS.escape(e):e.replace(/[^a-zA-Z0-9_-]/g,"\\$&"))(t),i=t=>{let n=r.querySelector(t);return n&&!e.contains(n)?n:null};return i(`svg defs > *#${n}`)||i(`svg > symbol#${n}`)||i(`*#${n}`)};if(!c.size)return;let m=new Set(c),y=new Set;for(;m.size;){let e=m.values().next().value;if(m.delete(e),!e||l.has(e)||y.has(e))continue;let t=g(e);if(!t){y.add(e);continue}p||(p=n.createElementNS("http://www.w3.org/2000/svg","defs"),h.appendChild(p));let r=t.cloneNode(!0);r.id||r.setAttribute("id",e),p.appendChild(r),y.add(e),l.add(e);let i=[r,...r.querySelectorAll("*")];for(let e of i){let t=s(e);if(t&&t.startsWith("#")){let e=t.slice(1).trim();e&&!l.has(e)&&!y.has(e)&&m.add(e)}let n=e.getAttribute?.("style")||"";n&&f(n,m);for(let t of a){let n=e.getAttribute?.(t);n&&f(n,m)}}}}function ug(e){if(!e||"none"===e)return{top:0,right:0,bottom:0,left:0};let t=[],n="",r=0;for(let i=0;i<e.length;i++){let o=e[i];"("===o?r++:")"===o&&(r=Math.max(0,r-1)),","===o&&0===r?(t.push(n),n=""):n+=o}n.trim()&&t.push(n);let i=0,o=0,a=0,s=0;for(let e of t){if(/\binset\b/i.test(e))continue;let t=e.match(/-?\d+(\.\d+)?px/g)?.map(e=>parseFloat(e))||[];if(t.length<2)continue;let[n,r,l=0,c=0]=t,u=Math.abs(n)+l+c,f=Math.abs(r)+l+c;o=Math.max(o,u+Math.max(n,0)),s=Math.max(s,u+Math.max(-n,0)),a=Math.max(a,f+Math.max(r,0)),i=Math.max(i,f+Math.max(-r,0))}return{top:Math.ceil(i),right:Math.ceil(o),bottom:Math.ceil(a),left:Math.ceil(s)}}function fg(e,t,n,r,i){let o=n.a,a=n.b,s=n.c,l=n.d,c=n.e||0,u=n.f||0;function f(e,t){let n=e-r,f=t-i,d=o*n+s*f,h=a*n+l*f;return d+=r+c,h+=i+u,[d,h]}let d=[f(0,0),f(e,0),f(0,t),f(e,t)],h=1/0,p=1/0,g=-1/0,m=-1/0;for(let[e,t]of d)e<h&&(h=e),t<p&&(p=t),e>g&&(g=e),t>m&&(m=t);return{minX:h,minY:p,maxX:g,maxY:m,width:g-h,height:m-p}}function dg(e,t,n){let r=(e.transformOrigin||"0 0").trim().split(/\s+/),[i,o]=[r[0]||"0",r[1]||"0"],a=(e,t)=>{let n=e.toLowerCase();return"left"===n||"top"===n?0:"center"===n?t/2:"right"===n||"bottom"===n?t:n.endsWith("px")?parseFloat(n)||0:n.endsWith("%")?(parseFloat(n)||0)*t/100:/^-?\d+(\.\d+)?$/.test(n)&&parseFloat(n)||0};return{ox:a(i,t),oy:a(o,n)}}function hg(e){let t={rotate:"0deg",scale:null,translate:null},n="function"==typeof e.computedStyleMap?e.computedStyleMap():null;if(n){let r=e=>{try{return"function"==typeof n.has&&!n.has(e)||"function"!=typeof n.get?null:n.get(e)}catch{return null}},i=r("rotate");if(i)if(i.angle){let e=i.angle;t.rotate="rad"===e.unit?180*e.value/Math.PI+"deg":e.value+e.unit}else i.unit?t.rotate="rad"===i.unit?180*i.value/Math.PI+"deg":i.value+i.unit:t.rotate=String(i);else{let n=getComputedStyle(e);t.rotate=n.rotate&&"none"!==n.rotate?n.rotate:"0deg"}let o=r("scale");if(o){let e="x"in o&&null!=o.x?.value?o.x.value:Array.isArray(o)?o[0]?.value:Number(o)||1,n="y"in o&&null!=o.y?.value?o.y.value:Array.isArray(o)?o[1]?.value:e;t.scale=`${e} ${n}`}else{let n=getComputedStyle(e);t.scale=n.scale&&"none"!==n.scale?n.scale:null}let a=r("translate");if(a){let e="x"in a&&"value"in a.x?a.x.value:Array.isArray(a)?a[0]?.value:0,n="y"in a&&"value"in a.y?a.y.value:Array.isArray(a)?a[1]?.value:0,r="x"in a&&a.x?.unit?a.x.unit:"px",i="y"in a&&a.y?.unit?a.y.unit:"px";t.translate=`${e}${r} ${n}${i}`}else{let n=getComputedStyle(e);t.translate=n.translate&&"none"!==n.translate?n.translate:null}return t}let r=getComputedStyle(e);return t.rotate=r.rotate&&"none"!==r.rotate?r.rotate:"0deg",t.scale=r.scale&&"none"!==r.scale?r.scale:null,t.translate=r.translate&&"none"!==r.translate?r.translate:null,t}Zf(),$d(),Ld();var pg=null;function gg(e){let t=function(){if(pg)return pg;let e=document.createElement("div");return e.id="snapdom-measure-slot",e.setAttribute("aria-hidden","true"),Object.assign(e.style,{position:"absolute",left:"-99999px",top:"0px",width:"0px",height:"0px",overflow:"hidden",opacity:"0",pointerEvents:"none",contain:"size layout style"}),document.documentElement.appendChild(e),pg=e,e}(),n=document.createElement("div");n.style.transformOrigin="0 0",e.baseTransform&&(n.style.transform=e.baseTransform),e.rotate&&(n.style.rotate=e.rotate),e.scale&&(n.style.scale=e.scale),e.translate&&(n.style.translate=e.translate),t.appendChild(n);let r=function(e){let t=getComputedStyle(e).transform;if(!t||"none"===t)return new DOMMatrix;try{return new DOMMatrix(t)}catch{return new WebKitCSSMatrix(t)}}(n);return t.removeChild(n),r}var mg="http://www.w3.org/1999/xhtml",yg=new WeakSet;function vg(e,t){if(!t)return null;let n,r,i,o,a=e.ownerDocument||document,s=a.defaultView||window;if("viewport"===t)n=0,r=0,i=a.documentElement?.clientWidth||s.innerWidth,o=a.documentElement?.clientHeight||s.innerHeight;else{if("object"!=typeof t)return null;n=(Number(t.x)||0)-(s.scrollX||0),r=(Number(t.y)||0)-(s.scrollY||0),i=Number(t.width),o=Number(t.height)}return i>0&&o>0?{left:n,top:r,width:i,height:o,right:n+i,bottom:r+o}:null}function Ag(e){if(e.parentElement)return e.parentElement;let t=e.getRootNode&&e.getRootNode();return t instanceof ShadowRoot?t.host:null}function bg(e,t){for(let n=t;n;n=Ag(n))if(n===e)return!0;return!1}function wg(e,t){for(let n=Ag(e);n&&n!==t&&1===n?.nodeType;n=Ag(n)){let e=vd(n);if("static"!==e.position||e.transform&&"none"!==e.transform||e.filter&&"none"!==e.filter||e.backdropFilter&&"none"!==e.backdropFilter||e.perspective&&"none"!==e.perspective||/transform|perspective|filter/.test(e.willChange||"")||/layout|paint|strict|content/.test(e.contain||""))return n}return null}function Ig(e,t){try{let n=new DOMMatrix;if(t&&t.rotate&&"0deg"!==t.rotate&&(n=n.multiply(new DOMMatrix(`rotate(${t.rotate})`))),t&&t.scale){let e=String(t.scale).trim().split(/\s+/).filter(Boolean);e.length&&e.every(e=>Number.isFinite(Number(e)))&&(n=n.multiply(new DOMMatrix(`scale(${e.join(",")})`)))}return e&&(n=n.multiply(new DOMMatrix(e))),n}catch{return null}}function xg(e){let t=e.display||"";if(t.includes("flex")||t.includes("grid")||t.startsWith("table")||"inline-block"===t||"flow-root"===t||"absolute"===e.position||"fixed"===e.position||e.float&&"none"!==e.float)return!0;let n=e.overflowX||e.overflow||"visible",r=e.overflowY||e.overflow||"visible";return!!("visible"!==n||"visible"!==r||e.contain&&/\b(layout|content|paint|strict)\b/.test(e.contain))}function Cg(e,t){let n=Array.from(e.childNodes),r="top"===t?n:n.reverse();for(let e of r){if(e.nodeType===Node.TEXT_NODE){if(/\S/.test(e.textContent||""))return null;continue}if(e.nodeType!==Node.ELEMENT_NODE)continue;let t=getComputedStyle(e),n=String(t.display||"");if("none"!==n&&"contents"!==n&&"absolute"!==t.position&&"fixed"!==t.position)return t.float&&"none"!==t.float||n.startsWith("inline")?null:e}return null}var Bg=/[\x00-\x08\x0B\x0C\x0E-\x1F\uFFFE\uFFFF]/g;function Eg(e,t={}){e&&(function(e,t={}){let{stripFrameworkDirectives:n=!0}=t,r=new Set(["xml","xlink"]),i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;i.nextNode();){let e=i.currentNode;for(let t of Array.from(e.attributes)){let i=t.name;if(i.startsWith("*"))e.removeAttribute(i);else if(i.includes("@"))e.removeAttribute(i);else{if(i.includes(":")){let t=i.split(":",1)[0];if(!r.has(t)){e.removeAttribute(i);continue}}n&&(i.startsWith("x-")||i.startsWith("v-")||i.startsWith(":")||i.startsWith("on:")||i.startsWith("bind:")||i.startsWith("let:")||i.startsWith("class:"))&&e.removeAttribute(i)}}}}(e,t),function(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_COMMENT),n=[];for(;t.nextNode();)n.push(t.currentNode);for(let e of n)e.remove()}(e),function(e){if(!e)return;let t=e=>{if(e.nodeType===Node.ELEMENT_NODE){if(e.attributes)for(let t of Array.from(e.attributes)){let n=t.value.replace(Bg,"");if(n!==t.value)try{e.setAttribute(t.name,n)}catch{}}}else if(e.nodeType===Node.TEXT_NODE||e.nodeType===Node.CDATA_SECTION_NODE){let t=e.data.replace(Bg,"");t!==e.data&&(e.data=t)}};t(e);let n,r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT);for(;n=r.nextNode();)t(n)}(e))}function Sg(e,t){if(1!==e?.nodeType||function(e){try{let t=e.getAttribute?.("style")||"";return/\b(height|width|block-size|inline-size)\s*:/.test(t)}catch{return!1}}(e)||function(e){return e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof HTMLIFrameElement||e instanceof SVGElement||e instanceof HTMLObjectElement||e instanceof HTMLEmbedElement}(e))return!1;let n=t.position;if("absolute"===n||"fixed"===n||"sticky"===n)return!1;let r=t.display||"";return!(r.includes("flex")||r.includes("grid")||r.startsWith("table")||t.transform&&"none"!==t.transform)}function kg(e){let t=getComputedStyle(e);return!("none"===t.display||"absolute"===t.position||"fixed"===t.position)}function Fg(e,t){if(1!==e?.nodeType)return!1;if("exclude"===e.getAttribute("data-capture")&&"remove"===t?.excludeMode)return!0;if(Array.isArray(t?.exclude))for(let n of t.exclude)try{if(e.matches(n))return"remove"===t.excludeMode}catch(e){Od(t,"exclude selector match failed",e)}if("function"==typeof t?.filter&&"remove"===t.filterMode)try{if(!t.filter(e))return!0}catch(e){Od(t,"filter function failed",e)}return!1}var Dg=(e,t=3)=>Number.isFinite(e)?Math.round(e*10**t)/10**t:e,Ng=.75;var Mg=/::-webkit-scrollbar(-[a-z]+)?\b/i;function Tg(e,t=new Set){let n="";if(!e)return n;for(let r=0;r<e.length;r++){let i=e[r];try{if(i.type===CSSRule.IMPORT_RULE&&i.styleSheet){n+=Tg(i.styleSheet.cssRules,t);continue}if(i.type===CSSRule.MEDIA_RULE&&i.cssRules){let e=Tg(i.cssRules,t);e&&(n+=`@media ${i.conditionText}{${e}}`);continue}if(i.type===CSSRule.STYLE_RULE){let e=i.selectorText||"";if(Mg.test(e)){let e=i.cssText;e&&!t.has(e)&&(t.add(e),n+=e)}}}catch{}}return n}var Qg=new WeakMap;qd();var Lg=new Set;async function Rg(e,t={}){let n=t.__session||Kf.session,r={styleMap:n.styleMap,styleCache:n.styleCache,nodeMap:n.nodeMap,options:t},i=null;if(t.clip){let n=vg(e,t.clip);if(n){r.clip={rect:n,root:e};let t=e.getBoundingClientRect();i={x:n.left-t.left,y:n.top-t.top,width:n.width,height:n.height}}}let o,a="",s="";if(Lg.size){let t=(e,t)=>{for(let n=t;n;n=n.assignedSlot||n.parentElement||n.getRootNode()?.host)if(n===e)return!0;return!1};for(;;){let n=[...Lg].filter(({root:n})=>t(n,e)||t(e,n)).map(({promise:e})=>e.catch(()=>{}));if(!n.length)break;await Promise.all(n)}}if(!r.clip&&e.isConnected&&"hidden"!==e.ownerDocument?.visibilityState)try{let t=e.getBoundingClientRect(),n=e.ownerDocument?.defaultView||window,r=t.right<=0||t.bottom<=0||t.left>=n.innerWidth||t.top>=n.innerHeight,i=[];if(r&&(()=>{let t=[];e.shadowRoot&&t.push(e.shadowRoot);for(let n of e.querySelectorAll("*"))n.shadowRoot&&t.push(n.shadowRoot);for(;t.length;){let e=t.pop(),n="calcite-icon"===e.host?.localName;for(let r of e.querySelectorAll("*")){if(r.shadowRoot&&t.push(r.shadowRoot),!n||"svg"!==r.localName)continue;let e=r.querySelectorAll("path");if(!e.length||[...e].some(e=>e.getAttribute("d")?.trim()))continue;let o=r.getBoundingClientRect();o.width&&o.height&&i.push(r)}}})(),i.length){let t=(async()=>{let t=e.style,r=e.hasAttribute("style"),o=new Map,a=(e,n)=>{o.has(e)||o.set(e,{value:t.getPropertyValue(e),priority:t.getPropertyPriority(e)}),t.setProperty(e,n,"important");let r=o.get(e);r.forcedValue=t.getPropertyValue(e),r.forcedPriority=t.getPropertyPriority(e)};try{a("left","0"),a("top","0"),a("right","auto"),a("bottom","auto"),a("margin-top","0"),a("margin-right","0"),a("margin-bottom","0"),a("margin-left","0"),a("transform","none"),a("translate","none"),a("opacity","0"),a("pointer-events","none");let t=e.getBoundingClientRect();if(t.right<=0||t.bottom<=0||t.left>=n.innerWidth||t.top>=n.innerHeight){let t=e.parentElement?.getBoundingClientRect(),r=t&&t.right>0&&t.left<n.innerWidth?Math.max(0,t.left):0,i=t&&t.bottom>0&&t.top<n.innerHeight?Math.max(0,t.top):0;a("position","fixed"),a("left",`${r}px`),a("top",`${i}px`)}await Ud(100);let r=Date.now()+1500,o=()=>i.some(e=>{if([...e.querySelectorAll("path")].some(e=>e.getAttribute("d")?.trim()))return!1;let t=e.getBoundingClientRect();return t.width&&t.height&&t.right>0&&t.bottom>0&&t.left<n.innerWidth&&t.top<n.innerHeight});for(;Date.now()<r&&o();)await new Promise(e=>setTimeout(e,25));await Ud(100)}finally{for(let[e,n]of o)t.getPropertyValue(e)!==n.forcedValue||t.getPropertyPriority(e)!==n.forcedPriority||(n.value?t.setProperty(e,n.value,n.priority):t.removeProperty(e));!r&&!t.length&&e.removeAttribute("style"),await Ud(100)}})(),r={root:e,promise:t};Lg.add(r);try{await t}finally{Lg.delete(r)}}}catch{}let l=function(e){let t=getComputedStyle(e),n=t.outlineStyle,r=t.outlineWidth,i=t.borderStyle,o=t.borderWidth,a="none"!==n&&parseFloat(r)>0,s="none"===i||0===parseFloat(o);if(a&&s){let t=e.style.border;return e.style.border=`${r} solid transparent`,()=>{e.style.border=t}}return()=>{}}(e),c=r.clip?()=>{}:function(e){let t=[];try{let n=e.querySelectorAll("*");for(let e of n){if(!(e instanceof HTMLElement))continue;let n=e.style.contentVisibility||"",r=getComputedStyle(e);"auto"===(r.contentVisibility||r.getPropertyValue("content-visibility")||"")&&(t.push({el:e,original:n}),e.style.contentVisibility="visible")}if(e instanceof HTMLElement){let n=getComputedStyle(e);"auto"===(n.contentVisibility||n.getPropertyValue("content-visibility")||"")&&(t.push({el:e,original:e.style.contentVisibility||""}),e.style.contentVisibility="visible")}}catch{}return()=>{for(let{el:e,original:n}of t)try{e.style.contentVisibility=n}catch{}}}(e);try{o=await up(e,r,t)}catch(e){throw console.warn("deepClone failed:",e),e}finally{c(),l()}try{cg(o)}catch(e){console.warn("inlineExternal defs or symbol failed:",e)}try{await lg(e,o,r,t)}catch(e){console.warn("inlinePseudoElements failed:",e)}await async function(e,t=null){if(!e)return;let n=t,r=np(e,"img");for(let e of r)try{let t=e.getAttribute("src")||e.currentSrc||"";if(Zh(t)){let n=await _h(t);e.setAttribute("src",n)}let r=e.getAttribute("srcset");if(r&&r.includes("blob:")){let t=ep(r),i=!1;for(let e of t)if(Zh(e.url))try{e.url=await _h(e.url),i=!0}catch(e){Od(n,"blobUrlToDataUrl for srcset item failed",e)}i&&e.setAttribute("srcset",tp(t))}}catch(e){Od(n,"resolveBlobUrls for img failed",e)}let i=np(e,"image");for(let e of i)try{let t="http://www.w3.org/1999/xlink",n=e.getAttribute("href")||e.getAttributeNS?.(t,"href");if(Zh(n)){let r=await _h(n);e.setAttribute("href",r),e.removeAttributeNS?.(t,"href")}}catch(e){Od(n,"resolveBlobUrls for SVG image href failed",e)}let o=np(e,"[style*='blob:']");for(let e of o)try{let t=e.getAttribute("style");if(t&&t.includes("blob:")){let n=await Kh(t);e.setAttribute("style",n)}}catch(e){Od(n,"replaceBlobUrls in inline style failed",e)}let a=e.querySelectorAll?e.querySelectorAll("style"):[];for(let e of a)try{let t=e.textContent||"";t.includes("blob:")&&(e.textContent=await Kh(t))}catch(e){Od(n,"replaceBlobUrls in style tag failed",e)}let s=["poster"];for(let t of s){let r=np(e,`[${t}^='blob:']`);for(let e of r)try{let n=e.getAttribute(t);Zh(n)&&e.setAttribute(t,await _h(n))}catch(e){Od(n,`resolveBlobUrls for ${t} failed`,e)}}}(o,r);try{let e=o.querySelectorAll("style[data-sd]");for(let t of e)s+=t.textContent||"",t.remove()}catch(e){Od(r,"Failed to extract shadow CSS from style[data-sd]",e)}let u=function(e){let t=Array.from(new Set(e.values())).filter(Boolean).sort(),n=new Map,r=1;for(let e of t)n.set(e,"c"+r++);return n}(r.styleMap);a=Array.from(u.entries()).map(([e,t])=>`.${t}{${e}}`).join(""),a=s+"[data-snapdom-has-after]::after,[data-snapdom-has-before]::before{content:none!important;display:none!important}"+a;for(let[e,t]of r.styleMap.entries()){if("STYLE"===e.tagName)continue;if(e.getRootNode&&e.getRootNode()instanceof ShadowRoot){e.setAttribute("style",t.replace(/;/g,"; "));continue}let n=u.get(t);n&&e.classList.add(n);let r=e.style?.backgroundImage,i=e.dataset?.snapdomHasIcon;r&&"none"!==r&&(e.style.backgroundImage=r),i&&(e.style.verticalAlign="middle",e.style.display="inline")}if((r.clip||e.scrollTop||e.scrollLeft)&&1===o?.nodeType)try{let t=r.clip&&i?{x:i.x,y:i.y}:{x:0,y:0};!function(e,t,n,r,i){let o=e.getBoundingClientRect();1===t?.nodeType&&t.namespaceURI===mg&&"static"===vd(e).position&&(t.style.position="relative");let a=[];for(let[t,s]of n){if(1!==t?.nodeType||t.namespaceURI!==mg||1!==s?.nodeType||s===e||!bg(e,s))continue;let n=r.get(s)||vd(s),l=n.position;if("fixed"!==l&&"sticky"!==l&&"-webkit-sticky"!==l||"absolute"===t.style.position)continue;let c=s.getBoundingClientRect();if(!(c.width>0&&c.height>0))continue;yg.add(t);let u=n.transform&&"none"!==n.transform?n.transform:"",f=hg(s),d=!!(u||"0deg"!==f.rotate||f.scale||f.translate),h=d?Ig(u,f):null,p=!h||!h.is2D||1===h.a&&0===h.b&&0===h.c&&1===h.d,g=c.width,m=c.height;p||(g=s.offsetWidth||c.width,m=s.offsetHeight||c.height);let y=s.getRootNode&&s.getRootNode()instanceof ShadowRoot,v=o,A=e.clientLeft||0,b=e.clientTop||0;if(y){let t=wg(s,e);t&&(v=t.getBoundingClientRect(),A=t.clientLeft||0,b=t.clientTop||0)}let w=c.left-v.left-A,I=c.top-v.top-b;if(d)if(t.style.translate="none",t.style.rotate="none",t.style.scale="none",p)t.style.transform="none";else{t.style.transform=`matrix(${h.a},${h.b},${h.c},${h.d},0,0)`;let{ox:e,oy:r}=dg(n,g,m),i=fg(g,m,{a:h.a,b:h.b,c:h.c,d:h.d,e:0,f:0},e,r);w-=i.minX,I-=i.minY}if("fixed"!==l){let e=t.cloneNode(!1);e.setAttribute("data-snap-ph","1"),e.style.position="static",e.style.visibility="hidden",e.style.width=`${g}px`,e.style.height=`${m}px`,e.style.boxSizing="border-box",t.parentElement?.insertBefore(e,t)}let x=g+2,C=m;i&&(Math.abs(I-i.y)<.5&&(I-=1,C+=1),Math.abs(w-i.x)<.5&&(w-=1,x+=1)),t.style.position="absolute",t.style.left=`${w}px`,t.style.top=`${I}px`,t.style.right="auto",t.style.bottom="auto",t.style.margin="0",t.style.width=`${x}px`,t.style.height=`${C}px`,t.style.boxSizing="border-box",y||a.push(t)}for(let e of a)t.appendChild(e)}(e,o,r.nodeMap,r.styleCache,t)}catch(e){Od(r,"freezeViewportPositioned failed",e)}for(let[t,n]of r.nodeMap.entries()){if(r.clip&&n===e)continue;let i=n.scrollLeft,o=n.scrollTop;if((i||o)&&1===t?.nodeType&&"http://www.w3.org/1999/xhtml"===t.namespaceURI){t.style.overflow="hidden",t.style.scrollbarWidth="none",t.style.msOverflowStyle="none";try{let e=t.querySelectorAll("*");for(let t of e){if(1!==t.nodeType||"http://www.w3.org/1999/xhtml"!==t.namespaceURI)continue;let e=t.style.position;if("fixed"===e||"absolute"===e){let n=parseFloat(t.style.top)||0,r=parseFloat(t.style.left)||0;t.style.top=`${n+o}px`,t.style.left=`${r+i}px`,"fixed"===e&&(t.style.position="absolute")}}}catch{}let e=document.createElement("div");for(e.style.all="unset",e.style.transform=`translate(${-i}px, ${-o}px)`,e.style.willChange="transform",e.style.display="inline-block",e.style.width="100%";t.firstChild;)e.appendChild(t.firstChild);t.appendChild(e)}}if(e===r.nodeMap.get(o)){let t=r.styleCache.get(e)||vd(e);r.styleCache.set(e,t);let n=function(e){if(!e||"none"===e)return"";let t=e.replace(/translate[XY]?\([^)]*\)/g,"");return t=t.replace(/matrix\(([^)]+)\)/g,(e,t)=>{let n=t.split(",").map(e=>e.trim());return 6!==n.length?`matrix(${t})`:(n[4]="0",n[5]="0",`matrix(${n.join(", ")})`)}),t=t.replace(/matrix3d\(([^)]+)\)/g,(e,t)=>{let n=t.split(",").map(e=>e.trim());return 16!==n.length?`matrix3d(${t})`:(n[12]="0",n[13]="0",`matrix3d(${n.join(", ")})`)}),t.trim().replace(/\s{2,}/g," ")}(t.transform);o.style.margin="0",o.style.top="auto",o.style.left="auto",o.style.right="auto",o.style.bottom="auto",o.style.animation="none",o.style.transition="none",o.style.willChange="auto",o.style.float="none",o.style.clear="none",o.style.transform=n||""}for(let[e,t]of r.nodeMap.entries())"PRE"===t.tagName&&(e.style.marginTop="0",e.style.marginBlockStart="0");return{clone:o,classCSS:a,styleCache:r.styleCache,nodeMap:r.nodeMap,reconcileRisk:r.reconcileRisk||0,clipWindow:i}}fd(),Zf();var Ug="http://www.w3.org/1999/xlink";async function Hg(e,t={}){let n=Array.from(e.querySelectorAll("img"));"IMG"===e.tagName&&n.unshift(e);let r=async e=>{if(!e.getAttribute("src")){let t=e.currentSrc||e.src||Oh(e.getAttribute("srcset"),e)||"";t&&e.setAttribute("src",t)}e.removeAttribute("srcset"),e.removeAttribute("sizes");let n=e.src||"";if(!n)return;let r=Kf.image?.get(n);if(r)return e.src=r,e.width||(e.width=e.naturalWidth||100),void(e.height||(e.height=e.naturalHeight||100));let i=await sd(n,{as:"dataURL",useProxy:t.useProxy});if(i.ok&&"string"==typeof i.data&&i.data.startsWith("data:"))return Kf.image?.set(n,i.data),e.src=i.data,e.width||(e.width=e.naturalWidth||100),void(e.height||(e.height=e.naturalHeight||100));let{width:o,height:a}=function(e){let t=parseInt(e.dataset?.snapdomWidth||"",10)||0,n=parseInt(e.dataset?.snapdomHeight||"",10)||0,r=parseInt(e.getAttribute("width")||"",10)||0,i=parseInt(e.getAttribute("height")||"",10)||0,o=parseFloat(e.style?.width||"")||0,a=parseFloat(e.style?.height||"")||0;return{width:t||o||r||e.width||e.naturalWidth||100,height:n||a||i||e.height||e.naturalHeight||100}}(e),{fallbackURL:s}=t||{};if(s)try{let r="function"==typeof s?await s({width:o,height:a,src:n,element:e}):s;if(r){let n=await sd(r,{as:"dataURL",useProxy:t.useProxy});if(n?.ok&&"string"==typeof n.data)return e.src=n.data,e.width||(e.width=o),void(e.height||(e.height=a))}}catch{}if(!1!==t.placeholders){let t=document.createElement("div");t.style.cssText=[`width:${o}px`,`height:${a}px`,"background:#ccc","display:inline-block","text-align:center",`line-height:${a}px`,"color:#666","font-size:12px","overflow:hidden"].join(";"),t.textContent="img",e.replaceWith(t)}else{let t=document.createElement("div");t.style.cssText=`display:inline-block;width:${o}px;height:${a}px;visibility:hidden;`,e.replaceWith(t)}};for(let e=0;e<n.length;e+=6){let t=n.slice(e,e+6).map(r);await Promise.allSettled(t)}let i=Array.from(e.querySelectorAll("image"));"image"===e.localName&&i.unshift(e);let o=async e=>{let n=function(e){return e.getAttribute("href")||e.getAttribute("xlink:href")||("function"==typeof e.getAttributeNS?e.getAttributeNS(Ug,"href"):null)}(e);if(!n||n.startsWith("data:")||n.startsWith("blob:"))return;let r=await sd(n,{as:"dataURL",useProxy:t.useProxy});r.ok&&"string"==typeof r.data&&r.data.startsWith("data:")&&(e.setAttribute("href",r.data),e.removeAttribute("xlink:href"),"function"==typeof e.removeAttributeNS&&e.removeAttributeNS(Ug,"href"))};for(let e=0;e<i.length;e+=6){let t=i.slice(e,e+6).map(o);await Promise.allSettled(t)}}$d(),Zf();var qg=["background-image","mask","mask-image","-webkit-mask","-webkit-mask-image","mask-source","mask-box-image-source","mask-border-source","-webkit-mask-box-image-source","border-image","border-image-source"],Og=["mask-position","mask-size","mask-repeat","mask-mode","mask-composite","-webkit-mask-position","-webkit-mask-size","-webkit-mask-repeat","-webkit-mask-composite","mask-origin","mask-clip","-webkit-mask-origin","-webkit-mask-clip","-webkit-mask-position-x","-webkit-mask-position-y"],Pg=["background-position","background-position-x","background-position-y","background-size","background-repeat","background-origin","background-clip","background-attachment","background-blend-mode"],$g=["border-image-slice","border-image-width","border-image-outset","border-image-repeat"];async function zg(e,t,n,r){let i=n.get(e)||vd(e);n.has(e)||n.set(e,i);let o=i.getPropertyValue("border-image"),a=i.getPropertyValue("border-image-source"),s=o&&"none"!==o||a&&"none"!==a,l=i.getPropertyValue("background-image"),c=i.getPropertyValue("background-color");if(l&&"none"!==l||c&&"rgba(0, 0, 0, 0)"!==c&&"transparent"!==c||/url\s*\(|gradient\s*\(/i.test(i.getPropertyValue("background")||""))for(let e of Pg){let n=i.getPropertyValue(e);n&&t.style.setProperty(e,n)}for(let e of qg){let n=i.getPropertyValue(e);if("background-image"===e&&(!n||"none"===n)){let e=i.getPropertyValue("background");e&&/url\s*\(/.test(e)&&(n=bd(e).filter(e=>/url\s*\(/.test(e)).join(", ")||n)}if(!n||"none"===n)continue;let o=bd(n),a=await Promise.all(o.map(e=>dd(e,r)));a.some(e=>e&&"none"!==e&&!/^url\(undefined/.test(e))&&t.style.setProperty(e,a.join(", "))}for(let e of Og){let n=i.getPropertyValue(e);!n||"initial"===n||t.style.setProperty(e,n)}if(s)for(let e of $g){let n=i.getPropertyValue(e);!n||"initial"===n||t.style.setProperty(e,n)}}function jg(e,t,n=Kf.session.nodeMap){let r=[],i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(let e=i.currentNode;e;e=i.nextNode()){let i=n.get(e);if(1!==i?.nodeType)continue;let o=vd(i),a=o.getPropertyValue("backdrop-filter")||o.getPropertyValue("-webkit-backdrop-filter");a&&"none"!==a&&e!==t&&r.push({cloneEl:e,orig:i,bf:a,path:Wg(t,e)})}if(!r.length)return;let o=e.getBoundingClientRect(),a=r.map((e,i)=>{let o=t.cloneNode(!0);(function(e,t,n,r){let i=[[e,t]];for(;i.length;){let[e,t]=i.pop(),o=r.get(t);if(1===o?.nodeType){let t=o.getBoundingClientRect();(t.left>n.right+Yg||t.right<n.left-Yg||t.top>n.bottom+Yg||t.bottom<n.top-Yg)&&("IMG"===e.tagName&&e.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA="),e.style&&(e.style.backgroundImage="none"))}let a=e.children,s=t.children;for(let e=0;e<a.length;e++)i.push([a[e],s[e]])}})(o,t,e.orig.getBoundingClientRect(),n),function(e){if(e)for(let t=e;t&&t.parentNode;){let n=t.parentNode;for(;t.nextSibling;)t.nextSibling.remove();t===e&&t.remove(),t=n}}(Gg(o,e.path));for(let e=0;e<i;e++){let t=Gg(o,r[e].path);t&&(t.style.setProperty("backdrop-filter","none","important"),t.style.setProperty("-webkit-backdrop-filter","none","important"))}return{...e,copy:o}});for(let{cloneEl:e,orig:t,bf:n,copy:r}of a)Vg(e,t,n,r,o)}function Vg(e,t,n,r,i){let o=t.getBoundingClientRect();if(!o.width||!o.height)return;let a=vd(t),s=t.offsetWidth?o.width/t.offsetWidth:1,l=Math.abs(s-1)>.001?1/s:1;r.style.position="absolute",r.style.left=(i.left-o.left)*l+"px",r.style.top=(i.top-o.top)*l+"px",r.style.width=`${i.width}px`,r.style.height=`${i.height}px`,r.style.margin="0",r.style.filter=n,1!==l&&(r.style.transform=`scale(${l})`,r.style.transformOrigin="top left");let c=document.createElement("div");c.style.cssText="position:absolute;inset:0;overflow:hidden;border-radius:inherit;z-index:-2",c.appendChild(r);let u=document.createElement("div");u.style.cssText="position:absolute;inset:0;border-radius:inherit;z-index:-1",u.style.backgroundColor=a.backgroundColor,u.style.backgroundImage=e.style.backgroundImage||a.backgroundImage;for(let e of["background-size","background-position","background-repeat","background-origin","background-clip"])u.style.setProperty(e,a.getPropertyValue(e));e.style.setProperty("background-color","transparent","important"),e.style.setProperty("background-image","none","important"),e.style.setProperty("backdrop-filter","none","important"),e.style.setProperty("-webkit-backdrop-filter","none","important"),"static"===a.position&&(e.style.position="relative"),e.style.isolation="isolate",e.prepend(u),e.prepend(c)}Zf(),$d();var Yg=128;function Wg(e,t){let n=[];for(let r=t;r!==e;r=r.parentElement){if(!r?.parentElement)return null;n.push([...r.parentElement.children].indexOf(r))}return n.reverse()}function Gg(e,t){if(!t)return null;let n=e;for(let e of t)if(n=n.children[e],!n)return null;return n}function Jg(e,t){if(!e)return()=>{};let n=[],r=200;return function e(i){if(t){let e=i.getBoundingClientRect();if(e.width>0||e.height>0){let n=Math.max(e.right,e.left+(i.scrollWidth||0)),o=Math.max(e.bottom,e.top+(i.scrollHeight||0));if(n<t.left-r||e.left>t.right+r||o<t.top-r||e.top>t.bottom+r)return}}let o=getComputedStyle(i),a=function(e,t){if(!e)return()=>{};t=t||getComputedStyle(e);let n=function(e){let t=e.getPropertyValue("-webkit-line-clamp")||e.getPropertyValue("line-clamp");t=(t||"").trim();let n=parseInt(t,10);return Number.isFinite(n)&&n>0?n:0}(t);if(n<=0)return()=>{};if(!Xg(e))return()=>{};let r=_g(e),i=r.text,o=function(e){return(parseFloat(e.paddingTop)||0)+(parseFloat(e.paddingBottom)||0)}(t);r.write("X");let a=e.scrollHeight-o;r.restore();let s=a>0?a:function(e){let t=(e.lineHeight||"").trim(),n=parseFloat(e.fontSize)||16;return t&&"normal"!==t?t.endsWith("px")?parseFloat(t):/^\d+(\.\d+)?$/.test(t)?Math.round(parseFloat(t)*n):t.endsWith("%")?Math.round(parseFloat(t)/100*n):Math.round(1.2*n):Math.round(1.2*n)}(t),l=Math.round(s*n+o);if(e.scrollHeight<=l+.5)return()=>{};let c=0,u=i.length,f=-1;for(;c<=u;){let t=c+u>>1;r.write(i.slice(0,t)+"…"),e.scrollHeight<=l+.5?(f=t,c=t+1):u=t-1}return r.write((f>=0?i.slice(0,f):"")+"…"),()=>{r.restore()}}(i,o);a&&n.push(a);let s=function(e,t){if(!e)return()=>{};if(t=t||getComputedStyle(e),"ellipsis"!==t.textOverflow)return()=>{};if("nowrap"!==t.whiteSpace&&"pre"!==t.whiteSpace)return()=>{};if("hidden"!==t.overflowX&&"clip"!==t.overflowX)return()=>{};if(!Xg(e))return()=>{};if(e.scrollWidth<=e.clientWidth+.5)return()=>{};let n=_g(e),r=n.text,i=0,o=r.length,a=-1;for(;i<=o;){let t=i+o>>1;n.write(r.slice(0,t)+"…"),e.scrollWidth<=e.clientWidth+.5?(a=t,i=t+1):o=t-1}return n.write((a>=0?r.slice(0,a):"")+"…"),()=>{n.restore()}}(i,o);s&&n.push(s);for(let t of i.children||[])e(t)}(e),()=>n.forEach(e=>e())}function _g(e){let t=[];for(let n=e.firstChild;n;n=n.nextSibling)n.nodeType===Node.TEXT_NODE&&t.push(n);let n=t.map(e=>e.data);return{text:n.join(""),write(e){t[0].data=e;for(let e=1;e<t.length;e++)t[e].data=""},restore(){for(let e=0;e<t.length;e++)t[e].data=n[e]}}}function Xg(e){return!(e.childElementCount>0)&&Array.from(e.childNodes).some(e=>e.nodeType===Node.TEXT_NODE)}$d(),Zf();var Kg=[];function Zg(e){if(!e)return null;if(Array.isArray(e)){let[t,n]=e;return"function"==typeof t?t(n):t}if("object"==typeof e&&"plugin"in e){let{plugin:t,options:n}=e;return"function"==typeof t?t(n):t}return"function"==typeof e?e():e}function em(e){return e&&Array.isArray(e.plugins)?e.plugins:Kg}async function tm(e,t,n){let r=n,i=em(t);for(let n of i){let i=n&&"function"==typeof n[e]?n[e]:null;if(!i)continue;let o=await i(t,r);typeof o<"u"&&(r=o)}return r}function nm(e,t,n=!1){return!e||e.plugins&&!n||(e.plugins=function(e){let t=[];if(Array.isArray(e))for(let n of e){let e=Zg(n);if(!e||!e.name)continue;let r=t.findIndex(t=>t&&t.name===e.name);r>=0&&t.splice(r,1),t.push(e)}for(let e of Kg)e&&e.name&&!t.some(t=>t.name===e.name)&&t.push(e);return Object.freeze(t)}(t)),e}function rm(){return Kg.slice()}Zf();async function im(e,t,n){if("string"!=typeof e||!e.startsWith("data:image")||e.startsWith("data:image/svg"))return null;let r=e.length+":"+e.slice(0,64)+e.slice(-64)+":"+Math.round(t)+"x"+Math.round(n);if(Kf.compress.has(r))return Kf.compress.get(r);let i=await(async()=>{let r;try{r=await async function(e){let t=new Image;if(t.decoding="sync",t.src=e,"function"==typeof t.decode)try{return await t.decode(),t}catch{}return await new Promise((e,n)=>{t.onload=()=>e(),t.onerror=n}),t}(e)}catch{return null}let i=r.naturalWidth||r.width,o=r.naturalHeight||r.height;if(!i||!o)return null;let a=Math.min(1,Math.max(t/i,n/o));if(!(a>0)||a>=.95)return null;let s=.95*a,l=Math.max(1,Math.round(i*s)),c=Math.max(1,Math.round(o*s)),u=document.createElement("canvas");u.width=l,u.height=c;let f=u.getContext("2d");if(!f)return null;f.imageSmoothingEnabled=!0,f.imageSmoothingQuality="high",f.drawImage(r,0,0,l,c);let d=function(e){let t=/^data:([^;,]+)/.exec(e);return t?t[1]:""}(e),h="image/jpeg"===d?"image/jpeg":"image/webp"===d?"image/webp":"image/png";try{let t=u.toDataURL(h,.92);if("string"==typeof t&&t.startsWith("data:image")&&t.length<e.length)return t}catch{}return null})();return Kf.compress.set(r,i),i}async function om(e,t,n){t.compress&&(await async function(e,t){if(!t.compress)return{count:0,before:0,after:0};let n=(t.scale||1)*(t.dpr||1),r=Array.from(e.querySelectorAll("img"));"IMG"===e.tagName&&r.unshift(e);let i=0,o=0,a=0,s=async e=>{let t=e.getAttribute("src")||"";if(!t.startsWith("data:image")||t.startsWith("data:image/svg"))return;let r=parseFloat(e.dataset.snapdomWidth)||parseFloat(e.style.width)||e.width||0,s=parseFloat(e.dataset.snapdomHeight)||parseFloat(e.style.height)||e.height||0;if(!r||!s)return;let l=await im(t,r*n,s*n);l&&(i++,o+=t.length,a+=l.length,e.setAttribute("src",l))};for(let e=0;e<r.length;e+=6)await Promise.allSettled(r.slice(e,e+6).map(s));return{count:i,before:o,after:a}}(e,t),await async function(e,t,n=Kf.session.nodeMap){if(!t.compress)return{count:0};let r=(t.scale||1)*(t.dpr||1),i=[],o=[e,...e.querySelectorAll("*")];for(let e of o){let t=e.style&&e.style.backgroundImage;t&&t.includes("data:image")&&i.push(e)}let a=0,s=async e=>{let t,i=n.get(e);if(!i||!i.isConnected)return;try{t=getComputedStyle(i)}catch{return}if((t.backgroundRepeat||"repeat").toLowerCase().split(",").some(e=>"no-repeat"!==e.trim()))return;let{w:o,h:s}=function(e){return{w:e.offsetWidth||e.getBoundingClientRect().width||0,h:e.offsetHeight||e.getBoundingClientRect().height||0}}(i);if(!o||!s)return;let l=o*r,c=s*r,u=e.style.backgroundImage,f=[...u.matchAll(/url\((['"]?)(data:image\/[^)'"]+)\1\)/gi)],d=u;for(let e of f){let t=e[2];if(t.startsWith("data:image/svg"))continue;let n=await im(t,l,c);n&&(d=d.split(t).join(n),a++)}d!==u&&(e.style.backgroundImage=d)};for(let e=0;e<i.length;e+=6)await Promise.allSettled(i.slice(e,e+6).map(s));return{count:a}}(e,t,n),await async function(e,t){if(!t.compress)return{count:0};let n=(t.scale||1)*(t.dpr||1),r=Array.from(e.querySelectorAll("image"));"image"===e.localName&&r.unshift(e);let i=0,o=async e=>{let t=e.getAttribute("href")||("function"==typeof e.getAttributeNS?e.getAttributeNS("http://www.w3.org/1999/xlink","href"):null);if(!t||!t.startsWith("data:image")||t.startsWith("data:image/svg"))return;let r=parseFloat(e.getAttribute("width"))||0,o=parseFloat(e.getAttribute("height"))||0;if(!r||!o)return;let a=await im(t,r*n,o*n);a&&(e.setAttribute("href",a),e.hasAttribute("xlink:href")&&e.setAttribute("xlink:href",a),i++)};for(let e=0;e<r.length;e+=6)await Promise.allSettled(r.slice(e,e+6).map(o));return{count:i}}(e,t))}async function am(e,t){if(!e)throw new Error("Element cannot be null or undefined");(function(e="soft"){switch(e){case"auto":return Kf.session.styleMap=new Map,void(Kf.session.nodeMap=new Map);case"soft":default:return Kf.session.styleMap=new Map,Kf.session.nodeMap=new Map,void(Kf.session.styleCache=new WeakMap);case"full":return;case"disabled":Kf.session.styleMap=new Map,Kf.session.nodeMap=new Map,Kf.session.styleCache=new WeakMap,Kf.computedStyle=new WeakMap,Kf.measureHints=new WeakMap,Kf.baseStyle=new Xf(50),Kf.defaultStyle=new Xf(30),Kf.image=new Xf(100),Kf.background=new Xf(100),Kf.resource=new Xf(150),Kf.compress=new Xf(50),Kf.font=new Set}})(t.cache),t.__session={styleMap:Kf.session.styleMap,styleCache:Kf.session.styleCache,nodeMap:Kf.session.nodeMap},t.burst||function(e){let t=Date.now(),n=Kf.burstAdvice.get(e);!n||t-n.firstTs>2e3?Kf.burstAdvice.set(e,{count:1,firstTs:t,warned:!1}):(n.count++,n.count>=3&&!n.warned&&(n.warned=!0,console.warn("[snapdom] Captured this element multiple times. Pass { burst: true } to increase the speed.")))}(e),t.__resolveNodeHooks=function(e){let t=Array.isArray(e.plugins)?e.plugins:rm(),n=[];for(let e of t){let t=Zg(e);t&&"function"==typeof t.resolveNode&&n.push(t.resolveNode.bind(t))}return n.length?n:null}(t);let n,r,i,o,a,s,l,c,u=t.fast,f=!1!==t.outerTransforms,d=!!t.outerShadows,h=t.clip?vg(e,t.clip):null,p={element:e,options:t,plugins:t.plugins},g="",m="",y=null;await tm("beforeSnap",p);let v=null;!1!==t.resolvePicturePlaceholders&&!function(e){if(Array.isArray(e.plugins))for(let t of e.plugins)if("picture-resolver"===Zg(t)?.name)return!0;return rm().some(e=>"picture-resolver"===e?.name)}(t)&&(v=await zh(p.element,p.options)),await tm("beforeClone",p);let A=Jg(p.element,h);try{({clone:n,classCSS:r,styleCache:i,nodeMap:o,reconcileRisk:a,clipWindow:s}=await Rg(p.element,p.options)),a>0&&!t.reconcile&&!Kf.warnedReconcile&&(Kf.warnedReconcile=!0,console.warn("[snapdom] Text in inline/table-cell elements kept its natural width and may re-wrap under font-fallback rasterization. Pass { reconcile: true } for pixel-exact layout (roughly doubles capture time).")),!f&&n&&(y=function(e,t){if(!e||!t||!t.style)return null;let n=getComputedStyle(e);try{t.style.transformOrigin="0 0"}catch{}try{"translate"in t.style&&(t.style.translate="none"),"rotate"in t.style&&(t.style.rotate="none")}catch{}let r=n.transform||"none";if(!r||"none"===r){let n=null;try{n=hg(e).scale}catch{}try{t.style.transform="none"}catch{}if(!n)return{a:1,b:0,c:0,d:1};let r=n.trim().split(/\s+/).map(parseFloat),i=Number.isFinite(r[0])?r[0]:1;return{a:i,b:0,c:0,d:Number.isFinite(r[1])?r[1]:i}}function i(e,t,n,r){let i=Math.sqrt(e*e+t*t)||0,o=0,a=0;if(i>0){let s=e/i,l=t/i;o=s*n+l*r;let c=n-s*o,u=r-l*o;a=Math.sqrt(c*c+u*u)||0,a>0?o/=a:o=0}return{a:i,b:0,c:o*a,d:a}}let o=r.match(/^matrix\(\s*([^)]+)\)$/i);if(o){let e=o[1].split(",").map(e=>parseFloat(e.trim()));if(6===e.length&&e.every(Number.isFinite)){let[n,r,o,a]=e,s=i(n,r,o,a);try{t.style.transform=`matrix(${s.a}, ${s.b}, ${s.c}, ${s.d}, 0, 0)`}catch{}return s}}let a=r.match(/^matrix3d\(\s*([^)]+)\)$/i);if(a){let e=a[1].split(",").map(e=>parseFloat(e.trim()));if(16===e.length&&e.every(Number.isFinite)){let n=i(e[0],e[1],e[4],e[5]);try{t.style.transform=`matrix(${n.a}, ${n.b}, ${n.c}, ${n.d}, 0, 0)`}catch{}return n}}try{let e=new DOMMatrix(r),n=i(e.a,e.b,e.c,e.d);try{t.style.transform=`matrix(${n.a}, ${n.b}, ${n.c}, ${n.d}, 0, 0)`}catch{}return n}catch{return null}}(p.element,n)),!d&&n&&function(e,t,n={}){if(!e||!t||!t.style)return;let r=getComputedStyle(e);try{t.style.boxShadow="none"}catch(e){Od(n,"stripRootShadows boxShadow",e)}try{t.style.textShadow="none"}catch(e){Od(n,"stripRootShadows textShadow",e)}try{t.style.outline="none"}catch(e){Od(n,"stripRootShadows outline",e)}let i=(r.filter||"").replace(/\bdrop-shadow\((?:[^()]|\([^()]*\))*\)\s*/gi,"").trim().replace(/\s+/g," ");try{t.style.filter=i.length?i:"none"}catch(e){Od(n,"stripRootShadows filter",e)}}(p.element,n,p.options),n&&(function(e,t,n){if(!e||!t||!t.style)return;let r=getComputedStyle(e);if(!xg(r))for(let i of["top","bottom"]){let o="top"===i?"Top":"Bottom";if((parseFloat(r[`border${o}Width`])||0)>0||(parseFloat(r[`padding${o}`])||0)>0)continue;let a=e,s=t;for(;a&&s;){let e=Cg(a,i);if(!e)break;let t=n?Array.from(s.children).find(t=>n.get(t)===e)||null:s.children[Array.from(a.children).indexOf(e)]||null,r=getComputedStyle(e),l=parseFloat(r[`margin${o}`])||0;if(t&&t.style&&l>0&&(t.style[`margin${o}`]="0px"),xg(r)||(parseFloat(r[`border${o}Width`])||0)>0||(parseFloat(r[`padding${o}`])||0)>0)break;a=e,s=t}}}(p.element,n,o),function(e,t){if(!e||!t||!t.style)return;let n=1;try{n=parseFloat(getComputedStyle(e).zoom)}catch{return}if(t.style.getPropertyValue("zoom")||Number.isFinite(n)&&1!==n)try{t.style.setProperty("zoom","1","important")}catch{}}(p.element,n))}finally{A()}if(p={clone:n,classCSS:r,styleCache:i,nodeMap:o,...p},await tm("afterClone",p),v&&await v(),Eg(p.clone),"remove"===p.options?.excludeMode||"remove"===p.options?.filterMode)try{!function(e,t,n=new Map){!function e(t,r){if(1!==t?.nodeType||1!==r?.nodeType)return;let i=t.childElementCount>r.childElementCount,o=n.get(t)||getComputedStyle(t);if(n.has(t)||n.set(t,o),i&&Sg(t,o)){r.style.height||(r.style.height="auto"),r.style.width||(r.style.width="auto"),r.style.removeProperty("block-size"),r.style.removeProperty("inline-size"),r.style.minHeight||(r.style.minHeight="0"),r.style.minWidth||(r.style.minWidth="0"),r.style.maxHeight||(r.style.maxHeight="none"),r.style.maxWidth||(r.style.maxWidth="none");let e=o.overflowY||o.overflowBlock||"visible",t=o.overflowX||o.overflowInline||"visible";("visible"!==e||"visible"!==t)&&(r.style.overflow="visible")}let a=Array.from(t.children),s=Array.from(r.children);for(let t=0;t<Math.min(a.length,s.length);t++)e(a[t],s[t])}(e,t)}(p.element,p.clone,p.styleCache)}catch(e){console.warn("[snapdom] shrink pass failed:",e)}try{await async function(e,t,n=Kf.session.nodeMap){if(1!==e?.nodeType)return 0;let r='.material-icons, [class*="material-symbols"]',i=Array.from(e.querySelectorAll(r)).filter(e=>e&&e.textContent&&e.textContent.trim());if(e.matches?.(r)&&e.textContent&&e.textContent.trim()&&i.unshift(e),0===i.length)return 0;let o=1===t?.nodeType?Array.from(t.querySelectorAll(r)).filter(e=>e&&e.textContent&&e.textContent.trim()):[];1===t?.nodeType&&t.matches?.(r)&&t.textContent&&t.textContent.trim()&&o.unshift(t);let a=0;for(let e=0;e<i.length;e++){let t=i[e],r=n&&n.get(t)||o[e]||null;try{let e=getComputedStyle(r||t),n=e.fontFamily||"Material Icons";if(!yp(n))continue;let i=(r||t).textContent.trim();if(!i)continue;let o=parseInt(e.fontSize,10)||24,s=e.fontWeight&&"normal"!==e.fontWeight?e.fontWeight:"normal",l=Ap(e),c=e.fontVariationSettings&&"normal"!==e.fontVariationSettings?e.fontVariationSettings:"",u=(r||t).className||"",{dataUrl:f,width:d,height:h}=await bp(i,{family:n,weight:s,fontSize:o,color:l,variation:c,className:u});t.textContent="";let p=t.ownerDocument.createElement("img");p.src=f,p.alt=i,p.style.height=`${o}px`,p.style.width=`${Math.max(1,Math.round(d/h*o))}px`,p.style.objectFit="contain",p.style.verticalAlign=getComputedStyle(t).verticalAlign||"baseline",t.appendChild(p),a++}catch{}}return a}(p.clone,p.element,p.nodeMap)}catch{}let b=e=>new Promise((t,n)=>{Rd(()=>{Promise.resolve().then(e).then(t,n)},{fast:u})}),w=(async()=>{await Promise.all([b(()=>Hg(p.clone,p.options)),b(()=>async function(e,t,n,r={},i=Kf.session.nodeMap){if(!t)return;let o=[];e&&Ch(e)&&o.push([e,t]);let a=[t];for(;a.length;){let e=a.pop();if(e.children)for(let t of e.children){if("STYLE"===t.tagName)continue;let e=i.get(t);e&&Ch(e)&&o.push([e,t]),a.push(t)}}for(let e=0;e<o.length;e+=6)await Promise.allSettled(o.slice(e,e+6).map(([e,t])=>zg(e,t,n,r)))}(p.element,p.clone,p.styleCache,p.options,p.nodeMap))]);try{jg(p.element,p.clone,p.nodeMap)}catch(e){console.warn("[snapdom] backdrop-filter emulation failed:",e)}t.compress&&await b(()=>om(p.clone,p.options,p.nodeMap))})(),I=Promise.resolve();t.embedFonts&&(I=b(async()=>{let e=p.element.ownerDocument||document,t=h?e=>{try{let t=e.getBoundingClientRect();return t.right>=h.left-200&&t.left<=h.right+200&&t.bottom>=h.top-200&&t.top<=h.bottom+200}catch{return!0}}:null,{required:n,usedCodepoints:r}=Yp(p.element,t);if(Hd()){let t=new Set(Array.from(n).map(e=>String(e).split("__")[0]).filter(Boolean));await Wp(t,1,e)}g=await Vp({required:n,usedCodepoints:r,preCached:!1,exclude:p.options.excludeFonts,localFonts:p.options.localFonts,useProxy:p.options.useProxy,fontStylesheetDomains:p.options.fontStylesheetDomains,doc:e})})),await Promise.all([w,I]);let x=function(e){let t=new Set;return e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?[]:(e.tagName&&t.add(e.tagName.toLowerCase()),"function"==typeof e.querySelectorAll&&e.querySelectorAll("*").forEach(e=>t.add(e.tagName.toLowerCase())),Array.from(t))}(p.clone).sort(),C=x.join(",");Kf.baseStyle.has(C)?m=Kf.baseStyle.get(C):await new Promise(e=>{Rd(()=>{m=function(e){let t=new Map;for(let n of e){let e=pd(n);if(!e)continue;let r=Object.entries(e).map(([e,t])=>`${e}:${t};`).sort().join("");r&&(t.has(r)||t.set(r,[]),t.get(r).push(n))}let n="";for(let[e,r]of t.entries())n+=`${r.join(",")} { ${e} }\n`;return n}(x),Kf.baseStyle.set(C,m),e()},{fast:u})});let B=function(e){if(!e||!e.styleSheets)return"";let t=function(e){let t="";for(let n of e.styleSheets){let e=-1;try{e=n.cssRules?n.cssRules.length:-1}catch{}t+=(n.href||"inline")+":"+e+"|"}return t}(e),n=Qg.get(e);if(n&&n.fp===t)return n.css;let r=new Set,i="";for(let t of Array.from(e.styleSheets))try{let e=t.cssRules;e&&(i+=Tg(e,r))}catch{}return Qg.set(e,{fp:t,css:i}),i}(p.element?.ownerDocument||document);p={fontsCSS:g,baseCSS:m,scrollbarCSS:B,...p},await tm("beforeRender",p),await new Promise(e=>{Rd(()=>{let n=vd(p.element),r=p.element.getBoundingClientRect(),i=Math.max(1,Dg(p.element.offsetWidth||parseFloat(n.width)||r.width||1)),o=Math.max(1,Dg(p.element.offsetHeight||parseFloat(n.height)||r.height||1)),a=p.element.ownerDocument||document;if(!(s||p.element!==a.body&&p.element!==a.documentElement||a.documentElement.hasAttribute("data-sd-pinned"))){let e=Math.max(p.element.scrollHeight||0,a.documentElement?.scrollHeight||0,a.body?.scrollHeight||0),t=Math.max(p.element.scrollWidth||0,a.documentElement?.scrollWidth||0,a.body?.scrollWidth||0);e>0&&(o=Math.max(o,Dg(e))),t>0&&(i=Math.max(i,Dg(t)));try{let e=(p.scrollbarCSS||"").length+(p.baseCSS||"").length+(p.fontsCSS||"").length+(p.classCSS||"").length,t=Kf.measureHints.get(p.element);if(t&&t.cssLen===e&&t.w0===i)t.csh>0&&(o=Math.max(o,Dg(t.csh))),t.csw>0&&(i=Math.max(i,Dg(t.csw)));else{let t=a.createElement("div");t.setAttribute("data-snapdom-internal",""),t.style.cssText="position:absolute!important;left:-9999px!important;top:0!important;width:"+i+"px!important;overflow:visible!important;visibility:hidden!important;";let n=t.attachShadow({mode:"open"}),r=a.createElement("style");r.textContent=(p.scrollbarCSS||"")+p.baseCSS+"svg{overflow:visible;} foreignObject{overflow:visible;}"+p.classCSS,n.appendChild(r),n.appendChild(p.clone.cloneNode(!0)),a.body.appendChild(t);let s=t.scrollHeight,l=t.scrollWidth;a.body.removeChild(t),Kf.measureHints.set(p.element,{cssLen:e,w0:i,csh:s,csw:l}),s>0&&(o=Math.max(o,Dg(s))),l>0&&(i=Math.max(i,Dg(l)))}}catch{}}if("remove"===p.options?.excludeMode||"remove"===p.options?.filterMode){let e=function(e,t){let n=getComputedStyle(e),r=e.getBoundingClientRect(),i=1/0,o=-1/0,a=!1,s=Array.from(e.children);for(let e of s){if(Fg(e,t)||!kg(e))continue;let n=e.getBoundingClientRect(),s=n.top-r.top,l=n.bottom-r.top;l<=s||(s<i&&(i=s),l>o&&(o=l),a=!0)}let l=a?Math.max(0,o-i):0;return(parseFloat(n.borderTopWidth)||0)+(parseFloat(n.borderBottomWidth)||0)+(parseFloat(n.paddingTop)||0)+(parseFloat(n.paddingBottom)||0)+l}(p.element,p.options);Number.isFinite(e)&&e>0&&(o=Math.max(1,Math.min(o,Dg(e+1))))}if(p.options?.reconcile)try{let e=(p.scrollbarCSS||"")+p.baseCSS+"svg{overflow:visible;} foreignObject{overflow:visible;}"+p.classCSS;!function(e,t,n,r,i,o){let a=e.ownerDocument||document,s=e.getBoundingClientRect(),l=i>0&&s.width>0?s.width/i:1,c=o>0&&s.height>0?s.height/o:1;if(Math.abs(l-c)>.02)return 0;let u=a.createElement("div");u.setAttribute("data-snapdom-internal",""),u.style.cssText="position:absolute!important;left:-9999px!important;top:0!important;width:"+i+"px!important;overflow:visible!important;visibility:hidden!important;";let f=u.attachShadow({mode:"open"}),d=a.createElement("style");d.textContent=n,f.appendChild(d);let h=t.cloneNode(!0);f.appendChild(h),a.body.appendChild(u);let p=0,g=(e,t,n)=>{let r=vd(e),i="border-box"===r.boxSizing,o=(e,t,...n)=>{let r=parseFloat(e);if(!Number.isFinite(r))return t;let o=r+(i?0:n.reduce((e,t)=>e+(parseFloat(t)||0),0));return Math.abs(o-t)<=.51?o:t};return{width:o(r.width,t,r.paddingLeft,r.paddingRight,r.borderLeftWidth,r.borderRightWidth),height:o(r.height,n,r.paddingTop,r.paddingBottom,r.borderTopWidth,r.borderBottomWidth)}};try{let e=h.getBoundingClientRect(),n=h.offsetWidth||i,a=h.offsetHeight||o,s=n>0&&e.width>0?e.width/n:1,u=a>0&&e.height>0?e.height/a:1,f=(e,t,n=!1)=>{let i=e.children,o=t.children,a=Math.min(i.length,o.length);for(let e=0;e<a;e++){let t=i[e],a=o[e],d=r.get(t),h=n||yg.has(t);if(1===d?.nodeType&&t?.namespaceURI===mg&&t.style&&d.isConnected){let e=d.getBoundingClientRect();if(e.width>0&&e.height>0){let n=a.getBoundingClientRect(),r=e.width/l,i=e.height/c,o=n.width,f=n.height,m=d.offsetWidth||r,y=d.offsetHeight||i,v=a.offsetWidth||o,A=a.offsetHeight||f,b=Math.abs(r-m)>Ng||Math.abs(i-y)>Ng||Math.abs(o-v)>Ng||Math.abs(f-A)>Ng;if(h){let e=g(a,v,A);r=o>0?r*s*e.width/o:r,i=f>0?i*u*e.height/f:i,o=e.width,f=e.height}else if(b){let e=g(d,m,y),t=g(a,v,A);r=e.width,i=e.height,o=t.width,f=t.height}let w=o-r,I=f-i;(Math.abs(w)>Ng||Math.abs(I)>Ng)&&(t.style.boxSizing="border-box",t.style.width=`${Dg(r)}px`,t.style.height=`${Dg(i)}px`,p++)}}f(t,a,h)}};f(t,h)}finally{u.remove()}}(p.element,p.clone,e,p.nodeMap,i,o)}catch(e){console.warn("[snapdom] reconcile pass failed:",e)}let u=(e,t=NaN)=>{let n="string"==typeof e?parseFloat(e):e;return Number.isFinite(n)?n:t},h=u(p.options.width),g=u(p.options.height),m=s?Dg(s.width):i,v=s?Dg(s.height):o,A=m,b=v,w=Number.isFinite(h),I=Number.isFinite(g),x=v>0?m/v:1;w&&I?(A=Math.max(1,Dg(h)),b=Math.max(1,Dg(g))):w?(A=Math.max(1,Dg(h)),b=Math.max(1,Dg(A/(x||1)))):I&&(b=Math.max(1,Dg(g)),A=Math.max(1,Dg(b*(x||1))));let C=0,B=0,E=i,S=o;if(s){let e=0,t=0;if(sm(p.element)){let r=null;if(!f&&y&&Number.isFinite(y.a))r={a:y.a,b:y.b||0,c:y.c||0,d:y.d||1,e:0,f:0};else{let e=hg(p.element),t=Ig(n.transform&&"none"!==n.transform?n.transform:"",e);t&&t.is2D&&(r={a:t.a,b:t.b,c:t.c,d:t.d,e:0,f:0})}if(r&&(1!==r.a||0!==r.b||0!==r.c||1!==r.d)){let{ox:a,oy:s}=dg(n,i,o),l=fg(i,o,r,a,s);e=l.minX,t=l.minY}}C=Dg(s.x+e),B=Dg(s.y+t),E=Dg(C+s.width),S=Dg(B+s.height)}else if(!f&&y&&Number.isFinite(y.a)){let e=fg(i,o,{a:y.a,b:y.b||0,c:y.c||0,d:y.d||1,e:0,f:0},0,0);C=Dg(e.minX),B=Dg(e.minY),E=Dg(e.maxX),S=Dg(e.maxY)}else if(f&&sm(p.element)){let e=n.transform&&"none"!==n.transform?n.transform:"",t=hg(p.element),r=gg({baseTransform:e,rotate:t.rotate||"0deg",scale:t.scale,translate:t.translate}),{ox:a,oy:s}=dg(n,i,o),l=r.is2D?r:new DOMMatrix(r.toString()),c=fg(i,o,{a:l.a,b:l.b,c:l.c,d:l.d,e:0,f:0},a,s);C=Dg(c.minX),B=Dg(c.minY),E=Dg(c.maxX),S=Dg(c.maxY)}let k=function(e){return ug(e.boxShadow)}(n),F=function(e){return ug(e.textShadow)}(n),D=function(e){let t,n=e.filter&&"none"!==e.filter?e.filter:e.webkitFilter||"",r=/blur\(\s*([0-9.]+)px\s*\)/gi,i=0;for(;t=r.exec(n);)i+=parseFloat(t[1])||0;let o=Math.ceil(i);return{top:o,right:o,bottom:o,left:o}}(n),N=function(e){if("none"===(e.outlineStyle||"none"))return{top:0,right:0,bottom:0,left:0};let t=Math.ceil(parseFloat(e.outlineWidth||"0")||0),n=parseFloat(e.outlineOffset||"0")||0,r=t+Math.max(0,Math.ceil(n));return{top:r,right:r,bottom:r,left:r}}(n),M=function(e){let t=`${e.filter||""} ${e.webkitFilter||""}`.trim();if(!t||"none"===t)return{bleed:{top:0,right:0,bottom:0,left:0},has:!1};let n=t.match(/drop-shadow\((?:[^()]|\([^()]*\))*\)/gi)||[],r=0,i=0,o=0,a=0,s=!1;for(let e of n){s=!0;let t=e.match(/-?\d+(?:\.\d+)?px/gi)?.map(e=>parseFloat(e))||[],[n=0,l=0,c=0]=t,u=Math.abs(n)+c,f=Math.abs(l)+c;i=Math.max(i,u+Math.max(n,0)),a=Math.max(a,u+Math.max(-n,0)),o=Math.max(o,f+Math.max(l,0)),r=Math.max(r,f+Math.max(-l,0))}return{bleed:{top:Dg(r),right:Dg(i),bottom:Dg(o),left:Dg(a)},has:s}}(n),T=s?{top:0,right:0,bottom:0,left:0}:d?{top:Dg(Math.max(k.top,F.top)+D.top+N.top+M.bleed.top),right:Dg(Math.max(k.right,F.right)+D.right+N.right+M.bleed.right),bottom:Dg(Math.max(k.bottom,F.bottom)+D.bottom+N.bottom+M.bleed.bottom),left:Dg(Math.max(k.left,F.left)+D.left+N.left+M.bleed.left)}:{top:D.top,right:D.right,bottom:D.bottom,left:D.left};C=Dg(C-T.left),B=Dg(B-T.top),E=Dg(E+T.right),S=Dg(S+T.bottom);let Q=Math.max(1,Dg(E-C)),L=Math.max(1,Dg(S-B)),R=w||I?Dg(A/m):1,U=I||w?Dg(b/v):1,H=Math.max(1,Dg(Q*R)),q=Math.max(1,Dg(L*U)),O="http://www.w3.org/2000/svg",P=sm(p.element)?2:0,$=Dg(P+(f?0:1)),z=Math.ceil(Q+2*$),j=Math.ceil(L+2*$),V=Dg(-(Dg(C)-$)),Y=Dg(-(Dg(B)-$)),W=Math.max(0,V),G=Math.max(0,Y),J=Dg(z-Math.min(0,V)),_=Dg(j-Math.min(0,Y)),X=document.createElementNS(O,"foreignObject");X.setAttribute("x",String(Math.min(0,V))),X.setAttribute("y",String(Math.min(0,Y))),X.setAttribute("width",String(J)),X.setAttribute("height",String(_)),X.style.overflow="visible";let K=document.createElement("style");K.textContent=(p.scrollbarCSS||"")+p.baseCSS+p.fontsCSS+"svg{overflow:visible;} foreignObject{overflow:visible;} foreignObject>div{-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;}"+p.classCSS,X.appendChild(K);let Z=document.createElement("div");Z.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),Z.style.cssText=`all:initial;box-sizing:border-box;display:block;overflow:visible;width:${J}px;height:${_}px`+(0!==W||0!==G?`;padding:${G}px 0 0 ${W}px !important`:""),Z.appendChild(p.clone),X.appendChild(Z);let ee=(new XMLSerializer).serializeToString(X),te=w||I,ne=Object.freeze({w0:m,h0:v,vbW:z,vbH:j,targetW:A,targetH:b,contentX:Dg(V+(s?C:0)),contentY:Dg(Y+(s?B:0)),clip:s?Object.freeze({x:Dg(C),y:Dg(B),width:m,height:v}):null});Object.defineProperty(t,"meta",{value:ne,enumerable:!0,writable:!1,configurable:!0});let re=!te||Hd()?z:Dg(H+2*$),ie=!te||Hd()?j:Dg(q+2*$),oe=parseFloat(vd(a.documentElement)?.fontSize)||16;c=`<svg xmlns="${O}" width="${re}" height="${ie}" viewBox="0 0 ${z} ${j}" font-size="${oe}px">`+ee+"</svg>",l=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(c)}`,p={svgString:c,dataURL:l,...p},e()},{fast:u})}),await tm("afterRender",p);let E=document.getElementById("snapdom-sandbox");return E&&"absolute"===E.style.position&&E.remove(),p.dataURL}function sm(e){return function(e){let t=vd(e),n=t.transform||"none";if("none"!==n&&!/^matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\)$/i.test(n))return!0;let r=t.rotate&&"none"!==t.rotate&&"0deg"!==t.rotate,i=t.scale&&"none"!==t.scale&&"1"!==t.scale,o=t.translate&&"none"!==t.translate&&"0px 0px"!==t.translate;return!!(r||i||o)}(e)}Zf(),qd(),Pd();var lm=new WeakMap;function cm(e,t,n){let r=new Set;if(e instanceof HTMLVideoElement&&r.add(e),e.querySelectorAll)for(let t of e.querySelectorAll("video"))r.add(t);for(let e of t.trackedVideos)r.has(e)||(e.removeEventListener("timeupdate",n),e.removeEventListener("seeked",n),t.trackedVideos.delete(e));for(let e of r)t.trackedVideos.has(e)||(e.addEventListener("timeupdate",n),e.addEventListener("seeked",n),t.trackedVideos.add(e))}function um(e){let{burst:t,invalidate:n,...r}=e||{};try{return JSON.stringify(r,Object.keys(r).sort())}catch{return null}}function fm(e,t,n,r){let i=lm.get(e);i||(i=function(e){let t={dirty:!0,capturing:!1,last:null,inflight:Promise.resolve(),observers:[],trackedVideos:new Set},n=e=>{t.capturing||wh(e)&&(t.dirty=!0)},r=()=>{t.capturing||(t.dirty=!0)},i=e.ownerDocument||document;try{let r=new MutationObserver(n);r.observe(e,{subtree:!0,childList:!0,attributes:!0,characterData:!0}),t.observers.push(r)}catch{}try{if(i.head){let e=new MutationObserver(n);e.observe(i.head,{subtree:!0,childList:!0,characterData:!0,attributes:!0}),t.observers.push(e)}}catch{}return t.markDirty=n,t.onMediaDirty=r,cm(e,t,r),t}(e),i.baselineSignature=um(t),lm.set(e,i));let o=um(t),a=null===o||o!==i.baselineSignature,s=async()=>{for(let e of i.observers)i.markDirty(e.takeRecords());if(n.invalidate&&(i.dirty=!0),!a&&!i.dirty&&i.last)return i.last;i.capturing=!0,a||(i.dirty=!1);try{let e=await r();return a||(i.last=e),e}finally{for(let e of i.observers)e.takeRecords();i.capturing=!1,cm(e,i,i.onMediaDirty)}},l=i.inflight.then(s,s);return i.inflight=l.catch(()=>{}),l}$d(),fd(),Zf();var dm=Object.assign(async function(e,t){if(!e)throw new Error("Element cannot be null or undefined");let n=function(e={}){let t=e.format??"png";"jpg"===t&&(t="jpeg");let n=function(e){if(!0===e)return"soft";if(!1===e)return"disabled";if("string"==typeof e){let t=e.toLowerCase().trim();if("auto"===t)return"auto";if("full"===t)return"full";if("soft"===t||"disabled"===t)return t}return"soft"}(e.cache);return{debug:e.debug??!1,fast:e.fast??!0,scale:e.scale??1,exclude:e.exclude??[],excludeMode:e.excludeMode??"hide",filter:e.filter??null,filterMode:e.filterMode??"hide",placeholders:!1!==e.placeholders,embedFonts:e.embedFonts??!1,iconFonts:Array.isArray(e.iconFonts)?e.iconFonts:e.iconFonts?[e.iconFonts]:[],localFonts:Array.isArray(e.localFonts)?e.localFonts:[],excludeFonts:e.excludeFonts??void 0,fontStylesheetDomains:Array.isArray(e.fontStylesheetDomains)?e.fontStylesheetDomains:[],fallbackURL:e.fallbackURL??void 0,cache:n,useProxy:"string"==typeof e.useProxy?e.useProxy:"",width:e.width??null,height:e.height??null,format:t,type:e.type??"svg",quality:e.quality??.92,dpr:e.dpr??(window.devicePixelRatio||1),backgroundColor:e.backgroundColor??(["jpeg","webp"].includes(t)?"#ffffff":null),filename:e.filename??"snapDOM",outerTransforms:e.outerTransforms??!0,outerShadows:e.outerShadows??!1,reconcile:e.reconcile??!1,burst:e.burst??!1,invalidate:e.invalidate??!1,clip:e.clip??null,compress:!1!==e.compress,excludeStyleProps:e.excludeStyleProps??null,resolvePicturePlaceholders:!1!==e.resolvePicturePlaceholders,pictureResolver:e.pictureResolver&&"object"==typeof e.pictureResolver?e.pictureResolver:{}}}(t);if(nm(n,t&&t.plugins),Hd()){if(!0===n.embedFonts)try{let t=function(e,t){return Yp(e,t).required}(e),n=new Set([...t].map(e=>String(e).split("__")[0]).filter(Boolean));await Wp(n,1)}catch{}let r=Array.from(e.querySelectorAll("canvas"));"CANVAS"===e.tagName&&r.unshift(e);for(let e of r)try{let t=e.getContext("2d",{willReadFrequently:!0});t&&t.getImageData(0,0,1,1)}catch(e){Od(t,"safari canvas poke failed",e)}}return n.iconFonts&&n.iconFonts.length>0&&function(e){let t=Array.isArray(e)?e:[e];for(let e of t){let t;if(e instanceof RegExp)t=e;else{if("string"!=typeof e){console.warn("[snapdom] Ignored invalid iconFont value:",e);continue}t=new RegExp(gp(e),"i")}let n=`${t.source}/${t.flags}`;pp.has(n)||(pp.add(n),hp.push(t))}}(n.iconFonts),n.snap||(n.snap={toPng:(e,t)=>dm.toPng(e,t),toSvg:(e,t)=>dm.toSvg(e,t)}),n.burst?fm(e,t,n,()=>dm.capture(e,n,hm)):dm.capture(e,n,hm)},{plugins:function(...e){return function(...e){let t=e.flat();for(let e of t){let t=Zg(e);t&&(Kg.some(e=>e&&e.name&&t.name&&e.name===t.name)||Kg.push(t))}}(...e),dm}}),hm=Symbol("snapdom.internal"),pm=Symbol("snapdom.internal.silent");function gm(e){return document.querySelectorAll(e)}function mm(e){function t(e){e.parentNode.removeChild(e)}if(ku(e)){return void t(e)}if(!Fe(e))return;An(gm(e),function(e){t(e)})}function ym(e,t){if(!ku(e))return"invalid eleParent";if(ke(t))e.insertAdjacentHTML("afterbegin",t);else{if(!ku(t))return"invalid itemChild";e.insertBefore(t,e.firstChild)}}async function vm(e,t={}){if(!ku(e))return Promise.reject("invalid ele");let n=be(t,"scale",null);if(Me(n)||(n=1),n=xr(n),n<1)return Promise.reject("opt.scale can not less then 1");let r=be(t,"picType",null);"image/jpg"!==r&&"image/jpeg"!==r&&"image/png"!==r&&"svg"!==r&&(r="image/png");let i=be(t,"toBase64",null);Ie(i)||(i=!0);let o=e.cloneNode(!0),a=document.createElement("div");a.style.position="absolute",a.style.top=0,a.style.left=0,a.style.zIndex=-1,a.appendChild(o);let s=document.createElement("div");s.style.opacity=0,s.style.position="relative",s.appendChild(a),ym(document.querySelector("body"),s);let l,c={scale:n,quality:1,cache:"disabled"};return"image/jpg"===r||"image/jpeg"===r?l=await dm.toJpg(a,c):"image/png"===r?l=await dm.toPng(a,c):"svg"===r&&(l=await dm.toSvg(a,c)),i&&(l=be(l,"src","")),mm(s),l}dm.capture=async(e,t,n)=>{if(n!==hm)throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");t.element=e;let r=await am(e,t),i={img:async(e,t)=>{let{toImg:n}=await Promise.resolve().then(()=>(lh(),ah));return n(r,{...e,...t||{}})},svg:async(e,t)=>{let{toSvg:n}=await Promise.resolve().then(()=>(lh(),ah));return n(r,{...e,...t||{}})},canvas:async(e,t)=>{let{toCanvas:n}=await Promise.resolve().then(()=>(nh(),zd));return n(r,{...e,...t||{}})},blob:async(e,t)=>{let{toBlob:n}=await Promise.resolve().then(()=>(fh(),ch));return n(r,{...e,...t||{}})},png:async(e,t)=>{let{rasterize:n}=await Promise.resolve().then(()=>(oh(),rh));return n(r,{...e,...t||{},format:"png"})},jpeg:async(e,t)=>{let{rasterize:n}=await Promise.resolve().then(()=>(oh(),rh));return n(r,{...e,...t||{},format:"jpeg"})},webp:async(e,t)=>{let{rasterize:n}=await Promise.resolve().then(()=>(oh(),rh));return n(r,{...e,...t||{},format:"webp"})},download:async(e,t)=>{let{download:n}=await Promise.resolve().then(()=>(gh(),dh));return n(r,{...e,...t||{}})}},o={};for(let e of["img","svg","canvas","blob","png","jpeg","webp"])o[e]=async n=>i[e](t,{...n||{},[pm]:!0});o.jpg=o.jpeg;let a={...t,export:{url:r},exports:o},s=await async function(e,t,n){let r=[],i=em(t);for(let o of i){let i=o&&"function"==typeof o[e]?o[e]:null;if(!i)continue;let a=await i(t,n);typeof a<"u"&&r.push(a)}return r}("defineExports",a),l=Object.assign({},...s.filter(e=>e&&"object"==typeof e).reverse()),c={...i,...l};c.jpeg&&!c.jpg&&(c.jpg=(e,t)=>c.jpeg(e,t));let u=!1,f=Promise.resolve();async function d(e,n){let i=Object.freeze(n&&"object"==typeof n?{...n}:{}),o=f.then(async()=>{let n=c[e];if(!n)throw new Error(`[snapdom] Unknown export type: ${e}`);let o=function(e,n){let r={...t,...n||{}};return[e,r.format,r.type].map(e=>"string"==typeof e?e.toLowerCase():"").find(e=>"jpeg"===e||"jpg"===e||"webp"===e)&&(null==r.backgroundColor||"transparent"===r.backgroundColor)&&(r.backgroundColor="#ffffff"),r}(e,i),a={...t,export:{type:e,options:o,requestedOptions:i,url:r}};await tm("beforeExport",a,{format:e,options:o});let s=await n(a,o);return await tm("afterExport",a,{format:e,options:o,result:s}),u||(u=!0,await tm("afterSnap",t)),s});return f=o.catch(()=>{}),o}let h={url:r,toRaw:()=>r,to:(e,t)=>d(e,t),toImg:e=>d("img",e),toSvg:e=>d("svg",e),toCanvas:e=>d("canvas",e),toBlob:e=>d("blob",e),toPng:e=>d("png",e),toJpg:e=>d("jpg",e),toWebp:e=>d("webp",e),download:e=>d("download",e)};Object.defineProperty(h,"meta",{value:t.meta,enumerable:!0,writable:!1,configurable:!1});for(let e of Object.keys(c)){let t="to"+e.charAt(0).toUpperCase()+e.slice(1);h[t]||(h[t]=t=>d(e,t))}return h},dm.toRaw=(e,t)=>dm(e,t).then(e=>e.toRaw()),dm.toImg=(e,t)=>dm(e,t).then(e=>e.toImg()),dm.toSvg=(e,t)=>dm(e,t).then(e=>e.toSvg()),dm.toCanvas=(e,t)=>dm(e,t).then(e=>e.toCanvas()),dm.toBlob=(e,t)=>dm(e,t).then(e=>e.toBlob()),dm.toPng=(e,t)=>dm(e,{...t,format:"png"}).then(e=>e.toPng()),dm.toJpg=(e,t)=>dm(e,{...t,format:"jpeg"}).then(e=>e.toJpg()),dm.toWebp=(e,t)=>dm(e,{...t,format:"webp"}).then(e=>e.toWebp()),dm.download=(e,t)=>dm(e,t).then(e=>e.download());var Am=Da(ba);function bm(e){let t=function(e,n){return null===e.parentNode?n:t(e.parentNode,n.concat([e]))};return e instanceof HTMLElement||e instanceof SVGElement?t(e.parentNode,[]):[]}function wm(e){let t=be(e,"clientX",null),n=be(e,"clientY",null),r=be(e,"pageX",null),i=be(e,"pageY",null);if(null!==t&&null!==n&&null!==r&&null!==i)return{clientX:t,clientY:n,pageX:r,pageY:i};let o=be(e,"changedTouches",[]);if(1!==ar(o))return null;let a=o[0];return{clientX:be(a,"clientX",null),clientY:be(a,"clientY",null),pageX:be(a,"pageX",null),pageY:be(a,"pageY",null)}}function Im(e,t){let n=[];try{n=document.elementsFromPoint(e,t)}catch(e){console.log(e)}return n}function xm(e,t){if(!ku(e))return null;if(!Fe(t))return null;try{return e.getAttribute(t)}catch(e){}return null}function Cm(e){if(!ku(e))return null;try{return e.getBoundingClientRect()}catch(e){}return null}function Bm(e,t){if(!Se(e))return null;if(!fa(e.clientX)||!fa(e.clientY))return null;if(!ku(t))return null;let n=Cm(t);return n?{x:e.clientX-n.left,y:e.clientY-n.top,w:t.offsetWidth,h:t.offsetHeight}:null}function Em(e={}){let t="dragpreviewid",n=null,r=null,i=null,o=null,a=null,s=!1,l=be(e,"attIdentify",null);Fe(l)||(l="dragprevid");let c=be(e,"containerOpacity",null);fa(c)||(c=.4);let u=be(e,"containerBackground",null);Fe(u)||(u="white");let f=be(e,"containerBorderWidth",null);fa(f)||(f=1);let d=be(e,"containerBorderColor",null);Fe(d)||(d="#f26");let h=`c${Hu(8)}`;function p(e,t,n){r&&i&&o&&a&&!s&&(a.style.top=t-r.tShiftY+"px",a.style.left=e-r.tShiftX+"px")}function g(){mm(`[${t}='${h}']`),r=null,i=null,o=null,a=null}let m=function(e){p(e.clientX,e.clientY)};window.addEventListener("mousemove",m);let y=function(e){let t=wm(e);t&&p(t.clientX,t.clientY)};return window.addEventListener("touchmove",y),{createPreview:function(e,s,m){try{!function(){let g=function(e,t,r){let i=Cm(e);if(!i)return null;n=e;let o=e.cloneNode(!0);return o.tShiftX=t-i.left,o.tShiftY=r-i.top,o.tWidth=e.offsetWidth,o.tHeight=e.offsetHeight,o.tParent=e.parentNode,o.setAttribute(l,""),o}(e,s,m);if(null===g)return;let y=document.createElement("div");y.style.position="absolute",y.style.zIndex=1,y.style.top=0,y.style.left=0,y.style.width="100%",y.style.height="100%",y.appendChild(g);let v=document.createElement("div");v.style.position="relative",v.appendChild(y);let A=document.createElement("div");A.setAttribute(t,h),A.style.position="fixed",A.style.zIndex=1e5,A.style.width=`${g.tWidth+2*f}px`,A.style.height=`${g.tHeight+2*f}px`,A.style.opacity=c,A.style.background=u,A.style.border=`${f}px solid ${d}`,A.style.pointerEvents="none",A.appendChild(v),document.querySelector("body").appendChild(A),r=g,i=y,o=v,a=A,p(s,m)}()}catch(e){}let y=setInterval(()=>{let e=xm(n,l);document.querySelector(`[${l}='${e}']`)||(clearInterval(y),g())},500)},updateDragPreview:p,pauseDragPreview:function(e){s=e},removeDragPreview:g,setNodeStyle:function(e){try{An(e,(e,t)=>{r.style[t]=e})}catch(e){}},setCoverStyle:function(e){try{An(e,(e,t)=>{i.style[t]=e})}catch(e){}},setSellStyle:function(e){try{An(e,(e,t)=>{o.style[t]=e})}catch(e){}},setContainerStyle:function(e){try{An(e,(e,t)=>{a.style[t]=e})}catch(e){}},clear:function(){window.removeEventListener("mousemove",m),window.removeEventListener("touchmove",y)}}}let Sm={};function km(e,t,{attIdentify:n,previewOpacity:r,previewBackground:i,previewBorderWidth:o,previewBorderColor:a}){if(!Te(Sm,e)){let t=qi(),s=function(e){let t=[];function n(){let n;n="mousemove";let r=function(t){e.dragMove({e:t,name:"mousemove"})};window.addEventListener(n,r),t.push({ele:window,name:n,f:r}),n="mouseup";let i=function(t){e.dragDrop({e:t,name:"mouseup"})};window.addEventListener(n,i),t.push({ele:window,name:n,f:i}),n="touchmove";let o=function(t){e.dragMove({e:t,name:"touchmove"})};window.addEventListener(n,o),t.push({ele:window,name:n,f:o}),n="touchend";let a=function(t){e.dragDrop({e:t,name:"touchend"})};window.addEventListener(n,a),t.push({ele:window,name:n,f:a})}function r(){An(t,({ele:e,name:t,f:n})=>{e.removeEventListener(t,n)})}return{bind:n,unbind:r}}({dragMove:n=>{t.emit(e+"-dragMove",n)},dragDrop:n=>{t.emit(e+"-dragDrop",n)}});s.bind();let l=Em({attIdentify:n,containerOpacity:r,containerBackground:i,containerBorderWidth:o,containerBorderColor:a});Sm[e]={eleIds:[],evg:t,oevg:s,pv:l,isInit:!1,isActive:!0}}return Sm[e].eleIds.push(t),Sm[e].evg}function Fm(e,t){let n=xm(e,t);return n=Yi(n),n}function Dm({gid:e,attGroup:t,attIndex:n,attIdentify:r,timeDragStartDelay:i,previewOpacity:o,previewDisabledOpacity:a}){let s=null,l=null,c=null,u=null;if(Sm[e].isInit)return Sm[e].evg;Sm[e].isInit=!0;let f=Sm[e].evg;f.on(e+"-dragStart",function({e:t,ele:o,from:c}){if(!Sm[e].isActive)return;let u=Fm(o,n);if(null===u)return;s=u,l=o;let h={event:t,startInd:s,startEle:l,tarInd:s,tarEid:xm(l,r)};f.emit(e+"-change",{mode:"start",...h}),f.emit(e+"-start",h);let p=wm(t);if(!p)return;setTimeout(()=>{null!==s&&(d.createPreview(l,p.clientX,p.clientY),d.setContainerStyle({opacity:a}))},i)}),f.on(e+"-dragMove",function({e:i,name:h,from:p}){if(!Sm[e].isActive)return;let g=function(e,t,n){let r=null;return An(bm(e.target),e=>{if(xm(e,t)===n)return r=e,!1}),r}(i,t,e);if(null===s)return;let m=wm(i);if(!m)return;function y(){let t={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:xm(u,r)};f.emit(e+"-change",{mode:"leave",...t}),f.emit(e+"-leave",t),c=null,u=null,d.setContainerStyle({opacity:a})}if(!g)return void(null!==c&&y());let v=Fm(g,n);if(null===v)return;if(v===s)return void(null!==c&&y());if(v!==c)null!==c&&y(),function(t,n){c=t,u=n;let a={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:xm(u,r)};f.emit(e+"-change",{mode:"enter",...a}),f.emit(e+"-enter",a),d.setContainerStyle({opacity:o})}(v,g);else{let t=Bm(m,g),n=0;t.w>0&&(n=t.x/t.w);let a=0;t.h>0&&(a=t.y/t.h),n>=0&&n<=1&&a>=0&&a<=1&&function(t,n,a){let h={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:xm(u,r),...t,rx:n,ry:a};f.emit(e+"-change",{mode:"move",...h}),f.emit(e+"-move",h),d.setContainerStyle({opacity:o})}(t,n,a)}}),f.on(e+"-dragDrop",function({e:i,name:o,from:a}){if(d.removeDragPreview(),!Sm[e].isActive)return;if(null===s)return;let h=function(e,t,n){let r=null,i=wm(e);return i?(An(Im(i.clientX,i.clientY),e=>{if(xm(e,t)===n)return r=e,!1}),r):r}(i,t,e);if(!h)return s=null,l=null,c=null,void(u=null);let p=Fm(h,n);if(null===p)return;(function(t,n){c=t,u=n;let o={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:xm(u,r)};f.emit(e+"-change",{mode:"drop",...o}),f.emit(e+"-drop",o)})(p,h),s=null,l=null,c=null,u=null});let d=Sm[e].pv}async function Nm(e){let t=[],n=_a();return await async function e(n){let r=null;if(n.isFile&&(r=await function(e){let t=_a();try{e.file(t.resolve,t.reject)}catch(e){t.reject(e)}return t}(n)),t.push({type:n.isDirectory?"folder":n.isFile?"file":"unknow",path:n.fullPath,name:n.name,entry:n,file:r}),n.isDirectory){let t=n.createReader(),r=await function(e){let t=_a();try{e.readEntries(t.resolve,t.reject)}catch(e){t.reject(e)}return t}(t);await ic(r,async t=>{await e(t)})}}(e),n.resolve(t),n}async function Mm(e){let t=[];An(e,e=>{let n=e.webkitGetAsEntry();n&&t.push(n)});let n=await async function(e){let t=[];return await ic(e,async e=>{An(await Nm(e),e=>{t.push(e)})}),t}(t);return n}async function Tm(e){let t=[],n=[];try{t=await async function(e){let t=[];return An(e,e=>{e.type&&t.push({type:"file",name:e.name,file:e})}),t}(be(e,"files",[])),Ju()||(n=await Mm(be(e,"items",[])).catch(e=>{console.log(e)}))}catch(e){return Promise.reject(e)}return{files:t,entries:n}}function Qm(e){return document.querySelector(e)}function Lm(e){return!Mn(e)}var Rm=Math.max;var Um,Hm=(Um=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ir(n);return i<0&&(i=Rm(r+i,0)),Qn(e,pn(t),i)},function(e,t,n){var r=Object(e);if(!ht(e)){var i=pn(t);e=pt(e),t=function(e){return i(r[e],e,r)}}var o=Um(e,t,n);return o>-1?r[i?e[o]:o]:void 0});let qm=[{name:"pic",group:"image",acp:"image/*",exec:"imageviwer"},{name:"xml",group:"data",acp:"text/xml",exec:"textviwer"},{name:"htm",group:"docums",acp:"text/html",exec:"browser"},{name:"html",group:"docums",acp:"text/html",exec:"browser"},{name:"json",group:"data",acp:"application/json",exec:"textviwer"},{name:"geojson",group:"data",acp:"application/geo+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"},{name:"7z",group:"compress",acp:"application/x-7z-compressed",exec:"compressor"},{name:"bzip",group:"compress",acp:"application/x-bzip",exec:"7z"},{name:"bzip2",group:"compress",acp:"application/x-bzip2",exec:"compressor"},{name:"bz2",group:"compress",acp:"application/x-bzip2",exec:"compressor"},{name:"ace",group:"compress",acp:"application/x-ace-compressed",exec:"compressor"},{name:"Z",group:"compress",acp:"application/x-compress",exec:"compressor"},{name:"lzh",group:"compress",acp:"application/x-lzh-compressed",exec:"compressor"},{name:"lz",group:"compress",acp:"application/x-lzip",exec:"compressor"},{name:"rar",group:"compress",acp:"application/x-rar-compressed",exec:"compressor"},{name:"tar",group:"compress",acp:"application/x-tar",exec:"compressor"},{name:"ar",group:"compress",acp:"application/x-unix-archive",exec:"compressor"},{name:"zip",group:"compress",acp:"application/zip",exec:"compressor"},{name:"gz",group:"compress",acp:"application/gzip",exec:"compressor"},{name:"avro",group:"",acp:"application/avro",exec:""},{name:"dcm",group:"",acp:"application/dicom",exec:""},{name:"eps",group:"",acp:"application/eps",exec:""},{name:"epub",group:"",acp:"application/epub+zip",exec:""},{name:"class",group:"",acp:"application/java-vm",exec:""},{name:"mxf",group:"",acp:"application/mxf",exec:""},{name:"ogx",group:"",acp:"application/ogg",exec:""},{name:"pdf",group:"docums",acp:"application/pdf",exec:"acrobat"},{name:"pgp",group:"",acp:"application/pgp-encrypted",exec:""},{name:"ps",group:"",acp:"application/postscript",exec:""},{name:"ai",group:"",acp:"application/postscript",exec:""},{name:"rtf",group:"docums",acp:"application/rtf",exec:"word"},{name:"icc",group:"",acp:"application/vnd.iccprofile",exec:""},{name:"asf",group:"",acp:"application/vnd.ms-asf",exec:"",msg:"asf的acp可能為application/vnd.ms-asf或audio/x-ms-asf或video/x-ms-asf"},{name:"cab",group:"",acp:"application/vnd.ms-cab-compressed",exec:""},{name:"eot",group:"",acp:"application/vnd.ms-fontobject",exec:""},{name:"chm",group:"",acp:"application/vnd.ms-htmlhelp",exec:""},{name:"pst",group:"",acp:"application/vnd.ms-outlook",exec:""},{name:"odp",group:"docums",acp:"application/vnd.oasis.opendocument.presentation",exec:"powerpoint"},{name:"ods",group:"docums",acp:"application/vnd.oasis.opendocument.spreadsheet",exec:"excel"},{name:"odt",group:"docums",acp:"application/vnd.oasis.opendocument.text",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:"doc",group:"docums",acp:"application/msword",exec:"word"},{name:"docx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",exec:"word"},{name:"skp",group:"",acp:"application/vnd.sketchup.skp",exec:""},{name:"pcap",group:"",acp:"application/vnd.tcpdump.pcap",exec:""},{name:"wasm",group:"",acp:"application/wasm",exec:""},{name:"arrow",group:"",acp:"application/x-apache-arrow",exec:""},{name:"dmg",group:"",acp:"application/x-apple-diskimage",exec:""},{name:"arj",group:"",acp:"application/x-arj",exec:""},{name:"asar",group:"",acp:"application/x-asar",exec:""},{name:"blend",group:"",acp:"application/x-blender",exec:"blender"},{name:"cfb",group:"",acp:"application/x-cfb",exec:""},{name:"cpio",group:"",acp:"application/x-cpio",exec:""},{name:"deb",group:"",acp:"application/x-deb",exec:""},{name:"elf",group:"",acp:"application/x-elf",exec:""},{name:"shp",group:"",acp:"application/x-esri-shape",exec:""},{name:"crx",group:"",acp:"application/x-google-chrome-extension",exec:""},{name:"indd",group:"",acp:"application/x-indesign",exec:""},{name:"macho",group:"",acp:"application/x-mach-binary",exec:""},{name:"mie",group:"",acp:"application/x-mie",exec:""},{name:"mobi",group:"",acp:"application/x-mobipocket-ebook",exec:""},{name:"exe",group:"",acp:"application/x-msdownload",exec:""},{name:"nes",group:"",acp:"application/x-nintendo-nes-rom",exec:""},{name:"parquet",group:"",acp:"application/x-parquet",exec:""},{name:"rpm",group:"",acp:"application/x-rpm",exec:""},{name:"swf",group:"",acp:"application/x-shockwave-flash",exec:""},{name:"sqlite",group:"",acp:"application/x-sqlite3",exec:""},{name:"xpi",group:"",acp:"application/x-xpinstall",exec:""},{name:"xz",group:"",acp:"application/x-xz",exec:""},{name:"alias",group:"",acp:"application/x.apple.alias",exec:""},{name:"fbx",group:"",acp:"application/x.autodesk.fbx",exec:""},{name:"lnk",group:"",acp:"application/x.ms.shortcut",exec:""},{name:"zst",group:"",acp:"application/zstd",exec:""},{name:"aac",group:"audio",acp:"audio/aac",exec:"audioplayer"},{name:"aif",group:"audio",acp:"audio/aiff",exec:"audioplayer"},{name:"amr",group:"audio",acp:"audio/amr",exec:"audioplayer"},{name:"ape",group:"audio",acp:"audio/ape",exec:"audioplayer"},{name:"mid",group:"audio",acp:"audio/midi",exec:"audioplayer"},{name:"m4b",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"f4a",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"f4b",group:"audio",acp:"audio/mp4",exec:"audioplayer"},{name:"mp3",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"mp2",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"mp1",group:"audio",acp:"audio/mpeg",exec:"audioplayer"},{name:"oga",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"spx",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"ogg",group:"audio",acp:"audio/ogg",exec:"audioplayer"},{name:"opus",group:"audio",acp:"audio/opus",exec:"audioplayer"},{name:"qcp",group:"audio",acp:"audio/qcelp",exec:"audioplayer"},{name:"ac3",group:"audio",acp:"audio/vnd.dolby.dd-raw",exec:"audioplayer"},{name:"wav",group:"audio",acp:"audio/wav",exec:"audioplayer"},{name:"wv",group:"audio",acp:"audio/wavpack",exec:"audioplayer"},{name:"dsf",group:"audio",acp:"audio/x-dsf",exec:"audioplayer"},{name:"flac",group:"audio",acp:"audio/x-flac",exec:"audioplayer"},{name:"it",group:"audio",acp:"audio/x-it",exec:"audioplayer"},{name:"m4a",group:"audio",acp:"audio/x-m4a",exec:"audioplayer"},{name:"mpc",group:"audio",acp:"audio/x-musepack",exec:"audioplayer"},{name:"s3m",group:"audio",acp:"audio/x-s3m",exec:"audioplayer"},{name:"voc",group:"audio",acp:"audio/x-voc",exec:"audioplayer"},{name:"xm",group:"audio",acp:"audio/x-xm",exec:"audioplayer"},{name:"otf",group:"",acp:"font/otf",exec:""},{name:"ttf",group:"",acp:"font/ttf",exec:""},{name:"woff",group:"",acp:"font/woff",exec:""},{name:"woff2",group:"",acp:"font/woff2",exec:""},{name:"apng",group:"image",acp:"image/apng",exec:"imageviwer"},{name:"avif",group:"image",acp:"image/avif",exec:"imageviwer"},{name:"bmp",group:"image",acp:"image/bmp",exec:"imageviwer"},{name:"bpg",group:"image",acp:"image/bpg",exec:"imageviwer"},{name:"flif",group:"image",acp:"image/flif",exec:"imageviwer"},{name:"gif",group:"image",acp:"image/gif",exec:"imageviwer"},{name:"heic",group:"image",acp:"image/heif",exec:"imageviwer"},{name:"icns",group:"image",acp:"image/icns",exec:"imageviwer"},{name:"j2c",group:"image",acp:"image/j2c",exec:"imageviwer"},{name:"jls",group:"image",acp:"image/jls",exec:"imageviwer"},{name:"jp2",group:"image",acp:"image/jp2",exec:"imageviwer"},{name:"jpg",group:"image",acp:"image/jpeg",exec:"imageviwer"},{name:"jpm",group:"image",acp:"image/jpm",exec:"imageviwer"},{name:"jpx",group:"image",acp:"image/jpx",exec:"imageviwer"},{name:"jxl",group:"image",acp:"image/jxl",exec:"imageviwer"},{name:"ktx",group:"image",acp:"image/ktx",exec:"imageviwer"},{name:"mj2",group:"image",acp:"image/mj2",exec:"imageviwer"},{name:"png",group:"image",acp:"image/png",exec:"imageviwer"},{name:"tif",group:"image",acp:"image/tiff",exec:"imageviwer"},{name:"psd",group:"image",acp:"image/vnd.adobe.photoshop",exec:"imageviwer"},{name:"dwg",group:"image",acp:"image/vnd.dwg",exec:"imageviwer"},{name:"jxr",group:"image",acp:"image/vnd.ms-photo",exec:"imageviwer"},{name:"webp",group:"image",acp:"image/webp",exec:"imageviwer"},{name:"dng",group:"image",acp:"image/x-adobe-dng",exec:"imageviwer"},{name:"cr2",group:"image",acp:"image/x-canon-cr2",exec:"imageviwer"},{name:"cr3",group:"image",acp:"image/x-canon-cr3",exec:"imageviwer"},{name:"raf",group:"image",acp:"image/x-fujifilm-raf",exec:"imageviwer"},{name:"ico",group:"image",acp:"image/x-icon",exec:"imageviwer"},{name:"cur",group:"image",acp:"image/x-icon",exec:"imageviwer"},{name:"nef",group:"image",acp:"image/x-nikon-nef",exec:"imageviwer"},{name:"orf",group:"image",acp:"image/x-olympus-orf",exec:"imageviwer"},{name:"rw2",group:"image",acp:"image/x-panasonic-rw2",exec:"imageviwer"},{name:"arw",group:"image",acp:"image/x-sony-arw",exec:"imageviwer"},{name:"xcf",group:"image",acp:"image/x-xcf",exec:"imageviwer"},{name:"3mf",group:"",acp:"model/3mf",exec:""},{name:"glb",group:"",acp:"model/gltf-binary",exec:""},{name:"stl",group:"",acp:"model/stl",exec:""},{name:"vtp",group:"",acp:"model/vtp",exec:""},{name:"vtk",group:"",acp:"model/vtk",exec:""},{name:"vtu",group:"",acp:"model/vtu",exec:""},{name:"vti",group:"",acp:"model/vti",exec:""},{name:"vts",group:"",acp:"model/vts",exec:""},{name:"vtr",group:"",acp:"model/vtr",exec:""},{name:"ics",group:"",acp:"text/calendar",exec:""},{name:"vcf",group:"",acp:"text/vcard",exec:""},{name:"3gp",group:"video",acp:"video/3gpp",exec:"videoplayer"},{name:"3g2",group:"video",acp:"video/3gpp2",exec:"videoplayer"},{name:"m2p",group:"video",acp:"video/MP2P",exec:"videoplayer"},{name:"vob",group:"video",acp:"video/MP2P",exec:"videoplayer"},{name:"sub",group:"video",acp:"video/MP2P",exec:"videoplayer",msg:"與字幕檔衝突"},{name:"mts",group:"video",acp:"video/mp2t",exec:"videoplayer"},{name:"m4p",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"f4v",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"f4p",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"mp4",group:"video",acp:"video/mp4",exec:"videoplayer"},{name:"mpg",group:"video",acp:"video/mpeg",exec:"videoplayer",msg:"mpg可能為mpeg或video/MP1S或video/MP2S"},{name:"ogv",group:"video",acp:"video/ogg",exec:"videoplayer"},{name:"ogm",group:"video",acp:"video/ogg",exec:"videoplayer"},{name:"mov",group:"video",acp:"video/quicktime",exec:"videoplayer"},{name:"avi",group:"video",acp:"video/vnd.avi",exec:"videoplayer"},{name:"webm",group:"video",acp:"video/webm",exec:"videoplayer"},{name:"flv",group:"video",acp:"video/x-flv",exec:"videoplayer"},{name:"m4v",group:"video",acp:"video/x-m4v",exec:"videoplayer"},{name:"mkv",group:"video",acp:"video/x-matroska",exec:"videoplayer"}];function Om(e=""){let t=null;return Fe(e)?(t=Hm(qm,{name:e}),Se(t)||(t=null)):t=qm,t}function Pm(e=""){if(""!==e&&"name"!==e&&"group"!==e&&"acp"!==e&&"exec"!==e)return[];let t=Om();if(""===e)return t;let n={};return An(t,function(t){let r=t[e];Te(n,r)||(n[r]=[]),n[r].push(t)}),n}function $m(e="*"){if("*"===e)return e;if(!ke(e)&&!Tn(e))return"*";"common"===e&&(e=["docums","compress","image","data"]);let t=Pm();function n(e){return $n(wn(e,"acp"))}ke(e)&&(e=[e]);let r="";if(Tn(e)){let i=wn(e,function(e){return function(e){return n(sa(t,{group:e}))}(e)}),o=En(i,wn(e,function(e){return n(sa(t,{name:e}))}));o=sa(o,Lm),r=Ao(o,",")}return r}function zm(e,t=1e3){(t=xr(t))<=0&&(t=1e3);let n={},r=[];return An(be(e,"files",[]),function(e,i){let o=e.size/1024/1024;o>t&&(n[i]=`file size[${o}]mb > ${t}mb`),r.push(e)}),{files:r,errs:n}}function jm(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!N(a):n(a,s)))var s=a,l=o}return l}function Vm(e,t){return e<t}function Ym(e){return e&&e.length?jm(e,fn,Vm):void 0}function Wm(){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}}()||Oi(window.IntersectionObserverEntry))}function Gm(e,t,n={}){if(!ku(e))return Promise.reject("invalid ele");let r=nc().markmap,{Transformer:i,Markmap:o,loadCSS:a,loadJS:s}=r,l=e=>{let t=new i,{root:n,features:r}=t.transform(e),{styles:o,scripts:a}=t.getUsedAssets(r);return{root:n,features:r,styles:o,scripts:a}},{root:c,styles:u,scripts:f}=l(t);u&&a(u),f&&s(f,{getMarkmap:()=>r}),e.innerHTML="";let d=o.create(e,null,c);return d.transMarkdown=l,d}const Jm=e=>void 0===e||"auto"===e||"instant"===e||"smooth"===e;function _m(e,t){this.scrollLeft=e,this.scrollTop=t}const Xm=(e,t,n="cannot convert to dictionary.")=>`Failed to execute '${e}' on '${t}': ${n}`,Km=(e,t,n)=>Xm(e,t,`The provided value '${n}' is not a valid enum value of type ScrollBehavior.`),Zm=(e,t,n)=>{var r;const i=`__SEAMLESS.BACKUP$${t}`;return e[i]||!e[t]||(null===(r=e[t])||void 0===r?void 0:r.__isPolyfill)||(e[i]=e[t]),e[i]||n},ey=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},ty=e=>"scrollBehavior"in window.document.documentElement.style&&!0!==(null==e?void 0:e.forcePolyfill),ny=e=>{Object.defineProperty(e,"__isPolyfill",{value:!0})},ry=(e,t)=>{ny(t),[HTMLElement.prototype,SVGElement.prototype,Element.prototype].forEach(n=>{Zm(n,e),n[e]=t})},iy=e=>e.ownerDocument.scrollingElement||e.ownerDocument.documentElement;const oy=e=>.5*(1-Math.cos(Math.PI*e));function ay(){var e;let t;return t=(null===(e=window.performance)||void 0===e?void 0:e.now)?()=>window.performance.now():()=>window.Date.now(),ay=t,t()}const sy=e=>{const t=(ay()-e.timeStamp)/(e.duration||500);if(t>1)return e.method(e.targetX,e.targetY),void e.callback();const n=(e.timingFunc||oy)(t),r=e.startX+(e.targetX-e.startX)*n,i=e.startY+(e.targetY-e.startY)*n;e.method(r,i),e.rafId=window.requestAnimationFrame(()=>{sy(e)})},ly=e=>isFinite(e)?Number(e):0,cy=(e,t,n)=>{var r,i;if(!(e=>{var t;return null!==(t=e.isConnected)&&void 0!==t?t:!(e.ownerDocument&&1&e.ownerDocument.compareDocumentPosition(e))})(e))return;const o=e.scrollLeft,a=e.scrollTop,s=ly(null!==(r=t.left)&&void 0!==r?r:o),l=ly(null!==(i=t.top)&&void 0!==i?i:a);if(s===o&&l===a)return;const c=Zm(HTMLElement.prototype,"scroll",_m),u=Zm(Object.getPrototypeOf(e),"scroll",c).bind(e);if("smooth"!==t.behavior)return void u(s,l);const f=()=>{window.removeEventListener("wheel",h),window.removeEventListener("touchmove",h)},d=Object.assign(Object.assign({},n),{timeStamp:ay(),startX:o,startY:a,targetX:s,targetY:l,rafId:0,method:u,callback:()=>{f();const t=9===e.nodeType;e.dispatchEvent(function(e){if("function"==typeof Event)return new Event("scrollend",{bubbles:e,cancelable:!1});const t=document.createEvent("Event");return t.initEvent("scrollend",e,!1),t}(t))}}),h=()=>{window.cancelAnimationFrame(d.rafId),f()};window.addEventListener("wheel",h,{passive:!0,once:!0}),window.addEventListener("touchmove",h,{passive:!0,once:!0}),sy(d)},uy=e=>(t,n,r)=>{const[i,o]=(a=t).window===a?[iy(t.document.documentElement),"Window"]:[t,"Element"];var a;const s=null!=n?n:{};if(!ey(s))throw new TypeError(Xm(e,o));if(!Jm(s.behavior))throw new TypeError(Km(e,o,s.behavior));"scrollBy"===e&&(s.left=ly(s.left)+i.scrollLeft,s.top=ly(s.top)+i.scrollTop),cy(i,s,r)},fy=uy("scroll"),dy=uy("scrollTo"),hy=uy("scrollBy"),py=fy,gy=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},my=(e,t,n,r)=>{let i=0;switch(t||(i^=2),e){case 0:i=i>>1|(1&i)<<1,[n,r]=[r,n];break;case 1:case 3:i^=1;break;case 4:i^=2}return[i,n,r]},yy=e=>!(1&~my(gy(e.writingMode),"rtl"!==e.direction,void 0,void 0)[0]),vy=(e,t,n,r,i,o,a)=>0!==e?e:i<t&&o>n||i>t&&o<n?null:i<=t&&a<=r||o>=n&&a>=r?2:o>n&&a<r||i<t&&a>r?3:null,Ay=e=>"visible"!==e&&"clip"!==e,by=(e,t)=>(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth)&&(Ay(t.overflowY)||Ay(t.overflowX)||e===iy(e)),wy=e=>{const t=e.parentNode,n=e.parentElement;if(null===n&&null!==t){if(11===t.nodeType)return t.host;if(9===t.nodeType)return(e=>{var t;try{return(null===(t=e.ownerDocument.defaultView)||void 0===t?void 0:t.frameElement)||null}catch(e){return null}})(e)}return n},Iy=(e,t,n)=>e<t?t:e>n?n:e,xy=(e,t,n)=>{switch(e){case 1:return(t+n)/2;case 3:return n;case 2:case 0:return t}},Cy=(e,t)=>{var n,r,i;const o=null===(n=e.ownerDocument.defaultView)||void 0===n?void 0:n.visualViewport,[a,s,l,c]=e===iy(e)?[0,0,null!==(r=null==o?void 0:o.width)&&void 0!==r?r:e.clientWidth,null!==(i=null==o?void 0:o.height)&&void 0!==i?i:e.clientHeight]:[t.left,t.top,e.clientWidth,e.clientHeight],u=a+e.clientLeft,f=s+e.clientTop;return[f,u+l,f+c,u]},By=(e,t)=>{const n=[];let r=e.ownerDocument,i=r.defaultView;if(!i)return n;const o=window.getComputedStyle(e),a="rtl"!==o.direction,s=gy(o.writingMode||o.getPropertyValue("-webkit-writing-mode")||o.getPropertyValue("-ms-writing-mode")),[l,c]=((e,t,n)=>{const[r,i,o]=my(t,n,e.block||"start",e.inline||"nearest");return[i,o].map((e,t)=>{switch(e){case"center":return 1;case"nearest":return 0;default:return"start"===e==!(r>>t&1)?2:3}})})(t,s,a);let[u,f,d,h]=((e,t,n)=>{const{top:r,right:i,bottom:o,left:a}=t,s=(l=e.ownerDocument,["scroll-margin","scroll-snap-margin"].filter(e=>e in l.documentElement.style)[0]);var l;if(!s)return[r,i,o,a];const c=e=>{const t=n.getPropertyValue(`${s}-${e}`);return parseInt(t,10)||0};return[r-c("top"),i+c("right"),o+c("bottom"),a-c("left")]})(e,e.getBoundingClientRect(),o);for(let o=wy(e);null!==o;o=wy(o)){if(r!==o.ownerDocument){if(r=o.ownerDocument,i=r.defaultView,!i)break;const{left:e,top:t}=o.getBoundingClientRect();u+=t,f+=e,d+=t,h+=e}const e=i.getComputedStyle(o);if("fixed"===e.position)break;if(!by(o,e))continue;const a=o.getBoundingClientRect(),[s,p,g,m]=Cy(o,a),y=vy(l,m,p,o.clientWidth,h,f,f-h),v=vy(c,s,g,o.clientHeight,u,d,d-u),A=null===y?0:xy(y,h,f)-xy(y,m,p),b=null===v?0:xy(v,u,d)-xy(v,s,g),w=yy(e)?Iy(A,-o.scrollWidth+o.clientWidth-o.scrollLeft,-o.scrollLeft):Iy(A,-o.scrollLeft,o.scrollWidth-o.clientWidth-o.scrollLeft),I=Iy(b,-o.scrollTop,o.scrollHeight-o.clientHeight-o.scrollTop);n.push([o,{left:o.scrollLeft+w,top:o.scrollTop+I,behavior:t.behavior}]),u=Math.max(u-I,s),f=Math.min(f-w,p),d=Math.min(d-I,g),h=Math.max(h-w,m)}return n},Ey=(e,t,n)=>{const r=t||{};if(!Jm(r.behavior))throw new TypeError(Km("scrollIntoView","Element",r.behavior));By(e,r).forEach(([e,t])=>{py(e,t,n)})},Sy=(e,t)=>n=>{if(ty(n))return;const r={scroll:fy,scrollTo:dy,scrollBy:hy}[e];t(e,function(){const e=arguments;if(1===arguments.length)return void r(this,e[0],n);r(this,{left:e[0],top:e[1]})})},ky=Sy("scroll",ry),Fy=Sy("scrollTo",ry),Dy=Sy("scrollBy",ry),Ny=(e,t)=>{ny(t),Zm(window,e),window[e]=t},My=Sy("scroll",Ny),Ty=Sy("scrollTo",Ny),Qy=Sy("scrollBy",Ny);function Ly(e){Ey(this,{block:null==e||e?"start":"end",inline:"nearest"})}const Ry=e=>{if(ty(e))return;const t=Zm(window.HTMLElement.prototype,"scrollIntoView",Ly);ry("scrollIntoView",function(){const n=arguments,r=n[0];1===n.length&&ey(r)?Ey(this,r,e):t.apply(this,n)})},Uy=e=>{ty(e)||(ky(e),Fy(e),Dy(e),Ry(e),My(e),Ty(e),Qy(e))};var Hy={exports:{}};
16
16
  /*!
17
17
  * Viewer.js v1.12.0
18
18
  * https://fengyuanchen.github.io/viewerjs
@@ -29,5 +29,5 @@ var vs,As,bs=9e15,ws=1e9,Is="0123456789abcdef",xs="2.302585092994045684017991454
29
29
  */
30
30
  function vN(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;class AN{constructor(){this.mutex=Promise.resolve()}lock(){let e=()=>{};return this.mutex=this.mutex.then(()=>new Promise(e)),new Promise(t=>{e=t})}dispatch(e){return vN(this,void 0,void 0,function*(){const t=yield this.lock();try{return yield Promise.resolve(e())}finally{t()}})}}var bN;const wN="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,IN=null!==(bN=wN.Buffer)&&void 0!==bN?bN:null,xN=wN.TextEncoder?new wN.TextEncoder:null;function CN(e,t){return(15&e)+(e>>6|e>>3&8)<<4|(15&t)+(t>>6|t>>3&8)}const BN="a".charCodeAt(0)-10,EN="0".charCodeAt(0);function SN(e,t,n){let r=0;for(let i=0;i<n;i++){let n=t[i]>>>4;e[r++]=n>9?n+BN:n+EN,n=15&t[i],e[r++]=n>9?n+BN:n+EN}return String.fromCharCode.apply(null,e)}const kN=null!==IN?e=>{if("string"==typeof e){const t=IN.from(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.length)}if(IN.isBuffer(e))return new Uint8Array(e.buffer,e.byteOffset,e.length);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")}:e=>{if("string"==typeof e)return xN.encode(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")},FN="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",DN=new Uint8Array(256);for(let e=0;e<64;e++)DN[FN.charCodeAt(e)]=e;function NN(e){const t=function(e){let t=Math.floor(.75*e.length);const n=e.length;return"="===e[n-1]&&(t-=1,"="===e[n-2]&&(t-=1)),t}(e),n=e.length,r=new Uint8Array(t);let i=0;for(let t=0;t<n;t+=4){const n=DN[e.charCodeAt(t)],o=DN[e.charCodeAt(t+1)],a=DN[e.charCodeAt(t+2)],s=DN[e.charCodeAt(t+3)];r[i]=n<<2|o>>4,i+=1,r[i]=(15&o)<<4|a>>2,i+=1,r[i]=(3&a)<<6|63&s,i+=1}return r}const MN=16384,TN=new AN,QN=new Map;function LN(e,t){return vN(this,void 0,void 0,function*(){let n=null,r=null,i=!1;if("undefined"==typeof WebAssembly)throw new Error("WebAssembly is not supported in this environment!");const o=()=>new DataView(n.exports.memory.buffer).getUint32(n.exports.STATE_SIZE,!0),a=TN.dispatch(()=>vN(this,void 0,void 0,function*(){if(!QN.has(e.name)){const t=NN(e.data),n=WebAssembly.compile(t);QN.set(e.name,n)}const t=yield QN.get(e.name);n=yield WebAssembly.instantiate(t,{})})),s=(e=null)=>{i=!0,n.exports.Hash_Init(e)},l=e=>{if(!i)throw new Error("update() called before init()");(e=>{let t=0;for(;t<e.length;){const i=e.subarray(t,t+MN);t+=i.length,r.set(i),n.exports.Hash_Update(i.length)}})(kN(e))},c=new Uint8Array(2*t),u=(e,o=null)=>{if(!i)throw new Error("digest() called before init()");return i=!1,n.exports.Hash_Final(o),"binary"===e?r.slice(0,t):SN(c,r,t)},f=e=>"string"==typeof e?e.length<4096:e.byteLength<MN;let d=f;switch(e.name){case"argon2":case"scrypt":d=()=>!0;break;case"blake2b":case"blake2s":d=(e,t)=>t<=512&&f(e);break;case"blake3":d=(e,t)=>0===t&&f(e);break;case"xxhash64":case"xxhash3":case"xxhash128":case"crc64":d=()=>!1}return yield(()=>vN(this,void 0,void 0,function*(){n||(yield a);const e=n.exports.Hash_GetBuffer(),t=n.exports.memory.buffer;r=new Uint8Array(t,e,MN)}))(),{getMemory:()=>r,writeMemory:(e,t=0)=>{r.set(e,t)},getExports:()=>n.exports,setMemorySize:e=>{n.exports.Hash_SetMemorySize(e);const t=n.exports.Hash_GetBuffer(),i=n.exports.memory.buffer;r=new Uint8Array(i,t,e)},init:s,update:l,digest:u,save:()=>{if(!i)throw new Error("save() can only be called after init() and before digest()");const t=n.exports.Hash_GetState(),r=o(),a=n.exports.memory.buffer,s=new Uint8Array(a,t,r),l=new Uint8Array(4+r);return function(e,t){const n=t.length>>1;for(let r=0;r<n;r++){const n=r<<1;e[r]=CN(t.charCodeAt(n),t.charCodeAt(n+1))}}(l,e.hash),l.set(s,4),l},load:t=>{if(!(t instanceof Uint8Array))throw new Error("load() expects an Uint8Array generated by save()");const r=n.exports.Hash_GetState(),a=o(),s=4+a,l=n.exports.memory.buffer;if(t.length!==s)throw new Error(`Bad state length (expected ${s} bytes, got ${t.length})`);if(!function(e,t){if(e.length!==2*t.length)return!1;for(let n=0;n<t.length;n++){const r=n<<1;if(t[n]!==CN(e.charCodeAt(r),e.charCodeAt(r+1)))return!1}return!0}(e.hash,t.subarray(0,4)))throw new Error("This state was written by an incompatible hash implementation");const c=t.subarray(4);new Uint8Array(l,r,a).set(c),i=!0},calculate:(e,i=null,o=null)=>{if(!d(e,i))return s(i),l(e),u("hex",o);const a=kN(e);return r.set(a),n.exports.Hash_Calculate(a.length,i,o),SN(c,r,t)},hashLength:t}})}new AN,new AN,new AN,new AN,new AN,new AN,new AN;var RN={name:"md5",data:"AGFzbQEAAAABEgRgAAF/YAAAYAF/AGACf38BfwMIBwABAgMBAAIFBAEBAgIGDgJ/AUGgigULfwBBgAgLB3AIBm1lbW9yeQIADkhhc2hfR2V0QnVmZmVyAAAJSGFzaF9Jbml0AAELSGFzaF9VcGRhdGUAAgpIYXNoX0ZpbmFsAAQNSGFzaF9HZXRTdGF0ZQAFDkhhc2hfQ2FsY3VsYXRlAAYKU1RBVEVfU0laRQMBCoMaBwUAQYAJCy0AQQBC/rnrxemOlZkQNwKQiQFBAEKBxpS6lvHq5m83AoiJAUEAQgA3AoCJAQu+BQEHf0EAQQAoAoCJASIBIABqQf////8BcSICNgKAiQFBAEEAKAKEiQEgAiABSWogAEEddmo2AoSJAQJAAkACQAJAAkACQCABQT9xIgMNAEGACSEEDAELIABBwAAgA2siBUkNASAFQQNxIQZBACEBAkAgA0E/c0EDSQ0AIANBgIkBaiEEIAVB/ABxIQdBACEBA0AgBCABaiICQRhqIAFBgAlqLQAAOgAAIAJBGWogAUGBCWotAAA6AAAgAkEaaiABQYIJai0AADoAACACQRtqIAFBgwlqLQAAOgAAIAcgAUEEaiIBRw0ACwsCQCAGRQ0AIANBmIkBaiECA0AgAiABaiABQYAJai0AADoAACABQQFqIQEgBkF/aiIGDQALC0GYiQFBwAAQAxogACAFayEAIAVBgAlqIQQLIABBwABPDQEgACECDAILIABFDQIgAEEDcSEGQQAhAQJAIABBBEkNACADQYCJAWohBCAAQXxxIQBBACEBA0AgBCABaiICQRhqIAFBgAlqLQAAOgAAIAJBGWogAUGBCWotAAA6AAAgAkEaaiABQYIJai0AADoAACACQRtqIAFBgwlqLQAAOgAAIAAgAUEEaiIBRw0ACwsgBkUNAiADQZiJAWohAgNAIAIgAWogAUGACWotAAA6AAAgAUEBaiEBIAZBf2oiBg0ADAMLCyAAQT9xIQIgBCAAQUBxEAMhBAsgAkUNACACQQNxIQZBACEBAkAgAkEESQ0AIAJBPHEhAEEAIQEDQCABQZiJAWogBCABaiICLQAAOgAAIAFBmYkBaiACQQFqLQAAOgAAIAFBmokBaiACQQJqLQAAOgAAIAFBm4kBaiACQQNqLQAAOgAAIAAgAUEEaiIBRw0ACwsgBkUNAANAIAFBmIkBaiAEIAFqLQAAOgAAIAFBAWohASAGQX9qIgYNAAsLC4cQARl/QQAoApSJASECQQAoApCJASEDQQAoAoyJASEEQQAoAoiJASEFA0AgACgCCCIGIAAoAhgiByAAKAIoIgggACgCOCIJIAAoAjwiCiAAKAIMIgsgACgCHCIMIAAoAiwiDSAMIAsgCiANIAkgCCAHIAMgBmogAiAAKAIEIg5qIAUgBCACIANzcSACc2ogACgCACIPakH4yKq7fWpBB3cgBGoiECAEIANzcSADc2pB1u6exn5qQQx3IBBqIhEgECAEc3EgBHNqQdvhgaECakERdyARaiISaiAAKAIUIhMgEWogACgCECIUIBBqIAQgC2ogEiARIBBzcSAQc2pB7p33jXxqQRZ3IBJqIhAgEiARc3EgEXNqQa+f8Kt/akEHdyAQaiIRIBAgEnNxIBJzakGqjJ+8BGpBDHcgEWoiEiARIBBzcSAQc2pBk4zBwXpqQRF3IBJqIhVqIAAoAiQiFiASaiAAKAIgIhcgEWogDCAQaiAVIBIgEXNxIBFzakGBqppqakEWdyAVaiIQIBUgEnNxIBJzakHYsYLMBmpBB3cgEGoiESAQIBVzcSAVc2pBr++T2nhqQQx3IBFqIhIgESAQc3EgEHNqQbG3fWpBEXcgEmoiFWogACgCNCIYIBJqIAAoAjAiGSARaiANIBBqIBUgEiARc3EgEXNqQb6v88p4akEWdyAVaiIQIBUgEnNxIBJzakGiosDcBmpBB3cgEGoiESAQIBVzcSAVc2pBk+PhbGpBDHcgEWoiFSARIBBzcSAQc2pBjofls3pqQRF3IBVqIhJqIAcgFWogDiARaiAKIBBqIBIgFSARc3EgEXNqQaGQ0M0EakEWdyASaiIQIBJzIBVxIBJzakHiyviwf2pBBXcgEGoiESAQcyAScSAQc2pBwOaCgnxqQQl3IBFqIhIgEXMgEHEgEXNqQdG0+bICakEOdyASaiIVaiAIIBJqIBMgEWogDyAQaiAVIBJzIBFxIBJzakGqj9vNfmpBFHcgFWoiECAVcyAScSAVc2pB3aC8sX1qQQV3IBBqIhEgEHMgFXEgEHNqQdOokBJqQQl3IBFqIhIgEXMgEHEgEXNqQYHNh8V9akEOdyASaiIVaiAJIBJqIBYgEWogFCAQaiAVIBJzIBFxIBJzakHI98++fmpBFHcgFWoiECAVcyAScSAVc2pB5puHjwJqQQV3IBBqIhEgEHMgFXEgEHNqQdaP3Jl8akEJdyARaiISIBFzIBBxIBFzakGHm9Smf2pBDncgEmoiFWogBiASaiAYIBFqIBcgEGogFSAScyARcSASc2pB7anoqgRqQRR3IBVqIhAgFXMgEnEgFXNqQYXSj896akEFdyAQaiIRIBBzIBVxIBBzakH4x75nakEJdyARaiISIBFzIBBxIBFzakHZhby7BmpBDncgEmoiFWogFyASaiATIBFqIBkgEGogFSAScyARcSASc2pBipmp6XhqQRR3IBVqIhAgFXMiFSASc2pBwvJoakEEdyAQaiIRIBVzakGB7ce7eGpBC3cgEWoiEiARcyIaIBBzakGiwvXsBmpBEHcgEmoiFWogFCASaiAOIBFqIAkgEGogFSAac2pBjPCUb2pBF3cgFWoiECAVcyIVIBJzakHE1PulempBBHcgEGoiESAVc2pBqZ/73gRqQQt3IBFqIhIgEXMiCSAQc2pB4JbttX9qQRB3IBJqIhVqIA8gEmogGCARaiAIIBBqIBUgCXNqQfD4/vV7akEXdyAVaiIQIBVzIhUgEnNqQcb97cQCakEEdyAQaiIRIBVzakH6z4TVfmpBC3cgEWoiEiARcyIIIBBzakGF4bynfWpBEHcgEmoiFWogGSASaiAWIBFqIAcgEGogFSAIc2pBhbqgJGpBF3cgFWoiESAVcyIQIBJzakG5oNPOfWpBBHcgEWoiEiAQc2pB5bPutn5qQQt3IBJqIhUgEnMiByARc2pB+PmJ/QFqQRB3IBVqIhBqIAwgFWogDyASaiAGIBFqIBAgB3NqQeWssaV8akEXdyAQaiIRIBVBf3NyIBBzakHExKShf2pBBncgEWoiEiAQQX9zciARc2pBl/+rmQRqQQp3IBJqIhAgEUF/c3IgEnNqQafH0Nx6akEPdyAQaiIVaiALIBBqIBkgEmogEyARaiAVIBJBf3NyIBBzakG5wM5kakEVdyAVaiIRIBBBf3NyIBVzakHDs+2qBmpBBncgEWoiECAVQX9zciARc2pBkpmz+HhqQQp3IBBqIhIgEUF/c3IgEHNqQf3ov39qQQ93IBJqIhVqIAogEmogFyAQaiAOIBFqIBUgEEF/c3IgEnNqQdG7kax4akEVdyAVaiIQIBJBf3NyIBVzakHP/KH9BmpBBncgEGoiESAVQX9zciAQc2pB4M2zcWpBCncgEWoiEiAQQX9zciARc2pBlIaFmHpqQQ93IBJqIhVqIA0gEmogFCARaiAYIBBqIBUgEUF/c3IgEnNqQaGjoPAEakEVdyAVaiIQIBJBf3NyIBVzakGC/c26f2pBBncgEGoiESAVQX9zciAQc2pBteTr6XtqQQp3IBFqIhIgEEF/c3IgEXNqQbul39YCakEPdyASaiIVIARqIBYgEGogFSARQX9zciASc2pBkaeb3H5qQRV3aiEEIBUgA2ohAyASIAJqIQIgESAFaiEFIABBwABqIQAgAUFAaiIBDQALQQAgAjYClIkBQQAgAzYCkIkBQQAgBDYCjIkBQQAgBTYCiIkBIAALyAMBBX9BACgCgIkBQT9xIgBBmIkBakGAAToAACAAQQFqIQECQAJAAkACQCAAQT9zIgJBB0sNACACRQ0BIAFBmIkBakEAOgAAIAJBAUYNASAAQZqJAWpBADoAACACQQJGDQEgAEGbiQFqQQA6AAAgAkEDRg0BIABBnIkBakEAOgAAIAJBBEYNASAAQZ2JAWpBADoAACACQQVGDQEgAEGeiQFqQQA6AAAgAkEGRg0BIABBn4kBakEAOgAADAELIAJBCEYNAkE2IABrIgMhBAJAIAJBA3EiAEUNAEEAIABrIQRBACEAA0AgAEHPiQFqQQA6AAAgBCAAQX9qIgBHDQALIAMgAGohBAsgA0EDSQ0CDAELQZiJAUHAABADGkEAIQFBNyEECyABQYCJAWohAEF/IQIDQCAAIARqQRVqQQA2AAAgAEF8aiEAIAQgAkEEaiICRw0ACwtBAEEAKAKEiQE2AtSJAUEAQQAoAoCJASIAQRV2OgDTiQFBACAAQQ12OgDSiQFBACAAQQV2OgDRiQFBACAAQQN0IgA6ANCJAUEAIAA2AoCJAUGYiQFBwAAQAxpBAEEAKQKIiQE3A4AJQQBBACkCkIkBNwOICQsGAEGAiQELMwBBAEL+uevF6Y6VmRA3ApCJAUEAQoHGlLqW8ermbzcCiIkBQQBCADcCgIkBIAAQAhAECwsLAQBBgAgLBJgAAAA=",hash:"e6508e4b"};function UN(){return LN(RN,16).then(e=>{e.init();const t={init:()=>(e.init(),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),save:()=>e.save(),load:n=>(e.load(n),t),blockSize:64,digestSize:16};return t})}new AN;var HN={name:"sha1",data:"AGFzbQEAAAABEQRgAAF/YAF/AGAAAGACf38AAwkIAAECAwECAAEFBAEBAgIGDgJ/AUHgiQULfwBBgAgLB3AIBm1lbW9yeQIADkhhc2hfR2V0QnVmZmVyAAAJSGFzaF9Jbml0AAILSGFzaF9VcGRhdGUABApIYXNoX0ZpbmFsAAUNSGFzaF9HZXRTdGF0ZQAGDkhhc2hfQ2FsY3VsYXRlAAcKU1RBVEVfU0laRQMBCpoqCAUAQYAJC68iCgF+An8BfgF/AX4DfwF+AX8Bfkd/QQAgACkDECIBQiCIpyICQRh0IAJBgP4DcUEIdHIgAUIoiKdBgP4DcSABQjiIp3JyIgMgACkDCCIEQiCIpyICQRh0IAJBgP4DcUEIdHIgBEIoiKdBgP4DcSAEQjiIp3JyIgVzIAApAygiBkIgiKciAkEYdCACQYD+A3FBCHRyIAZCKIinQYD+A3EgBkI4iKdyciIHcyAEpyICQRh0IAJBgP4DcUEIdHIgAkEIdkGA/gNxIAJBGHZyciIIIAApAwAiBKciAkEYdCACQYD+A3FBCHRyIAJBCHZBgP4DcSACQRh2cnIiCXMgACkDICIKpyICQRh0IAJBgP4DcUEIdHIgAkEIdkGA/gNxIAJBGHZyciILcyAAKQMwIgxCIIinIgJBGHQgAkGA/gNxQQh0ciAMQiiIp0GA/gNxIAxCOIincnIiAnNBAXciDXNBAXciDiAFIARCIIinIg9BGHQgD0GA/gNxQQh0ciAEQiiIp0GA/gNxIARCOIincnIiEHMgCkIgiKciD0EYdCAPQYD+A3FBCHRyIApCKIinQYD+A3EgCkI4iKdyciIRcyAAKQM4IgSnIg9BGHQgD0GA/gNxQQh0ciAPQQh2QYD+A3EgD0EYdnJyIg9zQQF3IhJzIAcgEXMgEnMgCyAAKQMYIgqnIgBBGHQgAEGA/gNxQQh0ciAAQQh2QYD+A3EgAEEYdnJyIhNzIA9zIA5zQQF3IgBzQQF3IhRzIA0gD3MgAHMgAiAHcyAOcyAGpyIVQRh0IBVBgP4DcUEIdHIgFUEIdkGA/gNxIBVBGHZyciIWIAtzIA1zIApCIIinIhVBGHQgFUGA/gNxQQh0ciAKQiiIp0GA/gNxIApCOIincnIiFyADcyACcyABpyIVQRh0IBVBgP4DcUEIdHIgFUEIdkGA/gNxIBVBGHZyciIYIAhzIBZzIARCIIinIhVBGHQgFUGA/gNxQQh0ciAEQiiIp0GA/gNxIARCOIincnIiFXNBAXciGXNBAXciGnNBAXciG3NBAXciHHNBAXciHXNBAXciHiASIBVzIBEgF3MgFXMgEyAYcyAMpyIfQRh0IB9BgP4DcUEIdHIgH0EIdkGA/gNxIB9BGHZyciIgcyASc0EBdyIfc0EBdyIhcyAPICBzIB9zIBRzQQF3IiJzQQF3IiNzIBQgIXMgI3MgACAfcyAicyAec0EBdyIkc0EBdyIlcyAdICJzICRzIBwgFHMgHnMgGyAAcyAdcyAaIA5zIBxzIBkgDXMgG3MgFSACcyAacyAgIBZzIBlzICFzQQF3IiZzQQF3IidzQQF3IihzQQF3IilzQQF3IipzQQF3IitzQQF3IixzQQF3Ii0gIyAncyAhIBpzICdzIB8gGXMgJnMgI3NBAXciLnNBAXciL3MgIiAmcyAucyAlc0EBdyIwc0EBdyIxcyAlIC9zIDFzICQgLnMgMHMgLXNBAXciMnNBAXciM3MgLCAwcyAycyArICVzIC1zICogJHMgLHMgKSAecyArcyAoIB1zICpzICcgHHMgKXMgJiAbcyAocyAvc0EBdyI0c0EBdyI1c0EBdyI2c0EBdyI3c0EBdyI4c0EBdyI5c0EBdyI6c0EBdyI7IDEgNXMgLyApcyA1cyAuIChzIDRzIDFzQQF3IjxzQQF3Ij1zIDAgNHMgPHMgM3NBAXciPnNBAXciP3MgMyA9cyA/cyAyIDxzID5zIDtzQQF3IkBzQQF3IkFzIDogPnMgQHMgOSAzcyA7cyA4IDJzIDpzIDcgLXMgOXMgNiAscyA4cyA1ICtzIDdzIDQgKnMgNnMgPXNBAXciQnNBAXciQ3NBAXciRHNBAXciRXNBAXciRnNBAXciR3NBAXciSHNBAXciSSA+IEJzIDwgNnMgQnMgP3NBAXciSnMgQXNBAXciSyA9IDdzIENzIEpzQQF3IkwgRCA5IDIgMSA0ICkgHSAUIB8gFSAWQQAoAoCJASJNQQV3QQAoApCJASJOaiAJakEAKAKMiQEiT0EAKAKIiQEiCXNBACgChIkBIlBxIE9zakGZ84nUBWoiUUEedyJSIANqIFBBHnciAyAFaiBPIAMgCXMgTXEgCXNqIBBqIFFBBXdqQZnzidQFaiIQIFIgTUEedyIFc3EgBXNqIAkgCGogUSADIAVzcSADc2ogEEEFd2pBmfOJ1AVqIlFBBXdqQZnzidQFaiJTIFFBHnciAyAQQR53IghzcSAIc2ogBSAYaiBRIAggUnNxIFJzaiBTQQV3akGZ84nUBWoiBUEFd2pBmfOJ1AVqIhhBHnciUmogU0EedyIWIAtqIAggE2ogBSAWIANzcSADc2ogGEEFd2pBmfOJ1AVqIgggUiAFQR53IgtzcSALc2ogAyAXaiAYIAsgFnNxIBZzaiAIQQV3akGZ84nUBWoiBUEFd2pBmfOJ1AVqIhMgBUEedyIWIAhBHnciA3NxIANzaiALIBFqIAUgAyBSc3EgUnNqIBNBBXdqQZnzidQFaiIRQQV3akGZ84nUBWoiUkEedyILaiACIBNBHnciFWogByADaiARIBUgFnNxIBZzaiBSQQV3akGZ84nUBWoiByALIBFBHnciAnNxIAJzaiAgIBZqIFIgAiAVc3EgFXNqIAdBBXdqQZnzidQFaiIRQQV3akGZ84nUBWoiFiARQR53IhUgB0EedyIHc3EgB3NqIA8gAmogESAHIAtzcSALc2ogFkEFd2pBmfOJ1AVqIgtBBXdqQZnzidQFaiIRQR53IgJqIBIgFWogESALQR53Ig8gFkEedyISc3EgEnNqIA0gB2ogCyASIBVzcSAVc2ogEUEFd2pBmfOJ1AVqIg1BBXdqQZnzidQFaiIVQR53Ih8gDUEedyIHcyAZIBJqIA0gAiAPc3EgD3NqIBVBBXdqQZnzidQFaiINc2ogDiAPaiAVIAcgAnNxIAJzaiANQQV3akGZ84nUBWoiAkEFd2pBodfn9gZqIg5BHnciD2ogACAfaiACQR53IgAgDUEedyINcyAOc2ogGiAHaiANIB9zIAJzaiAOQQV3akGh1+f2BmoiAkEFd2pBodfn9gZqIg5BHnciEiACQR53IhRzICEgDWogDyAAcyACc2ogDkEFd2pBodfn9gZqIgJzaiAbIABqIBQgD3MgDnNqIAJBBXdqQaHX5/YGaiIAQQV3akGh1+f2BmoiDUEedyIOaiAcIBJqIABBHnciDyACQR53IgJzIA1zaiAmIBRqIAIgEnMgAHNqIA1BBXdqQaHX5/YGaiIAQQV3akGh1+f2BmoiDUEedyISIABBHnciFHMgIiACaiAOIA9zIABzaiANQQV3akGh1+f2BmoiAHNqICcgD2ogFCAOcyANc2ogAEEFd2pBodfn9gZqIgJBBXdqQaHX5/YGaiINQR53Ig5qICggEmogAkEedyIPIABBHnciAHMgDXNqICMgFGogACAScyACc2ogDUEFd2pBodfn9gZqIgJBBXdqQaHX5/YGaiINQR53IhIgAkEedyIUcyAeIABqIA4gD3MgAnNqIA1BBXdqQaHX5/YGaiIAc2ogLiAPaiAUIA5zIA1zaiAAQQV3akGh1+f2BmoiAkEFd2pBodfn9gZqIg1BHnciDmogKiAAQR53IgBqIA4gAkEedyIPcyAkIBRqIAAgEnMgAnNqIA1BBXdqQaHX5/YGaiIUc2ogLyASaiAPIABzIA1zaiAUQQV3akGh1+f2BmoiDUEFd2pBodfn9gZqIgAgDUEedyICciAUQR53IhJxIAAgAnFyaiAlIA9qIBIgDnMgDXNqIABBBXdqQaHX5/YGaiINQQV3akHc+e74eGoiDkEedyIPaiA1IABBHnciAGogKyASaiANIAByIAJxIA0gAHFyaiAOQQV3akHc+e74eGoiEiAPciANQR53Ig1xIBIgD3FyaiAwIAJqIA4gDXIgAHEgDiANcXJqIBJBBXdqQdz57vh4aiIAQQV3akHc+e74eGoiAiAAQR53Ig5yIBJBHnciEnEgAiAOcXJqICwgDWogACASciAPcSAAIBJxcmogAkEFd2pB3Pnu+HhqIgBBBXdqQdz57vh4aiINQR53Ig9qIDwgAkEedyICaiA2IBJqIAAgAnIgDnEgACACcXJqIA1BBXdqQdz57vh4aiISIA9yIABBHnciAHEgEiAPcXJqIC0gDmogDSAAciACcSANIABxcmogEkEFd2pB3Pnu+HhqIgJBBXdqQdz57vh4aiINIAJBHnciDnIgEkEedyIScSANIA5xcmogNyAAaiACIBJyIA9xIAIgEnFyaiANQQV3akHc+e74eGoiAEEFd2pB3Pnu+HhqIgJBHnciD2ogMyANQR53Ig1qID0gEmogACANciAOcSAAIA1xcmogAkEFd2pB3Pnu+HhqIhIgD3IgAEEedyIAcSASIA9xcmogOCAOaiACIAByIA1xIAIgAHFyaiASQQV3akHc+e74eGoiAkEFd2pB3Pnu+HhqIg0gAkEedyIOciASQR53IhJxIA0gDnFyaiBCIABqIAIgEnIgD3EgAiAScXJqIA1BBXdqQdz57vh4aiIAQQV3akHc+e74eGoiAkEedyIPaiBDIA5qIAIgAEEedyIUciANQR53Ig1xIAIgFHFyaiA+IBJqIAAgDXIgDnEgACANcXJqIAJBBXdqQdz57vh4aiIAQQV3akHc+e74eGoiAkEedyISIABBHnciDnMgOiANaiAAIA9yIBRxIAAgD3FyaiACQQV3akHc+e74eGoiAHNqID8gFGogAiAOciAPcSACIA5xcmogAEEFd2pB3Pnu+HhqIgJBBXdqQdaDi9N8aiINQR53Ig9qIEogEmogAkEedyIUIABBHnciAHMgDXNqIDsgDmogACAScyACc2ogDUEFd2pB1oOL03xqIgJBBXdqQdaDi9N8aiINQR53Ig4gAkEedyIScyBFIABqIA8gFHMgAnNqIA1BBXdqQdaDi9N8aiIAc2ogQCAUaiASIA9zIA1zaiAAQQV3akHWg4vTfGoiAkEFd2pB1oOL03xqIg1BHnciD2ogQSAOaiACQR53IhQgAEEedyIAcyANc2ogRiASaiAAIA5zIAJzaiANQQV3akHWg4vTfGoiAkEFd2pB1oOL03xqIg1BHnciDiACQR53IhJzIEIgOHMgRHMgTHNBAXciFSAAaiAPIBRzIAJzaiANQQV3akHWg4vTfGoiAHNqIEcgFGogEiAPcyANc2ogAEEFd2pB1oOL03xqIgJBBXdqQdaDi9N8aiINQR53Ig9qIEggDmogAkEedyIUIABBHnciAHMgDXNqIEMgOXMgRXMgFXNBAXciGSASaiAAIA5zIAJzaiANQQV3akHWg4vTfGoiAkEFd2pB1oOL03xqIg1BHnciDiACQR53IhJzID8gQ3MgTHMgS3NBAXciGiAAaiAPIBRzIAJzaiANQQV3akHWg4vTfGoiAHNqIEQgOnMgRnMgGXNBAXciGyAUaiASIA9zIA1zaiAAQQV3akHWg4vTfGoiAkEFd2pB1oOL03xqIg1BHnciDyBOajYCkIkBQQAgTyBKIERzIBVzIBpzQQF3IhQgEmogAEEedyIAIA5zIAJzaiANQQV3akHWg4vTfGoiEkEedyIVajYCjIkBQQAgCSBFIDtzIEdzIBtzQQF3IA5qIAJBHnciAiAAcyANc2ogEkEFd2pB1oOL03xqIg1BHndqNgKIiQFBACBQIEAgSnMgS3MgSXNBAXcgAGogDyACcyASc2ogDUEFd2pB1oOL03xqIgBqNgKEiQFBACBNIEwgRXMgGXMgFHNBAXdqIAJqIBUgD3MgDXNqIABBBXdqQdaDi9N8ajYCgIkBCzoAQQBC/rnrxemOlZkQNwKIiQFBAEKBxpS6lvHq5m83AoCJAUEAQvDDy54MNwKQiQFBAEEANgKYiQELqAMBCH9BACECQQBBACgClIkBIgMgAUEDdGoiBDYClIkBQQBBACgCmIkBIAQgA0lqIAFBHXZqNgKYiQECQCADQQN2QT9xIgUgAWpBwABJDQBBwAAgBWsiAkEDcSEGQQAhAwJAIAVBP3NBA0kNACAFQYCJAWohByACQfwAcSEIQQAhAwNAIAcgA2oiBEEcaiAAIANqIgktAAA6AAAgBEEdaiAJQQFqLQAAOgAAIARBHmogCUECai0AADoAACAEQR9qIAlBA2otAAA6AAAgCCADQQRqIgNHDQALCwJAIAZFDQAgACADaiEEIAMgBWpBnIkBaiEDA0AgAyAELQAAOgAAIARBAWohBCADQQFqIQMgBkF/aiIGDQALC0GciQEQASAFQf8AcyEDQQAhBSADIAFPDQADQCAAIAJqEAEgAkH/AGohAyACQcAAaiIEIQIgAyABSQ0ACyAEIQILAkAgASACRg0AIAEgAmshCSAAIAJqIQIgBUGciQFqIQNBACEEA0AgAyACLQAAOgAAIAJBAWohAiADQQFqIQMgCSAEQQFqIgRB/wFxSw0ACwsLCQBBgAkgABADC6YDAQJ/IwBBEGsiACQAIABBgAE6AAcgAEEAKAKYiQEiAUEYdCABQYD+A3FBCHRyIAFBCHZBgP4DcSABQRh2cnI2AAggAEEAKAKUiQEiAUEYdCABQYD+A3FBCHRyIAFBCHZBgP4DcSABQRh2cnI2AAwgAEEHakEBEAMCQEEAKAKUiQFB+ANxQcADRg0AA0AgAEEAOgAHIABBB2pBARADQQAoApSJAUH4A3FBwANHDQALCyAAQQhqQQgQA0EAQQAoAoCJASIBQRh0IAFBgP4DcUEIdHIgAUEIdkGA/gNxIAFBGHZycjYCgAlBAEEAKAKEiQEiAUEYdCABQYD+A3FBCHRyIAFBCHZBgP4DcSABQRh2cnI2AoQJQQBBACgCiIkBIgFBGHQgAUGA/gNxQQh0ciABQQh2QYD+A3EgAUEYdnJyNgKICUEAQQAoAoyJASIBQRh0IAFBgP4DcUEIdHIgAUEIdkGA/gNxIAFBGHZycjYCjAlBAEEAKAKQiQEiAUEYdCABQYD+A3FBCHRyIAFBCHZBgP4DcSABQRh2cnI2ApAJIABBEGokAAsGAEGAiQELQwBBAEL+uevF6Y6VmRA3AoiJAUEAQoHGlLqW8ermbzcCgIkBQQBC8MPLngw3ApCJAUEAQQA2ApiJAUGACSAAEAMQBQsLCwEAQYAICwRcAAAA",hash:"6b530c24"};function qN(){return LN(HN,20).then(e=>{e.init();const t={init:()=>(e.init(),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),save:()=>e.save(),load:n=>(e.load(n),t),blockSize:64,digestSize:20};return t})}new AN,new AN,new AN;var ON={name:"sha256",data:"AGFzbQEAAAABEQRgAAF/YAF/AGAAAGACf38AAwgHAAEBAQIAAwUEAQECAgYOAn8BQfCJBQt/AEGACAsHcAgGbWVtb3J5AgAOSGFzaF9HZXRCdWZmZXIAAAlIYXNoX0luaXQAAQtIYXNoX1VwZGF0ZQACCkhhc2hfRmluYWwABA1IYXNoX0dldFN0YXRlAAUOSGFzaF9DYWxjdWxhdGUABgpTVEFURV9TSVpFAwEKnEoHBQBBgAkLnQEAQQBCADcDwIkBQQBBHEEgIABB4AFGIgAbNgLoiQFBAEKnn+anxvST/b5/Qquzj/yRo7Pw2wAgABs3A+CJAUEAQrGWgP6fooWs6ABC/6S5iMWR2oKbfyAAGzcD2IkBQQBCl7rDg5Onlod3QvLmu+Ojp/2npX8gABs3A9CJAUEAQti9loj8oLW+NkLnzKfQ1tDrs7t/IAAbNwPIiQEL7wICAX4Gf0EAQQApA8CJASIBIACtfDcDwIkBAkACQAJAIAGnQT9xIgINAEGACSEDDAELAkBBwAAgAmsiBCAAIAQgAEkbIgNFDQAgA0EDcSEFIAJBgIkBaiEGQQAhAgJAIANBBEkNACADQfwAcSEHQQAhAgNAIAYgAmoiAyACQYAJai0AADoAACADQQFqIAJBgQlqLQAAOgAAIANBAmogAkGCCWotAAA6AAAgA0EDaiACQYMJai0AADoAACAHIAJBBGoiAkcNAAsLIAVFDQADQCAGIAJqIAJBgAlqLQAAOgAAIAJBAWohAiAFQX9qIgUNAAsLIAAgBEkNAUGAiQEQAyAAIARrIQAgBEGACWohAwsCQCAAQcAASQ0AA0AgAxADIANBwABqIQMgAEFAaiIAQT9LDQALCyAARQ0AQQAhAkEAIQUDQCACQYCJAWogAyACai0AADoAACACQQFqIQIgACAFQQFqIgVB/wFxSw0ACwsLoz4BRX9BACAAKAI8IgFBGHQgAUGA/gNxQQh0ciABQQh2QYD+A3EgAUEYdnJyIgFBGXcgAUEOd3MgAUEDdnMgACgCOCICQRh0IAJBgP4DcUEIdHIgAkEIdkGA/gNxIAJBGHZyciICaiAAKAIgIgNBGHQgA0GA/gNxQQh0ciADQQh2QYD+A3EgA0EYdnJyIgRBGXcgBEEOd3MgBEEDdnMgACgCHCIDQRh0IANBgP4DcUEIdHIgA0EIdkGA/gNxIANBGHZyciIFaiAAKAIEIgNBGHQgA0GA/gNxQQh0ciADQQh2QYD+A3EgA0EYdnJyIgZBGXcgBkEOd3MgBkEDdnMgACgCACIDQRh0IANBgP4DcUEIdHIgA0EIdkGA/gNxIANBGHZyciIHaiAAKAIkIgNBGHQgA0GA/gNxQQh0ciADQQh2QYD+A3EgA0EYdnJyIghqIAJBD3cgAkENd3MgAkEKdnNqIgNqIAAoAhgiCUEYdCAJQYD+A3FBCHRyIAlBCHZBgP4DcSAJQRh2cnIiCkEZdyAKQQ53cyAKQQN2cyAAKAIUIglBGHQgCUGA/gNxQQh0ciAJQQh2QYD+A3EgCUEYdnJyIgtqIAJqIAAoAhAiCUEYdCAJQYD+A3FBCHRyIAlBCHZBgP4DcSAJQRh2cnIiDEEZdyAMQQ53cyAMQQN2cyAAKAIMIglBGHQgCUGA/gNxQQh0ciAJQQh2QYD+A3EgCUEYdnJyIg1qIAAoAjAiCUEYdCAJQYD+A3FBCHRyIAlBCHZBgP4DcSAJQRh2cnIiDmogACgCCCIJQRh0IAlBgP4DcUEIdHIgCUEIdkGA/gNxIAlBGHZyciIPQRl3IA9BDndzIA9BA3ZzIAZqIAAoAigiCUEYdCAJQYD+A3FBCHRyIAlBCHZBgP4DcSAJQRh2cnIiEGogAUEPdyABQQ13cyABQQp2c2oiCUEPdyAJQQ13cyAJQQp2c2oiEUEPdyARQQ13cyARQQp2c2oiEkEPdyASQQ13cyASQQp2c2oiE2ogACgCNCIUQRh0IBRBgP4DcUEIdHIgFEEIdkGA/gNxIBRBGHZyciIVQRl3IBVBDndzIBVBA3ZzIA5qIBJqIAAoAiwiAEEYdCAAQYD+A3FBCHRyIABBCHZBgP4DcSAAQRh2cnIiFkEZdyAWQQ53cyAWQQN2cyAQaiARaiAIQRl3IAhBDndzIAhBA3ZzIARqIAlqIAVBGXcgBUEOd3MgBUEDdnMgCmogAWogC0EZdyALQQ53cyALQQN2cyAMaiAVaiANQRl3IA1BDndzIA1BA3ZzIA9qIBZqIANBD3cgA0ENd3MgA0EKdnNqIhRBD3cgFEENd3MgFEEKdnNqIhdBD3cgF0ENd3MgF0EKdnNqIhhBD3cgGEENd3MgGEEKdnNqIhlBD3cgGUENd3MgGUEKdnNqIhpBD3cgGkENd3MgGkEKdnNqIhtBD3cgG0ENd3MgG0EKdnNqIhxBGXcgHEEOd3MgHEEDdnMgAkEZdyACQQ53cyACQQN2cyAVaiAYaiAOQRl3IA5BDndzIA5BA3ZzIBZqIBdqIBBBGXcgEEEOd3MgEEEDdnMgCGogFGogE0EPdyATQQ13cyATQQp2c2oiHUEPdyAdQQ13cyAdQQp2c2oiHkEPdyAeQQ13cyAeQQp2c2oiH2ogE0EZdyATQQ53cyATQQN2cyAYaiADQRl3IANBDndzIANBA3ZzIAFqIBlqIB9BD3cgH0ENd3MgH0EKdnNqIiBqIBJBGXcgEkEOd3MgEkEDdnMgF2ogH2ogEUEZdyARQQ53cyARQQN2cyAUaiAeaiAJQRl3IAlBDndzIAlBA3ZzIANqIB1qIBxBD3cgHEENd3MgHEEKdnNqIiFBD3cgIUENd3MgIUEKdnNqIiJBD3cgIkENd3MgIkEKdnNqIiNBD3cgI0ENd3MgI0EKdnNqIiRqIBtBGXcgG0EOd3MgG0EDdnMgHmogI2ogGkEZdyAaQQ53cyAaQQN2cyAdaiAiaiAZQRl3IBlBDndzIBlBA3ZzIBNqICFqIBhBGXcgGEEOd3MgGEEDdnMgEmogHGogF0EZdyAXQQ53cyAXQQN2cyARaiAbaiAUQRl3IBRBDndzIBRBA3ZzIAlqIBpqICBBD3cgIEENd3MgIEEKdnNqIiVBD3cgJUENd3MgJUEKdnNqIiZBD3cgJkENd3MgJkEKdnNqIidBD3cgJ0ENd3MgJ0EKdnNqIihBD3cgKEENd3MgKEEKdnNqIilBD3cgKUENd3MgKUEKdnNqIipBD3cgKkENd3MgKkEKdnNqIitBGXcgK0EOd3MgK0EDdnMgH0EZdyAfQQ53cyAfQQN2cyAbaiAnaiAeQRl3IB5BDndzIB5BA3ZzIBpqICZqIB1BGXcgHUEOd3MgHUEDdnMgGWogJWogJEEPdyAkQQ13cyAkQQp2c2oiLEEPdyAsQQ13cyAsQQp2c2oiLUEPdyAtQQ13cyAtQQp2c2oiLmogJEEZdyAkQQ53cyAkQQN2cyAnaiAgQRl3ICBBDndzICBBA3ZzIBxqIChqIC5BD3cgLkENd3MgLkEKdnNqIi9qICNBGXcgI0EOd3MgI0EDdnMgJmogLmogIkEZdyAiQQ53cyAiQQN2cyAlaiAtaiAhQRl3ICFBDndzICFBA3ZzICBqICxqICtBD3cgK0ENd3MgK0EKdnNqIjBBD3cgMEENd3MgMEEKdnNqIjFBD3cgMUENd3MgMUEKdnNqIjJBD3cgMkENd3MgMkEKdnNqIjNqICpBGXcgKkEOd3MgKkEDdnMgLWogMmogKUEZdyApQQ53cyApQQN2cyAsaiAxaiAoQRl3IChBDndzIChBA3ZzICRqIDBqICdBGXcgJ0EOd3MgJ0EDdnMgI2ogK2ogJkEZdyAmQQ53cyAmQQN2cyAiaiAqaiAlQRl3ICVBDndzICVBA3ZzICFqIClqIC9BD3cgL0ENd3MgL0EKdnNqIjRBD3cgNEENd3MgNEEKdnNqIjVBD3cgNUENd3MgNUEKdnNqIjZBD3cgNkENd3MgNkEKdnNqIjdBD3cgN0ENd3MgN0EKdnNqIjhBD3cgOEENd3MgOEEKdnNqIjlBD3cgOUENd3MgOUEKdnNqIjogOCA0IC4gLCAhIBsgGSADIA4gBEEAKALYiQEiO0EadyA7QRV3cyA7QQd3c0EAKALkiQEiPGpBACgC4IkBIj1BACgC3IkBIj5zIDtxID1zaiAHakGY36iUBGoiB0EAKALUiQEiP2oiACAMaiA7IA1qID4gD2ogPSAGaiAAID4gO3NxID5zaiAAQRp3IABBFXdzIABBB3dzakGRid2JB2oiQEEAKALQiQEiQWoiDCAAIDtzcSA7c2ogDEEadyAMQRV3cyAMQQd3c2pBz/eDrntqIkJBACgCzIkBIkNqIg0gDCAAc3EgAHNqIA1BGncgDUEVd3MgDUEHd3NqQaW3181+aiJEQQAoAsiJASIAaiIPIA0gDHNxIAxzaiAPQRp3IA9BFXdzIA9BB3dzakHbhNvKA2oiRSBBIEMgAHNxIEMgAHFzIABBHncgAEETd3MgAEEKd3NqIAdqIgZqIgdqIAUgD2ogCiANaiALIAxqIAcgDyANc3EgDXNqIAdBGncgB0EVd3MgB0EHd3NqQfGjxM8FaiIKIAYgAHMgQ3EgBiAAcXMgBkEedyAGQRN3cyAGQQp3c2ogQGoiDGoiBCAHIA9zcSAPc2ogBEEadyAEQRV3cyAEQQd3c2pBpIX+kXlqIgsgDCAGcyAAcSAMIAZxcyAMQR53IAxBE3dzIAxBCndzaiBCaiINaiIPIAQgB3NxIAdzaiAPQRp3IA9BFXdzIA9BB3dzakHVvfHYemoiQCANIAxzIAZxIA0gDHFzIA1BHncgDUETd3MgDUEKd3NqIERqIgZqIgcgDyAEc3EgBHNqIAdBGncgB0EVd3MgB0EHd3NqQZjVnsB9aiJCIAYgDXMgDHEgBiANcXMgBkEedyAGQRN3cyAGQQp3c2ogRWoiDGoiBWogFiAHaiAQIA9qIAggBGogBSAHIA9zcSAPc2ogBUEadyAFQRV3cyAFQQd3c2pBgbaNlAFqIgggDCAGcyANcSAMIAZxcyAMQR53IAxBE3dzIAxBCndzaiAKaiINaiIPIAUgB3NxIAdzaiAPQRp3IA9BFXdzIA9BB3dzakG+i8ahAmoiDiANIAxzIAZxIA0gDHFzIA1BHncgDUETd3MgDUEKd3NqIAtqIgZqIgcgDyAFc3EgBXNqIAdBGncgB0EVd3MgB0EHd3NqQcP7sagFaiIQIAYgDXMgDHEgBiANcXMgBkEedyAGQRN3cyAGQQp3c2ogQGoiDGoiBCAHIA9zcSAPc2ogBEEadyAEQRV3cyAEQQd3c2pB9Lr5lQdqIhYgDCAGcyANcSAMIAZxcyAMQR53IAxBE3dzIAxBCndzaiBCaiINaiIFaiABIARqIAIgB2ogFSAPaiAFIAQgB3NxIAdzaiAFQRp3IAVBFXdzIAVBB3dzakH+4/qGeGoiByANIAxzIAZxIA0gDHFzIA1BHncgDUETd3MgDUEKd3NqIAhqIgFqIgYgBSAEc3EgBHNqIAZBGncgBkEVd3MgBkEHd3NqQaeN8N55aiIEIAEgDXMgDHEgASANcXMgAUEedyABQRN3cyABQQp3c2ogDmoiAmoiDCAGIAVzcSAFc2ogDEEadyAMQRV3cyAMQQd3c2pB9OLvjHxqIgUgAiABcyANcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAQaiIDaiINIAwgBnNxIAZzaiANQRp3IA1BFXdzIA1BB3dzakHB0+2kfmoiCCADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBZqIgFqIg8gF2ogESANaiAUIAxqIAkgBmogDyANIAxzcSAMc2ogD0EadyAPQRV3cyAPQQd3c2pBho/5/X5qIgYgASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAHaiICaiIJIA8gDXNxIA1zaiAJQRp3IAlBFXdzIAlBB3dzakHGu4b+AGoiDCACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIARqIgNqIhEgCSAPc3EgD3NqIBFBGncgEUEVd3MgEUEHd3NqQczDsqACaiINIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogBWoiAWoiFCARIAlzcSAJc2ogFEEadyAUQRV3cyAUQQd3c2pB79ik7wJqIg8gASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAIaiICaiIXaiATIBRqIBggEWogEiAJaiAXIBQgEXNxIBFzaiAXQRp3IBdBFXdzIBdBB3dzakGqidLTBGoiGCACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIAZqIgNqIgkgFyAUc3EgFHNqIAlBGncgCUEVd3MgCUEHd3NqQdzTwuUFaiIUIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogDGoiAWoiESAJIBdzcSAXc2ogEUEadyARQRV3cyARQQd3c2pB2pHmtwdqIhcgASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiANaiICaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakHSovnBeWoiGSACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIA9qIgNqIhNqIB4gEmogGiARaiAdIAlqIBMgEiARc3EgEXNqIBNBGncgE0EVd3MgE0EHd3NqQe2Mx8F6aiIaIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogGGoiAWoiCSATIBJzcSASc2ogCUEadyAJQRV3cyAJQQd3c2pByM+MgHtqIhggASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAUaiICaiIRIAkgE3NxIBNzaiARQRp3IBFBFXdzIBFBB3dzakHH/+X6e2oiFCACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIBdqIgNqIhIgESAJc3EgCXNqIBJBGncgEkEVd3MgEkEHd3NqQfOXgLd8aiIXIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogGWoiAWoiE2ogICASaiAcIBFqIB8gCWogEyASIBFzcSARc2ogE0EadyATQRV3cyATQQd3c2pBx6KerX1qIhkgASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAaaiICaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakHRxqk2aiIaIAIgAXMgA3EgAiABcXMgAkEedyACQRN3cyACQQp3c2ogGGoiA2oiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pB59KkoQFqIhggAyACcyABcSADIAJxcyADQR53IANBE3dzIANBCndzaiAUaiIBaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakGFldy9AmoiFCABIANzIAJxIAEgA3FzIAFBHncgAUETd3MgAUEKd3NqIBdqIgJqIhMgI2ogJiASaiAiIBFqICUgCWogEyASIBFzcSARc2ogE0EadyATQRV3cyATQQd3c2pBuMLs8AJqIhcgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAZaiIDaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakH827HpBGoiGSADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBpqIgFqIhEgCSATc3EgE3NqIBFBGncgEUEVd3MgEUEHd3NqQZOa4JkFaiIaIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGGoiAmoiEiARIAlzcSAJc2ogEkEadyASQRV3cyASQQd3c2pB1OapqAZqIhggAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAUaiIDaiITaiAoIBJqICQgEWogJyAJaiATIBIgEXNxIBFzaiATQRp3IBNBFXdzIBNBB3dzakG7laizB2oiFCADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBdqIgFqIgkgEyASc3EgEnNqIAlBGncgCUEVd3MgCUEHd3NqQa6Si454aiIXIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGWoiAmoiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pBhdnIk3lqIhkgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAaaiIDaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakGh0f+VemoiGiADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBhqIgFqIhNqICogEmogLSARaiApIAlqIBMgEiARc3EgEXNqIBNBGncgE0EVd3MgE0EHd3NqQcvM6cB6aiIYIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogFGoiAmoiCSATIBJzcSASc2ogCUEadyAJQRV3cyAJQQd3c2pB8JauknxqIhQgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAXaiIDaiIRIAkgE3NxIBNzaiARQRp3IBFBFXdzIBFBB3dzakGjo7G7fGoiFyADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBlqIgFqIhIgESAJc3EgCXNqIBJBGncgEkEVd3MgEkEHd3NqQZnQy4x9aiIZIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGmoiAmoiE2ogMCASaiAvIBFqICsgCWogEyASIBFzcSARc2ogE0EadyATQRV3cyATQQd3c2pBpIzktH1qIhogAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAYaiIDaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakGF67igf2oiGCADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBRqIgFqIhEgCSATc3EgE3NqIBFBGncgEUEVd3MgEUEHd3NqQfDAqoMBaiIUIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogF2oiAmoiEiARIAlzcSAJc2ogEkEadyASQRV3cyASQQd3c2pBloKTzQFqIhcgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAZaiIDaiITIDZqIDIgEmogNSARaiAxIAlqIBMgEiARc3EgEXNqIBNBGncgE0EVd3MgE0EHd3NqQYjY3fEBaiIZIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogGmoiAWoiCSATIBJzcSASc2ogCUEadyAJQRV3cyAJQQd3c2pBzO6hugJqIhogASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAYaiICaiIRIAkgE3NxIBNzaiARQRp3IBFBFXdzIBFBB3dzakG1+cKlA2oiGCACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIBRqIgNqIhIgESAJc3EgCXNqIBJBGncgEkEVd3MgEkEHd3NqQbOZ8MgDaiIUIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogF2oiAWoiE2ogLEEZdyAsQQ53cyAsQQN2cyAoaiA0aiAzQQ93IDNBDXdzIDNBCnZzaiIXIBJqIDcgEWogMyAJaiATIBIgEXNxIBFzaiATQRp3IBNBFXdzIBNBB3dzakHK1OL2BGoiGyABIANzIAJxIAEgA3FzIAFBHncgAUETd3MgAUEKd3NqIBlqIgJqIgkgEyASc3EgEnNqIAlBGncgCUEVd3MgCUEHd3NqQc+U89wFaiIZIAIgAXMgA3EgAiABcXMgAkEedyACQRN3cyACQQp3c2ogGmoiA2oiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pB89+5wQZqIhogAyACcyABcSADIAJxcyADQR53IANBE3dzIANBCndzaiAYaiIBaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakHuhb6kB2oiHCABIANzIAJxIAEgA3FzIAFBHncgAUETd3MgAUEKd3NqIBRqIgJqIhNqIC5BGXcgLkEOd3MgLkEDdnMgKmogNmogLUEZdyAtQQ53cyAtQQN2cyApaiA1aiAXQQ93IBdBDXdzIBdBCnZzaiIUQQ93IBRBDXdzIBRBCnZzaiIYIBJqIDkgEWogFCAJaiATIBIgEXNxIBFzaiATQRp3IBNBFXdzIBNBB3dzakHvxpXFB2oiCSACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIBtqIgNqIhEgEyASc3EgEnNqIBFBGncgEUEVd3MgEUEHd3NqQZTwoaZ4aiIbIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogGWoiAWoiEiARIBNzcSATc2ogEkEadyASQRV3cyASQQd3c2pBiISc5nhqIhkgASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAaaiICaiITIBIgEXNxIBFzaiATQRp3IBNBFXdzIBNBB3dzakH6//uFeWoiGiACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIBxqIgNqIhQgPGo2AuSJAUEAID8gAyACcyABcSADIAJxcyADQR53IANBE3dzIANBCndzaiAJaiIBIANzIAJxIAEgA3FzIAFBHncgAUETd3MgAUEKd3NqIBtqIgIgAXMgA3EgAiABcXMgAkEedyACQRN3cyACQQp3c2ogGWoiAyACcyABcSADIAJxcyADQR53IANBE3dzIANBCndzaiAaaiIJajYC1IkBQQAgPSAvQRl3IC9BDndzIC9BA3ZzICtqIDdqIBhBD3cgGEENd3MgGEEKdnNqIhggEWogFCATIBJzcSASc2ogFEEadyAUQRV3cyAUQQd3c2pB69nBonpqIhkgAWoiEWo2AuCJAUEAIEEgCSADcyACcSAJIANxcyAJQR53IAlBE3dzIAlBCndzaiAZaiIBajYC0IkBQQAgPiAwQRl3IDBBDndzIDBBA3ZzIC9qIBdqIDpBD3cgOkENd3MgOkEKdnNqIBJqIBEgFCATc3EgE3NqIBFBGncgEUEVd3MgEUEHd3NqQffH5vd7aiIXIAJqIhJqNgLciQFBACBDIAEgCXMgA3EgASAJcXMgAUEedyABQRN3cyABQQp3c2ogF2oiAmo2AsyJAUEAIDsgNEEZdyA0QQ53cyA0QQN2cyAwaiA4aiAYQQ93IBhBDXdzIBhBCnZzaiATaiASIBEgFHNxIBRzaiASQRp3IBJBFXdzIBJBB3dzakHy8cWzfGoiESADamo2AtiJAUEAIAAgAiABcyAJcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiARamo2AsiJAQuyBgIEfwF+QQAoAsCJASIAQQJ2QQ9xIgFBAnRBgIkBaiICIAIoAgBBfyAAQQN0IgB0QX9zcUGAASAAdHM2AgACQAJAAkAgAUEOSQ0AAkAgAUEORw0AQQBBADYCvIkBC0GAiQEQA0EAIQIMAQsgAUENRg0BIAFBAWohAgsgAiEDAkBBBiACa0EHcSIARQ0AIAIgAGohAyACQQJ0QYCJAWohAQNAIAFBADYCACABQQRqIQEgAEF/aiIADQALCyACQXlqQQdJDQAgA0ECdCEBA0AgAUGYiQFqQgA3AgAgAUGQiQFqQgA3AgAgAUGIiQFqQgA3AgAgAUGAiQFqQgA3AgAgAUEgaiIBQThHDQALC0EAIQFBAEEAKQPAiQEiBKciAEEbdCAAQQt0QYCA/AdxciAAQQV2QYD+A3EgAEEDdEEYdnJyNgK8iQFBACAEQh2IpyIAQRh0IABBgP4DcUEIdHIgAEEIdkGA/gNxIABBGHZycjYCuIkBQYCJARADQQBBACgC5IkBIgBBGHQgAEGA/gNxQQh0ciAAQQh2QYD+A3EgAEEYdnJyNgLkiQFBAEEAKALgiQEiAEEYdCAAQYD+A3FBCHRyIABBCHZBgP4DcSAAQRh2cnI2AuCJAUEAQQAoAtyJASIAQRh0IABBgP4DcUEIdHIgAEEIdkGA/gNxIABBGHZycjYC3IkBQQBBACgC2IkBIgBBGHQgAEGA/gNxQQh0ciAAQQh2QYD+A3EgAEEYdnJyNgLYiQFBAEEAKALUiQEiAEEYdCAAQYD+A3FBCHRyIABBCHZBgP4DcSAAQRh2cnI2AtSJAUEAQQAoAtCJASIAQRh0IABBgP4DcUEIdHIgAEEIdkGA/gNxIABBGHZycjYC0IkBQQBBACgCzIkBIgBBGHQgAEGA/gNxQQh0ciAAQQh2QYD+A3EgAEEYdnJyNgLMiQFBAEEAKALIiQEiAEEYdCAAQYD+A3FBCHRyIABBCHZBgP4DcSAAQRh2cnI2AsiJAQJAQQAoAuiJASICRQ0AQQAhAANAIAFBgAlqIAFByIkBai0AADoAACABQQFqIQEgAiAAQQFqIgBB/wFxSw0ACwsLBgBBgIkBC6MBAEEAQgA3A8CJAUEAQRxBICABQeABRiIBGzYC6IkBQQBCp5/mp8b0k/2+f0Krs4/8kaOz8NsAIAEbNwPgiQFBAEKxloD+n6KFrOgAQv+kuYjFkdqCm38gARs3A9iJAUEAQpe6w4OTp5aHd0Ly5rvjo6f9p6V/IAEbNwPQiQFBAELYvZaI/KC1vjZC58yn0NbQ67O7fyABGzcDyIkBIAAQAhAECwsLAQBBgAgLBHAAAAA=",hash:"8c18dd94"};function PN(){return LN(ON,32).then(e=>{e.init(256);const t={init:()=>(e.init(256),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),save:()=>e.save(),load:n=>(e.load(n),t),blockSize:64,digestSize:32};return t})}new AN,new AN;var $N={name:"sha512",data:"AGFzbQEAAAABEQRgAAF/YAF/AGAAAGACf38AAwgHAAEBAQIAAwUEAQECAgYOAn8BQdCKBQt/AEGACAsHcAgGbWVtb3J5AgAOSGFzaF9HZXRCdWZmZXIAAAlIYXNoX0luaXQAAQtIYXNoX1VwZGF0ZQACCkhhc2hfRmluYWwABA1IYXNoX0dldFN0YXRlAAUOSGFzaF9DYWxjdWxhdGUABgpTVEFURV9TSVpFAwEKlWgHBQBBgAkLmwIAQQBCADcDgIoBQQBBMEHAACAAQYADRiIAGzYCyIoBQQBCpJ/p99uD0trHAEL5wvibkaOz8NsAIAAbNwPAigFBAEKnn+an1sGLhltC6/qG2r+19sEfIAAbNwO4igFBAEKRquDC9tCS2o5/Qp/Y+dnCkdqCm38gABs3A7CKAUEAQrGWgP7/zMmZ5wBC0YWa7/rPlIfRACAAGzcDqIoBQQBCubK5uI+b+5cVQvHt9Pilp/2npX8gABs3A6CKAUEAQpe6w4Ojq8CskX9Cq/DT9K/uvLc8IAAbNwOYigFBAEKHqvOzo6WKzeIAQrvOqqbY0Ouzu38gABs3A5CKAUEAQti9lojcq+fdS0KIkvOd/8z5hOoAIAAbNwOIigEL8gICAX4Gf0EAQQApA4CKASIBIACtfDcDgIoBAkACQAJAIAGnQf8AcSICDQBBgAkhAwwBCwJAQYABIAJrIgQgACAEIABJGyIDRQ0AIANBA3EhBSACQYCJAWohBkEAIQICQCADQQRJDQAgA0H8AXEhB0EAIQIDQCAGIAJqIgMgAkGACWotAAA6AAAgA0EBaiACQYEJai0AADoAACADQQJqIAJBgglqLQAAOgAAIANBA2ogAkGDCWotAAA6AAAgByACQQRqIgJHDQALCyAFRQ0AA0AgBiACaiACQYAJai0AADoAACACQQFqIQIgBUF/aiIFDQALCyAAIARJDQFBgIkBEAMgACAEayEAIARBgAlqIQMLAkAgAEGAAUkNAANAIAMQAyADQYABaiEDIABBgH9qIgBB/wBLDQALCyAARQ0AQQAhAkEAIQUDQCACQYCJAWogAyACai0AADoAACACQQFqIQIgACAFQQFqIgVB/wFxSw0ACwsL3FYBVn5BACAAKQMIIgFCOIYgAUKA/gODQiiGhCABQoCA/AeDQhiGIAFCgICA+A+DQgiGhIQgAUIIiEKAgID4D4MgAUIYiEKAgPwHg4QgAUIoiEKA/gODIAFCOIiEhIQiAkI/iSACQjiJhSACQgeIhSAAKQMAIgFCOIYgAUKA/gODQiiGhCABQoCA/AeDQhiGIAFCgICA+A+DQgiGhIQgAUIIiEKAgID4D4MgAUIYiEKAgPwHg4QgAUIoiEKA/gODIAFCOIiEhIQiA3wgACkDSCIBQjiGIAFCgP4Dg0IohoQgAUKAgPwHg0IYhiABQoCAgPgPg0IIhoSEIAFCCIhCgICA+A+DIAFCGIhCgID8B4OEIAFCKIhCgP4DgyABQjiIhISEIgR8IAApA3AiAUI4hiABQoD+A4NCKIaEIAFCgID8B4NCGIYgAUKAgID4D4NCCIaEhCABQgiIQoCAgPgPgyABQhiIQoCA/AeDhCABQiiIQoD+A4MgAUI4iISEhCIFQi2JIAVCA4mFIAVCBoiFfCIGQj+JIAZCOImFIAZCB4iFIAApA3giAUI4hiABQoD+A4NCKIaEIAFCgID8B4NCGIYgAUKAgID4D4NCCIaEhCABQgiIQoCAgPgPgyABQhiIQoCA/AeDhCABQiiIQoD+A4MgAUI4iISEhCIHfCAEQj+JIARCOImFIARCB4iFIAApA0AiAUI4hiABQoD+A4NCKIaEIAFCgID8B4NCGIYgAUKAgID4D4NCCIaEhCABQgiIQoCAgPgPgyABQhiIQoCA/AeDhCABQiiIQoD+A4MgAUI4iISEhCIIfCAAKQMQIgFCOIYgAUKA/gODQiiGhCABQoCA/AeDQhiGIAFCgICA+A+DQgiGhIQgAUIIiEKAgID4D4MgAUIYiEKAgPwHg4QgAUIoiEKA/gODIAFCOIiEhIQiCUI/iSAJQjiJhSAJQgeIhSACfCAAKQNQIgFCOIYgAUKA/gODQiiGhCABQoCA/AeDQhiGIAFCgICA+A+DQgiGhIQgAUIIiEKAgID4D4MgAUIYiEKAgPwHg4QgAUIoiEKA/gODIAFCOIiEhIQiCnwgB0ItiSAHQgOJhSAHQgaIhXwiC3wgACkDOCIBQjiGIAFCgP4Dg0IohoQgAUKAgPwHg0IYhiABQoCAgPgPg0IIhoSEIAFCCIhCgICA+A+DIAFCGIhCgID8B4OEIAFCKIhCgP4DgyABQjiIhISEIgxCP4kgDEI4iYUgDEIHiIUgACkDMCIBQjiGIAFCgP4Dg0IohoQgAUKAgPwHg0IYhiABQoCAgPgPg0IIhoSEIAFCCIhCgICA+A+DIAFCGIhCgID8B4OEIAFCKIhCgP4DgyABQjiIhISEIg18IAd8IAApAygiAUI4hiABQoD+A4NCKIaEIAFCgID8B4NCGIYgAUKAgID4D4NCCIaEhCABQgiIQoCAgPgPgyABQhiIQoCA/AeDhCABQiiIQoD+A4MgAUI4iISEhCIOQj+JIA5COImFIA5CB4iFIAApAyAiAUI4hiABQoD+A4NCKIaEIAFCgID8B4NCGIYgAUKAgID4D4NCCIaEhCABQgiIQoCAgPgPgyABQhiIQoCA/AeDhCABQiiIQoD+A4MgAUI4iISEhCIPfCAAKQNoIgFCOIYgAUKA/gODQiiGhCABQoCA/AeDQhiGIAFCgICA+A+DQgiGhIQgAUIIiEKAgID4D4MgAUIYiEKAgPwHg4QgAUIoiEKA/gODIAFCOIiEhIQiEHwgACkDGCIBQjiGIAFCgP4Dg0IohoQgAUKAgPwHg0IYhiABQoCAgPgPg0IIhoSEIAFCCIhCgICA+A+DIAFCGIhCgID8B4OEIAFCKIhCgP4DgyABQjiIhISEIhFCP4kgEUI4iYUgEUIHiIUgCXwgACkDWCIBQjiGIAFCgP4Dg0IohoQgAUKAgPwHg0IYhiABQoCAgPgPg0IIhoSEIAFCCIhCgICA+A+DIAFCGIhCgID8B4OEIAFCKIhCgP4DgyABQjiIhISEIhJ8IAZCLYkgBkIDiYUgBkIGiIV8IhNCLYkgE0IDiYUgE0IGiIV8IhRCLYkgFEIDiYUgFEIGiIV8IhVCLYkgFUIDiYUgFUIGiIV8IhZ8IAVCP4kgBUI4iYUgBUIHiIUgEHwgFXwgACkDYCIBQjiGIAFCgP4Dg0IohoQgAUKAgPwHg0IYhiABQoCAgPgPg0IIhoSEIAFCCIhCgICA+A+DIAFCGIhCgID8B4OEIAFCKIhCgP4DgyABQjiIhISEIhdCP4kgF0I4iYUgF0IHiIUgEnwgFHwgCkI/iSAKQjiJhSAKQgeIhSAEfCATfCAIQj+JIAhCOImFIAhCB4iFIAx8IAZ8IA1CP4kgDUI4iYUgDUIHiIUgDnwgBXwgD0I/iSAPQjiJhSAPQgeIhSARfCAXfCALQi2JIAtCA4mFIAtCBoiFfCIYQi2JIBhCA4mFIBhCBoiFfCIZQi2JIBlCA4mFIBlCBoiFfCIaQi2JIBpCA4mFIBpCBoiFfCIbQi2JIBtCA4mFIBtCBoiFfCIcQi2JIBxCA4mFIBxCBoiFfCIdQi2JIB1CA4mFIB1CBoiFfCIeQj+JIB5COImFIB5CB4iFIAdCP4kgB0I4iYUgB0IHiIUgBXwgGnwgEEI/iSAQQjiJhSAQQgeIhSAXfCAZfCASQj+JIBJCOImFIBJCB4iFIAp8IBh8IBZCLYkgFkIDiYUgFkIGiIV8Ih9CLYkgH0IDiYUgH0IGiIV8IiBCLYkgIEIDiYUgIEIGiIV8IiF8IBZCP4kgFkI4iYUgFkIHiIUgGnwgC0I/iSALQjiJhSALQgeIhSAGfCAbfCAhQi2JICFCA4mFICFCBoiFfCIifCAVQj+JIBVCOImFIBVCB4iFIBl8ICF8IBRCP4kgFEI4iYUgFEIHiIUgGHwgIHwgE0I/iSATQjiJhSATQgeIhSALfCAffCAeQi2JIB5CA4mFIB5CBoiFfCIjQi2JICNCA4mFICNCBoiFfCIkQi2JICRCA4mFICRCBoiFfCIlQi2JICVCA4mFICVCBoiFfCImfCAdQj+JIB1COImFIB1CB4iFICB8ICV8IBxCP4kgHEI4iYUgHEIHiIUgH3wgJHwgG0I/iSAbQjiJhSAbQgeIhSAWfCAjfCAaQj+JIBpCOImFIBpCB4iFIBV8IB58IBlCP4kgGUI4iYUgGUIHiIUgFHwgHXwgGEI/iSAYQjiJhSAYQgeIhSATfCAcfCAiQi2JICJCA4mFICJCBoiFfCInQi2JICdCA4mFICdCBoiFfCIoQi2JIChCA4mFIChCBoiFfCIpQi2JIClCA4mFIClCBoiFfCIqQi2JICpCA4mFICpCBoiFfCIrQi2JICtCA4mFICtCBoiFfCIsQi2JICxCA4mFICxCBoiFfCItQj+JIC1COImFIC1CB4iFICFCP4kgIUI4iYUgIUIHiIUgHXwgKXwgIEI/iSAgQjiJhSAgQgeIhSAcfCAofCAfQj+JIB9COImFIB9CB4iFIBt8ICd8ICZCLYkgJkIDiYUgJkIGiIV8Ii5CLYkgLkIDiYUgLkIGiIV8Ii9CLYkgL0IDiYUgL0IGiIV8IjB8ICZCP4kgJkI4iYUgJkIHiIUgKXwgIkI/iSAiQjiJhSAiQgeIhSAefCAqfCAwQi2JIDBCA4mFIDBCBoiFfCIxfCAlQj+JICVCOImFICVCB4iFICh8IDB8ICRCP4kgJEI4iYUgJEIHiIUgJ3wgL3wgI0I/iSAjQjiJhSAjQgeIhSAifCAufCAtQi2JIC1CA4mFIC1CBoiFfCIyQi2JIDJCA4mFIDJCBoiFfCIzQi2JIDNCA4mFIDNCBoiFfCI0Qi2JIDRCA4mFIDRCBoiFfCI1fCAsQj+JICxCOImFICxCB4iFIC98IDR8ICtCP4kgK0I4iYUgK0IHiIUgLnwgM3wgKkI/iSAqQjiJhSAqQgeIhSAmfCAyfCApQj+JIClCOImFIClCB4iFICV8IC18IChCP4kgKEI4iYUgKEIHiIUgJHwgLHwgJ0I/iSAnQjiJhSAnQgeIhSAjfCArfCAxQi2JIDFCA4mFIDFCBoiFfCI2Qi2JIDZCA4mFIDZCBoiFfCI3Qi2JIDdCA4mFIDdCBoiFfCI4Qi2JIDhCA4mFIDhCBoiFfCI5Qi2JIDlCA4mFIDlCBoiFfCI6Qi2JIDpCA4mFIDpCBoiFfCI7Qi2JIDtCA4mFIDtCBoiFfCI8Qj+JIDxCOImFIDxCB4iFIDBCP4kgMEI4iYUgMEIHiIUgLHwgOHwgL0I/iSAvQjiJhSAvQgeIhSArfCA3fCAuQj+JIC5COImFIC5CB4iFICp8IDZ8IDVCLYkgNUIDiYUgNUIGiIV8Ij1CLYkgPUIDiYUgPUIGiIV8Ij5CLYkgPkIDiYUgPkIGiIV8Ij98IDVCP4kgNUI4iYUgNUIHiIUgOHwgMUI/iSAxQjiJhSAxQgeIhSAtfCA5fCA/Qi2JID9CA4mFID9CBoiFfCJAfCA0Qj+JIDRCOImFIDRCB4iFIDd8ID98IDNCP4kgM0I4iYUgM0IHiIUgNnwgPnwgMkI/iSAyQjiJhSAyQgeIhSAxfCA9fCA8Qi2JIDxCA4mFIDxCBoiFfCJBQi2JIEFCA4mFIEFCBoiFfCJCQi2JIEJCA4mFIEJCBoiFfCJDQi2JIENCA4mFIENCBoiFfCJEfCA7Qj+JIDtCOImFIDtCB4iFID58IEN8IDpCP4kgOkI4iYUgOkIHiIUgPXwgQnwgOUI/iSA5QjiJhSA5QgeIhSA1fCBBfCA4Qj+JIDhCOImFIDhCB4iFIDR8IDx8IDdCP4kgN0I4iYUgN0IHiIUgM3wgO3wgNkI/iSA2QjiJhSA2QgeIhSAyfCA6fCBAQi2JIEBCA4mFIEBCBoiFfCJFQi2JIEVCA4mFIEVCBoiFfCJGQi2JIEZCA4mFIEZCBoiFfCJHQi2JIEdCA4mFIEdCBoiFfCJIQi2JIEhCA4mFIEhCBoiFfCJJQi2JIElCA4mFIElCBoiFfCJKQi2JIEpCA4mFIEpCBoiFfCJLIEkgRSA/ID0gMiAsICogIiAgIBYgBiAXIAhBACkDqIoBIkxCMokgTEIuiYUgTEIXiYVBACkDwIoBIk18QQApA7iKASJOQQApA7CKASJPhSBMgyBOhXwgA3xCotyiuY3zi8XCAHwiA0EAKQOgigEiUHwiASAPfCBMIBF8IE8gCXwgTiACfCABIE8gTIWDIE+FfCABQjKJIAFCLomFIAFCF4mFfELNy72fkpLRm/EAfCJRQQApA5iKASJSfCIJIAEgTIWDIEyFfCAJQjKJIAlCLomFIAlCF4mFfEKv9rTi/vm+4LV/fCJTQQApA5CKASJUfCIPIAkgAYWDIAGFfCAPQjKJIA9CLomFIA9CF4mFfEK8t6eM2PT22ml8IlVBACkDiIoBIgF8IhEgDyAJhYMgCYV8IBFCMokgEUIuiYUgEUIXiYV8Qrjqopq/y7CrOXwiViBSIFQgAYWDIFQgAYOFIAFCJIkgAUIeiYUgAUIZiYV8IAN8IgJ8IgN8IAwgEXwgDSAPfCAOIAl8IAMgESAPhYMgD4V8IANCMokgA0IuiYUgA0IXiYV8Qpmgl7CbvsT42QB8Ig0gAiABhSBUgyACIAGDhSACQiSJIAJCHomFIAJCGYmFfCBRfCIJfCIIIAMgEYWDIBGFfCAIQjKJIAhCLomFIAhCF4mFfEKbn+X4ytTgn5J/fCIOIAkgAoUgAYMgCSACg4UgCUIkiSAJQh6JhSAJQhmJhXwgU3wiD3wiESAIIAOFgyADhXwgEUIyiSARQi6JhSARQheJhXxCmIK2093al46rf3wiUSAPIAmFIAKDIA8gCYOFIA9CJIkgD0IeiYUgD0IZiYV8IFV8IgJ8IgMgESAIhYMgCIV8IANCMokgA0IuiYUgA0IXiYV8QsKEjJiK0+qDWHwiUyACIA+FIAmDIAIgD4OFIAJCJIkgAkIeiYUgAkIZiYV8IFZ8Igl8Igx8IBIgA3wgCiARfCAEIAh8IAwgAyARhYMgEYV8IAxCMokgDEIuiYUgDEIXiYV8Qr7fwauU4NbBEnwiBCAJIAKFIA+DIAkgAoOFIAlCJIkgCUIeiYUgCUIZiYV8IA18Ig98IhEgDCADhYMgA4V8IBFCMokgEUIuiYUgEUIXiYV8Qozlkvfkt+GYJHwiCiAPIAmFIAKDIA8gCYOFIA9CJIkgD0IeiYUgD0IZiYV8IA58IgJ8IgMgESAMhYMgDIV8IANCMokgA0IuiYUgA0IXiYV8QuLp/q+9uJ+G1QB8IhIgAiAPhSAJgyACIA+DhSACQiSJIAJCHomFIAJCGYmFfCBRfCIJfCIIIAMgEYWDIBGFfCAIQjKJIAhCLomFIAhCF4mFfELvku6Tz66X3/IAfCIXIAkgAoUgD4MgCSACg4UgCUIkiSAJQh6JhSAJQhmJhXwgU3wiD3wiDHwgByAIfCAFIAN8IBAgEXwgDCAIIAOFgyADhXwgDEIyiSAMQi6JhSAMQheJhXxCsa3a2OO/rO+Af3wiAyAPIAmFIAKDIA8gCYOFIA9CJIkgD0IeiYUgD0IZiYV8IAR8IgV8IgIgDCAIhYMgCIV8IAJCMokgAkIuiYUgAkIXiYV8QrWknK7y1IHum398IgggBSAPhSAJgyAFIA+DhSAFQiSJIAVCHomFIAVCGYmFfCAKfCIGfCIJIAIgDIWDIAyFfCAJQjKJIAlCLomFIAlCF4mFfEKUzaT7zK78zUF8IgwgBiAFhSAPgyAGIAWDhSAGQiSJIAZCHomFIAZCGYmFfCASfCIHfCIPIAkgAoWDIAKFfCAPQjKJIA9CLomFIA9CF4mFfELSlcX3mbjazWR8IgQgByAGhSAFgyAHIAaDhSAHQiSJIAdCHomFIAdCGYmFfCAXfCIFfCIRIBR8IBggD3wgEyAJfCALIAJ8IBEgDyAJhYMgCYV8IBFCMokgEUIuiYUgEUIXiYV8QuPLvMLj8JHfb3wiAiAFIAeFIAaDIAUgB4OFIAVCJIkgBUIeiYUgBUIZiYV8IAN8IgZ8IgsgESAPhYMgD4V8IAtCMokgC0IuiYUgC0IXiYV8QrWrs9zouOfgD3wiCSAGIAWFIAeDIAYgBYOFIAZCJIkgBkIeiYUgBkIZiYV8IAh8Igd8IhMgCyARhYMgEYV8IBNCMokgE0IuiYUgE0IXiYV8QuW4sr3HuaiGJHwiDyAHIAaFIAWDIAcgBoOFIAdCJIkgB0IeiYUgB0IZiYV8IAx8IgV8IhQgEyALhYMgC4V8IBRCMokgFEIuiYUgFEIXiYV8QvWErMn1jcv0LXwiESAFIAeFIAaDIAUgB4OFIAVCJIkgBUIeiYUgBUIZiYV8IAR8IgZ8Ihh8IBogFHwgFSATfCAZIAt8IBggFCAThYMgE4V8IBhCMokgGEIuiYUgGEIXiYV8QoPJm/WmlaG6ygB8IhYgBiAFhSAHgyAGIAWDhSAGQiSJIAZCHomFIAZCGYmFfCACfCIHfCILIBggFIWDIBSFfCALQjKJIAtCLomFIAtCF4mFfELU94fqy7uq2NwAfCIZIAcgBoUgBYMgByAGg4UgB0IkiSAHQh6JhSAHQhmJhXwgCXwiBXwiEyALIBiFgyAYhXwgE0IyiSATQi6JhSATQheJhXxCtafFmKib4vz2AHwiGCAFIAeFIAaDIAUgB4OFIAVCJIkgBUIeiYUgBUIZiYV8IA98IgZ8IhQgEyALhYMgC4V8IBRCMokgFEIuiYUgFEIXiYV8Qqu/m/OuqpSfmH98IhogBiAFhSAHgyAGIAWDhSAGQiSJIAZCHomFIAZCGYmFfCARfCIHfCIVfCAcIBR8IB8gE3wgGyALfCAVIBQgE4WDIBOFfCAVQjKJIBVCLomFIBVCF4mFfEKQ5NDt0s3xmKh/fCIbIAcgBoUgBYMgByAGg4UgB0IkiSAHQh6JhSAHQhmJhXwgFnwiBXwiCyAVIBSFgyAUhXwgC0IyiSALQi6JhSALQheJhXxCv8Lsx4n5yYGwf3wiFiAFIAeFIAaDIAUgB4OFIAVCJIkgBUIeiYUgBUIZiYV8IBl8IgZ8IhMgCyAVhYMgFYV8IBNCMokgE0IuiYUgE0IXiYV8QuSdvPf7+N+sv398IhkgBiAFhSAHgyAGIAWDhSAGQiSJIAZCHomFIAZCGYmFfCAYfCIHfCIUIBMgC4WDIAuFfCAUQjKJIBRCLomFIBRCF4mFfELCn6Lts/6C8EZ8IhggByAGhSAFgyAHIAaDhSAHQiSJIAdCHomFIAdCGYmFfCAafCIFfCIVfCAeIBR8ICEgE3wgHSALfCAVIBQgE4WDIBOFfCAVQjKJIBVCLomFIBVCF4mFfEKlzqqY+ajk01V8IhogBSAHhSAGgyAFIAeDhSAFQiSJIAVCHomFIAVCGYmFfCAbfCIGfCILIBUgFIWDIBSFfCALQjKJIAtCLomFIAtCF4mFfELvhI6AnuqY5QZ8IhsgBiAFhSAHgyAGIAWDhSAGQiSJIAZCHomFIAZCGYmFfCAWfCIHfCITIAsgFYWDIBWFfCATQjKJIBNCLomFIBNCF4mFfELw3LnQ8KzKlBR8IhYgByAGhSAFgyAHIAaDhSAHQiSJIAdCHomFIAdCGYmFfCAZfCIFfCIUIBMgC4WDIAuFfCAUQjKJIBRCLomFIBRCF4mFfEL838i21NDC2yd8IhkgBSAHhSAGgyAFIAeDhSAFQiSJIAVCHomFIAVCGYmFfCAYfCIGfCIVICh8ICQgFHwgJyATfCAjIAt8IBUgFCAThYMgE4V8IBVCMokgFUIuiYUgFUIXiYV8QqaSm+GFp8iNLnwiGCAGIAWFIAeDIAYgBYOFIAZCJIkgBkIeiYUgBkIZiYV8IBp8Igd8IgsgFSAUhYMgFIV8IAtCMokgC0IuiYUgC0IXiYV8Qu3VkNbFv5uWzQB8IhogByAGhSAFgyAHIAaDhSAHQiSJIAdCHomFIAdCGYmFfCAbfCIFfCITIAsgFYWDIBWFfCATQjKJIBNCLomFIBNCF4mFfELf59bsuaKDnNMAfCIbIAUgB4UgBoMgBSAHg4UgBUIkiSAFQh6JhSAFQhmJhXwgFnwiBnwiFCATIAuFgyALhXwgFEIyiSAUQi6JhSAUQheJhXxC3se93cjqnIXlAHwiFiAGIAWFIAeDIAYgBYOFIAZCJIkgBkIeiYUgBkIZiYV8IBl8Igd8IhV8ICYgFHwgKSATfCAlIAt8IBUgFCAThYMgE4V8IBVCMokgFUIuiYUgFUIXiYV8Qqjl3uOz14K19gB8IhkgByAGhSAFgyAHIAaDhSAHQiSJIAdCHomFIAdCGYmFfCAYfCIFfCILIBUgFIWDIBSFfCALQjKJIAtCLomFIAtCF4mFfELm3ba/5KWy4YF/fCIYIAUgB4UgBoMgBSAHg4UgBUIkiSAFQh6JhSAFQhmJhXwgGnwiBnwiEyALIBWFgyAVhXwgE0IyiSATQi6JhSATQheJhXxCu+qIpNGQi7mSf3wiGiAGIAWFIAeDIAYgBYOFIAZCJIkgBkIeiYUgBkIZiYV8IBt8Igd8IhQgEyALhYMgC4V8IBRCMokgFEIuiYUgFEIXiYV8QuSGxOeUlPrfon98IhsgByAGhSAFgyAHIAaDhSAHQiSJIAdCHomFIAdCGYmFfCAWfCIFfCIVfCAvIBR8ICsgE3wgLiALfCAVIBQgE4WDIBOFfCAVQjKJIBVCLomFIBVCF4mFfEKB4Ijiu8mZjah/fCIWIAUgB4UgBoMgBSAHg4UgBUIkiSAFQh6JhSAFQhmJhXwgGXwiBnwiCyAVIBSFgyAUhXwgC0IyiSALQi6JhSALQheJhXxCka/ih43u4qVCfCIZIAYgBYUgB4MgBiAFg4UgBkIkiSAGQh6JhSAGQhmJhXwgGHwiB3wiEyALIBWFgyAVhXwgE0IyiSATQi6JhSATQheJhXxCsPzSsrC0lLZHfCIYIAcgBoUgBYMgByAGg4UgB0IkiSAHQh6JhSAHQhmJhXwgGnwiBXwiFCATIAuFgyALhXwgFEIyiSAUQi6JhSAUQheJhXxCmKS9t52DuslRfCIaIAUgB4UgBoMgBSAHg4UgBUIkiSAFQh6JhSAFQhmJhXwgG3wiBnwiFXwgMSAUfCAtIBN8IDAgC3wgFSAUIBOFgyAThXwgFUIyiSAVQi6JhSAVQheJhXxCkNKWq8XEwcxWfCIbIAYgBYUgB4MgBiAFg4UgBkIkiSAGQh6JhSAGQhmJhXwgFnwiB3wiCyAVIBSFgyAUhXwgC0IyiSALQi6JhSALQheJhXxCqsDEu9WwjYd0fCIWIAcgBoUgBYMgByAGg4UgB0IkiSAHQh6JhSAHQhmJhXwgGXwiBXwiEyALIBWFgyAVhXwgE0IyiSATQi6JhSATQheJhXxCuKPvlYOOqLUQfCIZIAUgB4UgBoMgBSAHg4UgBUIkiSAFQh6JhSAFQhmJhXwgGHwiBnwiFCATIAuFgyALhXwgFEIyiSAUQi6JhSAUQheJhXxCyKHLxuuisNIZfCIYIAYgBYUgB4MgBiAFg4UgBkIkiSAGQh6JhSAGQhmJhXwgGnwiB3wiFSA0fCA3IBR8IDMgE3wgNiALfCAVIBQgE4WDIBOFfCAVQjKJIBVCLomFIBVCF4mFfELT1oaKhYHbmx58IhogByAGhSAFgyAHIAaDhSAHQiSJIAdCHomFIAdCGYmFfCAbfCIFfCILIBUgFIWDIBSFfCALQjKJIAtCLomFIAtCF4mFfEKZ17v8zemdpCd8IhsgBSAHhSAGgyAFIAeDhSAFQiSJIAVCHomFIAVCGYmFfCAWfCIGfCITIAsgFYWDIBWFfCATQjKJIBNCLomFIBNCF4mFfEKoke2M3pav2DR8IhYgBiAFhSAHgyAGIAWDhSAGQiSJIAZCHomFIAZCGYmFfCAZfCIHfCIUIBMgC4WDIAuFfCAUQjKJIBRCLomFIBRCF4mFfELjtKWuvJaDjjl8IhkgByAGhSAFgyAHIAaDhSAHQiSJIAdCHomFIAdCGYmFfCAYfCIFfCIVfCA5IBR8IDUgE3wgOCALfCAVIBQgE4WDIBOFfCAVQjKJIBVCLomFIBVCF4mFfELLlYaarsmq7M4AfCIYIAUgB4UgBoMgBSAHg4UgBUIkiSAFQh6JhSAFQhmJhXwgGnwiBnwiCyAVIBSFgyAUhXwgC0IyiSALQi6JhSALQheJhXxC88aPu/fJss7bAHwiGiAGIAWFIAeDIAYgBYOFIAZCJIkgBkIeiYUgBkIZiYV8IBt8Igd8IhMgCyAVhYMgFYV8IBNCMokgE0IuiYUgE0IXiYV8QqPxyrW9/puX6AB8IhsgByAGhSAFgyAHIAaDhSAHQiSJIAdCHomFIAdCGYmFfCAWfCIFfCIUIBMgC4WDIAuFfCAUQjKJIBRCLomFIBRCF4mFfEL85b7v5d3gx/QAfCIWIAUgB4UgBoMgBSAHg4UgBUIkiSAFQh6JhSAFQhmJhXwgGXwiBnwiFXwgOyAUfCA+IBN8IDogC3wgFSAUIBOFgyAThXwgFUIyiSAVQi6JhSAVQheJhXxC4N7cmPTt2NL4AHwiGSAGIAWFIAeDIAYgBYOFIAZCJIkgBkIeiYUgBkIZiYV8IBh8Igd8IgsgFSAUhYMgFIV8IAtCMokgC0IuiYUgC0IXiYV8QvLWwo/Kgp7khH98IhggByAGhSAFgyAHIAaDhSAHQiSJIAdCHomFIAdCGYmFfCAafCIFfCITIAsgFYWDIBWFfCATQjKJIBNCLomFIBNCF4mFfELs85DTgcHA44x/fCIaIAUgB4UgBoMgBSAHg4UgBUIkiSAFQh6JhSAFQhmJhXwgG3wiBnwiFCATIAuFgyALhXwgFEIyiSAUQi6JhSAUQheJhXxCqLyMm6L/v9+Qf3wiGyAGIAWFIAeDIAYgBYOFIAZCJIkgBkIeiYUgBkIZiYV8IBZ8Igd8IhV8IEEgFHwgQCATfCA8IAt8IBUgFCAThYMgE4V8IBVCMokgFUIuiYUgFUIXiYV8Qun7ivS9nZuopH98IhYgByAGhSAFgyAHIAaDhSAHQiSJIAdCHomFIAdCGYmFfCAZfCIFfCILIBUgFIWDIBSFfCALQjKJIAtCLomFIAtCF4mFfEKV8pmW+/7o/L5/fCIZIAUgB4UgBoMgBSAHg4UgBUIkiSAFQh6JhSAFQhmJhXwgGHwiBnwiEyALIBWFgyAVhXwgE0IyiSATQi6JhSATQheJhXxCq6bJm66e3rhGfCIYIAYgBYUgB4MgBiAFg4UgBkIkiSAGQh6JhSAGQhmJhXwgGnwiB3wiFCATIAuFgyALhXwgFEIyiSAUQi6JhSAUQheJhXxCnMOZ0e7Zz5NKfCIaIAcgBoUgBYMgByAGg4UgB0IkiSAHQh6JhSAHQhmJhXwgG3wiBXwiFSBHfCBDIBR8IEYgE3wgQiALfCAVIBQgE4WDIBOFfCAVQjKJIBVCLomFIBVCF4mFfEKHhIOO8piuw1F8IhsgBSAHhSAGgyAFIAeDhSAFQiSJIAVCHomFIAVCGYmFfCAWfCIGfCILIBUgFIWDIBSFfCALQjKJIAtCLomFIAtCF4mFfEKe1oPv7Lqf7Wp8IhYgBiAFhSAHgyAGIAWDhSAGQiSJIAZCHomFIAZCGYmFfCAZfCIHfCITIAsgFYWDIBWFfCATQjKJIBNCLomFIBNCF4mFfEL4orvz/u/TvnV8IhkgByAGhSAFgyAHIAaDhSAHQiSJIAdCHomFIAdCGYmFfCAYfCIFfCIUIBMgC4WDIAuFfCAUQjKJIBRCLomFIBRCF4mFfEK6392Qp/WZ+AZ8IhwgBSAHhSAGgyAFIAeDhSAFQiSJIAVCHomFIAVCGYmFfCAafCIGfCIVfCA9Qj+JID1COImFID1CB4iFIDl8IEV8IERCLYkgREIDiYUgREIGiIV8IhggFHwgSCATfCBEIAt8IBUgFCAThYMgE4V8IBVCMokgFUIuiYUgFUIXiYV8QqaxopbauN+xCnwiGiAGIAWFIAeDIAYgBYOFIAZCJIkgBkIeiYUgBkIZiYV8IBt8Igd8IgsgFSAUhYMgFIV8IAtCMokgC0IuiYUgC0IXiYV8Qq6b5PfLgOafEXwiGyAHIAaFIAWDIAcgBoOFIAdCJIkgB0IeiYUgB0IZiYV8IBZ8IgV8IhMgCyAVhYMgFYV8IBNCMokgE0IuiYUgE0IXiYV8QpuO8ZjR5sK4G3wiHSAFIAeFIAaDIAUgB4OFIAVCJIkgBUIeiYUgBUIZiYV8IBl8IgZ8IhQgEyALhYMgC4V8IBRCMokgFEIuiYUgFEIXiYV8QoT7kZjS/t3tKHwiHiAGIAWFIAeDIAYgBYOFIAZCJIkgBkIeiYUgBkIZiYV8IBx8Igd8IhV8ID9CP4kgP0I4iYUgP0IHiIUgO3wgR3wgPkI/iSA+QjiJhSA+QgeIhSA6fCBGfCAYQi2JIBhCA4mFIBhCBoiFfCIWQi2JIBZCA4mFIBZCBoiFfCIZIBR8IEogE3wgFiALfCAVIBQgE4WDIBOFfCAVQjKJIBVCLomFIBVCF4mFfEKTyZyGtO+q5TJ8IgsgByAGhSAFgyAHIAaDhSAHQiSJIAdCHomFIAdCGYmFfCAafCIFfCITIBUgFIWDIBSFfCATQjKJIBNCLomFIBNCF4mFfEK8/aauocGvzzx8IhogBSAHhSAGgyAFIAeDhSAFQiSJIAVCHomFIAVCGYmFfCAbfCIGfCIUIBMgFYWDIBWFfCAUQjKJIBRCLomFIBRCF4mFfELMmsDgyfjZjsMAfCIbIAYgBYUgB4MgBiAFg4UgBkIkiSAGQh6JhSAGQhmJhXwgHXwiB3wiFSAUIBOFgyAThXwgFUIyiSAVQi6JhSAVQheJhXxCtoX52eyX9eLMAHwiHCAHIAaFIAWDIAcgBoOFIAdCJIkgB0IeiYUgB0IZiYV8IB58IgV8IhYgTXw3A8CKAUEAIFAgBSAHhSAGgyAFIAeDhSAFQiSJIAVCHomFIAVCGYmFfCALfCIGIAWFIAeDIAYgBYOFIAZCJIkgBkIeiYUgBkIZiYV8IBp8IgcgBoUgBYMgByAGg4UgB0IkiSAHQh6JhSAHQhmJhXwgG3wiBSAHhSAGgyAFIAeDhSAFQiSJIAVCHomFIAVCGYmFfCAcfCILfDcDoIoBQQAgTiBAQj+JIEBCOImFIEBCB4iFIDx8IEh8IBlCLYkgGUIDiYUgGUIGiIV8IhkgE3wgFiAVIBSFgyAUhXwgFkIyiSAWQi6JhSAWQheJhXxCqvyV48+zyr/ZAHwiGiAGfCITfDcDuIoBQQAgUiALIAWFIAeDIAsgBYOFIAtCJIkgC0IeiYUgC0IZiYV8IBp8IgZ8NwOYigFBACBPIEFCP4kgQUI4iYUgQUIHiIUgQHwgGHwgS0ItiSBLQgOJhSBLQgaIhXwgFHwgEyAWIBWFgyAVhXwgE0IyiSATQi6JhSATQheJhXxC7PXb1rP12+XfAHwiGCAHfCIUfDcDsIoBQQAgVCAGIAuFIAWDIAYgC4OFIAZCJIkgBkIeiYUgBkIZiYV8IBh8Igd8NwOQigFBACBMIEVCP4kgRUI4iYUgRUIHiIUgQXwgSXwgGUItiSAZQgOJhSAZQgaIhXwgFXwgFCATIBaFgyAWhXwgFEIyiSAUQi6JhSAUQheJhXxCl7Cd0sSxhqLsAHwiEyAFfHw3A6iKAUEAIAEgByAGhSALgyAHIAaDhSAHQiSJIAdCHomFIAdCGYmFfCATfHw3A4iKAQvzCQIBfgR/QQApA4CKASIAp0EDdkEPcSIBQQN0QYCJAWoiAiACKQMAQn8gAEIDhiIAhkJ/hYNCgAEgAIaFNwMAIAFBAWohAwJAIAFBDkkNAAJAIANBD0cNAEEAQgA3A/iJAQtBgIkBEANBACEDCyADIQQCQEEHIANrQQdxIgJFDQAgAyACaiEEIANBA3RBgIkBaiEBA0AgAUIANwMAIAFBCGohASACQX9qIgINAAsLAkAgA0F4akEHSQ0AIARBA3QhAQNAIAFBuIkBakIANwMAIAFBsIkBakIANwMAIAFBqIkBakIANwMAIAFBoIkBakIANwMAIAFBmIkBakIANwMAIAFBkIkBakIANwMAIAFBiIkBakIANwMAIAFBgIkBakIANwMAIAFBwABqIgFB+ABHDQALC0EAIQFBAEEAKQOAigEiAEI7hiAAQiuGQoCAgICAgMD/AIOEIABCG4ZCgICAgIDgP4MgAEILhkKAgICA8B+DhIQgAEIFiEKAgID4D4MgAEIViEKAgPwHg4QgAEIliEKA/gODIABCA4ZCOIiEhIQ3A/iJAUGAiQEQA0EAQQApA8CKASIAQjiGIABCgP4Dg0IohoQgAEKAgPwHg0IYhiAAQoCAgPgPg0IIhoSEIABCCIhCgICA+A+DIABCGIhCgID8B4OEIABCKIhCgP4DgyAAQjiIhISENwPAigFBAEEAKQO4igEiAEI4hiAAQoD+A4NCKIaEIABCgID8B4NCGIYgAEKAgID4D4NCCIaEhCAAQgiIQoCAgPgPgyAAQhiIQoCA/AeDhCAAQiiIQoD+A4MgAEI4iISEhDcDuIoBQQBBACkDsIoBIgBCOIYgAEKA/gODQiiGhCAAQoCA/AeDQhiGIABCgICA+A+DQgiGhIQgAEIIiEKAgID4D4MgAEIYiEKAgPwHg4QgAEIoiEKA/gODIABCOIiEhIQ3A7CKAUEAQQApA6iKASIAQjiGIABCgP4Dg0IohoQgAEKAgPwHg0IYhiAAQoCAgPgPg0IIhoSEIABCCIhCgICA+A+DIABCGIhCgID8B4OEIABCKIhCgP4DgyAAQjiIhISENwOoigFBAEEAKQOgigEiAEI4hiAAQoD+A4NCKIaEIABCgID8B4NCGIYgAEKAgID4D4NCCIaEhCAAQgiIQoCAgPgPgyAAQhiIQoCA/AeDhCAAQiiIQoD+A4MgAEI4iISEhDcDoIoBQQBBACkDmIoBIgBCOIYgAEKA/gODQiiGhCAAQoCA/AeDQhiGIABCgICA+A+DQgiGhIQgAEIIiEKAgID4D4MgAEIYiEKAgPwHg4QgAEIoiEKA/gODIABCOIiEhIQ3A5iKAUEAQQApA5CKASIAQjiGIABCgP4Dg0IohoQgAEKAgPwHg0IYhiAAQoCAgPgPg0IIhoSEIABCCIhCgICA+A+DIABCGIhCgID8B4OEIABCKIhCgP4DgyAAQjiIhISENwOQigFBAEEAKQOIigEiAEI4hiAAQoD+A4NCKIaEIABCgID8B4NCGIYgAEKAgID4D4NCCIaEhCAAQgiIQoCAgPgPgyAAQhiIQoCA/AeDhCAAQiiIQoD+A4MgAEI4iISEhDcDiIoBAkBBACgCyIoBIgNFDQBBACECA0AgAUGACWogAUGIigFqLQAAOgAAIAFBAWohASADIAJBAWoiAkH/AXFLDQALCwsGAEGAiQELoQIAQQBCADcDgIoBQQBBMEHAACABQYADRiIBGzYCyIoBQQBCpJ/p99uD0trHAEL5wvibkaOz8NsAIAEbNwPAigFBAEKnn+an1sGLhltC6/qG2r+19sEfIAEbNwO4igFBAEKRquDC9tCS2o5/Qp/Y+dnCkdqCm38gARs3A7CKAUEAQrGWgP7/zMmZ5wBC0YWa7/rPlIfRACABGzcDqIoBQQBCubK5uI+b+5cVQvHt9Pilp/2npX8gARs3A6CKAUEAQpe6w4Ojq8CskX9Cq/DT9K/uvLc8IAEbNwOYigFBAEKHqvOzo6WKzeIAQrvOqqbY0Ouzu38gARs3A5CKAUEAQti9lojcq+fdS0KIkvOd/8z5hOoAIAEbNwOIigEgABACEAQLCwsBAEGACAsE0AAAAA==",hash:"f2e40eb1"};function zN(){return LN($N,48).then(e=>{e.init(384);const t={init:()=>(e.init(384),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),save:()=>e.save(),load:n=>(e.load(n),t),blockSize:128,digestSize:48};return t})}function jN(){return LN($N,64).then(e=>{e.init(512);const t={init:()=>(e.init(512),t),update:n=>(e.update(n),t),digest:t=>e.digest(t),save:()=>e.save(),load:n=>(e.load(n),t),blockSize:128,digestSize:64};return t})}function VN(e){return"[object File]"===Object.prototype.toString.call(e)}async function YN(e,t={}){if(!Xa(e)&&!VN(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let n=be(t,"type","");Fe(n)||(n="sha512");let r=be(t,"chunkSize");Me(r)||(r=67108864),r=xr(r);let i={MD5:UN,"SHA-1":qN,"SHA-256":PN,"SHA-384":zN,"SHA-512":jN,md5:UN,sha1:qN,sha256:PN,sha384:zN,sha512:jN};if(!Te(i,n))return Promise.reject(`type[${n}] must be one of [ 'md5', 'sha1', 'sha256', 'sha384', 'sha512' ]`);let o=be(i,n),a=await o(),s=0;for(;s<e.size;){let t=e.slice(s,s+r),n=await t.arrayBuffer();a.update(new Uint8Array(n)),s+=r}return a.digest()}async function WN(e,t={}){if(!Xa(e)&&!VN(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let n=be(t,"chunkSize");Me(n)||(n=67108864),n=xr(n);let{create64:r}=await $D(),i=r(),o=0;for(;o<e.size;){let t=e.slice(o,o+n),r=await t.arrayBuffer();i.update(new Uint8Array(r)),o+=n}return i.digest().toString(16).padStart(16,"0")}new AN,new AN,new AN,new AN,new AN,new AN,new AN,new AN,new AN;var GN=4294967295,JN=Math.min;function _N(e,t){if((e=Ir(e))<1||e>9007199254740991)return[];var n=GN,r=JN(e,GN);t=vn(t),e-=GN;for(var i=Ue(r,t);++n<e;)t(n);return i}function XN(e){let 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 KN(e,n="days"){if(!Fe(e))return null;if(!Fe(n))return null;let r=function(e,n){let r="";return"years"===n?r="-01-01T00:00:00":"months"===n?r="-01T00:00:00":"days"===n?r="T00:00:00":"hours"===n?r=":00:00":"minutes"===n&&(r=":00"),t(e+r,"YYYY-MM-DDTHH:mm:ss")}(e,n),i=XN(n);return e===r.format(i)?r:null}function ZN(){let e=nc(),t=()=>Number(e.process.hrtime.bigint())/1e6,n=()=>e.performance.now(),r=null;return r=Ka()?n:t,r}function eM(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!Xy(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o}function tM(e=null){let t,n=function(){let e=nc();return p.UAParser||e.UAParser}();t=ke(e)?new n(e):new n;let r=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:be(r.device,"type",""),cpuarchitecture:be(r.cpu,"architecture","")}}let nM="in x-range",rM="out of x-range",iM="order list",oM="reverse order list";function aM(e,t){let n=null,r=null;return n=e[0].x,r=e[ar(e)-1].x,t<n?{err:rM,msg:`x[${t}] less than lower limit[${n}]`,data:{ps:e,x:t,xmin:n,xmax:r}}:t>r?{err:rM,msg:`x[${t}] greater than upper limit[${r}]`,data:{ps:e,x:t,xmin:n,xmax:r}}:nM}function sM(e){return!!Be(e)&&e.length>=1}let lM=/^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?\.)+(?:[A-Za-z]{2,63}|[Xx][Nn]--[A-Za-z0-9-]{0,58}[A-Za-z0-9])$/;function cM(e){if(!D(e))return!1;var t=F(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!wu(e)}function uM(e){if(!Cr(e))return!1;return Yi(e)<=0}function fM(e){if(!Me(e))return!1;return xr(e)<=0}function dM(e){if(!Me(e))return!1;return xr(e)>=0}function hM(e){if(!Fe(e))return!1;return!(null===e.match(/^.*[A-Z]+.*$/))}function pM(e){if(!Fe(e))return!1;return!(null===e.match(/^.*[a-zA-Z]+.*$/))}function gM(e){if(!Fe(e))return!1;return!(null===e.match(/^.*[a-z]+.*$/))}function mM(e){if(!Fe(e))return!1;return!(null===e.match(/^.*[0-9]+.*$/))}function yM(e){if(!Fe(e))return!1;return!(null===e.match(/^.*\s+.*$/))}function vM(e){if(!Fe(e))return!1;
31
31
  //!"#$%&'()*+,-./ :;<=>?@ [\]^_` {|}~
32
- return/[!-/:-@[-`{-~]/.test(e)}function AM(e){if(!Fe(e))return!1;let n="YYYY-MM-DDTHH:mm:ss.SSS";return e===t(e,n).format(n)}function bM(e){let t;return t=ia(e,1),"Z"===t?`${e=La(e,1)}+00:00`:e}let wM={checkTZ:function(e){let t;return t=ia(e,1),"Z"===t||(t=ia(e,6),!!/[+|-]\d\d:\d\d/.test(t))},delTZ:function(e){let t;return t=ia(e,1),La(e,"Z"===t?1:6)},normTZ:bM,sepTZ:function(e){let t=bM(e);return{t:La(t,6),tz:ia(t,6)}}};function IM(e){if(!Fe(e))return!1;if(!wM.checkTZ(e))return!1;let n=wM.delTZ(e),r="YYYY-MM-DDTHH:mm:ss.SSS";return n===t(n,r).format(r)}function xM(e){if(!Fe(e))return!1;if(!wM.checkTZ(e))return!1;let n=wM.delTZ(e),r="YYYY-MM-DDTHH:mm:ss";return n===t(n,r).format(r)}let CM=["1234","12345","123456","1234567","12345678","123456789","1234567890","12345678910","111111","000000","666666","888888","7777777","11111111","123123","123321","654321","987654321","qwerty","qwerty123","qwerty1","qwertyuiop","qazwsx","1q2w3e4r","1q2w3e4r5t","1q2w3e","1qaz2wsx","zxcvbnm","password","password1","passw0rd","admin","admin123","welcome","letmein","login","master","monkey","dragon","shadow","sunshine","superman","batman","football","baseball","soccer","hockey","michael","jordan","jennifer","hunter","ranger","harley","thomas","charlie","andrew","daniel","ashley","bailey","mustang","access","secret","ninja","jesus","hello","freedom","trustno1","1qaz@WSX","P@ssw0rd","Pass@123","Aa123456","Aa@123456","Admin@123","abc@123","abc123","abcdef","abcd1234","abc","iloveyou","fuckyou","f*ckyou","whatever","nothing","google","computer","internet","samsung","apple","killer","princess","lovely","tigger","starwars","pokemon","minecraft","123qwe","zaq1zaq1","photoshop","adobe123","18atcskd2w","mynoob"];function BM(e,t){return new Zl(e).eq(t)}function EM(e,t,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:[];if(!Tn(e))return i("invalid keys");if(!Tn(t))return i("invalid mat");if(!Tn(t[0]))return i("invalid mat, the first row is not an effective array");let o=wn(t,function(t){let n=Gi(e,t);return An(n,function(e,t){void 0===e&&(n[t]="")}),n});return r?{state:"success",msg:o}:o}var SM=Da(function(e){return Pn(Cn(e,1,$y,!0))});var kM=Da(function(e,t){var n=wa(t);return $y(n)&&(n=void 0),$y(e)?function(e,t,n,r){var i=-1,o=Un,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=de(t,Ke(n))),r?(o=Hn,a=!1):t.length>=200&&(o=wt,a=!1,t=new At(t));e:for(;++i<s;){var u=e[i],f=null==n?u:n(u);if(u=r||0!==u?u:0,a&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;l.push(u)}else o(t,f,r)||l.push(u)}return l}(e,Cn(t,1,$y,!0),pn(n)):[]}),FM=kM;function DM(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!Fe(e))return r("invalid str");let i="";try{let t=Jr.parse(e);i=Qr.stringify(t)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function NM(e,t,n=!1,r={}){let i=be(r,"returnWithStateAndMsg",null);Ie(i)||(i=!1);let o=e=>i?{state:"error",msg:e}:"";if(!Fe(e))return o("invalid str");if(!Fe(t))return o("invalid key");Ie(n)||(n=!1);let a="";try{let r=Wr.encrypt(e,t);if(n)a=r.toString();else{let e=r.toString();a=Qr.parse(e).toString(Xr)}}catch(e){return o(e.toString())}return i?{state:"success",msg:a}:a}var MM={exports:{}};!function(e){var t;e.exports=(t=Dr(),function(){if("function"==typeof ArrayBuffer){var e=t.lib.WordArray,n=e.init,r=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 t=e.byteLength,r=[],i=0;i<t;i++)r[i>>>2]|=e[i]<<24-i%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=e}}(),t.lib.WordArray)}(MM);var TM=Er(MM.exports);function QM(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!ls(e))return r("invalid u8a");let i="";try{i=TM.create(e).toString(Qr)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function LM(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!dN(e))return r("invalid u16a");let i="";try{let t=QM(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),{returnWithStateAndMsg:!0});if("error"===t.state)return r(`u8arr2b64: ${t.msg}`);i=t.msg}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}let RM="[BlazeForPreventEscape]",UM=/^(?:\[BlazeForPreventEscape\])*\[(?:Uint8Array|Uint16Array)\]::[A-Za-z0-9+/]*={0,2}$/,HM=/^\[BlazeForPreventEscape\](?:\[BlazeForPreventEscape\])*\[(?:Uint8Array|Uint16Array)\]::[A-Za-z0-9+/]*={0,2}$/;let qM="[Uint8Array]::",OM=/^\[Uint8Array\]::([A-Za-z0-9+/]*={0,2})$/;let PM="[Uint16Array]::",$M=/^\[Uint16Array\]::([A-Za-z0-9+/]*={0,2})$/;let zM={tagEsc:RM,escape:function(e){return ke(e)&&91===e.charCodeAt(0)&&UM.test(e)?RM+e:e},unescape:function(e){return ke(e)&&91===e.charCodeAt(0)&&HM.test(e)?e.slice(23):e},tagU8A:qM,u8arr2b64:function(e){return ls(e)?qM+QM(e):e},b642u8arr:function(e){if(ke(e)&&91===e.charCodeAt(0)){let t=OM.exec(e);if(null!==t)return Wa(t[1])}return e},tagU16A:PM,u16arr2b64:function(e){return dN(e)?PM+LM(e):e},b642u16arr:function(e){if(ke(e)&&91===e.charCodeAt(0)){let t=$M.exec(e);if(null!==t)return Ga(t[1])}return e}};function jM(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:{results:"",binarys:[]};if(!Ee(e)&&!Be(e))return r("invalid data, data is not an object or array");if(Fn(e)||Nn(e))return r("invalid data, data is an empty object or empty array");let i=/^(?:\[BlazeForPreventEscape\])*\[BlazeFor(?:Uint8Array|Uint16Array|ArrayBuffer)\]::\d+$/,o="",a=[];try{let t=-1;o=JSON.stringify(e,function(e,n){if(ls(n)){t+=1;let e=`[BlazeForUint8Array]::${t}`;return a.push(n),e}if(dN(n)){t+=1;let e=`[BlazeForUint16Array]::${t}`;return a.push(n),e}if(xe(n)){t+=1;let e=`[BlazeForArrayBuffer]::${t}`;return a.push(n),e}return cM(n)&&(n=n.toString()),Fe(n)&&91===n.charCodeAt(0)&&i.test(n)?"[BlazeForPreventEscape]"+n:n})}catch(e){return r(e.toString())}return n?{state:"success",msg:{results:o,binarys:a}}:{results:o,binarys:a}}function VM(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!Fe(e))return r("invalid str");let i=null;try{let t=DM(e,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`str2b64: ${t.msg}`);let n=Wa(t.msg,{returnWithStateAndMsg:!0});if("error"===n.state)return r(`b642u8arr: ${n.msg}`);i=n.msg}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function YM(e){let t=0;An(e,e=>{t+=hN(e)});let n=new Uint8Array(t),r=0;return An(e,e=>{let t=function(e){return xe(e)?new Uint8Array(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0)}(e);n.set(t,r),r+=t.length}),n}function WM(e,t){if(!Se(e))return{};if(!Oi(t))throw new Error("fun is not a function");let n=wn(e,(e,n)=>({k:n,v:e,t:t(e,n)}));n=Na(n,"t");let r={};return An(n,e=>{r[e.k]=e.v}),r}function GM(e,t=()=>{}){if(!Oi(e))return null;function n(e,t){let n;return kn(e)||Sn(e)?t:(n=be(e,"data",null),n||e)}return Oi(t)||(t=()=>{}),function(){let r,i=_a(),o=t({mode:"before",data:arguments});return(kn(o)||Sn(o))&&(o=arguments),e(...o).then(e=>{r=t({mode:"afterThen",data:e}),e=n(r,e),i.resolve(e)}).catch(e=>{r=t({mode:"afterCatch",data:e}),e=n(r,e),i.reject(e)}),i}}function JM(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"success",msg:e}:e;if(!ke(e))return n?{state:"error",msg:"invalid str"}:null;if(""===e)return r(0);let i=e.split("").reduce((e,t)=>t.charCodeAt(0)+(e<<6)+(e<<16)-e,0);return r(i)}let _M=0;function XM(e="start1",t=!1){void 0===e?e=(new Date).getTime():"start1"===e&&(_M++,e=_M);let n=624,r=397,i=2147483648,o=2147483647,a=new Array(n),s=625,l=e=>{for(fa(e)?a[0]=e>>>0:(e=Ta(e),a[0]=JM(e)),s=1;s<n;s++){let e=a[s-1]^a[s-1]>>>30;a[s]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+s,a[s]>>>=0}},c=()=>(()=>{let e,t=new Array(2567483615);if(s>=n){let c;for(625===s&&l(5489),c=0;c<227;c++)e=a[c]&i|a[c+1]&o,a[c]=a[c+r]^e>>>1^t[1&e];for(;c<623;c++)e=a[c]&i|a[c+1]&o,a[c]=a[c+(r-n)]^e>>>1^t[1&e];e=a[623]&i|a[0]&o,a[623]=a[396]^e>>>1^t[1&e],s=0}return e=a[s++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0})()*(1/4294967296);l(e);let u=null;return u=t?c:c(),u}let KM=XM((new Date).getTime(),!0);function ZM(){return KM()}function eT(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}var tT=Math.floor,nT=Math.random;function rT(e,t){return e+tT(nT()*(t-e+1))}function iT(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=rT(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}function oT(e,t){return iT(Bn(e),eT(t,0,e.length))}function aT(e,t){var n=nD(e);return iT(n,eT(t,0,n.length))}var sT=Math.floor;function lT(e,t,n){return t=(n?gn(e,t,n):void 0===t)?1:Ir(t),function(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=sT(t/2))&&(e+=e)}while(t);return n}(me(e),t)}var cT=ji("floor");var uT=Er(Rr());var fT={exports:{}},dT={exports:{}};!function(e){var t;e.exports=(t=Dr(),function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),l[i]=n(e.pow(r,1/3)),i++),r++}();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],f=n[6],d=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var p=c[h-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=c[h-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[h]=g+c[h-7]+y+c[h-16]}var v=r&i^r&o^i&o,A=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&f)+l[h]+c[h];d=f,f=u,u=s,s=a+b|0,a=o,o=i,i=r,r=b+(A+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(u),n.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256)}(dT);var hT=dT.exports,pT=Er(hT);!function(e){var t;e.exports=(t=Dr(),function(){var e=t,n=e.lib.WordArray,r=e.algo,i=r.SHA256,o=r.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=i._createHelper(o),e.HmacSHA224=i._createHmacHelper(o)}(),t.SHA224)}(fT);var gT,mT=Er(fT.exports),yT={exports:{}},vT={exports:{}};function AT(){return gT||(gT=1,function(e){var t;e.exports=(t=Dr(),function(e){var n=t,r=n.lib,i=r.Base,o=r.WordArray,a=n.x64={};a.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}})}(),t)}(vT)),vT.exports}var bT={exports:{}};!function(e){var t;e.exports=(t=Dr(),AT(),function(){var e=t,n=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=a.SHA512=n.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],f=n[6],d=n[7],h=r.high,p=r.low,g=i.high,m=i.low,y=o.high,v=o.low,A=a.high,b=a.low,w=s.high,I=s.low,x=u.high,C=u.low,B=f.high,E=f.low,S=d.high,k=d.low,F=h,D=p,N=g,M=m,T=y,Q=v,L=A,R=b,U=w,H=I,q=x,O=C,P=B,$=E,z=S,j=k,V=0;V<80;V++){var Y,W,G=c[V];if(V<16)W=G.high=0|e[t+2*V],Y=G.low=0|e[t+2*V+1];else{var J=c[V-15],_=J.high,X=J.low,K=(_>>>1|X<<31)^(_>>>8|X<<24)^_>>>7,Z=(X>>>1|_<<31)^(X>>>8|_<<24)^(X>>>7|_<<25),ee=c[V-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=c[V-7],ae=oe.high,se=oe.low,le=c[V-16],ce=le.high,ue=le.low;W=(W=(W=K+ae+((Y=Z+se)>>>0<Z>>>0?1:0))+re+((Y+=ie)>>>0<ie>>>0?1:0))+ce+((Y+=ue)>>>0<ue>>>0?1:0),G.high=W,G.low=Y}var fe,de=U&q^~U&P,he=H&O^~H&$,pe=F&N^F&T^N&T,ge=D&M^D&Q^M&Q,me=(F>>>28|D<<4)^(F<<30|D>>>2)^(F<<25|D>>>7),ye=(D>>>28|F<<4)^(D<<30|F>>>2)^(D<<25|F>>>7),ve=(U>>>14|H<<18)^(U>>>18|H<<14)^(U<<23|H>>>9),Ae=(H>>>14|U<<18)^(H>>>18|U<<14)^(H<<23|U>>>9),be=l[V],we=be.high,Ie=be.low,xe=z+ve+((fe=j+Ae)>>>0<j>>>0?1:0),Ce=ye+ge;z=P,j=$,P=q,$=O,q=U,O=H,U=L+(xe=(xe=(xe=xe+de+((fe+=he)>>>0<he>>>0?1:0))+we+((fe+=Ie)>>>0<Ie>>>0?1:0))+W+((fe+=Y)>>>0<Y>>>0?1:0))+((H=R+fe|0)>>>0<R>>>0?1:0)|0,L=T,R=Q,T=N,Q=M,N=F,M=D,F=xe+(me+pe+(Ce>>>0<ye>>>0?1:0))+((D=fe+Ce|0)>>>0<fe>>>0?1:0)|0}p=r.low=p+D,r.high=h+F+(p>>>0<D>>>0?1:0),m=i.low=m+M,i.high=g+N+(m>>>0<M>>>0?1:0),v=o.low=v+Q,o.high=y+T+(v>>>0<Q>>>0?1:0),b=a.low=b+R,a.high=A+L+(b>>>0<R>>>0?1:0),I=s.low=I+H,s.high=w+U+(I>>>0<H>>>0?1:0),C=u.low=C+O,u.high=x+q+(C>>>0<O>>>0?1:0),E=f.low=E+$,f.high=B+P+(E>>>0<$>>>0?1:0),k=d.low=k+j,d.high=S+z+(k>>>0<j>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=n._createHelper(u),e.HmacSHA512=n._createHmacHelper(u)}(),t.SHA512)}(bT);var wT=bT.exports,IT=Er(wT);!function(e){var t;e.exports=(t=Dr(),AT(),function(){var e=t,n=e.x64,r=n.Word,i=n.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),t.SHA384)}(yT);let xT={1:$r,224:mT,256:pT,384:Er(yT.exports),512:IT};function CT(e,t,n=!1,r={}){let i=be(r,"returnWithStateAndMsg",null);Ie(i)||(i=!1);let o=e=>i?{state:"error",msg:e}:"";if(!Fe(e))return o("invalid str");if(!Wi(t)){if(i)return o("n is not a positive integer");throw new Error("n is not a positive integer")}if(t=Yi(t),!Te(xT,t)){if(i)return o(`invalid n[${t}]`);throw new Error(`invalid n[${t}]`)}Ie(n)||(n=!1);let a="";try{let r=(0,xT[t])(e);a=n?r.toString(Qr):r.toString(Xr)}catch(e){return o(e.toString())}return i?{state:"success",msg:a}:a}function BT(e,t){return Fe(e)&&Fe(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;let n=new Map;for(let t=0;t<e.length-1;t++){const r=e.substring(t,t+2),i=n.has(r)?n.get(r)+1:1;n.set(r,i)}let r=0;for(let e=0;e<t.length-1;e++){const i=t.substring(e,e+2),o=n.has(i)?n.get(i):0;o>0&&(n.set(i,o-1),r++)}return 2*r/(e.length+t.length-2)}(e,t):0}function ET(e){if(!Fe(e))return null;let t=e.match(/(\d+)\.(\d+)\.(\d+)/);return t?[Number(t[1]),Number(t[2]),Number(t[3])]:null}function ST(e){return Array.isArray?Array.isArray(e):"[object Array]"===LT(e)}function kT(e){return null==e?"":function(e){if("string"==typeof e)return e;if("bigint"==typeof e)return e.toString();const t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}function FT(e){return"string"==typeof e}function DT(e){return"number"==typeof e}function NT(e){return!0===e||!1===e||function(e){return MT(e)&&null!==e}(e)&&"[object Boolean]"==LT(e)}function MT(e){return"object"==typeof e}function TT(e){return null!=e}function QT(e){return!e.trim().length}function LT(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const RT="Invalid doc index: must be a non-negative integer within the bounds of the docs array",UT=Object.prototype.hasOwnProperty;var HT=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{const n=qT(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function qT(e){let t=null,n=null,r=null,i=1,o=null;if(FT(e)||ST(e))r=e,t=OT(e),n=PT(e);else{if(!UT.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const a=e.name;if(r=a,UT.call(e,"weight")&&void 0!==e.weight&&(i=e.weight,i<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(PT(a)));t=OT(a),n=PT(a),o=e.getFn??null}return{path:t,id:n,weight:i,src:r,getFn:o}}function OT(e){return ST(e)?e:e.split(".")}function PT(e){return ST(e)?e.join("."):e}const $T={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:"any",getFn:function(e,t){const n=[];let r=!1;const i=(e,t,o,a)=>{if(TT(e))if(t[o]){const s=e[t[o]];if(!TT(s))return;if(o===t.length-1&&(FT(s)||DT(s)||NT(s)||"bigint"==typeof s))n.push(void 0!==a?{v:kT(s),i:a}:kT(s));else if(ST(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,o+1,e)}else t.length&&i(s,t,o+1,a)}else n.push(void 0!==a?{v:e,i:a}:e)};return i(e,FT(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},zT=Object.freeze({isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...$T});function jT(e){return e>=9&&e<=13||32===e||160===e}var VT=class{constructor({getFn:e=zT.getFn,fieldNormWeight:t=zT.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){let i=0,o=!1;for(let e=0;e<t.length;e++)jT(t.charCodeAt(e))?o=!1:o||(i++,o=!0);if(0===i&&(i=1),n.has(i))return n.get(i);const a=Math.round(r/Math.pow(i,.5*e))/r;return n.set(i,a),a},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;const e=this.docs.length;this.records=new Array(e);let t=0;if(FT(this.docs[0]))for(let n=0;n<e;n++){const e=this._createStringRecord(this.docs[n],n);e&&(this.records[t++]=e)}else for(let n=0;n<e;n++)this.records[t++]=this._createObjectRecord(this.docs[n],n);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw new Error(RT);if(FT(e)){const n=this._createStringRecord(e,t);return n&&this.records.push(n),n}const n=this._createObjectRecord(e,t);return this.records.push(n),n}removeAt(e){if(!Number.isInteger(e)||e<0)throw new Error(RT);for(let t=0,n=this.records.length;t<n;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,n=this.records.length;t<n;t+=1)this.records[t].i>e&&(this.records[t].i-=1)}removeAll(e){const t=new Set;for(const n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(0===t.size)return;this.records=this.records.filter(e=>!t.has(e.i));const n=Array.from(t).sort((e,t)=>e-t);for(const e of this.records){let t=0,r=n.length;for(;t<r;){const i=t+r>>>1;n[i]<e.i?t=i+1:r=i}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!TT(e)||QT(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){const n={i:t,$:{}};for(let t=0,r=this.keys.length;t<r;t++){const r=this.keys[t],i=r.getFn?r.getFn(e):this.getFn(e,r.path);if(TT(i))if(ST(i)){const e=[];for(let t=0,n=i.length;t<n;t+=1){const n=i[t];if(TT(n))if(FT(n)){if(!QT(n)){const r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(TT(n.v)){const t=FT(n.v)?n.v:kT(n.v);if(!QT(t)){const r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}n.$[t]=e}else if(FT(i)&&!QT(i)){const e={v:i,n:this.norm.get(i)};n.$[t]=e}}return n}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function YT(e,t,{getFn:n=zT.getFn,fieldNormWeight:r=zT.fieldNormWeight}={}){const i=new VT({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(qT)),i.setSources(t),i.create(),i}function WT(e,t,n,{location:r=zT.location,distance:i=zT.distance,threshold:o=zT.threshold,findAllMatches:a=zT.findAllMatches,minMatchCharLength:s=zT.minMatchCharLength,includeMatches:l=zT.includeMatches,ignoreLocation:c=zT.ignoreLocation}={}){if(t.length>32)throw new Error((e=>`Pattern length exceeds max of ${e}.`)(32));const u=t.length,f=e.length,d=Math.max(0,Math.min(r,f));let h=o,p=d;const g=(e,t)=>{const n=e/u;if(c)return n;const r=Math.abs(d-t);return i?n+r/i:r?1:n},m=s>1||l,y=m?Array(f):[];let v;for(;(v=e.indexOf(t,p))>-1;){const e=g(0,v);if(h=Math.min(e,h),p=v+u,m){let e=0;for(;e<u;)y[v+e]=1,e+=1}}p=-1;let A=[],b=1,w=0,I=u+f;const x=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=I;for(;r<i;)g(t,d+i)<=h?r=i:I=i,i=Math.floor((I-r)/2+r);I=i;let o=Math.max(1,d-i+1);const s=a?f:Math.min(d+i,f)+u,l=Array(s+2);l[s+1]=(1<<t)-1;for(let r=s;r>=o;r-=1){const i=r-1,a=n[e[i]];if(l[r]=(l[r+1]<<1|1)&a,t&&(l[r]|=(A[r+1]|A[r])<<1|1|A[r+1]),l[r]&x&&(b=g(t,i),b<=h)){if(h=b,p=i,w=t,p<=d)break;o=Math.max(1,2*d-p)}}if(g(t+1,d)>h)break;A=l}if(m&&p>=0){const t=Math.min(f-1,p+u-1+w);for(let r=p;r<=t;r+=1)n[e[r]]&&(y[r]=1)}const C={isMatch:p>=0,score:Math.max(.001,b)};if(m){const e=function(e=[],t=zT.minMatchCharLength){const n=[];let r=-1,i=-1,o=0;for(let a=e.length;o<a;o+=1){const a=e[o];a&&-1===r?r=o:a||-1===r||(i=o-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(y,s);e.length?l&&(C.indices=e):C.isMatch=!1}return C}function GT(e){const t={};for(let n=0,r=e.length;n<r;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function JT(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);const t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){const r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}const _T={"ł":"l","Ł":"L","đ":"d","Đ":"D","ø":"o","Ø":"O","ħ":"h","Ħ":"H","ŧ":"t","Ŧ":"T","ı":"i","ß":"ss"},XT=new RegExp("["+Object.keys(_T).join("")+"]","g"),KT="function"==typeof String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(XT,e=>_T[e]):e=>e;var ZT=class{constructor(e,{location:t=zT.location,threshold:n=zT.threshold,distance:r=zT.distance,includeMatches:i=zT.includeMatches,findAllMatches:o=zT.findAllMatches,minMatchCharLength:a=zT.minMatchCharLength,isCaseSensitive:s=zT.isCaseSensitive,ignoreDiacritics:l=zT.ignoreDiacritics,ignoreLocation:c=zT.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreDiacritics:l,ignoreLocation:c},e=s?e:e.toLowerCase(),e=l?KT(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:GT(e),startIndex:t})},f=this.pattern.length;if(f>32){let e=0;const t=f%32,n=f-t;for(;e<n;)u(this.pattern.substr(e,32),e),e+=32;if(t){const e=f-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?KT(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};const t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}const{location:i,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,ignoreLocation:c}=this.options,u=[];let f=0,d=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:h})=>{const{isMatch:p,score:g,indices:m}=WT(e,t,n,{location:i+h,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,includeMatches:r,ignoreLocation:c});p&&(d=!0),f+=g,p&&m&&u.push(...m)});const h={isMatch:d,score:d?f/this.chunks.length:1};return d&&r&&(h.indices=JT(u)),h}};const eQ=new Set(["fuzzy","include"]);function tQ(e){return e.startsWith("inverse")}const nQ=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(t){const n=t===e;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(t){let n,r=0;const i=[],o=e.length;for(;(n=t.indexOf(e,r))>-1;)r=n+o,i.push([n,r-1]);const a=!!i.length;return{isMatch:a,score:a?0:1,indices:i}}})},{type:"prefix-exact",multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:"prefix-exact",search(t){const n=t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(t){const n=!t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(t){const n=!t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(t){const n=t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[t.length-e.length,t.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(t){const n=-1===t.indexOf(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{const n=new ZT(e,{location:t.location??zT.location,threshold:t.threshold??zT.threshold,distance:t.distance??zT.distance,includeMatches:t.includeMatches??zT.includeMatches,findAllMatches:t.findAllMatches??zT.findAllMatches,minMatchCharLength:t.minMatchCharLength??zT.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??zT.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??zT.ignoreDiacritics,ignoreLocation:t.ignoreLocation??zT.ignoreLocation});return{type:"fuzzy",search:e=>n.searchIn(e)}}}],rQ=nQ.length;function iQ(e,t){const n=e.match(t);return n?n[1]:null}const oQ=[];function aQ(...e){oQ.push(...e)}function sQ(e,t){for(let n=0,r=oQ.length;n<r;n+=1){const r=oQ[n];if(r.condition(e,t))return new r(e,t)}return new ZT(e,t)}const lQ="$and",cQ="$or",uQ="$path",fQ="$val",dQ=e=>!(!e[lQ]&&!e[cQ]),hQ=e=>({[lQ]:Object.keys(e).map(t=>({[t]:e[t]}))});function pQ(e,t,{auto:n=!0}={}){const r=e=>{if(FT(e)){const r={keyId:null,pattern:e};return n&&(r.searcher=sQ(e,t)),r}const i=Object.keys(e),o=(e=>!!e[uQ])(e);if(!o&&i.length>1&&!dQ(e))return r(hQ(e));if((e=>!ST(e)&&MT(e)&&!dQ(e))(e)){const r=o?e[uQ]:i[0],a=o?e[fQ]:e[r];if(!FT(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={keyId:PT(r),pattern:a};return n&&(s.searcher=sQ(a,t)),s}const a={children:[],operator:i[0]};return i.forEach(t=>{const n=e[t];ST(n)&&n.forEach(e=>{a.children.push(r(e))})}),a};return dQ(e)||(e=hQ(e)),r(e)}function gQ(e,{ignoreFieldNorm:t=zT.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{const o=e?e.weight:null;n*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:r))}),n}var mQ=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):this.comparator(e,this.heap[0])<0&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(){return this.heap.sort(this.comparator)}_bubbleUp(e){const t=this.heap;for(;e>0;){const n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;const r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){const t=this.heap,n=t.length;let r=e;do{const i=2*(e=r)+1,o=2*e+2;if(i<n&&this.comparator(t[i],t[r])>0&&(r=i),o<n&&this.comparator(t[o],t[r])>0&&(r=o),r!==e){const n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function yQ(e,t,{includeMatches:n=zT.includeMatches,includeScore:r=zT.includeScore}={}){return e.map(e=>{const{idx:i}=e,o={item:t[i],refIndex:i};return n&&(o.matches=function(e){const t=[];return e.matches.forEach(e=>{if(!TT(e.indices)||!e.indices.length)return;const n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}(e)),r&&(o.score=e.score),o})}const vQ=/[\p{L}\p{M}\p{N}_]+/gu,AQ=new WeakSet;function bQ(e){if("function"==typeof e){let t=!1;return n=>{const r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>"string"!=typeof e)))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?"array containing non-strings":typeof r}.`);return r}}return e instanceof RegExp?(e.global||function(e){AQ.has(e)||(AQ.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}(e),t=>t.match(e)||[]):e=>e.match(vQ)||[]}function wQ({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){const r=bQ(n);return{tokenize:n=>(e||(n=n.toLowerCase()),t&&(n=KT(n)),r(n))}}function IQ(e,t,n,r){const i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);const o=new Set(i);let a=e.docTermFieldHits.get(n);a||(a=new Map,e.docTermFieldHits.set(n,a));for(const t of o)a.set(t,(a.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function xQ(e,t,n,r){const{i:i,v:o,$:a}=t;if(void 0===o){if(a)for(let t=0;t<n;t++){const n=a[t];if(n)if(Array.isArray(n))for(const t of n)IQ(e,t.v,i,r);else IQ(e,n.v,i,r)}}else IQ(e,o,i,r)}function CQ(e,t){const n=e.docFieldCount.get(t);if(void 0===n)return;e.fieldCount-=n,e.docFieldCount.delete(t);const r=e.docTermFieldHits.get(t);if(r){for(const[t,n]of r){const r=(e.df.get(t)||0)-n;r<=0?e.df.delete(t):e.df.set(t,r)}e.docTermFieldHits.delete(t)}}function BQ(e,t){if(0===t.length)return;const n=Array.from(new Set(t)).sort((e,t)=>e-t);for(const t of n)CQ(e,t);const r=e=>{let t=0,r=n.length;for(;t<r;){const i=t+r>>>1;n[i]<e?t=i+1:r=i}return e-t},i=n[0],o=new Map;for(const[t,n]of e.docFieldCount)o.set(t>i?r(t):t,n);e.docFieldCount=o;const a=new Map;for(const[t,n]of e.docTermFieldHits)a.set(t>i?r(t):t,n);e.docTermFieldHits=a}var EQ=class{constructor(e,t,n){this.options={...zT,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new HT(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;const t=sQ(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof VT))throw new Error("Incorrect 'index' type");if(this._myIndex=t||YT(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const e=wQ({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=function(e,t,n){const r={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(const i of e)xQ(r,i,t,n);return r}(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!TT(e))return;this._docs.push(e);const t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){const e=wQ({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});!function(e,t,n,r){xQ(e,t,n,r)}(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){const t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){this._invertedIndex&&BQ(this._invertedIndex,n);const e=new Set(n);this._docs=this._docs.filter((t,n)=>!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw new Error(RT);this._invertedIndex&&BQ(this._invertedIndex,[e]);const t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){const{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:o,sortFn:a,ignoreFieldNorm:s}=this.options;if(FT(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return DT(n)&&n>-1&&(e=e.slice(0,n)),e}const l=o&&DT(n)&&n>0&&FT(e),c=a,u=(e,t)=>c(e,t)||e.idx-t.idx;let f;if(l){const t=new mQ(n,u);FT(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),f=t.extractSorted()}else f=FT(e)?FT(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),function(e,{ignoreFieldNorm:t=zT.ignoreFieldNorm}){e.forEach(e=>{e.score=gQ(e.matches,{ignoreFieldNorm:t})})}(f,{ignoreFieldNorm:s}),o&&f.sort(FT(e)?u:c),DT(n)&&n>-1&&(f=f.slice(0,n));return yQ(f,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){const r=this._getSearcher(e),i=this.options.useTokenSearch&&"all"===this.options.tokenMatch,{records:o}=this._myIndex,a=t?null:[];return o.forEach(({v:e,i:o,n:s})=>{if(!TT(e))return;const l=r.searchIn(e);if(l.isMatch){const r={score:l.score,value:e,norm:s,indices:l.indices};i&&(r.matchedMask=l.matchedMask,r.matchedTerms=l.matchedTerms,r.termCount=l.termCount);const c=[r];if(!i||this._coversAllTokens(c)){const r={item:e,idx:o,matches:c};t?(r.score=gQ(r.matches,{ignoreFieldNorm:n}),t.insert(r)):a.push(r)}}}),a}_searchLogical(e){const t=pQ(e,this.options),n=this._normalizedKeys(),r=(e,t,i)=>{if(!("children"in e)){const{keyId:r,searcher:o}=e;let a;return null===r?(a=[],n.forEach((e,n)=>{a.push(...this._findMatches({key:e,value:t[n],searcher:o}))})):a=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:o}),a&&a.length?[{idx:i,item:t,matches:a}]:[]}const{children:o,operator:a}=e,s=[];for(let e=0,n=o.length;e<n;e+=1){const n=o[e],l=r(n,t,i);if(l.length)s.push(...l);else if(a===lQ)return[]}return s},i=this._myIndex.records,o=new Map,a=[];return i.forEach(({$:e,i:n})=>{if(TT(e)){const i=r(t,e,n);i.length&&(o.has(n)||(o.set(n,{idx:n,item:e,matches:[]}),a.push(o.get(n))),i.forEach(({matches:e})=>{o.get(n).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){const r=this._getSearcher(e),i=this.options.useTokenSearch&&"all"===this.options.tokenMatch,{records:o}=this._myIndex,a=this._normalizedKeys(),s=t?null:[];return o.forEach(({$:e,i:o})=>{if(!TT(e))return;const l=[];let c=!1,u=!1;if(a.forEach((t,n)=>{const i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(l.push(...i),i[0].hasInverse&&(u=!0)):c=!0}),(!u||!c)&&l.length&&(!i||this._coversAllTokens(l))){const r={idx:o,item:e,matches:l};t?(r.score=gQ(r.matches,{ignoreFieldNorm:n}),t.insert(r)):s.push(r)}}),s}_findMatches({key:e,value:t,searcher:n}){if(!TT(t))return[];const r=[];if(ST(t))t.forEach(({v:t,i:i,n:o})=>{if(!TT(t))return;const a=n.searchIn(t);if(a.isMatch){const n={score:a.score,key:e,value:t,idx:i,norm:o,indices:a.indices,hasInverse:a.hasInverse};void 0!==a.termCount&&(n.matchedMask=a.matchedMask,n.matchedTerms=a.matchedTerms,n.termCount=a.termCount),r.push(n)}});else{const{v:i,n:o}=t,a=n.searchIn(i);if(a.isMatch){const t={score:a.score,key:e,value:i,norm:o,indices:a.indices,hasInverse:a.hasInverse};void 0!==a.termCount&&(t.matchedMask=a.matchedMask,t.matchedTerms=a.matchedTerms,t.termCount=a.termCount),r.push(t)}}return r}_coversAllTokens(e){const t=e.length?e[0].termCount:void 0;if(void 0===t)return!0;if(t<=31){let n=0;for(let t=0;t<e.length;t++)n|=e[t].matchedMask||0;return n===2**t-1}const n=new Set;for(let t=0;t<e.length;t++){const r=e[t].matchedTerms;if(r)for(const e of r)n.add(e)}return n.size===t}};EQ.version="7.5.0",EQ.createIndex=YT,EQ.parseIndex=function(e,{getFn:t=zT.getFn,fieldNormWeight:n=zT.fieldNormWeight}={}){const{keys:r,records:i}=e,o=new VT({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(i),o},EQ.config=zT,EQ.match=function(e,t,n){if(n&&n.useTokenSearch)throw new Error("Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.");return sQ(e,{...zT,...n}).searchIn(t)},EQ.parseQuery=pQ,aQ(class{constructor(e,{isCaseSensitive:t=zT.isCaseSensitive,ignoreDiacritics:n=zT.ignoreDiacritics,includeMatches:r=zT.includeMatches,minMatchCharLength:i=zT.minMatchCharLength,ignoreLocation:o=zT.ignoreLocation,findAllMatches:a=zT.findAllMatches,location:s=zT.location,threshold:l=zT.threshold,distance:c=zT.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:a,ignoreLocation:o,location:s,threshold:l,distance:c},e=t?e:e.toLowerCase(),e=n?KT(e):e,this.pattern=e,this.query=function(e,t={}){return e.replace(/\\\|/g,"\0").split("|").map(e=>{const n=function(e){const t=[],n=e.length;let r=0;for(;r<n;){for(;r<n&&" "===e[r];)r++;if(r>=n)break;let i=r;for(;i<n&&" "!==e[i]&&'"'!==e[i];)i++;if(i<n&&'"'===e[i]){for(i++;i<n;){if('"'===e[i]){const t=i+1;if(t>=n||" "===e[t]){i++;break}if("$"===e[t]&&(t+1>=n||" "===e[t+1])){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&" "!==e[i];)i++;t.push(e.substring(r,i)),r=i}}return t}(e.replace(/\u0000/g,"|").trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){const i=n[e];let o=!1,a=-1;for(;!o&&++a<rQ;){const e=nQ[a],n=iQ(i,e.multiRegex);n&&(r.push(e.create(n,t)),o=!0)}if(!o)for(a=-1;++a<rQ;){const e=nQ[a],n=iQ(i,e.singleRegex);if(n){r.push(e.create(n,t));break}}}return r})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?KT(e):e;let o=0;const a=[];let s=0,l=!1;for(let r=0,i=t.length;r<i;r+=1){const i=t[r];a.length=0,o=0,l=!1;for(let t=0,r=i.length;t<r;t+=1){const r=i[t],{isMatch:c,indices:u,score:f}=r.search(e);if(!c){s=0,o=0,a.length=0,l=!1;break}o+=1,s+=f,tQ(r.type)&&(l=!0),n&&(eQ.has(r.type)?a.push(...u):a.push(u))}if(o){const e={isMatch:!0,score:s/o};return l&&(e.hasInverse=!0),n&&(e.indices=JT(a)),e}}return{isMatch:!1,score:1}}}),aQ(class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=wQ({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});const n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(const e of n){this.termSearchers.push(new ZT(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));const n=r.get(e)||0,o=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(o)}this.combineAll="all"===t.tokenMatch,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};const t=[];let n=0,r=0,i=0,o=0;const a=this.combineAll&&!this.useMask?new Set:null;for(let s=0;s<this.termSearchers.length;s++){const l=this.termSearchers[s].searchIn(e),c=this.idfWeights[s];r+=c,l.isMatch&&(i++,n+=c*(1-l.score),l.indices&&t.push(...l.indices),this.combineAll&&(this.useMask?o|=1<<s:a.add(s)))}if(0===i)return{isMatch:!1,score:1};const s=r>0?1-n/r:0,l={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(l.indices=JT(t)),this.combineAll&&(this.useMask?l.matchedMask=o:l.matchedTerms=a,l.termCount=this.numTerms),l}}),EQ.use=function(...e){e.forEach(e=>aQ(e))};var SQ=EQ;function kQ(e){return function(e,t){var n=null==e?0:e.length;return n?ma(e,t)/n:NaN}(e,fn)}function FQ(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:{};if(!Se(e))return r("invalid data");let i=null,o=null;try{i=e.results,o=e.binarys}catch(e){return r(e.toString())}if(!Fe(i))return r("invalid results");if(!Be(o))return r("invalid binarys");let a=/^\[BlazeFor(Uint8Array|Uint16Array|ArrayBuffer)\]::(\d+)$/,s=/^\[BlazeForPreventEscape\](?:\[BlazeForPreventEscape\])*\[BlazeFor(?:Uint8Array|Uint16Array|ArrayBuffer)\]::\d+$/,l={};try{l=JSON.parse(i,function(e,t){if(!Fe(t)||91!==t.charCodeAt(0))return t;let n=a.exec(t);if(null===n)return s.test(t)?t.slice(23):t;let r=Number(n[2]);if(r>=o.length)throw new Error(`binary index out of range[${r}], binarys.length[${o.length}]`);return((e,t,n)=>{if("Uint16Array"===e&&!dN(n)){if(!ls(n))throw new Error(`binarys[${t}] can not be restored to Uint16Array`);if(n.byteLength%2!=0)throw new Error(`binarys[${t}] byteLength[${n.byteLength}] is not even, can not be restored to Uint16Array`);let e=0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n:new Uint8Array(n);return new Uint16Array(e.buffer)}if("ArrayBuffer"===e&&!xe(n)){if(!ls(n))throw new Error(`binarys[${t}] can not be restored to ArrayBuffer`);return n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}return n})(n[1],r,o[r])})}catch(e){return r(e.toString())}return n?{state:"success",msg:l}:l}function DQ(e,n=null,r={}){let i=be(r,"returnWithStateAndMsg",null);Ie(i)||(i=!1);let o=(e,t)=>i?{state:"error",msg:e}:{today:null,msg:"",err:t};if(!Oi(t))throw new Error("invalid dayjs");if(!IM(e))return o("invalid t","時間格式錯誤");let a=null;try{a=function(e,n){let r=t();IM(n)&&(r=t(n,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=t(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r>i)return{today:null,msg:"",err:"時間已過"};let o,a=r.format("YYYY-MM-DD"),s=i.format("YYYY-MM-DD"),l=t(a,"YYYY-MM-DD"),c=t(s,"YYYY-MM-DD"),u=i.diff(r,"seconds"),f=i.diff(r,"minutes"),d=i.diff(r,"hours"),h=c.diff(l,"days"),p=c.diff(l,"weeks"),g=c.diff(l,"months"),m=c.diff(l,"years"),y="即將到來";if(u>=0&&(o=!0,y=u+"秒後"),f>0&&(o=!0,y=f+"分鐘後"),d>0){let e=i.format("HH:mm");a===s?(o=!0,y=d+"小時後,今天"+e):(o=!1,y=d+"小時後,明天"+e)}return h>1&&(o=!1,y=2===h?"後天":h+"天後"),p>0&&(o=!1,y=p+"周後"),g>0&&(o=!1,y=g+"個月後"),m>0&&(o=!1,y=m+"年後"),{today:o,msg:y,err:""}}(e,n)}catch(e){return o(e.toString(),"時間轉換失敗")}return s=a,i?{state:"success",msg:s}:s;var s}function NQ(e,n=null,r={}){let i=be(r,"returnWithStateAndMsg",null);Ie(i)||(i=!1);let o=(e,t)=>i?{state:"error",msg:e}:{today:null,msg:"",err:t};if(!Oi(t))throw new Error("invalid dayjs");if(!IM(e))return o("invalid t","時間格式錯誤");let a=null;try{a=function(e,n){let r=t();IM(n)&&(r=t(n,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=t(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r<i)return{today:null,msg:"",err:"時間未到"};let o=r.format("YYYY-MM-DD"),a=i.format("YYYY-MM-DD"),s=t(o,"YYYY-MM-DD"),l=t(a,"YYYY-MM-DD"),c=r.diff(i,"seconds"),u=r.diff(i,"minutes"),f=r.diff(i,"hours"),d=s.diff(l,"days"),h=s.diff(l,"weeks"),p=s.diff(l,"months"),g=s.diff(l,"years"),m=!1,y="剛剛";if(c>=0&&(m=!0,y=c+"秒前"),u>0&&(m=!0,y=u+"分鐘前"),f>0){let e=i.format("HH:mm");o===a?(m=!0,y=f+"小時前"):(m=!1,y="昨天"+e)}return d>1&&(m=!1,y=d+"天前"),h>0&&(m=!1,y=h+"周前"),p>0&&(m=!1,y=p+"個月前"),g>0&&(m=!1,y=g+"年前"),{today:m,msg:y,err:""}}(e,n)}catch(e){return o(e.toString(),"時間轉換失敗")}return s=a,i?{state:"success",msg:s}:s;var s}function MQ(e){let t=wM.sepTZ(e);return e=`${t.t}.000${t.tz}`}function TQ(e){let t=wM.sepTZ(e);return e=`${t.t}.000${t.tz}`}function QQ(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!ls(e))return r("invalid u8a");let i="";try{let t=QM(e,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`u8arr2b64: ${t.msg}`);i=$a(t.msg)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}e.ab2blob=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Blob;if(!xe(e))return r("invalid ab");let i=null;try{let t=Ce(e,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`ab2u8arr: ${t.msg}`);i=new Blob([t.msg])}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.ab2u8arr=Ce,e.addExcelWorksheetFromData=function(e,t,n="data"){if(!Se(e))return{error:"wb is not an effective object"};if(!Be(be(e,"sheets")))return{error:"wb.sheets is not an array"};Fe(n)||(n="data");let r=ur(t);return Te(r,"error")?r:(e.sheets.push({...r,name:n}),e)},e.addMonth=function(e,n){return fr(e)&&Cr(n)?t(e,"YYYY-MM").add(n,"months").format("YYYY-MM"):""},e.aes2str=Kr,e.alive=function(e={}){let t=qi(),n={},r=null,i=be(e,"timeAlive");Wi(i)||(i=1e4),i=Yi(i),i=Math.min(i,Ri);let o=be(e,"timeDetect");return Wi(o)||(o=50),o=Yi(o),o=Math.min(o,Ri),t.trigger=function(e,a){Fe(e)?(Te(n,e)||setTimeout(()=>{Pi(t,"message",[{eventName:"enter",key:e,data:a,now:ar(n)}],{tag:"alive"})},1),n[e]={data:a,time:Date.now()},null===r&&(r=setInterval(()=>{An(n,(e,r)=>{if(Date.now()-e.time>i){let e=Li(n[r]);delete n[r],Pi(t,"message",[{eventName:"leave",key:r,data:e.data,now:ar(n)}],{tag:"alive"})}}),Se(n)||(clearInterval(r),r=null)},o))):console.log("trigger need key")},t.get=function(){let e=[];return An(n,(t,n)=>{e.push({key:n,data:t.data})}),e=Li(e),e},t},e.arr2dt=function(e,t=""){if(!Tn(e))return{};if(Tn(t))return ar(e)===ar(t)?Gi(e,t):{};let n=[];for(let r=0;r<ar(e);r++)n.push(Li(t));return Gi(e,n)},e.arrAccum=function(e){if(!Tn(e))return[];let t=[],n=0;return An(e,function(e){n+=xr(e),Me(e)?t.push(n):t.push("")}),t},e.arrAdd=function(){if(ar(arguments)<2)return[];let e=arguments[0];for(let t=1;t<ar(arguments);t++){e=Ji(e,arguments[t])}return e},e.arrAt=yo,e.arrDiff=Zo,e.arrFilterByKeywords=function(e,t){if(!Tn(e))return[];if(!Fe(t)&&!Tn(t))return[];let n=null;n=Fe(t)?na(t," "):t;let r=ar(n);return wn(e,e=>function(e){let t=!1,i=0;for(let o=0;o<r;o++){let a=n[o],s=a,l="+"===ra(a,1),c="-"===ra(a,1);if((l||c)&&(s=oa(a,1)),""===ea(s))continue;let u=e.indexOf(s)>=0;if(l){if(u){t=!0,i=1;break}t=!1,i=0;break}if(c){if(u){t=!1,i=0;break}t=!0,i=1;break}if(u){t=!0;let e=1-o/r;e=e**2,i+=e}}return{hasKeyword:t,weight:i}}(e))},e.arrFilterByNum=function(e){return Tn(e)?e=wn(e=sa(e=Li(e),Me),xr):[]},e.arrFilterByPnum=ca,e.arrFilterByPnumAndToLog=function(e){return Tn(e)?e=wn(e=ca(e),Math.log):[]},e.arrFind=function(e,t){function n(e){return Be(e)?e:[e]}return Mn(e)||0===(e=n(e)).length||Mn(t)?[]:wn(t=n(t),function(t){let n=-1;for(let r=0;r<e.length;r++)if(ua(e[r],t)){n=r;break}return n})},e.arrGroupByMaxmin=function(e,t,n={}){let r=be(n,"keyMax");Fe(r)||(r="max");let i=be(n,"keyMin");Fe(i)||(i="min");let o=be(n,"keyValue");Fe(o)||(o="value");let a=be(n,"keyItems");if(Fe(a)||(a="items"),!Tn(e))return[];if(!Tn(t))return[];let s=Li(t);return An(e,(e,n)=>{let l=be(e,o);Me(l)?l=xr(l):Me(e)&&(l=xr(e)),fa(l)&&An(t,(t,n)=>{let o=be(t,r,null),c=be(t,i,null);if(null!==o&&null!==c&&Me(o)&&Me(c)){let r=be(t,"maxType");"<="!==r&&"<"!==r&&(r="<=");let i,u,f=be(t,"minType");">="!==f&&">"!==f&&(f=">="),o=xr(o),c=xr(c),i=">="===f?l>=c:l>c,u="<="===r?l<=o:l<o,i&&u&&(Te(s[n],a)||(s[n][a]=[]),s[n][a].push(e))}})}),s},e.arrHas=da,e.arrInsert=function(e,t,n){if(!Be(e))return[];if(Be(n)||(n=[n]),!mo(t))return e;if((t=Yi(t))>ar(e))return e;let r=e;try{r=[...e.slice(0,t),...n,...e.slice(t)]}catch(e){}return r},e.arrLookupByMaxmin=function(e,t,n={}){let r=be(n,"keyMax");Fe(r)||(r="max");let i=be(n,"keyMin");Fe(i)||(i="min");let o=be(n,"keyValue");Fe(o)||(o="value");let a=be(n,"keyItems");Fe(a)||(a="items");let s=be(n,"beforeAddResult",null);if(!Tn(e))return[];if(!Tn(t))return[];if(!Se(be(e,0)))return[];let l=Li(e);return An(l,(e,n)=>{let c=be(e,o);Me(c)&&(c=xr(c)),fa(c)&&An(t,(e,t)=>{let o=be(e,r,null),u=be(e,i,null);if(null!==o&&null!==u&&Me(o)&&Me(u)){let t=be(e,"maxType");"<="!==t&&"<"!==t&&(t="<=");let r,i,f=be(e,"minType");">="!==f&&">"!==f&&(f=">="),o=xr(o),u=xr(u),r=">="===f?c>=u:c>u,i="<="===t?c<=o:c<o,r&&i&&(Oi(s)&&(e=s(e,l[n],n)),Te(l[n],a)||(l[n][a]=[]),l[n][a].push(e))}})}),l},e.arrMax=function(e,t={}){if(!Tn(e))return null;let n=be(t,"returnIndex");Ie(n)||(n=!1);let r=be(t,"compareKey",null),i=e;Fe(r)&&(i=wn(e,(e,t)=>be(e,r,"")));let o=null,a=ha(i,(e,t)=>Me(t)?(t=xr(t),null===e?(o=t,t):(e=Math.max(e,t),o=e,e)):e,{returnIndex:!0});if(n)return a;let s=null;return a>=0&&(s=Fe(r)?e[a]:o),s},e.arrMin=function(e,t={}){if(!Tn(e))return null;let n=be(t,"returnIndex");Ie(n)||(n=!1);let r=be(t,"compareKey",null),i=e;Fe(r)&&(i=wn(e,(e,t)=>be(e,r,"")));let o=null,a=ha(i,(e,t)=>Me(t)?(t=xr(t),null===e?(o=t,t):(e=Math.min(e,t),o=e,e)):e,{returnIndex:!0});if(n)return a;let s=null;return a>=0&&(s=Fe(r)?e[a]:o),s},e.arrMulti=ga,e.arrNorm=function(e){if(!Tn(e))return null;let t=ya(e,e);return Me(t)?t<=0?null:Math.sqrt(t):null},e.arrProduct=ya,e.arrPull=function(e,t){if(!Tn(e))return[];if((Ee(t)||Me(t)||ke(t)||Ie(t))&&(t=[t]),!Tn(t))return e;let n=Li(e);return ba(n,t),n},e.arrPullAt=function(e,t){if(!Tn(e))return[];if(mo(t)&&(t=[t]),!Tn(t))return e;t=wn(t,e=>Yi(e));let n=Li(e);return Ea(n,t),n},e.arrReduce=ha,e.arrReverse=function(e){if(!Tn(e))return[];let t=Li(e);return ka(t),t},e.arrSep=function(e,t){if(!Tn(e))return[];if(!Wi(t)&&!Se(t))return[];let n="",r=null;if(Wi(t))r=t,n="numCount";else if(Se(t))if(Wi(be(t,"numCount")))r=t.numCount,n="numCount";else{if(!Wi(be(t,"numGroup")))throw new Error("invalid opt.numCount or opt.numGroup");r=t.numGroup,n="numGroup"}let i=ar(e),o=[];if("numCount"===n)for(let t=0;t<i;t+=r){let n=[];for(let o=0;o<r;o++){let r=t+o;r<i&&n.push(e[r])}o.push(n)}else if("numGroup"===n){for(let e=0;e<r;e++)o[e]=[];let t=-1;for(let n=0;n<i;n++)t++,t>r-1&&(t=0),o[t].push(e[n])}return o},e.arrSort=Pa,e.asind=function(e){return Me(e)?(e=xr(e),180*Math.asin(e)/Math.PI):null},e.atan2d=function(e,t){return Me(e)?(e=xr(e),Me(t)?(t=xr(t),180*Math.atan2(t,e)/Math.PI):null):null},e.atand=function(e){return Me(e)?(e=xr(e),180*Math.atan(e)/Math.PI):null},e.attstr=function(e={}){let t=";",n="@",r="table",i="id",o=be(e,"uniqItems");Ie(o)||(o=!1);let a=be(e,"dlmItem","");Fe(a)&&(t=a);let s=be(e,"dlmSep","");Fe(s)&&(n=s);let l=be(e,"keyTable","");Fe(l)&&(r=l);let c=be(e,"keyId","");Fe(c)&&(i=c);let u=be(e,"mode");function f(e){if(!Fe(e))return[];let n=Uo(e,t);return o&&(n=$n(n)),n}function d(e){if(!Tn(e))return"";return o&&(e=$n(e)),Ao(e,t)}function h(e){return e=sa(e,Fe),o&&(e=$n(e)),d(e)}function p(e){let t=[];return An(e,e=>{let o=be(e,r,""),a=be(e,i,"");if(Fe(o),ke(a)||(Be(a)?ar(a):a=""),ke(a))t.push(`${o}${n}${a}`);else if(Be(a)){let e=Ao(a,n);t.push(`${o}${n}${e}`)}}),e=d(t)}function g(e){if(!Fe(e))return[];return sa(f(e),Fe)}function m(e){if(!Fe(e))return[];let t=f(e),o=[];return An(t,e=>{let t=Uo(e,n),a=be(t,0,""),s=be(t,1,"");ar(t)>=3&&(t=Qa(t),s=t),o.push({item:e,[r]:a,[i]:s})}),o}function y(e,t){let n=[...g(e),...g(t)];return 0===ar(n)?"":h(n)}function v(e,t){let n=[...m(e),...m(t)];return 0===ar(n)?"":p(n)}function A(e,t){let n=g(e),r=g(t),i=[];return An(n,e=>{da(e,r)||i.push(e)}),0===ar(i)?"":h(i)}function b(e,t){let n=m(e),r=m(t),i=[];return An(n,e=>{da(e,r)||i.push(e)}),0===ar(i)?"":p(i)}"1p"!==u&&"2p"!==u&&(u="auto");let w={parse:function(e,t={}){if(!Fe(e))return[];let r=be(t,"mode");return"1p"!==r&&"2p"!==r&&(r=u),"1p"===r?g(e):"2p"===r||e.indexOf(n)>=0?m(e):g(e)},join:function(e,t={}){if(!Tn(e))return"";let n=be(t,"mode");if("1p"!==n&&"2p"!==n&&(n=u),"1p"===n)return h(e);if("2p"===n)return p(e);let o=be(e,0);return Te(o,r)&&Te(o,i)?p(e):h(e)},remove:function(e,t,r={}){if(!Fe(e))return"";if(!Fe(t))return e;let i=be(r,"mode");return"1p"!==i&&"2p"!==i&&(i=u),"1p"===i?A(e,t):"2p"===i||t.indexOf(n)>=0?b(e,t):A(e,t)},add:function(e,t,r={}){let i=be(r,"mode");if("1p"!==i&&"2p"!==i&&(i=u),"1p"===i)return y(e,t);if("2p"===i)return v(e,t);let o=e.indexOf(n)>=0,a=t.indexOf(n)>=0;return o||a?v(e,t):y(e,t)}};return w},e.b642obj=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:{};if(!ke(e))return r("invalid b64");let i={};try{let t=$a(e,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`b642str: ${t.msg}`);let n=za(t.msg,{returnWithStateAndMsg:!0});if("error"===n.state)return r(`j2o: ${n.msg}`);i=n.msg}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.b642str=$a,e.b642u16arr=Ga,e.b642u8arr=Wa,e.binstr=Ja,e.blob2ab=Za,e.blob2b64=es,e.blob2str=function(e){if(!Xa(e))return Promise.reject("invalid bb");if(!Ka())return Promise.reject("no window");let t=_a();try{let n=new FileReader;n.onload=function(){t.resolve(n.result)},n.onerror=function(e){t.reject(e)},n.readAsText(e)}catch(e){t.reject(e)}return t},e.blob2u8arr=ts,e.blobs2b64s=ns,e.blobs2u8arrs=rs,e.bodyLog=function(){let e=`\n <div style="padding:5px; font-size:10pt; font-family:Microsoft JhengHei, Helvetica;">\n <span style="color:#f26;">log: </span>\n <code>${as(wn(arguments,function(e){return sr(e)}).join(", "))}</code>\n </div>\n `;document.querySelector("body").insertAdjacentHTML("beforeend",e)},e.browserView=ss,e.browserViewFromBlob=function(e,t){Xa(e)&&ss(e,t)},e.browserViewFromText=function(e){ke(e)&&ss(e,"text/plain")},e.browserViewFromU8arr=function(e,t){ls(e)&&ss(e,t)},e.bs2u8arr=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!Fe(e))return r("invalid bs");let i=null;try{let t=e.length;i=new Uint8Array(t);for(let n=0;n<t;n++)i[n]=e.charCodeAt(n)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.bufRead=cs,e.bufReadDbl=us,e.bufWrite=fs,e.bufWriteDbl=ds,e.cache=function(){let e=qi(),t={};function n(t,n){hs(e,t,[n],{tag:"cache"})}function r(e,r={}){if(Te(t,e))return;let i=be(r,"fun");Oi(i)||(i=async()=>{});let o=be(r,"inputs");Be(o)||(o=[]);let a=be(r,"timeExpired");Wi(a)||(a=5e3),a=Yi(a);let s=be(r,"timeFrom");"end"!==s&&(s="start");let l=be(r,"useCacheWhenError");Ie(l)||(l=!1);let c=be(r,"useCloneDeep");Ie(c)||(c=!0),t[e]={needExec:!0,fun:i,pm:null,gen:0,inputs:o,value:null,time:null,timeExpired:a,timeFrom:s,useCacheWhenError:l,useCloneDeep:c},n("message",{fun:"set",key:e,timeExpired:a,timeFrom:s,useCacheWhenError:l,useCloneDeep:c})}async function i(e,r={}){if(Te(t,e)){let i=t[e],o=be(r,"useCloneDeep");if(Ie(o)||(o=i.useCloneDeep),i.pm)return n("message",{fun:"get",key:e,msg:"waiting"}),await i.pm,o?Li(i.value):i.value;let a=Date.now(),s=i.needExec,l=a-i.time;if(s?n("message",{fun:"get",key:e,msg:"execute first"}):i.timeExpired>0&&l>i.timeExpired&&(n("message",{fun:"get",key:e,msg:"execute by timeExpired",timeDiff:l}),s=!0),s){n("message",{fun:"get",key:e,msg:"fun start"}),i.needExec=!1;let t=i.gen,r=async()=>{try{let r;try{r=await i.fun(...i.inputs)}catch(o){if(n("error",{fun:"get",key:e,msg:o}),!i.useCacheWhenError)throw i.gen===t&&(i.needExec=!0),o;r=void 0}i.gen===t&&(i.value=r,i.time="end"===i.timeFrom?Date.now():a)}finally{i.pm=null,n("message",{fun:"get",key:e,msg:"fun end"})}};i.pm=r(),await i.pm}else n("message",{fun:"get",key:e,msg:"use cache"});return o?Li(i.value):i.value}return n("error",{fun:"get",key:e,msg:"invalid key"}),null}return e.set=r,e.getProxy=async function(e,t={}){return r(e,t),i(e,t)},e.get=i,e.update=function(e,r){Te(t,e)&&(n("message",{fun:"updateValue",key:e}),t[e].value=r,t[e].time=Date.now(),t[e].gen+=1)},e.clear=function(e){Te(t,e)&&(n("message",{fun:"clear",key:e}),t[e].needExec=!0)},e.remove=function(e){Te(t,e)&&(n("message",{fun:"remove",key:e}),delete t[e])},e},e.cacheBd=function(e,t={}){let n=be(t,"nMax");Wi(n)||(n=200),n=Yi(n);let r=be(t,"nTrigger");Wi(r)||(r=3),r=Yi(r);let i=null,o=!1,a=async(...t)=>(o=!0,i=await e(...t),o=!1,i);return{get:a,getFromCache:async(...e)=>{for(let t=1;t<=n&&(t>r&&!o&&await a(...e).catch(()=>{}),null===i);t++)await ps(1e3);if(null===i)throw new Error(`exceeded nMax[${n}]`);return i}}},e.cacheSt=function(e={}){let t=be(e,"timeExpire",null);Wi(t)||(t=18e5),t=Yi(t),t=Math.min(t,Ri);let n=be(e,"timeDetect",null);Wi(n)||(n=2e3),n=Yi(n),n=Math.min(n,Ri);let r=qi(),i={},o=e=>{if(Te(i,e)){return Pi(r,"checkWithSet",[{state:"error",msg:`checkWithSet: key in use: ${e}`}],{tag:"cacheSt"}),!1}return i[e]={time:Date.now(),value:!0},Pi(r,"checkWithSet",[{state:"success",msg:`checkWithSet: ${e}`}],{tag:"cacheSt"}),!0},a=setInterval(()=>{Pi(r,"detect",[{state:"start"}],{tag:"cacheSt"});let e=Date.now();for(let n of Object.keys(i)){let r=i[n];r&&e-r.time>t&&delete i[n]}Pi(r,"detect",[{state:"finish"}],{tag:"cacheSt"})},n);return r.checkWithSet=o,r.setWithFree=async(e,t)=>{Pi(r,"setWithFree",[{state:"start"}],{tag:"cacheSt"});let n=[];for(let t of e){if(!o(t)){for(let e of n)delete i[e];let e=`setWithFree: key in use: ${t}`;return Pi(r,"setWithFree",[{state:"error",msg:e}],{tag:"cacheSt"}),Promise.reject(e)}n.push(t)}try{let n=await t(),i=`setWithFree: ${e.join(", ")}`;return Pi(r,"setWithFree",[{state:"success",msg:i}],{tag:"cacheSt"}),n}catch(e){let t=`setWithFree: fn threw: ${e&&e.message||e}`;throw Pi(r,"setWithFree",[{state:"error",msg:t}],{tag:"cacheSt"}),e}finally{for(let e of n)delete i[e]}},r.set=async(e,t=!0)=>{i[e]={time:Date.now(),value:t},Pi(r,"set",[{state:"success",msg:`set: ${e}`}],{tag:"cacheSt"})},r.get=async e=>{let t=i[e],n=void 0===t?null:t.value;return Pi(r,"get",[{state:"success",msg:`get: ${e}`}],{tag:"cacheSt"}),n},r.check=async e=>{let t=Te(i,e);return Pi(r,"check",[{state:"success",msg:`check: ${e} = ${t}`}],{tag:"cacheSt"}),t},r.del=async e=>{delete i[e],Pi(r,"del",[{state:"success",msg:`del: ${e}`}],{tag:"cacheSt"})},r.waitExist=async(e,t={})=>{let n=be(t,"attemptNum",null);Wi(n)||(n=30),n=Yi(n);let o=be(t,"timeInterval",null);Wi(o)||(o=100),o=Yi(o),Pi(r,"waitExist",[{state:"start"}],{tag:"cacheSt"});try{await ms(()=>Te(i,e),{attemptNum:n,timeInterval:o})}catch(t){let i=`waitExist timeout (${n*o}ms): ${e}`;return Pi(r,"waitExist",[{state:"error",msg:i}],{tag:"cacheSt"}),Promise.reject(i)}Pi(r,"waitExist",[{state:"success",msg:`waitExist resolved: ${e}`}],{tag:"cacheSt"})},r.waitNotExist=async(e,t={})=>{let n=be(t,"attemptNum",null);Wi(n)||(n=30),n=Yi(n);let o=be(t,"timeInterval",null);Wi(o)||(o=100),o=Yi(o),Pi(r,"waitNotExist",[{state:"start"}],{tag:"cacheSt"});try{await ms(()=>!Te(i,e),{attemptNum:n,timeInterval:o})}catch(t){let i=`waitNotExist timeout (${n*o}ms): ${e}`;return Pi(r,"waitNotExist",[{state:"error",msg:i}],{tag:"cacheSt"}),Promise.reject(i)}Pi(r,"waitNotExist",[{state:"success",msg:`waitNotExist resolved: ${e}`}],{tag:"cacheSt"})},r.clear=()=>{clearInterval(a)},r},e.cbol=function(e){if(Ie(e))return e;if(0===e)return!1;if(1===e)return!0;let t=!1;return Fe(e)&&"true"===(e=ys(ea(e)))&&(t=!0),t},e.cdbl=xr,e.ceil=ec,e.cfilesize=function(e){return Me(e)?(e=xr(e))<1024?tc(e,1)+" b":e<1048576?tc(e/1024,1)+" kb":e<1073741824?tc(e/1024/1024,1)+" mb":e<1099511627776?tc(e/1024/1024/1024,1)+" gb":"":""},e.cfinancial=function(e,t=0){if(!Me(e))return"";if(!mo(t))return"";let n=(e=tc(e,t)).split("."),r=n[0],i=n.length>1?"."+n[1]:"",o=/(\d+)(\d{3})/;for(;o.test(r);)r=r.replace(o,"$1,$2");return r+i},e.cint=Yi,e.clearXSS=rc,e.clearXSSDyn=async function(e,t={},n){return Tn(n)||(n=["https://cdn.jsdelivr.net/npm/xss@1.0.15/dist/xss.min.js"]),await lc(n),rc(e)},e.color=pu,e.composeToTree=Bu,e.convertToTree=function(e,t={}){if(!Se(e)&&!Tn(e))return[];let n=be(t,"bindKey",null);Fe(n)||(n="id");let r=be(t,"bindParent",null);Fe(r)||(r="parentId");let i=be(t,"bindText",null);Fe(i)||(i="text");let o=be(t,"bindChildren",null);Fe(o)||(o="children");let a=be(t,"bindType",null);Fe(a)||(a="type");let s=be(t,"bindNumOfChilren",null);Fe(s)||(s="numOfChilren");let l=be(t,"bindRoot",null);Fe(l)||(l="root");let c=be(t,"saveExtProps",null);return Ie(c)||(c=!1),Fe(l)&&(e={[l]:e}),Bu(Su(e,{bindKey:n,bindParent:r,bindText:i,bindType:a,bindNumOfChilren:s}),{bindKey:n,bindParent:r,bindChildren:o,saveExtProps:c})},e.copyStrToClipboard=function(e,t={}){if(!ke(e))return"invalid input";let n=be(t,"eleParent");ku(n)||(n=document.body);let r=document.createElement("textarea");if(r.style.position="fixed",r.style.left=0,r.style.top=0,r.style.zIndex=-1,r.style.background="transparent",r.style.color="transparent",r.value=e,n.appendChild(r),r.select(),!Fu(r))return"ele can not be focusd";try{document.execCommand("copy")}catch(e){return"can not copy str to clipboard"}return n.removeChild(r),""},e.cosd=Du,e.cotd=function(e){return Me(e)?1/Nu(e=xr(e)):null},e.createExcelWorkbook=Mu,e.cscd=function(e){return Me(e)?1/Tu(e=xr(e)):null},e.cstr=Ta,e.day2cht=function(e,n=!1){if(!Qu(e))return"";let r=t(e,"YYYY-MM-DD"),i="";return i=n?r.month()+1+"月"+r.date()+"日":"民國 "+(r.year()-1911)+" 年 "+(r.month()+1)+" 月 "+r.date()+" 日",i},e.debounce=Lu,e.delay=ps,e.dig=tc,e.digExp=function(e,t=0){if(!Me(e))return"";if(!mo(t))return"";let n="";return n=0===(e=xr(e))?"0":Math.abs(e)<=1e-6?e.toExponential(t):tc(e,t),n},e.domAlert=function(e,t={}){if(!Fe(e))return;let n=be(t,"type","success");Te($u,n)||(n="success");let r=be(t,"icon",null);Fe(r)||(r=$u[n]);let i="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(i=t.position);let o=be(t,"time");fa(o)||(o=4e3),o<0&&(o=4e3);let a=be(t,"paddingStyle",null);null===a&&(a={top:14,right:26,bottom:14,left:14});let s="";{let e=be(a,"top",0),t=be(a,"bottom",0),n=be(a,"left",0);s=`padding:${e}px ${be(a,"right",0)}px ${t}px ${n}px;`}let l=be(t,"textColor","#000");l=uc(l,";","");let c=be(t,"backgroundColor","#fff");c=uc(c,";","");let u=be(t,"borderWidth",1),f=be(t,"borderColor","#ebeef5");f=uc(f,";","");let d=be(t,"borderRadius",8),h=be(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");h=uc(h,";","");let p=be(t,"closeIconShift",null);null===p&&(p={top:10,right:10});let g="";{let e=be(p,"top",""),t=be(p,"bottom",""),n=be(p,"left",""),r=be(p,"right","");fa(e)&&(e=`top:${e}px;`),fa(t)&&(t=`bottom:${t}px;`),fa(n)&&(n=`left:${n}px;`),fa(r)&&(r=`right:${r}px;`),g=`position:absolute; ${e} ${r} ${t} ${n}`}let m=`alt-${Hu()}`,y=`alt-${Hu()}`,v=`\n <div \n style="display:inline-block; color:${l}; background:${c}; border:${u}px solid ${f}; border-radius:${d}px; box-shadow:${h};"\n onmouseenter="ttWAlertFadeIn('${y}')"\n onmouseleave="ttWAlertFadeOut('${y}')"\n >\n <div style="position:relative; ${s}">\n\n <div style="display:flex; align-items:center;">\n <div style="margin-right:10px;">\n <div style="display:flex;">${r}</div>\n </div>\n <div>${e}</div>\n </div>\n\n <div style="${g}">\n <div \n id="${y}" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel('${m}')"\n >\n ${Pu}\n </div>\n </div>\n\n </div>\n </div>\n `,A=document.createElement("div");A.id=m,A.style.position="fixed",A.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",A.style.zIndex=-1,A.style.opacity=.001,i.indexOf("-left")>=0?A.style.transform="translateX(-100%)":A.style.transform="translateX(100%)",A.innerHTML=v,document.querySelector("body").appendChild(A);let b=_a();return function({id:e,position:t,time:n,pm:r}){zu[e]={id:e,position:t,ele:null,loc:{height:null,top:null,bottom:null,left:null,right:null},timeShow:n,timeStart:Date.now(),pm:r},Yu(),null===ju&&(ju=setInterval(()=>{An(zu,e=>{Date.now()-e.timeStart>e.timeShow&&(e.pm.resolve(),Wu(e.id))}),Se(zu)||(clearInterval(ju),ju=null)},50))}({id:m,position:i,time:o,pm:b}),b},e.domAppend=Gu,e.domCancelEvent=_u,e.domCompareText=function(e,t,n,r,i={}){if(!ku(e))return Promise.reject("invalid ele");let o=be(i,"format");"side"!==o&&"line"!==o&&(o="side");let a="side"===o?"side-by-side":"line-by-line",s=Wf();Fe(t)||(t="Text");let l=Wo(t,t,n,r),c=s.html(l,{drawFileList:!0,matching:"lines",outputFormat:a,...i});c=c.replace('<span class="d2h-file-list-title">Files changed (1)</span>',"");try{e.innerHTML=c}catch(e){console.log(e)}return{diff:l,html:c}},e.domConvertToPic=vm,e.domConvertToPicDyn=async function(e,t={},n){return await vm(e,t)},e.domDetect=function(e,t={}){let n=be(t,"timeInterval",null);Wi(n)||(n=20);let r=be(t,"tolerancePixel",null);Wi(r)||(r=1);let i,o=qi(),a={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0,windowWidth:0,windowHeight:0},s=Li(a),l={width:"",height:""};if(!Oi(e))return console.log("invalid f",e),null;i=setInterval(()=>{let t=e();if(t){let e={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight},n=s.offsetWidth-e.offsetWidth,i=s.offsetHeight-e.offsetHeight,c=Math.abs(n)>r,u=Math.abs(i)>r,f="";n>0?f="smaller":n<0&&(f="larger");let d="";if(i>0?d="smaller":i<0&&(d="larger"),l={width:f,height:d},c||u){let n={...s};setTimeout(()=>{e.offsetWidth>0&&e.offsetHeight>0&&(o.emit("resize",{sold:n,snew:e,smode:l,ele:t}),o.emit("resizeWithWindow",{sold:n,snew:e,smode:l,ele:t,from:"dom"}))},1)}a=s,s=e}},n);let c=e=>{o.emit("resizeWithWindow",{sold:a,snew:s,smode:l,from:"window"})};return window.addEventListener("resize",c),o.clear=()=>{clearInterval(i),window.removeEventListener("resize",c)},o},e.domDrag=function(e,t={}){if(!ku(e))return void console.log("ele is not a HTMLElement",e);let n=be(t,"attIdentify",null);Fe(n)||(n="dragid");let r=be(t,"attIndex",null);Fe(r)||(r="dragindex");let i=be(t,"attGroup",null);Fe(i)||(i="draggroup");let o=be(t,"group",null);Fe(o)||(o="group");let a=be(t,"previewOpacity",null);fa(a)||(a=.4);let s=be(t,"previewDisabledOpacity",null);fa(s)||(s=.2);let l=be(t,"previewBackground",null);Fe(l)||(l="white");let c=be(t,"previewBorderWidth",null);fa(c)||(c=1);let u=be(t,"previewBorderColor",null);Fe(u)||(u="#f26");let f=be(t,"timeDragStartDelay",null);fa(f)||(f=120);let d=`c${Hu(8)}`,h=o;e.setAttribute(i,h),e.setAttribute(n,d);let p=km(h,d,{attIdentify:n,previewOpacity:a,previewBackground:l,previewBorderWidth:c,previewBorderColor:u}),g=function(e,t){let n=[];return{bind:function(){let r;r="mousedown";let i=function(n){t.dragStart({e:n,ele:e,name:"mousedown"})};e.addEventListener(r,i,!1),n.push({ele:e,name:r,f:i}),r="touchstart";let o=function(n){t.dragStart({e:n,ele:e,name:"touchstart"})};e.addEventListener(r,o,!1),n.push({ele:e,name:r,f:o}),r="touchmove";let a=function(e){t.dragMove({e:e,name:"touchmove"}),e.cancelable&&e.preventDefault()};e.addEventListener(r,a,!1),n.push({ele:e,name:r,f:a})},unbind:function(){An(n,({ele:e,name:t,f:n})=>{e.removeEventListener(t,n)})}}}(e,{dragStart:e=>{p.emit(h+"-dragStart",e)},dragMove:e=>{p.emit(h+"-dragMove",e)}});g.bind(),Dm({gid:h,attGroup:i,attIndex:r,attIdentify:n,timeDragStartDelay:f,previewOpacity:a,previewDisabledOpacity:s});let m=qi();return p.on(o+"-change",e=>{e.tarEid===d&&m.emit("change",e)}),p.on(o+"-start",e=>{e.tarEid===d&&m.emit("start",e)}),p.on(o+"-move",e=>{e.tarEid===d&&m.emit("move",e)}),p.on(o+"-enter",e=>{e.tarEid===d&&m.emit("enter",e)}),p.on(o+"-leave",e=>{e.tarEid===d&&m.emit("leave",e)}),p.on(o+"-drop",e=>{e.tarEid===d&&m.emit("drop",e)}),m.setIsActive=function(e){Sm[h].isActive=e},m.unbind=function(){g.unbind(),function(e,t){let n=Sm[e],r=Li(n.eleIds);Am(r,t),n.eleIds=r,0===r.length&&(n.oevg.unbind(),n.pv.clear(),delete Sm[e])}(h,d)},m},e.domDragBarAndScroll=function(e,t,n={}){let r=null,i=null,o=null,a=null,s=null,l=null,c=null,u=null,f=null,d=null,h=null,p=null,g=null,m=null,y=null,v=!1,A=be(n,"getHeighRatio",null);R(A)||(A=()=>1);let b=be(n,"getWidthRatio",null);R(b)||(b=()=>1);let w=be(n,"stopScrollPropagationForPanel",null);we(w)||(w=!1);let I=be(n,"stopTouchDragPropagationForPanel",null);we(I)||(I=!1);let x=be(n,"useTouchDragForPanel",null);we(x)||(x=!0);let C=e,B=t,E=qi();return r=e=>{let t=e.deltaY/Math.abs(e.deltaY),n=e.deltaX/Math.abs(e.deltaX);E.emit("scrollPanel",{ratioY:t,ratioX:n}),w&&_u(e)},C.addEventListener("wheel",r),i=e=>{if(x){let t=be(e,"touches.0.clientY",0),n=be(e,"touches.0.clientX",0),r=-t*A(),i=-n*b();v=!0,E.emit("pressBar",{clientY:r,clientX:i}),I&&_u(e)}},C.addEventListener("touchstart",i),o=e=>{if(x&&v){let t=be(e,"touches.0.clientY",0),n=be(e,"touches.0.clientX",0),r=-t*A(),i=-n*b();E.emit("dragBar",{clientY:r,clientX:i}),I&&_u(e)}},C.addEventListener("touchmove",o,{passive:!1}),a=e=>{x&&v&&(v=!1,E.emit("freeBar"),I&&_u(e))},C.addEventListener("touchend",a),s=e=>{v=!0,E.emit("pressBar",{clientY:e.clientY,clientX:e.clientX})},B.addEventListener("mousedown",s),l=e=>{v&&(v=!1,E.emit("freeBar"))},B.addEventListener("mouseup",l),c=e=>{v=!0,E.emit("pressBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX})},B.addEventListener("touchstart",c),u=e=>{v&&(E.emit("dragBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX}),_u(e))},B.addEventListener("touchmove",u,{passive:!1}),f=e=>{v&&(v=!1,E.emit("freeBar"))},B.addEventListener("touchend",f),d=e=>{v&&E.emit("dragBar",{clientY:e.clientY,clientX:e.clientX})},window.addEventListener("mousemove",d),h=e=>{v&&(v=!1,E.emit("freeBar"),w&&_u(e))},window.addEventListener("mouseup",h),p=e=>{},window.addEventListener("scroll",p,{passive:!1}),g=e=>{},window.addEventListener("wheel",g,{passive:!1}),m=e=>{},document.addEventListener("scroll",m,{passive:!1}),y=e=>{},document.addEventListener("wheel",y,{passive:!1}),E.clear=function(){C.removeEventListener("wheel",r),C.removeEventListener("touchstart",i),C.removeEventListener("touchmove",o),C.removeEventListener("touchend",a),B.removeEventListener("mousedown",s),B.removeEventListener("mouseup",l),B.removeEventListener("touchstart",c),B.removeEventListener("touchmove",u),B.removeEventListener("touchend",f),window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",h),window.removeEventListener("scroll",p),window.removeEventListener("wheel",g),document.removeEventListener("scroll",m),document.removeEventListener("wheel",y)},E},e.domDragPreview=Em,e.domDropFiles=function(e){let t=!1,n=!1,r=qi();function i(e){_u(e),n=!0,!1===t&&(t=!0,r.emit("dropIn",{ev:e}))}function o(e){_u(e),n=!1,setTimeout(function(){n||(t=!1,r.emit("dropOut",{ev:e}))},100)}function a(e){i(e)}function s(e){o(e)}function l(e){function t(){o(e)}i(e),Tm(e.dataTransfer).then(n=>{let i=sa(n.entries,{type:"file"});r.emit("getFiles",{ev:e,files:n.files,filesTree:i,entries:n.entries,cb:t})}).catch(e=>{r.emit("error",e)})}return e.addEventListener("dragenter",a,!1),e.addEventListener("dragover",a,!1),e.addEventListener("dragleave",s,!1),e.addEventListener("drop",l,!1),r.off=function(){e.removeEventListener("dragenter",a,!1),e.removeEventListener("dragover",a,!1),e.removeEventListener("dragleave",s,!1),e.removeEventListener("drop",l,!1)},r},e.domElementsFromPoint=Im,e.domFadeIn=qu,e.domFadeOut=Ou,e.domFind=Qm,e.domFinds=gm,e.domGetAttr=xm,e.domGetBoudRect=Cm,e.domGetBoudRectRefSelf=Bm,e.domGetFileAccept=$m,e.domGetFiles=zm,e.domGetParents=bm,e.domGetPointFromEvent=wm,e.domGetScrollableParent=function(e){let t=/(auto|scroll)/,n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},r=function(e){return t.test(function(e){return n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x")}(e))};if(!(e instanceof HTMLElement||e instanceof SVGElement))return;let i=bm(e);for(let e=0;e<i.length;e+=1)if(r(i[e]))return i[e];return document.scrollingElement||document.documentElement},e.domGetWindowSize=function(){let e=nc(),t={width:(()=>{let t=[be(e,"innerWidth"),be(e,"document.documentElement.clientWidth"),be(e,"document.body.clientWidth")];return t=sa(t,fa),Ym(t)})(),height:(()=>{let t=[be(e,"innerHeight"),be(e,"document.documentElement.clientHeight"),be(e,"document.body.clientHeight")];return t=sa(t,fa),Ym(t)})()};return t},e.domIsClientXYIn=function(e,t,n){if(!fa(e))return void console.log("clientX is not a number",e);if(!fa(t))return void console.log("clientY is not a number",t);if(!ku(n))return void console.log("ele is not a HTMLElement",n);let r;try{r=n.getBoundingClientRect()}catch(e){return void console.log("invalid ele for getBoundingClientRect",e)}let i=!1;try{i=e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}catch(e){console.log("catch when calculating page information of element",e)}return i},e.domIsFocused=Fu,e.domIsStable=function(e,t={}){if(!ku(e))return Promise.reject("invalid element");if(!Oi(e.getBoundingClientRect))return Promise.reject("invalid element.getBoundingClientRect");let n=be(t,"mode","");"promise"!==n&&"event"!==n&&(n="promise");let r=be(t,"tolerance",0),i=be(t,"timeDiff",100),o=be(t,"timeDetect",50),a=()=>{let t=e.getBoundingClientRect();return{x:t.left,y:t.top,w:t.width,h:t.height}},s=(e,t)=>!!e&&!!t&&Math.abs(e.x-t.x)<=r&&Math.abs(e.y-t.y)<=r&&Math.abs(e.w-t.w)<=r&&Math.abs(e.h-t.h)<=r,l=e=>{try{return"running"===e.playState&&Number.isFinite(e.effect.getTiming().iterations)}catch(e){return!1}},c=()=>{try{return e.getAnimations({subtree:!0}).filter(l)}catch(e){return[]}},u=async()=>{let e=_a();try{let t=a();await ps(i);let n=a(),r=c(),o=r.length;await Promise.allSettled(r.map(e=>e.finished));let l=c().length,u=a(),f=s(t,n)&&s(t,u)&&0===o&&0===l;e.resolve(f)}catch(t){e.reject(t)}return e},f=()=>{let t=qi(),n=!1,r=null,i=null,a=!1;return t.create=()=>{r=setInterval(()=>{n=(e=>{let n=!1;if(!ku(e))return n;try{let e=!1,r=!1;i=setInterval(()=>{a?clearInterval(i):e||(e=!0,u().then(e=>{a||r!==e&&(r=e,t.emit("stable",e))}).catch(()=>{}).finally(()=>{e=!1}))},o),n=!0}catch(e){}return n})(e),n&&clearInterval(r)},50)},t.dispose=()=>{let e=!1;try{clearInterval(r),clearInterval(i),a=!0,e=!0}catch(e){}return e},t},d=null;return"promise"===n?d=u():"event"===n&&(d=f()),d},e.domIsVisible=function(e,t={}){if(!ku(e))return Promise.reject("invalid element");if(Wm())return Promise.reject("invalid IntersectionObserver");let n=be(t,"mode","");"promise"!==n&&"event"!==n&&(n="promise");let r=()=>{let t=qi(),n=!1,r=null,i=!1,o=new IntersectionObserver(e=>{if(i)return;let n=e[0].isIntersecting;t.emit("visible",n)});return t.create=()=>{r=setInterval(()=>{i?clearInterval(r):(n=(e=>{let t=!1;if(!ku(e))return t;try{o.observe(e),t=!0}catch(e){}return t})(e),n&&clearInterval(r))},50)},t.dispose=()=>{let e=!1;try{clearInterval(r),o.disconnect(),i=!0,e=!0}catch(e){}return e},t},i=null;return"promise"===n?i=(()=>{let t=_a();try{let n=new IntersectionObserver(e=>{t.resolve(e[0].isIntersecting),n.disconnect()});n.observe(e)}catch(e){t.reject(e)}return t})():"event"===n&&(i=r()),i},e.domPrepend=ym,e.domRemove=mm,e.domRenderMarkdownMind=Gm,e.domRenderMarkdownMindDyn=async function(e,t,n={},r){return Tn(r)||(r=["https://cdn.jsdelivr.net/npm/d3@7.8.3/dist/d3.min.js","https://cdn.jsdelivr.net/npm/markmap-view@0.14.4/dist/index.min.js","https://cdn.jsdelivr.net/npm/markmap-lib@0.14.4/dist/browser/index.min.js"]),await lc(r),Gm(e,t,n)},e.domRipple=function(e,t,n={}){let r=be(n,"timeDuration",null);Wi(r)||(r=1e3);let i=be(n,"color",null);if(Fe(i)||(i="rgba(255, 255, 255, 0.5)"),!ku(e))return;e.style.position="relative",e.style.overflow="hidden";let o=e.getBoundingClientRect(),a=t.clientX-o.left,s=t.clientY-o.top,l=2*Math.max(e.clientWidth,e.clientHeight),c=document.createElement("div");c.style.width=`${l}px`,c.style.height=`${l}px`,c.style.transition=`all ${r/1e3}s linear`,c.style.position="absolute",c.style.zIndex=1,c.style.left=`${a}px`,c.style.top=`${s}px`,c.style.borderRadius="50%",c.style.transformOrigin="center",c.style.transform="translate(-50%,-50%) scale(0)",c.style.background=i,c.style.userSelect="none",c.style.pointerEvents="none",e.appendChild(c),setTimeout(()=>{c.style.transform="translate(-50%,-50%) scale(2)",c.style.opacity=0},1),setTimeout(()=>{mm(c)},r)},e.domScrollIntoView=function(e,t={}){if(!ku(e))return;Ee(t)||(t={});let n={behavior:"smooth"};n={...n,...t},Ju()&&Uy(),e.scrollIntoView(n)},e.domScrollTo=function(e,t={}){if(!ku(e))return;Ee(t)||(t={});let n={behavior:"smooth"};n={...n,...t},Ju()&&Uy(),e.scrollTo(n)},e.domSetAttr=function(e,t,n){if(!ku(e))return null;if(!Fe(t))return null;if(!Fe(n)&&!Me(n))return null;try{return e.setAttribute(t,n),e.getAttribute(t)}catch(e){}return null},e.domShowImages=Gy,e.domShowImagesDyn=async function(e,t=null,n={},r){return await Gy(e,t,n)},e.domShowInputAndGetFiles=_y,e.domShowInputAndGetFilesU8Arrs=function(e={}){let t=be(e,"kind","*"),n=be(e,"multiple");Ie(n)||(n=!1);let r=be(e,"entireHierarchy");Ie(r)||(r=!1);let i=be(e,"sizeMbLimit");Me(i)||(i=1e3),i=xr(i);let o=_a(),a=[];return _y({kind:t,multiple:n,entireHierarchy:r,sizeMbLimit:i}).then(function(e){let t=_a(),n=be(e,"errs",{}),r=be(e,"files",[]);return Se(n)?t.reject(n):t.resolve(r),t}).then(function(e){return An(e,function(e){a.push({name:e.name,size:e.size,type:e.type})}),rs(e)}).then(function(e){An(e,function(e,t){a[t].u8a=e}),o.resolve(a)}).catch(function(e){o.reject(e)}),o},e.domShowInputDatatime=function(e,n={}){let r=be(n,"type","");"date"!==r&&"datetime-local"!==r&&(r="datetime-local");let i=be(n,"eleRef",null);ku(i)||(i=document.activeElement);let o=_a(),a="drf"+Hu(),s="GrpDomShowDatatime";mm(`[name=${s}]`);let l=!1,c="";if("date"===r)Qu(e)&&(l=!0,c=e);else if(Xy(e)){l=!0,c=t(e).format("YYYY-MM-DDTHH:mm")}Fe(c)&&(c=`value="${c}"`);let u=document.createElement("div");u.setAttribute("name",s),u.style.width=0,u.style.height=0,u.style.overflow="hidden",u.innerHTML=`\n <div style="transform:translateY(-100%);">\n <input id="${a}" type="${r}" style="opacity:0;" ${l?c:""} />\n </div>\n `;let f=null;ku(i)?i.parentNode.insertBefore(u,i.nextSibling):document.querySelector("body").appendChild(u);let d=!1;function h(){if(!d){d=!0;try{f.removeEventListener("change",g,!0),i.removeEventListener("focusout",m,!0)}catch(e){}if(mm(`[name=${s}]`),Fe(p)){let e="";e="date"===r?p:`${p}:00`,o.resolve(e)}}}let p="";function g(e){try{p=e.target.value}catch(e){console.log(e)}h()}function m(e){setTimeout(()=>{h()},50)}return setTimeout(()=>{f=Qm("#"+a),f.addEventListener("change",g,!0),f.showPicker()},1),i.addEventListener("focusout",m,!0),o},e.domTooltip=function(e,t,n={}){let r=null,i=null;function o(){null!==r&&r.destroy(!0),e.setAttribute("tippystate",""),clearInterval(i)}let a={arrow:!0,theme:"dark",placement:"bottom",delay:150};n=Se(n)?Wy(a,n):a;let s=t;t||(s=e.innerHTML);let l=Me(e.getAttribute("tippystate"));if(e.setAttribute("tippystate","5"),l)return;s=`<div style="text-align:left;">${s}</div>`;let c=cb;cb.default&&(c=cb.default),r=c(e,{...n,content:s,allowHTML:!0,onHidden(){o()},onDestroy(){r=null,o()}}),r.show(),i=setInterval(()=>{let t=e.getAttribute("tippystate");Me(t)?(t=Yi(t),t-=1,e.setAttribute("tippystate",t),t<=0&&o()):o()},1e3)},e.domTriggerEvent=Jy,e.domVirtualCreate=ub,e.domVirtualCreateQueue=function(){return new function(){let e=gb(1);return async function(t,n={}){return e(ub,t,n)}}},e.downloadExcelFileFromData=BF,e.downloadExcelFileFromDataDyn=async function(e,t="data",n,r){let i=await BF(e,t,n);return""!==be(i,"error","")?Promise.reject(i.error):i},e.downloadFileFromB64=function(e,t){if(!Ka())return void console.log("no window");if(!Fe(e))return void console.log("no filename");let n=document.createElement("a");n.href=t,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},e.downloadFileFromBlob=mb,e.downloadFileFromText=function(e,t,n=!0){if(!Ka())return void console.log("no window");if(!Fe(e))return void console.log("invalid filename");if(!ke(t))return void console.log("invalid content");if(!Ie(n))return void console.log("withBOM is not a boolean");let r;r=n?new Blob(["\ufeff",t]):new Blob([t]),mb(e,r)},e.downloadFileFromU8Arr=function(e,t){if(!Ka())return void console.log("no window");if(!Fe(e))return void console.log("no filename");if(!ls(t))return void console.log("no data");mb(e,EF(t))},e.dtmapping=SF,e.dtpick=kF,e.estimateTicks=function(e,t,n={}){if(!Me(e))throw new Error("rmin is not a number");if(e=xr(e),!Me(t))throw new Error("rmax is not a number");if(e===(t=xr(t))){let t=null;t=0===e?1:Math.abs(e/10);let n=DF(t,{returnDigit:!0});return t=FF(t,n),{tickNum:3,tickInterval:t,tickPositions:[e-t,e,e+t],tickDig:n}}if(e>t)throw new Error(`rmin[${e}] > rmax[${t}]`);let r=be(n,"testTickNums");Tn(r)||(r=[3,4,5]);let i=e,o=t,a=NF(i),s=NF(o),l=Math.max(a.r,s.r),c=Math.log10(l),u=i/l,f=o/l,d=(u+f)/2,h=f-u,p=[];An(r,e=>{let t=h/(e-1),n=DF(t,{returnDigit:!0});n=Math.min(n,2),An(Zi(n,-1,-1),n=>{let r=n-c;r=Math.max(r,0);let i=ec(t,n),o=i-1/Math.pow(10,n);o=FF(o,n);let a=i+1/Math.pow(10,n);a=FF(a,n);let s=[o,i,a];s=sa(s,e=>e>0);let g=FF(d,n),m=g-1/Math.pow(10,n);m=FF(m,n);let y=g+1/Math.pow(10,n);y=FF(y,n);let v=[m,g,y];An(s,t=>{let i=l*t;i=FF(i,r),An(v,o=>{let a=[],s=[];{let i=o-(e-1)/2*t;for(let o=0;o<e;o++){let e=i+o*t;e=FF(e,n),a.push(e);let c=l*e;c=FF(c,r),s.push(c)}}let c=(d=a)&&d.length?d[0]:void 0;var d;let g=wa(a);if(c>u||g<f)return!0;let m=(u-c)/h,y=(g-f)/h,v=(m+y)/2,A=0;An(s,e=>{Cr(e)&&A++});let b=A/e,w=0;An(a,e=>{0===e&&w++});let I=w/e,x=0;An(a,e=>{.5===e&&x++});let C=x/e,B=0;An(a,e=>{1===e&&B++});let E=B/e,S={diff:v,rngCenter:o,numInt:A,ratInt:b,num0:w,rat0:I,num5:x,rat5:C,num10:B,rat10:E,overMin:m,overMax:y,fitness:v+.2*n+.1*e+1.5*m+1.5*y+(1-.25*b)+(1-.4*I)+(1-.3*C)+(1-.3*E),idg:n,tickNum:e,_tickDig:n,_tickInterval:t,_tickPositions:a,tickDig:r,tickInterval:i,tickPositions:s};p.push(S)})})})}),p=Na(p,"fitness");let g=be(p,0);return{tickNum:g.tickNum,tickInterval:g.tickInterval,tickPositions:g.tickPositions,tickDig:g.tickDig}},e.evEmit=Pi,e.evEmitDelay=hs,e.evem=qi,e.execCli=async function(e,t=[],n={}){if(!Fe(e))return{ok:!1,stdout:"",stderr:"",code:null,error:"command 須為非空字串",durationMs:0,attempts:0};Be(t)||(t=[]),Ee(n)||(n={});let{maxRetries:r=0,retryDelayMs:i=5e3,...o}=n,a=be(o,"cwd",null);Fe(a)?o.cwd=a:o.cwd=process.cwd();let s=be(o,"input",null);Fe(s)?o.input=s:o.input=void 0;let l=be(o,"env",null);Ee(l)?o.env=l:o.env=void 0;let c=be(o,"validate",null);Oi(c)||Fe(c)?o.validate=c:o.validate=void 0;let u=be(o,"onStdout",null);Oi(u)?o.onStdout=u:o.onStdout=void 0;let f=be(o,"onStderr",null);Oi(f)?o.onStderr=f:o.onStderr=void 0,r=mo(r)?Yi(r):0,i=Wi(i)?Yi(i):5e3;let d=be(o,"timeoutMs",null);Wi(d)?o.timeoutMs=Yi(d):o.timeoutMs=12e4,o.timeoutMs=Math.min(o.timeoutMs,Ri);let h,p=be(o,"maxBuffer",null);Wi(p)?o.maxBuffer=Yi(p):o.maxBuffer=10485760;let g=0;for(let n=0;n<=r;n++){if(n>0){let e=Math.min(i*n,15e3);await ps(e)}if(h=await zF(e,t,o),g=n+1,h.ok)return h.attempts=g,h;if(h.error.includes("ENOENT"))break;if(2===h.code)break}return h.attempts=g,h},e.execCliCore=qF,e.execCliJsonRpc=async function(e,t=[],n=[],r={}){let i=Date.now(),o=(e,t,n={})=>({ok:!1,results:{},responses:[],error:t,errorType:e,durationMs:Date.now()-i,exitCode:null,...n});if(!Fe(e))return o("params","command 須為非空字串");if(Be(t)||(t=[]),!Be(n))return o("params","requests 須為陣列");for(let e=0;e<n.length;e++){let t=n[e];if(!Ee(t)||!Fe(t.method)&&!Fe(t.notify))return o("params",`requests[${e}] 須為含method或notify之物件`)}Ee(r)||(r={});let a=be(r,"timeoutMs");Wi(a)||(a=12e4);let s=be(r,"jsonrpc");!0===s&&(s="2.0"),Fe(s)||(s=null);let l=be(r,"continueOnError");Ie(l)||(l=!1);let c=be(r,"onNotify"),u=be(r,"onServerRequest"),f=new Map,d=null,h=0,p={},g=[],m=(e,t,n)=>{let r={};return null!==s&&(r.jsonrpc=s),void 0!==e&&(r.id=e),r.method=t,void 0!==n&&(r.params=n),r},y=YF(e,t,{cwd:be(r,"cwd"),env:be(r,"env"),timeoutMs:a,exitGraceMs:be(r,"exitGraceMs"),onStderr:be(r,"onStderr"),onLine:e=>{if(""===(e=e.trim()))return;let t;try{t=JSON.parse(e)}catch{return}if(!Ee(t))return;let n=void 0!==t.id&&null!==t.id;if(n&&("result"in t||"error"in t)){let e=f.get(t.id);return void(e&&(f.delete(t.id),e.pm.resolve({msg:t})))}n&&Fe(t.method)?Oi(u)&&u(t,y):Oi(c)&&c(t)},onExit:e=>{d=e;for(let[t,n]of f)n.pm.resolve({exit:e});f.clear()}}),v=(e,t)=>{let n="exit";e.timeout?n="timeout":Fe(e.error)&&e.error.includes("ENOENT")&&(n="notfound");let r=Fe(e.error)?e.error:`子進程於回應前結束(code ${e.code})`;return o(n,`${t}: ${r}`,{results:p,responses:g,exitCode:e.code})},A=null;for(let e of n){if(!Fe(e.method)){if(!await y.writeLine(JSON.stringify(m(void 0,e.notify,e.params)))){A=v(d||await y.stop(),e.notify);break}continue}let t=h;h+=1;let n=_a();if(f.set(t,{method:e.method,pm:n}),!await y.writeLine(JSON.stringify(m(t,e.method,e.params)))){f.delete(t),A=v(d||await y.stop(),e.method);break}let r=await n;if(r.exit){A=v(r.exit,e.method);break}let i=r.msg;if("error"in i&&null!==i.error&&void 0!==i.error){if(p[e.method]=null,g.push({id:t,method:e.method,result:null,error:i.error}),!l){let t=be(i,"error.message");A=o("rpc",`${e.method}: ${Fe(t)?t:JSON.stringify(i.error)}`,{results:p,responses:g});break}}else p[e.method]=i.result,g.push({id:t,method:e.method,result:i.result,error:null})}let b=await y.stop();if(A)return A.durationMs=Date.now()-i,null===A.exitCode&&(A.exitCode=b.code),A;let w=g.filter(e=>null!==e.error);if(w.length>0){let e=w[0],t=be(e,"error.message");return{ok:!1,results:p,responses:g,error:`${e.method}: ${Fe(t)?t:JSON.stringify(e.error)}`,errorType:"rpc",durationMs:Date.now()-i,exitCode:b.code}}return{ok:!0,results:p,responses:g,error:"",errorType:"",durationMs:Date.now()-i,exitCode:b.code}},e.execCliSession=YF,e.execJsCode=async function(e,t={}){e=o.resolve(e);let n=(await import(s.pathToFileURL(e).href)).default;if(!Oi(n))throw new Error(`the default export of [${e}] is not a function`);return await n(t)},e.execProcess=function(e,t,n={}){if(!Tn(t)&&!Fe(t))throw new Error("args is not an effective array or string");let i=Fe(t);Fe(t)&&(t=[t]);let o=be(n,"mode");"spawn"!==o&&"exec"!==o&&"execFile"!==o&&(o="spawn");let a=be(n,"cbStdout"),s=be(n,"cbStderr"),l=be(n,"codeCmd"),c=ZF.normalizeCodeCmd(l),u=be(n,"useChcp");Ie(u)||(u=!1);let f=be(n,"timeout");f=!Me(f)||f<=0?null:Math.min(f,Ri);let d=_a();if(!da(o,["spawn","exec","execFile"]))return d.reject(`invalid mode[${o}]`),d;if(null===c)return d.reject(`codeCmd[${l}] is not a supported encoding`),d;let h=n=>{let l=null;try{if("spawn"===o){let n=ra(e,1),i=ia(e,1);if('"'===n||'"'===i||"'"===n||"'"===i)throw new Error("prog of spawn doens not need to add quotes");l=r.spawn(e,t,{windowsHide:!0,shell:!1})}else if("exec"===o){let n="";u&&(n="cmd /c chcp 65001>nul &&");let o=e=>(e=String(e),/\s/.test(e)&&!e.includes('"')?`"${e}"`:e),a=o(e),s=i?t[0]:t.map(o).join(" ");l=r.exec(`${n} ${a} ${s} & exit`,{windowsHide:!0,encoding:"buffer"})}else"execFile"===o&&(l=r.execFile(e,t,{windowsHide:!0,encoding:"buffer"}))}catch(e){return void d.reject(e)}let h=c.label;"system"===c.mode?h=n:"auto"===c.mode&&(h="auto");let p=ZF.createDecoder(h,{labelSystem:n}),g=ZF.createDecoder(h,{labelSystem:n}),m=[],y="auto"===c.mode,v=(e,t,n)=>r=>{let i=r;Buffer.isBuffer(i)||(i=Buffer.from(String(i)));let o=t.write(i);m.push({which:e,text:o,buf:y?i:null}),""!==o&&Oi(n)&&n(o)};l.stdout.on("data",v("out",p,a)),l.stderr.on("data",v("err",g,s));let A=null,b=!1;null!==f&&(A=setTimeout(()=>{b=!0,l&&l.pid&&TF(l.pid).catch(()=>{})},f)),l.on("close",e=>{null!==A&&clearTimeout(A);let t=(()=>{let e=(e,t,n)=>{let r=t.end();""!==r&&(m.push({which:e,text:r,buf:null}),Oi(n)&&n(r))};if(e("out",p,a),e("err",g,s),y){let e=(e,t)=>{if(!t.switched)return;let n=ZF.createDecoder(t.label),r=null;for(let t of m)t.which===e&&(t.text=null!==t.buf?n.write(t.buf):"",r=t);let i=n.end();""!==i&&null!==r&&(r.text+=i)};e("out",p),e("err",g)}let t="";for(let e of m)t+=e.text;return t})();b?d.reject(`timeout[${f}ms]:\n${t}`):0!==e?d.reject(`code[${e}]:\n${t}`):d.resolve(t)}),l.on("error",e=>{null!==A&&clearTimeout(A),d.reject(e)})};return"fixed"===c.mode?h(null):ZF.getSystemCodePage().then(h).catch(e=>{d.reject(e)}),d},e.execProcessKillPid=TF,e.filepathToTree=function(e,t={}){if(!Tn(e))return{};let n=be(t,"delimiter");Fe(n)||(n="❯");let r=be(t,"bindRoot");Fe(r)||(r="");let i=Fe(r),o="";o=i?r:"root";let a=be(t,"soryItems"),s=wn(e,(e,t)=>{"folder"!==e.type&&"file"!==e.type&&(e.type="file");let r=(e=>{let t=na(e=(e=e.replace(/\\\\/g,"\\")).replace(/\\/g,"/"),"/");return{ss:t,cfp:Ao(t,n)}})(e.path);return{ind:t,type:e.type,ss:r.ss,data:Li(e)}}),l=e=>{let t=ar(e),r=[];for(let i=0;i<t;i++){let t=[];for(let n=0;n<=i;n++)t.push(e[n]);let o=Ao(t,n);r.push({id:o,name:e[i]})}return r},c=-1,u=[],f={};An(s,e=>{let t=null;t=[o];let r=null;r=o;let i=ar(e.ss)-1;An(e.ss,(o,a)=>{let s=a<i||"folder"===e.type;t.push(o);let d=null,h=null;a===i&&(d=e.ind,h=e.data);let p=Ao(t,n),g=l(t);if(Te(f,p)){let t=f[p],n="folder"===be(t,"_type","");if(!n&&s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] is unrecognized from a file to folder`);if(!n&&!s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] get repeat data from two files`);if(n&&!s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] is unrecognized from a folder to file`);if(Se(f[p].data)&&Se(h))throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] get repeat data from two folders`);if(null===f[p].data&&Se(h)){f[p]._indOri=d,f[p].data=h;let e=f[p]._indNormalize,t=u[e];u[e]={...h,type:t.type,path:t.path}}}else{c++;let e=c,n=null;n=s?{_indOri:d,_indNormalize:e,ns:ar(t),ts:Li(t),pathInfors:g,_type:"folder",type:"array",numOfChilren:-1,id:p,parentId:r,text:o,children:[],data:h}:{_indOri:d,_indNormalize:e,ns:ar(t),ts:Li(t),pathInfors:g,_type:"file",type:"node",numOfChilren:-1,id:p,parentId:r,text:o,data:h},f[p]=n,u.push({...be(f[p],"data",{}),type:f[p]._type,path:"/"+Ao(t,"/")})}r=p})});let d=nD(f);if(d=Na(d,"id"),d=Na(d,"ns"),Oi(a)){let e=[];An(cD(d,"ns"),(t,n)=>{An(cD(t,"parentId"),(t,r)=>{let i=a(t,r,n);e=[...e,...i]})}),d=e}let h=[],p=[];An(d,e=>{"folder"===e._type?h.push(e):p.push(e)});let g=cD(h,"ns"),m=cD(p,"ns"),y=tD(wn(h,"ns")),v=tD(wn(p,"ns")),A=null;{let e=[o];A=[{_indOri:null,_indNormalize:null,ns:ar(e),ts:Li(e),pathInfors:l(e),_type:"folder",type:"array",numOfChilren:-1,id:o,parentId:"",text:o,children:[],data:null}]}let b={};b[o]="0.children";let w={};w[o]="0";for(let e=2;e<=y;e++){An(g[e],e=>{let t=be(b,e.parentId,"");if(!Fe(t))throw console.log("kpPathFd",b),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in folder`);let n=be(A,t);if(Be(n)||gu(A,t,[]),n=be(A,t),!Se(Hm(n,{id:e.id}))){n.push({...e,children:[]});let r=`${t}.${ar(n)-1}`;b[e.id]=`${r}.children`,w[e.id]=r}})}let I=Li(A),x={};for(let e=2;e<=v;e++){An(m[e],e=>{let t=be(b,e.parentId,"");if(!Fe(t))throw console.log("kpPathFd",b),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in file`);let n=be(A,t);if(!Be(n))throw console.log("treeItems",A),console.log("k",t),console.log("v",e),new Error("無預先建置資料夾");if(!Se(Hm(n,{id:e.id}))){n.push(e);let r=`${t}.${ar(n)-1}`;x[e.id]=r,w[e.id]=r}})}return{treeItems:A,treeItemsFolder:I,kpPath:w,fpsNormalize:u}},e.files2data=function(e){if(!Be(e))return Promise.reject("invalid files");let t=_a(),n=wn(e,function(e){return{name:e.name,size:e.size,type:e.type}});return ns(e).then(function(e){let r=wn(e,function(e){return{b64:e}}),i=uD(n,r);t.resolve(i)}).catch(function(e){t.reject(e)}),t},e.flattenToConn=Su,e.flattenTree=function(e,t={}){if(Be(e)){if(0===e.length)return[]}else{if(!Ee(e))return[];if(Fn(e))return[]}let n=be(t,"bindKey",null);Fe(n)||(n="id");let r=be(t,"bindChildren",null);Fe(r)||(r="children");let i=!1;Ee(e)&&(i=!0,e=[e]);let o=[];return Eu(e,(e,t,i)=>{let a=be(e,n,null),s=be(e,r,null);if(a){let n=function(e){let t=[e[0]];for(let n=1;n<e.length;n++){let i=e[n];t.push(r),t.push(i)}return t}([...i,t]);if(o.push({...e,level:(ar(n)-1)/2,nk:n}),s)return s}}),i&&(o=o[0]),o},e.floor=function(e,t=0){return mo(t)||(t=0),t=Yi(t),Me(e)?new Zl(e).toDecimalPlaces(t,Zl.ROUND_FLOOR).toNumber():""},e.fsBuildReadStreamText=function(e){if(!RF(e))throw new Error("fp is not a file");let t=qi(),n=a.createReadStream(e,{encoding:"utf8"});n.on("error",e=>{Pi(t,"error",[{fun:"stream",msg:e}],{tag:"fsBuildReadStreamText"})}),process.nextTick(()=>{Pi(t,"create",[],{tag:"fsBuildReadStreamText"})});let r=l.createInterface({input:n,crlfDelay:1/0});return r.on("line",e=>{Pi(t,"line",[e],{tag:"fsBuildReadStreamText"})}),r.on("error",()=>{}),n.on("close",()=>{Pi(t,"close",[],{tag:"fsBuildReadStreamText"})}),t},e.fsBuildWriteStreamText=function(){let e=null;return{create:t=>{let n=_a();return e=a.createWriteStream(t,{flags:"w",encoding:"utf8"}),e.on("finish",()=>{n.resolve()}),e.on("error",e=>{n.reject(e)}),n},write:t=>{e.write(t+"\n")},end:()=>{let t=_a();return e.on("close",()=>{t.resolve()}),e.end(),t}}},e.fsCleanFolder=function(e){return hD(e,{path:o,fs:a})},e.fsCleanFolderCore=hD,e.fsCopyFile=function(e,t,n={}){return pD(e,t,{path:o,fs:a,...n})},e.fsCopyFileCore=pD,e.fsCopyFolder=function(e,t,n={}){return mD(e,t,{path:o,fs:a,...n})},e.fsCopyFolderCore=mD,e.fsCreateFile=function(e,t,n={}){return bD(e,t,{fs:a,...n})},e.fsCreateFileCore=bD,e.fsCreateFolder=wD,e.fsCreateFolderCore=dD,e.fsDeleteFile=function(e){return ID(e,{fs:a})},e.fsDeleteFileCore=ID,e.fsDeleteFileSafe=async function(e,t={}){return await xD(e,{fs:a,...t})},e.fsDeleteFileSafeCore=xD,e.fsDeleteFolder=BD,e.fsDeleteFolderCore=CD,e.fsDeleteFolderSafe=async function(e,t={}){return await ED(e,{fs:a,...t})},e.fsDeleteFolderSafeCore=ED,e.fsDownloadFile=async function(e,t){return LD(e,t,{fs:a,Readable:c.Readable,pipeline:u.pipeline})},e.fsDownloadFileCore=LD,e.fsEvem=function(e={}){let t=be(e,"fd");Fe(t)||(t="./_evps");let n=be(e,"polling");Ie(n)||(n=!1);let r=be(e,"timeInterval");Wi(r)||(r=100),r=Yi(r);let i=be(e,"timeBinaryInterval");Wi(i)||(i=300),i=Yi(i);let s=be(e,"keySys");Fe(s)||(s="[::pkg_content::]"),HD(t)||wD(t);let l=qD(t,{polling:n,timeInterval:r,timeBinaryInterval:i});l.on("change",e=>{if("add"!==e.type&&"change"!==e.type)return;let t=UD(e.fp),n="";try{n=a.readFileSync(e.fp,"utf8"),n=za(n)}catch(e){}Se(n)&&c.emit(t,{[s]:n})});let c=qi(),u=c.emit;return c.emit=function(e,n){let r=!1;if(Se(n)&&(r=Te(n,s)),r){let t=be(n,s,null),r=be(t,"pkg",""),i=be(t,"time",""),o=this;return Pi(c,e,[r,i],{tag:"fsEvem",funEmit:(e,...t)=>u.call(o,e,...t)})}((e,n)=>{let r=o.resolve(t,e);ke(n)||(n=sr(n)),a.writeFileSync(r,n,"utf8")})(e,{pkg:n,time:RD()})},c.clear=()=>{l.clear(),BD(t)},c},e.fsExists=function(e){return QF(e,{fs:a})},e.fsExistsCore=QF,e.fsGetFileBasicHash=function(e,t={}){return OD(e,{fs:a,crypto:d,...t})},e.fsGetFileBasicHashCore=OD,e.fsGetFileHash=function(e,t={}){return jD(e,{fs:a,crypto:d,...t})},e.fsGetFileHashCore=jD,e.fsGetFileXxHash=function(e,t={}){return zD(e,{fs:a,...t})},e.fsGetFileXxHashCore=zD,e.fsGetFilesInFolder=function(e,t=1){return YD(e,t,{path:o,fs:a})},e.fsGetFilesInFolderCore=YD,e.fsGetFilesWithHashInFolder=GD,e.fsGetFilesWithHashInFolderCore=WD,e.fsGetFolderBasicHash=function(e,t={}){return JD(e,{path:o,fs:a,crypto:d,...t})},e.fsGetFolderBasicHashCore=JD,e.fsGetFoldersInFolder=function(e,t=1){return _D(e,t,{path:o,fs:a})},e.fsGetFoldersInFolderCore=_D,e.fsIsFile=RF,e.fsIsFileCore=LF,e.fsIsFolder=HD,e.fsIsFolderCore=fD,e.fsMergeFiles=async function(e,t,n={}){return XD(e,t,{fs:a,...n})},e.fsMergeFilesCore=XD,e.fsReadJson=function(e){let t=null,n=UF(e,{fs:a});if(n.error)return n;let r=n.success,i=null;try{i=JSON.parse(r)}catch(e){t=e}return null!==t?{error:t}:{success:i}},e.fsReadText=HF,e.fsReadTextCore=UF,e.fsRenameFile=function(e,t){return KD(e,t,{fs:a})},e.fsRenameFileCore=KD,e.fsRenameFolder=function(e,t){return ZD(e,t,{fs:a})},e.fsRenameFolderCore=ZD,e.fsSrlog=function(e={}){let n=be(e,"fdSys","");Fe(n)||(n=o.resolve(),n=n.replaceAll("\\","/"));let r=be(e,"fdLog","");Fe(r)||(r="./syslog"),HD(r)||wD(r);let i=be(e,"dlm","");Fe(i)||(i="ꓹ");let s=be(e,"useTime",null);Ie(s)||(s=!0);let l=be(e,"useLoc",null);Ie(l)||(l=!0);let c=be(e,"useLocRela",null);async function u(e,n,...o){let c=(()=>{let e=t().format("YYYY-MM-DD");return`${r}/${e}.log`})(),u=wn(o,e=>{let t="";return t=Ee(e)||Be(e)?JSON.stringify(e):Ie(e)?e?"true":"false":Ta(e),t}),f="";s&&(f=`[${e}]\n`,a.appendFileSync(c,f,"utf8")),l&&(f=`[${n}]\n`,a.appendFileSync(c,f,"utf8")),f=`${Ao(u,`${i} `)}\n\n`,a.appendFileSync(c,f,"utf8")}return Ie(c)||(c=!0),function(...e){let t="";s&&(t=RD());let r="",i="",o=[];if(l){if(o=na((new Error).stack,"\n"),An(o,e=>{if((e=ea(e)).indexOf("file:")<0)return!0;if(e.indexOf("fsSrlog.mjs")>=0)return!0;return An(na(e," "),e=>{if(e.indexOf("file:")>=0)return r=e,!1}),!Fe(r)&&void 0}),!Fe(r))throw console.log("stackLines",o),new Error("can not parse stackLines");"("===ra(r,1)&&(r=oa(r,1)),")"===ia(r,1)&&(r=La(r,1));try{r=decodeURIComponent(r)}catch(e){console.log(e)}i=r,i=oa(i,8),i=i.replace(n,"")}let a=[];s&&(a=[...a,`[${t}]`]);let f="";l&&(f=r,c&&(f=i),a=[...a,`[${f}]`]),a=[...a,...e],console.log(...a),u(t,f,...e)}},e.fsSyncFolder=function(e,t,n={}){return nN(e,t,{path:o,fs:a,crypto:d,...n})},e.fsSyncFolderCore=nN,e.fsTask=function(e,t={}){let n=be(t,"fdStorage","");Fe(n)||(n="./_tkfs");let r=be(t,"levelLimit","");Wi(r)||(r=1),r=Yi(r);let i=be(t,"typeHash","");Fe(i)||(i="md5");let o=be(t,"timeInterval");la(o)||(o=6e4),o=Yi(o),o=Math.min(o,Ri),wD(n);let s=qi(),l=!1,c=`${n}/fpHash.json`,u=`${n}/fpResult.json`,f=async()=>{if(!0===l)return;let t=(()=>{let e={};try{e=za(a.readFileSync(c,"utf8"))}catch(e){}return e})(),n=await(async()=>{let t={};return HD(e)?(An(await GD(e,r,{type:i}),e=>{t[e.path]=e.hash}),t):t})(),o=wn(t,(e,t)=>({path:t,hash:e})),u=wn(n,(e,t)=>({path:t,hash:e}));An(eN(o,u,"path").infor,(e,r)=>{if("same"===e)return!0;let i=be(t,r,""),o=be(n,r,""),u="";u="del"===e?i:o;let f=e,d=r,h=vD(r);l=!0;let p=_a();return Pi(s,"change",[{type:f,fp:d,fn:h,hash:u,pm:p}],{tag:"fsTask",funSettle:e=>{p.reject(e)}}),p.then(()=>{let e=Li(t);e[d]=n[d],(e=>{try{let t=sr(e);a.writeFileSync(c,t,"utf8")}catch(e){}})(e)}).catch(()=>{}).finally(()=>{l=!1}),!1})},d=()=>{let e={};try{e=za(a.readFileSync(u,"utf8"))}catch(e){}return e},h=(e={})=>{try{let t=sr(e);a.writeFileSync(u,t,"utf8")}catch(e){}},p=!1,g=setInterval(()=>{p||(p=!0,f().catch(()=>{}).finally(()=>{p=!1}))},o);return s.getResult=(e,t)=>{let n=`${e}|${t}`,r=be(d(),n,[]);return Be(r)||console.log(`result for key[${n}] is not an array`),r},s.getAndEliminateResult=(e,t)=>{let n=`${e}|${t}`,r=d(),i=be(r,n,[]);return Be(i)||console.log(`result for key[${n}] is not an array`),r=((e,t)=>{let n={};return An(e,(e,r)=>{be(na(r,"|"),0,"")!==t&&(n[r]=e)}),n})(r,e),h(r),i},s.setResult=(e,t,n)=>{Be(n)||(console.log("result is not an array, default to []"),n=[]);let r=`${e}|${t}`,i=d();i[r]=n,h(i)},s.clear=()=>{clearInterval(g)},s},e.fsTaskCp=function(e,t,n={}){HD(e)||wD(e),HD(t)||wD(t);let r=`${e}/fpHash.json`,i=`${t}/fpHash.json`,o=e=>{let t={};try{t=za(a.readFileSync(e,"utf8"))}catch(e){}return t},s=(e,t)=>{try{let n=sr(t);a.writeFileSync(e,n,"utf8")}catch(e){}},l=(e,t)=>be(o(e),t,""),c=(e,t,n)=>{let r=o(e);r[t]=n,s(e,r)},u=(e,t)=>{let n=o(e);Te(n,t)&&delete n[t],s(e,n)},f=()=>o(r),d=e=>s(r,e),h=e=>l(r,e),p=()=>o(i),g=e=>s(i,e),m=e=>l(i,e),y=(e,t)=>c(i,e,t),v=e=>u(i,e),A=e=>{let t=[];return An(e,(e,n)=>{t.push({fp:n,hash:e})}),t},b={buildSrc:()=>{let e=qi();return e.set=(t,n)=>{((e,t)=>{c(r,e,t)})(t,n),Pi(e,"set",[{type:"set",fp:t,hash:n}],{tag:"fsTaskCp"})},e.get=h,e.remove=t=>{(e=>{u(r,e)})(t),Pi(e,"remove",[{type:"remove",fp:t}],{tag:"fsTaskCp"})},e.readKp=f,e.writeKp=d,e},buildTar:()=>{let e=qi(),t=Lu(300),n=rN(r);return n.on("change",n=>{t(()=>{(async()=>{let t=f();if(!Se(t))return"no src";let n=p(),r=A(t),i=eN(A(n),r,"fp",{withInfor:!1}),o=_a();return o.then(e=>{g(t)}).catch(()=>{}),Pi(e,"change",[{kpSrc:t,kpTar:n,kpCmp:i,pm:o}],{tag:"fsTaskCp",funSettle:e=>{o.reject(e)}}),o})().catch(()=>{})})}),e.set=y,e.get=m,e.remove=v,e.readKp=p,e.writeKp=g,e.clear=n.clear,e}};return b},e.fsTreeFolder=function(e,t=1){return VD(e,t,{path:o,fs:a})},e.fsTreeFolderCore=VD,e.fsTreeFolderWithHash=function(e,t=1,n={}){return tN(e,t,{path:o,fs:a,crypto:d,...n})},e.fsTreeFolderWithHashCore=tN,e.fsWatchFile=rN,e.fsWatchFolder=qD,e.fsWriteJson=function(e,t,n={}){let r=null;if(!Ee(t)&&!Be(t))return{error:"inp is not an object or array"};let i=be(n,"useFormat",null);Ie(i)||(i=!1);let o="";try{o=i?JSON.stringify(t,null,2):JSON.stringify(t)}catch(e){r=e}return null!==r?{error:r}:iN(e,o,{fs:a})},e.fsWriteText=function(e,t){return iN(e,t,{fs:a})},e.fsWriteTextCore=iN,e.genGradientColor=function(e){if(Mn(e))return{};let t;try{t=pu.toRgba(e)}catch(e){return{}}function n(e,t){return e.a=t,pu.toRgbaString(e)}return{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,n(t,.4)],[1,n(t,.9)]]}},e.genID=Hu,e.genIDSeq=function(){return cN()},e.genPm=_a,e.getBufferSize=hN,e.getClearPathName=yD,e.getCsvStrFromData=pN,e.getDataFromExcelFileU8Arr=yN,e.getDataFromExcelFileU8ArrDyn=async function(e,t,n){let r=await yN(e,t);return""!==be(r,"error","")?Promise.reject(r.error):r},e.getEnv=function(){let e=Ka(),t="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope;return e=e||t,{isBrowser:e,isWebWorker:t,isNode:"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}},e.getErrorMessage=QD,e.getExcelU8ArrFromData=async function(e,t="data"){if(!Tn(e)){return{error:"no data"}}Fe(t)||(t="data");let n=null,r=vb(e,t);return Te(r,"error")?r:(n=await CF(r),Te(n,"error"),n)},e.getExcelU8ArrFromWorkbook=CF,e.getExcelWorkbookFromData=vb,e.getExcelWorkbookFromWorksheet=yb,e.getExcelWorksheetFromData=ur,e.getFileAccept=Pm,e.getFileBasicHash=YN,e.getFileHash=async function(e,t={}){if(!Xa(e)&&!VN(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let n=be(t,"type","");Fe(n)||(n="sha512");let r=be(t,"chunkSize");return Me(r)||(r=67108864),r=xr(r),Te({MD5:"md5","SHA-1":"sha1","SHA-256":"sha256","SHA-384":"sha384","SHA-512":"sha512",md5:"md5",sha1:"sha1",sha256:"sha256",sha384:"sha384",sha512:"sha512",xxhash64:"xxhash64"},n)?"xxhash64"===n?WN(e,t):YN(e,t):Promise.reject(`type[${n}] must be one of [ 'md5', 'sha1', 'sha256', 'sha384', 'sha512', 'xxhash64' ]`)},e.getFileName=vD,e.getFileNameExt=function(e){if(!Fe(e))return"";let t=Uo(vD(e),".");if(ar(t)<=1)return"";let n="";try{n=wa(t)}catch(e){}return n},e.getFileTrueName=UD,e.getFileType=Om,e.getFileXxHash=WN,e.getGlobal=nc,e.getObjSize=function(e){let t=0,n=function e(n){if(null!=n)switch(typeof n){case"number":t+=8;break;case"string":t+=2*n.length;break;case"boolean":t+=4;break;case"object":let r=Object.prototype.toString.call(n).slice(8,-1);if("Object"===r||"Array"===r)for(let t in n)n.hasOwnProperty(t)&&e(n[t]);else t+=2*n.toString().length}return t}(e),r=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"}(n);return{int:n,str:r}},e.getPathParent=AD,e.getTimeBetween=function(e,t,n="days"){let r=XN(n);if(""===r)return[];let i=KN(e,n),o=KN(t,n);return null===i||null===o||e>=t?[]:wn(_N(o.diff(i,n)+1),function(e){return i.clone().add(e,n).format(r)})},e.getTimeFromUnit=XN,e.getTimeHp=ZN,e.getTimeObject=KN,e.getTimeRange=function(e,n){if(!Xy(e))return"無起始時間";if(void 0===n&&(n=e),!Xy(n))return"結束時間格式錯誤";let r=t(e,"YYYY-MM-DDTHH:mm:ss"),i=t(n,"YYYY-MM-DDTHH:mm:ss"),o=r.format("YYYY-MM-DD"),a=i.format("YYYY-MM-DD");if(o===a){let t=i.format("HH:mm");if(e===n)return eM(e)+" 至 無";if(e<n)return eM(e)+" 至 "+t;if(e>n)return eM(e)+" 至 "+t+" (起始時間大於結束時間)"}else{if(o<a)return eM(e)+" 至 "+eM(n);if(o>a)return eM(e)+" 至 "+eM(n)+" (起始時間大於結束時間)"}return""},e.getUserAgent=tM,e.getUserAgentDyn=async function(e=null,t){return Tn(t)||(t=["https://cdn.jsdelivr.net/npm/ua-parser-js@2.0.3/dist/ua-parser.min.js"]),await lc(t),tM(e)},e.getltdtkeys=zn,e.haskey=Te,e.html2str=async function(e){if(!Fe(e))return"";let t=await async function(){let e="htmlToText";if(Oi(be(y,e)))return y;if(Oi(be(y,["default",e])))return y.default;let t=globalThis,n=null;if(await ms(()=>(n=be(t,"ht",null),Se(n)),{attemptNum:4e3,timeInterval:50}),Oi(be(n,e)))return n;if(Oi(be(n,["default",e])))return n.default;throw console.log("ht",y,"g.ht",t.ht),new Error("invalid ht, g.ht, g.ht.default, use script for import")}();return t.htmlToText(e,{wordwrap:!1,selectors:[{selector:"script",format:"skip"},{selector:"style",format:"skip"}]})},e.htmlDecode=function(e,t={}){return Fe(e)?os.decode(e,t):""},e.htmlEncode=as,e.importResources=lc,e.interp1=function(e,t,n={}){if(!Be(e))return{err:"ps is not an array"};{let e=!Me(t),n=!Be(t);if(e&&n)return{err:"px is not a number or an array"}}let r=function(e,t={}){if(ar(e)<=0)return[];let n=be(t,"keyX");Fe(n)||(n="x");let r=be(t,"keyY");Fe(r)||(r="y");let i=[];return An(e,e=>{let t=null,o=null;Be(e)&&ar(e)>=2?(t=be(e,0),o=be(e,1)):(t=be(e,n,null),o=be(e,r,null)),Me(t)&&Me(o)&&(t=Ar(t),o=Ar(o),i.push({x:t,y:o}))}),i}(e,n);if(be(r,"err"))return be(r,"err");if(0===ar(r))return{err:"ps(length=0) is not an effective array",ps:e,psEff:r};if(1===ar(r))return{err:"ps(length=1) is one point only",ps:e,psEff:r};let i=function(e){let t=!0,n=!0;for(let r=1;r<ar(e);r++){let i=e[r-1],o=e[r];if(t&&i.x>o.x&&(t=!1),n&&i.x<o.x&&(n=!1),i.x===o.x)return{err:`x can not be equal: i=${r}, x=${i.x}`}}return t?iM:n?oM:"no"}(r);if("no"===i)return{err:"psEff is not increasing or decreasing"};i===oM&&(i=iM,r=ka(r));let o=!Be(t);o&&(t=[t]);let a=function(e,t={}){if(ar(e)<=0)return[];let n=be(t,"keyX");Fe(n)||(n="x");let r=[];return An(e,e=>{let t=null;t=Me(e)?Ar(e):Be(e)&&ar(e)>=1?be(e,0):be(e,n,null),Me(t)&&(t=Ar(t),r.push({x:t}))}),r}(t,n),s=be(n,"mode");"linear"!==s&&"stairs"!==s&&"blocks"!==s&&(s="linear");let l,c=wn(a,(e,t)=>{let i=be(e,"x"),o=null;try{"linear"===s?o=function(e,t){let n=aM(e,t);if(n!==nM)return n;let r=null;for(let n=1;n<ar(e);n++){let i=e[n-1],o=e[n];if(i.x<=t&&t<=o.x){r=((t-i.x)*o.y+(o.x-t)*i.y)/(o.x-i.x);break}}return null===r?{err:rM}:r}(r,i):"blocks"===s?o=function(e,t){let n=aM(e,t);if(n!==nM)return n;let r=null;for(let n=1;n<ar(e);n++){let i=e[n-1],o=e[n],a=i.x,s=o.x;if(a<=t&&t<=s){r=o.y;break}}return null===r?{err:rM}:r}(r,i):"stairs"===s&&(o=function(e,t,n={}){let r=be(n,"xMin");if(fa(r)){if(r>e[0].x)return{err:`xMin=${r} > ps[0].x=${e[0].x}`};r===e[0].x||(e=[{x:r,y:e[0].y},...e])}let i=be(n,"xMax");if(fa(i)){if(i<e[ar(e)-1].x)return{err:`xMax=${i} < ps[size(ps)-1].x=${e[ar(e)-1].x}`};if(i===e[ar(e)-1].x);else{let t={x:i,y:e[ar(e)-1].y};e=[...e,t]}}let o=aM(e,t);if(o!==nM)return o;let a=null;for(let n=0;n<ar(e);n++){let r=be(e,n-1,null),i=be(e,n,null),o=be(e,n+1,null),s=i.x;r&&(s=(r.x+i.x)/2);let l=i.x;if(o&&(l=(o.x+i.x)/2),s<=t&&t<=l){a=i.y;break}}return null===a?{err:rM}:a}(r,i,n))}catch(e){o={err:e.toString()}}return o});return l=o?c[0]:c,l},e.isDate=function(e){let t=e;return Fe(e)&&(t=new Date(e)),Me(e)&&(t=xr(e),t=new Date(e)),t instanceof Date&&!isNaN(t)},e.isDev=function(){return!!location&&Ja(location.href,"localhost")},e.isEle=ku,e.isEleExistByID=function(e){return!!Fe(e)&&!(null===document.getElementById(e))},e.isEmail=function(e){return!!Fe(e)&&(!(e.length>254)&&(!(e.indexOf("@")>64)&&lM.test(e)))},e.isErr=function(e){return cM(e)},e.isIE=Ju,e.isNarrow=function(e){if(!Ka())return!1;let t=window.innerWidth>0&&window.innerWidth<=1024,n=!1;if(e){let t=be(e,"clientWidth",0);n=t>0&&t<=700}return t||n},e.isStrHasCapital=hM,e.isStrHasLetter=pM,e.isStrHasLowerCase=gM,e.isStrHasNumber=mM,e.isStrHasSpace=yM,e.isStrHasSymbol=vM,e.isUserIdentify=function(e){let t=_a();if(!Fe(e))return t.reject("身份證字號非有效字串"),t;if(10!==e.length)return t.reject("身份證字號長度非10位"),t;if(isNaN(e.substring(1,10))||!/^[A-Z]$/.test(e.substring(0,1)))return t.reject("身份證格式錯誤,字首需大寫英文"),t;e="ABCDEFGHJKLMNPQRSTUVXYWZIO".indexOf(e.substring(0,1))+10+""+e.substring(1,10);let n=parseInt(e.substring(0,1))+9*parseInt(e.substring(1,2))+8*parseInt(e.substring(2,3))+7*parseInt(e.substring(3,4))+6*parseInt(e.substring(4,5))+5*parseInt(e.substring(5,6))+4*parseInt(e.substring(6,7))+3*parseInt(e.substring(7,8))+2*parseInt(e.substring(8,9))+parseInt(e.substring(9,10)),r=parseInt(e.substring(10,11));return n%10!=0&&10-n%10!==r?(t.reject("非有效身份證"),t):(t.resolve(),t)},e.isUserName=function(e){let t=_a();return Fe(e)?(t.resolve(),t):(t.reject("請填入姓名"),t)},e.isUserPw=function(e,t={}){let n=[],r=be(t,"useKeyForError",null);Ie(r)||(r=!1);let i=be(t,"useOnlyOneError",null);if(Ie(i)||(i=!1),ke(e)||(r?n.push("keyInvalidPassword"):n.push("密碼非有效字串")),ar(n)>0)throw new Error(n[0]);let o=be(t,"numLenMin","");(!Cr(o)||Yi(o)<0)&&(o=8),o=Yi(o);let a=be(t,"numLenMax","");if((!Cr(a)||Yi(a)<0)&&(a=30),a=Yi(a),o>a&&(r?n.push("keyLimNumLenMinOrMax"):n.push("設定密碼最小長度大於最大長度")),ar(n)>0)throw new Error(n[0]);let s=be(t,"noSpace",null);if(Ie(s)||(s=!0),s&&(yM(e)&&(r?n.push("keyLimHasSpace"):n.push("密碼不可包含空白字元")),i&&ar(n)>0))throw new Error(n[0]);let l=be(t,"onlyAscii",null);if(Ie(l)||(l=!0),l&&(/[^\x20-\x7e]/.test(e)&&(r?n.push("keyLimNonAsciiChar"):n.push("密碼僅允許使用英文大小寫、數字及特殊符號")),i&&ar(n)>0))throw new Error(n[0]);if(ar(e)<o&&(r?n.push("keyLimNumLenMin"):n.push(`密碼長度須大於等於${o}個字元`)),i&&ar(n)>0)throw new Error(n[0]);if(ar(e)>a&&(r?n.push("keyLimNumLenMax"):n.push(`密碼長度須小於等於${a}個字元`)),i&&ar(n)>0)throw new Error(n[0]);let c=be(t,"requireLetter",null);Ie(c)||(c=!1);let u=be(t,"requireUppercase",null);Ie(u)||(u=!0);let f=be(t,"requireLowercase",null);Ie(f)||(f=!0);let d=be(t,"requireDigit",null);Ie(d)||(d=!0);let h=be(t,"requireSpecial",null);if(Ie(h)||(h=!0),c&&!pM(e)&&(r?n.push("keyLimRequireLetter"):n.push("密碼須包含至少一個英文字母")),i&&ar(n)>0)throw new Error(n[0]);if(u&&!hM(e)&&(r?n.push("keyLimRequireUppercase"):n.push("密碼須包含至少一個大寫英文字母")),i&&ar(n)>0)throw new Error(n[0]);if(f&&!gM(e)&&(r?n.push("keyLimRequireLowercase"):n.push("密碼須包含至少一個小寫英文字母")),i&&ar(n)>0)throw new Error(n[0]);if(d&&!mM(e)&&(r?n.push("keyLimRequireDigit"):n.push("密碼須包含至少一個數字")),i&&ar(n)>0)throw new Error(n[0]);if(h&&!vM(e)&&(r?n.push("keyLimRequireSpecial"):n.push("密碼須包含至少一個特殊符號")),i&&ar(n)>0)throw new Error(n[0]);let p=be(t,"forbiddenChars",null);if(Be(p)||(p=[]),ar(p)>0){for(let t of p)if(e.includes(t)){if(r){n.push("keyLimForbiddenChar");break}n.push(`密碼不可包含字元:${t}`)}if(i&&ar(n)>0)throw new Error(n[0])}let g=be(t,"commonPasswordBlacklist",null);if(Be(g)||(g=CM),ar(g)>0){let t=e.toLowerCase();if(g.some(e=>ke(e)&&t===e.toLowerCase())&&(r?n.push("keyLimCommonPassword"):n.push("此密碼為常見弱密碼,不允許使用")),i&&ar(n)>0)throw new Error(n[0])}let m=be(t,"account",""),y=be(t,"noConsecutiveCharsFromAccount",null);Ie(y)||(y=!1);let v=be(t,"consecutiveCharsMinMatch","");if(Wi(v)||(v=3),v=Yi(v),y&&ke(m)&&ar(m)>=v){let t=[...m.toLowerCase()],o=e.toLowerCase(),a=!1;for(let e=0;e<=t.length-v;e++){let n=t.slice(e,e+v).join("");if(o.includes(n)){a=!0;break}}if(a&&(r?n.push("keyLimConsecutiveCharsFromAccount"):n.push(`密碼不可包含與帳號相同之${v}個以上連續字元`)),i&&ar(n)>0)throw new Error(n[0])}if(ar(n)>0)throw new Error(n.join(" | "));return!0},e.isWindow=Ka,e.isab=xe,e.isarr=Be,e.isarr0=Nn,e.isarr1=sM,e.isbigint=Ma,e.isblob=Xa,e.isbol=Ie,e.isday=Qu,e.isearr=Tn,e.iseobj=Se,e.iser=Mn,e.isernot=Lm,e.isestr=Fe,e.isfile=VN,e.isfun=Oi,e.isint=Cr,e.ismonth=fr,e.isn0int=uM,e.isn0num=fM,e.isnan=Ne,e.isnbr=De,e.isnint=hb,e.isnnum=function(e){return!!Me(e)&&xr(e)<0},e.isnull=kn,e.isnum=Me,e.isobj=Ee,e.isobj0=Fn,e.isp0int=mo,e.isp0num=dM,e.ispint=Wi,e.ispm=gs,e.ispnum=la,e.isstr=ke,e.isstr0=Dn,e.istime=Xy,e.istimeTZ=xM,e.istimems=AM,e.istimemsTZ=IM,e.isu16arr=dN,e.isu8arr=ls,e.isundefined=Sn,e.j2o=za,e.judge=function(e,t,n,r={}){if(!Me(e))throw new Error("x1 is not a number");if(!Me(n))throw new Error("x2 is not a number");let i=be(r,"withPreciseNum");if(Ie(i)||(i=!0),i&&(e=DF(e),n=DF(n)),"==="===t)return e===n||BM(e,n);if("!=="===t)return function(e,t){return!BM(e,t)}(e,n);if(">="===t)return e===n||function(e,t){return new Zl(e).gte(t)}(e,n);if(">"===t)return function(e,t){return new Zl(e).gt(t)}(e,n);if("<="===t)return e===n||function(e,t){return new Zl(e).lte(t)}(e,n);if("<"===t)return function(e,t){return new Zl(e).lt(t)}(e,n);throw console.log(t),new Error(`invalid op[${t}]`)},e.keysmat2ltdt=EM,e.ltdt2vrtsable=function(e,t=[],n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:[];if(!Tn(e))return i("invalid ltdt");if(!Be(t))return i("invalid mergerowkeys");let o=!1;if(An(e,function(e){Se(e)||(o=!0)}),o)return i("invalid ltdt, every element must be an effective object");let a=zn(e),s=[];An(e,function(e){let t={};An(a,function(n){t[n]={value:e[n].value,style:e[n].style,rowspan:1}}),s.push(t)});let l=ka(s),c=ar(l);An(a,function(e){if(da(e,t)){let t=Zi(0,c,0),n=Zi(0,c,0),r=Zi(1,c+1,0);An(l,function(i,o){if(o>0){ua(l[o-1][e].value,l[o][e].value)&&(t[o-1]=1,t[o]=1,r[o]=r[o-1]+1),1===t[o-1]&&1===t[o]&&(n[o-1]=0,n[o]=1)}}),An(l,function(i,o){1===t[o]&&(1===n[o]?l[o][e].rowspan=r[o]:l[o][e].rowspan=null)})}});let u=ka(l);return r?{state:"success",msg:u}:u},e.ltdtDiff=function(e,t,n={}){if(!Be(e))return{};if(!Be(t))return{};if(0===ar(e)&&0===ar(t))return{};let r=be(n,"empty");Fe(r)||(r="∗empty∗");let i=zn(e),o=zn(t),a=SM(i,o),s={};An(a,(e,t)=>{s[t]=e});let l=Zo(lr(e,a,{empty:r}),lr(t,a,{empty:r}),{...n,mode:"matrix"});return l.dfs=wn(l.dfs,e=>{let t={};An(e,e=>{e.k=s[e.k],t[e.k]=e});let n={};return An(a,e=>{n[e]=t[e]}),n}),l},e.ltdtDiffByKey=eN,e.ltdtkeys2mat=lr,e.ltdtkeysheads2mat=cr,e.ltdtmapping=function(e,t,n=""){if(!Tn(e))return[];if(!Tn(t))return[];let r=wn(e,e=>SF(e,t,n));return r},e.ltdtmerge=uD,e.ltdtpick=function(e,t){if(!Tn(e))return[];if(!Tn(t))return[];let n=wn(e,e=>kF(e,t));return n},e.ltdtpull=function(e,t,n){return Be(e)&&Be(t)&&Fe(n)&&mn(e,e=>Ee(e))?0===t.length?e:mn(t,e=>Ee(e))?FM(e,t,n):[]:[]},e.mat2ltdt=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:[];if(!Tn(e))return r("invalid mat");if(e.length<=1)return r("invalid mat, at least 2 rows are required");let i=!1;if(An(e,function(e){Tn(e)||(i=!0)}),i)return r("invalid mat, every row must be an effective array");var o,a;let s=EM(Jo(e)[0],(a=null==(o=e)?0:o.length)?bo(o,1,a):[],{returnWithStateAndMsg:!0});return"error"===s.state?r(`keysmat2ltdt: ${s.msg}`):n?s:s.msg},e.matConcat=function(e,t){if(!Be(e))return[];if(!Be(t))return[];if(0===ar(e)&&0===ar(t))return[];let n=ar(e),r=ar(be(e,0,[])),i=ar(t),o=ar(be(t,0,[])),a=[],s=Math.max(n,i);for(let n=0;n<s;n++){let i=[],s=-1;for(let t=0;t<r;t++){s++;let r=be(e,`${n}.${t}`,null);i[s]=r}for(let e=0;e<o;e++){s++;let r=be(t,`${n}.${e}`,null);i[s]=r}a[n]=i}return a},e.matDiff=function(e,t,n={}){return Be(e)&&Be(t)?0===ar(e)&&0===ar(t)?{}:Zo(e,t,{...n,mode:"matrix"}):{}},e.matat=function(e,t,n){return Tn(e)?wn(e,function(e){return yo(e,t,n)}):[]},e.now2str=RD,e.now2strp=function(){if(!Oi(t))throw new Error("invalid dayjs");return t().format("YYYYMMDDHHmmss")},e.nowDay2str=function(){if(!Oi(t))throw new Error("invalid dayjs");return t().format("YYYY-MM-DD")},e.nowms2str=function(){if(!Oi(t))throw new Error("invalid dayjs");return t().format("YYYY-MM-DDTHH:mm:ss.SSSZ")},e.nowms2strp=function(){if(!Oi(t))throw new Error("invalid dayjs");return t().format("YYYYMMDDHHmmssSSS")},e.o2j=sr,e.obj2b64=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"",i="";try{let t=sr(e,!1,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`o2j: ${t.msg}`);let n=DM(t.msg,{returnWithStateAndMsg:!0});if("error"===n.state)return r(`str2b64: ${n.msg}`);i=n.msg}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.obj2pb64=function(e,t,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(void 0===e)return i("invalid data");if(!Fe(t))return i("invalid key");let o="";try{let n=sr({data:e},!1,{returnWithStateAndMsg:!0});if("error"===n.state)return i(`o2j: ${n.msg}`);o=NM(n.msg,t,!0)}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.obj2str=function(e,t="Uint8Array",n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(Sn(e))return i("invalid data");ke(t)?t=[t]:Be(t)||(t=["Uint8Array"]);let o="";try{o=JSON.stringify(e,function(e,n){return n=zM.escape(n),t.indexOf("Uint8Array")>=0&&(n=zM.u8arr2b64(n)),t.indexOf("Uint16Array")>=0&&(n=zM.u16arr2b64(n)),n})}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.obj2stru8arr=jM,e.obj2u8arr=function(e,t={}){let n=[],r=new Uint8Array,i=be(t,"returnWithStateAndMsg",null);Ie(i)||(i=!1);let o=e=>i?{state:"error",msg:e}:new Uint8Array;if(!sM(e)&&!Se(e))return o("invalid data, data is not an effective object or a non-empty array");let a=[],s=[];function l(e){a.push(hN(e)),s.push(e)}try{let t=jM(e,{returnWithStateAndMsg:!0});if("error"===t.state)return o(`obj2stru8arr: ${t.msg}`);let i=t.msg;l(VM(i.results)),An(i.binarys,e=>{l(e)});let c=a,u=VM(JSON.stringify(c)),f=new Uint8Array(8);ds(hN(u),f),n.push(f),n.push(u),An(s,e=>{n.push(e)}),r=YM(n)}catch(e){return o(e.toString())}return i?{state:"success",msg:r}:r},e.objSortBy=WM,e.objSortByKeys=function(e,t){if(!Se(e))return{};if(!Tn(t))return{};let n={};return An(t,(e,t)=>{n[e]=t}),WM(e,(e,t)=>be(n,t,0))},e.oo=function(e){if(void 0!==e)return za(sr(e))},e.openLink=function(e){if(!Fe(e))return;let 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,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!Fe(e))return i("invalid b64");if(!Fe(t))return i("invalid key");let o=null;try{if(o=za(Kr(e,t,!0)).data,void 0===o)return i("can not decrypt b64 with key, or the decrypted data is invalid")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.pm2resolve=db,e.pmChain=function(e,t=null){if(!Be(e)){let e=_a();return e.reject("pms is not an array"),e}return e.reduce((e,t)=>e.then(t),Promise.resolve(t))},e.pmConvertResolve=fb,e.pmDebounce=function(e=300){return new function(e){let t=[],n=null,r=null,i="wait";return Wi(e)||(e=300),e=Yi(e),function(o,...a){Oi(o)?((null===r||"wait"===i)&&(r=Date.now()),t.push({func:o,input:a,output:null}),null===n&&"wait"===i&&(n=setInterval(()=>{if(null===r)throw new Error("invalid tLast");if("wait"!==i)return;if("wait"===i&&0===t.length)return clearInterval(n),n=null,void(r=null);let o=Date.now();if(o-r>e){i="doing",r=o;let e=t.pop();t=[];let n=e.func(...e.input);gs(n)?n.then(t=>{e.output=t}).catch(t=>{e.output={err:t}}).finally(()=>{i="wait",r=Date.now()}):(e.output=n,i="wait")}"wait"===i&&0===t.length&&(clearInterval(n),n=null,r=null)},20))):console.log("func is not a function")}}(e)},e.pmHook=GM,e.pmHookReject=function(e,t=()=>{}){return Oi(e)?(Oi(t)||(t=()=>{}),GM(e,e=>{if("afterCatch"===e.mode)return t(e.data)})):null},e.pmIni=function(){return Promise.resolve()},e.pmInvResolve=function(e,t={}){if(!gs(e))throw new Error("pm is not a promise");let n=be(t,"thenExtractData");Ie(n)||(n=!1);let r=_a();return e.then(e=>{n&&(e=be(e,"data"));let t=be(e,"state",""),i=be(e,"msg",{});"success"===t?r.resolve(i):"cancelled"===t?r.reject({reason:"cancelled"}):r.reject(i)}).catch(e=>{r.reject(e)}),r},e.pmKeyMutex=function(){return new function(){let e=new Map,t=new Map;return async(n,r)=>{let i=(e.get(n)||Promise.resolve()).then(async()=>await r(),async()=>await r());e.set(n,i.catch(()=>{})),t.set(n,(t.get(n)||0)+1);try{return await i}finally{let r=t.get(n)-1;r<=0?(t.delete(n),e.delete(n)):t.set(n,r)}}}},e.pmMap=function(e,t,n=0){let r={},i=!1,o=_a();if(!Be(e)&&!Ee(e))return o.reject("rs is not an array or object"),o;if(0===ar(e))return o.resolve([]),o;let a=!1;if(Ee(e)){a=!0;let t=[];An(e,(e,n)=>{t.push({k:n,v:e})}),e=t}let s=pb(n);return s.on("message",function(n){if(i)return;let l,c=s.get();if(Oi(t)){let e=c.key,n=c.value;if(a&&(e=c.value.k,n=c.value.v),l=t(n,e),!gs(l))throw new Error("return of fun is not a promise")}else l=c.value;l.then(e=>{r[c.key]=e}).catch(e=>{i=!0,s.clear(),o.reject(e)}).finally(()=>{s.cb(),ar(r)===ar(e)&&o.resolve(nD(r))})}),An(e,(e,t)=>{s.push({key:t,value:e})}),o},e.pmQueue=gb,e.pmSeries=ic,e.pmThrottle=function(){let e=qi(),t=[],n=null,r=!1;return function(i,...o){let a=_a();if(!Oi(i))return void console.log("func is not a function");let s=Hu();return t.push({id:s,func:i,input:o}),null===n&&(n=setInterval(async()=>{if(r)return;r=!0;let i=t.pop();for(let n=0;n<t.length;n++){let r=t[n].id,i={state:"cancelled"};e.emit(r,i)}if(t=[],i){let t,n=i.id;t=Oi(i.func)?await db(i.func)(...i.input):{state:"error",msg:"fun is not a function"},e.emit(n,t)}r=!1,r||0!==t.length||(clearInterval(n),n=null)},20)),e.once(s,e=>{"success"===e.state?a.resolve(e.msg):"cancelled"===e.state?a.reject({reason:"cancelled"}):a.reject(e.msg)}),a}},e.pmTimeout=async function(e,t,n={}){if(!gs(e))throw new Error("invalid pm");if(!mo(t))throw new Error(`invalid ms[${t}]`);t=Math.min(t,Ri);let r=be(n,"label",null);Fe(r)||(r="");let i,o=`timeout[${t}ms]`;Fe(r)&&(o=`${r} ${o}`);let a=_a();return i=setTimeout(()=>{let e=new Error(o);e.code="TIMEOUT",e.timeout=t,a.reject(e)},t),Promise.race([e,a]).finally(()=>clearTimeout(i))},e.preciseNum=DF,e.pseudoRandom=XM,e.pseudoRandomIntRange=function(e=0,t=100,n="start1"){if(Cr(e)||(e=0),e=Yi(e),Cr(t)||(t=100),e>(t=Yi(t)))throw new Error(`vstart[${e}] > vend[${t}]`);let r=XM(n)*(t-e+1)+e;return r=Math.floor(r),r},e.pseudoRandomIntsNdpRange=function(e=0,t=100,n,r="start1"){if(Cr(e)||(e=0),e=Yi(e),Cr(t)||(t=100),t=Yi(t),Wi(n)||(n=1),n=Yi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=XM(r,!0),o=[],a=t-e;for(let n=0;n<=a;n++){let n=i()*(t-e+1)+e;n=Math.floor(n),o.push(n)}let s=Pa(o,{returnIndex:!0});return s=Jo(s,n),s},e.pseudoRandomIntsRange=function(e=0,t=100,n,r="start1"){if(Cr(e)||(e=0),e=Yi(e),Cr(t)||(t=100),t=Yi(t),Wi(n)||(n=1),n=Yi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=XM(r,!0),o=[];for(let r=1;r<=n;r++){let n=i()*(t-e+1)+e;n=Math.floor(n),o.push(n)}return o},e.pseudoRandomRange=function(e=0,t=1,n="start1"){if(Me(e)||(e=0),e=xr(e),Me(t)||(t=1),e>(t=xr(t)))throw new Error(`vstart[${e}] > vend[${t}]`);return XM(n)*(t-e)+e},e.pseudoRandomsRange=function(e=0,t=1,n=1,r="start1"){if(Me(e)||(e=0),e=xr(e),Me(t)||(t=1),t=xr(t),Wi(n)||(n=1),n=Yi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=XM(r,!0),o=[];for(let r=1;r<=n;r++){let n=i()*(t-e)+e;o.push(n)}return o},e.queue=pb,e.random=ZM,e.randomIntRange=function(e=0,t=100){if(Cr(e)||(e=0),e=Yi(e),Cr(t)||(t=100),e>(t=Yi(t)))throw new Error(`vstart[${e}] > vend[${t}]`);let n=ZM()*(t-e+1)+e;return n=Math.floor(n),n},e.randomIntsNdpRange=function(e=0,t=100,n){if(Cr(e)||(e=0),e=Yi(e),Cr(t)||(t=100),t=Yi(t),Wi(n)||(n=1),n=Yi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let r=function(e,t,n){return t=(n?gn(e,t,n):void 0===t)?1:Ir(t),(v(e)?oT:aT)(e,t)}(Zi(e,t+1),n);return r},e.randomIntsRange=function(e=0,t=100,n){if(Cr(e)||(e=0),e=Yi(e),Cr(t)||(t=100),t=Yi(t),Wi(n)||(n=1),n=Yi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let r=[];for(let i=1;i<=n;i++){let n=ZM()*(t-e+1)+e;n=Math.floor(n),r.push(n)}return r},e.randomRange=function(e=0,t=1){if(Me(e)||(e=0),e=xr(e),Me(t)||(t=1),e>(t=xr(t)))throw new Error(`vstart[${e}] > vend[${t}]`);return ZM()*(t-e)+e},e.randomsRange=function(e=0,t=1,n=1){if(Me(e)||(e=0),e=xr(e),Me(t)||(t=1),t=xr(t),Wi(n)||(n=1),n=Yi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let r=[];for(let i=1;i<=n;i++){let n=ZM()*(t-e)+e;r.push(n)}return r},e.rang=function(e,t,n=2){if(!Me(e))return[];if(e=xr(e),!Me(t))return[];if(t=xr(t),Wi(n)||(n=2),(n=Yi(n))<=0)throw new Error(`num[${n}] <= 0`);let r=(t-e)/n,i=e,o=[];for(let e=0;e<=n;e++)o.push(i),i+=r;return o},e.rep=function(e,t){return Fe(e)&&mo(t)?lT(e,t):""},e.repObj=function(e,t){return Mn(e)?[]:Wi(t)?_N(t,io(e)):[]},e.replace=uc,e.replaceObj=function(e,t){return Fe(e)&&Se(t)?(An(t,function(e,t){e=Ee(e)||Be(e)?JSON.stringify(e):Ta(e)}),An(t,function(t,n){e=uc(e,n,t)}),e):""},e.replacePlus=function(e,t,n,r=null,i){if(!Fe(e)||!Fe(t)||!Fe(n))return"";if(!ke(i))return"";let o="[\\s\\S]*";Fe(r)&&(o="[^"+r+"]*");let a=new RegExp(t+o+n,"g");return e.replace(a,i)},e.round=FF,e.secd=function(e){return Me(e)?1/Du(e=xr(e)):null},e.sep=na,e.sepInt=function(e,t,n=!0){if(!Cr(e))return[];if(!mo(t))return[];if(!Ie(n))return[];let r=cT(e/t),i=e-r*t,o=[];for(let e=1;e<=t;e++){let t=r;e<=i&&(t=r+1),o.push(t)}return n&&(o=ka(o)),o},e.setIntervalHp=function(e,t=1){let n=nc(),r=Ka(),i=e=>{n.setTimeout(e,1)},o=e=>{n.requestAnimationFrame(e)},a=null;a=r?o:i;let s=ZN(),l=!0,c=s(),u=()=>{if(!l)return;if(s()-c>=t){try{e()}catch(e){console.log(e)}c=s()}a(u)};return a(u),()=>{l=!1}},e.setTimeoutHp=function(e,t=1){let n=nc(),r=Ka(),i=e=>{n.setTimeout(e,1)},o=e=>{n.requestAnimationFrame(e)},a=null;a=r?o:i;let s=ZN(),l=!0,c=s(),u=()=>{if(!l)return;if(s()-c>=t){l=!1;try{e()}catch(e){console.log(e)}}a(u)};return a(u),null},e.sind=Tu,e.split=ta,e.str2aes=NM,e.str2b64=DM,e.str2hint=JM,e.str2md5=function(e,t=!1,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!Fe(e))return i("invalid str");Ie(t)||(t=!1);let o="";try{let n=uT(e);o=t?n.toString(Qr):n.toString(Xr)}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.str2obj=function(e,t="Uint8Array",n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:{};if(!ke(e))return i("invalid data");ke(t)?t=[t]:Be(t)||(t=["Uint8Array"]);let o={};try{o=JSON.parse(e,function(e,n){return t.indexOf("Uint8Array")>=0&&(n=zM.b642u8arr(n)),t.indexOf("Uint16Array")>=0&&(n=zM.b642u16arr(n)),zM.unescape(n)})}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.str2sha=CT,e.str2sha512=function(e,t=!1,n={}){let r=be(n,"returnWithStateAndMsg",null);if(Ie(r)||(r=!1),!r)return CT(e,512,t);let i=CT(e,512,t,{returnWithStateAndMsg:!0});return"error"===i.state?{state:"error",msg:`str2sha: ${i.msg}`}:i},e.str2u8arr=VM,e.strCompare=BT,e.strCompareForVersion=function(e,t){let n=ET(e),r=ET(t);if(null===n||null===r)return null;for(let e=0;e<3;e++){if(n[e]>r[e])return 1;if(n[e]<r[e])return-1}return 0},e.strDiff=_o,e.strDiffToHtml=function(e,t,n={}){if(!ke(e))return"";if(!ke(t))return"";if(""===e&&""===t)return"";let r=be(n,"useNormNewline");Ie(r)||(r=!0),r&&(e=(e=e.replaceAll("\r\n","\n")).replaceAll("\r","\n"),t=(t=t.replaceAll("\r\n","\n")).replaceAll("\r","\n"));let i=Wf(),o=Wo("file","file",e,t),a=i.html(o,{drawFileList:!1,matching:"none",diffStyle:"char",outputFormat:"line-by-line"}),s=Uo(a,"\n"),l="",c=!1;return An(s,e=>{'<div class="d2h-code-line">'===ea(e)&&(c=!0),e.indexOf('class="d2h-code-line-prefix"')>=0&&(e=e.replaceAll('class="d2h-code-line-prefix"','class="d2h-code-line-prefix" style="display:inline-block; width: 0.7rem;"')),e.indexOf("<del>")>=0&&(e=e.replaceAll("<del>",'<del style="color:#f26; background:#ffefd5;">')),e.indexOf("<ins>")>=0&&(e=e.replaceAll("<ins>",'<ins style="color:#090; background:#e4fed1;">')),c&&(l+=e+"\n"),c&&"</div>"===ea(e)&&(c=!1)}),a=l,a},e.strFindFuzz=function(e,t,n=!1){let r="";if(Fe(e)||Me(e))r=Ta(e);else{if(!Tn(e))return!!n&&0;r=Ao(e,"")}if(""===t)return!n||100;if(Mn(t))return!!n&&0;if(Ja(r,t))return!n||100;let i=na(t," "),o=wn(i,function(e){return((e,t)=>{let n=new SQ([e],{includeScore:!0}).search(t);n=be(n,0);let r=be(n,"score",1);return r=1-r,r*=100,r})(r,e)});if(n)return kQ(o);{let e=80;return mn(o,function(t){return t>=e})}},e.strFindSimilar=function(e,t){let n="";if(Fe(e)||Me(e))n=Ta(e);else{if(!Tn(e))return{};n=Ao(e,"")}return Me(t)&&(t=Ta(t)),Fe(t)&&(t=[t]),Tn(t)?function(e,t){let n=[],r=0;for(let i=0;i<t.length;i++){let o=t[i],a=BT(e,o);n.push({target:o,rating:a}),a>n[r].rating&&(r=i)}return{ratings:n,bestMatch:n[r],bestMatchIndex:r}}(n,t=wn(t,function(e){return Ta(e)})):{}},e.strTruncate=MF,e.strdelleft=oa,e.strdelright=La,e.strleft=ra,e.strmid=fc,e.strright=ia,e.stru8arr2obj=FQ,e.tand=Nu,e.time2day=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!Xy(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.time2hour=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!Xy(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.time2min=eM,e.timeTZ2day=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!xM(e))return i("invalid t");let o="";try{e=wM.delTZ(e),o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timeTZ2expire=function(e,t=null,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=(e,t)=>r?{state:"error",msg:e}:{today:null,msg:"",err:t};if(!xM(e))return i("invalid t","時間格式錯誤");try{e=MQ(e),t=MQ(t)}catch(e){return i(e.toString(),"時間轉換失敗")}return DQ(e,t,n)},e.timeTZ2hour=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!xM(e))return i("invalid t");let o="";try{e=wM.delTZ(e),o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timeTZ2min=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!xM(e))return i("invalid t");let o="";try{e=wM.delTZ(e),o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timeTZ2past=function(e,t=null,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=(e,t)=>r?{state:"error",msg:e}:{today:null,msg:"",err:t};if(!xM(e))return i("invalid t","時間格式錯誤");try{e=TQ(e),t=TQ(t)}catch(e){return i(e.toString(),"時間轉換失敗")}return NQ(e,t,n)},e.timems2day=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!AM(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DD")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timems2hour=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!AM(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timems2min=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!AM(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timems2time=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!AM(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm:ss")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timemsTZ2day=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!IM(e))return i("invalid t");let o="";try{e=wM.delTZ(e),o=t(e).format("YYYY-MM-DD")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timemsTZ2expire=DQ,e.timemsTZ2hour=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!IM(e))return i("invalid t");let o="";try{e=wM.delTZ(e),o=t(e).format("YYYY-MM-DDTHH")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timemsTZ2min=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!IM(e))return i("invalid t");let o="";try{e=wM.delTZ(e),o=t(e).format("YYYY-MM-DDTHH:mm")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timemsTZ2past=NQ,e.timemsTZ2time=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!IM(e))return i("invalid t");let o="";try{e=wM.delTZ(e),o=t(e).format("YYYY-MM-DDTHH:mm:ss")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.treeObj=Eu,e.treeToFilepath=function(e,t={}){if(!Tn(e))return[];let n=be(t,"delimiter");Fe(n)||(n="/");let r=be(t,"bindRoot");Fe(r)||(r="root");let i=[];return Eu(e,(e,t,o)=>{let a=be(e,"_type","");if("folder"!==a&&"file"!==a)return e;let s=wn(be(e,"pathInfors",[]),"name"),l=be(s,0,"")===r;if(1===ar(s)&&l)return e;l&&(s=Qa(s));let c={type:a,path:n+Ao(s,n)};return i.push(c),e},{force:!0}),i},e.trim=Ra,e.u16arr2b64=LM,e.u16arr2u8arr=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!dN(e))return r("invalid u16a");let i=null;try{i=new Uint8Array(e)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.u8arr2ab=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new ArrayBuffer;if(!ls(e))return r("invalid u8a");let i=null;try{i=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.u8arr2b64=QM,e.u8arr2blob=EF,e.u8arr2bs=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!ls(e))return r("invalid u8a");let i="";try{let t=e.length;for(let n=0;n<t;n++)i+=String.fromCharCode(e[n])}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.u8arr2obj=function(e,t={}){let n={},r=be(t,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:{};if(!ls(e))return i("invalid u8a");try{let t=8,r=e.slice(0,t),o=e.slice(t,hN(e)),a=us(r),s=o.slice(0,a),l=o.slice(a,hN(o)),c=QQ(s,{returnWithStateAndMsg:!0});if("error"===c.state)return i(`u8arr2str: ${c.msg}`);let u=c.msg,f=function(e,t){let n=0,r=0,i=[];return An(t,t=>{r=n+t;let o=e.slice(n,r);n=r,i.push(o)}),i}(l,JSON.parse(u)),d=QQ(f.shift(),{returnWithStateAndMsg:!0});if("error"===d.state)return i(`u8arr2str: ${d.msg}`);let h=FQ({results:d.msg,binarys:f},{returnWithStateAndMsg:!0});if("error"===h.state)return i(`stru8arr2obj: ${h.msg}`);n=h.msg}catch(e){return i(e.toString())}return r?{state:"success",msg:n}:n},e.u8arr2str=QQ,e.u8arr2u16arr=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint16Array;if(!ls(e))return r("invalid u8a");let i=null;try{i=new Uint16Array(e)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.urlParse=function(e){if(!Fe(e))return{};if(!Fe(e=be(e=Uo(e,"?"),"[1]")))return{};let t=Uo(e,"&");return t=wn(t,function(e){return Uo(e,"=")}),t=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];ti(r,i[0],i[1])}return r}(t),t},e.verifyValue=function(e,t,n={}){let r=!1,i="";if("isstr"===t)ke(e)||(r=!0,i="需要為字串",e="");else if("isnum"===t)Me(e)||(r=!0,i="需要為數字",e=0);else if("isp0num"===t)dM(e)||(r=!0,i="需要為含0的正浮點數",e=0);else if("isn0num"===t)fM(e)||(r=!0,i="需要為含0的負浮點數",e=0);else if("isint"===t)Cr(e)||(r=!0,i="需要為整數",e=0);else if("ispint"===t)Wi(e)||(r=!0,i="需要為不含0正整數",e=0);else if("isp0int"===t)mo(e)||(r=!0,i="需要為含0正整數",e=0);else if("isnint"===t)hb(e)||(r=!0,i="需要為不含0負整數",e=0);else if("isn0int"===t)uM(e)||(r=!0,i="需要為含0負整數",e=0);else if("custom"===t){let t=be(n,"funCustom");if(!Oi(t))throw new Error("invalid opt.funCustom when type='custom'");let o=t(e);if(!Ie(o.err))throw new Error("invalid return.err for type='custom'");if(o.err&&!Fe(o.errmsg))throw new Error("invalid return.errmsg when return.err=true for type='custom'");if(!Me(o.value)&!ke(o.value))throw new Error("invalid return.value for type='custom'");r=o.err,i=o.errmsg,e=o.value}else if(Oi(t)){e=t(e)}else"any"===t?Me(e)||ke(e)||(r=!0,i="需要為字串或數字",e=""):(r=!0,i="需要指定驗證類型",e=null);return{value:e,err:r,errmsg:i}},e.waitFun=ms});
32
+ return/[!-/:-@[-`{-~]/.test(e)}function AM(e){if(!Fe(e))return!1;let n="YYYY-MM-DDTHH:mm:ss.SSS";return e===t(e,n).format(n)}function bM(e){let t;return t=ia(e,1),"Z"===t?`${e=La(e,1)}+00:00`:e}let wM={checkTZ:function(e){let t;return t=ia(e,1),"Z"===t||(t=ia(e,6),!!/[+|-]\d\d:\d\d/.test(t))},delTZ:function(e){let t;return t=ia(e,1),La(e,"Z"===t?1:6)},normTZ:bM,sepTZ:function(e){let t=bM(e);return{t:La(t,6),tz:ia(t,6)}}};function IM(e){if(!Fe(e))return!1;if(!wM.checkTZ(e))return!1;let n=wM.delTZ(e),r="YYYY-MM-DDTHH:mm:ss.SSS";return n===t(n,r).format(r)}function xM(e){if(!Fe(e))return!1;if(!wM.checkTZ(e))return!1;let n=wM.delTZ(e),r="YYYY-MM-DDTHH:mm:ss";return n===t(n,r).format(r)}let CM=["1234","12345","123456","1234567","12345678","123456789","1234567890","12345678910","111111","000000","666666","888888","7777777","11111111","123123","123321","654321","987654321","qwerty","qwerty123","qwerty1","qwertyuiop","qazwsx","1q2w3e4r","1q2w3e4r5t","1q2w3e","1qaz2wsx","zxcvbnm","password","password1","passw0rd","admin","admin123","welcome","letmein","login","master","monkey","dragon","shadow","sunshine","superman","batman","football","baseball","soccer","hockey","michael","jordan","jennifer","hunter","ranger","harley","thomas","charlie","andrew","daniel","ashley","bailey","mustang","access","secret","ninja","jesus","hello","freedom","trustno1","1qaz@WSX","P@ssw0rd","Pass@123","Aa123456","Aa@123456","Admin@123","abc@123","abc123","abcdef","abcd1234","abc","iloveyou","fuckyou","f*ckyou","whatever","nothing","google","computer","internet","samsung","apple","killer","princess","lovely","tigger","starwars","pokemon","minecraft","123qwe","zaq1zaq1","photoshop","adobe123","18atcskd2w","mynoob"];function BM(e,t){return new Zl(e).eq(t)}function EM(e,t,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:[];if(!Tn(e))return i("invalid keys");if(!Tn(t))return i("invalid mat");if(!Tn(t[0]))return i("invalid mat, the first row is not an effective array");let o=wn(t,function(t){let n=Gi(e,t);return An(n,function(e,t){void 0===e&&(n[t]="")}),n});return r?{state:"success",msg:o}:o}var SM=Da(function(e){return Pn(Cn(e,1,$y,!0))});var kM=Da(function(e,t){var n=wa(t);return $y(n)&&(n=void 0),$y(e)?function(e,t,n,r){var i=-1,o=Un,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=de(t,Ke(n))),r?(o=Hn,a=!1):t.length>=200&&(o=wt,a=!1,t=new At(t));e:for(;++i<s;){var u=e[i],f=null==n?u:n(u);if(u=r||0!==u?u:0,a&&f==f){for(var d=c;d--;)if(t[d]===f)continue e;l.push(u)}else o(t,f,r)||l.push(u)}return l}(e,Cn(t,1,$y,!0),pn(n)):[]}),FM=kM;function DM(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!Fe(e))return r("invalid str");let i="";try{let t=Jr.parse(e);i=Qr.stringify(t)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function NM(e,t,n=!1,r={}){let i=be(r,"returnWithStateAndMsg",null);Ie(i)||(i=!1);let o=e=>i?{state:"error",msg:e}:"";if(!Fe(e))return o("invalid str");if(!Fe(t))return o("invalid key");Ie(n)||(n=!1);let a="";try{let r=Wr.encrypt(e,t);if(n)a=r.toString();else{let e=r.toString();a=Qr.parse(e).toString(Xr)}}catch(e){return o(e.toString())}return i?{state:"success",msg:a}:a}var MM={exports:{}};!function(e){var t;e.exports=(t=Dr(),function(){if("function"==typeof ArrayBuffer){var e=t.lib.WordArray,n=e.init,r=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 t=e.byteLength,r=[],i=0;i<t;i++)r[i>>>2]|=e[i]<<24-i%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=e}}(),t.lib.WordArray)}(MM);var TM=Er(MM.exports);function QM(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!ls(e))return r("invalid u8a");let i="";try{i=TM.create(e).toString(Qr)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function LM(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!dN(e))return r("invalid u16a");let i="";try{let t=QM(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),{returnWithStateAndMsg:!0});if("error"===t.state)return r(`u8arr2b64: ${t.msg}`);i=t.msg}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}let RM="[BlazeForPreventEscape]",UM=/^(?:\[BlazeForPreventEscape\])*\[(?:Uint8Array|Uint16Array)\]::[A-Za-z0-9+/]*={0,2}$/,HM=/^\[BlazeForPreventEscape\](?:\[BlazeForPreventEscape\])*\[(?:Uint8Array|Uint16Array)\]::[A-Za-z0-9+/]*={0,2}$/;let qM="[Uint8Array]::",OM=/^\[Uint8Array\]::([A-Za-z0-9+/]*={0,2})$/;let PM="[Uint16Array]::",$M=/^\[Uint16Array\]::([A-Za-z0-9+/]*={0,2})$/;let zM={tagEsc:RM,escape:function(e){return ke(e)&&91===e.charCodeAt(0)&&UM.test(e)?RM+e:e},unescape:function(e){return ke(e)&&91===e.charCodeAt(0)&&HM.test(e)?e.slice(23):e},tagU8A:qM,u8arr2b64:function(e){return ls(e)?qM+QM(e):e},b642u8arr:function(e){if(ke(e)&&91===e.charCodeAt(0)){let t=OM.exec(e);if(null!==t)return Wa(t[1])}return e},tagU16A:PM,u16arr2b64:function(e){return dN(e)?PM+LM(e):e},b642u16arr:function(e){if(ke(e)&&91===e.charCodeAt(0)){let t=$M.exec(e);if(null!==t)return Ga(t[1])}return e}};function jM(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:{results:"",binarys:[]};if(!Ee(e)&&!Be(e))return r("invalid data, data is not an object or array");if(Fn(e)||Nn(e))return r("invalid data, data is an empty object or empty array");let i=/^(?:\[BlazeForPreventEscape\])*\[BlazeFor(?:Uint8Array|Uint16Array|ArrayBuffer)\]::\d+$/,o="",a=[];try{let t=-1;o=JSON.stringify(e,function(e,n){if(ls(n)){t+=1;let e=`[BlazeForUint8Array]::${t}`;return a.push(n),e}if(dN(n)){t+=1;let e=`[BlazeForUint16Array]::${t}`;return a.push(n),e}if(xe(n)){t+=1;let e=`[BlazeForArrayBuffer]::${t}`;return a.push(n),e}return cM(n)&&(n=n.toString()),Fe(n)&&91===n.charCodeAt(0)&&i.test(n)?"[BlazeForPreventEscape]"+n:n})}catch(e){return r(e.toString())}return n?{state:"success",msg:{results:o,binarys:a}}:{results:o,binarys:a}}function VM(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!Fe(e))return r("invalid str");let i=null;try{let t=DM(e,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`str2b64: ${t.msg}`);let n=Wa(t.msg,{returnWithStateAndMsg:!0});if("error"===n.state)return r(`b642u8arr: ${n.msg}`);i=n.msg}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}function YM(e){let t=0;An(e,e=>{t+=hN(e)});let n=new Uint8Array(t),r=0;return An(e,e=>{let t=function(e){return xe(e)?new Uint8Array(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0)}(e);n.set(t,r),r+=t.length}),n}function WM(e,t){if(!Se(e))return{};if(!Oi(t))throw new Error("fun is not a function");let n=wn(e,(e,n)=>({k:n,v:e,t:t(e,n)}));n=Na(n,"t");let r={};return An(n,e=>{r[e.k]=e.v}),r}function GM(e,t=()=>{}){if(!Oi(e))return null;function n(e,t){let n;return kn(e)||Sn(e)?t:(n=be(e,"data",null),n||e)}return Oi(t)||(t=()=>{}),function(){let r,i=_a(),o=t({mode:"before",data:arguments});return(kn(o)||Sn(o))&&(o=arguments),e(...o).then(e=>{r=t({mode:"afterThen",data:e}),e=n(r,e),i.resolve(e)}).catch(e=>{r=t({mode:"afterCatch",data:e}),e=n(r,e),i.reject(e)}),i}}function JM(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"success",msg:e}:e;if(!ke(e))return n?{state:"error",msg:"invalid str"}:null;if(""===e)return r(0);let i=e.split("").reduce((e,t)=>t.charCodeAt(0)+(e<<6)+(e<<16)-e,0);return r(i)}let _M=0;function XM(e="start1",t=!1){void 0===e?e=(new Date).getTime():"start1"===e&&(_M++,e=_M);let n=624,r=397,i=2147483648,o=2147483647,a=new Array(n),s=625,l=e=>{for(fa(e)?a[0]=e>>>0:(e=Ta(e),a[0]=JM(e)),s=1;s<n;s++){let e=a[s-1]^a[s-1]>>>30;a[s]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+s,a[s]>>>=0}},c=()=>(()=>{let e,t=new Array(2567483615);if(s>=n){let c;for(625===s&&l(5489),c=0;c<227;c++)e=a[c]&i|a[c+1]&o,a[c]=a[c+r]^e>>>1^t[1&e];for(;c<623;c++)e=a[c]&i|a[c+1]&o,a[c]=a[c+(r-n)]^e>>>1^t[1&e];e=a[623]&i|a[0]&o,a[623]=a[396]^e>>>1^t[1&e],s=0}return e=a[s++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0})()*(1/4294967296);l(e);let u=null;return u=t?c:c(),u}let KM=XM((new Date).getTime(),!0);function ZM(){return KM()}function eT(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}var tT=Math.floor,nT=Math.random;function rT(e,t){return e+tT(nT()*(t-e+1))}function iT(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=rT(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}function oT(e,t){return iT(Bn(e),eT(t,0,e.length))}function aT(e,t){var n=nD(e);return iT(n,eT(t,0,n.length))}var sT=Math.floor;function lT(e,t,n){return t=(n?gn(e,t,n):void 0===t)?1:Ir(t),function(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=sT(t/2))&&(e+=e)}while(t);return n}(me(e),t)}var cT=ji("floor");var uT=Er(Rr());var fT={exports:{}},dT={exports:{}};!function(e){var t;e.exports=(t=Dr(),function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),l[i]=n(e.pow(r,1/3)),i++),r++}();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],f=n[6],d=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var p=c[h-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=c[h-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[h]=g+c[h-7]+y+c[h-16]}var v=r&i^r&o^i&o,A=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&f)+l[h]+c[h];d=f,f=u,u=s,s=a+b|0,a=o,o=i,i=r,r=b+(A+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(u),n.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256)}(dT);var hT=dT.exports,pT=Er(hT);!function(e){var t;e.exports=(t=Dr(),function(){var e=t,n=e.lib.WordArray,r=e.algo,i=r.SHA256,o=r.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=i._createHelper(o),e.HmacSHA224=i._createHmacHelper(o)}(),t.SHA224)}(fT);var gT,mT=Er(fT.exports),yT={exports:{}},vT={exports:{}};function AT(){return gT||(gT=1,function(e){var t;e.exports=(t=Dr(),function(e){var n=t,r=n.lib,i=r.Base,o=r.WordArray,a=n.x64={};a.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}})}(),t)}(vT)),vT.exports}var bT={exports:{}};!function(e){var t;e.exports=(t=Dr(),AT(),function(){var e=t,n=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=a.SHA512=n.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],f=n[6],d=n[7],h=r.high,p=r.low,g=i.high,m=i.low,y=o.high,v=o.low,A=a.high,b=a.low,w=s.high,I=s.low,x=u.high,C=u.low,B=f.high,E=f.low,S=d.high,k=d.low,F=h,D=p,N=g,M=m,T=y,Q=v,L=A,R=b,U=w,H=I,q=x,O=C,P=B,$=E,z=S,j=k,V=0;V<80;V++){var Y,W,G=c[V];if(V<16)W=G.high=0|e[t+2*V],Y=G.low=0|e[t+2*V+1];else{var J=c[V-15],_=J.high,X=J.low,K=(_>>>1|X<<31)^(_>>>8|X<<24)^_>>>7,Z=(X>>>1|_<<31)^(X>>>8|_<<24)^(X>>>7|_<<25),ee=c[V-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=c[V-7],ae=oe.high,se=oe.low,le=c[V-16],ce=le.high,ue=le.low;W=(W=(W=K+ae+((Y=Z+se)>>>0<Z>>>0?1:0))+re+((Y+=ie)>>>0<ie>>>0?1:0))+ce+((Y+=ue)>>>0<ue>>>0?1:0),G.high=W,G.low=Y}var fe,de=U&q^~U&P,he=H&O^~H&$,pe=F&N^F&T^N&T,ge=D&M^D&Q^M&Q,me=(F>>>28|D<<4)^(F<<30|D>>>2)^(F<<25|D>>>7),ye=(D>>>28|F<<4)^(D<<30|F>>>2)^(D<<25|F>>>7),ve=(U>>>14|H<<18)^(U>>>18|H<<14)^(U<<23|H>>>9),Ae=(H>>>14|U<<18)^(H>>>18|U<<14)^(H<<23|U>>>9),be=l[V],we=be.high,Ie=be.low,xe=z+ve+((fe=j+Ae)>>>0<j>>>0?1:0),Ce=ye+ge;z=P,j=$,P=q,$=O,q=U,O=H,U=L+(xe=(xe=(xe=xe+de+((fe+=he)>>>0<he>>>0?1:0))+we+((fe+=Ie)>>>0<Ie>>>0?1:0))+W+((fe+=Y)>>>0<Y>>>0?1:0))+((H=R+fe|0)>>>0<R>>>0?1:0)|0,L=T,R=Q,T=N,Q=M,N=F,M=D,F=xe+(me+pe+(Ce>>>0<ye>>>0?1:0))+((D=fe+Ce|0)>>>0<fe>>>0?1:0)|0}p=r.low=p+D,r.high=h+F+(p>>>0<D>>>0?1:0),m=i.low=m+M,i.high=g+N+(m>>>0<M>>>0?1:0),v=o.low=v+Q,o.high=y+T+(v>>>0<Q>>>0?1:0),b=a.low=b+R,a.high=A+L+(b>>>0<R>>>0?1:0),I=s.low=I+H,s.high=w+U+(I>>>0<H>>>0?1:0),C=u.low=C+O,u.high=x+q+(C>>>0<O>>>0?1:0),E=f.low=E+$,f.high=B+P+(E>>>0<$>>>0?1:0),k=d.low=k+j,d.high=S+z+(k>>>0<j>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=n._createHelper(u),e.HmacSHA512=n._createHmacHelper(u)}(),t.SHA512)}(bT);var wT=bT.exports,IT=Er(wT);!function(e){var t;e.exports=(t=Dr(),AT(),function(){var e=t,n=e.x64,r=n.Word,i=n.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),t.SHA384)}(yT);let xT={1:$r,224:mT,256:pT,384:Er(yT.exports),512:IT};function CT(e,t,n=!1,r={}){let i=be(r,"returnWithStateAndMsg",null);Ie(i)||(i=!1);let o=e=>i?{state:"error",msg:e}:"";if(!Fe(e))return o("invalid str");if(!Wi(t)){if(i)return o("n is not a positive integer");throw new Error("n is not a positive integer")}if(t=Yi(t),!Te(xT,t)){if(i)return o(`invalid n[${t}]`);throw new Error(`invalid n[${t}]`)}Ie(n)||(n=!1);let a="";try{let r=(0,xT[t])(e);a=n?r.toString(Qr):r.toString(Xr)}catch(e){return o(e.toString())}return i?{state:"success",msg:a}:a}function BT(e,t){return Fe(e)&&Fe(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;let n=new Map;for(let t=0;t<e.length-1;t++){const r=e.substring(t,t+2),i=n.has(r)?n.get(r)+1:1;n.set(r,i)}let r=0;for(let e=0;e<t.length-1;e++){const i=t.substring(e,e+2),o=n.has(i)?n.get(i):0;o>0&&(n.set(i,o-1),r++)}return 2*r/(e.length+t.length-2)}(e,t):0}function ET(e){if(!Fe(e))return null;let t=e.match(/(\d+)\.(\d+)\.(\d+)/);return t?[Number(t[1]),Number(t[2]),Number(t[3])]:null}function ST(e){return Array.isArray?Array.isArray(e):"[object Array]"===LT(e)}function kT(e){return null==e?"":function(e){if("string"==typeof e)return e;if("bigint"==typeof e)return e.toString();const t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}function FT(e){return"string"==typeof e}function DT(e){return"number"==typeof e}function NT(e){return!0===e||!1===e||function(e){return MT(e)&&null!==e}(e)&&"[object Boolean]"==LT(e)}function MT(e){return"object"==typeof e}function TT(e){return null!=e}function QT(e){return!e.trim().length}function LT(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const RT="Invalid doc index: must be a non-negative integer within the bounds of the docs array",UT=Object.prototype.hasOwnProperty;var HT=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{const n=qT(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function qT(e){let t=null,n=null,r=null,i=1,o=null;if(FT(e)||ST(e))r=e,t=OT(e),n=PT(e);else{if(!UT.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const a=e.name;if(r=a,UT.call(e,"weight")&&void 0!==e.weight&&(i=e.weight,i<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(PT(a)));t=OT(a),n=PT(a),o=e.getFn??null}return{path:t,id:n,weight:i,src:r,getFn:o}}function OT(e){return ST(e)?e:e.split(".")}function PT(e){return ST(e)?e.join("."):e}const $T={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:"any",getFn:function(e,t){const n=[];let r=!1;const i=(e,t,o,a)=>{if(TT(e))if(t[o]){const s=e[t[o]];if(!TT(s))return;if(o===t.length-1&&(FT(s)||DT(s)||NT(s)||"bigint"==typeof s))n.push(void 0!==a?{v:kT(s),i:a}:kT(s));else if(ST(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,o+1,e)}else t.length&&i(s,t,o+1,a)}else n.push(void 0!==a?{v:e,i:a}:e)};return i(e,FT(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},zT=Object.freeze({isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,...$T});function jT(e){return e>=9&&e<=13||32===e||160===e}var VT=class{constructor({getFn:e=zT.getFn,fieldNormWeight:t=zT.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){let i=0,o=!1;for(let e=0;e<t.length;e++)jT(t.charCodeAt(e))?o=!1:o||(i++,o=!0);if(0===i&&(i=1),n.has(i))return n.get(i);const a=Math.round(r/Math.pow(i,.5*e))/r;return n.set(i,a),a},clear(){n.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;const e=this.docs.length;this.records=new Array(e);let t=0;if(FT(this.docs[0]))for(let n=0;n<e;n++){const e=this._createStringRecord(this.docs[n],n);e&&(this.records[t++]=e)}else for(let n=0;n<e;n++)this.records[t++]=this._createObjectRecord(this.docs[n],n);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw new Error(RT);if(FT(e)){const n=this._createStringRecord(e,t);return n&&this.records.push(n),n}const n=this._createObjectRecord(e,t);return this.records.push(n),n}removeAt(e){if(!Number.isInteger(e)||e<0)throw new Error(RT);for(let t=0,n=this.records.length;t<n;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,n=this.records.length;t<n;t+=1)this.records[t].i>e&&(this.records[t].i-=1)}removeAll(e){const t=new Set;for(const n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(0===t.size)return;this.records=this.records.filter(e=>!t.has(e.i));const n=Array.from(t).sort((e,t)=>e-t);for(const e of this.records){let t=0,r=n.length;for(;t<r;){const i=t+r>>>1;n[i]<e.i?t=i+1:r=i}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!TT(e)||QT(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){const n={i:t,$:{}};for(let t=0,r=this.keys.length;t<r;t++){const r=this.keys[t],i=r.getFn?r.getFn(e):this.getFn(e,r.path);if(TT(i))if(ST(i)){const e=[];for(let t=0,n=i.length;t<n;t+=1){const n=i[t];if(TT(n))if(FT(n)){if(!QT(n)){const r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(TT(n.v)){const t=FT(n.v)?n.v:kT(n.v);if(!QT(t)){const r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}n.$[t]=e}else if(FT(i)&&!QT(i)){const e={v:i,n:this.norm.get(i)};n.$[t]=e}}return n}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function YT(e,t,{getFn:n=zT.getFn,fieldNormWeight:r=zT.fieldNormWeight}={}){const i=new VT({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(qT)),i.setSources(t),i.create(),i}function WT(e,t,n,{location:r=zT.location,distance:i=zT.distance,threshold:o=zT.threshold,findAllMatches:a=zT.findAllMatches,minMatchCharLength:s=zT.minMatchCharLength,includeMatches:l=zT.includeMatches,ignoreLocation:c=zT.ignoreLocation}={}){if(t.length>32)throw new Error((e=>`Pattern length exceeds max of ${e}.`)(32));const u=t.length,f=e.length,d=Math.max(0,Math.min(r,f));let h=o,p=d;const g=(e,t)=>{const n=e/u;if(c)return n;const r=Math.abs(d-t);return i?n+r/i:r?1:n},m=s>1||l,y=m?Array(f):[];let v;for(;(v=e.indexOf(t,p))>-1;){const e=g(0,v);if(h=Math.min(e,h),p=v+u,m){let e=0;for(;e<u;)y[v+e]=1,e+=1}}p=-1;let A=[],b=1,w=0,I=u+f;const x=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=I;for(;r<i;)g(t,d+i)<=h?r=i:I=i,i=Math.floor((I-r)/2+r);I=i;let o=Math.max(1,d-i+1);const s=a?f:Math.min(d+i,f)+u,l=Array(s+2);l[s+1]=(1<<t)-1;for(let r=s;r>=o;r-=1){const i=r-1,a=n[e[i]];if(l[r]=(l[r+1]<<1|1)&a,t&&(l[r]|=(A[r+1]|A[r])<<1|1|A[r+1]),l[r]&x&&(b=g(t,i),b<=h)){if(h=b,p=i,w=t,p<=d)break;o=Math.max(1,2*d-p)}}if(g(t+1,d)>h)break;A=l}if(m&&p>=0){const t=Math.min(f-1,p+u-1+w);for(let r=p;r<=t;r+=1)n[e[r]]&&(y[r]=1)}const C={isMatch:p>=0,score:Math.max(.001,b)};if(m){const e=function(e=[],t=zT.minMatchCharLength){const n=[];let r=-1,i=-1,o=0;for(let a=e.length;o<a;o+=1){const a=e[o];a&&-1===r?r=o:a||-1===r||(i=o-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(y,s);e.length?l&&(C.indices=e):C.isMatch=!1}return C}function GT(e){const t={};for(let n=0,r=e.length;n<r;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function JT(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);const t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){const r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}const _T={"ł":"l","Ł":"L","đ":"d","Đ":"D","ø":"o","Ø":"O","ħ":"h","Ħ":"H","ŧ":"t","Ŧ":"T","ı":"i","ß":"ss"},XT=new RegExp("["+Object.keys(_T).join("")+"]","g"),KT="function"==typeof String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(XT,e=>_T[e]):e=>e;var ZT=class{constructor(e,{location:t=zT.location,threshold:n=zT.threshold,distance:r=zT.distance,includeMatches:i=zT.includeMatches,findAllMatches:o=zT.findAllMatches,minMatchCharLength:a=zT.minMatchCharLength,isCaseSensitive:s=zT.isCaseSensitive,ignoreDiacritics:l=zT.ignoreDiacritics,ignoreLocation:c=zT.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreDiacritics:l,ignoreLocation:c},e=s?e:e.toLowerCase(),e=l?KT(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:GT(e),startIndex:t})},f=this.pattern.length;if(f>32){let e=0;const t=f%32,n=f-t;for(;e<n;)u(this.pattern.substr(e,32),e),e+=32;if(t){const e=f-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?KT(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};const t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}const{location:i,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,ignoreLocation:c}=this.options,u=[];let f=0,d=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:h})=>{const{isMatch:p,score:g,indices:m}=WT(e,t,n,{location:i+h,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,includeMatches:r,ignoreLocation:c});p&&(d=!0),f+=g,p&&m&&u.push(...m)});const h={isMatch:d,score:d?f/this.chunks.length:1};return d&&r&&(h.indices=JT(u)),h}};const eQ=new Set(["fuzzy","include"]);function tQ(e){return e.startsWith("inverse")}const nQ=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(t){const n=t===e;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(t){let n,r=0;const i=[],o=e.length;for(;(n=t.indexOf(e,r))>-1;)r=n+o,i.push([n,r-1]);const a=!!i.length;return{isMatch:a,score:a?0:1,indices:i}}})},{type:"prefix-exact",multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:"prefix-exact",search(t){const n=t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(t){const n=!t.startsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(t){const n=!t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(t){const n=t.endsWith(e);return{isMatch:n,score:n?0:1,indices:[t.length-e.length,t.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(t){const n=-1===t.indexOf(e);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{const n=new ZT(e,{location:t.location??zT.location,threshold:t.threshold??zT.threshold,distance:t.distance??zT.distance,includeMatches:t.includeMatches??zT.includeMatches,findAllMatches:t.findAllMatches??zT.findAllMatches,minMatchCharLength:t.minMatchCharLength??zT.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??zT.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??zT.ignoreDiacritics,ignoreLocation:t.ignoreLocation??zT.ignoreLocation});return{type:"fuzzy",search:e=>n.searchIn(e)}}}],rQ=nQ.length;function iQ(e,t){const n=e.match(t);return n?n[1]:null}const oQ=[];function aQ(...e){oQ.push(...e)}function sQ(e,t){for(let n=0,r=oQ.length;n<r;n+=1){const r=oQ[n];if(r.condition(e,t))return new r(e,t)}return new ZT(e,t)}const lQ="$and",cQ="$or",uQ="$path",fQ="$val",dQ=e=>!(!e[lQ]&&!e[cQ]),hQ=e=>({[lQ]:Object.keys(e).map(t=>({[t]:e[t]}))});function pQ(e,t,{auto:n=!0}={}){const r=e=>{if(FT(e)){const r={keyId:null,pattern:e};return n&&(r.searcher=sQ(e,t)),r}const i=Object.keys(e),o=(e=>!!e[uQ])(e);if(!o&&i.length>1&&!dQ(e))return r(hQ(e));if((e=>!ST(e)&&MT(e)&&!dQ(e))(e)){const r=o?e[uQ]:i[0],a=o?e[fQ]:e[r];if(!FT(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={keyId:PT(r),pattern:a};return n&&(s.searcher=sQ(a,t)),s}const a={children:[],operator:i[0]};return i.forEach(t=>{const n=e[t];ST(n)&&n.forEach(e=>{a.children.push(r(e))})}),a};return dQ(e)||(e=hQ(e)),r(e)}function gQ(e,{ignoreFieldNorm:t=zT.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{const o=e?e.weight:null;n*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:r))}),n}var mQ=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):this.comparator(e,this.heap[0])<0&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(){return this.heap.sort(this.comparator)}_bubbleUp(e){const t=this.heap;for(;e>0;){const n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;const r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){const t=this.heap,n=t.length;let r=e;do{const i=2*(e=r)+1,o=2*e+2;if(i<n&&this.comparator(t[i],t[r])>0&&(r=i),o<n&&this.comparator(t[o],t[r])>0&&(r=o),r!==e){const n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function yQ(e,t,{includeMatches:n=zT.includeMatches,includeScore:r=zT.includeScore}={}){return e.map(e=>{const{idx:i}=e,o={item:t[i],refIndex:i};return n&&(o.matches=function(e){const t=[];return e.matches.forEach(e=>{if(!TT(e.indices)||!e.indices.length)return;const n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}(e)),r&&(o.score=e.score),o})}const vQ=/[\p{L}\p{M}\p{N}_]+/gu,AQ=new WeakSet;function bQ(e){if("function"==typeof e){let t=!1;return n=>{const r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>"string"!=typeof e)))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?"array containing non-strings":typeof r}.`);return r}}return e instanceof RegExp?(e.global||function(e){AQ.has(e)||(AQ.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}(e),t=>t.match(e)||[]):e=>e.match(vQ)||[]}function wQ({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){const r=bQ(n);return{tokenize:n=>(e||(n=n.toLowerCase()),t&&(n=KT(n)),r(n))}}function IQ(e,t,n,r){const i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);const o=new Set(i);let a=e.docTermFieldHits.get(n);a||(a=new Map,e.docTermFieldHits.set(n,a));for(const t of o)a.set(t,(a.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function xQ(e,t,n,r){const{i:i,v:o,$:a}=t;if(void 0===o){if(a)for(let t=0;t<n;t++){const n=a[t];if(n)if(Array.isArray(n))for(const t of n)IQ(e,t.v,i,r);else IQ(e,n.v,i,r)}}else IQ(e,o,i,r)}function CQ(e,t){const n=e.docFieldCount.get(t);if(void 0===n)return;e.fieldCount-=n,e.docFieldCount.delete(t);const r=e.docTermFieldHits.get(t);if(r){for(const[t,n]of r){const r=(e.df.get(t)||0)-n;r<=0?e.df.delete(t):e.df.set(t,r)}e.docTermFieldHits.delete(t)}}function BQ(e,t){if(0===t.length)return;const n=Array.from(new Set(t)).sort((e,t)=>e-t);for(const t of n)CQ(e,t);const r=e=>{let t=0,r=n.length;for(;t<r;){const i=t+r>>>1;n[i]<e?t=i+1:r=i}return e-t},i=n[0],o=new Map;for(const[t,n]of e.docFieldCount)o.set(t>i?r(t):t,n);e.docFieldCount=o;const a=new Map;for(const[t,n]of e.docTermFieldHits)a.set(t>i?r(t):t,n);e.docTermFieldHits=a}var EQ=class{constructor(e,t,n){this.options={...zT,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new HT(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;const t=sQ(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof VT))throw new Error("Incorrect 'index' type");if(this._myIndex=t||YT(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const e=wQ({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=function(e,t,n){const r={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(const i of e)xQ(r,i,t,n);return r}(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!TT(e))return;this._docs.push(e);const t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){const e=wQ({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});!function(e,t,n,r){xQ(e,t,n,r)}(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){const t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){this._invertedIndex&&BQ(this._invertedIndex,n);const e=new Set(n);this._docs=this._docs.filter((t,n)=>!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw new Error(RT);this._invertedIndex&&BQ(this._invertedIndex,[e]);const t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){const{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:o,sortFn:a,ignoreFieldNorm:s}=this.options;if(FT(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return DT(n)&&n>-1&&(e=e.slice(0,n)),e}const l=o&&DT(n)&&n>0&&FT(e),c=a,u=(e,t)=>c(e,t)||e.idx-t.idx;let f;if(l){const t=new mQ(n,u);FT(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),f=t.extractSorted()}else f=FT(e)?FT(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),function(e,{ignoreFieldNorm:t=zT.ignoreFieldNorm}){e.forEach(e=>{e.score=gQ(e.matches,{ignoreFieldNorm:t})})}(f,{ignoreFieldNorm:s}),o&&f.sort(FT(e)?u:c),DT(n)&&n>-1&&(f=f.slice(0,n));return yQ(f,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){const r=this._getSearcher(e),i=this.options.useTokenSearch&&"all"===this.options.tokenMatch,{records:o}=this._myIndex,a=t?null:[];return o.forEach(({v:e,i:o,n:s})=>{if(!TT(e))return;const l=r.searchIn(e);if(l.isMatch){const r={score:l.score,value:e,norm:s,indices:l.indices};i&&(r.matchedMask=l.matchedMask,r.matchedTerms=l.matchedTerms,r.termCount=l.termCount);const c=[r];if(!i||this._coversAllTokens(c)){const r={item:e,idx:o,matches:c};t?(r.score=gQ(r.matches,{ignoreFieldNorm:n}),t.insert(r)):a.push(r)}}}),a}_searchLogical(e){const t=pQ(e,this.options),n=this._normalizedKeys(),r=(e,t,i)=>{if(!("children"in e)){const{keyId:r,searcher:o}=e;let a;return null===r?(a=[],n.forEach((e,n)=>{a.push(...this._findMatches({key:e,value:t[n],searcher:o}))})):a=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:o}),a&&a.length?[{idx:i,item:t,matches:a}]:[]}const{children:o,operator:a}=e,s=[];for(let e=0,n=o.length;e<n;e+=1){const n=o[e],l=r(n,t,i);if(l.length)s.push(...l);else if(a===lQ)return[]}return s},i=this._myIndex.records,o=new Map,a=[];return i.forEach(({$:e,i:n})=>{if(TT(e)){const i=r(t,e,n);i.length&&(o.has(n)||(o.set(n,{idx:n,item:e,matches:[]}),a.push(o.get(n))),i.forEach(({matches:e})=>{o.get(n).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){const r=this._getSearcher(e),i=this.options.useTokenSearch&&"all"===this.options.tokenMatch,{records:o}=this._myIndex,a=this._normalizedKeys(),s=t?null:[];return o.forEach(({$:e,i:o})=>{if(!TT(e))return;const l=[];let c=!1,u=!1;if(a.forEach((t,n)=>{const i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(l.push(...i),i[0].hasInverse&&(u=!0)):c=!0}),(!u||!c)&&l.length&&(!i||this._coversAllTokens(l))){const r={idx:o,item:e,matches:l};t?(r.score=gQ(r.matches,{ignoreFieldNorm:n}),t.insert(r)):s.push(r)}}),s}_findMatches({key:e,value:t,searcher:n}){if(!TT(t))return[];const r=[];if(ST(t))t.forEach(({v:t,i:i,n:o})=>{if(!TT(t))return;const a=n.searchIn(t);if(a.isMatch){const n={score:a.score,key:e,value:t,idx:i,norm:o,indices:a.indices,hasInverse:a.hasInverse};void 0!==a.termCount&&(n.matchedMask=a.matchedMask,n.matchedTerms=a.matchedTerms,n.termCount=a.termCount),r.push(n)}});else{const{v:i,n:o}=t,a=n.searchIn(i);if(a.isMatch){const t={score:a.score,key:e,value:i,norm:o,indices:a.indices,hasInverse:a.hasInverse};void 0!==a.termCount&&(t.matchedMask=a.matchedMask,t.matchedTerms=a.matchedTerms,t.termCount=a.termCount),r.push(t)}}return r}_coversAllTokens(e){const t=e.length?e[0].termCount:void 0;if(void 0===t)return!0;if(t<=31){let n=0;for(let t=0;t<e.length;t++)n|=e[t].matchedMask||0;return n===2**t-1}const n=new Set;for(let t=0;t<e.length;t++){const r=e[t].matchedTerms;if(r)for(const e of r)n.add(e)}return n.size===t}};EQ.version="7.5.0",EQ.createIndex=YT,EQ.parseIndex=function(e,{getFn:t=zT.getFn,fieldNormWeight:n=zT.fieldNormWeight}={}){const{keys:r,records:i}=e,o=new VT({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(i),o},EQ.config=zT,EQ.match=function(e,t,n){if(n&&n.useTokenSearch)throw new Error("Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.");return sQ(e,{...zT,...n}).searchIn(t)},EQ.parseQuery=pQ,aQ(class{constructor(e,{isCaseSensitive:t=zT.isCaseSensitive,ignoreDiacritics:n=zT.ignoreDiacritics,includeMatches:r=zT.includeMatches,minMatchCharLength:i=zT.minMatchCharLength,ignoreLocation:o=zT.ignoreLocation,findAllMatches:a=zT.findAllMatches,location:s=zT.location,threshold:l=zT.threshold,distance:c=zT.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:a,ignoreLocation:o,location:s,threshold:l,distance:c},e=t?e:e.toLowerCase(),e=n?KT(e):e,this.pattern=e,this.query=function(e,t={}){return e.replace(/\\\|/g,"\0").split("|").map(e=>{const n=function(e){const t=[],n=e.length;let r=0;for(;r<n;){for(;r<n&&" "===e[r];)r++;if(r>=n)break;let i=r;for(;i<n&&" "!==e[i]&&'"'!==e[i];)i++;if(i<n&&'"'===e[i]){for(i++;i<n;){if('"'===e[i]){const t=i+1;if(t>=n||" "===e[t]){i++;break}if("$"===e[t]&&(t+1>=n||" "===e[t+1])){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&" "!==e[i];)i++;t.push(e.substring(r,i)),r=i}}return t}(e.replace(/\u0000/g,"|").trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){const i=n[e];let o=!1,a=-1;for(;!o&&++a<rQ;){const e=nQ[a],n=iQ(i,e.multiRegex);n&&(r.push(e.create(n,t)),o=!0)}if(!o)for(a=-1;++a<rQ;){const e=nQ[a],n=iQ(i,e.singleRegex);if(n){r.push(e.create(n,t));break}}}return r})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?KT(e):e;let o=0;const a=[];let s=0,l=!1;for(let r=0,i=t.length;r<i;r+=1){const i=t[r];a.length=0,o=0,l=!1;for(let t=0,r=i.length;t<r;t+=1){const r=i[t],{isMatch:c,indices:u,score:f}=r.search(e);if(!c){s=0,o=0,a.length=0,l=!1;break}o+=1,s+=f,tQ(r.type)&&(l=!0),n&&(eQ.has(r.type)?a.push(...u):a.push(u))}if(o){const e={isMatch:!0,score:s/o};return l&&(e.hasInverse=!0),n&&(e.indices=JT(a)),e}}return{isMatch:!1,score:1}}}),aQ(class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=wQ({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});const n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(const e of n){this.termSearchers.push(new ZT(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));const n=r.get(e)||0,o=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(o)}this.combineAll="all"===t.tokenMatch,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};const t=[];let n=0,r=0,i=0,o=0;const a=this.combineAll&&!this.useMask?new Set:null;for(let s=0;s<this.termSearchers.length;s++){const l=this.termSearchers[s].searchIn(e),c=this.idfWeights[s];r+=c,l.isMatch&&(i++,n+=c*(1-l.score),l.indices&&t.push(...l.indices),this.combineAll&&(this.useMask?o|=1<<s:a.add(s)))}if(0===i)return{isMatch:!1,score:1};const s=r>0?1-n/r:0,l={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(l.indices=JT(t)),this.combineAll&&(this.useMask?l.matchedMask=o:l.matchedTerms=a,l.termCount=this.numTerms),l}}),EQ.use=function(...e){e.forEach(e=>aQ(e))};var SQ=EQ;function kQ(e){return function(e,t){var n=null==e?0:e.length;return n?ma(e,t)/n:NaN}(e,fn)}function FQ(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:{};if(!Se(e))return r("invalid data");let i=null,o=null;try{i=e.results,o=e.binarys}catch(e){return r(e.toString())}if(!Fe(i))return r("invalid results");if(!Be(o))return r("invalid binarys");let a=/^\[BlazeFor(Uint8Array|Uint16Array|ArrayBuffer)\]::(\d+)$/,s=/^\[BlazeForPreventEscape\](?:\[BlazeForPreventEscape\])*\[BlazeFor(?:Uint8Array|Uint16Array|ArrayBuffer)\]::\d+$/,l={};try{l=JSON.parse(i,function(e,t){if(!Fe(t)||91!==t.charCodeAt(0))return t;let n=a.exec(t);if(null===n)return s.test(t)?t.slice(23):t;let r=Number(n[2]);if(r>=o.length)throw new Error(`binary index out of range[${r}], binarys.length[${o.length}]`);return((e,t,n)=>{if("Uint16Array"===e&&!dN(n)){if(!ls(n))throw new Error(`binarys[${t}] can not be restored to Uint16Array`);if(n.byteLength%2!=0)throw new Error(`binarys[${t}] byteLength[${n.byteLength}] is not even, can not be restored to Uint16Array`);let e=0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n:new Uint8Array(n);return new Uint16Array(e.buffer)}if("ArrayBuffer"===e&&!xe(n)){if(!ls(n))throw new Error(`binarys[${t}] can not be restored to ArrayBuffer`);return n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)}return n})(n[1],r,o[r])})}catch(e){return r(e.toString())}return n?{state:"success",msg:l}:l}function DQ(e,n=null,r={}){let i=be(r,"returnWithStateAndMsg",null);Ie(i)||(i=!1);let o=(e,t)=>i?{state:"error",msg:e}:{today:null,msg:"",err:t};if(!Oi(t))throw new Error("invalid dayjs");if(!IM(e))return o("invalid t","時間格式錯誤");let a=null;try{a=function(e,n){let r=t();IM(n)&&(r=t(n,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=t(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r>i)return{today:null,msg:"",err:"時間已過"};let o,a=r.format("YYYY-MM-DD"),s=i.format("YYYY-MM-DD"),l=t(a,"YYYY-MM-DD"),c=t(s,"YYYY-MM-DD"),u=i.diff(r,"seconds"),f=i.diff(r,"minutes"),d=i.diff(r,"hours"),h=c.diff(l,"days"),p=c.diff(l,"weeks"),g=c.diff(l,"months"),m=c.diff(l,"years"),y="即將到來";if(u>=0&&(o=!0,y=u+"秒後"),f>0&&(o=!0,y=f+"分鐘後"),d>0){let e=i.format("HH:mm");a===s?(o=!0,y=d+"小時後,今天"+e):(o=!1,y=d+"小時後,明天"+e)}return h>1&&(o=!1,y=2===h?"後天":h+"天後"),p>0&&(o=!1,y=p+"周後"),g>0&&(o=!1,y=g+"個月後"),m>0&&(o=!1,y=m+"年後"),{today:o,msg:y,err:""}}(e,n)}catch(e){return o(e.toString(),"時間轉換失敗")}return s=a,i?{state:"success",msg:s}:s;var s}function NQ(e,n=null,r={}){let i=be(r,"returnWithStateAndMsg",null);Ie(i)||(i=!1);let o=(e,t)=>i?{state:"error",msg:e}:{today:null,msg:"",err:t};if(!Oi(t))throw new Error("invalid dayjs");if(!IM(e))return o("invalid t","時間格式錯誤");let a=null;try{a=function(e,n){let r=t();IM(n)&&(r=t(n,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=t(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r<i)return{today:null,msg:"",err:"時間未到"};let o=r.format("YYYY-MM-DD"),a=i.format("YYYY-MM-DD"),s=t(o,"YYYY-MM-DD"),l=t(a,"YYYY-MM-DD"),c=r.diff(i,"seconds"),u=r.diff(i,"minutes"),f=r.diff(i,"hours"),d=s.diff(l,"days"),h=s.diff(l,"weeks"),p=s.diff(l,"months"),g=s.diff(l,"years"),m=!1,y="剛剛";if(c>=0&&(m=!0,y=c+"秒前"),u>0&&(m=!0,y=u+"分鐘前"),f>0){let e=i.format("HH:mm");o===a?(m=!0,y=f+"小時前"):(m=!1,y="昨天"+e)}return d>1&&(m=!1,y=d+"天前"),h>0&&(m=!1,y=h+"周前"),p>0&&(m=!1,y=p+"個月前"),g>0&&(m=!1,y=g+"年前"),{today:m,msg:y,err:""}}(e,n)}catch(e){return o(e.toString(),"時間轉換失敗")}return s=a,i?{state:"success",msg:s}:s;var s}function MQ(e){let t=wM.sepTZ(e);return e=`${t.t}.000${t.tz}`}function TQ(e){let t=wM.sepTZ(e);return e=`${t.t}.000${t.tz}`}function QQ(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!ls(e))return r("invalid u8a");let i="";try{let t=QM(e,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`u8arr2b64: ${t.msg}`);i=$a(t.msg)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i}e.ab2blob=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Blob;if(!xe(e))return r("invalid ab");let i=null;try{let t=Ce(e,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`ab2u8arr: ${t.msg}`);i=new Blob([t.msg])}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.ab2u8arr=Ce,e.addExcelWorksheetFromData=function(e,t,n="data"){if(!Se(e))return{error:"wb is not an effective object"};if(!Be(be(e,"sheets")))return{error:"wb.sheets is not an array"};Fe(n)||(n="data");let r=ur(t);return Te(r,"error")?r:(e.sheets.push({...r,name:n}),e)},e.addMonth=function(e,n){return fr(e)&&Cr(n)?t(e,"YYYY-MM").add(n,"months").format("YYYY-MM"):""},e.aes2str=Kr,e.alive=function(e={}){let t=qi(),n={},r=null,i=be(e,"timeAlive");Wi(i)||(i=1e4),i=Yi(i),i=Math.min(i,Ri);let o=be(e,"timeDetect");return Wi(o)||(o=50),o=Yi(o),o=Math.min(o,Ri),t.trigger=function(e,a){Fe(e)?(Te(n,e)||setTimeout(()=>{Pi(t,"message",[{eventName:"enter",key:e,data:a,now:ar(n)}],{tag:"alive"})},1),n[e]={data:a,time:Date.now()},null===r&&(r=setInterval(()=>{An(n,(e,r)=>{if(Date.now()-e.time>i){let e=Li(n[r]);delete n[r],Pi(t,"message",[{eventName:"leave",key:r,data:e.data,now:ar(n)}],{tag:"alive"})}}),Se(n)||(clearInterval(r),r=null)},o))):console.log("trigger need key")},t.get=function(){let e=[];return An(n,(t,n)=>{e.push({key:n,data:t.data})}),e=Li(e),e},t},e.arr2dt=function(e,t=""){if(!Tn(e))return{};if(Tn(t))return ar(e)===ar(t)?Gi(e,t):{};let n=[];for(let r=0;r<ar(e);r++)n.push(Li(t));return Gi(e,n)},e.arrAccum=function(e){if(!Tn(e))return[];let t=[],n=0;return An(e,function(e){n+=xr(e),Me(e)?t.push(n):t.push("")}),t},e.arrAdd=function(){if(ar(arguments)<2)return[];let e=arguments[0];for(let t=1;t<ar(arguments);t++){e=Ji(e,arguments[t])}return e},e.arrAt=yo,e.arrDiff=Zo,e.arrFilterByKeywords=function(e,t){if(!Tn(e))return[];if(!Fe(t)&&!Tn(t))return[];let n=null;n=Fe(t)?na(t," "):t;let r=ar(n);return wn(e,e=>function(e){let t=!1,i=0;for(let o=0;o<r;o++){let a=n[o],s=a,l="+"===ra(a,1),c="-"===ra(a,1);if((l||c)&&(s=oa(a,1)),""===ea(s))continue;let u=e.indexOf(s)>=0;if(l){if(u){t=!0,i=1;break}t=!1,i=0;break}if(c){if(u){t=!1,i=0;break}t=!0,i=1;break}if(u){t=!0;let e=1-o/r;e=e**2,i+=e}}return{hasKeyword:t,weight:i}}(e))},e.arrFilterByNum=function(e){return Tn(e)?e=wn(e=sa(e=Li(e),Me),xr):[]},e.arrFilterByPnum=ca,e.arrFilterByPnumAndToLog=function(e){return Tn(e)?e=wn(e=ca(e),Math.log):[]},e.arrFind=function(e,t){function n(e){return Be(e)?e:[e]}return Mn(e)||0===(e=n(e)).length||Mn(t)?[]:wn(t=n(t),function(t){let n=-1;for(let r=0;r<e.length;r++)if(ua(e[r],t)){n=r;break}return n})},e.arrGroupByMaxmin=function(e,t,n={}){let r=be(n,"keyMax");Fe(r)||(r="max");let i=be(n,"keyMin");Fe(i)||(i="min");let o=be(n,"keyValue");Fe(o)||(o="value");let a=be(n,"keyItems");if(Fe(a)||(a="items"),!Tn(e))return[];if(!Tn(t))return[];let s=Li(t);return An(e,(e,n)=>{let l=be(e,o);Me(l)?l=xr(l):Me(e)&&(l=xr(e)),fa(l)&&An(t,(t,n)=>{let o=be(t,r,null),c=be(t,i,null);if(null!==o&&null!==c&&Me(o)&&Me(c)){let r=be(t,"maxType");"<="!==r&&"<"!==r&&(r="<=");let i,u,f=be(t,"minType");">="!==f&&">"!==f&&(f=">="),o=xr(o),c=xr(c),i=">="===f?l>=c:l>c,u="<="===r?l<=o:l<o,i&&u&&(Te(s[n],a)||(s[n][a]=[]),s[n][a].push(e))}})}),s},e.arrHas=da,e.arrInsert=function(e,t,n){if(!Be(e))return[];if(Be(n)||(n=[n]),!mo(t))return e;if((t=Yi(t))>ar(e))return e;let r=e;try{r=[...e.slice(0,t),...n,...e.slice(t)]}catch(e){}return r},e.arrLookupByMaxmin=function(e,t,n={}){let r=be(n,"keyMax");Fe(r)||(r="max");let i=be(n,"keyMin");Fe(i)||(i="min");let o=be(n,"keyValue");Fe(o)||(o="value");let a=be(n,"keyItems");Fe(a)||(a="items");let s=be(n,"beforeAddResult",null);if(!Tn(e))return[];if(!Tn(t))return[];if(!Se(be(e,0)))return[];let l=Li(e);return An(l,(e,n)=>{let c=be(e,o);Me(c)&&(c=xr(c)),fa(c)&&An(t,(e,t)=>{let o=be(e,r,null),u=be(e,i,null);if(null!==o&&null!==u&&Me(o)&&Me(u)){let t=be(e,"maxType");"<="!==t&&"<"!==t&&(t="<=");let r,i,f=be(e,"minType");">="!==f&&">"!==f&&(f=">="),o=xr(o),u=xr(u),r=">="===f?c>=u:c>u,i="<="===t?c<=o:c<o,r&&i&&(Oi(s)&&(e=s(e,l[n],n)),Te(l[n],a)||(l[n][a]=[]),l[n][a].push(e))}})}),l},e.arrMax=function(e,t={}){if(!Tn(e))return null;let n=be(t,"returnIndex");Ie(n)||(n=!1);let r=be(t,"compareKey",null),i=e;Fe(r)&&(i=wn(e,(e,t)=>be(e,r,"")));let o=null,a=ha(i,(e,t)=>Me(t)?(t=xr(t),null===e?(o=t,t):(e=Math.max(e,t),o=e,e)):e,{returnIndex:!0});if(n)return a;let s=null;return a>=0&&(s=Fe(r)?e[a]:o),s},e.arrMin=function(e,t={}){if(!Tn(e))return null;let n=be(t,"returnIndex");Ie(n)||(n=!1);let r=be(t,"compareKey",null),i=e;Fe(r)&&(i=wn(e,(e,t)=>be(e,r,"")));let o=null,a=ha(i,(e,t)=>Me(t)?(t=xr(t),null===e?(o=t,t):(e=Math.min(e,t),o=e,e)):e,{returnIndex:!0});if(n)return a;let s=null;return a>=0&&(s=Fe(r)?e[a]:o),s},e.arrMulti=ga,e.arrNorm=function(e){if(!Tn(e))return null;let t=ya(e,e);return Me(t)?t<=0?null:Math.sqrt(t):null},e.arrProduct=ya,e.arrPull=function(e,t){if(!Tn(e))return[];if((Ee(t)||Me(t)||ke(t)||Ie(t))&&(t=[t]),!Tn(t))return e;let n=Li(e);return ba(n,t),n},e.arrPullAt=function(e,t){if(!Tn(e))return[];if(mo(t)&&(t=[t]),!Tn(t))return e;t=wn(t,e=>Yi(e));let n=Li(e);return Ea(n,t),n},e.arrReduce=ha,e.arrReverse=function(e){if(!Tn(e))return[];let t=Li(e);return ka(t),t},e.arrSep=function(e,t){if(!Tn(e))return[];if(!Wi(t)&&!Se(t))return[];let n="",r=null;if(Wi(t))r=t,n="numCount";else if(Se(t))if(Wi(be(t,"numCount")))r=t.numCount,n="numCount";else{if(!Wi(be(t,"numGroup")))throw new Error("invalid opt.numCount or opt.numGroup");r=t.numGroup,n="numGroup"}let i=ar(e),o=[];if("numCount"===n)for(let t=0;t<i;t+=r){let n=[];for(let o=0;o<r;o++){let r=t+o;r<i&&n.push(e[r])}o.push(n)}else if("numGroup"===n){for(let e=0;e<r;e++)o[e]=[];let t=-1;for(let n=0;n<i;n++)t++,t>r-1&&(t=0),o[t].push(e[n])}return o},e.arrSort=Pa,e.asind=function(e){return Me(e)?(e=xr(e),180*Math.asin(e)/Math.PI):null},e.atan2d=function(e,t){return Me(e)?(e=xr(e),Me(t)?(t=xr(t),180*Math.atan2(t,e)/Math.PI):null):null},e.atand=function(e){return Me(e)?(e=xr(e),180*Math.atan(e)/Math.PI):null},e.attstr=function(e={}){let t=";",n="@",r="table",i="id",o=be(e,"uniqItems");Ie(o)||(o=!1);let a=be(e,"dlmItem","");Fe(a)&&(t=a);let s=be(e,"dlmSep","");Fe(s)&&(n=s);let l=be(e,"keyTable","");Fe(l)&&(r=l);let c=be(e,"keyId","");Fe(c)&&(i=c);let u=be(e,"mode");function f(e){if(!Fe(e))return[];let n=Uo(e,t);return o&&(n=$n(n)),n}function d(e){if(!Tn(e))return"";return o&&(e=$n(e)),Ao(e,t)}function h(e){return e=sa(e,Fe),o&&(e=$n(e)),d(e)}function p(e){let t=[];return An(e,e=>{let o=be(e,r,""),a=be(e,i,"");if(Fe(o),ke(a)||(Be(a)?ar(a):a=""),ke(a))t.push(`${o}${n}${a}`);else if(Be(a)){let e=Ao(a,n);t.push(`${o}${n}${e}`)}}),e=d(t)}function g(e){if(!Fe(e))return[];return sa(f(e),Fe)}function m(e){if(!Fe(e))return[];let t=f(e),o=[];return An(t,e=>{let t=Uo(e,n),a=be(t,0,""),s=be(t,1,"");ar(t)>=3&&(t=Qa(t),s=t),o.push({item:e,[r]:a,[i]:s})}),o}function y(e,t){let n=[...g(e),...g(t)];return 0===ar(n)?"":h(n)}function v(e,t){let n=[...m(e),...m(t)];return 0===ar(n)?"":p(n)}function A(e,t){let n=g(e),r=g(t),i=[];return An(n,e=>{da(e,r)||i.push(e)}),0===ar(i)?"":h(i)}function b(e,t){let n=m(e),r=m(t),i=[];return An(n,e=>{da(e,r)||i.push(e)}),0===ar(i)?"":p(i)}"1p"!==u&&"2p"!==u&&(u="auto");let w={parse:function(e,t={}){if(!Fe(e))return[];let r=be(t,"mode");return"1p"!==r&&"2p"!==r&&(r=u),"1p"===r?g(e):"2p"===r||e.indexOf(n)>=0?m(e):g(e)},join:function(e,t={}){if(!Tn(e))return"";let n=be(t,"mode");if("1p"!==n&&"2p"!==n&&(n=u),"1p"===n)return h(e);if("2p"===n)return p(e);let o=be(e,0);return Te(o,r)&&Te(o,i)?p(e):h(e)},remove:function(e,t,r={}){if(!Fe(e))return"";if(!Fe(t))return e;let i=be(r,"mode");return"1p"!==i&&"2p"!==i&&(i=u),"1p"===i?A(e,t):"2p"===i||t.indexOf(n)>=0?b(e,t):A(e,t)},add:function(e,t,r={}){let i=be(r,"mode");if("1p"!==i&&"2p"!==i&&(i=u),"1p"===i)return y(e,t);if("2p"===i)return v(e,t);let o=e.indexOf(n)>=0,a=t.indexOf(n)>=0;return o||a?v(e,t):y(e,t)}};return w},e.b642obj=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:{};if(!ke(e))return r("invalid b64");let i={};try{let t=$a(e,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`b642str: ${t.msg}`);let n=za(t.msg,{returnWithStateAndMsg:!0});if("error"===n.state)return r(`j2o: ${n.msg}`);i=n.msg}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.b642str=$a,e.b642u16arr=Ga,e.b642u8arr=Wa,e.binstr=Ja,e.blob2ab=Za,e.blob2b64=es,e.blob2str=function(e){if(!Xa(e))return Promise.reject("invalid bb");if(!Ka())return Promise.reject("no window");let t=_a();try{let n=new FileReader;n.onload=function(){t.resolve(n.result)},n.onerror=function(e){t.reject(e)},n.readAsText(e)}catch(e){t.reject(e)}return t},e.blob2u8arr=ts,e.blobs2b64s=ns,e.blobs2u8arrs=rs,e.bodyLog=function(){let e=`\n <div style="padding:5px; font-size:10pt; font-family:Microsoft JhengHei, Helvetica;">\n <span style="color:#f26;">log: </span>\n <code>${as(wn(arguments,function(e){return sr(e)}).join(", "))}</code>\n </div>\n `;document.querySelector("body").insertAdjacentHTML("beforeend",e)},e.browserView=ss,e.browserViewFromBlob=function(e,t){Xa(e)&&ss(e,t)},e.browserViewFromText=function(e){ke(e)&&ss(e,"text/plain")},e.browserViewFromU8arr=function(e,t){ls(e)&&ss(e,t)},e.bs2u8arr=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!Fe(e))return r("invalid bs");let i=null;try{let t=e.length;i=new Uint8Array(t);for(let n=0;n<t;n++)i[n]=e.charCodeAt(n)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.bufRead=cs,e.bufReadDbl=us,e.bufWrite=fs,e.bufWriteDbl=ds,e.cache=function(){let e=qi(),t={};function n(t,n){hs(e,t,[n],{tag:"cache"})}function r(e,r={}){if(Te(t,e))return;let i=be(r,"fun");Oi(i)||(i=async()=>{});let o=be(r,"inputs");Be(o)||(o=[]);let a=be(r,"timeExpired");Wi(a)||(a=5e3),a=Yi(a);let s=be(r,"timeFrom");"end"!==s&&(s="start");let l=be(r,"useCacheWhenError");Ie(l)||(l=!1);let c=be(r,"useCloneDeep");Ie(c)||(c=!0),t[e]={needExec:!0,fun:i,pm:null,gen:0,inputs:o,value:null,time:null,timeExpired:a,timeFrom:s,useCacheWhenError:l,useCloneDeep:c},n("message",{fun:"set",key:e,timeExpired:a,timeFrom:s,useCacheWhenError:l,useCloneDeep:c})}async function i(e,r={}){if(Te(t,e)){let i=t[e],o=be(r,"useCloneDeep");if(Ie(o)||(o=i.useCloneDeep),i.pm)return n("message",{fun:"get",key:e,msg:"waiting"}),await i.pm,o?Li(i.value):i.value;let a=Date.now(),s=i.needExec,l=a-i.time;if(s?n("message",{fun:"get",key:e,msg:"execute first"}):i.timeExpired>0&&l>i.timeExpired&&(n("message",{fun:"get",key:e,msg:"execute by timeExpired",timeDiff:l}),s=!0),s){n("message",{fun:"get",key:e,msg:"fun start"}),i.needExec=!1;let t=i.gen,r=async()=>{try{let r;try{r=await i.fun(...i.inputs)}catch(o){if(n("error",{fun:"get",key:e,msg:o}),!i.useCacheWhenError)throw i.gen===t&&(i.needExec=!0),o;r=void 0}i.gen===t&&(i.value=r,i.time="end"===i.timeFrom?Date.now():a)}finally{i.pm=null,n("message",{fun:"get",key:e,msg:"fun end"})}};i.pm=r(),await i.pm}else n("message",{fun:"get",key:e,msg:"use cache"});return o?Li(i.value):i.value}return n("error",{fun:"get",key:e,msg:"invalid key"}),null}return e.set=r,e.getProxy=async function(e,t={}){return r(e,t),i(e,t)},e.get=i,e.update=function(e,r){Te(t,e)&&(n("message",{fun:"updateValue",key:e}),t[e].value=r,t[e].time=Date.now(),t[e].gen+=1)},e.clear=function(e){Te(t,e)&&(n("message",{fun:"clear",key:e}),t[e].needExec=!0)},e.remove=function(e){Te(t,e)&&(n("message",{fun:"remove",key:e}),delete t[e])},e},e.cacheBd=function(e,t={}){let n=be(t,"nMax");Wi(n)||(n=200),n=Yi(n);let r=be(t,"nTrigger");Wi(r)||(r=3),r=Yi(r);let i=null,o=!1,a=async(...t)=>(o=!0,i=await e(...t),o=!1,i);return{get:a,getFromCache:async(...e)=>{for(let t=1;t<=n&&(t>r&&!o&&await a(...e).catch(()=>{}),null===i);t++)await ps(1e3);if(null===i)throw new Error(`exceeded nMax[${n}]`);return i}}},e.cacheSt=function(e={}){let t=be(e,"timeExpire",null);Wi(t)||(t=18e5),t=Yi(t),t=Math.min(t,Ri);let n=be(e,"timeDetect",null);Wi(n)||(n=2e3),n=Yi(n),n=Math.min(n,Ri);let r=qi(),i={},o=e=>{if(Te(i,e)){return Pi(r,"checkWithSet",[{state:"error",msg:`checkWithSet: key in use: ${e}`}],{tag:"cacheSt"}),!1}return i[e]={time:Date.now(),value:!0},Pi(r,"checkWithSet",[{state:"success",msg:`checkWithSet: ${e}`}],{tag:"cacheSt"}),!0},a=setInterval(()=>{Pi(r,"detect",[{state:"start"}],{tag:"cacheSt"});let e=Date.now();for(let n of Object.keys(i)){let r=i[n];r&&e-r.time>t&&delete i[n]}Pi(r,"detect",[{state:"finish"}],{tag:"cacheSt"})},n);return r.checkWithSet=o,r.setWithFree=async(e,t)=>{Pi(r,"setWithFree",[{state:"start"}],{tag:"cacheSt"});let n=[];for(let t of e){if(!o(t)){for(let e of n)delete i[e];let e=`setWithFree: key in use: ${t}`;return Pi(r,"setWithFree",[{state:"error",msg:e}],{tag:"cacheSt"}),Promise.reject(e)}n.push(t)}try{let n=await t(),i=`setWithFree: ${e.join(", ")}`;return Pi(r,"setWithFree",[{state:"success",msg:i}],{tag:"cacheSt"}),n}catch(e){let t=`setWithFree: fn threw: ${e&&e.message||e}`;throw Pi(r,"setWithFree",[{state:"error",msg:t}],{tag:"cacheSt"}),e}finally{for(let e of n)delete i[e]}},r.set=async(e,t=!0)=>{i[e]={time:Date.now(),value:t},Pi(r,"set",[{state:"success",msg:`set: ${e}`}],{tag:"cacheSt"})},r.get=async e=>{let t=i[e],n=void 0===t?null:t.value;return Pi(r,"get",[{state:"success",msg:`get: ${e}`}],{tag:"cacheSt"}),n},r.check=async e=>{let t=Te(i,e);return Pi(r,"check",[{state:"success",msg:`check: ${e} = ${t}`}],{tag:"cacheSt"}),t},r.del=async e=>{delete i[e],Pi(r,"del",[{state:"success",msg:`del: ${e}`}],{tag:"cacheSt"})},r.waitExist=async(e,t={})=>{let n=be(t,"attemptNum",null);Wi(n)||(n=30),n=Yi(n);let o=be(t,"timeInterval",null);Wi(o)||(o=100),o=Yi(o),Pi(r,"waitExist",[{state:"start"}],{tag:"cacheSt"});try{await ms(()=>Te(i,e),{attemptNum:n,timeInterval:o})}catch(t){let i=`waitExist timeout (${n*o}ms): ${e}`;return Pi(r,"waitExist",[{state:"error",msg:i}],{tag:"cacheSt"}),Promise.reject(i)}Pi(r,"waitExist",[{state:"success",msg:`waitExist resolved: ${e}`}],{tag:"cacheSt"})},r.waitNotExist=async(e,t={})=>{let n=be(t,"attemptNum",null);Wi(n)||(n=30),n=Yi(n);let o=be(t,"timeInterval",null);Wi(o)||(o=100),o=Yi(o),Pi(r,"waitNotExist",[{state:"start"}],{tag:"cacheSt"});try{await ms(()=>!Te(i,e),{attemptNum:n,timeInterval:o})}catch(t){let i=`waitNotExist timeout (${n*o}ms): ${e}`;return Pi(r,"waitNotExist",[{state:"error",msg:i}],{tag:"cacheSt"}),Promise.reject(i)}Pi(r,"waitNotExist",[{state:"success",msg:`waitNotExist resolved: ${e}`}],{tag:"cacheSt"})},r.clear=()=>{clearInterval(a)},r},e.cbol=function(e){if(Ie(e))return e;if(0===e)return!1;if(1===e)return!0;let t=!1;return Fe(e)&&"true"===(e=ys(ea(e)))&&(t=!0),t},e.cdbl=xr,e.ceil=ec,e.cfilesize=function(e){return Me(e)?(e=xr(e))<1024?tc(e,1)+" b":e<1048576?tc(e/1024,1)+" kb":e<1073741824?tc(e/1024/1024,1)+" mb":e<1099511627776?tc(e/1024/1024/1024,1)+" gb":"":""},e.cfinancial=function(e,t=0){if(!Me(e))return"";if(!mo(t))return"";let n=(e=tc(e,t)).split("."),r=n[0],i=n.length>1?"."+n[1]:"",o=/(\d+)(\d{3})/;for(;o.test(r);)r=r.replace(o,"$1,$2");return r+i},e.cint=Yi,e.clearXSS=rc,e.clearXSSDyn=async function(e,t={},n){return Tn(n)||(n=["https://cdn.jsdelivr.net/npm/xss@1.0.15/dist/xss.min.js"]),await lc(n),rc(e)},e.color=pu,e.composeToTree=Bu,e.convertToTree=function(e,t={}){if(!Se(e)&&!Tn(e))return[];let n=be(t,"bindKey",null);Fe(n)||(n="id");let r=be(t,"bindParent",null);Fe(r)||(r="parentId");let i=be(t,"bindText",null);Fe(i)||(i="text");let o=be(t,"bindChildren",null);Fe(o)||(o="children");let a=be(t,"bindType",null);Fe(a)||(a="type");let s=be(t,"bindNumOfChilren",null);Fe(s)||(s="numOfChilren");let l=be(t,"bindRoot",null);Fe(l)||(l="root");let c=be(t,"saveExtProps",null);return Ie(c)||(c=!1),Fe(l)&&(e={[l]:e}),Bu(Su(e,{bindKey:n,bindParent:r,bindText:i,bindType:a,bindNumOfChilren:s}),{bindKey:n,bindParent:r,bindChildren:o,saveExtProps:c})},e.copyStrToClipboard=function(e,t={}){if(!ke(e))return"invalid input";let n=be(t,"eleParent");ku(n)||(n=document.body);let r=document.createElement("textarea");if(r.style.position="fixed",r.style.left=0,r.style.top=0,r.style.zIndex=-1,r.style.background="transparent",r.style.color="transparent",r.value=e,n.appendChild(r),r.select(),!Fu(r))return"ele can not be focusd";try{document.execCommand("copy")}catch(e){return"can not copy str to clipboard"}return n.removeChild(r),""},e.cosd=Du,e.cotd=function(e){return Me(e)?1/Nu(e=xr(e)):null},e.createExcelWorkbook=Mu,e.cscd=function(e){return Me(e)?1/Tu(e=xr(e)):null},e.cstr=Ta,e.day2cht=function(e,n=!1){if(!Qu(e))return"";let r=t(e,"YYYY-MM-DD"),i="";return i=n?r.month()+1+"月"+r.date()+"日":"民國 "+(r.year()-1911)+" 年 "+(r.month()+1)+" 月 "+r.date()+" 日",i},e.debounce=Lu,e.delay=ps,e.dig=tc,e.digExp=function(e,t=0){if(!Me(e))return"";if(!mo(t))return"";let n="";return n=0===(e=xr(e))?"0":Math.abs(e)<=1e-6?e.toExponential(t):tc(e,t),n},e.domAlert=function(e,t={}){if(!Fe(e))return;let n=be(t,"type","success");Te($u,n)||(n="success");let r=be(t,"icon",null);Fe(r)||(r=$u[n]);let i="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(i=t.position);let o=be(t,"time");fa(o)||(o=4e3),o<0&&(o=4e3);let a=be(t,"paddingStyle",null);null===a&&(a={top:14,right:26,bottom:14,left:14});let s="";{let e=be(a,"top",0),t=be(a,"bottom",0),n=be(a,"left",0);s=`padding:${e}px ${be(a,"right",0)}px ${t}px ${n}px;`}let l=be(t,"textColor","#000");l=uc(l,";","");let c=be(t,"backgroundColor","#fff");c=uc(c,";","");let u=be(t,"borderWidth",1),f=be(t,"borderColor","#ebeef5");f=uc(f,";","");let d=be(t,"borderRadius",8),h=be(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");h=uc(h,";","");let p=be(t,"closeIconShift",null);null===p&&(p={top:10,right:10});let g="";{let e=be(p,"top",""),t=be(p,"bottom",""),n=be(p,"left",""),r=be(p,"right","");fa(e)&&(e=`top:${e}px;`),fa(t)&&(t=`bottom:${t}px;`),fa(n)&&(n=`left:${n}px;`),fa(r)&&(r=`right:${r}px;`),g=`position:absolute; ${e} ${r} ${t} ${n}`}let m=`alt-${Hu()}`,y=`alt-${Hu()}`,v=`\n <div \n style="display:inline-block; color:${l}; background:${c}; border:${u}px solid ${f}; border-radius:${d}px; box-shadow:${h};"\n onmouseenter="ttWAlertFadeIn('${y}')"\n onmouseleave="ttWAlertFadeOut('${y}')"\n >\n <div style="position:relative; ${s}">\n\n <div style="display:flex; align-items:center;">\n <div style="margin-right:10px;">\n <div style="display:flex;">${r}</div>\n </div>\n <div>${e}</div>\n </div>\n\n <div style="${g}">\n <div \n id="${y}" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel('${m}')"\n >\n ${Pu}\n </div>\n </div>\n\n </div>\n </div>\n `,A=document.createElement("div");A.id=m,A.style.position="fixed",A.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",A.style.zIndex=-1,A.style.opacity=.001,i.indexOf("-left")>=0?A.style.transform="translateX(-100%)":A.style.transform="translateX(100%)",A.innerHTML=v,document.querySelector("body").appendChild(A);let b=_a();return function({id:e,position:t,time:n,pm:r}){zu[e]={id:e,position:t,ele:null,loc:{height:null,top:null,bottom:null,left:null,right:null},timeShow:n,timeStart:Date.now(),pm:r},Yu(),null===ju&&(ju=setInterval(()=>{An(zu,e=>{Date.now()-e.timeStart>e.timeShow&&(e.pm.resolve(),Wu(e.id))}),Se(zu)||(clearInterval(ju),ju=null)},50))}({id:m,position:i,time:o,pm:b}),b},e.domAppend=Gu,e.domCancelEvent=_u,e.domCompareText=function(e,t,n,r,i={}){if(!ku(e))return Promise.reject("invalid ele");let o=be(i,"format");"side"!==o&&"line"!==o&&(o="side");let a="side"===o?"side-by-side":"line-by-line",s=Wf();Fe(t)||(t="Text");let l=Wo(t,t,n,r),c=s.html(l,{drawFileList:!0,matching:"lines",outputFormat:a,...i});c=c.replace('<span class="d2h-file-list-title">Files changed (1)</span>',"");try{e.innerHTML=c}catch(e){console.log(e)}return{diff:l,html:c}},e.domConvertToPic=vm,e.domConvertToPicDyn=async function(e,t={},n){return await vm(e,t)},e.domDetect=function(e,t={}){let n=be(t,"timeInterval",null);Wi(n)||(n=20);let r=be(t,"tolerancePixel",null);Wi(r)||(r=1);let i,o=qi(),a={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0,windowWidth:0,windowHeight:0},s=Li(a),l={width:"",height:""};if(!Oi(e))return console.log("invalid f",e),null;i=setInterval(()=>{let t=e();if(t){let e={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight,windowWidth:window.innerWidth,windowHeight:window.innerHeight},n=s.offsetWidth-e.offsetWidth,i=s.offsetHeight-e.offsetHeight,c=Math.abs(n)>r,u=Math.abs(i)>r,f="";n>0?f="smaller":n<0&&(f="larger");let d="";if(i>0?d="smaller":i<0&&(d="larger"),l={width:f,height:d},c||u){let n={...s};setTimeout(()=>{e.offsetWidth>0&&e.offsetHeight>0&&(o.emit("resize",{sold:n,snew:e,smode:l,ele:t}),o.emit("resizeWithWindow",{sold:n,snew:e,smode:l,ele:t,from:"dom"}))},1)}a=s,s=e}},n);let c=e=>{o.emit("resizeWithWindow",{sold:a,snew:s,smode:l,from:"window"})};return window.addEventListener("resize",c),o.clear=()=>{clearInterval(i),window.removeEventListener("resize",c)},o},e.domDrag=function(e,t={}){if(!ku(e))return void console.log("ele is not a HTMLElement",e);let n=be(t,"attIdentify",null);Fe(n)||(n="dragid");let r=be(t,"attIndex",null);Fe(r)||(r="dragindex");let i=be(t,"attGroup",null);Fe(i)||(i="draggroup");let o=be(t,"group",null);Fe(o)||(o="group");let a=be(t,"previewOpacity",null);fa(a)||(a=.4);let s=be(t,"previewDisabledOpacity",null);fa(s)||(s=.2);let l=be(t,"previewBackground",null);Fe(l)||(l="white");let c=be(t,"previewBorderWidth",null);fa(c)||(c=1);let u=be(t,"previewBorderColor",null);Fe(u)||(u="#f26");let f=be(t,"timeDragStartDelay",null);fa(f)||(f=120);let d=`c${Hu(8)}`,h=o;e.setAttribute(i,h),e.setAttribute(n,d);let p=km(h,d,{attIdentify:n,previewOpacity:a,previewBackground:l,previewBorderWidth:c,previewBorderColor:u}),g=function(e,t){let n=[];return{bind:function(){let r;r="mousedown";let i=function(n){t.dragStart({e:n,ele:e,name:"mousedown"})};e.addEventListener(r,i,!1),n.push({ele:e,name:r,f:i}),r="touchstart";let o=function(n){t.dragStart({e:n,ele:e,name:"touchstart"})};e.addEventListener(r,o,!1),n.push({ele:e,name:r,f:o}),r="touchmove";let a=function(e){t.dragMove({e:e,name:"touchmove"}),e.cancelable&&e.preventDefault()};e.addEventListener(r,a,!1),n.push({ele:e,name:r,f:a})},unbind:function(){An(n,({ele:e,name:t,f:n})=>{e.removeEventListener(t,n)})}}}(e,{dragStart:e=>{p.emit(h+"-dragStart",e)},dragMove:e=>{p.emit(h+"-dragMove",e)}});g.bind(),Dm({gid:h,attGroup:i,attIndex:r,attIdentify:n,timeDragStartDelay:f,previewOpacity:a,previewDisabledOpacity:s});let m=qi();return p.on(o+"-change",e=>{e.tarEid===d&&m.emit("change",e)}),p.on(o+"-start",e=>{e.tarEid===d&&m.emit("start",e)}),p.on(o+"-move",e=>{e.tarEid===d&&m.emit("move",e)}),p.on(o+"-enter",e=>{e.tarEid===d&&m.emit("enter",e)}),p.on(o+"-leave",e=>{e.tarEid===d&&m.emit("leave",e)}),p.on(o+"-drop",e=>{e.tarEid===d&&m.emit("drop",e)}),m.setIsActive=function(e){Sm[h].isActive=e},m.unbind=function(){g.unbind(),function(e,t){let n=Sm[e],r=Li(n.eleIds);Am(r,t),n.eleIds=r,0===r.length&&(n.oevg.unbind(),n.pv.clear(),delete Sm[e])}(h,d)},m},e.domDragBarAndScroll=function(e,t,n={}){let r=be(n,"getHeighRatio",null);R(r)||(r=()=>1);let i=be(n,"getWidthRatio",null);R(i)||(i=()=>1);let o=be(n,"stopScrollPropagationForPanel",null);we(o)||(o=!1);let a=be(n,"stopTouchDragPropagationForPanel",null);we(a)||(a=!1);let s=be(n,"useTouchDragForPanel",null);we(s)||(s=!0);let l=e,c=t,u=qi(),f="",d=null,h=[],p=null;function g(){return""!==f}function m(){f="",d=null}function y(e,t,n){let r=g();!function(e,t){f=e,d=void 0===t?null:t}(e,t),r&&(u.emit("freeBar"),!g())||u.emit("pressBar",n)}function v(){m(),u.emit("freeBar")}function A(e,t,n,r){e.addEventListener(t,n,r),h.push({target:e,type:t,fun:n})}function b(e){return e>0?1:e<0?-1:0}function w(e,t){let n=be(e,t,null);return n&&n.length>0?n:null}function I(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(r&&r.identifier===t)return r}return null}function x(e,t,n,r){A(e,"touchstart",e=>{if("barTouch"===t)p=e;else if(e===p)return void(p=null);let i=function(e){let t=w(e,"changedTouches");return null===t&&(t=w(e,"touches")),null===t?null:t[0]||null}(e);null!==i&&(g()&&function(e,t){if("barMouse"===f)return!0;if(null===d)return!1;if(t.identifier===d)return!1;let n=w(e,"touches");return null!==n&&null!==I(n,d)}(e,i)||(r.start&&_u(e),y(t,i.identifier,n(i))))}),A(e,"touchmove",e=>{if(f!==t)return;r.move&&_u(e);let i=function(e){let t=w(e,"changedTouches");return null===t&&(t=w(e,"touches")),null===t?null:null===d?t[0]||null:I(t,d)}(e);null!==i&&u.emit("dragBar",n(i))},{passive:!1});let i=e=>{f===t&&function(e){if(null===d)return!0;let t=w(e,"changedTouches");return null!==t?null!==I(t,d):(t=w(e,"touches"),null===t||null===I(t,d))}(e)&&(r.end&&_u(e),v())};A(e,"touchend",i),A(e,"touchcancel",i)}return function(){if(A(c,"mousedown",e=>{"button"in e&&0!==e.button||y("barMouse",null,{clientY:e.clientY,clientX:e.clientX})}),A(c,"mouseup",()=>{g()&&v()}),A(window,"mousemove",e=>{"barMouse"===f&&(0!==e.buttons?u.emit("dragBar",{clientY:e.clientY,clientX:e.clientX}):v())}),A(window,"mouseup",e=>{g()&&(o&&_u(e),v())}),A(l,"wheel",e=>{o&&_u(e),u.emit("scrollPanel",{ratioY:b(e.deltaY),ratioX:b(e.deltaX)})}),x(c,"barTouch",e=>({clientY:e.clientY,clientX:e.clientX}),{start:!1,move:!0,end:!1}),s){x(l,"panelTouch",e=>({clientY:-e.clientY*r(),clientX:-e.clientX*i()}),{start:a,move:a,end:a})}}(),u.clear=function(){m(),p=null;for(let e of h)e.target.removeEventListener(e.type,e.fun);h=[]},u},e.domDragPreview=Em,e.domDropFiles=function(e){let t=!1,n=!1,r=qi();function i(e){_u(e),n=!0,!1===t&&(t=!0,r.emit("dropIn",{ev:e}))}function o(e){_u(e),n=!1,setTimeout(function(){n||(t=!1,r.emit("dropOut",{ev:e}))},100)}function a(e){i(e)}function s(e){o(e)}function l(e){function t(){o(e)}i(e),Tm(e.dataTransfer).then(n=>{let i=sa(n.entries,{type:"file"});r.emit("getFiles",{ev:e,files:n.files,filesTree:i,entries:n.entries,cb:t})}).catch(e=>{r.emit("error",e)})}return e.addEventListener("dragenter",a,!1),e.addEventListener("dragover",a,!1),e.addEventListener("dragleave",s,!1),e.addEventListener("drop",l,!1),r.off=function(){e.removeEventListener("dragenter",a,!1),e.removeEventListener("dragover",a,!1),e.removeEventListener("dragleave",s,!1),e.removeEventListener("drop",l,!1)},r},e.domElementsFromPoint=Im,e.domFadeIn=qu,e.domFadeOut=Ou,e.domFind=Qm,e.domFinds=gm,e.domGetAttr=xm,e.domGetBoudRect=Cm,e.domGetBoudRectRefSelf=Bm,e.domGetFileAccept=$m,e.domGetFiles=zm,e.domGetParents=bm,e.domGetPointFromEvent=wm,e.domGetScrollableParent=function(e){let t=/(auto|scroll)/,n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},r=function(e){return t.test(function(e){return n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x")}(e))};if(!(e instanceof HTMLElement||e instanceof SVGElement))return;let i=bm(e);for(let e=0;e<i.length;e+=1)if(r(i[e]))return i[e];return document.scrollingElement||document.documentElement},e.domGetWindowSize=function(){let e=nc(),t={width:(()=>{let t=[be(e,"innerWidth"),be(e,"document.documentElement.clientWidth"),be(e,"document.body.clientWidth")];return t=sa(t,fa),Ym(t)})(),height:(()=>{let t=[be(e,"innerHeight"),be(e,"document.documentElement.clientHeight"),be(e,"document.body.clientHeight")];return t=sa(t,fa),Ym(t)})()};return t},e.domIsClientXYIn=function(e,t,n){if(!fa(e))return void console.log("clientX is not a number",e);if(!fa(t))return void console.log("clientY is not a number",t);if(!ku(n))return void console.log("ele is not a HTMLElement",n);let r;try{r=n.getBoundingClientRect()}catch(e){return void console.log("invalid ele for getBoundingClientRect",e)}let i=!1;try{i=e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}catch(e){console.log("catch when calculating page information of element",e)}return i},e.domIsFocused=Fu,e.domIsStable=function(e,t={}){if(!ku(e))return Promise.reject("invalid element");if(!Oi(e.getBoundingClientRect))return Promise.reject("invalid element.getBoundingClientRect");let n=be(t,"mode","");"promise"!==n&&"event"!==n&&(n="promise");let r=be(t,"tolerance",0),i=be(t,"timeDiff",100),o=be(t,"timeDetect",50),a=()=>{let t=e.getBoundingClientRect();return{x:t.left,y:t.top,w:t.width,h:t.height}},s=(e,t)=>!!e&&!!t&&Math.abs(e.x-t.x)<=r&&Math.abs(e.y-t.y)<=r&&Math.abs(e.w-t.w)<=r&&Math.abs(e.h-t.h)<=r,l=e=>{try{return"running"===e.playState&&Number.isFinite(e.effect.getTiming().iterations)}catch(e){return!1}},c=()=>{try{return e.getAnimations({subtree:!0}).filter(l)}catch(e){return[]}},u=async()=>{let e=_a();try{let t=a();await ps(i);let n=a(),r=c(),o=r.length;await Promise.allSettled(r.map(e=>e.finished));let l=c().length,u=a(),f=s(t,n)&&s(t,u)&&0===o&&0===l;e.resolve(f)}catch(t){e.reject(t)}return e},f=()=>{let t=qi(),n=!1,r=null,i=null,a=!1;return t.create=()=>{r=setInterval(()=>{n=(e=>{let n=!1;if(!ku(e))return n;try{let e=!1,r=!1;i=setInterval(()=>{a?clearInterval(i):e||(e=!0,u().then(e=>{a||r!==e&&(r=e,t.emit("stable",e))}).catch(()=>{}).finally(()=>{e=!1}))},o),n=!0}catch(e){}return n})(e),n&&clearInterval(r)},50)},t.dispose=()=>{let e=!1;try{clearInterval(r),clearInterval(i),a=!0,e=!0}catch(e){}return e},t},d=null;return"promise"===n?d=u():"event"===n&&(d=f()),d},e.domIsVisible=function(e,t={}){if(!ku(e))return Promise.reject("invalid element");if(Wm())return Promise.reject("invalid IntersectionObserver");let n=be(t,"mode","");"promise"!==n&&"event"!==n&&(n="promise");let r=()=>{let t=qi(),n=!1,r=null,i=!1,o=new IntersectionObserver(e=>{if(i)return;let n=e[0].isIntersecting;t.emit("visible",n)});return t.create=()=>{r=setInterval(()=>{i?clearInterval(r):(n=(e=>{let t=!1;if(!ku(e))return t;try{o.observe(e),t=!0}catch(e){}return t})(e),n&&clearInterval(r))},50)},t.dispose=()=>{let e=!1;try{clearInterval(r),o.disconnect(),i=!0,e=!0}catch(e){}return e},t},i=null;return"promise"===n?i=(()=>{let t=_a();try{let n=new IntersectionObserver(e=>{t.resolve(e[0].isIntersecting),n.disconnect()});n.observe(e)}catch(e){t.reject(e)}return t})():"event"===n&&(i=r()),i},e.domPrepend=ym,e.domRemove=mm,e.domRenderMarkdownMind=Gm,e.domRenderMarkdownMindDyn=async function(e,t,n={},r){return Tn(r)||(r=["https://cdn.jsdelivr.net/npm/d3@7.8.3/dist/d3.min.js","https://cdn.jsdelivr.net/npm/markmap-view@0.14.4/dist/index.min.js","https://cdn.jsdelivr.net/npm/markmap-lib@0.14.4/dist/browser/index.min.js"]),await lc(r),Gm(e,t,n)},e.domRipple=function(e,t,n={}){let r=be(n,"timeDuration",null);Wi(r)||(r=1e3);let i=be(n,"color",null);if(Fe(i)||(i="rgba(255, 255, 255, 0.5)"),!ku(e))return;e.style.position="relative",e.style.overflow="hidden";let o=e.getBoundingClientRect(),a=t.clientX-o.left,s=t.clientY-o.top,l=2*Math.max(e.clientWidth,e.clientHeight),c=document.createElement("div");c.style.width=`${l}px`,c.style.height=`${l}px`,c.style.transition=`all ${r/1e3}s linear`,c.style.position="absolute",c.style.zIndex=1,c.style.left=`${a}px`,c.style.top=`${s}px`,c.style.borderRadius="50%",c.style.transformOrigin="center",c.style.transform="translate(-50%,-50%) scale(0)",c.style.background=i,c.style.userSelect="none",c.style.pointerEvents="none",e.appendChild(c),setTimeout(()=>{c.style.transform="translate(-50%,-50%) scale(2)",c.style.opacity=0},1),setTimeout(()=>{mm(c)},r)},e.domScrollIntoView=function(e,t={}){if(!ku(e))return;Ee(t)||(t={});let n={behavior:"smooth"};n={...n,...t},Ju()&&Uy(),e.scrollIntoView(n)},e.domScrollTo=function(e,t={}){if(!ku(e))return;Ee(t)||(t={});let n={behavior:"smooth"};n={...n,...t},Ju()&&Uy(),e.scrollTo(n)},e.domSetAttr=function(e,t,n){if(!ku(e))return null;if(!Fe(t))return null;if(!Fe(n)&&!Me(n))return null;try{return e.setAttribute(t,n),e.getAttribute(t)}catch(e){}return null},e.domShowImages=Gy,e.domShowImagesDyn=async function(e,t=null,n={},r){return await Gy(e,t,n)},e.domShowInputAndGetFiles=_y,e.domShowInputAndGetFilesU8Arrs=function(e={}){let t=be(e,"kind","*"),n=be(e,"multiple");Ie(n)||(n=!1);let r=be(e,"entireHierarchy");Ie(r)||(r=!1);let i=be(e,"sizeMbLimit");Me(i)||(i=1e3),i=xr(i);let o=_a(),a=[];return _y({kind:t,multiple:n,entireHierarchy:r,sizeMbLimit:i}).then(function(e){let t=_a(),n=be(e,"errs",{}),r=be(e,"files",[]);return Se(n)?t.reject(n):t.resolve(r),t}).then(function(e){return An(e,function(e){a.push({name:e.name,size:e.size,type:e.type})}),rs(e)}).then(function(e){An(e,function(e,t){a[t].u8a=e}),o.resolve(a)}).catch(function(e){o.reject(e)}),o},e.domShowInputDatatime=function(e,n={}){let r=be(n,"type","");"date"!==r&&"datetime-local"!==r&&(r="datetime-local");let i=be(n,"eleRef",null);ku(i)||(i=document.activeElement);let o=_a(),a="drf"+Hu(),s="GrpDomShowDatatime";mm(`[name=${s}]`);let l=!1,c="";if("date"===r)Qu(e)&&(l=!0,c=e);else if(Xy(e)){l=!0,c=t(e).format("YYYY-MM-DDTHH:mm")}Fe(c)&&(c=`value="${c}"`);let u=document.createElement("div");u.setAttribute("name",s),u.style.width=0,u.style.height=0,u.style.overflow="hidden",u.innerHTML=`\n <div style="transform:translateY(-100%);">\n <input id="${a}" type="${r}" style="opacity:0;" ${l?c:""} />\n </div>\n `;let f=null;ku(i)?i.parentNode.insertBefore(u,i.nextSibling):document.querySelector("body").appendChild(u);let d=!1;function h(){if(!d){d=!0;try{f.removeEventListener("change",g,!0),i.removeEventListener("focusout",m,!0)}catch(e){}if(mm(`[name=${s}]`),Fe(p)){let e="";e="date"===r?p:`${p}:00`,o.resolve(e)}}}let p="";function g(e){try{p=e.target.value}catch(e){console.log(e)}h()}function m(e){setTimeout(()=>{h()},50)}return setTimeout(()=>{f=Qm("#"+a),f.addEventListener("change",g,!0),f.showPicker()},1),i.addEventListener("focusout",m,!0),o},e.domTooltip=function(e,t,n={}){let r=null,i=null;function o(){null!==r&&r.destroy(!0),e.setAttribute("tippystate",""),clearInterval(i)}let a={arrow:!0,theme:"dark",placement:"bottom",delay:150};n=Se(n)?Wy(a,n):a;let s=t;t||(s=e.innerHTML);let l=Me(e.getAttribute("tippystate"));if(e.setAttribute("tippystate","5"),l)return;s=`<div style="text-align:left;">${s}</div>`;let c=cb;cb.default&&(c=cb.default),r=c(e,{...n,content:s,allowHTML:!0,onHidden(){o()},onDestroy(){r=null,o()}}),r.show(),i=setInterval(()=>{let t=e.getAttribute("tippystate");Me(t)?(t=Yi(t),t-=1,e.setAttribute("tippystate",t),t<=0&&o()):o()},1e3)},e.domTriggerEvent=Jy,e.domVirtualCreate=ub,e.domVirtualCreateQueue=function(){return new function(){let e=gb(1);return async function(t,n={}){return e(ub,t,n)}}},e.downloadExcelFileFromData=BF,e.downloadExcelFileFromDataDyn=async function(e,t="data",n,r){let i=await BF(e,t,n);return""!==be(i,"error","")?Promise.reject(i.error):i},e.downloadFileFromB64=function(e,t){if(!Ka())return void console.log("no window");if(!Fe(e))return void console.log("no filename");let n=document.createElement("a");n.href=t,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},e.downloadFileFromBlob=mb,e.downloadFileFromText=function(e,t,n=!0){if(!Ka())return void console.log("no window");if(!Fe(e))return void console.log("invalid filename");if(!ke(t))return void console.log("invalid content");if(!Ie(n))return void console.log("withBOM is not a boolean");let r;r=n?new Blob(["\ufeff",t]):new Blob([t]),mb(e,r)},e.downloadFileFromU8Arr=function(e,t){if(!Ka())return void console.log("no window");if(!Fe(e))return void console.log("no filename");if(!ls(t))return void console.log("no data");mb(e,EF(t))},e.dtmapping=SF,e.dtpick=kF,e.estimateTicks=function(e,t,n={}){if(!Me(e))throw new Error("rmin is not a number");if(e=xr(e),!Me(t))throw new Error("rmax is not a number");if(e===(t=xr(t))){let t=null;t=0===e?1:Math.abs(e/10);let n=DF(t,{returnDigit:!0});return t=FF(t,n),{tickNum:3,tickInterval:t,tickPositions:[e-t,e,e+t],tickDig:n}}if(e>t)throw new Error(`rmin[${e}] > rmax[${t}]`);let r=be(n,"testTickNums");Tn(r)||(r=[3,4,5]);let i=e,o=t,a=NF(i),s=NF(o),l=Math.max(a.r,s.r),c=Math.log10(l),u=i/l,f=o/l,d=(u+f)/2,h=f-u,p=[];An(r,e=>{let t=h/(e-1),n=DF(t,{returnDigit:!0});n=Math.min(n,2),An(Zi(n,-1,-1),n=>{let r=n-c;r=Math.max(r,0);let i=ec(t,n),o=i-1/Math.pow(10,n);o=FF(o,n);let a=i+1/Math.pow(10,n);a=FF(a,n);let s=[o,i,a];s=sa(s,e=>e>0);let g=FF(d,n),m=g-1/Math.pow(10,n);m=FF(m,n);let y=g+1/Math.pow(10,n);y=FF(y,n);let v=[m,g,y];An(s,t=>{let i=l*t;i=FF(i,r),An(v,o=>{let a=[],s=[];{let i=o-(e-1)/2*t;for(let o=0;o<e;o++){let e=i+o*t;e=FF(e,n),a.push(e);let c=l*e;c=FF(c,r),s.push(c)}}let c=(d=a)&&d.length?d[0]:void 0;var d;let g=wa(a);if(c>u||g<f)return!0;let m=(u-c)/h,y=(g-f)/h,v=(m+y)/2,A=0;An(s,e=>{Cr(e)&&A++});let b=A/e,w=0;An(a,e=>{0===e&&w++});let I=w/e,x=0;An(a,e=>{.5===e&&x++});let C=x/e,B=0;An(a,e=>{1===e&&B++});let E=B/e,S={diff:v,rngCenter:o,numInt:A,ratInt:b,num0:w,rat0:I,num5:x,rat5:C,num10:B,rat10:E,overMin:m,overMax:y,fitness:v+.2*n+.1*e+1.5*m+1.5*y+(1-.25*b)+(1-.4*I)+(1-.3*C)+(1-.3*E),idg:n,tickNum:e,_tickDig:n,_tickInterval:t,_tickPositions:a,tickDig:r,tickInterval:i,tickPositions:s};p.push(S)})})})}),p=Na(p,"fitness");let g=be(p,0);return{tickNum:g.tickNum,tickInterval:g.tickInterval,tickPositions:g.tickPositions,tickDig:g.tickDig}},e.evEmit=Pi,e.evEmitDelay=hs,e.evem=qi,e.execCli=async function(e,t=[],n={}){if(!Fe(e))return{ok:!1,stdout:"",stderr:"",code:null,error:"command 須為非空字串",durationMs:0,attempts:0};Be(t)||(t=[]),Ee(n)||(n={});let{maxRetries:r=0,retryDelayMs:i=5e3,...o}=n,a=be(o,"cwd",null);Fe(a)?o.cwd=a:o.cwd=process.cwd();let s=be(o,"input",null);Fe(s)?o.input=s:o.input=void 0;let l=be(o,"env",null);Ee(l)?o.env=l:o.env=void 0;let c=be(o,"validate",null);Oi(c)||Fe(c)?o.validate=c:o.validate=void 0;let u=be(o,"onStdout",null);Oi(u)?o.onStdout=u:o.onStdout=void 0;let f=be(o,"onStderr",null);Oi(f)?o.onStderr=f:o.onStderr=void 0,r=mo(r)?Yi(r):0,i=Wi(i)?Yi(i):5e3;let d=be(o,"timeoutMs",null);Wi(d)?o.timeoutMs=Yi(d):o.timeoutMs=12e4,o.timeoutMs=Math.min(o.timeoutMs,Ri);let h,p=be(o,"maxBuffer",null);Wi(p)?o.maxBuffer=Yi(p):o.maxBuffer=10485760;let g=0;for(let n=0;n<=r;n++){if(n>0){let e=Math.min(i*n,15e3);await ps(e)}if(h=await zF(e,t,o),g=n+1,h.ok)return h.attempts=g,h;if(h.error.includes("ENOENT"))break;if(2===h.code)break}return h.attempts=g,h},e.execCliCore=qF,e.execCliJsonRpc=async function(e,t=[],n=[],r={}){let i=Date.now(),o=(e,t,n={})=>({ok:!1,results:{},responses:[],error:t,errorType:e,durationMs:Date.now()-i,exitCode:null,...n});if(!Fe(e))return o("params","command 須為非空字串");if(Be(t)||(t=[]),!Be(n))return o("params","requests 須為陣列");for(let e=0;e<n.length;e++){let t=n[e];if(!Ee(t)||!Fe(t.method)&&!Fe(t.notify))return o("params",`requests[${e}] 須為含method或notify之物件`)}Ee(r)||(r={});let a=be(r,"timeoutMs");Wi(a)||(a=12e4);let s=be(r,"jsonrpc");!0===s&&(s="2.0"),Fe(s)||(s=null);let l=be(r,"continueOnError");Ie(l)||(l=!1);let c=be(r,"onNotify"),u=be(r,"onServerRequest"),f=new Map,d=null,h=0,p={},g=[],m=(e,t,n)=>{let r={};return null!==s&&(r.jsonrpc=s),void 0!==e&&(r.id=e),r.method=t,void 0!==n&&(r.params=n),r},y=YF(e,t,{cwd:be(r,"cwd"),env:be(r,"env"),timeoutMs:a,exitGraceMs:be(r,"exitGraceMs"),onStderr:be(r,"onStderr"),onLine:e=>{if(""===(e=e.trim()))return;let t;try{t=JSON.parse(e)}catch{return}if(!Ee(t))return;let n=void 0!==t.id&&null!==t.id;if(n&&("result"in t||"error"in t)){let e=f.get(t.id);return void(e&&(f.delete(t.id),e.pm.resolve({msg:t})))}n&&Fe(t.method)?Oi(u)&&u(t,y):Oi(c)&&c(t)},onExit:e=>{d=e;for(let[t,n]of f)n.pm.resolve({exit:e});f.clear()}}),v=(e,t)=>{let n="exit";e.timeout?n="timeout":Fe(e.error)&&e.error.includes("ENOENT")&&(n="notfound");let r=Fe(e.error)?e.error:`子進程於回應前結束(code ${e.code})`;return o(n,`${t}: ${r}`,{results:p,responses:g,exitCode:e.code})},A=null;for(let e of n){if(!Fe(e.method)){if(!await y.writeLine(JSON.stringify(m(void 0,e.notify,e.params)))){A=v(d||await y.stop(),e.notify);break}continue}let t=h;h+=1;let n=_a();if(f.set(t,{method:e.method,pm:n}),!await y.writeLine(JSON.stringify(m(t,e.method,e.params)))){f.delete(t),A=v(d||await y.stop(),e.method);break}let r=await n;if(r.exit){A=v(r.exit,e.method);break}let i=r.msg;if("error"in i&&null!==i.error&&void 0!==i.error){if(p[e.method]=null,g.push({id:t,method:e.method,result:null,error:i.error}),!l){let t=be(i,"error.message");A=o("rpc",`${e.method}: ${Fe(t)?t:JSON.stringify(i.error)}`,{results:p,responses:g});break}}else p[e.method]=i.result,g.push({id:t,method:e.method,result:i.result,error:null})}let b=await y.stop();if(A)return A.durationMs=Date.now()-i,null===A.exitCode&&(A.exitCode=b.code),A;let w=g.filter(e=>null!==e.error);if(w.length>0){let e=w[0],t=be(e,"error.message");return{ok:!1,results:p,responses:g,error:`${e.method}: ${Fe(t)?t:JSON.stringify(e.error)}`,errorType:"rpc",durationMs:Date.now()-i,exitCode:b.code}}return{ok:!0,results:p,responses:g,error:"",errorType:"",durationMs:Date.now()-i,exitCode:b.code}},e.execCliSession=YF,e.execJsCode=async function(e,t={}){e=o.resolve(e);let n=(await import(s.pathToFileURL(e).href)).default;if(!Oi(n))throw new Error(`the default export of [${e}] is not a function`);return await n(t)},e.execProcess=function(e,t,n={}){if(!Tn(t)&&!Fe(t))throw new Error("args is not an effective array or string");let i=Fe(t);Fe(t)&&(t=[t]);let o=be(n,"mode");"spawn"!==o&&"exec"!==o&&"execFile"!==o&&(o="spawn");let a=be(n,"cbStdout"),s=be(n,"cbStderr"),l=be(n,"codeCmd"),c=ZF.normalizeCodeCmd(l),u=be(n,"useChcp");Ie(u)||(u=!1);let f=be(n,"timeout");f=!Me(f)||f<=0?null:Math.min(f,Ri);let d=_a();if(!da(o,["spawn","exec","execFile"]))return d.reject(`invalid mode[${o}]`),d;if(null===c)return d.reject(`codeCmd[${l}] is not a supported encoding`),d;let h=n=>{let l=null;try{if("spawn"===o){let n=ra(e,1),i=ia(e,1);if('"'===n||'"'===i||"'"===n||"'"===i)throw new Error("prog of spawn doens not need to add quotes");l=r.spawn(e,t,{windowsHide:!0,shell:!1})}else if("exec"===o){let n="";u&&(n="cmd /c chcp 65001>nul &&");let o=e=>(e=String(e),/\s/.test(e)&&!e.includes('"')?`"${e}"`:e),a=o(e),s=i?t[0]:t.map(o).join(" ");l=r.exec(`${n} ${a} ${s} & exit`,{windowsHide:!0,encoding:"buffer"})}else"execFile"===o&&(l=r.execFile(e,t,{windowsHide:!0,encoding:"buffer"}))}catch(e){return void d.reject(e)}let h=c.label;"system"===c.mode?h=n:"auto"===c.mode&&(h="auto");let p=ZF.createDecoder(h,{labelSystem:n}),g=ZF.createDecoder(h,{labelSystem:n}),m=[],y="auto"===c.mode,v=(e,t,n)=>r=>{let i=r;Buffer.isBuffer(i)||(i=Buffer.from(String(i)));let o=t.write(i);m.push({which:e,text:o,buf:y?i:null}),""!==o&&Oi(n)&&n(o)};l.stdout.on("data",v("out",p,a)),l.stderr.on("data",v("err",g,s));let A=null,b=!1;null!==f&&(A=setTimeout(()=>{b=!0,l&&l.pid&&TF(l.pid).catch(()=>{})},f)),l.on("close",e=>{null!==A&&clearTimeout(A);let t=(()=>{let e=(e,t,n)=>{let r=t.end();""!==r&&(m.push({which:e,text:r,buf:null}),Oi(n)&&n(r))};if(e("out",p,a),e("err",g,s),y){let e=(e,t)=>{if(!t.switched)return;let n=ZF.createDecoder(t.label),r=null;for(let t of m)t.which===e&&(t.text=null!==t.buf?n.write(t.buf):"",r=t);let i=n.end();""!==i&&null!==r&&(r.text+=i)};e("out",p),e("err",g)}let t="";for(let e of m)t+=e.text;return t})();b?d.reject(`timeout[${f}ms]:\n${t}`):0!==e?d.reject(`code[${e}]:\n${t}`):d.resolve(t)}),l.on("error",e=>{null!==A&&clearTimeout(A),d.reject(e)})};return"fixed"===c.mode?h(null):ZF.getSystemCodePage().then(h).catch(e=>{d.reject(e)}),d},e.execProcessKillPid=TF,e.filepathToTree=function(e,t={}){if(!Tn(e))return{};let n=be(t,"delimiter");Fe(n)||(n="❯");let r=be(t,"bindRoot");Fe(r)||(r="");let i=Fe(r),o="";o=i?r:"root";let a=be(t,"soryItems"),s=wn(e,(e,t)=>{"folder"!==e.type&&"file"!==e.type&&(e.type="file");let r=(e=>{let t=na(e=(e=e.replace(/\\\\/g,"\\")).replace(/\\/g,"/"),"/");return{ss:t,cfp:Ao(t,n)}})(e.path);return{ind:t,type:e.type,ss:r.ss,data:Li(e)}}),l=e=>{let t=ar(e),r=[];for(let i=0;i<t;i++){let t=[];for(let n=0;n<=i;n++)t.push(e[n]);let o=Ao(t,n);r.push({id:o,name:e[i]})}return r},c=-1,u=[],f={};An(s,e=>{let t=null;t=[o];let r=null;r=o;let i=ar(e.ss)-1;An(e.ss,(o,a)=>{let s=a<i||"folder"===e.type;t.push(o);let d=null,h=null;a===i&&(d=e.ind,h=e.data);let p=Ao(t,n),g=l(t);if(Te(f,p)){let t=f[p],n="folder"===be(t,"_type","");if(!n&&s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] is unrecognized from a file to folder`);if(!n&&!s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] get repeat data from two files`);if(n&&!s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] is unrecognized from a folder to file`);if(Se(f[p].data)&&Se(h))throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] get repeat data from two folders`);if(null===f[p].data&&Se(h)){f[p]._indOri=d,f[p].data=h;let e=f[p]._indNormalize,t=u[e];u[e]={...h,type:t.type,path:t.path}}}else{c++;let e=c,n=null;n=s?{_indOri:d,_indNormalize:e,ns:ar(t),ts:Li(t),pathInfors:g,_type:"folder",type:"array",numOfChilren:-1,id:p,parentId:r,text:o,children:[],data:h}:{_indOri:d,_indNormalize:e,ns:ar(t),ts:Li(t),pathInfors:g,_type:"file",type:"node",numOfChilren:-1,id:p,parentId:r,text:o,data:h},f[p]=n,u.push({...be(f[p],"data",{}),type:f[p]._type,path:"/"+Ao(t,"/")})}r=p})});let d=nD(f);if(d=Na(d,"id"),d=Na(d,"ns"),Oi(a)){let e=[];An(cD(d,"ns"),(t,n)=>{An(cD(t,"parentId"),(t,r)=>{let i=a(t,r,n);e=[...e,...i]})}),d=e}let h=[],p=[];An(d,e=>{"folder"===e._type?h.push(e):p.push(e)});let g=cD(h,"ns"),m=cD(p,"ns"),y=tD(wn(h,"ns")),v=tD(wn(p,"ns")),A=null;{let e=[o];A=[{_indOri:null,_indNormalize:null,ns:ar(e),ts:Li(e),pathInfors:l(e),_type:"folder",type:"array",numOfChilren:-1,id:o,parentId:"",text:o,children:[],data:null}]}let b={};b[o]="0.children";let w={};w[o]="0";for(let e=2;e<=y;e++){An(g[e],e=>{let t=be(b,e.parentId,"");if(!Fe(t))throw console.log("kpPathFd",b),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in folder`);let n=be(A,t);if(Be(n)||gu(A,t,[]),n=be(A,t),!Se(Hm(n,{id:e.id}))){n.push({...e,children:[]});let r=`${t}.${ar(n)-1}`;b[e.id]=`${r}.children`,w[e.id]=r}})}let I=Li(A),x={};for(let e=2;e<=v;e++){An(m[e],e=>{let t=be(b,e.parentId,"");if(!Fe(t))throw console.log("kpPathFd",b),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in file`);let n=be(A,t);if(!Be(n))throw console.log("treeItems",A),console.log("k",t),console.log("v",e),new Error("無預先建置資料夾");if(!Se(Hm(n,{id:e.id}))){n.push(e);let r=`${t}.${ar(n)-1}`;x[e.id]=r,w[e.id]=r}})}return{treeItems:A,treeItemsFolder:I,kpPath:w,fpsNormalize:u}},e.files2data=function(e){if(!Be(e))return Promise.reject("invalid files");let t=_a(),n=wn(e,function(e){return{name:e.name,size:e.size,type:e.type}});return ns(e).then(function(e){let r=wn(e,function(e){return{b64:e}}),i=uD(n,r);t.resolve(i)}).catch(function(e){t.reject(e)}),t},e.flattenToConn=Su,e.flattenTree=function(e,t={}){if(Be(e)){if(0===e.length)return[]}else{if(!Ee(e))return[];if(Fn(e))return[]}let n=be(t,"bindKey",null);Fe(n)||(n="id");let r=be(t,"bindChildren",null);Fe(r)||(r="children");let i=!1;Ee(e)&&(i=!0,e=[e]);let o=[];return Eu(e,(e,t,i)=>{let a=be(e,n,null),s=be(e,r,null);if(a){let n=function(e){let t=[e[0]];for(let n=1;n<e.length;n++){let i=e[n];t.push(r),t.push(i)}return t}([...i,t]);if(o.push({...e,level:(ar(n)-1)/2,nk:n}),s)return s}}),i&&(o=o[0]),o},e.floor=function(e,t=0){return mo(t)||(t=0),t=Yi(t),Me(e)?new Zl(e).toDecimalPlaces(t,Zl.ROUND_FLOOR).toNumber():""},e.fsBuildReadStreamText=function(e){if(!RF(e))throw new Error("fp is not a file");let t=qi(),n=a.createReadStream(e,{encoding:"utf8"});n.on("error",e=>{Pi(t,"error",[{fun:"stream",msg:e}],{tag:"fsBuildReadStreamText"})}),process.nextTick(()=>{Pi(t,"create",[],{tag:"fsBuildReadStreamText"})});let r=l.createInterface({input:n,crlfDelay:1/0});return r.on("line",e=>{Pi(t,"line",[e],{tag:"fsBuildReadStreamText"})}),r.on("error",()=>{}),n.on("close",()=>{Pi(t,"close",[],{tag:"fsBuildReadStreamText"})}),t},e.fsBuildWriteStreamText=function(){let e=null;return{create:t=>{let n=_a();return e=a.createWriteStream(t,{flags:"w",encoding:"utf8"}),e.on("finish",()=>{n.resolve()}),e.on("error",e=>{n.reject(e)}),n},write:t=>{e.write(t+"\n")},end:()=>{let t=_a();return e.on("close",()=>{t.resolve()}),e.end(),t}}},e.fsCleanFolder=function(e){return hD(e,{path:o,fs:a})},e.fsCleanFolderCore=hD,e.fsCopyFile=function(e,t,n={}){return pD(e,t,{path:o,fs:a,...n})},e.fsCopyFileCore=pD,e.fsCopyFolder=function(e,t,n={}){return mD(e,t,{path:o,fs:a,...n})},e.fsCopyFolderCore=mD,e.fsCreateFile=function(e,t,n={}){return bD(e,t,{fs:a,...n})},e.fsCreateFileCore=bD,e.fsCreateFolder=wD,e.fsCreateFolderCore=dD,e.fsDeleteFile=function(e){return ID(e,{fs:a})},e.fsDeleteFileCore=ID,e.fsDeleteFileSafe=async function(e,t={}){return await xD(e,{fs:a,...t})},e.fsDeleteFileSafeCore=xD,e.fsDeleteFolder=BD,e.fsDeleteFolderCore=CD,e.fsDeleteFolderSafe=async function(e,t={}){return await ED(e,{fs:a,...t})},e.fsDeleteFolderSafeCore=ED,e.fsDownloadFile=async function(e,t){return LD(e,t,{fs:a,Readable:c.Readable,pipeline:u.pipeline})},e.fsDownloadFileCore=LD,e.fsEvem=function(e={}){let t=be(e,"fd");Fe(t)||(t="./_evps");let n=be(e,"polling");Ie(n)||(n=!1);let r=be(e,"timeInterval");Wi(r)||(r=100),r=Yi(r);let i=be(e,"timeBinaryInterval");Wi(i)||(i=300),i=Yi(i);let s=be(e,"keySys");Fe(s)||(s="[::pkg_content::]"),HD(t)||wD(t);let l=qD(t,{polling:n,timeInterval:r,timeBinaryInterval:i});l.on("change",e=>{if("add"!==e.type&&"change"!==e.type)return;let t=UD(e.fp),n="";try{n=a.readFileSync(e.fp,"utf8"),n=za(n)}catch(e){}Se(n)&&c.emit(t,{[s]:n})});let c=qi(),u=c.emit;return c.emit=function(e,n){let r=!1;if(Se(n)&&(r=Te(n,s)),r){let t=be(n,s,null),r=be(t,"pkg",""),i=be(t,"time",""),o=this;return Pi(c,e,[r,i],{tag:"fsEvem",funEmit:(e,...t)=>u.call(o,e,...t)})}((e,n)=>{let r=o.resolve(t,e);ke(n)||(n=sr(n)),a.writeFileSync(r,n,"utf8")})(e,{pkg:n,time:RD()})},c.clear=()=>{l.clear(),BD(t)},c},e.fsExists=function(e){return QF(e,{fs:a})},e.fsExistsCore=QF,e.fsGetFileBasicHash=function(e,t={}){return OD(e,{fs:a,crypto:d,...t})},e.fsGetFileBasicHashCore=OD,e.fsGetFileHash=function(e,t={}){return jD(e,{fs:a,crypto:d,...t})},e.fsGetFileHashCore=jD,e.fsGetFileXxHash=function(e,t={}){return zD(e,{fs:a,...t})},e.fsGetFileXxHashCore=zD,e.fsGetFilesInFolder=function(e,t=1){return YD(e,t,{path:o,fs:a})},e.fsGetFilesInFolderCore=YD,e.fsGetFilesWithHashInFolder=GD,e.fsGetFilesWithHashInFolderCore=WD,e.fsGetFolderBasicHash=function(e,t={}){return JD(e,{path:o,fs:a,crypto:d,...t})},e.fsGetFolderBasicHashCore=JD,e.fsGetFoldersInFolder=function(e,t=1){return _D(e,t,{path:o,fs:a})},e.fsGetFoldersInFolderCore=_D,e.fsIsFile=RF,e.fsIsFileCore=LF,e.fsIsFolder=HD,e.fsIsFolderCore=fD,e.fsMergeFiles=async function(e,t,n={}){return XD(e,t,{fs:a,...n})},e.fsMergeFilesCore=XD,e.fsReadJson=function(e){let t=null,n=UF(e,{fs:a});if(n.error)return n;let r=n.success,i=null;try{i=JSON.parse(r)}catch(e){t=e}return null!==t?{error:t}:{success:i}},e.fsReadText=HF,e.fsReadTextCore=UF,e.fsRenameFile=function(e,t){return KD(e,t,{fs:a})},e.fsRenameFileCore=KD,e.fsRenameFolder=function(e,t){return ZD(e,t,{fs:a})},e.fsRenameFolderCore=ZD,e.fsSrlog=function(e={}){let n=be(e,"fdSys","");Fe(n)||(n=o.resolve(),n=n.replaceAll("\\","/"));let r=be(e,"fdLog","");Fe(r)||(r="./syslog"),HD(r)||wD(r);let i=be(e,"dlm","");Fe(i)||(i="ꓹ");let s=be(e,"useTime",null);Ie(s)||(s=!0);let l=be(e,"useLoc",null);Ie(l)||(l=!0);let c=be(e,"useLocRela",null);async function u(e,n,...o){let c=(()=>{let e=t().format("YYYY-MM-DD");return`${r}/${e}.log`})(),u=wn(o,e=>{let t="";return t=Ee(e)||Be(e)?JSON.stringify(e):Ie(e)?e?"true":"false":Ta(e),t}),f="";s&&(f=`[${e}]\n`,a.appendFileSync(c,f,"utf8")),l&&(f=`[${n}]\n`,a.appendFileSync(c,f,"utf8")),f=`${Ao(u,`${i} `)}\n\n`,a.appendFileSync(c,f,"utf8")}return Ie(c)||(c=!0),function(...e){let t="";s&&(t=RD());let r="",i="",o=[];if(l){if(o=na((new Error).stack,"\n"),An(o,e=>{if((e=ea(e)).indexOf("file:")<0)return!0;if(e.indexOf("fsSrlog.mjs")>=0)return!0;return An(na(e," "),e=>{if(e.indexOf("file:")>=0)return r=e,!1}),!Fe(r)&&void 0}),!Fe(r))throw console.log("stackLines",o),new Error("can not parse stackLines");"("===ra(r,1)&&(r=oa(r,1)),")"===ia(r,1)&&(r=La(r,1));try{r=decodeURIComponent(r)}catch(e){console.log(e)}i=r,i=oa(i,8),i=i.replace(n,"")}let a=[];s&&(a=[...a,`[${t}]`]);let f="";l&&(f=r,c&&(f=i),a=[...a,`[${f}]`]),a=[...a,...e],console.log(...a),u(t,f,...e)}},e.fsSyncFolder=function(e,t,n={}){return nN(e,t,{path:o,fs:a,crypto:d,...n})},e.fsSyncFolderCore=nN,e.fsTask=function(e,t={}){let n=be(t,"fdStorage","");Fe(n)||(n="./_tkfs");let r=be(t,"levelLimit","");Wi(r)||(r=1),r=Yi(r);let i=be(t,"typeHash","");Fe(i)||(i="md5");let o=be(t,"timeInterval");la(o)||(o=6e4),o=Yi(o),o=Math.min(o,Ri),wD(n);let s=qi(),l=!1,c=`${n}/fpHash.json`,u=`${n}/fpResult.json`,f=async()=>{if(!0===l)return;let t=(()=>{let e={};try{e=za(a.readFileSync(c,"utf8"))}catch(e){}return e})(),n=await(async()=>{let t={};return HD(e)?(An(await GD(e,r,{type:i}),e=>{t[e.path]=e.hash}),t):t})(),o=wn(t,(e,t)=>({path:t,hash:e})),u=wn(n,(e,t)=>({path:t,hash:e}));An(eN(o,u,"path").infor,(e,r)=>{if("same"===e)return!0;let i=be(t,r,""),o=be(n,r,""),u="";u="del"===e?i:o;let f=e,d=r,h=vD(r);l=!0;let p=_a();return Pi(s,"change",[{type:f,fp:d,fn:h,hash:u,pm:p}],{tag:"fsTask",funSettle:e=>{p.reject(e)}}),p.then(()=>{let e=Li(t);e[d]=n[d],(e=>{try{let t=sr(e);a.writeFileSync(c,t,"utf8")}catch(e){}})(e)}).catch(()=>{}).finally(()=>{l=!1}),!1})},d=()=>{let e={};try{e=za(a.readFileSync(u,"utf8"))}catch(e){}return e},h=(e={})=>{try{let t=sr(e);a.writeFileSync(u,t,"utf8")}catch(e){}},p=!1,g=setInterval(()=>{p||(p=!0,f().catch(()=>{}).finally(()=>{p=!1}))},o);return s.getResult=(e,t)=>{let n=`${e}|${t}`,r=be(d(),n,[]);return Be(r)||console.log(`result for key[${n}] is not an array`),r},s.getAndEliminateResult=(e,t)=>{let n=`${e}|${t}`,r=d(),i=be(r,n,[]);return Be(i)||console.log(`result for key[${n}] is not an array`),r=((e,t)=>{let n={};return An(e,(e,r)=>{be(na(r,"|"),0,"")!==t&&(n[r]=e)}),n})(r,e),h(r),i},s.setResult=(e,t,n)=>{Be(n)||(console.log("result is not an array, default to []"),n=[]);let r=`${e}|${t}`,i=d();i[r]=n,h(i)},s.clear=()=>{clearInterval(g)},s},e.fsTaskCp=function(e,t,n={}){HD(e)||wD(e),HD(t)||wD(t);let r=`${e}/fpHash.json`,i=`${t}/fpHash.json`,o=e=>{let t={};try{t=za(a.readFileSync(e,"utf8"))}catch(e){}return t},s=(e,t)=>{try{let n=sr(t);a.writeFileSync(e,n,"utf8")}catch(e){}},l=(e,t)=>be(o(e),t,""),c=(e,t,n)=>{let r=o(e);r[t]=n,s(e,r)},u=(e,t)=>{let n=o(e);Te(n,t)&&delete n[t],s(e,n)},f=()=>o(r),d=e=>s(r,e),h=e=>l(r,e),p=()=>o(i),g=e=>s(i,e),m=e=>l(i,e),y=(e,t)=>c(i,e,t),v=e=>u(i,e),A=e=>{let t=[];return An(e,(e,n)=>{t.push({fp:n,hash:e})}),t},b={buildSrc:()=>{let e=qi();return e.set=(t,n)=>{((e,t)=>{c(r,e,t)})(t,n),Pi(e,"set",[{type:"set",fp:t,hash:n}],{tag:"fsTaskCp"})},e.get=h,e.remove=t=>{(e=>{u(r,e)})(t),Pi(e,"remove",[{type:"remove",fp:t}],{tag:"fsTaskCp"})},e.readKp=f,e.writeKp=d,e},buildTar:()=>{let e=qi(),t=Lu(300),n=rN(r);return n.on("change",n=>{t(()=>{(async()=>{let t=f();if(!Se(t))return"no src";let n=p(),r=A(t),i=eN(A(n),r,"fp",{withInfor:!1}),o=_a();return o.then(e=>{g(t)}).catch(()=>{}),Pi(e,"change",[{kpSrc:t,kpTar:n,kpCmp:i,pm:o}],{tag:"fsTaskCp",funSettle:e=>{o.reject(e)}}),o})().catch(()=>{})})}),e.set=y,e.get=m,e.remove=v,e.readKp=p,e.writeKp=g,e.clear=n.clear,e}};return b},e.fsTreeFolder=function(e,t=1){return VD(e,t,{path:o,fs:a})},e.fsTreeFolderCore=VD,e.fsTreeFolderWithHash=function(e,t=1,n={}){return tN(e,t,{path:o,fs:a,crypto:d,...n})},e.fsTreeFolderWithHashCore=tN,e.fsWatchFile=rN,e.fsWatchFolder=qD,e.fsWriteJson=function(e,t,n={}){let r=null;if(!Ee(t)&&!Be(t))return{error:"inp is not an object or array"};let i=be(n,"useFormat",null);Ie(i)||(i=!1);let o="";try{o=i?JSON.stringify(t,null,2):JSON.stringify(t)}catch(e){r=e}return null!==r?{error:r}:iN(e,o,{fs:a})},e.fsWriteText=function(e,t){return iN(e,t,{fs:a})},e.fsWriteTextCore=iN,e.genGradientColor=function(e){if(Mn(e))return{};let t;try{t=pu.toRgba(e)}catch(e){return{}}function n(e,t){return e.a=t,pu.toRgbaString(e)}return{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,n(t,.4)],[1,n(t,.9)]]}},e.genID=Hu,e.genIDSeq=function(){return cN()},e.genPm=_a,e.getBufferSize=hN,e.getClearPathName=yD,e.getCsvStrFromData=pN,e.getDataFromExcelFileU8Arr=yN,e.getDataFromExcelFileU8ArrDyn=async function(e,t,n){let r=await yN(e,t);return""!==be(r,"error","")?Promise.reject(r.error):r},e.getEnv=function(){let e=Ka(),t="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope;return e=e||t,{isBrowser:e,isWebWorker:t,isNode:"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}},e.getErrorMessage=QD,e.getExcelU8ArrFromData=async function(e,t="data"){if(!Tn(e)){return{error:"no data"}}Fe(t)||(t="data");let n=null,r=vb(e,t);return Te(r,"error")?r:(n=await CF(r),Te(n,"error"),n)},e.getExcelU8ArrFromWorkbook=CF,e.getExcelWorkbookFromData=vb,e.getExcelWorkbookFromWorksheet=yb,e.getExcelWorksheetFromData=ur,e.getFileAccept=Pm,e.getFileBasicHash=YN,e.getFileHash=async function(e,t={}){if(!Xa(e)&&!VN(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let n=be(t,"type","");Fe(n)||(n="sha512");let r=be(t,"chunkSize");return Me(r)||(r=67108864),r=xr(r),Te({MD5:"md5","SHA-1":"sha1","SHA-256":"sha256","SHA-384":"sha384","SHA-512":"sha512",md5:"md5",sha1:"sha1",sha256:"sha256",sha384:"sha384",sha512:"sha512",xxhash64:"xxhash64"},n)?"xxhash64"===n?WN(e,t):YN(e,t):Promise.reject(`type[${n}] must be one of [ 'md5', 'sha1', 'sha256', 'sha384', 'sha512', 'xxhash64' ]`)},e.getFileName=vD,e.getFileNameExt=function(e){if(!Fe(e))return"";let t=Uo(vD(e),".");if(ar(t)<=1)return"";let n="";try{n=wa(t)}catch(e){}return n},e.getFileTrueName=UD,e.getFileType=Om,e.getFileXxHash=WN,e.getGlobal=nc,e.getObjSize=function(e){let t=0,n=function e(n){if(null!=n)switch(typeof n){case"number":t+=8;break;case"string":t+=2*n.length;break;case"boolean":t+=4;break;case"object":let r=Object.prototype.toString.call(n).slice(8,-1);if("Object"===r||"Array"===r)for(let t in n)n.hasOwnProperty(t)&&e(n[t]);else t+=2*n.toString().length}return t}(e),r=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"}(n);return{int:n,str:r}},e.getPathParent=AD,e.getTimeBetween=function(e,t,n="days"){let r=XN(n);if(""===r)return[];let i=KN(e,n),o=KN(t,n);return null===i||null===o||e>=t?[]:wn(_N(o.diff(i,n)+1),function(e){return i.clone().add(e,n).format(r)})},e.getTimeFromUnit=XN,e.getTimeHp=ZN,e.getTimeObject=KN,e.getTimeRange=function(e,n){if(!Xy(e))return"無起始時間";if(void 0===n&&(n=e),!Xy(n))return"結束時間格式錯誤";let r=t(e,"YYYY-MM-DDTHH:mm:ss"),i=t(n,"YYYY-MM-DDTHH:mm:ss"),o=r.format("YYYY-MM-DD"),a=i.format("YYYY-MM-DD");if(o===a){let t=i.format("HH:mm");if(e===n)return eM(e)+" 至 無";if(e<n)return eM(e)+" 至 "+t;if(e>n)return eM(e)+" 至 "+t+" (起始時間大於結束時間)"}else{if(o<a)return eM(e)+" 至 "+eM(n);if(o>a)return eM(e)+" 至 "+eM(n)+" (起始時間大於結束時間)"}return""},e.getUserAgent=tM,e.getUserAgentDyn=async function(e=null,t){return Tn(t)||(t=["https://cdn.jsdelivr.net/npm/ua-parser-js@2.0.3/dist/ua-parser.min.js"]),await lc(t),tM(e)},e.getltdtkeys=zn,e.haskey=Te,e.html2str=async function(e){if(!Fe(e))return"";let t=await async function(){let e="htmlToText";if(Oi(be(y,e)))return y;if(Oi(be(y,["default",e])))return y.default;let t=globalThis,n=null;if(await ms(()=>(n=be(t,"ht",null),Se(n)),{attemptNum:4e3,timeInterval:50}),Oi(be(n,e)))return n;if(Oi(be(n,["default",e])))return n.default;throw console.log("ht",y,"g.ht",t.ht),new Error("invalid ht, g.ht, g.ht.default, use script for import")}();return t.htmlToText(e,{wordwrap:!1,selectors:[{selector:"script",format:"skip"},{selector:"style",format:"skip"}]})},e.htmlDecode=function(e,t={}){return Fe(e)?os.decode(e,t):""},e.htmlEncode=as,e.importResources=lc,e.interp1=function(e,t,n={}){if(!Be(e))return{err:"ps is not an array"};{let e=!Me(t),n=!Be(t);if(e&&n)return{err:"px is not a number or an array"}}let r=function(e,t={}){if(ar(e)<=0)return[];let n=be(t,"keyX");Fe(n)||(n="x");let r=be(t,"keyY");Fe(r)||(r="y");let i=[];return An(e,e=>{let t=null,o=null;Be(e)&&ar(e)>=2?(t=be(e,0),o=be(e,1)):(t=be(e,n,null),o=be(e,r,null)),Me(t)&&Me(o)&&(t=Ar(t),o=Ar(o),i.push({x:t,y:o}))}),i}(e,n);if(be(r,"err"))return be(r,"err");if(0===ar(r))return{err:"ps(length=0) is not an effective array",ps:e,psEff:r};if(1===ar(r))return{err:"ps(length=1) is one point only",ps:e,psEff:r};let i=function(e){let t=!0,n=!0;for(let r=1;r<ar(e);r++){let i=e[r-1],o=e[r];if(t&&i.x>o.x&&(t=!1),n&&i.x<o.x&&(n=!1),i.x===o.x)return{err:`x can not be equal: i=${r}, x=${i.x}`}}return t?iM:n?oM:"no"}(r);if("no"===i)return{err:"psEff is not increasing or decreasing"};i===oM&&(i=iM,r=ka(r));let o=!Be(t);o&&(t=[t]);let a=function(e,t={}){if(ar(e)<=0)return[];let n=be(t,"keyX");Fe(n)||(n="x");let r=[];return An(e,e=>{let t=null;t=Me(e)?Ar(e):Be(e)&&ar(e)>=1?be(e,0):be(e,n,null),Me(t)&&(t=Ar(t),r.push({x:t}))}),r}(t,n),s=be(n,"mode");"linear"!==s&&"stairs"!==s&&"blocks"!==s&&(s="linear");let l,c=wn(a,(e,t)=>{let i=be(e,"x"),o=null;try{"linear"===s?o=function(e,t){let n=aM(e,t);if(n!==nM)return n;let r=null;for(let n=1;n<ar(e);n++){let i=e[n-1],o=e[n];if(i.x<=t&&t<=o.x){r=((t-i.x)*o.y+(o.x-t)*i.y)/(o.x-i.x);break}}return null===r?{err:rM}:r}(r,i):"blocks"===s?o=function(e,t){let n=aM(e,t);if(n!==nM)return n;let r=null;for(let n=1;n<ar(e);n++){let i=e[n-1],o=e[n],a=i.x,s=o.x;if(a<=t&&t<=s){r=o.y;break}}return null===r?{err:rM}:r}(r,i):"stairs"===s&&(o=function(e,t,n={}){let r=be(n,"xMin");if(fa(r)){if(r>e[0].x)return{err:`xMin=${r} > ps[0].x=${e[0].x}`};r===e[0].x||(e=[{x:r,y:e[0].y},...e])}let i=be(n,"xMax");if(fa(i)){if(i<e[ar(e)-1].x)return{err:`xMax=${i} < ps[size(ps)-1].x=${e[ar(e)-1].x}`};if(i===e[ar(e)-1].x);else{let t={x:i,y:e[ar(e)-1].y};e=[...e,t]}}let o=aM(e,t);if(o!==nM)return o;let a=null;for(let n=0;n<ar(e);n++){let r=be(e,n-1,null),i=be(e,n,null),o=be(e,n+1,null),s=i.x;r&&(s=(r.x+i.x)/2);let l=i.x;if(o&&(l=(o.x+i.x)/2),s<=t&&t<=l){a=i.y;break}}return null===a?{err:rM}:a}(r,i,n))}catch(e){o={err:e.toString()}}return o});return l=o?c[0]:c,l},e.isDate=function(e){let t=e;return Fe(e)&&(t=new Date(e)),Me(e)&&(t=xr(e),t=new Date(e)),t instanceof Date&&!isNaN(t)},e.isDev=function(){return!!location&&Ja(location.href,"localhost")},e.isEle=ku,e.isEleExistByID=function(e){return!!Fe(e)&&!(null===document.getElementById(e))},e.isEmail=function(e){return!!Fe(e)&&(!(e.length>254)&&(!(e.indexOf("@")>64)&&lM.test(e)))},e.isErr=function(e){return cM(e)},e.isIE=Ju,e.isNarrow=function(e){if(!Ka())return!1;let t=window.innerWidth>0&&window.innerWidth<=1024,n=!1;if(e){let t=be(e,"clientWidth",0);n=t>0&&t<=700}return t||n},e.isStrHasCapital=hM,e.isStrHasLetter=pM,e.isStrHasLowerCase=gM,e.isStrHasNumber=mM,e.isStrHasSpace=yM,e.isStrHasSymbol=vM,e.isUserIdentify=function(e){let t=_a();if(!Fe(e))return t.reject("身份證字號非有效字串"),t;if(10!==e.length)return t.reject("身份證字號長度非10位"),t;if(isNaN(e.substring(1,10))||!/^[A-Z]$/.test(e.substring(0,1)))return t.reject("身份證格式錯誤,字首需大寫英文"),t;e="ABCDEFGHJKLMNPQRSTUVXYWZIO".indexOf(e.substring(0,1))+10+""+e.substring(1,10);let n=parseInt(e.substring(0,1))+9*parseInt(e.substring(1,2))+8*parseInt(e.substring(2,3))+7*parseInt(e.substring(3,4))+6*parseInt(e.substring(4,5))+5*parseInt(e.substring(5,6))+4*parseInt(e.substring(6,7))+3*parseInt(e.substring(7,8))+2*parseInt(e.substring(8,9))+parseInt(e.substring(9,10)),r=parseInt(e.substring(10,11));return n%10!=0&&10-n%10!==r?(t.reject("非有效身份證"),t):(t.resolve(),t)},e.isUserName=function(e){let t=_a();return Fe(e)?(t.resolve(),t):(t.reject("請填入姓名"),t)},e.isUserPw=function(e,t={}){let n=[],r=be(t,"useKeyForError",null);Ie(r)||(r=!1);let i=be(t,"useOnlyOneError",null);if(Ie(i)||(i=!1),ke(e)||(r?n.push("keyInvalidPassword"):n.push("密碼非有效字串")),ar(n)>0)throw new Error(n[0]);let o=be(t,"numLenMin","");(!Cr(o)||Yi(o)<0)&&(o=8),o=Yi(o);let a=be(t,"numLenMax","");if((!Cr(a)||Yi(a)<0)&&(a=30),a=Yi(a),o>a&&(r?n.push("keyLimNumLenMinOrMax"):n.push("設定密碼最小長度大於最大長度")),ar(n)>0)throw new Error(n[0]);let s=be(t,"noSpace",null);if(Ie(s)||(s=!0),s&&(yM(e)&&(r?n.push("keyLimHasSpace"):n.push("密碼不可包含空白字元")),i&&ar(n)>0))throw new Error(n[0]);let l=be(t,"onlyAscii",null);if(Ie(l)||(l=!0),l&&(/[^\x20-\x7e]/.test(e)&&(r?n.push("keyLimNonAsciiChar"):n.push("密碼僅允許使用英文大小寫、數字及特殊符號")),i&&ar(n)>0))throw new Error(n[0]);if(ar(e)<o&&(r?n.push("keyLimNumLenMin"):n.push(`密碼長度須大於等於${o}個字元`)),i&&ar(n)>0)throw new Error(n[0]);if(ar(e)>a&&(r?n.push("keyLimNumLenMax"):n.push(`密碼長度須小於等於${a}個字元`)),i&&ar(n)>0)throw new Error(n[0]);let c=be(t,"requireLetter",null);Ie(c)||(c=!1);let u=be(t,"requireUppercase",null);Ie(u)||(u=!0);let f=be(t,"requireLowercase",null);Ie(f)||(f=!0);let d=be(t,"requireDigit",null);Ie(d)||(d=!0);let h=be(t,"requireSpecial",null);if(Ie(h)||(h=!0),c&&!pM(e)&&(r?n.push("keyLimRequireLetter"):n.push("密碼須包含至少一個英文字母")),i&&ar(n)>0)throw new Error(n[0]);if(u&&!hM(e)&&(r?n.push("keyLimRequireUppercase"):n.push("密碼須包含至少一個大寫英文字母")),i&&ar(n)>0)throw new Error(n[0]);if(f&&!gM(e)&&(r?n.push("keyLimRequireLowercase"):n.push("密碼須包含至少一個小寫英文字母")),i&&ar(n)>0)throw new Error(n[0]);if(d&&!mM(e)&&(r?n.push("keyLimRequireDigit"):n.push("密碼須包含至少一個數字")),i&&ar(n)>0)throw new Error(n[0]);if(h&&!vM(e)&&(r?n.push("keyLimRequireSpecial"):n.push("密碼須包含至少一個特殊符號")),i&&ar(n)>0)throw new Error(n[0]);let p=be(t,"forbiddenChars",null);if(Be(p)||(p=[]),ar(p)>0){for(let t of p)if(e.includes(t)){if(r){n.push("keyLimForbiddenChar");break}n.push(`密碼不可包含字元:${t}`)}if(i&&ar(n)>0)throw new Error(n[0])}let g=be(t,"commonPasswordBlacklist",null);if(Be(g)||(g=CM),ar(g)>0){let t=e.toLowerCase();if(g.some(e=>ke(e)&&t===e.toLowerCase())&&(r?n.push("keyLimCommonPassword"):n.push("此密碼為常見弱密碼,不允許使用")),i&&ar(n)>0)throw new Error(n[0])}let m=be(t,"account",""),y=be(t,"noConsecutiveCharsFromAccount",null);Ie(y)||(y=!1);let v=be(t,"consecutiveCharsMinMatch","");if(Wi(v)||(v=3),v=Yi(v),y&&ke(m)&&ar(m)>=v){let t=[...m.toLowerCase()],o=e.toLowerCase(),a=!1;for(let e=0;e<=t.length-v;e++){let n=t.slice(e,e+v).join("");if(o.includes(n)){a=!0;break}}if(a&&(r?n.push("keyLimConsecutiveCharsFromAccount"):n.push(`密碼不可包含與帳號相同之${v}個以上連續字元`)),i&&ar(n)>0)throw new Error(n[0])}if(ar(n)>0)throw new Error(n.join(" | "));return!0},e.isWindow=Ka,e.isab=xe,e.isarr=Be,e.isarr0=Nn,e.isarr1=sM,e.isbigint=Ma,e.isblob=Xa,e.isbol=Ie,e.isday=Qu,e.isearr=Tn,e.iseobj=Se,e.iser=Mn,e.isernot=Lm,e.isestr=Fe,e.isfile=VN,e.isfun=Oi,e.isint=Cr,e.ismonth=fr,e.isn0int=uM,e.isn0num=fM,e.isnan=Ne,e.isnbr=De,e.isnint=hb,e.isnnum=function(e){return!!Me(e)&&xr(e)<0},e.isnull=kn,e.isnum=Me,e.isobj=Ee,e.isobj0=Fn,e.isp0int=mo,e.isp0num=dM,e.ispint=Wi,e.ispm=gs,e.ispnum=la,e.isstr=ke,e.isstr0=Dn,e.istime=Xy,e.istimeTZ=xM,e.istimems=AM,e.istimemsTZ=IM,e.isu16arr=dN,e.isu8arr=ls,e.isundefined=Sn,e.j2o=za,e.judge=function(e,t,n,r={}){if(!Me(e))throw new Error("x1 is not a number");if(!Me(n))throw new Error("x2 is not a number");let i=be(r,"withPreciseNum");if(Ie(i)||(i=!0),i&&(e=DF(e),n=DF(n)),"==="===t)return e===n||BM(e,n);if("!=="===t)return function(e,t){return!BM(e,t)}(e,n);if(">="===t)return e===n||function(e,t){return new Zl(e).gte(t)}(e,n);if(">"===t)return function(e,t){return new Zl(e).gt(t)}(e,n);if("<="===t)return e===n||function(e,t){return new Zl(e).lte(t)}(e,n);if("<"===t)return function(e,t){return new Zl(e).lt(t)}(e,n);throw console.log(t),new Error(`invalid op[${t}]`)},e.keysmat2ltdt=EM,e.ltdt2vrtsable=function(e,t=[],n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:[];if(!Tn(e))return i("invalid ltdt");if(!Be(t))return i("invalid mergerowkeys");let o=!1;if(An(e,function(e){Se(e)||(o=!0)}),o)return i("invalid ltdt, every element must be an effective object");let a=zn(e),s=[];An(e,function(e){let t={};An(a,function(n){t[n]={value:e[n].value,style:e[n].style,rowspan:1}}),s.push(t)});let l=ka(s),c=ar(l);An(a,function(e){if(da(e,t)){let t=Zi(0,c,0),n=Zi(0,c,0),r=Zi(1,c+1,0);An(l,function(i,o){if(o>0){ua(l[o-1][e].value,l[o][e].value)&&(t[o-1]=1,t[o]=1,r[o]=r[o-1]+1),1===t[o-1]&&1===t[o]&&(n[o-1]=0,n[o]=1)}}),An(l,function(i,o){1===t[o]&&(1===n[o]?l[o][e].rowspan=r[o]:l[o][e].rowspan=null)})}});let u=ka(l);return r?{state:"success",msg:u}:u},e.ltdtDiff=function(e,t,n={}){if(!Be(e))return{};if(!Be(t))return{};if(0===ar(e)&&0===ar(t))return{};let r=be(n,"empty");Fe(r)||(r="∗empty∗");let i=zn(e),o=zn(t),a=SM(i,o),s={};An(a,(e,t)=>{s[t]=e});let l=Zo(lr(e,a,{empty:r}),lr(t,a,{empty:r}),{...n,mode:"matrix"});return l.dfs=wn(l.dfs,e=>{let t={};An(e,e=>{e.k=s[e.k],t[e.k]=e});let n={};return An(a,e=>{n[e]=t[e]}),n}),l},e.ltdtDiffByKey=eN,e.ltdtkeys2mat=lr,e.ltdtkeysheads2mat=cr,e.ltdtmapping=function(e,t,n=""){if(!Tn(e))return[];if(!Tn(t))return[];let r=wn(e,e=>SF(e,t,n));return r},e.ltdtmerge=uD,e.ltdtpick=function(e,t){if(!Tn(e))return[];if(!Tn(t))return[];let n=wn(e,e=>kF(e,t));return n},e.ltdtpull=function(e,t,n){return Be(e)&&Be(t)&&Fe(n)&&mn(e,e=>Ee(e))?0===t.length?e:mn(t,e=>Ee(e))?FM(e,t,n):[]:[]},e.mat2ltdt=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:[];if(!Tn(e))return r("invalid mat");if(e.length<=1)return r("invalid mat, at least 2 rows are required");let i=!1;if(An(e,function(e){Tn(e)||(i=!0)}),i)return r("invalid mat, every row must be an effective array");var o,a;let s=EM(Jo(e)[0],(a=null==(o=e)?0:o.length)?bo(o,1,a):[],{returnWithStateAndMsg:!0});return"error"===s.state?r(`keysmat2ltdt: ${s.msg}`):n?s:s.msg},e.matConcat=function(e,t){if(!Be(e))return[];if(!Be(t))return[];if(0===ar(e)&&0===ar(t))return[];let n=ar(e),r=ar(be(e,0,[])),i=ar(t),o=ar(be(t,0,[])),a=[],s=Math.max(n,i);for(let n=0;n<s;n++){let i=[],s=-1;for(let t=0;t<r;t++){s++;let r=be(e,`${n}.${t}`,null);i[s]=r}for(let e=0;e<o;e++){s++;let r=be(t,`${n}.${e}`,null);i[s]=r}a[n]=i}return a},e.matDiff=function(e,t,n={}){return Be(e)&&Be(t)?0===ar(e)&&0===ar(t)?{}:Zo(e,t,{...n,mode:"matrix"}):{}},e.matat=function(e,t,n){return Tn(e)?wn(e,function(e){return yo(e,t,n)}):[]},e.now2str=RD,e.now2strp=function(){if(!Oi(t))throw new Error("invalid dayjs");return t().format("YYYYMMDDHHmmss")},e.nowDay2str=function(){if(!Oi(t))throw new Error("invalid dayjs");return t().format("YYYY-MM-DD")},e.nowms2str=function(){if(!Oi(t))throw new Error("invalid dayjs");return t().format("YYYY-MM-DDTHH:mm:ss.SSSZ")},e.nowms2strp=function(){if(!Oi(t))throw new Error("invalid dayjs");return t().format("YYYYMMDDHHmmssSSS")},e.o2j=sr,e.obj2b64=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"",i="";try{let t=sr(e,!1,{returnWithStateAndMsg:!0});if("error"===t.state)return r(`o2j: ${t.msg}`);let n=DM(t.msg,{returnWithStateAndMsg:!0});if("error"===n.state)return r(`str2b64: ${n.msg}`);i=n.msg}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.obj2pb64=function(e,t,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(void 0===e)return i("invalid data");if(!Fe(t))return i("invalid key");let o="";try{let n=sr({data:e},!1,{returnWithStateAndMsg:!0});if("error"===n.state)return i(`o2j: ${n.msg}`);o=NM(n.msg,t,!0)}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.obj2str=function(e,t="Uint8Array",n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(Sn(e))return i("invalid data");ke(t)?t=[t]:Be(t)||(t=["Uint8Array"]);let o="";try{o=JSON.stringify(e,function(e,n){return n=zM.escape(n),t.indexOf("Uint8Array")>=0&&(n=zM.u8arr2b64(n)),t.indexOf("Uint16Array")>=0&&(n=zM.u16arr2b64(n)),n})}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.obj2stru8arr=jM,e.obj2u8arr=function(e,t={}){let n=[],r=new Uint8Array,i=be(t,"returnWithStateAndMsg",null);Ie(i)||(i=!1);let o=e=>i?{state:"error",msg:e}:new Uint8Array;if(!sM(e)&&!Se(e))return o("invalid data, data is not an effective object or a non-empty array");let a=[],s=[];function l(e){a.push(hN(e)),s.push(e)}try{let t=jM(e,{returnWithStateAndMsg:!0});if("error"===t.state)return o(`obj2stru8arr: ${t.msg}`);let i=t.msg;l(VM(i.results)),An(i.binarys,e=>{l(e)});let c=a,u=VM(JSON.stringify(c)),f=new Uint8Array(8);ds(hN(u),f),n.push(f),n.push(u),An(s,e=>{n.push(e)}),r=YM(n)}catch(e){return o(e.toString())}return i?{state:"success",msg:r}:r},e.objSortBy=WM,e.objSortByKeys=function(e,t){if(!Se(e))return{};if(!Tn(t))return{};let n={};return An(t,(e,t)=>{n[e]=t}),WM(e,(e,t)=>be(n,t,0))},e.oo=function(e){if(void 0!==e)return za(sr(e))},e.openLink=function(e){if(!Fe(e))return;let 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,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!Fe(e))return i("invalid b64");if(!Fe(t))return i("invalid key");let o=null;try{if(o=za(Kr(e,t,!0)).data,void 0===o)return i("can not decrypt b64 with key, or the decrypted data is invalid")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.pm2resolve=db,e.pmChain=function(e,t=null){if(!Be(e)){let e=_a();return e.reject("pms is not an array"),e}return e.reduce((e,t)=>e.then(t),Promise.resolve(t))},e.pmConvertResolve=fb,e.pmDebounce=function(e=300){return new function(e){let t=[],n=null,r=null,i="wait";return Wi(e)||(e=300),e=Yi(e),function(o,...a){Oi(o)?((null===r||"wait"===i)&&(r=Date.now()),t.push({func:o,input:a,output:null}),null===n&&"wait"===i&&(n=setInterval(()=>{if(null===r)throw new Error("invalid tLast");if("wait"!==i)return;if("wait"===i&&0===t.length)return clearInterval(n),n=null,void(r=null);let o=Date.now();if(o-r>e){i="doing",r=o;let e=t.pop();t=[];let n=e.func(...e.input);gs(n)?n.then(t=>{e.output=t}).catch(t=>{e.output={err:t}}).finally(()=>{i="wait",r=Date.now()}):(e.output=n,i="wait")}"wait"===i&&0===t.length&&(clearInterval(n),n=null,r=null)},20))):console.log("func is not a function")}}(e)},e.pmHook=GM,e.pmHookReject=function(e,t=()=>{}){return Oi(e)?(Oi(t)||(t=()=>{}),GM(e,e=>{if("afterCatch"===e.mode)return t(e.data)})):null},e.pmIni=function(){return Promise.resolve()},e.pmInvResolve=function(e,t={}){if(!gs(e))throw new Error("pm is not a promise");let n=be(t,"thenExtractData");Ie(n)||(n=!1);let r=_a();return e.then(e=>{n&&(e=be(e,"data"));let t=be(e,"state",""),i=be(e,"msg",{});"success"===t?r.resolve(i):"cancelled"===t?r.reject({reason:"cancelled"}):r.reject(i)}).catch(e=>{r.reject(e)}),r},e.pmKeyMutex=function(){return new function(){let e=new Map,t=new Map;return async(n,r)=>{let i=(e.get(n)||Promise.resolve()).then(async()=>await r(),async()=>await r());e.set(n,i.catch(()=>{})),t.set(n,(t.get(n)||0)+1);try{return await i}finally{let r=t.get(n)-1;r<=0?(t.delete(n),e.delete(n)):t.set(n,r)}}}},e.pmMap=function(e,t,n=0){let r={},i=!1,o=_a();if(!Be(e)&&!Ee(e))return o.reject("rs is not an array or object"),o;if(0===ar(e))return o.resolve([]),o;let a=!1;if(Ee(e)){a=!0;let t=[];An(e,(e,n)=>{t.push({k:n,v:e})}),e=t}let s=pb(n);return s.on("message",function(n){if(i)return;let l,c=s.get();if(Oi(t)){let e=c.key,n=c.value;if(a&&(e=c.value.k,n=c.value.v),l=t(n,e),!gs(l))throw new Error("return of fun is not a promise")}else l=c.value;l.then(e=>{r[c.key]=e}).catch(e=>{i=!0,s.clear(),o.reject(e)}).finally(()=>{s.cb(),ar(r)===ar(e)&&o.resolve(nD(r))})}),An(e,(e,t)=>{s.push({key:t,value:e})}),o},e.pmQueue=gb,e.pmSeries=ic,e.pmThrottle=function(){let e=qi(),t=[],n=null,r=!1;return function(i,...o){let a=_a();if(!Oi(i))return void console.log("func is not a function");let s=Hu();return t.push({id:s,func:i,input:o}),null===n&&(n=setInterval(async()=>{if(r)return;r=!0;let i=t.pop();for(let n=0;n<t.length;n++){let r=t[n].id,i={state:"cancelled"};e.emit(r,i)}if(t=[],i){let t,n=i.id;t=Oi(i.func)?await db(i.func)(...i.input):{state:"error",msg:"fun is not a function"},e.emit(n,t)}r=!1,r||0!==t.length||(clearInterval(n),n=null)},20)),e.once(s,e=>{"success"===e.state?a.resolve(e.msg):"cancelled"===e.state?a.reject({reason:"cancelled"}):a.reject(e.msg)}),a}},e.pmTimeout=async function(e,t,n={}){if(!gs(e))throw new Error("invalid pm");if(!mo(t))throw new Error(`invalid ms[${t}]`);t=Math.min(t,Ri);let r=be(n,"label",null);Fe(r)||(r="");let i,o=`timeout[${t}ms]`;Fe(r)&&(o=`${r} ${o}`);let a=_a();return i=setTimeout(()=>{let e=new Error(o);e.code="TIMEOUT",e.timeout=t,a.reject(e)},t),Promise.race([e,a]).finally(()=>clearTimeout(i))},e.preciseNum=DF,e.pseudoRandom=XM,e.pseudoRandomIntRange=function(e=0,t=100,n="start1"){if(Cr(e)||(e=0),e=Yi(e),Cr(t)||(t=100),e>(t=Yi(t)))throw new Error(`vstart[${e}] > vend[${t}]`);let r=XM(n)*(t-e+1)+e;return r=Math.floor(r),r},e.pseudoRandomIntsNdpRange=function(e=0,t=100,n,r="start1"){if(Cr(e)||(e=0),e=Yi(e),Cr(t)||(t=100),t=Yi(t),Wi(n)||(n=1),n=Yi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=XM(r,!0),o=[],a=t-e;for(let n=0;n<=a;n++){let n=i()*(t-e+1)+e;n=Math.floor(n),o.push(n)}let s=Pa(o,{returnIndex:!0});return s=Jo(s,n),s},e.pseudoRandomIntsRange=function(e=0,t=100,n,r="start1"){if(Cr(e)||(e=0),e=Yi(e),Cr(t)||(t=100),t=Yi(t),Wi(n)||(n=1),n=Yi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=XM(r,!0),o=[];for(let r=1;r<=n;r++){let n=i()*(t-e+1)+e;n=Math.floor(n),o.push(n)}return o},e.pseudoRandomRange=function(e=0,t=1,n="start1"){if(Me(e)||(e=0),e=xr(e),Me(t)||(t=1),e>(t=xr(t)))throw new Error(`vstart[${e}] > vend[${t}]`);return XM(n)*(t-e)+e},e.pseudoRandomsRange=function(e=0,t=1,n=1,r="start1"){if(Me(e)||(e=0),e=xr(e),Me(t)||(t=1),t=xr(t),Wi(n)||(n=1),n=Yi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=XM(r,!0),o=[];for(let r=1;r<=n;r++){let n=i()*(t-e)+e;o.push(n)}return o},e.queue=pb,e.random=ZM,e.randomIntRange=function(e=0,t=100){if(Cr(e)||(e=0),e=Yi(e),Cr(t)||(t=100),e>(t=Yi(t)))throw new Error(`vstart[${e}] > vend[${t}]`);let n=ZM()*(t-e+1)+e;return n=Math.floor(n),n},e.randomIntsNdpRange=function(e=0,t=100,n){if(Cr(e)||(e=0),e=Yi(e),Cr(t)||(t=100),t=Yi(t),Wi(n)||(n=1),n=Yi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let r=function(e,t,n){return t=(n?gn(e,t,n):void 0===t)?1:Ir(t),(v(e)?oT:aT)(e,t)}(Zi(e,t+1),n);return r},e.randomIntsRange=function(e=0,t=100,n){if(Cr(e)||(e=0),e=Yi(e),Cr(t)||(t=100),t=Yi(t),Wi(n)||(n=1),n=Yi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let r=[];for(let i=1;i<=n;i++){let n=ZM()*(t-e+1)+e;n=Math.floor(n),r.push(n)}return r},e.randomRange=function(e=0,t=1){if(Me(e)||(e=0),e=xr(e),Me(t)||(t=1),e>(t=xr(t)))throw new Error(`vstart[${e}] > vend[${t}]`);return ZM()*(t-e)+e},e.randomsRange=function(e=0,t=1,n=1){if(Me(e)||(e=0),e=xr(e),Me(t)||(t=1),t=xr(t),Wi(n)||(n=1),n=Yi(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let r=[];for(let i=1;i<=n;i++){let n=ZM()*(t-e)+e;r.push(n)}return r},e.rang=function(e,t,n=2){if(!Me(e))return[];if(e=xr(e),!Me(t))return[];if(t=xr(t),Wi(n)||(n=2),(n=Yi(n))<=0)throw new Error(`num[${n}] <= 0`);let r=(t-e)/n,i=e,o=[];for(let e=0;e<=n;e++)o.push(i),i+=r;return o},e.rep=function(e,t){return Fe(e)&&mo(t)?lT(e,t):""},e.repObj=function(e,t){return Mn(e)?[]:Wi(t)?_N(t,io(e)):[]},e.replace=uc,e.replaceObj=function(e,t){return Fe(e)&&Se(t)?(An(t,function(e,t){e=Ee(e)||Be(e)?JSON.stringify(e):Ta(e)}),An(t,function(t,n){e=uc(e,n,t)}),e):""},e.replacePlus=function(e,t,n,r=null,i){if(!Fe(e)||!Fe(t)||!Fe(n))return"";if(!ke(i))return"";let o="[\\s\\S]*";Fe(r)&&(o="[^"+r+"]*");let a=new RegExp(t+o+n,"g");return e.replace(a,i)},e.round=FF,e.secd=function(e){return Me(e)?1/Du(e=xr(e)):null},e.sep=na,e.sepInt=function(e,t,n=!0){if(!Cr(e))return[];if(!mo(t))return[];if(!Ie(n))return[];let r=cT(e/t),i=e-r*t,o=[];for(let e=1;e<=t;e++){let t=r;e<=i&&(t=r+1),o.push(t)}return n&&(o=ka(o)),o},e.setIntervalHp=function(e,t=1){let n=nc(),r=Ka(),i=e=>{n.setTimeout(e,1)},o=e=>{n.requestAnimationFrame(e)},a=null;a=r?o:i;let s=ZN(),l=!0,c=s(),u=()=>{if(!l)return;if(s()-c>=t){try{e()}catch(e){console.log(e)}c=s()}a(u)};return a(u),()=>{l=!1}},e.setTimeoutHp=function(e,t=1){let n=nc(),r=Ka(),i=e=>{n.setTimeout(e,1)},o=e=>{n.requestAnimationFrame(e)},a=null;a=r?o:i;let s=ZN(),l=!0,c=s(),u=()=>{if(!l)return;if(s()-c>=t){l=!1;try{e()}catch(e){console.log(e)}}a(u)};return a(u),null},e.sind=Tu,e.split=ta,e.str2aes=NM,e.str2b64=DM,e.str2hint=JM,e.str2md5=function(e,t=!1,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!Fe(e))return i("invalid str");Ie(t)||(t=!1);let o="";try{let n=uT(e);o=t?n.toString(Qr):n.toString(Xr)}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.str2obj=function(e,t="Uint8Array",n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:{};if(!ke(e))return i("invalid data");ke(t)?t=[t]:Be(t)||(t=["Uint8Array"]);let o={};try{o=JSON.parse(e,function(e,n){return t.indexOf("Uint8Array")>=0&&(n=zM.b642u8arr(n)),t.indexOf("Uint16Array")>=0&&(n=zM.b642u16arr(n)),zM.unescape(n)})}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.str2sha=CT,e.str2sha512=function(e,t=!1,n={}){let r=be(n,"returnWithStateAndMsg",null);if(Ie(r)||(r=!1),!r)return CT(e,512,t);let i=CT(e,512,t,{returnWithStateAndMsg:!0});return"error"===i.state?{state:"error",msg:`str2sha: ${i.msg}`}:i},e.str2u8arr=VM,e.strCompare=BT,e.strCompareForVersion=function(e,t){let n=ET(e),r=ET(t);if(null===n||null===r)return null;for(let e=0;e<3;e++){if(n[e]>r[e])return 1;if(n[e]<r[e])return-1}return 0},e.strDiff=_o,e.strDiffToHtml=function(e,t,n={}){if(!ke(e))return"";if(!ke(t))return"";if(""===e&&""===t)return"";let r=be(n,"useNormNewline");Ie(r)||(r=!0),r&&(e=(e=e.replaceAll("\r\n","\n")).replaceAll("\r","\n"),t=(t=t.replaceAll("\r\n","\n")).replaceAll("\r","\n"));let i=Wf(),o=Wo("file","file",e,t),a=i.html(o,{drawFileList:!1,matching:"none",diffStyle:"char",outputFormat:"line-by-line"}),s=Uo(a,"\n"),l="",c=!1;return An(s,e=>{'<div class="d2h-code-line">'===ea(e)&&(c=!0),e.indexOf('class="d2h-code-line-prefix"')>=0&&(e=e.replaceAll('class="d2h-code-line-prefix"','class="d2h-code-line-prefix" style="display:inline-block; width: 0.7rem;"')),e.indexOf("<del>")>=0&&(e=e.replaceAll("<del>",'<del style="color:#f26; background:#ffefd5;">')),e.indexOf("<ins>")>=0&&(e=e.replaceAll("<ins>",'<ins style="color:#090; background:#e4fed1;">')),c&&(l+=e+"\n"),c&&"</div>"===ea(e)&&(c=!1)}),a=l,a},e.strFindFuzz=function(e,t,n=!1){let r="";if(Fe(e)||Me(e))r=Ta(e);else{if(!Tn(e))return!!n&&0;r=Ao(e,"")}if(""===t)return!n||100;if(Mn(t))return!!n&&0;if(Ja(r,t))return!n||100;let i=na(t," "),o=wn(i,function(e){return((e,t)=>{let n=new SQ([e],{includeScore:!0}).search(t);n=be(n,0);let r=be(n,"score",1);return r=1-r,r*=100,r})(r,e)});if(n)return kQ(o);{let e=80;return mn(o,function(t){return t>=e})}},e.strFindSimilar=function(e,t){let n="";if(Fe(e)||Me(e))n=Ta(e);else{if(!Tn(e))return{};n=Ao(e,"")}return Me(t)&&(t=Ta(t)),Fe(t)&&(t=[t]),Tn(t)?function(e,t){let n=[],r=0;for(let i=0;i<t.length;i++){let o=t[i],a=BT(e,o);n.push({target:o,rating:a}),a>n[r].rating&&(r=i)}return{ratings:n,bestMatch:n[r],bestMatchIndex:r}}(n,t=wn(t,function(e){return Ta(e)})):{}},e.strTruncate=MF,e.strdelleft=oa,e.strdelright=La,e.strleft=ra,e.strmid=fc,e.strright=ia,e.stru8arr2obj=FQ,e.tand=Nu,e.time2day=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!Xy(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.time2hour=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!Xy(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.time2min=eM,e.timeTZ2day=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!xM(e))return i("invalid t");let o="";try{e=wM.delTZ(e),o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timeTZ2expire=function(e,t=null,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=(e,t)=>r?{state:"error",msg:e}:{today:null,msg:"",err:t};if(!xM(e))return i("invalid t","時間格式錯誤");try{e=MQ(e),t=MQ(t)}catch(e){return i(e.toString(),"時間轉換失敗")}return DQ(e,t,n)},e.timeTZ2hour=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!xM(e))return i("invalid t");let o="";try{e=wM.delTZ(e),o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timeTZ2min=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!xM(e))return i("invalid t");let o="";try{e=wM.delTZ(e),o=t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timeTZ2past=function(e,t=null,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=(e,t)=>r?{state:"error",msg:e}:{today:null,msg:"",err:t};if(!xM(e))return i("invalid t","時間格式錯誤");try{e=TQ(e),t=TQ(t)}catch(e){return i(e.toString(),"時間轉換失敗")}return NQ(e,t,n)},e.timems2day=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!AM(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DD")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timems2hour=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!AM(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timems2min=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!AM(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timems2time=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!AM(e))return i("invalid t");let o="";try{o=t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm:ss")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timemsTZ2day=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!IM(e))return i("invalid t");let o="";try{e=wM.delTZ(e),o=t(e).format("YYYY-MM-DD")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timemsTZ2expire=DQ,e.timemsTZ2hour=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!IM(e))return i("invalid t");let o="";try{e=wM.delTZ(e),o=t(e).format("YYYY-MM-DDTHH")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timemsTZ2min=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!IM(e))return i("invalid t");let o="";try{e=wM.delTZ(e),o=t(e).format("YYYY-MM-DDTHH:mm")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.timemsTZ2past=NQ,e.timemsTZ2time=function(e,n={}){let r=be(n,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:"";if(!IM(e))return i("invalid t");let o="";try{e=wM.delTZ(e),o=t(e).format("YYYY-MM-DDTHH:mm:ss")}catch(e){return i(e.toString())}return r?{state:"success",msg:o}:o},e.treeObj=Eu,e.treeToFilepath=function(e,t={}){if(!Tn(e))return[];let n=be(t,"delimiter");Fe(n)||(n="/");let r=be(t,"bindRoot");Fe(r)||(r="root");let i=[];return Eu(e,(e,t,o)=>{let a=be(e,"_type","");if("folder"!==a&&"file"!==a)return e;let s=wn(be(e,"pathInfors",[]),"name"),l=be(s,0,"")===r;if(1===ar(s)&&l)return e;l&&(s=Qa(s));let c={type:a,path:n+Ao(s,n)};return i.push(c),e},{force:!0}),i},e.trim=Ra,e.u16arr2b64=LM,e.u16arr2u8arr=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint8Array;if(!dN(e))return r("invalid u16a");let i=null;try{i=new Uint8Array(e)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.u8arr2ab=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new ArrayBuffer;if(!ls(e))return r("invalid u8a");let i=null;try{i=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.u8arr2b64=QM,e.u8arr2blob=EF,e.u8arr2bs=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:"";if(!ls(e))return r("invalid u8a");let i="";try{let t=e.length;for(let n=0;n<t;n++)i+=String.fromCharCode(e[n])}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.u8arr2obj=function(e,t={}){let n={},r=be(t,"returnWithStateAndMsg",null);Ie(r)||(r=!1);let i=e=>r?{state:"error",msg:e}:{};if(!ls(e))return i("invalid u8a");try{let t=8,r=e.slice(0,t),o=e.slice(t,hN(e)),a=us(r),s=o.slice(0,a),l=o.slice(a,hN(o)),c=QQ(s,{returnWithStateAndMsg:!0});if("error"===c.state)return i(`u8arr2str: ${c.msg}`);let u=c.msg,f=function(e,t){let n=0,r=0,i=[];return An(t,t=>{r=n+t;let o=e.slice(n,r);n=r,i.push(o)}),i}(l,JSON.parse(u)),d=QQ(f.shift(),{returnWithStateAndMsg:!0});if("error"===d.state)return i(`u8arr2str: ${d.msg}`);let h=FQ({results:d.msg,binarys:f},{returnWithStateAndMsg:!0});if("error"===h.state)return i(`stru8arr2obj: ${h.msg}`);n=h.msg}catch(e){return i(e.toString())}return r?{state:"success",msg:n}:n},e.u8arr2str=QQ,e.u8arr2u16arr=function(e,t={}){let n=be(t,"returnWithStateAndMsg",null);Ie(n)||(n=!1);let r=e=>n?{state:"error",msg:e}:new Uint16Array;if(!ls(e))return r("invalid u8a");let i=null;try{i=new Uint16Array(e)}catch(e){return r(e.toString())}return n?{state:"success",msg:i}:i},e.urlParse=function(e){if(!Fe(e))return{};if(!Fe(e=be(e=Uo(e,"?"),"[1]")))return{};let t=Uo(e,"&");return t=wn(t,function(e){return Uo(e,"=")}),t=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];ti(r,i[0],i[1])}return r}(t),t},e.verifyValue=function(e,t,n={}){let r=!1,i="";if("isstr"===t)ke(e)||(r=!0,i="需要為字串",e="");else if("isnum"===t)Me(e)||(r=!0,i="需要為數字",e=0);else if("isp0num"===t)dM(e)||(r=!0,i="需要為含0的正浮點數",e=0);else if("isn0num"===t)fM(e)||(r=!0,i="需要為含0的負浮點數",e=0);else if("isint"===t)Cr(e)||(r=!0,i="需要為整數",e=0);else if("ispint"===t)Wi(e)||(r=!0,i="需要為不含0正整數",e=0);else if("isp0int"===t)mo(e)||(r=!0,i="需要為含0正整數",e=0);else if("isnint"===t)hb(e)||(r=!0,i="需要為不含0負整數",e=0);else if("isn0int"===t)uM(e)||(r=!0,i="需要為含0負整數",e=0);else if("custom"===t){let t=be(n,"funCustom");if(!Oi(t))throw new Error("invalid opt.funCustom when type='custom'");let o=t(e);if(!Ie(o.err))throw new Error("invalid return.err for type='custom'");if(o.err&&!Fe(o.errmsg))throw new Error("invalid return.errmsg when return.err=true for type='custom'");if(!Me(o.value)&!ke(o.value))throw new Error("invalid return.value for type='custom'");r=o.err,i=o.errmsg,e=o.value}else if(Oi(t)){e=t(e)}else"any"===t?Me(e)||ke(e)||(r=!0,i="需要為字串或數字",e=""):(r=!0,i="需要指定驗證類型",e=null);return{value:e,err:r,errmsg:i}},e.waitFun=ms});
33
33
  //# sourceMappingURL=wsemi.umd.js.map