wsemi 1.8.72 → 1.8.74

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 (511) hide show
  1. package/README.md +1 -15
  2. package/dist/wsemi.umd.js +6 -6
  3. package/dist/wsemi.umd.js.map +1 -1
  4. package/docs/-_class.mjs.html +1 -1
  5. package/docs/ab2blob.mjs.html +1 -1
  6. package/docs/ab2u8arr.mjs.html +1 -1
  7. package/docs/addExcelWorksheetFromData.mjs.html +68 -102
  8. package/docs/addMonth.mjs.html +1 -1
  9. package/docs/aes2str.mjs.html +1 -1
  10. package/docs/alive.mjs.html +1 -1
  11. package/docs/arr2dt.mjs.html +1 -1
  12. package/docs/arrAccum.mjs.html +1 -1
  13. package/docs/arrAdd.mjs.html +1 -1
  14. package/docs/arrAt.mjs.html +1 -1
  15. package/docs/arrDiff.mjs.html +1 -1
  16. package/docs/arrFilterByKeywords.mjs.html +1 -1
  17. package/docs/arrFilterByNum.mjs.html +1 -1
  18. package/docs/arrFilterByPnum.mjs.html +1 -1
  19. package/docs/arrFilterByPnumAndToLog.mjs.html +1 -1
  20. package/docs/arrFind.mjs.html +1 -1
  21. package/docs/arrGroupByMaxmin.mjs.html +1 -1
  22. package/docs/arrHas.mjs.html +1 -1
  23. package/docs/arrInsert.mjs.html +1 -1
  24. package/docs/arrLookupByMaxmin.mjs.html +1 -1
  25. package/docs/arrMax.mjs.html +1 -1
  26. package/docs/arrMin.mjs.html +1 -1
  27. package/docs/arrMulti.mjs.html +1 -1
  28. package/docs/arrNorm.mjs.html +1 -1
  29. package/docs/arrProduct.mjs.html +1 -1
  30. package/docs/arrPull.mjs.html +1 -1
  31. package/docs/arrPullAt.mjs.html +1 -1
  32. package/docs/arrReduce.mjs.html +1 -1
  33. package/docs/arrReverse.mjs.html +1 -1
  34. package/docs/arrSep.mjs.html +1 -1
  35. package/docs/arrSort.mjs.html +1 -1
  36. package/docs/asind.mjs.html +1 -1
  37. package/docs/atan2d.mjs.html +1 -1
  38. package/docs/atand.mjs.html +1 -1
  39. package/docs/attstr.mjs.html +1 -1
  40. package/docs/b642obj.mjs.html +1 -1
  41. package/docs/b642str.mjs.html +1 -1
  42. package/docs/b642u16arr.mjs.html +1 -1
  43. package/docs/b642u8arr.mjs.html +1 -1
  44. package/docs/binstr.mjs.html +1 -1
  45. package/docs/blob2ab.mjs.html +1 -1
  46. package/docs/blob2b64.mjs.html +1 -1
  47. package/docs/blob2str.mjs.html +1 -1
  48. package/docs/blob2u8arr.mjs.html +1 -1
  49. package/docs/blobs2b64s.mjs.html +1 -1
  50. package/docs/blobs2u8arrs.mjs.html +1 -1
  51. package/docs/bodyLog.mjs.html +1 -1
  52. package/docs/browserView.mjs.html +1 -1
  53. package/docs/browserViewFromBlob.mjs.html +1 -1
  54. package/docs/browserViewFromText.mjs.html +1 -1
  55. package/docs/browserViewFromU8arr.mjs.html +1 -1
  56. package/docs/bs2u8arr.mjs.html +1 -1
  57. package/docs/bufRead.mjs.html +1 -1
  58. package/docs/bufReadDbl.mjs.html +1 -1
  59. package/docs/bufWrite.mjs.html +1 -1
  60. package/docs/bufWriteDbl.mjs.html +1 -1
  61. package/docs/cache.mjs.html +1 -1
  62. package/docs/cacheBd.mjs.html +1 -1
  63. package/docs/cacheSt.mjs.html +1 -1
  64. package/docs/cbol.mjs.html +1 -1
  65. package/docs/cdbl.mjs.html +1 -1
  66. package/docs/ceil.mjs.html +1 -1
  67. package/docs/cfilesize.mjs.html +1 -1
  68. package/docs/cfinancial.mjs.html +1 -1
  69. package/docs/cint.mjs.html +1 -1
  70. package/docs/clearXSS.mjs.html +1 -1
  71. package/docs/clearXSSDyn.mjs.html +1 -1
  72. package/docs/color.mjs.html +1 -1
  73. package/docs/composeToTree.mjs.html +1 -1
  74. package/docs/convertToTree.mjs.html +1 -1
  75. package/docs/copyStrToClipboard.mjs.html +1 -1
  76. package/docs/cosd.mjs.html +1 -1
  77. package/docs/cotd.mjs.html +1 -1
  78. package/docs/createExcelWorkbook.mjs.html +28 -33
  79. package/docs/cscd.mjs.html +1 -1
  80. package/docs/cstr.mjs.html +1 -1
  81. package/docs/day2cht.mjs.html +1 -1
  82. package/docs/debounce.mjs.html +1 -1
  83. package/docs/delay.mjs.html +1 -1
  84. package/docs/dig.mjs.html +1 -1
  85. package/docs/digExp.mjs.html +1 -1
  86. package/docs/domAlert.mjs.html +1 -1
  87. package/docs/domAppend.mjs.html +1 -1
  88. package/docs/domCancelEvent.mjs.html +1 -1
  89. package/docs/domCompareText.mjs.html +1 -1
  90. package/docs/domConvertToPic.mjs.html +3 -13
  91. package/docs/domConvertToPicDyn.mjs.html +38 -47
  92. package/docs/domDetect.mjs.html +1 -1
  93. package/docs/domDrag.mjs.html +1 -1
  94. package/docs/domDragBarAndScroll.mjs.html +1 -1
  95. package/docs/domDragPreview.mjs.html +1 -1
  96. package/docs/domDropFiles.mjs.html +1 -1
  97. package/docs/domElementsFromPoint.mjs.html +1 -1
  98. package/docs/domFadeIn.mjs.html +1 -1
  99. package/docs/domFadeOut.mjs.html +1 -1
  100. package/docs/domFind.mjs.html +1 -1
  101. package/docs/domFinds.mjs.html +1 -1
  102. package/docs/domGetAttr.mjs.html +1 -1
  103. package/docs/domGetBoudRect.mjs.html +1 -1
  104. package/docs/domGetBoudRectRefSelf.mjs.html +1 -1
  105. package/docs/domGetFileAccept.mjs.html +1 -1
  106. package/docs/domGetFiles.mjs.html +1 -1
  107. package/docs/domGetParents.mjs.html +1 -1
  108. package/docs/domGetPointFromEvent.mjs.html +1 -1
  109. package/docs/domGetScrollableParent.mjs.html +1 -1
  110. package/docs/domGetWindowSize.mjs.html +1 -1
  111. package/docs/domIsClientXYIn.mjs.html +1 -1
  112. package/docs/domIsFocused.mjs.html +1 -1
  113. package/docs/domIsStable.mjs.html +1 -1
  114. package/docs/domIsVisible.mjs.html +1 -1
  115. package/docs/domPrepend.mjs.html +1 -1
  116. package/docs/domRemove.mjs.html +1 -1
  117. package/docs/domRenderMarkdownMind.mjs.html +1 -1
  118. package/docs/domRenderMarkdownMindDyn.mjs.html +1 -1
  119. package/docs/domRipple.mjs.html +1 -1
  120. package/docs/domScrollIntoView.mjs.html +1 -1
  121. package/docs/domScrollTo.mjs.html +1 -1
  122. package/docs/domSetAttr.mjs.html +1 -1
  123. package/docs/domShowImages.mjs.html +1 -1
  124. package/docs/domShowImagesDyn.mjs.html +1 -1
  125. package/docs/domShowInputAndGetFiles.mjs.html +21 -5
  126. package/docs/domShowInputAndGetFilesU8Arrs.mjs.html +1 -1
  127. package/docs/domShowInputDatatime.mjs.html +1 -1
  128. package/docs/domTooltip.mjs.html +1 -1
  129. package/docs/domTriggerEvent.mjs.html +1 -1
  130. package/docs/domVirtualCreate.mjs.html +1 -1
  131. package/docs/domVirtualCreateQueue.mjs.html +1 -1
  132. package/docs/downloadExcelFileFromData.mjs.html +109 -117
  133. package/docs/downloadExcelFileFromDataDyn.mjs.html +50 -59
  134. package/docs/downloadFileFromB64.mjs.html +1 -1
  135. package/docs/downloadFileFromBlob.mjs.html +1 -1
  136. package/docs/downloadFileFromText.mjs.html +1 -1
  137. package/docs/downloadFileFromU8Arr.mjs.html +1 -1
  138. package/docs/dtmapping.mjs.html +1 -1
  139. package/docs/dtpick.mjs.html +1 -1
  140. package/docs/estimateTicks.mjs.html +1 -1
  141. package/docs/evem.mjs.html +1 -1
  142. package/docs/examples/ex-blob2b64.html +1 -1
  143. package/docs/examples/ex-clearXSS.html +1 -1
  144. package/docs/examples/ex-clearXSSDyn.html +1 -1
  145. package/docs/examples/ex-colorConverter.html +1 -1
  146. package/docs/examples/ex-domCompareText.html +1 -1
  147. package/docs/examples/ex-domConvertToPic.html +1 -3
  148. package/docs/examples/ex-domDrag.html +1 -1
  149. package/docs/examples/ex-domDropFiles.html +1 -1
  150. package/docs/examples/ex-domIsVisible.html +1 -1
  151. package/docs/examples/ex-domRenderMarkdownMind.html +1 -1
  152. package/docs/examples/ex-domRenderMarkdownMindDyn.html +1 -1
  153. package/docs/examples/ex-domRipple.html +1 -1
  154. package/docs/examples/ex-domScrollIntoView.html +1 -1
  155. package/docs/examples/ex-domScrollTo.html +1 -1
  156. package/docs/examples/ex-domShowImages.html +1 -1
  157. package/docs/examples/ex-domShowImagesDyn.html +1 -1
  158. package/docs/examples/ex-domShowInputAndGetFiles.html +1 -1
  159. package/docs/examples/ex-domTooltip.html +1 -1
  160. package/docs/examples/ex-getFileHash.html +1 -1
  161. package/docs/examples/ex-getUserAgent.html +1 -1
  162. package/docs/examples/ex-getUserAgentDyn.html +1 -1
  163. package/docs/examples/ex-html2str.html +1 -1
  164. package/docs/examples/ex-obj2u8arr-u8arr2obj.html +1 -1
  165. package/docs/examples/ex-openLink.html +1 -1
  166. package/docs/examples/ex-str2aes-aes2str.html +1 -1
  167. package/docs/examples/ex-str2b64-b642str.html +1 -1
  168. package/docs/examples/ex-strFindFuzz.html +1 -1
  169. package/docs/examples/ex-timeTZ2expire-timeTZ2past.html +1 -1
  170. package/docs/examples/ex-xlsx.html +36 -36
  171. package/docs/execCli.mjs.html +1 -1
  172. package/docs/execJsCode.mjs.html +1 -1
  173. package/docs/execProcess.mjs.html +1 -1
  174. package/docs/execProcessKillPid.mjs.html +1 -1
  175. package/docs/filepathToTree.mjs.html +1 -1
  176. package/docs/files2data.mjs.html +1 -1
  177. package/docs/flattenToConn.mjs.html +1 -1
  178. package/docs/flattenTree.mjs.html +1 -1
  179. package/docs/floor.mjs.html +1 -1
  180. package/docs/fsBuildReadStreamText.mjs.html +1 -1
  181. package/docs/fsBuildWriteStreamText.mjs.html +1 -1
  182. package/docs/fsCleanFolder.mjs.html +1 -1
  183. package/docs/fsCleanFolderCore.mjs.html +1 -1
  184. package/docs/fsCopyFile.mjs.html +1 -1
  185. package/docs/fsCopyFileCore.mjs.html +1 -1
  186. package/docs/fsCopyFolder.mjs.html +1 -1
  187. package/docs/fsCopyFolderCore.mjs.html +1 -1
  188. package/docs/fsCreateFile.mjs.html +1 -1
  189. package/docs/fsCreateFileCore.mjs.html +1 -1
  190. package/docs/fsCreateFolder.mjs.html +1 -1
  191. package/docs/fsCreateFolderCore.mjs.html +1 -1
  192. package/docs/fsDeleteFile.mjs.html +1 -1
  193. package/docs/fsDeleteFileCore.mjs.html +1 -1
  194. package/docs/fsDeleteFileSafe.mjs.html +1 -1
  195. package/docs/fsDeleteFileSafeCore.mjs.html +1 -1
  196. package/docs/fsDeleteFolder.mjs.html +1 -1
  197. package/docs/fsDeleteFolderCore.mjs.html +1 -1
  198. package/docs/fsDeleteFolderSafe.mjs.html +1 -1
  199. package/docs/fsDeleteFolderSafeCore.mjs.html +1 -1
  200. package/docs/fsDownloadFile.mjs.html +1 -1
  201. package/docs/fsDownloadFileCore.mjs.html +1 -1
  202. package/docs/fsEvem.mjs.html +1 -1
  203. package/docs/fsExists.mjs.html +1 -1
  204. package/docs/fsExistsCore.mjs.html +1 -1
  205. package/docs/fsGetFileBasicHash.mjs.html +1 -1
  206. package/docs/fsGetFileBasicHashCore.mjs.html +1 -1
  207. package/docs/fsGetFileHash.mjs.html +1 -1
  208. package/docs/fsGetFileHashCore.mjs.html +1 -1
  209. package/docs/fsGetFileXxHash.mjs.html +1 -1
  210. package/docs/fsGetFileXxHashCore.mjs.html +1 -1
  211. package/docs/fsGetFilesInFolder.mjs.html +1 -1
  212. package/docs/fsGetFilesInFolderCore.mjs.html +1 -1
  213. package/docs/fsGetFilesWithHashInFolder.mjs.html +1 -1
  214. package/docs/fsGetFilesWithHashInFolderCore.mjs.html +1 -1
  215. package/docs/fsGetFolderBasicHash.mjs.html +1 -1
  216. package/docs/fsGetFolderBasicHashCore.mjs.html +1 -1
  217. package/docs/fsGetFoldersInFolder.mjs.html +1 -1
  218. package/docs/fsGetFoldersInFolderCore.mjs.html +1 -1
  219. package/docs/fsIsFile.mjs.html +1 -1
  220. package/docs/fsIsFileCore.mjs.html +1 -1
  221. package/docs/fsIsFolder.mjs.html +1 -1
  222. package/docs/fsIsFolderCore.mjs.html +1 -1
  223. package/docs/fsMergeFiles.mjs.html +1 -1
  224. package/docs/fsMergeFilesCore.mjs.html +1 -1
  225. package/docs/fsReadJson.mjs.html +1 -1
  226. package/docs/fsReadText.mjs.html +1 -1
  227. package/docs/fsReadTextCore.mjs.html +1 -1
  228. package/docs/fsRenameFile.mjs.html +1 -1
  229. package/docs/fsRenameFileCore.mjs.html +1 -1
  230. package/docs/fsRenameFolder.mjs.html +1 -1
  231. package/docs/fsRenameFolderCore.mjs.html +1 -1
  232. package/docs/fsSrlog.mjs.html +1 -1
  233. package/docs/fsSyncFolder.mjs.html +1 -1
  234. package/docs/fsSyncFolderCore.mjs.html +1 -1
  235. package/docs/fsTask.mjs.html +1 -1
  236. package/docs/fsTaskCp.mjs.html +1 -1
  237. package/docs/fsTreeFolder.mjs.html +1 -1
  238. package/docs/fsTreeFolderCore.mjs.html +1 -1
  239. package/docs/fsTreeFolderWithHash.mjs.html +1 -1
  240. package/docs/fsTreeFolderWithHashCore.mjs.html +1 -1
  241. package/docs/fsWatchFile.mjs.html +1 -1
  242. package/docs/fsWatchFolder.mjs.html +1 -1
  243. package/docs/fsWriteJson.mjs.html +1 -1
  244. package/docs/fsWriteText.mjs.html +1 -1
  245. package/docs/fsWriteTextCore.mjs.html +1 -1
  246. package/docs/genGradientColor.mjs.html +1 -1
  247. package/docs/genID.mjs.html +1 -1
  248. package/docs/genIDSeq.mjs.html +1 -1
  249. package/docs/genPm.mjs.html +1 -1
  250. package/docs/getBufferSize.mjs.html +1 -1
  251. package/docs/getClearPathName.mjs.html +1 -1
  252. package/docs/getCsvStrFromData.mjs.html +1 -1
  253. package/docs/getDataFromExcelFileU8Arr.mjs.html +223 -196
  254. package/docs/getDataFromExcelFileU8ArrDyn.mjs.html +38 -47
  255. package/docs/getEnv.mjs.html +1 -1
  256. package/docs/getErrorMessage.mjs.html +1 -1
  257. package/docs/getExcelU8ArrFromData.mjs.html +81 -78
  258. package/docs/getExcelU8ArrFromWorkbook.mjs.html +72 -81
  259. package/docs/getExcelWorkbookFromData.mjs.html +70 -99
  260. package/docs/getExcelWorkbookFromWorksheet.mjs.html +64 -95
  261. package/docs/getExcelWorksheetFromData.mjs.html +81 -110
  262. package/docs/getFileAccept.mjs.html +1 -1
  263. package/docs/getFileBasicHash.mjs.html +1 -1
  264. package/docs/getFileHash.mjs.html +1 -1
  265. package/docs/getFileName.mjs.html +1 -1
  266. package/docs/getFileNameExt.mjs.html +1 -1
  267. package/docs/getFileTrueName.mjs.html +1 -1
  268. package/docs/getFileType.mjs.html +1 -1
  269. package/docs/getFileXxHash.mjs.html +1 -1
  270. package/docs/getGlobal.mjs.html +1 -1
  271. package/docs/getObjSize.mjs.html +1 -1
  272. package/docs/getPathParent.mjs.html +1 -1
  273. package/docs/getTimeBetween.mjs.html +1 -1
  274. package/docs/getTimeFromUnit.mjs.html +1 -1
  275. package/docs/getTimeHp.mjs.html +1 -1
  276. package/docs/getTimeObject.mjs.html +1 -1
  277. package/docs/getTimeRange.mjs.html +1 -1
  278. package/docs/getUserAgent.mjs.html +1 -1
  279. package/docs/getUserAgentDyn.mjs.html +1 -1
  280. package/docs/getltdtkeys.mjs.html +1 -1
  281. package/docs/global.html +1 -1
  282. package/docs/haskey.mjs.html +1 -1
  283. package/docs/html2str.mjs.html +1 -1
  284. package/docs/htmlDecode.mjs.html +1 -1
  285. package/docs/htmlEncode.mjs.html +1 -1
  286. package/docs/importResources.mjs.html +1 -1
  287. package/docs/index.html +1 -1
  288. package/docs/interp1.mjs.html +1 -1
  289. package/docs/isDate.mjs.html +1 -1
  290. package/docs/isDev.mjs.html +1 -1
  291. package/docs/isEle.mjs.html +1 -1
  292. package/docs/isEleExistByID.mjs.html +1 -1
  293. package/docs/isEmail.mjs.html +1 -1
  294. package/docs/isErr.mjs.html +1 -1
  295. package/docs/isIE.mjs.html +1 -1
  296. package/docs/isNarrow.mjs.html +1 -1
  297. package/docs/isStrHasCapital.mjs.html +1 -1
  298. package/docs/isStrHasLetter.mjs.html +1 -1
  299. package/docs/isStrHasLowerCase.mjs.html +1 -1
  300. package/docs/isStrHasNumber.mjs.html +1 -1
  301. package/docs/isStrHasSpace.mjs.html +1 -1
  302. package/docs/isStrHasSymbol.mjs.html +1 -1
  303. package/docs/isUserIdentify.mjs.html +1 -1
  304. package/docs/isUserName.mjs.html +1 -1
  305. package/docs/isUserPw.mjs.html +1 -1
  306. package/docs/isWindow.mjs.html +1 -1
  307. package/docs/isab.mjs.html +1 -1
  308. package/docs/isarr.mjs.html +1 -1
  309. package/docs/isarr0.mjs.html +1 -1
  310. package/docs/isbigint.mjs.html +1 -1
  311. package/docs/isblob.mjs.html +1 -1
  312. package/docs/isbol.mjs.html +1 -1
  313. package/docs/isday.mjs.html +1 -1
  314. package/docs/isearr.mjs.html +1 -1
  315. package/docs/iseobj.mjs.html +1 -1
  316. package/docs/iser.mjs.html +1 -1
  317. package/docs/isernot.mjs.html +1 -1
  318. package/docs/isestr.mjs.html +1 -1
  319. package/docs/isfile.mjs.html +1 -1
  320. package/docs/isfun.mjs.html +1 -1
  321. package/docs/isint.mjs.html +1 -1
  322. package/docs/ismonth.mjs.html +1 -1
  323. package/docs/isn0int.mjs.html +1 -1
  324. package/docs/isn0num.mjs.html +1 -1
  325. package/docs/isnan.mjs.html +1 -1
  326. package/docs/isnbr.mjs.html +1 -1
  327. package/docs/isnint.mjs.html +1 -1
  328. package/docs/isnnum.mjs.html +1 -1
  329. package/docs/isnull.mjs.html +1 -1
  330. package/docs/isnum.mjs.html +1 -1
  331. package/docs/isobj.mjs.html +1 -1
  332. package/docs/isobj0.mjs.html +1 -1
  333. package/docs/isp0int.mjs.html +1 -1
  334. package/docs/isp0num.mjs.html +1 -1
  335. package/docs/ispint.mjs.html +1 -1
  336. package/docs/ispm.mjs.html +1 -1
  337. package/docs/ispnum.mjs.html +1 -1
  338. package/docs/isstr.mjs.html +1 -1
  339. package/docs/isstr0.mjs.html +1 -1
  340. package/docs/istime.mjs.html +1 -1
  341. package/docs/istimeTZ.mjs.html +1 -1
  342. package/docs/istimems.mjs.html +1 -1
  343. package/docs/istimemsTZ.mjs.html +1 -1
  344. package/docs/isu16arr.mjs.html +1 -1
  345. package/docs/isu8arr.mjs.html +1 -1
  346. package/docs/isundefined.mjs.html +1 -1
  347. package/docs/j2o.mjs.html +1 -1
  348. package/docs/judge.mjs.html +1 -1
  349. package/docs/keysmat2ltdt.mjs.html +1 -1
  350. package/docs/ltdt2vrtsable.mjs.html +1 -1
  351. package/docs/ltdtDiff.mjs.html +1 -1
  352. package/docs/ltdtDiffByKey.mjs.html +1 -1
  353. package/docs/ltdtkeys2mat.mjs.html +1 -1
  354. package/docs/ltdtkeysheads2mat.mjs.html +1 -1
  355. package/docs/ltdtmapping.mjs.html +1 -1
  356. package/docs/ltdtmerge.mjs.html +1 -1
  357. package/docs/ltdtpick.mjs.html +1 -1
  358. package/docs/ltdtpull.mjs.html +1 -1
  359. package/docs/mat2ltdt.mjs.html +1 -1
  360. package/docs/matConcat.mjs.html +1 -1
  361. package/docs/matDiff.mjs.html +1 -1
  362. package/docs/matat.mjs.html +1 -1
  363. package/docs/now2str.mjs.html +1 -1
  364. package/docs/now2strp.mjs.html +1 -1
  365. package/docs/nowDay2str.mjs.html +1 -1
  366. package/docs/nowms2str.mjs.html +1 -1
  367. package/docs/nowms2strp.mjs.html +1 -1
  368. package/docs/o2j.mjs.html +1 -1
  369. package/docs/obj2b64.mjs.html +1 -1
  370. package/docs/obj2pb64.mjs.html +1 -1
  371. package/docs/obj2str.mjs.html +1 -1
  372. package/docs/obj2stru8arr.mjs.html +1 -1
  373. package/docs/obj2u8arr.mjs.html +1 -1
  374. package/docs/objSortBy.mjs.html +1 -1
  375. package/docs/objSortByKeys.mjs.html +1 -1
  376. package/docs/oo.mjs.html +1 -1
  377. package/docs/openLink.mjs.html +1 -1
  378. package/docs/pb642obj.mjs.html +1 -1
  379. package/docs/pmChain.mjs.html +1 -1
  380. package/docs/pmConvertResolve.mjs.html +1 -1
  381. package/docs/pmDebounce.mjs.html +1 -1
  382. package/docs/pmHook.mjs.html +1 -1
  383. package/docs/pmHookReject.mjs.html +1 -1
  384. package/docs/pmIni.mjs.html +1 -1
  385. package/docs/pmInvResolve.mjs.html +1 -1
  386. package/docs/pmKeyMutex.mjs.html +1 -1
  387. package/docs/pmMap.mjs.html +1 -1
  388. package/docs/pmQueue.mjs.html +1 -1
  389. package/docs/pmSeries.mjs.html +1 -1
  390. package/docs/pmThrottle.mjs.html +1 -1
  391. package/docs/pmTimeout.mjs.html +6 -4
  392. package/docs/preciseNum.mjs.html +1 -1
  393. package/docs/pseudoRandom.mjs.html +1 -1
  394. package/docs/pseudoRandomIntRange.mjs.html +1 -1
  395. package/docs/pseudoRandomIntsNdpRange.mjs.html +1 -1
  396. package/docs/pseudoRandomIntsRange.mjs.html +1 -1
  397. package/docs/pseudoRandomRange.mjs.html +1 -1
  398. package/docs/pseudoRandomsRange.mjs.html +1 -1
  399. package/docs/queue.mjs.html +1 -1
  400. package/docs/random.mjs.html +1 -1
  401. package/docs/randomIntRange.mjs.html +1 -1
  402. package/docs/randomIntsNdpRange.mjs.html +1 -1
  403. package/docs/randomIntsRange.mjs.html +1 -1
  404. package/docs/randomRange.mjs.html +1 -1
  405. package/docs/randomsRange.mjs.html +1 -1
  406. package/docs/rang.mjs.html +1 -1
  407. package/docs/rep.mjs.html +1 -1
  408. package/docs/repObj.mjs.html +1 -1
  409. package/docs/replace.mjs.html +1 -1
  410. package/docs/replaceObj.mjs.html +1 -1
  411. package/docs/replacePlus.mjs.html +1 -1
  412. package/docs/round.mjs.html +1 -1
  413. package/docs/secd.mjs.html +1 -1
  414. package/docs/sep.mjs.html +1 -1
  415. package/docs/sepInt.mjs.html +1 -1
  416. package/docs/setIntervalHp.mjs.html +1 -1
  417. package/docs/setTimeoutHp.mjs.html +1 -1
  418. package/docs/sind.mjs.html +1 -1
  419. package/docs/split.mjs.html +1 -1
  420. package/docs/str2aes.mjs.html +1 -1
  421. package/docs/str2b64.mjs.html +1 -1
  422. package/docs/str2hint.mjs.html +1 -1
  423. package/docs/str2md5.mjs.html +1 -1
  424. package/docs/str2obj.mjs.html +1 -1
  425. package/docs/str2sha.mjs.html +1 -1
  426. package/docs/str2sha512.mjs.html +1 -1
  427. package/docs/str2u8arr.mjs.html +1 -1
  428. package/docs/strCompare.mjs.html +1 -1
  429. package/docs/strDiff.mjs.html +1 -1
  430. package/docs/strDiffToHtml.mjs.html +1 -1
  431. package/docs/strFindFuzz.mjs.html +1 -1
  432. package/docs/strFindSimilar.mjs.html +1 -1
  433. package/docs/strTruncate.mjs.html +1 -1
  434. package/docs/strdelleft.mjs.html +1 -1
  435. package/docs/strdelright.mjs.html +1 -1
  436. package/docs/strleft.mjs.html +1 -1
  437. package/docs/strmid.mjs.html +1 -1
  438. package/docs/strright.mjs.html +1 -1
  439. package/docs/stru8arr2obj.mjs.html +1 -1
  440. package/docs/tand.mjs.html +1 -1
  441. package/docs/time2day.mjs.html +1 -1
  442. package/docs/time2hour.mjs.html +1 -1
  443. package/docs/time2min.mjs.html +1 -1
  444. package/docs/timeTZ2day.mjs.html +1 -1
  445. package/docs/timeTZ2expire.mjs.html +1 -1
  446. package/docs/timeTZ2hour.mjs.html +1 -1
  447. package/docs/timeTZ2min.mjs.html +1 -1
  448. package/docs/timeTZ2past.mjs.html +1 -1
  449. package/docs/timems2day.mjs.html +1 -1
  450. package/docs/timems2hour.mjs.html +1 -1
  451. package/docs/timems2min.mjs.html +1 -1
  452. package/docs/timems2time.mjs.html +1 -1
  453. package/docs/timemsTZ2day.mjs.html +1 -1
  454. package/docs/timemsTZ2expire.mjs.html +1 -1
  455. package/docs/timemsTZ2hour.mjs.html +1 -1
  456. package/docs/timemsTZ2min.mjs.html +1 -1
  457. package/docs/timemsTZ2past.mjs.html +1 -1
  458. package/docs/timemsTZ2time.mjs.html +1 -1
  459. package/docs/treeObj.mjs.html +1 -1
  460. package/docs/treeToFilepath.mjs.html +1 -1
  461. package/docs/trim.mjs.html +1 -1
  462. package/docs/u16arr2b64.mjs.html +1 -1
  463. package/docs/u16arr2u8arr.mjs.html +1 -1
  464. package/docs/u8arr2ab.mjs.html +1 -1
  465. package/docs/u8arr2b64.mjs.html +1 -1
  466. package/docs/u8arr2blob.mjs.html +1 -1
  467. package/docs/u8arr2bs.mjs.html +1 -1
  468. package/docs/u8arr2obj.mjs.html +1 -1
  469. package/docs/u8arr2str.mjs.html +1 -1
  470. package/docs/u8arr2u16arr.mjs.html +1 -1
  471. package/docs/urlParse.mjs.html +1 -1
  472. package/docs/verifyValue.mjs.html +1 -1
  473. package/docs/waitFun.mjs.html +1 -1
  474. package/docs/wsemi.html +178 -260
  475. package/examples/ex-domConvertToPic.html +0 -2
  476. package/examples/ex-xlsx.html +35 -35
  477. package/package.json +4 -3
  478. package/src/addExcelWorksheetFromData.mjs +67 -101
  479. package/src/createExcelWorkbook.mjs +27 -32
  480. package/src/domConvertToPic.mjs +1 -11
  481. package/src/domConvertToPicDyn.mjs +37 -46
  482. package/src/domShowInputAndGetFiles.mjs +20 -4
  483. package/src/downloadExcelFileFromData.mjs +108 -116
  484. package/src/downloadExcelFileFromDataDyn.mjs +49 -58
  485. package/src/getDataFromExcelFileU8Arr.mjs +222 -195
  486. package/src/getDataFromExcelFileU8ArrDyn.mjs +37 -46
  487. package/src/getExcelU8ArrFromData.mjs +80 -77
  488. package/src/getExcelU8ArrFromWorkbook.mjs +70 -79
  489. package/src/getExcelWorkbookFromData.mjs +69 -98
  490. package/src/getExcelWorkbookFromWorksheet.mjs +63 -94
  491. package/src/getExcelWorksheetFromData.mjs +80 -109
  492. package/src/pmTimeout.mjs +5 -3
  493. package/test/addExcelWorksheetFromData.test.mjs +60 -62
  494. package/test/createExcelWorkbook.test.mjs +19 -19
  495. package/test/downloadExcelFileFromData.test.mjs +53 -11
  496. package/test/downloadExcelFileFromDataDyn.test.mjs +43 -11
  497. package/test/getDataFromExcelFileU8Arr.test.mjs +46 -12
  498. package/test/getDataFromExcelFileU8ArrDyn.test.mjs +33 -11
  499. package/test/getExcelU8ArrFromData.test.mjs +76 -20
  500. package/test/getExcelU8ArrFromWorkbook.test.mjs +53 -37
  501. package/test/getExcelWorkbookFromData.test.mjs +32 -28
  502. package/test/getExcelWorkbookFromWorksheet.test.mjs +33 -31
  503. package/test/getExcelWorksheetFromData.test.mjs +59 -63
  504. package/test/pmTimeout.test.mjs +64 -12
  505. package/toolfp/dist/wsemip.umd.js +1 -1
  506. package/toolg/gDistRollup.mjs +4 -2
  507. package/toolparfor/dist/wpf.umd.js +1 -1
  508. package/toolparfor/dist/wpf_pmSeries.umd.js +1 -1
  509. package/docs/examples/ex-xlsxDyn.html +0 -137
  510. package/examples/ex-xlsxDyn.html +0 -137
  511. package/src/_getXLSX.mjs +0 -49
package/dist/wsemi.umd.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * wsemi v1.8.72
2
+ * wsemi v1.8.74
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("xlsx"),require("dayjs"),require("xss"),require("child_process"),require("path"),require("fs"),require("tree-kill"),require("url"),require("readline"),require("stream"),require("events"),require("chokidar"),require("crypto"),require("ua-parser-js"),require("html-to-text")):"function"==typeof define&&define.amd?define(["exports","xlsx","dayjs","xss","child_process","path","fs","tree-kill","url","readline","stream","events","chokidar","crypto","ua-parser-js","html-to-text"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wsemi={},e.XLSX,e.dayjs,e.filterXSS,e.child_process,e.path,e.fs,e.treeKill,e.url,e.readline,e.stream,e.events,e.chokidar,e.crypto,e.UAParser,e["html-to-text"])}(this,function(e,t,r,n,i,o,a,s,l,c,u,f,d,g,p,h){"use strict";function A(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var m=A(t),I=A(h);function y(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}function v(e){if(!y(e))return new Uint8Array;return new Uint8Array(e)}var b=Array.isArray,w="object"==typeof global&&global&&global.Object===Object&&global,B="object"==typeof self&&self&&self.Object===Object&&self,E=w||B||Function("return this")(),C=E.Symbol,x=Object.prototype,D=x.hasOwnProperty,F=x.toString,Q=C?C.toStringTag:void 0;var S=Object.prototype.toString;var k=C?C.toStringTag:void 0;function N(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":k&&k in Object(e)?function(e){var t=D.call(e,Q),r=e[Q];try{e[Q]=void 0;var n=!0}catch(e){}var i=F.call(e);return n&&(t?e[Q]=r:delete e[Q]),i}(e):function(e){return S.call(e)}(e)}function q(e){return null!=e&&"object"==typeof e}function M(e){return"symbol"==typeof e||q(e)&&"[object Symbol]"==N(e)}var H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,L=/^\w*$/;function U(e,t){if(b(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!M(e))||(L.test(e)||!H.test(e)||null!=t&&e in Object(t))}function R(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function O(e){if(!R(e))return!1;var t=N(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var T,Y=E["__core-js_shared__"],j=(T=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"";var G=Function.prototype.toString;function J(e){if(null!=e){try{return G.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var z=/^\[object .+?Constructor\]$/,V=Function.prototype,P=Object.prototype,X=V.toString,_=P.hasOwnProperty,W=RegExp("^"+X.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function K(e){return!(!R(e)||(t=e,j&&j in t))&&(O(e)?W:z).test(J(e));var t}function $(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return K(r)?r:void 0}var Z=$(Object,"create");var ee=Object.prototype.hasOwnProperty;var te=Object.prototype.hasOwnProperty;function re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ne(e,t){return e===t||e!=e&&t!=t}function ie(e,t){for(var r=e.length;r--;)if(ne(e[r][0],t))return r;return-1}re.prototype.clear=function(){this.__data__=Z?Z(null):{},this.size=0},re.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},re.prototype.get=function(e){var t=this.__data__;if(Z){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ee.call(t,e)?t[e]:void 0},re.prototype.has=function(e){var t=this.__data__;return Z?void 0!==t[e]:te.call(t,e)},re.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Z&&void 0===t?"__lodash_hash_undefined__":t,this};var oe=Array.prototype.splice;function ae(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ae.prototype.clear=function(){this.__data__=[],this.size=0},ae.prototype.delete=function(e){var t=this.__data__,r=ie(t,e);return!(r<0)&&(r==t.length-1?t.pop():oe.call(t,r,1),--this.size,!0)},ae.prototype.get=function(e){var t=this.__data__,r=ie(t,e);return r<0?void 0:t[r][1]},ae.prototype.has=function(e){return ie(this.__data__,e)>-1},ae.prototype.set=function(e,t){var r=this.__data__,n=ie(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var se=$(E,"Map");function le(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function ce(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ce.prototype.clear=function(){this.size=0,this.__data__={hash:new re,map:new(se||ae),string:new re}},ce.prototype.delete=function(e){var t=le(this,e).delete(e);return this.size-=t?1:0,t},ce.prototype.get=function(e){return le(this,e).get(e)},ce.prototype.has=function(e){return le(this,e).has(e)},ce.prototype.set=function(e,t){var r=le(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function ue(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(ue.Cache||ce),r}ue.Cache=ce;var fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,de=/\\(\\)?/g,ge=function(e){var t=ue(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(fe,function(e,r,n,i){t.push(n?i.replace(de,"$1"):r||e)}),t}),pe=ge;function he(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Ae=C?C.prototype:void 0,me=Ae?Ae.toString:void 0;function Ie(e){if("string"==typeof e)return e;if(b(e))return he(e,Ie)+"";if(M(e))return me?me.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ye(e){return null==e?"":Ie(e)}function ve(e,t){return b(e)?e:U(e,t)?[e]:pe(ye(e))}function be(e){if("string"==typeof e||M(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function we(e,t){for(var r=0,n=(t=ve(t,e)).length;null!=e&&r<n;)e=e[be(t[r++])];return r&&r==n?e:void 0}function Be(e,t,r){var n=null==e?void 0:we(e,t);return void 0===n?r:n}function Ee(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ce(e){if(Ee(e)){for(let t in e)return!0;return!1}return!1}function xe(e){return"[object Array]"===Object.prototype.toString.call(e)}function De(e){return"[object String]"===Object.prototype.toString.call(e)}function Fe(e){return!(!De(e)||""===e)}function Qe(e){return"[object Number]"===Object.prototype.toString.call(e)}function Se(e){return e!=e}function ke(e){let t=!1;if(Fe(e))t=!isNaN(Number(e));else if(Qe(e)){if(Se(e))return!1;t=!0}return t}function Ne(e,t){return!!Ee(e)&&(!(!Fe(t)&&!ke(t))&&t in e)}function qe(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var Me,He=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[Me?a:++n];if(!1===t(i[s],s,i))break}return e};function Le(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Ue(e){return q(e)&&"[object Arguments]"==N(e)}var Re=Object.prototype,Oe=Re.hasOwnProperty,Te=Re.propertyIsEnumerable,Ye=Ue(function(){return arguments}())?Ue:function(e){return q(e)&&Oe.call(e,"callee")&&!Te.call(e,"callee")},je=Ye;var Ge="object"==typeof e&&e&&!e.nodeType&&e,Je=Ge&&"object"==typeof module&&module&&!module.nodeType&&module,ze=Je&&Je.exports===Ge?E.Buffer:void 0,Ve=(ze?ze.isBuffer:void 0)||function(){return!1},Pe=/^(?:0|[1-9]\d*)$/;function Xe(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Pe.test(e))&&e>-1&&e%1==0&&e<t}function _e(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var We={};function Ke(e){return function(t){return e(t)}}We["[object Float32Array]"]=We["[object Float64Array]"]=We["[object Int8Array]"]=We["[object Int16Array]"]=We["[object Int32Array]"]=We["[object Uint8Array]"]=We["[object Uint8ClampedArray]"]=We["[object Uint16Array]"]=We["[object Uint32Array]"]=!0,We["[object Arguments]"]=We["[object Array]"]=We["[object ArrayBuffer]"]=We["[object Boolean]"]=We["[object DataView]"]=We["[object Date]"]=We["[object Error]"]=We["[object Function]"]=We["[object Map]"]=We["[object Number]"]=We["[object Object]"]=We["[object RegExp]"]=We["[object Set]"]=We["[object String]"]=We["[object WeakMap]"]=!1;var $e="object"==typeof e&&e&&!e.nodeType&&e,Ze=$e&&"object"==typeof module&&module&&!module.nodeType&&module,et=Ze&&Ze.exports===$e&&w.process,tt=function(){try{var e=Ze&&Ze.require&&Ze.require("util").types;return e||et&&et.binding&&et.binding("util")}catch(e){}}(),rt=tt&&tt.isTypedArray,nt=rt?Ke(rt):function(e){return q(e)&&_e(e.length)&&!!We[N(e)]},it=Object.prototype.hasOwnProperty;function ot(e,t){var r=b(e),n=!r&&je(e),i=!r&&!n&&Ve(e),o=!r&&!n&&!i&&nt(e),a=r||n||i||o,s=a?Le(e.length,String):[],l=s.length;for(var c in e)!t&&!it.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Xe(c,l))||s.push(c);return s}var at=Object.prototype;function st(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||at)}function lt(e,t){return function(r){return e(t(r))}}var ct=lt(Object.keys,Object),ut=Object.prototype.hasOwnProperty;function ft(e){if(!st(e))return ct(e);var t=[];for(var r in Object(e))ut.call(e,r)&&"constructor"!=r&&t.push(r);return t}function dt(e){return null!=e&&_e(e.length)&&!O(e)}function gt(e){return dt(e)?ot(e):ft(e)}var pt=function(e,t){return function(r,n){if(null==r)return r;if(!dt(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=Object(r);(t?o--:++o<i)&&!1!==n(a[o],o,a););return r}}(function(e,t){return e&&He(e,t,gt)}),ht=pt;function At(e,t){var r=!0;return ht(e,function(e,n,i){return r=!!t(e,n,i)}),r}function mt(e){var t=this.__data__=new ae(e);this.size=t.size}mt.prototype.clear=function(){this.__data__=new ae,this.size=0},mt.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},mt.prototype.get=function(e){return this.__data__.get(e)},mt.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ae){var n=r.__data__;if(!se||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ce(n)}return r.set(e,t),this.size=r.size,this};function It(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ce;++t<r;)this.add(e[t])}function yt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function vt(e,t){return e.has(t)}It.prototype.add=It.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},It.prototype.has=function(e){return this.__data__.has(e)};function bt(e,t,r,n,i,o){var a=1&r,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,g=2&r?new It:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var p=e[f],h=t[f];if(n)var A=a?n(h,p,f,t,e,o):n(p,h,f,e,t,o);if(void 0!==A){if(A)continue;d=!1;break}if(g){if(!yt(t,function(e,t){if(!vt(g,t)&&(p===e||i(p,e,r,n,o)))return g.push(t)})){d=!1;break}}else if(p!==h&&!i(p,h,r,n,o)){d=!1;break}}return o.delete(e),o.delete(t),d}var wt=E.Uint8Array;function Bt(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Et(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var Ct=C?C.prototype:void 0,xt=Ct?Ct.valueOf:void 0;function Dt(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function Ft(e,t,r){var n=t(e);return b(e)?n:Dt(n,r(e))}function Qt(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function St(){return[]}var kt=Object.prototype.propertyIsEnumerable,Nt=Object.getOwnPropertySymbols,qt=Nt?function(e){return null==e?[]:(e=Object(e),Qt(Nt(e),function(t){return kt.call(e,t)}))}:St;function Mt(e){return Ft(e,gt,qt)}var Ht=Object.prototype.hasOwnProperty;var Lt=$(E,"DataView"),Ut=$(E,"Promise"),Rt=$(E,"Set"),Ot=$(E,"WeakMap"),Tt="[object Map]",Yt="[object Promise]",jt="[object Set]",Gt="[object WeakMap]",Jt="[object DataView]",zt=J(Lt),Vt=J(se),Pt=J(Ut),Xt=J(Rt),_t=J(Ot),Wt=N;(Lt&&Wt(new Lt(new ArrayBuffer(1)))!=Jt||se&&Wt(new se)!=Tt||Ut&&Wt(Ut.resolve())!=Yt||Rt&&Wt(new Rt)!=jt||Ot&&Wt(new Ot)!=Gt)&&(Wt=function(e){var t=N(e),r="[object Object]"==t?e.constructor:void 0,n=r?J(r):"";if(n)switch(n){case zt:return Jt;case Vt:return Tt;case Pt:return Yt;case Xt:return jt;case _t:return Gt}return t});var Kt=Wt,$t="[object Arguments]",Zt="[object Array]",er="[object Object]",tr=Object.prototype.hasOwnProperty;function rr(e,t,r,n,i,o){var a=b(e),s=b(t),l=a?Zt:Kt(e),c=s?Zt:Kt(t),u=(l=l==$t?er:l)==er,f=(c=c==$t?er:c)==er,d=l==c;if(d&&Ve(e)){if(!Ve(t))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new mt),a||nt(e)?bt(e,t,r,n,i,o):function(e,t,r,n,i,o,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new wt(e),new wt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ne(+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=Bt;case"[object Set]":var l=1&n;if(s||(s=Et),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var u=bt(s(e),s(t),n,i,o,a);return a.delete(e),u;case"[object Symbol]":if(xt)return xt.call(e)==xt.call(t)}return!1}(e,t,l,r,n,i,o);if(!(1&r)){var g=u&&tr.call(e,"__wrapped__"),p=f&&tr.call(t,"__wrapped__");if(g||p){var h=g?e.value():e,A=p?t.value():t;return o||(o=new mt),i(h,A,r,n,o)}}return!!d&&(o||(o=new mt),function(e,t,r,n,i,o){var a=1&r,s=Mt(e),l=s.length;if(l!=Mt(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Ht.call(t,u)))return!1}var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var g=!0;o.set(e,t),o.set(t,e);for(var p=a;++c<l;){var h=e[u=s[c]],A=t[u];if(n)var m=a?n(A,h,u,t,e,o):n(h,A,u,e,t,o);if(!(void 0===m?h===A||i(h,A,r,n,o):m)){g=!1;break}p||(p="constructor"==u)}if(g&&!p){var I=e.constructor,y=t.constructor;I==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof I&&I instanceof I&&"function"==typeof y&&y instanceof y||(g=!1)}return o.delete(e),o.delete(t),g}(e,t,r,n,i,o))}function nr(e,t,r,n,i){return e===t||(null==e||null==t||!q(e)&&!q(t)?e!=e&&t!=t:rr(e,t,r,n,nr,i))}function ir(e){return e==e&&!R(e)}function or(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}function ar(e){var t=function(e){for(var t=gt(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,ir(i)]}return t}(e);return 1==t.length&&t[0][2]?or(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=r[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 mt;if(n)var d=n(c,u,l,e,t,f);if(!(void 0===d?nr(u,c,3,n,f):d))return!1}}return!0}(r,e,t)}}function sr(e,t){return null!=e&&t in Object(e)}function lr(e,t){return null!=e&&function(e,t,r){for(var n=-1,i=(t=ve(t,e)).length,o=!1;++n<i;){var a=be(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&_e(i)&&Xe(a,i)&&(b(e)||je(e))}(e,t,sr)}function cr(e){return e}function ur(e){return function(t){return null==t?void 0:t[e]}}function fr(e){return U(e)?ur(be(e)):function(e){return function(t){return we(t,e)}}(e)}function dr(e){return"function"==typeof e?e:null==e?cr:"object"==typeof e?b(e)?function(e,t){return U(e)&&ir(t)?or(be(e),t):function(r){var n=Be(r,e);return void 0===n&&n===t?lr(r,e):nr(t,n,3)}}(e[0],e[1]):ar(e):fr(e)}function gr(e,t,r){if(!R(r))return!1;var n=typeof t;return!!("number"==n?dt(r)&&Xe(t,r.length):"string"==n&&t in r)&&ne(r[t],e)}function pr(e,t,r){var n=b(e)?qe:At;return r&&gr(e,t,r)&&(t=void 0),n(e,dr(t))}var hr=lt(Object.getPrototypeOf,Object),Ar=Function.prototype,mr=Object.prototype,Ir=Ar.toString,yr=mr.hasOwnProperty,vr=Ir.call(Object);function br(e){if(!q(e)||"[object Object]"!=N(e))return!1;var t=hr(e);if(null===t)return!0;var r=yr.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ir.call(r)==vr}function wr(e){return q(t=e)&&1===t.nodeType&&!br(t);var t}function Br(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Er(e){return"function"==typeof e?e:cr}function Cr(e,t){return(b(e)?Br:ht)(e,Er(t))}function xr(e,t){var r=-1,n=dt(e)?Array(e.length):[];return ht(e,function(e,i,o){n[++r]=t(e,i,o)}),n}function Dr(e,t){return(b(e)?he:xr)(e,dr(t))}var Fr=C?C.isConcatSpreadable:void 0;function Qr(e){return b(e)||je(e)||!!(Fr&&e&&e[Fr])}function Sr(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=Qr),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?Sr(s,t-1,r,n,i):Dt(i,s):n||(i[i.length]=s)}return i}function kr(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function Nr(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Dt(b(r)?kr(r):[r],Sr(t,1))}function qr(e){return"[object Undefined]"===Object.prototype.toString.call(e)}function Mr(e){return"[object Null]"===Object.prototype.toString.call(e)}function Hr(e){if(Ee(e)){for(let t in e)return!1;return!0}return!1}function Lr(e){return!(!De(e)||""!==e)}function Ur(e){return!!xe(e)&&0===e.length}function Rr(e){return!!qr(e)||(!!Mr(e)||(!!Hr(e)||(!!Lr(e)||(!!Ur(e)||!!Se(e)))))}function Or(e){return!!xe(e)&&(0!==e.length&&(1!==e.length||!Rr(e[0])))}function Tr(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Yr(e){return e!=e}function jr(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):Tr(e,Yr,r)}function Gr(e,t){return!!(null==e?0:e.length)&&jr(e,t,0)>-1}function Jr(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var zr=Rt&&1/Et(new Rt([,-0]))[1]==1/0?function(e){return new Rt(e)}:function(){},Vr=zr;function Pr(e,t,r){var n=-1,i=Gr,o=e.length,a=!0,s=[],l=s;if(r)a=!1,i=Jr;else if(o>=200){var c=t?null:Vr(e);if(c)return Et(c);a=!1,i=vt,l=new It}else l=t?[]:s;e:for(;++n<o;){var u=e[n],f=t?t(u):u;if(u=r||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,r)||(l!==s&&l.push(f),s.push(u))}return s}function Xr(e){return e&&e.length?Pr(e):[]}function _r(e){if(!Or(e))return[];let t=[];return Cr(e,function(e){let r=gt(e);t=[...t,...r],t=Xr(t)}),t}var Wr=ur("length"),Kr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function $r(e){return Kr.test(e)}var Zr="\\ud800-\\udfff",en="["+Zr+"]",tn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rn="\\ud83c[\\udffb-\\udfff]",nn="[^"+Zr+"]",on="(?:\\ud83c[\\udde6-\\uddff]){2}",an="[\\ud800-\\udbff][\\udc00-\\udfff]",sn="(?:"+tn+"|"+rn+")"+"?",ln="[\\ufe0e\\ufe0f]?",cn=ln+sn+("(?:\\u200d(?:"+[nn,on,an].join("|")+")"+ln+sn+")*"),un="(?:"+[nn+tn+"?",tn,on,an,en].join("|")+")",fn=RegExp(rn+"(?="+rn+")|"+un+cn,"g");function dn(e){return $r(e)?function(e){for(var t=fn.lastIndex=0;fn.test(e);)++t;return t}(e):Wr(e)}function gn(e){if(null==e)return 0;if(dt(e))return"string"==typeof(t=e)||!b(t)&&q(t)&&"[object String]"==N(t)?dn(e):e.length;var t,r=Kt(e);return"[object Map]"==r||"[object Set]"==r?e.size:ft(e).length}function pn(e){return!0===e||!1===e||q(e)&&"[object Boolean]"==N(e)}function hn(e){return pn(e)}function An(e,t=!1){if(qr(e))return"";let r="";try{r=t?JSON.stringify(e,null,2):JSON.stringify(e)}catch(e){r=""}return r}function mn(e,t=null,r={}){if(!Or(e))return[];if(Or(t)||(t=_r(e)),0===gn(t))return[];let n=!1;if(Cr(e,function(e){Ce(e)||(n=!0)}),n)return[];let i=Be(r,"empty",""),o=[];return Cr(e,function(e){let r=Dr(t,function(t){return Ne(e,t)?hn(e[t])?e[t]?"true":"false":De(e[t])||ke(e[t])?e[t]:An(e[t]):i});o.push(r)}),o}function In(e,t=[],r={}){if(!Or(e))return[];Or(t)||(t=_r(e)),Ce(r)||(r={},Cr(t,e=>{r[e]=e}));let n=!1;return Cr(e,function(e){Ce(e)||(n=!0)}),n?[]:Nr([Dr(t,function(e){return Be(r,e)})],mn(e,t))}function yn(){return"undefined"!=typeof window&&void 0!==window.document}function vn(){return"undefined"!=typeof self?self:yn()?window:"undefined"!=typeof global?global:null}function bn(){let e=vn();if(Ce(Be(m,"utils")))return m;if(Ce(Be(m,"default.utils")))return Be(m,"default");if(Ce(Be(e,"XLSX.utils")))return Be(e,"XLSX");if(Ce(Be(e,"XLSX.default.utils")))return Be(e,"XLSX.default");if(Ce(Be(e,"xlsx.utils")))return Be(e,"xlsx");if(Ce(Be(e,"xlsx.default.utils")))return Be(e,"xlsx.default");throw console.log("XLSX",m,"g.XLSX",e.XLSX,"g.xlsx",e.xlsx),new Error("invalid XLSX, g.XLSX, g.xlsx")}function wn(e){if(!xe(e)&&!wr(e))return{error:"data is not an array or element"};let t=null;try{let r=bn().utils;if(xe(e)){pr(e,Ce)&&(e=In(e)),t=r.aoa_to_sheet(e)}else wr(e)&&(t=r.table_to_sheet(e,{raw:!0}))}catch(e){return{error:e}}return t}function Bn(e){if(!Fe(e))return!1;let t="YYYY-MM";return e===r(e,t).format(t)}var En=/\s/;var Cn=/^\s+/;function xn(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&En.test(e.charAt(t)););return t}(e)+1).replace(Cn,""):e}var Dn=/^[-+]0x[0-9a-f]+$/i,Fn=/^0b[01]+$/i,Qn=/^0o[0-7]+$/i,Sn=parseInt;function kn(e){if("number"==typeof e)return e;if(M(e))return NaN;if(R(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=R(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=xn(e);var r=Fn.test(e);return r||Qn.test(e)?Sn(e.slice(2),r?2:8):Dn.test(e)?NaN:+e}var Nn=1/0;function qn(e){return e?(e=kn(e))===Nn||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Mn(e){var t=qn(e),r=t%1;return t==t?r?t-r:t:0}function Hn(e){if(!ke(e))return 0;return qn(e)}function Ln(e){return!!ke(e)&&(e=Hn(e),"number"==typeof(t=e)&&t==Mn(t));var t}var Un="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var On={exports:{}};var Tn,Yn={exports:{}};function jn(){return Tn||(Tn=1,function(e){var t;e.exports=(t=t||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==Un&&Un.crypto&&(r=Un.crypto),!r)try{r=require("crypto")}catch(e){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),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,r){e=this.words=e||[],this.sigBytes=r!=t?r:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(n());return new l.init(t,e)}}),c=o.enc={},u=c.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(r,t/2)}},f=c.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(r,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)))}},g=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 r,n=this._data,i=n.words,o=n.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);r=i.splice(0,c),n.sigBytes-=u}return new l.init(r,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});a.Hasher=g.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new p.HMAC.init(e,r).finalize(t)}}});var p=o.algo={};return o}(Math),t)}(Yn)),Yn.exports}var Gn={exports:{}};!function(e){var t;e.exports=(t=jn(),function(){var e=t,r=e.lib.WordArray;function n(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return r.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;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<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64)}(Gn);var Jn,zn=Gn.exports,Vn=Rn(zn),Pn={exports:{}};function Xn(){return Jn||(Jn=1,function(e){var t;e.exports=(t=jn(),function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.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 r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],g=e[t+2],p=e[t+3],h=e[t+4],A=e[t+5],m=e[t+6],I=e[t+7],y=e[t+8],v=e[t+9],b=e[t+10],w=e[t+11],B=e[t+12],E=e[t+13],C=e[t+14],x=e[t+15],D=o[0],F=o[1],Q=o[2],S=o[3];D=c(D,F,Q,S,a,7,s[0]),S=c(S,D,F,Q,l,12,s[1]),Q=c(Q,S,D,F,g,17,s[2]),F=c(F,Q,S,D,p,22,s[3]),D=c(D,F,Q,S,h,7,s[4]),S=c(S,D,F,Q,A,12,s[5]),Q=c(Q,S,D,F,m,17,s[6]),F=c(F,Q,S,D,I,22,s[7]),D=c(D,F,Q,S,y,7,s[8]),S=c(S,D,F,Q,v,12,s[9]),Q=c(Q,S,D,F,b,17,s[10]),F=c(F,Q,S,D,w,22,s[11]),D=c(D,F,Q,S,B,7,s[12]),S=c(S,D,F,Q,E,12,s[13]),Q=c(Q,S,D,F,C,17,s[14]),D=u(D,F=c(F,Q,S,D,x,22,s[15]),Q,S,l,5,s[16]),S=u(S,D,F,Q,m,9,s[17]),Q=u(Q,S,D,F,w,14,s[18]),F=u(F,Q,S,D,a,20,s[19]),D=u(D,F,Q,S,A,5,s[20]),S=u(S,D,F,Q,b,9,s[21]),Q=u(Q,S,D,F,x,14,s[22]),F=u(F,Q,S,D,h,20,s[23]),D=u(D,F,Q,S,v,5,s[24]),S=u(S,D,F,Q,C,9,s[25]),Q=u(Q,S,D,F,p,14,s[26]),F=u(F,Q,S,D,y,20,s[27]),D=u(D,F,Q,S,E,5,s[28]),S=u(S,D,F,Q,g,9,s[29]),Q=u(Q,S,D,F,I,14,s[30]),D=f(D,F=u(F,Q,S,D,B,20,s[31]),Q,S,A,4,s[32]),S=f(S,D,F,Q,y,11,s[33]),Q=f(Q,S,D,F,w,16,s[34]),F=f(F,Q,S,D,C,23,s[35]),D=f(D,F,Q,S,l,4,s[36]),S=f(S,D,F,Q,h,11,s[37]),Q=f(Q,S,D,F,I,16,s[38]),F=f(F,Q,S,D,b,23,s[39]),D=f(D,F,Q,S,E,4,s[40]),S=f(S,D,F,Q,a,11,s[41]),Q=f(Q,S,D,F,p,16,s[42]),F=f(F,Q,S,D,m,23,s[43]),D=f(D,F,Q,S,v,4,s[44]),S=f(S,D,F,Q,B,11,s[45]),Q=f(Q,S,D,F,x,16,s[46]),D=d(D,F=f(F,Q,S,D,g,23,s[47]),Q,S,a,6,s[48]),S=d(S,D,F,Q,I,10,s[49]),Q=d(Q,S,D,F,C,15,s[50]),F=d(F,Q,S,D,A,21,s[51]),D=d(D,F,Q,S,B,6,s[52]),S=d(S,D,F,Q,p,10,s[53]),Q=d(Q,S,D,F,b,15,s[54]),F=d(F,Q,S,D,l,21,s[55]),D=d(D,F,Q,S,y,6,s[56]),S=d(S,D,F,Q,x,10,s[57]),Q=d(Q,S,D,F,m,15,s[58]),F=d(F,Q,S,D,E,21,s[59]),D=d(D,F,Q,S,h,6,s[60]),S=d(S,D,F,Q,w,10,s[61]),Q=d(Q,S,D,F,g,15,s[62]),F=d(F,Q,S,D,v,21,s[63]),o[0]=o[0]+D|0,o[1]=o[1]+F|0,o[2]=o[2]+Q|0,o[3]=o[3]+S|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.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,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}r.MD5=o._createHelper(l),r.HmacMD5=o._createHmacHelper(l)}(Math),t.MD5)}(Pn)),Pn.exports}var _n={exports:{}},Wn={exports:{}};!function(e){var t;e.exports=(t=jn(),function(){var e=t,r=e.lib,n=r.WordArray,i=r.Hasher,o=e.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],l=r[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=(n<<5|n>>>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=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=i._createHelper(s),e.HmacSHA1=i._createHmacHelper(s)}(),t.SHA1)}(Wn);var Kn,$n,Zn=Wn.exports,ei=Rn(Zn),ti={exports:{}};function ri(){return $n||($n=1,function(e){var t;e.exports=(t=jn(),Kn||(Kn=1,function(e){var t,r,n;e.exports=(r=(t=jn()).lib.Base,n=t.enc.Utf8,void(t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;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<r;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,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})))}(ti)),function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,o=e.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),a=i.create(),s=a.words,l=n.keySize,c=n.iterations;s.length<l;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var u=1;u<c;u++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*l,a}});e.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)}}(),t.EvpKDF)}(_n)),_n.exports}var ni,ii={exports:{}};!function(e){var t;e.exports=(t=jn(),Xn(),ri(),ni||(ni=1,function(e){var t;e.exports=(t=jn(),ri(),void(t.lib.Cipher||function(e){var r=t,n=r.lib,i=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=r.enc;s.Utf8;var l=s.Base64,c=r.algo.EvpKDF,u=n.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,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:m}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=r.mode={},d=n.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}}),g=f.CBC=function(){var t=d.extend();function r(t,r,n){var i,o=this._iv;o?(i=o,this._iv=e):i=this._prevBlock;for(var a=0;a<n;a++)t[r+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);n.decryptBlock(e,t),r.call(this,e,t,i),this._prevBlock=o}}),t}(),p=(r.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(i);var l=o.create(a,n);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:g,padding:p}),reset:function(){var e;u.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var h=n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),A=(r.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(t):t).toString(l)},parse:function(e){var t,r=l.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),h.create({ciphertext:r,salt:t})}},m=n.SerializableCipher=i.extend({cfg:i.extend({format:A}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return h.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),I=(r.kdf={}).OpenSSL={execute:function(e,t,r,n,i){if(n||(n=o.random(8)),i)a=c.create({keySize:t+r,hasher:i}).compute(e,n);else var a=c.create({keySize:t+r}).compute(e,n);var s=o.create(a.words.slice(t),4*r);return a.sigBytes=4*t,h.create({key:a,iv:s,salt:n})}},y=n.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:I}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=m.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt,n.hasher);return n.iv=i.iv,m.decrypt.call(this,e,t,i.key,n)}})}()))}(ii)),function(){var e=t,r=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],s=[],l=[],c=[],u=[],f=[],d=[],g=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var h=e[r],A=e[h],m=e[A],I=257*e[p]^16843008*p;a[r]=I<<24|I>>>8,s[r]=I<<16|I>>>16,l[r]=I<<8|I>>>24,c[r]=I,I=16843009*m^65537*A^257*h^16843008*r,u[p]=I<<24|I>>>8,f[p]=I<<16|I>>>16,d[p]=I<<8|I>>>24,g[p]=I,r?(r=h^e[e[e[m^h]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],h=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(c=o[a-1],a%r?r>6&&a%r==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/r|0]<<24),o[a]=o[a-r]^c);for(var s=this._invKeySchedule=[],l=0;l<n;l++){if(a=n-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]]^g[i[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,f,d,g,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var l=this._nRounds,c=e[t]^r[0],u=e[t+1]^r[1],f=e[t+2]^r[2],d=e[t+3]^r[3],g=4,p=1;p<l;p++){var h=n[c>>>24]^i[u>>>16&255]^o[f>>>8&255]^a[255&d]^r[g++],A=n[u>>>24]^i[f>>>16&255]^o[d>>>8&255]^a[255&c]^r[g++],m=n[f>>>24]^i[d>>>16&255]^o[c>>>8&255]^a[255&u]^r[g++],I=n[d>>>24]^i[c>>>16&255]^o[u>>>8&255]^a[255&f]^r[g++];c=h,u=A,f=m,d=I}h=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^r[g++],A=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^r[g++],m=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^r[g++],I=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[g++],e[t]=h,e[t+1]=A,e[t+2]=m,e[t+3]=I},keySize:8});e.AES=r._createHelper(h)}(),t.AES)}(On);var oi=Rn(On.exports),ai={exports:{}};!function(e){e.exports=jn().enc.Utf8}(ai);var si=Rn(ai.exports),li={exports:{}};!function(e){e.exports=jn().enc.Hex}(li);var ci=Rn(li.exports);function ui(e,t,r=!1){if(!Fe(e))return"";if(!Fe(t))return"";hn(r)||(r=!1);let n="";if(r){n=oi.decrypt(e,t).toString(si)}else{let r=ci.parse(e).toString(Vn);n=oi.decrypt(r,t).toString(si)}return n}var fi=function(){try{var e=$(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),di=fi;function gi(e,t,r){"__proto__"==t&&di?di(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var pi=Object.prototype.hasOwnProperty;function hi(e,t,r){var n=e[t];pi.call(e,t)&&ne(n,r)&&(void 0!==r||t in e)||gi(e,t,r)}function Ai(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),i?gi(r,s,l):hi(r,s,l)}return r}var mi=Object.prototype.hasOwnProperty;function Ii(e){if(!R(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=st(e),r=[];for(var n in e)("constructor"!=n||!t&&mi.call(e,n))&&r.push(n);return r}function yi(e){return dt(e)?ot(e,!0):Ii(e)}var vi="object"==typeof e&&e&&!e.nodeType&&e,bi=vi&&"object"==typeof module&&module&&!module.nodeType&&module,wi=bi&&bi.exports===vi?E.Buffer:void 0,Bi=wi?wi.allocUnsafe:void 0;function Ei(e,t){if(t)return e.slice();var r=e.length,n=Bi?Bi(r):new e.constructor(r);return e.copy(n),n}var Ci=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Dt(t,qt(e)),e=hr(e);return t}:St;function xi(e){return Ft(e,yi,Ci)}var Di=Object.prototype.hasOwnProperty;function Fi(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}var Qi=/\w*$/;var Si=C?C.prototype:void 0,ki=Si?Si.valueOf:void 0;function Ni(e,t){var r=t?Fi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function qi(e,t,r){var n,i,o,a=e.constructor;switch(t){case"[object ArrayBuffer]":return Fi(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var r=t?Fi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Ni(e,r);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,Qi.exec(i))).lastIndex=i.lastIndex,o;case"[object Symbol]":return n=e,ki?Object(ki.call(n)):{}}}var Mi=Object.create,Hi=function(){function e(){}return function(t){if(!R(t))return{};if(Mi)return Mi(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Li(e){return"function"!=typeof e.constructor||st(e)?{}:Hi(hr(e))}var Ui=tt&&tt.isMap,Ri=Ui?Ke(Ui):function(e){return q(e)&&"[object Map]"==Kt(e)};var Oi=tt&&tt.isSet,Ti=Oi?Ke(Oi):function(e){return q(e)&&"[object Set]"==Kt(e)},Yi="[object Arguments]",ji="[object Function]",Gi="[object Object]",Ji={};function zi(e,t,r,n,i,o){var a,s=1&t,l=2&t,c=4&t;if(r&&(a=i?r(e,n,i,o):r(e)),void 0!==a)return a;if(!R(e))return e;var u=b(e);if(u){if(a=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Di.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!s)return kr(e,a)}else{var f=Kt(e),d=f==ji||"[object GeneratorFunction]"==f;if(Ve(e))return Ei(e,s);if(f==Gi||f==Yi||d&&!i){if(a=l||d?{}:Li(e),!s)return l?function(e,t){return Ai(e,Ci(e),t)}(e,function(e,t){return e&&Ai(t,yi(t),e)}(a,e)):function(e,t){return Ai(e,qt(e),t)}(e,function(e,t){return e&&Ai(t,gt(t),e)}(a,e))}else{if(!Ji[f])return i?e:{};a=qi(e,f,s)}}o||(o=new mt);var g=o.get(e);if(g)return g;o.set(e,a),Ti(e)?e.forEach(function(n){a.add(zi(n,t,r,n,e,o))}):Ri(e)&&e.forEach(function(n,i){a.set(i,zi(n,t,r,i,e,o))});var p=u?void 0:(c?l?xi:Mt:l?yi:gt)(e);return Br(p||e,function(n,i){p&&(n=e[i=n]),hi(a,i,zi(n,t,r,i,e,o))}),a}Ji[Yi]=Ji["[object Array]"]=Ji["[object ArrayBuffer]"]=Ji["[object DataView]"]=Ji["[object Boolean]"]=Ji["[object Date]"]=Ji["[object Float32Array]"]=Ji["[object Float64Array]"]=Ji["[object Int8Array]"]=Ji["[object Int16Array]"]=Ji["[object Int32Array]"]=Ji["[object Map]"]=Ji["[object Number]"]=Ji[Gi]=Ji["[object RegExp]"]=Ji["[object Set]"]=Ji["[object String]"]=Ji["[object Symbol]"]=Ji["[object Uint8Array]"]=Ji["[object Uint8ClampedArray]"]=Ji["[object Uint16Array]"]=Ji["[object Uint32Array]"]=!0,Ji["[object Error]"]=Ji[ji]=Ji["[object WeakMap]"]=!1;function Vi(e){return zi(e,5)}var Pi={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new i(n,o||e,a),l=r?r+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 n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,i,o,a){var s=r?r+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,n),!0;case 4:return u.fn.call(u.context,t,n,i),!0;case 5:return u.fn.call(u.context,t,n,i,o),!0;case 6:return u.fn.call(u.context,t,n,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,g=u.length;for(c=0;c<g;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,n);break;case 4:u[c].fn.call(u[c].context,t,n,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,r){return o(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,i){var o=r?r+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||n&&s.context!==n||a(this,o);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||i&&!s[l].once||n&&s[l].context!==n)&&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=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(Pi);var Xi=Rn(Pi.exports);function _i(){return new Xi}var Wi=E.isFinite,Ki=Math.min;function $i(e){var t=Math[e];return function(e,r){if(e=kn(e),(r=null==r?0:Ki(Mn(r),292))&&Wi(e)){var n=(ye(e)+"e").split("e");return+((n=(ye(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Zi=$i("round");function eo(e){if(!ke(e))return 0;e=Hn(e);let t=Zi(e);return"0"===String(t)?0:t}function to(e){if(!Ln(e))return!1;return eo(e)>0}function ro(e,t){return function(e,t,r){for(var n=-1,i=e.length,o=t.length,a={};++n<i;){var s=n<o?t[n]:void 0;r(a,e[n],s)}return a}(e||[],t||[],hi)}function no(e,t){if(!xe(e))return[];if(!xe(t))return[];if(gn(e)!==gn(t))return[];let r=[];return Cr(e,function(n,i){let o=null,a=ke(e[i]),s=ke(t[i]);(a||s)&&(o=0),a&&(o+=Hn(e[i])),s&&(o+=Hn(t[i])),r.push(o)}),r}var io=Math.ceil,oo=Math.max;var ao=function(e){return function(t,r,n){return n&&"number"!=typeof n&&gr(t,r,n)&&(r=n=void 0),t=qn(t),void 0===r?(r=t,t=0):r=qn(r),function(e,t,r,n){for(var i=-1,o=oo(io((t-e)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=e,e+=r;return a}(t,r,n=void 0===n?t<r?1:-1:qn(n),e)}}(),so=ao;function lo(e,t){for(var r=-1,n=t.length,i=Array(n),o=null==e;++r<n;)i[r]=o?void 0:Be(e,t[r]);return i}function co(e){return(null==e?0:e.length)?Sr(e,1):[]}var uo=Math.max;function fo(e,t,r){return t=uo(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=uo(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,s)}}function go(e){return function(){return e}}var po=di?function(e,t){return di(e,"toString",{configurable:!0,enumerable:!1,value:go(t),writable:!0})}:cr,ho=po,Ao=Date.now;var mo,Io,yo,vo=(mo=ho,Io=0,yo=0,function(){var e=Ao(),t=16-(e-yo);if(yo=e,t>0){if(++Io>=800)return arguments[0]}else Io=0;return mo.apply(void 0,arguments)}),bo=vo;function wo(e){return bo(fo(e,void 0,co),e+"")}var Bo=wo(lo);function Eo(e){if(!Ln(e))return!1;return eo(e)>=0}function Co(e,t,r=null){if(!Or(e))return[];if(!Eo(t))return[];let n;if(t=eo(t),Rr(r)){if(t>=e.length)return[];n=Bo(e,t)}else{if(!Eo(r))return[];if(r=eo(r),t>=e.length||r>=e.length)return[];let i=so(t,r+1);n=Bo(e,i)}return n}var xo=Array.prototype.join;function Do(e,t){return null==e?"":xo.call(e,t)}function Fo(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}function Qo(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:Fo(e,t,r)}var So=tt&&tt.isRegExp,ko=So?Ke(So):function(e){return q(e)&&"[object RegExp]"==N(e)};var No="\\ud800-\\udfff",qo="["+No+"]",Mo="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ho="\\ud83c[\\udffb-\\udfff]",Lo="[^"+No+"]",Uo="(?:\\ud83c[\\udde6-\\uddff]){2}",Ro="[\\ud800-\\udbff][\\udc00-\\udfff]",Oo="(?:"+Mo+"|"+Ho+")"+"?",To="[\\ufe0e\\ufe0f]?",Yo=To+Oo+("(?:\\u200d(?:"+[Lo,Uo,Ro].join("|")+")"+To+Oo+")*"),jo="(?:"+[Lo+Mo+"?",Mo,Uo,Ro,qo].join("|")+")",Go=RegExp(Ho+"(?="+Ho+")|"+jo+Yo,"g");function Jo(e){return $r(e)?function(e){return e.match(Go)||[]}(e):function(e){return e.split("")}(e)}function zo(e,t,r){return r&&"number"!=typeof r&&gr(e,t,r)&&(t=r=void 0),(r=void 0===r?4294967295:r>>>0)?(e=ye(e))&&("string"==typeof t||null!=t&&!ko(t))&&!(t=Ie(t))&&$r(e)?Qo(Jo(e),0,r):e.split(t,r):[]}function Vo(e,t,r){var n=null==e?0:e.length;return n?Fo(e,0,(t=n-(t=r||void 0===t?1:Mn(t)))<0?0:t):[]}let Po=class{diff(e,t,r={}){let n;"function"==typeof r?(n=r,r={}):"callback"in r&&(n=r.callback);const i=this.castInput(e,r),o=this.castInput(t,r),a=this.removeEmpty(this.tokenize(i,r)),s=this.removeEmpty(this.tokenize(o,r));return this.diffWithOptionsObj(a,s,r,n)}diffWithOptionsObj(e,t,r,n){var i;const o=e=>(e=this.postProcess(e,r),n?void setTimeout(function(){n(e)},0):e),a=t.length,s=e.length;let l=1,c=a+s;null!=r.maxEditLength&&(c=Math.min(c,r.maxEditLength));const u=null!==(i=r.timeout)&&void 0!==i?i:1/0,f=Date.now()+u,d=[{oldPos:-1,lastComponent:void 0}];let g=this.extractCommon(d[0],t,e,0,r);if(d[0].oldPos+1>=s&&g+1>=a)return o(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,h=1/0;const A=()=>{for(let n=Math.max(p,-l);n<=Math.min(h,l);n+=2){let i;const l=d[n-1],c=d[n+1];l&&(d[n-1]=void 0);let u=!1;if(c){const e=c.oldPos-n;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,r):this.addToPath(l,!1,!0,1,r),g=this.extractCommon(i,t,e,n,r),i.oldPos+1>=s&&g+1>=a)return o(this.buildValues(i.lastComponent,t,e))||!0;d[n]=i,i.oldPos+1>=s&&(h=Math.min(h,n-1)),g+1>=a&&(p=Math.max(p,n+1))}else d[n]=void 0}l++};if(n)!function e(){setTimeout(function(){if(l>c||Date.now()>f)return n(void 0);A()||e()},0)}();else for(;l<=c&&Date.now()<=f;){const e=A();if(e)return e}}addToPath(e,t,r,n,i){const o=e.lastComponent;return o&&!i.oneChangePerToken&&o.added===t&&o.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:o.count+1,added:t,removed:r,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:o}}}extractCommon(e,t,r,n,i){const o=t.length,a=r.length;let s=e.oldPos,l=s-n,c=0;for(;l+1<o&&s+1<a&&this.equals(r[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,r){return r.comparator?r.comparator(e,t):e===t||!!r.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let r=0;r<e.length;r++)e[r]&&t.push(e[r]);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,r){const n=[];let i;for(;e;)n.push(e),i=e.previousComponent,delete e.previousComponent,e=i;n.reverse();const o=n.length;let a=0,s=0,l=0;for(;a<o;a++){const e=n[a];if(e.removed)e.value=this.join(r.slice(l,l+e.count)),l+=e.count;else{if(!e.added&&this.useLongestToken){let n=t.slice(s,s+e.count);n=n.map(function(e,t){const n=r[l+t];return n.length>e.length?n:e}),e.value=this.join(n)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(l+=e.count)}}return n}};const Xo=new class extends Po{constructor(){super(...arguments),this.tokenize=Wo}equals(e,t,r){return r.ignoreWhitespace?(r.newlineIsToken&&e.includes("\n")||(e=e.trim()),r.newlineIsToken&&t.includes("\n")||(t=t.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(e.endsWith("\n")&&(e=e.slice(0,-1)),t.endsWith("\n")&&(t=t.slice(0,-1))),super.equals(e,t,r)}};function _o(e,t,r){return Xo.diff(e,t,r)}function Wo(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));const r=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(let e=0;e<n.length;e++){const i=n[e];e%2&&!t.newlineIsToken?r[r.length-1]+=i:r.push(i)}return r}function Ko(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 r=(new TextEncoder).encode(e);let n=0;for(;n<r.length;){const e=r[n];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"),n++}return t+='"',t}const $o={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Zo(e,t,r,n,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(_o(r,n,s));{const{callback:e}=s;_o(r,n,Object.assign(Object.assign({},s),{callback:t=>{const r=c(t);e(r)}}))}function c(r){if(!r)return;function n(e){return e.map(function(e){return" "+e})}r.push({value:"",lines:[]});const a=[];let s=0,c=0,u=[],f=1,d=1;for(let e=0;e<r.length;e++){const t=r[e],i=t.lines||ra(t.value);if(t.lines=i,t.added||t.removed){if(!s){const t=r[e-1];s=f,c=d,t&&(u=l>0?n(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<r.length-2)for(const e of n(i))u.push(e);else{const e=Math.min(i.length,l);for(const t of n(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 ea(e,t){var r,n,i,o,a,s;if(t||(t=$o),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=>ea(e,t)).join("\n")}const l=[];if(e.isGit){if(t=$o,!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 "+Ko(c)+" "+Ko(u)),e.isDelete&&l.push("deleted file mode "+(null!==(r=e.oldMode)&&void 0!==r?r:"100644")),e.isCreate&&l.push("new file mode "+(null!==(n=e.newMode)&&void 0!==n?n:"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 "+Ko((null!==(i=e.oldFileName)&&void 0!==i?i:"").replace(/^a\//,""))),l.push("rename to "+Ko((null!==(o=e.newFileName)&&void 0!==o?o:"").replace(/^b\//,"")))),e.isCopy&&(l.push("copy from "+Ko((null!==(a=e.oldFileName)&&void 0!==a?a:"").replace(/^a\//,""))),l.push("copy to "+Ko((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("--- "+Ko(e.oldFileName)+(e.oldHeader?"\t"+e.oldHeader:"")),l.push("+++ "+Ko(e.newFileName)+(e.newHeader?"\t"+e.newHeader:"")));for(let t=0;t<e.hunks.length;t++){const r=e.hunks[t],n=0===r.oldLines?r.oldStart-1:r.oldStart,i=0===r.newLines?r.newStart-1:r.newStart;l.push("@@ -"+n+","+r.oldLines+" +"+i+","+r.newLines+" @@");for(const e of r.lines)l.push(e)}return l.join("\n")+"\n"}function ta(e,t,r,n,i,o,a){if("function"==typeof a&&(a={callback:a}),!(null==a?void 0:a.callback)){const s=Zo(e,t,r,n,i,o,a);if(!s)return;return ea(s,null==a?void 0:a.headerOptions)}{const{callback:s}=a;Zo(e,t,r,n,i,o,Object.assign(Object.assign({},a),{callback:e=>{s(e?ea(e,a.headerOptions):void 0)}}))}}function ra(e){const t=e.endsWith("\n"),r=e.split("\n").map(e=>e+"\n");return t?r.pop():r.push(r.pop().slice(0,-1)),r}function na(e,t,r){return e&&e.length?Fo(e,0,(t=r||void 0===t?1:Mn(t))<0?0:t):[]}function ia(e,t,r={}){if(!De(e))return{};if(!De(t))return{};if(""===e&&""===t)return{};let n=Be(r,"useNormNewline");hn(n)||(n=!0),n&&(e=(e=e.replaceAll("\r\n","\n")).replaceAll("\r","\n"),t=(t=t.replaceAll("\r\n","\n")).replaceAll("\r","\n"));let i,o=_o(e,t),a=gn(o),s=[],l=[];for(i=-1;i++,!(i>a-1);){let e=o[i],t=Be(e,"count",0),r=Be(e,"removed",!1),n=Be(e,"added",!1),a=zo(Be(e,"value",""),"\n");a=na(a,t);for(let e=1;e<=t;e++){let t=a[e-1];r||n?r&&!n?(s.push({p:"remove",v:t}),l.push({p:"empty",v:""})):!r&&n&&(s.push({p:"empty",v:""}),l.push({p:"add",v:t})):(s.push({p:"",v:t}),l.push({p:"",v:t}))}}let c=gn(s);for(i=-1;i++,!(i>c-1);){let e=Be(s,i,null),t=Be(l,i,null),r=Be(e,"p",""),n=Be(t,"p","");if("remove"===r&&"empty"===n){let e=0,t=i,r=-1;for(let t=i;t<=c-1;t++){let n=Be(s,t,null),i=Be(l,t,null),o=Be(n,"p",""),a=Be(i,"p","");if("remove"!==o||"empty"!==a)break;e++,r=t}if(e<=0)continue;let n=0,o=!1,a=-1;for(let t=i;t<=r+e;t++){let e=Be(s,t,null),r=Be(l,t,null),i=Be(e,"p",""),c=Be(r,"p","");if("empty"===i&&"add"===c)o||(a=t),o=!0,n++;else if(o)break}if(n<=0)continue;let u=Math.min(e,n);if(u>=1){for(let e=0;e<=u-1;e++){let r=t+e,n=a+e;s[r]={p:"modify",vo:Be(s,`${r}.v`,""),vn:Be(l,`${n}.v`,"")},l[r]=null,s[n]=null,l[n]=null}i+=u+1}}}let u=[];for(i=-1;i++,!(i>c-1);){let e=Be(s,i,null),t=Be(l,i,null),r=Be(e,"p",""),n=Be(t,"p",""),o=Be(e,"v",""),a=Be(t,"v","");if(null===e&&null===t)continue;let c="",f=o,d="";"modify"===r?(c="modify",f=e.vo,d=e.vn):"remove"===r&&"empty"===n?(c="remove",f=o,d=""):"empty"===r&&"add"===n&&(c="add",f=a,d=""),u.push({p:c,vo:f,vn:d})}return{diff:o,dfs:u}}let oa="\n";function aa(e,t){if(!xe(e))return{};if(!xe(t))return{};let r=Dr(e,e=>`${e}${oa}`);r=Do(r,"");let n=Dr(t,e=>`${e}${oa}`);n=Do(n,"");let i=ia(r,n,{eliminateEndLine:!0});return i.dfs=Dr(i.dfs,(e,t)=>({p:e.p,k:t,vo:e.vo,vn:e.vn})),i}function sa(e,t,r={}){if(!xe(e))return{};if(!xe(t))return{};if(0===gn(e)&&0===gn(t))return{};let n,i=Be(r,"mode","");return"array"!==i&&"matrix"!==i&&(i="array"),"array"===i?n=aa(e,t):"matrix"===i&&(n=function(e,t,r={}){if(!xe(e))return{};if(!xe(t))return{};let n=Be(r,"dls","");Fe(n)||(n="⟋");let i=Be(r,"dlq","");Fe(i)||(i="∶");let o=[];Cr(e,(t,r)=>{if(!xe(t))throw console.log("arrOld",e),console.log(r,t),new Error("arrOld is not a matrix");Cr(t,(e,t)=>{o.push(`${t}${i}${e}${n}`)}),o.push(oa)}),o=Do(o,"");let a=[];Cr(t,(e,r)=>{if(!xe(e))throw console.log("arrNew",t),console.log(r,e),new Error("arrNew is not a matrix");Cr(e,(e,t)=>{a.push(`${t}${i}${e}${n}`)}),a.push(oa)}),a=Do(a,"");let s=ia(o,a,{...r,eliminateEndLine:!0}),l=[];return Cr(s.dfs,e=>{let t=zo(e.vo,n);if(t=Vo(t,1),"modify"===e.p){let r=zo(e.vn,n);r=Vo(r,1);let i=aa(t,r);e.dfs=i.dfs}let r=[];"modify"===e.p?Cr(e.dfs,e=>{r.push(e)}):Cr(t,t=>{r.push({p:e.p,vo:t,vn:""})}),r=Dr(r,(e,t)=>{let r=Be(zo(e.vo,i),1,""),n=Be(zo(e.vn,i),1,"");return{p:e.p,k:t,vo:r,vn:n}}),l.push(r)}),{diff:s.diff,dfs:l}}(e,t,r)),n}function la(e,t,r){if((e=ye(e))&&(r||void 0===t))return xn(e);if(!e||!(t=Ie(t)))return e;var n=Jo(e),i=Jo(t),o=function(e,t){for(var r=-1,n=e.length;++r<n&&jr(t,e[r],0)>-1;);return r}(n,i),a=function(e,t){for(var r=e.length;r--&&jr(t,e[r],0)>-1;);return r}(n,i)+1;return Qo(n,o,a).join("")}function ca(e,t){if(!Fe(e))return[];if(!Fe(t))return[];return e.split(t)}function ua(e,t){if(!Fe(e))return[];if(!Fe(t))return[];let r=ca(e,t);r=Dr(r,la);let n=[];return Cr(r,function(e){Fe(e)&&n.push(e)}),n}function fa(e,t){return Fe(e)&&Eo(t)?0===(t=eo(t))?"":e.substring(0,t):""}function da(e,t){if(!Fe(e))return"";if(!Eo(t))return"";if(0===(t=eo(t)))return"";let r=e.length-t;return r<0&&(r=0),e.substring(r,r+t)}function ga(e,t){return Fe(e)&&Eo(t)?0===(t=eo(t))?e:da(e,e.length-t):""}function pa(e,t){var r=[];return ht(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function ha(e,t){return(b(e)?Qt:pa)(e,dr(t))}function Aa(e){if(!ke(e))return!1;return Hn(e)>0}function ma(e){return Or(e)?e=Dr(e=ha(e=Vi(e),Aa),Hn):[]}function Ia(e,t){return nr(e,t)}function ya(e){return"number"==typeof e||q(e)&&"[object Number]"==N(e)}function va(e,t){function r(e){return xe(e)?e:[e]}if(Rr(e))return!1;if(0===(e=r(e)).length)return!1;if(Rr(e))return!1;if(0===(t=r(t)).length)return!1;for(let r=0;r<e.length;r++)for(let n=0;n<t.length;n++)if(Ia(e[r],t[n]))return!0;return!1}function ba(e){let t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}function wa(e,t,r={}){if(!Or(e))return null;if(!ba(t))return null;let n=Be(r,"returnIndex");hn(n)||(n=!1);let i=-1,o=null;for(let r=0;r<gn(e);r++){let n=t(o,e[r]);Ia(o,n)||(o=n,i=r)}let a=null;return a=n?i:o,a}function Ba(e,t){if(!xe(e))return[];if(!xe(t))return[];if(gn(e)!==gn(t))return[];let r=[];return Cr(e,function(n,i){let o=null,a=ke(e[i]),s=ke(t[i]);(a||s)&&(o=1),a&&(o*=Hn(e[i])),s&&(o*=Hn(t[i])),r.push(o)}),r}function Ea(){if(gn(arguments)<2)return[];let e=arguments[0];for(let t=1;t<gn(arguments);t++){e=Ba(e,arguments[t])}return e}function Ca(e,t){for(var r,n=-1,i=e.length;++n<i;){var o=t(e[n]);void 0!==o&&(r=void 0===r?o:r+o)}return r}function xa(){if(gn(arguments)<2)return null;let e=Ea(...arguments);return 0===gn(e)?null:(e=(t=e)&&t.length?Ca(t,cr):0,e);var t}function Da(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return-1}var Fa=Array.prototype.splice;function Qa(e,t){return e&&e.length&&t&&t.length?function(e,t,r,n){var i=n?Da:jr,o=-1,a=t.length,s=e;for(e===t&&(t=kr(t)),r&&(s=he(e,Ke(r)));++o<a;)for(var l=0,c=t[o],u=r?r(c):c;(l=i(s,u,l,n))>-1;)s!==e&&Fa.call(s,l,1),Fa.call(e,l,1);return e}(e,t):e}function Sa(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var ka=Object.prototype.hasOwnProperty;function Na(e,t){var r=-1,n=(t=ve(t,e)).length;if(!n)return!0;for(;++r<n;){var i=be(t[r]);if("__proto__"===i&&!ka.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&r<n-1)return!1}var o=function(e,t){return t.length<2?e:we(e,Fo(t,0,-1))}(e,t);return null==o||delete o[be(Sa(t))]}var qa=Array.prototype.splice;function Ma(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=e==e,o=M(e),a=void 0!==t,s=null===t,l=t==t,c=M(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||n&&a&&l||!r&&l||!i)return 1;if(!n&&!o&&!c&&e<t||c&&r&&i&&!n&&!o||s&&r&&i||!a&&i||!l)return-1}return 0}var Ha=wo(function(e,t){var r=null==e?0:e.length,n=lo(e,t);return function(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;Xe(i)?qa.call(e,i,1):Na(e,i)}}}(e,he(t,function(e){return Xe(e,r)?+e:e}).sort(Ma)),n});var La=Array.prototype.reverse;function Ua(e){return null==e?e:La.call(e)}function Ra(e,t,r){t=t.length?he(t,function(e){return b(e)?function(t){return we(t,1===e.length?e[0]:e)}:e}):[cr];var n=-1;return t=he(t,Ke(dr)),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(xr(e,function(e,r,i){return{criteria:he(t,function(t){return t(e)}),index:++n,value:e}}),function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;++n<a;){var l=Ma(i[n],o[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)})}function Oa(e,t){return bo(fo(e,t,cr),e+"")}var Ta=Oa(function(e,t){if(null==e)return[];var r=t.length;return r>1&&gr(e,t[0],t[1])?t=[]:r>2&&gr(t[0],t[1],t[2])&&(t=[t[0]]),Ra(e,Sr(t,1),[])});function Ya(e){return"[object BigInt]"===Object.prototype.toString.call(e)}function ja(e){if(!(Fe(e)||ke(e)||M(e)||Ya(e)))return"";let t="";try{t=String(e)}catch(e){}try{t=e.toString()}catch(e){}return t}function Ga(e,t,r){var n=null==e?0:e.length;return n?Fo(e,(t=r||void 0===t?1:Mn(t))<0?0:t,n):[]}function Ja(e,t){return Fe(e)&&Eo(t)?0===(t=eo(t))?e:fa(e,e.length-t):""}function za(e,t={}){let r=Be(t,"excludeString");if(hn(r)||(r=!1),!Fe(e))return"";let n=e=>e>="0"&&e<="9"||"."===e||"-"===e||"+"===e,i=la(e);if(r){let e=i.split("");for(let t=0;t<e.length;t++)if(n(e[t])){i=ga(i,t),e=Ga(e,t);break}e=Ua(e);for(let t=0;t<e.length;t++)if(n(e[t])){i=Ja(i,t);break}}return i}function Va(e){let t=0,r=0,n=0,i=gn(e);Cr(e,e=>{ke(e)?t+=1:De(e)?r+=1:Ee(e)&&(n+=1)});let o="";return t===i?o="num":r===i?o="str":n===i?o="obj":t+r===i?o="str":console.log("eles in array are non-homogeneous",e),o}function Pa(e,t,r={}){let n=[];if("num"!==t&&"str"!==t&&"files"!==t)throw new Error(`invalid type[${t}]`);if("num"===t)n=Dr(e,(e,t)=>({key:t,payload:e,value:Hn(e)}));else if("files"===t)n=Dr(e,(e,t)=>({key:t,payload:e,value:ja(e)}));else if("str"===t){let t=Dr(e,e=>za(e,{excludeString:!0})),r=0;Cr(t,e=>{ke(e)&&r++});let i=r===gn(t);n=Dr(e,(e,r)=>{let n=e;return i?(n=t[r],n=Hn(n)):n=ja(n),{key:r,payload:e,value:n}})}return n}function Xa(e,t){let r=Ta(e,"value");return Dr(r,t?"key":"payload")}function _a(e,t){let r=function(e,t){let r=Vi(e);return r.sort((e,r)=>e[t].localeCompare(r[t],"standard",{numeric:!0})),r}(e,"value");return Dr(r,t?"key":"payload")}function Wa(e,t={}){if(!Or(e))return[];if(1===gn(e))return e;let r=Be(t,"localeCompare");hn(r)||(r=!1);let n=Be(t,"returnIndex");hn(n)||(n=!1);let i=Be(t,"compareKey",null),o=null;o=r?_a:Xa;let a,s=Va(e);if(""===s)return[];if("obj"===s){if(!Fe(i))return[];let s=Dr(e,(e,t)=>Be(e,i,"")),l=Va(s);if("num"!==l&&"str"!==l)return[];{r&&(l="files");let i=o(Pa(s,l,t),!0);a=n?i:Dr(i,t=>e[t])}}else if("num"===s||"str"===s){r&&(s="files"),a=o(Pa(e,s,t),n)}return a}function Ka(e){if(!Fe(e))return"";return Vn.parse(e).toString(si)}function $a(e){if(!Fe(e))return{};let t={};try{t=JSON.parse(e)}catch(e){t={}}return t}function Za(e){if(!De(e))return new Uint8Array;let t=Vn.parse(e),r=t.words,n=t.sigBytes,i=new Uint8Array(n);for(let e=0;e<n;e++){let t=r[e>>>2]>>>24-e%4*8&255;i[e]=t}return i}function es(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function ts(e){return es(e)?new Uint16Array(e):new Uint16Array}function rs(e){if(!De(e))return new Uint16Array;return ts(Za(e))}function ns(e,t,r="anyone"){if(!Fe(e))return!1;if("anyone"!==r&&"all"!==r)return!1;if(De(t)){if(!Fe(t))return!1;t=[t]}if(!Or(t))return!1;let n=!1;if(Cr(t,function(e){Fe(e)||(n=!0)}),n)return!1;let i=0;return Cr(t,function(t){-1!==function(e,t){return e.indexOf(t)}(e,t)&&i++}),"anyone"===r?i>0:"all"===r&&i===t.length}function is(){let e,t,r=new Promise(function(){e=arguments[0],t=arguments[1]});return r.resolve=e,r.reject=t,r}function os(e){if(!yn())return Promise.reject("no window");try{return function(e){return e.arrayBuffer()}(e)}catch(t){return function(e){let t=is(),r=new FileReader;return r.onload=function(){let e=r.result;t.resolve(e)},r.onerror=function(e){t.reject(e)},r.readAsArrayBuffer(e),t}(e)}}function as(e){let t=is(),r=new FileReader;r.onload=function(){t.resolve(r.result)},r.onerror=function(e){t.reject(e)};try{r.readAsDataURL(e)}catch(e){t.reject("cancel")}return t}function ss(e){let t=is();return os(e).then(e=>{let r=new Uint8Array(e);t.resolve(r)}).catch(e=>{t.reject(e)}),t}function ls(e){let t=Dr(e,function(e){return as(e)});return Promise.all(t)}function cs(e){let t=Dr(e,function(e){return ss(e)});return Promise.all(t)}var us={exports:{}};
7
- /*! https://mths.be/he v1.2.0 by @mathias | MIT license */!function(e,t){!function(r){var n=t,i=e&&e.exports==n&&e,o="object"==typeof Un&&Un;o.global!==o&&o.window!==o||(r=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;"},g=/&#(?:[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]/,h=/&(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,A={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:"‌"},m={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:"ÿ"},I={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:"Ÿ"},y=[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],v=String.fromCharCode,b={}.hasOwnProperty,w=function(e,t){return b.call(e,t)},B=function(e,t){if(!e)return t;var r,n={};for(r in t)n[r]=w(e,r)?e[r]:t[r];return n},E=function(e,t){var r="";return e>=55296&&e<=57343||e>1114111?(t&&D("character reference outside the permissible Unicode range"),"�"):w(I,e)?(t&&D("disallowed character reference"),I[e]):(t&&function(e,t){for(var r=-1,n=e.length;++r<n;)if(e[r]==t)return!0;return!1}(y,e)&&D("disallowed character reference"),e>65535&&(r+=v((e-=65536)>>>10&1023|55296),e=56320|1023&e),r+=v(e))},C=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},x=function(e){return"&#"+e+";"},D=function(e){throw Error("Parse error: "+e)},F=function(e,t){(t=B(t,F.options)).strict&&p.test(e)&&D("forbidden code point");var r=t.encodeEverything,n=t.useNamedReferences,i=t.allowUnsafeSymbols,o=t.decimal?x:C,d=function(e){return o(e.charCodeAt(0))};return r?(e=e.replace(s,function(e){return n&&w(u,e)?"&"+u[e]+";":d(e)}),n&&(e=e.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),n&&(e=e.replace(c,function(e){return"&"+u[e]+";"}))):n?(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),r=e.charCodeAt(1);return o(1024*(t-55296)+r-56320+65536)}).replace(l,d)};F.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var Q=function(e,t){var r=(t=B(t,Q.options)).strict;return r&&g.test(e)&&D("malformed character reference"),e.replace(h,function(e,n,i,o,a,s,l,c,u){var f,d,g,p,h,I;return n?A[h=n]:i?(h=i,(I=o)&&t.isAttributeValue?(r&&"="==I&&D("`&` did not start a character reference"),e):(r&&D("named character reference was not terminated by a semicolon"),m[h]+(I||""))):a?(g=a,d=s,r&&!d&&D("character reference was not terminated by a semicolon"),f=parseInt(g,10),E(f,r)):l?(p=l,d=c,r&&!d&&D("character reference was not terminated by a semicolon"),f=parseInt(p,16),E(f,r)):(r&&D("named character reference was not terminated by a semicolon"),e)})};Q.options={isAttributeValue:!1,strict:!1};var S={version:"1.2.0",encode:F,decode:Q,escape:function(e){return e.replace(f,function(e){return d[e]})},unescape:Q};if(n&&!n.nodeType)if(i)i.exports=S;else for(var k in S)w(S,k)&&(n[k]=S[k]);else r.he=S}(Un)}(us,us.exports);var fs=Rn(us.exports);function ds(e,t={}){if(!Fe(e))return"";return fs.encode(e,t)}function gs(e,t){let r=new Blob([e],{type:t});try{let e=window.URL.createObjectURL(r);window.open(e)}catch(e){console.log("window.URL.createObjectURL is not support for IE11",e)}}function ps(e){return"[object Blob]"===Object.prototype.toString.call(e)}function hs(e){if(!Fe(e))return new Uint8Array;let t=e.length,r=new Uint8Array(t);for(let n=0;n<t;n++)r[n]=e.charCodeAt(n);return r}function As(e,t,r,n,i){if(!es(e))return null;if(!Ln(t))return null;if(!hn(r))return null;if(!Ln(n))return null;if(!Ln(i))return null;let o,a,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,f=r?0:i-1,d=r?1:-1,g=e[t+f];for(f+=d,o=g&(1<<-u)-1,g>>=-u,u+=s;u>0;o=256*o+e[t+f],f+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;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*(g?-1:1);a+=Math.pow(2,n),o-=c}return(g?-1:1)*a*Math.pow(2,o-n)}function ms(e,t=0,r=!0,n=52,i=8){return As(e,t,r,n,i)}function Is(e,t,r,n,i,o){if(!ke(e))return null;if(!es(t))return null;if(!Ln(r))return null;if(!hn(n))return null;if(!Ln(i))return null;if(!Ln(o))return null;let a,s,l;e=Hn(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,g=n?o-1:0,p=n?-1:1,h=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[r+g]=255&s,g+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[r+g]=255&a,g+=p,a/=256,c-=8);return t[r+g-p]|=128*h,null}function ys(e,t,r=0,n=!0,i=52,o=8){return Is(e,t,r,n,i,o)}function vs(e){let t,r=Object.prototype.toString.call(e);if(t="[object Promise]"===r,t)return!0;if("[object Function]"!==r)return!1;try{t="function"!=typeof e.subscribe&&"function"==typeof e.then}catch(e){}return t}async function bs(e,t={}){let r=null,n=is();if(!ba(e))return n.reject("waitfunction需輸入函數f"),n;let i=async()=>{let t=e();return vs(t)&&(t=await t),t};if(r=await i(),!0===r)return n.resolve(),n;let o=Be(t,"attemptNum",null);to(o)||(o=200);let a=Be(t,"timeInterval",null);to(a)||(a=1e3);let s=0,l=setInterval(async()=>{s+=1,r=await i(),!0===r&&(clearInterval(l),n.resolve()),s>o&&(clearInterval(l),n.reject(`exceeded attemptNum[${o}]`))},a);return n}function ws(e=10){ke(e)||(e=10);let t=is();return setTimeout(function(){t.resolve()},e),t}function Bs(e){return ye(e).toLowerCase()}
6
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("dayjs"),require("xss"),require("child_process"),require("path"),require("fs"),require("tree-kill"),require("url"),require("readline"),require("stream"),require("events"),require("chokidar"),require("crypto"),require("ua-parser-js"),require("html-to-text")):"function"==typeof define&&define.amd?define(["exports","dayjs","xss","child_process","path","fs","tree-kill","url","readline","stream","events","chokidar","crypto","ua-parser-js","html-to-text"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wsemi={},e.dayjs,e.filterXSS,e.child_process,e.path,e.fs,e.treeKill,e.url,e.readline,e.stream,e.events,e.chokidar,e.crypto,e.UAParser,e["html-to-text"])}(this,function(e,t,n,r,o,i,s,a,c,l,u,f,d,h,p){"use strict";function g(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 m=g(p);function A(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}function y(e){if(!A(e))return new Uint8Array;return new Uint8Array(e)}var v=Array.isArray,b="object"==typeof global&&global&&global.Object===Object&&global,I="object"==typeof self&&self&&self.Object===Object&&self,w=b||I||Function("return this")(),x=w.Symbol,C=Object.prototype,B=C.hasOwnProperty,E=C.toString,F=x?x.toStringTag:void 0;var k=Object.prototype.toString;var S=x?x.toStringTag:void 0;function D(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?function(e){var t=B.call(e,F),n=e[F];try{e[F]=void 0;var r=!0}catch(e){}var o=E.call(e);return r&&(t?e[F]=n:delete e[F]),o}(e):function(e){return k.call(e)}(e)}function N(e){return null!=e&&"object"==typeof e}function Q(e){return"symbol"==typeof e||N(e)&&"[object Symbol]"==D(e)}var M=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T=/^\w*$/;function L(e,t){if(v(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Q(e))||(T.test(e)||!M.test(e)||null!=t&&e in Object(t))}function U(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function R(e){if(!U(e))return!1;var t=D(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var H,q=w["__core-js_shared__"],O=(H=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"";var P=Function.prototype.toString;function z(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var j=/^\[object .+?Constructor\]$/,$=Function.prototype,Y=Object.prototype,G=$.toString,V=Y.hasOwnProperty,J=RegExp("^"+G.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function W(e){return!(!U(e)||(t=e,O&&O in t))&&(R(e)?J:j).test(z(e));var t}function _(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return W(n)?n:void 0}var X=_(Object,"create");var K=Object.prototype.hasOwnProperty;var Z=Object.prototype.hasOwnProperty;function ee(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 te(e,t){return e===t||e!=e&&t!=t}function ne(e,t){for(var n=e.length;n--;)if(te(e[n][0],t))return n;return-1}ee.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},ee.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ee.prototype.get=function(e){var t=this.__data__;if(X){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return K.call(t,e)?t[e]:void 0},ee.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:Z.call(t,e)},ee.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=X&&void 0===t?"__lodash_hash_undefined__":t,this};var re=Array.prototype.splice;function oe(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])}}oe.prototype.clear=function(){this.__data__=[],this.size=0},oe.prototype.delete=function(e){var t=this.__data__,n=ne(t,e);return!(n<0)&&(n==t.length-1?t.pop():re.call(t,n,1),--this.size,!0)},oe.prototype.get=function(e){var t=this.__data__,n=ne(t,e);return n<0?void 0:t[n][1]},oe.prototype.has=function(e){return ne(this.__data__,e)>-1},oe.prototype.set=function(e,t){var n=this.__data__,r=ne(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var ie=_(w,"Map");function se(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.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 ee,map:new(ie||oe),string:new ee}},ae.prototype.delete=function(e){var t=se(this,e).delete(e);return this.size-=t?1:0,t},ae.prototype.get=function(e){return se(this,e).get(e)},ae.prototype.has=function(e){return se(this,e).has(e)},ae.prototype.set=function(e,t){var n=se(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function ce(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(ce.Cache||ae),n}ce.Cache=ae;var le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ue=/\\(\\)?/g,fe=function(e){var t=ce(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,o){t.push(r?o.replace(ue,"$1"):n||e)}),t}),de=fe;function he(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var pe=x?x.prototype:void 0,ge=pe?pe.toString:void 0;function me(e){if("string"==typeof e)return e;if(v(e))return he(e,me)+"";if(Q(e))return ge?ge.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ae(e){return null==e?"":me(e)}function ye(e,t){return v(e)?e:L(e,t)?[e]:de(Ae(e))}function ve(e){if("string"==typeof e||Q(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function be(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 Ie(e,t,n){var r=null==e?void 0:be(e,t);return void 0===r?n:r}function we(e){return"[object Array]"===Object.prototype.toString.call(e)}function xe(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ce(e){if(xe(e)){for(let t in e)return!0;return!1}return!1}function Be(e){return"[object String]"===Object.prototype.toString.call(e)}function Ee(e){return!(!Be(e)||""===e)}function Fe(e){return"[object Number]"===Object.prototype.toString.call(e)}function ke(e){return e!=e}function Se(e){let t=!1;if(Ee(e))t=!isNaN(Number(e));else if(Fe(e)){if(ke(e))return!1;t=!0}return t}function De(e,t){return!!xe(e)&&(!(!Ee(t)&&!Se(t))&&t in e)}function Ne(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 Qe,Me=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),s=i.length;s--;){var a=i[Qe?s:++r];if(!1===t(o[a],a,o))break}return e};function Te(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Le(e){return N(e)&&"[object Arguments]"==D(e)}var Ue=Object.prototype,Re=Ue.hasOwnProperty,He=Ue.propertyIsEnumerable,qe=Le(function(){return arguments}())?Le:function(e){return N(e)&&Re.call(e,"callee")&&!He.call(e,"callee")},Oe=qe;var Pe="object"==typeof e&&e&&!e.nodeType&&e,ze=Pe&&"object"==typeof module&&module&&!module.nodeType&&module,je=ze&&ze.exports===Pe?w.Buffer:void 0,$e=(je?je.isBuffer:void 0)||function(){return!1},Ye=/^(?:0|[1-9]\d*)$/;function Ge(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ye.test(e))&&e>-1&&e%1==0&&e<t}function Ve(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}var Je={};function We(e){return function(t){return e(t)}}Je["[object Float32Array]"]=Je["[object Float64Array]"]=Je["[object Int8Array]"]=Je["[object Int16Array]"]=Je["[object Int32Array]"]=Je["[object Uint8Array]"]=Je["[object Uint8ClampedArray]"]=Je["[object Uint16Array]"]=Je["[object Uint32Array]"]=!0,Je["[object Arguments]"]=Je["[object Array]"]=Je["[object ArrayBuffer]"]=Je["[object Boolean]"]=Je["[object DataView]"]=Je["[object Date]"]=Je["[object Error]"]=Je["[object Function]"]=Je["[object Map]"]=Je["[object Number]"]=Je["[object Object]"]=Je["[object RegExp]"]=Je["[object Set]"]=Je["[object String]"]=Je["[object WeakMap]"]=!1;var _e="object"==typeof e&&e&&!e.nodeType&&e,Xe=_e&&"object"==typeof module&&module&&!module.nodeType&&module,Ke=Xe&&Xe.exports===_e&&b.process,Ze=function(){try{var e=Xe&&Xe.require&&Xe.require("util").types;return e||Ke&&Ke.binding&&Ke.binding("util")}catch(e){}}(),et=Ze&&Ze.isTypedArray,tt=et?We(et):function(e){return N(e)&&Ve(e.length)&&!!Je[D(e)]},nt=Object.prototype.hasOwnProperty;function rt(e,t){var n=v(e),r=!n&&Oe(e),o=!n&&!r&&$e(e),i=!n&&!r&&!o&&tt(e),s=n||r||o||i,a=s?Te(e.length,String):[],c=a.length;for(var l in e)!t&&!nt.call(e,l)||s&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ge(l,c))||a.push(l);return a}var ot=Object.prototype;function it(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ot)}function st(e,t){return function(n){return e(t(n))}}var at=st(Object.keys,Object),ct=Object.prototype.hasOwnProperty;function lt(e){if(!it(e))return at(e);var t=[];for(var n in Object(e))ct.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ut(e){return null!=e&&Ve(e.length)&&!R(e)}function ft(e){return ut(e)?rt(e):lt(e)}var dt=function(e,t){return function(n,r){if(null==n)return n;if(!ut(n))return e(n,r);for(var o=n.length,i=t?o:-1,s=Object(n);(t?i--:++i<o)&&!1!==r(s[i],i,s););return n}}(function(e,t){return e&&Me(e,t,ft)}),ht=dt;function pt(e,t){var n=!0;return ht(e,function(e,r,o){return n=!!t(e,r,o)}),n}function gt(e){var t=this.__data__=new oe(e);this.size=t.size}gt.prototype.clear=function(){this.__data__=new oe,this.size=0},gt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},gt.prototype.get=function(e){return this.__data__.get(e)},gt.prototype.has=function(e){return this.__data__.has(e)},gt.prototype.set=function(e,t){var n=this.__data__;if(n instanceof oe){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 mt(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ae;++t<n;)this.add(e[t])}function At(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 yt(e,t){return e.has(t)}mt.prototype.add=mt.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},mt.prototype.has=function(e){return this.__data__.has(e)};function vt(e,t,n,r,o,i){var s=1&n,a=e.length,c=t.length;if(a!=c&&!(s&&c>a))return!1;var l=i.get(e),u=i.get(t);if(l&&u)return l==t&&u==e;var f=-1,d=!0,h=2&n?new mt:void 0;for(i.set(e,t),i.set(t,e);++f<a;){var p=e[f],g=t[f];if(r)var m=s?r(g,p,f,t,e,i):r(p,g,f,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!At(t,function(e,t){if(!yt(h,t)&&(p===e||o(p,e,n,r,i)))return h.push(t)})){d=!1;break}}else if(p!==g&&!o(p,g,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}var bt=w.Uint8Array;function It(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function wt(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var xt=x?x.prototype:void 0,Ct=xt?xt.valueOf:void 0;function Bt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Et(e,t,n){var r=t(e);return v(e)?r:Bt(r,n(e))}function Ft(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function kt(){return[]}var St=Object.prototype.propertyIsEnumerable,Dt=Object.getOwnPropertySymbols,Nt=Dt?function(e){return null==e?[]:(e=Object(e),Ft(Dt(e),function(t){return St.call(e,t)}))}:kt;function Qt(e){return Et(e,ft,Nt)}var Mt=Object.prototype.hasOwnProperty;var Tt=_(w,"DataView"),Lt=_(w,"Promise"),Ut=_(w,"Set"),Rt=_(w,"WeakMap"),Ht="[object Map]",qt="[object Promise]",Ot="[object Set]",Pt="[object WeakMap]",zt="[object DataView]",jt=z(Tt),$t=z(ie),Yt=z(Lt),Gt=z(Ut),Vt=z(Rt),Jt=D;(Tt&&Jt(new Tt(new ArrayBuffer(1)))!=zt||ie&&Jt(new ie)!=Ht||Lt&&Jt(Lt.resolve())!=qt||Ut&&Jt(new Ut)!=Ot||Rt&&Jt(new Rt)!=Pt)&&(Jt=function(e){var t=D(e),n="[object Object]"==t?e.constructor:void 0,r=n?z(n):"";if(r)switch(r){case jt:return zt;case $t:return Ht;case Yt:return qt;case Gt:return Ot;case Vt:return Pt}return t});var Wt=Jt,_t="[object Arguments]",Xt="[object Array]",Kt="[object Object]",Zt=Object.prototype.hasOwnProperty;function en(e,t,n,r,o,i){var s=v(e),a=v(t),c=s?Xt:Wt(e),l=a?Xt:Wt(t),u=(c=c==_t?Kt:c)==Kt,f=(l=l==_t?Kt:l)==Kt,d=c==l;if(d&&$e(e)){if(!$e(t))return!1;s=!0,u=!1}if(d&&!u)return i||(i=new gt),s||tt(e)?vt(e,t,n,r,o,i):function(e,t,n,r,o,i,s){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||!i(new bt(e),new bt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return te(+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 a=It;case"[object Set]":var c=1&r;if(a||(a=wt),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;r|=2,s.set(e,t);var u=vt(a(e),a(t),r,o,i,s);return s.delete(e),u;case"[object Symbol]":if(Ct)return Ct.call(e)==Ct.call(t)}return!1}(e,t,c,n,r,o,i);if(!(1&n)){var h=u&&Zt.call(e,"__wrapped__"),p=f&&Zt.call(t,"__wrapped__");if(h||p){var g=h?e.value():e,m=p?t.value():t;return i||(i=new gt),o(g,m,n,r,i)}}return!!d&&(i||(i=new gt),function(e,t,n,r,o,i){var s=1&n,a=Qt(e),c=a.length;if(c!=Qt(t).length&&!s)return!1;for(var l=c;l--;){var u=a[l];if(!(s?u in t:Mt.call(t,u)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var h=!0;i.set(e,t),i.set(t,e);for(var p=s;++l<c;){var g=e[u=a[l]],m=t[u];if(r)var A=s?r(m,g,u,t,e,i):r(g,m,u,e,t,i);if(!(void 0===A?g===m||o(g,m,n,r,i):A)){h=!1;break}p||(p="constructor"==u)}if(h&&!p){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,r,o,i))}function tn(e,t,n,r,o){return e===t||(null==e||null==t||!N(e)&&!N(t)?e!=e&&t!=t:en(e,t,n,r,tn,o))}function nn(e){return e==e&&!U(e)}function rn(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function on(e){var t=function(e){for(var t=ft(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,nn(o)]}return t}(e);return 1==t.length&&t[0][2]?rn(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,i=o,s=!r;if(null==e)return!i;for(e=Object(e);o--;){var a=n[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){var c=(a=n[o])[0],l=e[c],u=a[1];if(s&&a[2]){if(void 0===l&&!(c in e))return!1}else{var f=new gt;if(r)var d=r(l,u,c,e,t,f);if(!(void 0===d?tn(u,l,3,r,f):d))return!1}}return!0}(n,e,t)}}function sn(e,t){return null!=e&&t in Object(e)}function an(e,t){return null!=e&&function(e,t,n){for(var r=-1,o=(t=ye(t,e)).length,i=!1;++r<o;){var s=ve(t[r]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ve(o)&&Ge(s,o)&&(v(e)||Oe(e))}(e,t,sn)}function cn(e){return e}function ln(e){return function(t){return null==t?void 0:t[e]}}function un(e){return L(e)?ln(ve(e)):function(e){return function(t){return be(t,e)}}(e)}function fn(e){return"function"==typeof e?e:null==e?cn:"object"==typeof e?v(e)?function(e,t){return L(e)&&nn(t)?rn(ve(e),t):function(n){var r=Ie(n,e);return void 0===r&&r===t?an(n,e):tn(t,r,3)}}(e[0],e[1]):on(e):un(e)}function dn(e,t,n){if(!U(n))return!1;var r=typeof t;return!!("number"==r?ut(n)&&Ge(t,n.length):"string"==r&&t in n)&&te(n[t],e)}function hn(e,t,n){var r=v(e)?Ne:pt;return n&&dn(e,t,n)&&(t=void 0),r(e,fn(t))}function pn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function gn(e){return"function"==typeof e?e:cn}function mn(e,t){return(v(e)?pn:ht)(e,gn(t))}function An(e,t){var n=-1,r=ut(e)?Array(e.length):[];return ht(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function yn(e,t){return(v(e)?he:An)(e,fn(t))}var vn=x?x.isConcatSpreadable:void 0;function bn(e){return v(e)||Oe(e)||!!(vn&&e&&e[vn])}function In(e,t,n,r,o){var i=-1,s=e.length;for(n||(n=bn),o||(o=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?In(a,t-1,n,r,o):Bt(o,a):r||(o[o.length]=a)}return o}function wn(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function xn(){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 Bt(v(n)?wn(n):[n],In(t,1))}function Cn(e){return"[object Undefined]"===Object.prototype.toString.call(e)}function Bn(e){return"[object Null]"===Object.prototype.toString.call(e)}function En(e){if(xe(e)){for(let t in e)return!1;return!0}return!1}function Fn(e){return!(!Be(e)||""!==e)}function kn(e){return!!we(e)&&0===e.length}function Sn(e){return!!Cn(e)||(!!Bn(e)||(!!En(e)||(!!Fn(e)||(!!kn(e)||!!ke(e)))))}function Dn(e){return!!we(e)&&(0!==e.length&&(1!==e.length||!Sn(e[0])))}function Nn(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Qn(e){return e!=e}function Mn(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Nn(e,Qn,n)}function Tn(e,t){return!!(null==e?0:e.length)&&Mn(e,t,0)>-1}function Ln(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}var Un=Ut&&1/wt(new Ut([,-0]))[1]==1/0?function(e){return new Ut(e)}:function(){},Rn=Un;function Hn(e,t,n){var r=-1,o=Tn,i=e.length,s=!0,a=[],c=a;if(n)s=!1,o=Ln;else if(i>=200){var l=t?null:Rn(e);if(l)return wt(l);s=!1,o=yt,c=new mt}else c=t?[]:a;e:for(;++r<i;){var u=e[r],f=t?t(u):u;if(u=n||0!==u?u:0,s&&f==f){for(var d=c.length;d--;)if(c[d]===f)continue e;t&&c.push(f),a.push(u)}else o(c,f,n)||(c!==a&&c.push(f),a.push(u))}return a}function qn(e){return e&&e.length?Hn(e):[]}function On(e){if(!Dn(e))return[];let t=[];return mn(e,function(e){let n=ft(e);t=[...t,...n],t=qn(t)}),t}var Pn=ln("length"),zn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function jn(e){return zn.test(e)}var $n="\\ud800-\\udfff",Yn="["+$n+"]",Gn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Vn="\\ud83c[\\udffb-\\udfff]",Jn="[^"+$n+"]",Wn="(?:\\ud83c[\\udde6-\\uddff]){2}",_n="[\\ud800-\\udbff][\\udc00-\\udfff]",Xn="(?:"+Gn+"|"+Vn+")"+"?",Kn="[\\ufe0e\\ufe0f]?",Zn=Kn+Xn+("(?:\\u200d(?:"+[Jn,Wn,_n].join("|")+")"+Kn+Xn+")*"),er="(?:"+[Jn+Gn+"?",Gn,Wn,_n,Yn].join("|")+")",tr=RegExp(Vn+"(?="+Vn+")|"+er+Zn,"g");function nr(e){return jn(e)?function(e){for(var t=tr.lastIndex=0;tr.test(e);)++t;return t}(e):Pn(e)}function rr(e){if(null==e)return 0;if(ut(e))return"string"==typeof(t=e)||!v(t)&&N(t)&&"[object String]"==D(t)?nr(e):e.length;var t,n=Wt(e);return"[object Map]"==n||"[object Set]"==n?e.size:lt(e).length}function or(e){return!0===e||!1===e||N(e)&&"[object Boolean]"==D(e)}function ir(e){return or(e)}function sr(e,t=!1){if(Cn(e))return"";let n="";try{n=t?JSON.stringify(e,null,2):JSON.stringify(e)}catch(e){n=""}return n}function ar(e,t=null,n={}){if(!Dn(e))return[];if(Dn(t)||(t=On(e)),0===rr(t))return[];let r=!1;if(mn(e,function(e){Ce(e)||(r=!0)}),r)return[];let o=Ie(n,"empty",""),i=[];return mn(e,function(e){let n=yn(t,function(t){return De(e,t)?ir(e[t])?e[t]?"true":"false":Be(e[t])||Se(e[t])?e[t]:sr(e[t]):o});i.push(n)}),i}function cr(e,t=[],n={}){if(!Dn(e))return[];Dn(t)||(t=On(e)),Ce(n)||(n={},mn(t,e=>{n[e]=e}));let r=!1;return mn(e,function(e){Ce(e)||(r=!0)}),r?[]:xn([yn(t,function(e){return Ie(n,e)})],ar(e,t))}function lr(e){if(!we(e))return{error:"data is not an array"};let t=null;try{hn(e,Ce)&&(e=cr(e)),t={rows:e}}catch(e){return{error:e}}return t}function ur(e){if(!Ee(e))return!1;let n="YYYY-MM";return e===t(e,n).format(n)}var fr=/\s/;var dr=/^\s+/;function hr(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&fr.test(e.charAt(t)););return t}(e)+1).replace(dr,""):e}var pr=/^[-+]0x[0-9a-f]+$/i,gr=/^0b[01]+$/i,mr=/^0o[0-7]+$/i,Ar=parseInt;function yr(e){if("number"==typeof e)return e;if(Q(e))return NaN;if(U(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=U(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=hr(e);var n=gr.test(e);return n||mr.test(e)?Ar(e.slice(2),n?2:8):pr.test(e)?NaN:+e}var vr=1/0;function br(e){return e?(e=yr(e))===vr||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Ir(e){var t=br(e),n=t%1;return t==t?n?t-n:t:0}function wr(e){if(!Se(e))return 0;return br(e)}function xr(e){return!!Se(e)&&(e=wr(e),"number"==typeof(t=e)&&t==Ir(t));var t}var Cr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Er={exports:{}};var Fr,kr={exports:{}};function Sr(){return Fr||(Fr=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!==Cr&&Cr.crypto&&(n=Cr.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.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},s=i.lib={},a=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.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,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var s=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=s<<24-(r+i)%4*8}else for(var a=0;a<o;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=o,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=a.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 c.init(t,e)}}),l=i.enc={},u=l.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).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 c.init(n,t/2)}},f=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}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 c.init(n,t)}},d=l.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=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.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,o=r.words,i=r.sigBytes,s=this.blockSize,a=i/(4*s),l=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,u=e.min(4*l,i);if(l){for(var f=0;f<l;f+=s)this._doProcessBlock(o,f);n=o.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});s.Hasher=h.extend({cfg:a.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=i.algo={};return i}(Math),t)}(kr)),kr.exports}var Dr={exports:{}};!function(e){var t;e.exports=(t=Sr(),function(){var e=t,n=e.lib.WordArray;function r(e,t,r){for(var o=[],i=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return n.create(o,i)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<n;a++)o.push(r.charAt(s>>>6*(3-a)&63));var c=r.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var s=n.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64)}(Dr);var Nr,Qr=Dr.exports,Mr=Br(Qr),Tr={exports:{}};function Lr(){return Nr||(Nr=1,function(e){var t;e.exports=(t=Sr(),function(e){var n=t,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=s.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,s=e[t+0],c=e[t+1],h=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],A=e[t+6],y=e[t+7],v=e[t+8],b=e[t+9],I=e[t+10],w=e[t+11],x=e[t+12],C=e[t+13],B=e[t+14],E=e[t+15],F=i[0],k=i[1],S=i[2],D=i[3];F=l(F,k,S,D,s,7,a[0]),D=l(D,F,k,S,c,12,a[1]),S=l(S,D,F,k,h,17,a[2]),k=l(k,S,D,F,p,22,a[3]),F=l(F,k,S,D,g,7,a[4]),D=l(D,F,k,S,m,12,a[5]),S=l(S,D,F,k,A,17,a[6]),k=l(k,S,D,F,y,22,a[7]),F=l(F,k,S,D,v,7,a[8]),D=l(D,F,k,S,b,12,a[9]),S=l(S,D,F,k,I,17,a[10]),k=l(k,S,D,F,w,22,a[11]),F=l(F,k,S,D,x,7,a[12]),D=l(D,F,k,S,C,12,a[13]),S=l(S,D,F,k,B,17,a[14]),F=u(F,k=l(k,S,D,F,E,22,a[15]),S,D,c,5,a[16]),D=u(D,F,k,S,A,9,a[17]),S=u(S,D,F,k,w,14,a[18]),k=u(k,S,D,F,s,20,a[19]),F=u(F,k,S,D,m,5,a[20]),D=u(D,F,k,S,I,9,a[21]),S=u(S,D,F,k,E,14,a[22]),k=u(k,S,D,F,g,20,a[23]),F=u(F,k,S,D,b,5,a[24]),D=u(D,F,k,S,B,9,a[25]),S=u(S,D,F,k,p,14,a[26]),k=u(k,S,D,F,v,20,a[27]),F=u(F,k,S,D,C,5,a[28]),D=u(D,F,k,S,h,9,a[29]),S=u(S,D,F,k,y,14,a[30]),F=f(F,k=u(k,S,D,F,x,20,a[31]),S,D,m,4,a[32]),D=f(D,F,k,S,v,11,a[33]),S=f(S,D,F,k,w,16,a[34]),k=f(k,S,D,F,B,23,a[35]),F=f(F,k,S,D,c,4,a[36]),D=f(D,F,k,S,g,11,a[37]),S=f(S,D,F,k,y,16,a[38]),k=f(k,S,D,F,I,23,a[39]),F=f(F,k,S,D,C,4,a[40]),D=f(D,F,k,S,s,11,a[41]),S=f(S,D,F,k,p,16,a[42]),k=f(k,S,D,F,A,23,a[43]),F=f(F,k,S,D,b,4,a[44]),D=f(D,F,k,S,x,11,a[45]),S=f(S,D,F,k,E,16,a[46]),F=d(F,k=f(k,S,D,F,h,23,a[47]),S,D,s,6,a[48]),D=d(D,F,k,S,y,10,a[49]),S=d(S,D,F,k,B,15,a[50]),k=d(k,S,D,F,m,21,a[51]),F=d(F,k,S,D,x,6,a[52]),D=d(D,F,k,S,p,10,a[53]),S=d(S,D,F,k,I,15,a[54]),k=d(k,S,D,F,c,21,a[55]),F=d(F,k,S,D,v,6,a[56]),D=d(D,F,k,S,E,10,a[57]),S=d(S,D,F,k,A,15,a[58]),k=d(k,S,D,F,C,21,a[59]),F=d(F,k,S,D,g,6,a[60]),D=d(D,F,k,S,w,10,a[61]),S=d(S,D,F,k,h,15,a[62]),k=d(k,S,D,F,b,21,a[63]),i[0]=i[0]+F|0,i[1]=i[1]+k|0,i[2]=i[2]+S|0,i[3]=i[3]+D|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var i=e.floor(r/4294967296),s=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,o,i,s){var a=e+(t&n|~t&r)+o+s;return(a<<i|a>>>32-i)+t}function u(e,t,n,r,o,i,s){var a=e+(t&r|n&~r)+o+s;return(a<<i|a>>>32-i)+t}function f(e,t,n,r,o,i,s){var a=e+(t^n^r)+o+s;return(a<<i|a>>>32-i)+t}function d(e,t,n,r,o,i,s){var a=e+(n^(t|~r))+o+s;return(a<<i|a>>>32-i)+t}n.MD5=i._createHelper(c),n.HmacMD5=i._createHmacHelper(c)}(Math),t.MD5)}(Tr)),Tr.exports}var Ur={exports:{}},Rr={exports:{}};!function(e){var t;e.exports=(t=Sr(),function(){var e=t,n=e.lib,r=n.WordArray,o=n.Hasher,i=e.algo,s=[],a=i.SHA1=o.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],o=n[1],i=n[2],a=n[3],c=n[4],l=0;l<80;l++){if(l<16)s[l]=0|e[t+l];else{var u=s[l-3]^s[l-8]^s[l-14]^s[l-16];s[l]=u<<1|u>>>31}var f=(r<<5|r>>>27)+c+s[l];f+=l<20?1518500249+(o&i|~o&a):l<40?1859775393+(o^i^a):l<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,c=a,a=i,i=o<<30|o>>>2,o=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+c|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=o.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=o._createHelper(a),e.HmacSHA1=o._createHmacHelper(a)}(),t.SHA1)}(Rr);var Hr,qr,Or=Rr.exports,Pr=Br(Or),zr={exports:{}};function jr(){return qr||(qr=1,function(e){var t;e.exports=(t=Sr(),Hr||(Hr=1,function(e){var t,n,r;e.exports=(n=(t=Sr()).lib.Base,r=t.enc.Utf8,void(t.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,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,c=s.words,l=0;l<n;l++)a[l]^=1549556828,c[l]^=909522486;i.sigBytes=s.sigBytes=o,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,o=n.WordArray,i=e.algo,s=i.MD5,a=i.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,i=r.hasher.create(),s=o.create(),a=s.words,c=r.keySize,l=r.iterations;a.length<c;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var u=1;u<l;u++)n=i.finalize(n),i.reset();s.concat(n)}return s.sigBytes=4*c,s}});e.EvpKDF=function(e,t,n){return a.create(n).compute(e,t)}}(),t.EvpKDF)}(Ur)),Ur.exports}var $r,Yr={exports:{}};!function(e){var t;e.exports=(t=Sr(),Lr(),jr(),$r||($r=1,function(e){var t;e.exports=(t=Sr(),jr(),void(t.lib.Cipher||function(e){var n=t,r=n.lib,o=r.Base,i=r.WordArray,s=r.BufferedBlockAlgorithm,a=n.enc;a.Utf8;var c=a.Base64,l=n.algo.EvpKDF,u=r.Cipher=s.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.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?v:A}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()});r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=n.mode={},d=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=f.CBC=function(){var t=d.extend();function n(t,n,r){var o,i=this._iv;i?(o=i,this._iv=e):o=this._prevBlock;for(var s=0;s<r;s++)t[n+s]^=o[s]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);r.decryptBlock(e,t),n.call(this,e,t,o),this._prevBlock=i}}),t}(),p=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,s=[],a=0;a<r;a+=4)s.push(o);var c=i.create(s,r);e.concat(c)},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=o.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?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},A=r.SerializableCipher=o.extend({cfg:o.extend({format:m}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),s=o.cfg;return g.create({ciphertext:i,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.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}}),y=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,o){if(r||(r=i.random(8)),o)s=l.create({keySize:t+n,hasher:o}).compute(e,r);else var s=l.create({keySize:t+n}).compute(e,r);var a=i.create(s.words.slice(t),4*n);return s.sigBytes=4*t,g.create({key:s,iv:a,salt:r})}},v=r.PasswordBasedCipher=A.extend({cfg:A.cfg.extend({kdf:y}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var i=A.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=o.iv,A.decrypt.call(this,e,t,o.key,r)}})}()))}(Yr)),function(){var e=t,n=e.lib.BlockCipher,r=e.algo,o=[],i=[],s=[],a=[],c=[],l=[],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,o[n]=p,i[p]=n;var g=e[n],m=e[g],A=e[m],y=257*e[p]^16843008*p;s[n]=y<<24|y>>>8,a[n]=y<<16|y>>>16,c[n]=y<<8|y>>>24,l[n]=y,y=16843009*A^65537*m^257*g^16843008*n,u[p]=y<<24|y>>>8,f[p]=y<<16|y>>>16,d[p]=y<<8|y>>>24,h[p]=y,n?(n=g^e[e[e[A^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),i=this._keySchedule=[],s=0;s<r;s++)s<n?i[s]=t[s]:(l=i[s-1],s%n?n>6&&s%n==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=o[(l=l<<8|l>>>24)>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=p[s/n|0]<<24),i[s]=i[s-n]^l);for(var a=this._invKeySchedule=[],c=0;c<r;c++){if(s=r-c,c%4)var l=i[s];else l=i[s-4];a[c]=c<4||s<=4?l:u[o[l>>>24]]^f[o[l>>>16&255]]^d[o[l>>>8&255]]^h[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,c,l,o)},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,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,s,a){for(var c=this._nRounds,l=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<c;p++){var g=r[l>>>24]^o[u>>>16&255]^i[f>>>8&255]^s[255&d]^n[h++],m=r[u>>>24]^o[f>>>16&255]^i[d>>>8&255]^s[255&l]^n[h++],A=r[f>>>24]^o[d>>>16&255]^i[l>>>8&255]^s[255&u]^n[h++],y=r[d>>>24]^o[l>>>16&255]^i[u>>>8&255]^s[255&f]^n[h++];l=g,u=m,f=A,d=y}g=(a[l>>>24]<<24|a[u>>>16&255]<<16|a[f>>>8&255]<<8|a[255&d])^n[h++],m=(a[u>>>24]<<24|a[f>>>16&255]<<16|a[d>>>8&255]<<8|a[255&l])^n[h++],A=(a[f>>>24]<<24|a[d>>>16&255]<<16|a[l>>>8&255]<<8|a[255&u])^n[h++],y=(a[d>>>24]<<24|a[l>>>16&255]<<16|a[u>>>8&255]<<8|a[255&f])^n[h++],e[t]=g,e[t+1]=m,e[t+2]=A,e[t+3]=y},keySize:8});e.AES=n._createHelper(g)}(),t.AES)}(Er);var Gr=Br(Er.exports),Vr={exports:{}};!function(e){e.exports=Sr().enc.Utf8}(Vr);var Jr=Br(Vr.exports),Wr={exports:{}};!function(e){e.exports=Sr().enc.Hex}(Wr);var _r=Br(Wr.exports);function Xr(e,t,n=!1){if(!Ee(e))return"";if(!Ee(t))return"";ir(n)||(n=!1);let r="";if(n){r=Gr.decrypt(e,t).toString(Jr)}else{let n=_r.parse(e).toString(Mr);r=Gr.decrypt(n,t).toString(Jr)}return r}var Kr=function(){try{var e=_(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Zr=Kr;function eo(e,t,n){"__proto__"==t&&Zr?Zr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var to=Object.prototype.hasOwnProperty;function no(e,t,n){var r=e[t];to.call(e,t)&&te(r,n)&&(void 0!==n||t in e)||eo(e,t,n)}function ro(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],c=r?r(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),o?eo(n,a,c):no(n,a,c)}return n}var oo=Object.prototype.hasOwnProperty;function io(e){if(!U(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=it(e),n=[];for(var r in e)("constructor"!=r||!t&&oo.call(e,r))&&n.push(r);return n}function so(e){return ut(e)?rt(e,!0):io(e)}var ao="object"==typeof e&&e&&!e.nodeType&&e,co=ao&&"object"==typeof module&&module&&!module.nodeType&&module,lo=co&&co.exports===ao?w.Buffer:void 0,uo=lo?lo.allocUnsafe:void 0;function fo(e,t){if(t)return e.slice();var n=e.length,r=uo?uo(n):new e.constructor(n);return e.copy(r),r}var ho=st(Object.getPrototypeOf,Object),po=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Bt(t,Nt(e)),e=ho(e);return t}:kt;function go(e){return Et(e,so,po)}var mo=Object.prototype.hasOwnProperty;function Ao(e){var t=new e.constructor(e.byteLength);return new bt(t).set(new bt(e)),t}var yo=/\w*$/;var vo=x?x.prototype:void 0,bo=vo?vo.valueOf:void 0;function Io(e,t){var n=t?Ao(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function wo(e,t,n){var r,o,i,s=e.constructor;switch(t){case"[object ArrayBuffer]":return Ao(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return function(e,t){var n=t?Ao(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 Io(e,n);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return(i=new(o=e).constructor(o.source,yo.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return r=e,bo?Object(bo.call(r)):{}}}var xo=Object.create,Co=function(){function e(){}return function(t){if(!U(t))return{};if(xo)return xo(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Bo(e){return"function"!=typeof e.constructor||it(e)?{}:Co(ho(e))}var Eo=Ze&&Ze.isMap,Fo=Eo?We(Eo):function(e){return N(e)&&"[object Map]"==Wt(e)};var ko=Ze&&Ze.isSet,So=ko?We(ko):function(e){return N(e)&&"[object Set]"==Wt(e)},Do="[object Arguments]",No="[object Function]",Qo="[object Object]",Mo={};function To(e,t,n,r,o,i){var s,a=1&t,c=2&t,l=4&t;if(n&&(s=o?n(e,r,o,i):n(e)),void 0!==s)return s;if(!U(e))return e;var u=v(e);if(u){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&mo.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!a)return wn(e,s)}else{var f=Wt(e),d=f==No||"[object GeneratorFunction]"==f;if($e(e))return fo(e,a);if(f==Qo||f==Do||d&&!o){if(s=c||d?{}:Bo(e),!a)return c?function(e,t){return ro(e,po(e),t)}(e,function(e,t){return e&&ro(t,so(t),e)}(s,e)):function(e,t){return ro(e,Nt(e),t)}(e,function(e,t){return e&&ro(t,ft(t),e)}(s,e))}else{if(!Mo[f])return o?e:{};s=wo(e,f,a)}}i||(i=new gt);var h=i.get(e);if(h)return h;i.set(e,s),So(e)?e.forEach(function(r){s.add(To(r,t,n,r,e,i))}):Fo(e)&&e.forEach(function(r,o){s.set(o,To(r,t,n,o,e,i))});var p=u?void 0:(l?c?go:Qt:c?so:ft)(e);return pn(p||e,function(r,o){p&&(r=e[o=r]),no(s,o,To(r,t,n,o,e,i))}),s}Mo[Do]=Mo["[object Array]"]=Mo["[object ArrayBuffer]"]=Mo["[object DataView]"]=Mo["[object Boolean]"]=Mo["[object Date]"]=Mo["[object Float32Array]"]=Mo["[object Float64Array]"]=Mo["[object Int8Array]"]=Mo["[object Int16Array]"]=Mo["[object Int32Array]"]=Mo["[object Map]"]=Mo["[object Number]"]=Mo[Qo]=Mo["[object RegExp]"]=Mo["[object Set]"]=Mo["[object String]"]=Mo["[object Symbol]"]=Mo["[object Uint8Array]"]=Mo["[object Uint8ClampedArray]"]=Mo["[object Uint16Array]"]=Mo["[object Uint32Array]"]=!0,Mo["[object Error]"]=Mo[No]=Mo["[object WeakMap]"]=!1;function Lo(e){return To(e,5)}var Uo={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new o(r,i||e,s),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function s(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.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 o=0,i=r.length,s=new Array(i);o<i;o++)s[o]=r[o].fn;return s},a.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},a.prototype.emit=function(e,t,r,o,i,s){var a=n?n+e:e;if(!this._events[a])return!1;var c,l,u=this._events[a],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,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,s),!0}for(l=1,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var d,h=u.length;for(l=0;l<h;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].context,c)}}return!0},a.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||o&&!a.once||r&&a.context!==r||s(this,i);else{for(var c=0,l=[],u=a.length;c<u;c++)(a[c].fn!==t||o&&!a[c].once||r&&a[c].context!==r)&&l.push(a[c]);l.length?this._events[i]=1===l.length?l[0]:l:s(this,i)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a}(Uo);var Ro=Br(Uo.exports);function Ho(){return new Ro}var qo=w.isFinite,Oo=Math.min;function Po(e){var t=Math[e];return function(e,n){if(e=yr(e),(n=null==n?0:Oo(Ir(n),292))&&qo(e)){var r=(Ae(e)+"e").split("e");return+((r=(Ae(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var zo=Po("round");function jo(e){if(!Se(e))return 0;e=wr(e);let t=zo(e);return"0"===String(t)?0:t}function $o(e){if(!xr(e))return!1;return jo(e)>0}function Yo(e,t){return function(e,t,n){for(var r=-1,o=e.length,i=t.length,s={};++r<o;){var a=r<i?t[r]:void 0;n(s,e[r],a)}return s}(e||[],t||[],no)}function Go(e,t){if(!we(e))return[];if(!we(t))return[];if(rr(e)!==rr(t))return[];let n=[];return mn(e,function(r,o){let i=null,s=Se(e[o]),a=Se(t[o]);(s||a)&&(i=0),s&&(i+=wr(e[o])),a&&(i+=wr(t[o])),n.push(i)}),n}var Vo=Math.ceil,Jo=Math.max;var Wo=function(e){return function(t,n,r){return r&&"number"!=typeof r&&dn(t,n,r)&&(n=r=void 0),t=br(t),void 0===n?(n=t,t=0):n=br(n),function(e,t,n,r){for(var o=-1,i=Jo(Vo((t-e)/(n||1)),0),s=Array(i);i--;)s[r?i:++o]=e,e+=n;return s}(t,n,r=void 0===r?t<n?1:-1:br(r),e)}}(),_o=Wo;function Xo(e,t){for(var n=-1,r=t.length,o=Array(r),i=null==e;++n<r;)o[n]=i?void 0:Ie(e,t[n]);return o}function Ko(e){return(null==e?0:e.length)?In(e,1):[]}var Zo=Math.max;function ei(e,t,n){return t=Zo(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Zo(r.length-t,0),s=Array(i);++o<i;)s[o]=r[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=r[o];return a[t]=n(s),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,a)}}function ti(e){return function(){return e}}var ni=Zr?function(e,t){return Zr(e,"toString",{configurable:!0,enumerable:!1,value:ti(t),writable:!0})}:cn,ri=ni,oi=Date.now;var ii,si,ai,ci=(ii=ri,si=0,ai=0,function(){var e=oi(),t=16-(e-ai);if(ai=e,t>0){if(++si>=800)return arguments[0]}else si=0;return ii.apply(void 0,arguments)}),li=ci;function ui(e){return li(ei(e,void 0,Ko),e+"")}var fi=ui(Xo);function di(e){if(!xr(e))return!1;return jo(e)>=0}function hi(e,t,n=null){if(!Dn(e))return[];if(!di(t))return[];let r;if(t=jo(t),Sn(n)){if(t>=e.length)return[];r=fi(e,t)}else{if(!di(n))return[];if(n=jo(n),t>=e.length||n>=e.length)return[];let o=_o(t,n+1);r=fi(e,o)}return r}var pi=Array.prototype.join;function gi(e,t){return null==e?"":pi.call(e,t)}function mi(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function Ai(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:mi(e,t,n)}var yi=Ze&&Ze.isRegExp,vi=yi?We(yi):function(e){return N(e)&&"[object RegExp]"==D(e)};var bi="\\ud800-\\udfff",Ii="["+bi+"]",wi="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",xi="\\ud83c[\\udffb-\\udfff]",Ci="[^"+bi+"]",Bi="(?:\\ud83c[\\udde6-\\uddff]){2}",Ei="[\\ud800-\\udbff][\\udc00-\\udfff]",Fi="(?:"+wi+"|"+xi+")"+"?",ki="[\\ufe0e\\ufe0f]?",Si=ki+Fi+("(?:\\u200d(?:"+[Ci,Bi,Ei].join("|")+")"+ki+Fi+")*"),Di="(?:"+[Ci+wi+"?",wi,Bi,Ei,Ii].join("|")+")",Ni=RegExp(xi+"(?="+xi+")|"+Di+Si,"g");function Qi(e){return jn(e)?function(e){return e.match(Ni)||[]}(e):function(e){return e.split("")}(e)}function Mi(e,t,n){return n&&"number"!=typeof n&&dn(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=Ae(e))&&("string"==typeof t||null!=t&&!vi(t))&&!(t=me(t))&&jn(e)?Ai(Qi(e),0,n):e.split(t,n):[]}function Ti(e,t,n){var r=null==e?0:e.length;return r?mi(e,0,(t=r-(t=n||void 0===t?1:Ir(t)))<0?0:t):[]}let Li=class{diff(e,t,n={}){let r;"function"==typeof n?(r=n,n={}):"callback"in n&&(r=n.callback);const o=this.castInput(e,n),i=this.castInput(t,n),s=this.removeEmpty(this.tokenize(o,n)),a=this.removeEmpty(this.tokenize(i,n));return this.diffWithOptionsObj(s,a,n,r)}diffWithOptionsObj(e,t,n,r){var o;const i=e=>(e=this.postProcess(e,n),r?void setTimeout(function(){r(e)},0):e),s=t.length,a=e.length;let c=1,l=s+a;null!=n.maxEditLength&&(l=Math.min(l,n.maxEditLength));const u=null!==(o=n.timeout)&&void 0!==o?o: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>=a&&h+1>=s)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,g=1/0;const m=()=>{for(let r=Math.max(p,-c);r<=Math.min(g,c);r+=2){let o;const c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){const e=l.oldPos-r;u=l&&0<=e&&e<s}const f=c&&c.oldPos+1<a;if(u||f){if(o=!f||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),h=this.extractCommon(o,t,e,r,n),o.oldPos+1>=a&&h+1>=s)return i(this.buildValues(o.lastComponent,t,e))||!0;d[r]=o,o.oldPos+1>=a&&(g=Math.min(g,r-1)),h+1>=s&&(p=Math.max(p,r+1))}else d[r]=void 0}c++};if(r)!function e(){setTimeout(function(){if(c>l||Date.now()>f)return r(void 0);m()||e()},0)}();else for(;c<=l&&Date.now()<=f;){const e=m();if(e)return e}}addToPath(e,t,n,r,o){const i=e.lastComponent;return i&&!o.oneChangePerToken&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}}extractCommon(e,t,n,r,o){const i=t.length,s=n.length;let a=e.oldPos,c=a-r,l=0;for(;c+1<i&&a+1<s&&this.equals(n[a+1],t[c+1],o);)c++,a++,l++,o.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!o.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=a,c}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 o;for(;e;)r.push(e),o=e.previousComponent,delete e.previousComponent,e=o;r.reverse();const i=r.length;let s=0,a=0,c=0;for(;s<i;s++){const e=r[s];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(a,a+e.count);r=r.map(function(e,t){const r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(a,a+e.count));a+=e.count,e.added||(c+=e.count)}}return r}};const Ui=new class extends Li{constructor(){super(...arguments),this.tokenize=Hi}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 Ri(e,t,n){return Ui.diff(e,t,n)}function Hi(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 o=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=o:n.push(o)}return n}function qi(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 Oi={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Pi(e,t,n,r,o,i,s){let a;a=s?"function"==typeof s?{callback:s}:s:{},void 0===a.context&&(a.context=4);const c=a.context;if(a.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(!a.callback)return l(Ri(n,r,a));{const{callback:e}=a;Ri(n,r,Object.assign(Object.assign({},a),{callback:t=>{const n=l(t);e(n)}}))}function l(n){if(!n)return;function r(e){return e.map(function(e){return" "+e})}n.push({value:"",lines:[]});const s=[];let a=0,l=0,u=[],f=1,d=1;for(let e=0;e<n.length;e++){const t=n[e],o=t.lines||$i(t.value);if(t.lines=o,t.added||t.removed){if(!a){const t=n[e-1];a=f,l=d,t&&(u=c>0?r(t.lines.slice(-c)):[],a-=u.length,l-=u.length)}for(const e of o)u.push((t.added?"+":"-")+e);t.added?d+=o.length:f+=o.length}else{if(a)if(o.length<=2*c&&e<n.length-2)for(const e of r(o))u.push(e);else{const e=Math.min(o.length,c);for(const t of r(o.slice(0,e)))u.push(t);const t={oldStart:a,oldLines:f-a+e,newStart:l,newLines:d-l+e,lines:u};s.push(t),a=0,l=0,u=[]}f+=o.length,d+=o.length}}for(const e of s)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:o,newHeader:i,hunks:s}}}function zi(e,t){var n,r,o,i,s,a;if(t||(t=Oi),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=>zi(e,t)).join("\n")}const c=[];if(e.isGit){if(t=Oi,!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 l=e.oldFileName,u=e.newFileName;e.isCreate&&"/dev/null"===l?l=u.replace(/^b\//,"a/"):e.isDelete&&"/dev/null"===u&&(u=l.replace(/^a\//,"b/")),c.push("diff --git "+qi(l)+" "+qi(u)),e.isDelete&&c.push("deleted file mode "+(null!==(n=e.oldMode)&&void 0!==n?n:"100644")),e.isCreate&&c.push("new file mode "+(null!==(r=e.newMode)&&void 0!==r?r:"100644")),e.oldMode&&e.newMode&&!e.isDelete&&!e.isCreate&&(c.push("old mode "+e.oldMode),c.push("new mode "+e.newMode)),e.isRename&&(c.push("rename from "+qi((null!==(o=e.oldFileName)&&void 0!==o?o:"").replace(/^a\//,""))),c.push("rename to "+qi((null!==(i=e.newFileName)&&void 0!==i?i:"").replace(/^b\//,"")))),e.isCopy&&(c.push("copy from "+qi((null!==(s=e.oldFileName)&&void 0!==s?s:"").replace(/^a\//,""))),c.push("copy to "+qi((null!==(a=e.newFileName)&&void 0!==a?a:"").replace(/^b\//,""))))}else t.includeIndex&&e.oldFileName==e.newFileName&&void 0!==e.oldFileName&&c.push("Index: "+e.oldFileName),t.includeUnderline&&c.push("===================================================================");const l=e.hunks.length>0;!t.includeFileHeaders||void 0===e.oldFileName||void 0===e.newFileName||e.isGit&&!l||(c.push("--- "+qi(e.oldFileName)+(e.oldHeader?"\t"+e.oldHeader:"")),c.push("+++ "+qi(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,o=0===n.newLines?n.newStart-1:n.newStart;c.push("@@ -"+r+","+n.oldLines+" +"+o+","+n.newLines+" @@");for(const e of n.lines)c.push(e)}return c.join("\n")+"\n"}function ji(e,t,n,r,o,i,s){if("function"==typeof s&&(s={callback:s}),!(null==s?void 0:s.callback)){const a=Pi(e,t,n,r,o,i,s);if(!a)return;return zi(a,null==s?void 0:s.headerOptions)}{const{callback:a}=s;Pi(e,t,n,r,o,i,Object.assign(Object.assign({},s),{callback:e=>{a(e?zi(e,s.headerOptions):void 0)}}))}}function $i(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 Yi(e,t,n){return e&&e.length?mi(e,0,(t=n||void 0===t?1:Ir(t))<0?0:t):[]}function Gi(e,t,n={}){if(!Be(e))return{};if(!Be(t))return{};if(""===e&&""===t)return{};let r=Ie(n,"useNormNewline");ir(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 o,i=Ri(e,t),s=rr(i),a=[],c=[];for(o=-1;o++,!(o>s-1);){let e=i[o],t=Ie(e,"count",0),n=Ie(e,"removed",!1),r=Ie(e,"added",!1),s=Mi(Ie(e,"value",""),"\n");s=Yi(s,t);for(let e=1;e<=t;e++){let t=s[e-1];n||r?n&&!r?(a.push({p:"remove",v:t}),c.push({p:"empty",v:""})):!n&&r&&(a.push({p:"empty",v:""}),c.push({p:"add",v:t})):(a.push({p:"",v:t}),c.push({p:"",v:t}))}}let l=rr(a);for(o=-1;o++,!(o>l-1);){let e=Ie(a,o,null),t=Ie(c,o,null),n=Ie(e,"p",""),r=Ie(t,"p","");if("remove"===n&&"empty"===r){let e=0,t=o,n=-1;for(let t=o;t<=l-1;t++){let r=Ie(a,t,null),o=Ie(c,t,null),i=Ie(r,"p",""),s=Ie(o,"p","");if("remove"!==i||"empty"!==s)break;e++,n=t}if(e<=0)continue;let r=0,i=!1,s=-1;for(let t=o;t<=n+e;t++){let e=Ie(a,t,null),n=Ie(c,t,null),o=Ie(e,"p",""),l=Ie(n,"p","");if("empty"===o&&"add"===l)i||(s=t),i=!0,r++;else if(i)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=s+e;a[n]={p:"modify",vo:Ie(a,`${n}.v`,""),vn:Ie(c,`${r}.v`,"")},c[n]=null,a[r]=null,c[r]=null}o+=u+1}}}let u=[];for(o=-1;o++,!(o>l-1);){let e=Ie(a,o,null),t=Ie(c,o,null),n=Ie(e,"p",""),r=Ie(t,"p",""),i=Ie(e,"v",""),s=Ie(t,"v","");if(null===e&&null===t)continue;let l="",f=i,d="";"modify"===n?(l="modify",f=e.vo,d=e.vn):"remove"===n&&"empty"===r?(l="remove",f=i,d=""):"empty"===n&&"add"===r&&(l="add",f=s,d=""),u.push({p:l,vo:f,vn:d})}return{diff:i,dfs:u}}let Vi="\n";function Ji(e,t){if(!we(e))return{};if(!we(t))return{};let n=yn(e,e=>`${e}${Vi}`);n=gi(n,"");let r=yn(t,e=>`${e}${Vi}`);r=gi(r,"");let o=Gi(n,r,{eliminateEndLine:!0});return o.dfs=yn(o.dfs,(e,t)=>({p:e.p,k:t,vo:e.vo,vn:e.vn})),o}function Wi(e,t,n={}){if(!we(e))return{};if(!we(t))return{};if(0===rr(e)&&0===rr(t))return{};let r,o=Ie(n,"mode","");return"array"!==o&&"matrix"!==o&&(o="array"),"array"===o?r=Ji(e,t):"matrix"===o&&(r=function(e,t,n={}){if(!we(e))return{};if(!we(t))return{};let r=Ie(n,"dls","");Ee(r)||(r="⟋");let o=Ie(n,"dlq","");Ee(o)||(o="∶");let i=[];mn(e,(t,n)=>{if(!we(t))throw console.log("arrOld",e),console.log(n,t),new Error("arrOld is not a matrix");mn(t,(e,t)=>{i.push(`${t}${o}${e}${r}`)}),i.push(Vi)}),i=gi(i,"");let s=[];mn(t,(e,n)=>{if(!we(e))throw console.log("arrNew",t),console.log(n,e),new Error("arrNew is not a matrix");mn(e,(e,t)=>{s.push(`${t}${o}${e}${r}`)}),s.push(Vi)}),s=gi(s,"");let a=Gi(i,s,{...n,eliminateEndLine:!0}),c=[];return mn(a.dfs,e=>{let t=Mi(e.vo,r);if(t=Ti(t,1),"modify"===e.p){let n=Mi(e.vn,r);n=Ti(n,1);let o=Ji(t,n);e.dfs=o.dfs}let n=[];"modify"===e.p?mn(e.dfs,e=>{n.push(e)}):mn(t,t=>{n.push({p:e.p,vo:t,vn:""})}),n=yn(n,(e,t)=>{let n=Ie(Mi(e.vo,o),1,""),r=Ie(Mi(e.vn,o),1,"");return{p:e.p,k:t,vo:n,vn:r}}),c.push(n)}),{diff:a.diff,dfs:c}}(e,t,n)),r}function _i(e,t,n){if((e=Ae(e))&&(n||void 0===t))return hr(e);if(!e||!(t=me(t)))return e;var r=Qi(e),o=Qi(t),i=function(e,t){for(var n=-1,r=e.length;++n<r&&Mn(t,e[n],0)>-1;);return n}(r,o),s=function(e,t){for(var n=e.length;n--&&Mn(t,e[n],0)>-1;);return n}(r,o)+1;return Ai(r,i,s).join("")}function Xi(e,t){if(!Ee(e))return[];if(!Ee(t))return[];return e.split(t)}function Ki(e,t){if(!Ee(e))return[];if(!Ee(t))return[];let n=Xi(e,t);n=yn(n,_i);let r=[];return mn(n,function(e){Ee(e)&&r.push(e)}),r}function Zi(e,t){return Ee(e)&&di(t)?0===(t=jo(t))?"":e.substring(0,t):""}function es(e,t){if(!Ee(e))return"";if(!di(t))return"";if(0===(t=jo(t)))return"";let n=e.length-t;return n<0&&(n=0),e.substring(n,n+t)}function ts(e,t){return Ee(e)&&di(t)?0===(t=jo(t))?e:es(e,e.length-t):""}function ns(e,t){var n=[];return ht(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function rs(e,t){return(v(e)?Ft:ns)(e,fn(t))}function os(e){if(!Se(e))return!1;return wr(e)>0}function is(e){return Dn(e)?e=yn(e=rs(e=Lo(e),os),wr):[]}function ss(e,t){return tn(e,t)}function as(e){return"number"==typeof e||N(e)&&"[object Number]"==D(e)}function cs(e,t){function n(e){return we(e)?e:[e]}if(Sn(e))return!1;if(0===(e=n(e)).length)return!1;if(Sn(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(ss(e[n],t[r]))return!0;return!1}function ls(e){let t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}function us(e,t,n={}){if(!Dn(e))return null;if(!ls(t))return null;let r=Ie(n,"returnIndex");ir(r)||(r=!1);let o=-1,i=null;for(let n=0;n<rr(e);n++){let r=t(i,e[n]);ss(i,r)||(i=r,o=n)}let s=null;return s=r?o:i,s}function fs(e,t){if(!we(e))return[];if(!we(t))return[];if(rr(e)!==rr(t))return[];let n=[];return mn(e,function(r,o){let i=null,s=Se(e[o]),a=Se(t[o]);(s||a)&&(i=1),s&&(i*=wr(e[o])),a&&(i*=wr(t[o])),n.push(i)}),n}function ds(){if(rr(arguments)<2)return[];let e=arguments[0];for(let t=1;t<rr(arguments);t++){e=fs(e,arguments[t])}return e}function hs(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function ps(){if(rr(arguments)<2)return null;let e=ds(...arguments);return 0===rr(e)?null:(e=(t=e)&&t.length?hs(t,cn):0,e);var t}function gs(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}var ms=Array.prototype.splice;function As(e,t){return e&&e.length&&t&&t.length?function(e,t,n,r){var o=r?gs:Mn,i=-1,s=t.length,a=e;for(e===t&&(t=wn(t)),n&&(a=he(e,We(n)));++i<s;)for(var c=0,l=t[i],u=n?n(l):l;(c=o(a,u,c,r))>-1;)a!==e&&ms.call(a,c,1),ms.call(e,c,1);return e}(e,t):e}function ys(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var vs=Object.prototype.hasOwnProperty;function bs(e,t){var n=-1,r=(t=ye(t,e)).length;if(!r)return!0;for(;++n<r;){var o=ve(t[n]);if("__proto__"===o&&!vs.call(e,"__proto__"))return!1;if(("constructor"===o||"prototype"===o)&&n<r-1)return!1}var i=function(e,t){return t.length<2?e:be(e,mi(t,0,-1))}(e,t);return null==i||delete i[ve(ys(t))]}var Is=Array.prototype.splice;function ws(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Q(e),s=void 0!==t,a=null===t,c=t==t,l=Q(t);if(!a&&!l&&!i&&e>t||i&&s&&c&&!a&&!l||r&&s&&c||!n&&c||!o)return 1;if(!r&&!i&&!l&&e<t||l&&n&&o&&!r&&!i||a&&n&&o||!s&&o||!c)return-1}return 0}var xs=ui(function(e,t){var n=null==e?0:e.length,r=Xo(e,t);return function(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Ge(o)?Is.call(e,o,1):bs(e,o)}}}(e,he(t,function(e){return Ge(e,n)?+e:e}).sort(ws)),r});var Cs=Array.prototype.reverse;function Bs(e){return null==e?e:Cs.call(e)}function Es(e,t,n){t=t.length?he(t,function(e){return v(e)?function(t){return be(t,1===e.length?e[0]:e)}:e}):[cn];var r=-1;return t=he(t,We(fn)),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(An(e,function(e,n,o){return{criteria:he(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,s=o.length,a=n.length;++r<s;){var c=ws(o[r],i[r]);if(c)return r>=a?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Fs(e,t){return li(ei(e,t,cn),e+"")}var ks=Fs(function(e,t){if(null==e)return[];var n=t.length;return n>1&&dn(e,t[0],t[1])?t=[]:n>2&&dn(t[0],t[1],t[2])&&(t=[t[0]]),Es(e,In(t,1),[])});function Ss(e){return"[object BigInt]"===Object.prototype.toString.call(e)}function Ds(e){if(!(Ee(e)||Se(e)||Q(e)||Ss(e)))return"";let t="";try{t=String(e)}catch(e){}try{t=e.toString()}catch(e){}return t}function Ns(e,t,n){var r=null==e?0:e.length;return r?mi(e,(t=n||void 0===t?1:Ir(t))<0?0:t,r):[]}function Qs(e,t){return Ee(e)&&di(t)?0===(t=jo(t))?e:Zi(e,e.length-t):""}function Ms(e,t={}){let n=Ie(t,"excludeString");if(ir(n)||(n=!1),!Ee(e))return"";let r=e=>e>="0"&&e<="9"||"."===e||"-"===e||"+"===e,o=_i(e);if(n){let e=o.split("");for(let t=0;t<e.length;t++)if(r(e[t])){o=ts(o,t),e=Ns(e,t);break}e=Bs(e);for(let t=0;t<e.length;t++)if(r(e[t])){o=Qs(o,t);break}}return o}function Ts(e){let t=0,n=0,r=0,o=rr(e);mn(e,e=>{Se(e)?t+=1:Be(e)?n+=1:xe(e)&&(r+=1)});let i="";return t===o?i="num":n===o?i="str":r===o?i="obj":t+n===o?i="str":console.log("eles in array are non-homogeneous",e),i}function Ls(e,t,n={}){let r=[];if("num"!==t&&"str"!==t&&"files"!==t)throw new Error(`invalid type[${t}]`);if("num"===t)r=yn(e,(e,t)=>({key:t,payload:e,value:wr(e)}));else if("files"===t)r=yn(e,(e,t)=>({key:t,payload:e,value:Ds(e)}));else if("str"===t){let t=yn(e,e=>Ms(e,{excludeString:!0})),n=0;mn(t,e=>{Se(e)&&n++});let o=n===rr(t);r=yn(e,(e,n)=>{let r=e;return o?(r=t[n],r=wr(r)):r=Ds(r),{key:n,payload:e,value:r}})}return r}function Us(e,t){let n=ks(e,"value");return yn(n,t?"key":"payload")}function Rs(e,t){let n=function(e,t){let n=Lo(e);return n.sort((e,n)=>e[t].localeCompare(n[t],"standard",{numeric:!0})),n}(e,"value");return yn(n,t?"key":"payload")}function Hs(e,t={}){if(!Dn(e))return[];if(1===rr(e))return e;let n=Ie(t,"localeCompare");ir(n)||(n=!1);let r=Ie(t,"returnIndex");ir(r)||(r=!1);let o=Ie(t,"compareKey",null),i=null;i=n?Rs:Us;let s,a=Ts(e);if(""===a)return[];if("obj"===a){if(!Ee(o))return[];let a=yn(e,(e,t)=>Ie(e,o,"")),c=Ts(a);if("num"!==c&&"str"!==c)return[];{n&&(c="files");let o=i(Ls(a,c,t),!0);s=r?o:yn(o,t=>e[t])}}else if("num"===a||"str"===a){n&&(a="files"),s=i(Ls(e,a,t),r)}return s}function qs(e){if(!Ee(e))return"";return Mr.parse(e).toString(Jr)}function Os(e){if(!Ee(e))return{};let t={};try{t=JSON.parse(e)}catch(e){t={}}return t}function Ps(e){if(!Be(e))return new Uint8Array;let t=Mr.parse(e),n=t.words,r=t.sigBytes,o=new Uint8Array(r);for(let e=0;e<r;e++){let t=n[e>>>2]>>>24-e%4*8&255;o[e]=t}return o}function zs(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function js(e){return zs(e)?new Uint16Array(e):new Uint16Array}function $s(e){if(!Be(e))return new Uint16Array;return js(Ps(e))}function Ys(e,t,n="anyone"){if(!Ee(e))return!1;if("anyone"!==n&&"all"!==n)return!1;if(Be(t)){if(!Ee(t))return!1;t=[t]}if(!Dn(t))return!1;let r=!1;if(mn(t,function(e){Ee(e)||(r=!0)}),r)return!1;let o=0;return mn(t,function(t){-1!==function(e,t){return e.indexOf(t)}(e,t)&&o++}),"anyone"===n?o>0:"all"===n&&o===t.length}function Gs(){let e,t,n=new Promise(function(){e=arguments[0],t=arguments[1]});return n.resolve=e,n.reject=t,n}function Vs(){return"undefined"!=typeof window&&void 0!==window.document}function Js(e){if(!Vs())return Promise.reject("no window");try{return function(e){return e.arrayBuffer()}(e)}catch(t){return function(e){let t=Gs(),n=new FileReader;return n.onload=function(){let e=n.result;t.resolve(e)},n.onerror=function(e){t.reject(e)},n.readAsArrayBuffer(e),t}(e)}}function Ws(e){let t=Gs(),n=new FileReader;n.onload=function(){t.resolve(n.result)},n.onerror=function(e){t.reject(e)};try{n.readAsDataURL(e)}catch(e){t.reject("cancel")}return t}function _s(e){let t=Gs();return Js(e).then(e=>{let n=new Uint8Array(e);t.resolve(n)}).catch(e=>{t.reject(e)}),t}function Xs(e){let t=yn(e,function(e){return Ws(e)});return Promise.all(t)}function Ks(e){let t=yn(e,function(e){return _s(e)});return Promise.all(t)}var Zs={exports:{}};
7
+ /*! https://mths.be/he v1.2.0 by @mathias | MIT license */!function(e,t){!function(n){var r=t,o=e&&e.exports==r&&e,i="object"==typeof Cr&&Cr;i.global!==i&&i.window!==i||(n=i);var s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,a=/[\x01-\x7F]/g,c=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/<\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:"‌"},A={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:"ÿ"},y={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:"Ÿ"},v=[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,I={}.hasOwnProperty,w=function(e,t){return I.call(e,t)},x=function(e,t){if(!e)return t;var n,r={};for(n in t)r[n]=w(e,n)?e[n]:t[n];return r},C=function(e,t){var n="";return e>=55296&&e<=57343||e>1114111?(t&&F("character reference outside the permissible Unicode range"),"�"):w(y,e)?(t&&F("disallowed character reference"),y[e]):(t&&function(e,t){for(var n=-1,r=e.length;++n<r;)if(e[n]==t)return!0;return!1}(v,e)&&F("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+";"},F=function(e){throw Error("Parse error: "+e)},k=function(e,t){(t=x(t,k.options)).strict&&p.test(e)&&F("forbidden code point");var n=t.encodeEverything,r=t.useNamedReferences,o=t.allowUnsafeSymbols,i=t.decimal?E:B,d=function(e){return i(e.charCodeAt(0))};return n?(e=e.replace(a,function(e){return r&&w(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(l,function(e){return"&"+u[e]+";"}))):r?(o||(e=e.replace(f,function(e){return"&"+u[e]+";"})),e=(e=e.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;")).replace(l,function(e){return"&"+u[e]+";"})):o||(e=e.replace(f,d)),e.replace(s,function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return i(1024*(t-55296)+n-56320+65536)}).replace(c,d)};k.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var S=function(e,t){var n=(t=x(t,S.options)).strict;return n&&h.test(e)&&F("malformed character reference"),e.replace(g,function(e,r,o,i,s,a,c,l,u){var f,d,h,p,g,y;return r?m[g=r]:o?(g=o,(y=i)&&t.isAttributeValue?(n&&"="==y&&F("`&` did not start a character reference"),e):(n&&F("named character reference was not terminated by a semicolon"),A[g]+(y||""))):s?(h=s,d=a,n&&!d&&F("character reference was not terminated by a semicolon"),f=parseInt(h,10),C(f,n)):c?(p=c,d=l,n&&!d&&F("character reference was not terminated by a semicolon"),f=parseInt(p,16),C(f,n)):(n&&F("named character reference was not terminated by a semicolon"),e)})};S.options={isAttributeValue:!1,strict:!1};var D={version:"1.2.0",encode:k,decode:S,escape:function(e){return e.replace(f,function(e){return d[e]})},unescape:S};if(r&&!r.nodeType)if(o)o.exports=D;else for(var N in D)w(D,N)&&(r[N]=D[N]);else n.he=D}(Cr)}(Zs,Zs.exports);var ea=Br(Zs.exports);function ta(e,t={}){if(!Ee(e))return"";return ea.encode(e,t)}function na(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 ra(e){return"[object Blob]"===Object.prototype.toString.call(e)}function oa(e,t,n,r,o){if(!zs(e))return null;if(!xr(t))return null;if(!ir(n))return null;if(!xr(r))return null;if(!xr(o))return null;let i,s,a=8*o-r-1,c=(1<<a)-1,l=c>>1,u=-7,f=n?0:o-1,d=n?1:-1,h=e[t+f];for(f+=d,i=h&(1<<-u)-1,h>>=-u,u+=a;u>0;i=256*i+e[t+f],f+=d,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=r;u>0;s=256*s+e[t+f],f+=d,u-=8);if(0===i)i=1-l;else{if(i===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),i-=l}return(h?-1:1)*s*Math.pow(2,i-r)}function ia(e,t=0,n=!0,r=52,o=8){return oa(e,t,n,r,o)}function sa(e,t,n,r,o,i){if(!Se(e))return null;if(!zs(t))return null;if(!xr(n))return null;if(!ir(r))return null;if(!xr(o))return null;if(!xr(i))return null;let s,a,c;e=wr(e);let l=8*i-o-1,u=(1<<l)-1,f=u>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?i-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?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=u?(a=0,s=u):s+f>=1?(a=(e*c-1)*Math.pow(2,o),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[n+h]=255&a,h+=p,a/=256,o-=8);for(s=s<<o|a,l+=o;l>0;t[n+h]=255&s,h+=p,s/=256,l-=8);return t[n+h-p]|=128*g,null}function aa(e,t,n=0,r=!0,o=52,i=8){return sa(e,t,n,r,o,i)}function ca(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 la(e,t={}){let n=null,r=Gs();if(!ls(e))return r.reject("waitfunction需輸入函數f"),r;let o=async()=>{let t=e();return ca(t)&&(t=await t),t};if(n=await o(),!0===n)return r.resolve(),r;let i=Ie(t,"attemptNum",null);$o(i)||(i=200);let s=Ie(t,"timeInterval",null);$o(s)||(s=1e3);let a=0,c=setInterval(async()=>{a+=1,n=await o(),!0===n&&(clearInterval(c),r.resolve()),a>i&&(clearInterval(c),r.reject(`exceeded attemptNum[${i}]`))},s);return r}function ua(e=10){Se(e)||(e=10);let t=Gs();return setTimeout(function(){t.resolve()},e),t}function fa(e){return Ae(e).toLowerCase()}
8
8
  /*!
9
9
  * decimal.js v10.6.0
10
10
  * An arbitrary-precision Decimal type for JavaScript.
@@ -12,13 +12,13 @@
12
12
  * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
13
13
  * MIT Licence
14
14
  */
15
- var Es,Cs,xs=9e15,Ds=1e9,Fs="0123456789abcdef",Qs="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Ss="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",ks={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-xs,maxE:xs,crypto:!1},Ns=!0,qs="[DecimalError] ",Ms=qs+"Invalid argument: ",Hs=qs+"Precision limit exceeded",Ls=qs+"crypto unavailable",Us="[object Decimal]",Rs=Math.floor,Os=Math.pow,Ts=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Ys=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,js=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Gs=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Js=1e7,zs=Qs.length-1,Vs=Ss.length-1,Ps={toStringTag:Us};function Xs(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(o+=ol(r)),o+=n;(r=7-(n=(a=e[t])+"").length)&&(o+=ol(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function _s(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ms+e)}function Ws(e,t,r,n){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=Os(10,7-t),s=e[i]%o|0,null==n?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):a=(r<4&&s+1==o||r>3&&s+1==o/2)&&(e[i+1]/o/100|0)==Os(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=(n||r<4)&&9999==s||!n&&r>3&&4999==s):a=((n||r<4)&&s+1==o||!n&&r>3&&s+1==o/2)&&(e[i+1]/o/1e3|0)==Os(10,t-3)-1,a}function Ks(e,t,r){for(var n,i,o=[0],a=0,s=e.length;a<s;){for(i=o.length;i--;)o[i]*=t;for(o[0]+=Fs.indexOf(e.charAt(a++)),n=0;n<o.length;n++)o[n]>r-1&&(void 0===o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}Ps.absoluteValue=Ps.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),Zs(e)},Ps.ceil=function(){return Zs(new this.constructor(this),this.e+1,2)},Ps.clampedTo=Ps.clamp=function(e,t){var r=this,n=r.constructor;if(e=new n(e),t=new n(t),!e.s||!t.s)return new n(NaN);if(e.gt(t))throw Error(Ms+t);return r.cmp(e)<0?e:r.cmp(t)>0?t:new n(r)},Ps.comparedTo=Ps.cmp=function(e){var t,r,n,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,r=(n=a.length)<(i=s.length)?n:i;t<r;++t)if(a[t]!==s[t])return a[t]>s[t]^l<0?1:-1;return n===i?0:n>i^l<0?1:-1},Ps.cosine=Ps.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length,n<32?i=(1/hl(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10");e.precision+=r,t=pl(e,1,t.times(i),new e(1));for(var o=r;o--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=r,t}(n,Al(n,r)),n.precision=e,n.rounding=t,Zs(2==Cs||3==Cs?r.neg():r,e,t,!0)):new n(1):new n(NaN)},Ps.cubeRoot=Ps.cbrt=function(){var e,t,r,n,i,o,a,s,l,c,u=this,f=u.constructor;if(!u.isFinite()||u.isZero())return new f(u);for(Ns=!1,(o=u.s*Os(u.s*u,1/3))&&Math.abs(o)!=1/0?n=new f(o.toString()):(r=Xs(u.d),(o=((e=u.e)-r.length+1)%3)&&(r+=1==o||-2==o?"0":"00"),o=Os(r,1/3),e=Rs((e+1)/3)-(e%3==(e<0?-1:2)),(n=new f(r=o==1/0?"5e"+e:(r=o.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=u.s),a=(e=f.precision)+3;;)if(c=(l=(s=n).times(s).times(s)).plus(u),n=$s(c.plus(u).times(s),c.plus(l),a+2,1),Xs(s.d).slice(0,a)===(r=Xs(n.d)).slice(0,a)){if("9999"!=(r=r.slice(a-3,a+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(Zs(n,e+1,1),t=!n.times(n).times(n).eq(u));break}if(!i&&(Zs(s,e+1,0),s.times(s).times(s).eq(u))){n=s;break}a+=4,i=1}return Ns=!0,Zs(n,e,f.rounding,t)},Ps.decimalPlaces=Ps.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=7*((e=t.length-1)-Rs(this.e/7)),e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},Ps.dividedBy=Ps.div=function(e){return $s(this,new this.constructor(e))},Ps.dividedToIntegerBy=Ps.divToInt=function(e){var t=this.constructor;return Zs($s(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 Zs(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,r,n,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;r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?t=(1/hl(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=pl(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 Zs(o,a.precision=r,a.rounding=n,!0)},Ps.hyperbolicSine=Ps.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=pl(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,i=pl(o,2,i=i.times(1/hl(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=r,Zs(i,t,r,!0)},Ps.hyperbolicTangent=Ps.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,$s(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)},Ps.inverseCosine=Ps.acos=function(){var e=this,t=e.constructor,r=e.abs().cmp(1),n=t.precision,i=t.rounding;return-1!==r?0===r?e.isNeg()?nl(t,n,i):new t(0):new t(NaN):e.isZero()?nl(t,n+4,i).times(.5):(t.precision=n+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=n,t.rounding=i,e.times(2))},Ps.inverseHyperbolicCosine=Ps.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,Ns=!1,r=r.times(r).minus(1).sqrt().plus(r),Ns=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},Ps.inverseHyperbolicSine=Ps.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,Ns=!1,r=r.times(r).plus(1).sqrt().plus(r),Ns=!0,n.precision=e,n.rounding=t,r.ln())},Ps.inverseHyperbolicTangent=Ps.atanh=function(){var e,t,r,n,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,n=i.sd(),Math.max(n,e)<2*-i.e-1?Zs(new o(i),e,t,!0):(o.precision=r=n-i.e,i=$s(i.plus(1),new o(1).minus(i),r+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,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,-1!==t?0===t?((e=nl(o,r+4,n).times(.5)).s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))},Ps.inverseTangent=Ps.atan=function(){var e,t,r,n,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<=Vs)return(a=nl(u,f+4,d).times(.25)).s=c.s,a}else{if(!c.s)return new u(NaN);if(f+4<=Vs)return(a=nl(u,f+4,d).times(.5)).s=c.s,a}for(u.precision=s=f+10,u.rounding=1,e=r=Math.min(28,s/7+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(Ns=!1,t=Math.ceil(s/7),n=1,l=c.times(c),a=new u(c),i=c;-1!==e;)if(i=i.times(l),o=a.minus(i.div(n+=2)),i=i.times(l),void 0!==(a=o.plus(i.div(n+=2))).d[t])for(e=t;a.d[e]===o.d[e]&&e--;);return r&&(a=a.times(2<<r-1)),Ns=!0,Zs(a,u.precision=f,u.rounding=d,!0)},Ps.isFinite=function(){return!!this.d},Ps.isInteger=Ps.isInt=function(){return!!this.d&&Rs(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,r,n,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(r=(e=new u(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(r=c.d,c.s<0||!r||!r[0]||c.eq(1))return new u(r&&!r[0]?-1/0:1!=c.s?NaN:r?0:1/0);if(t)if(r.length>1)o=!0;else{for(i=r[0];i%10==0;)i/=10;o=1!==i}if(Ns=!1,a=ul(c,s=f+5),n=t?rl(u,s+10):ul(e,s),Ws((l=$s(a,n,s,1)).d,i=f,d))do{if(a=ul(c,s+=10),n=t?rl(u,s+10):ul(e,s),l=$s(a,n,s,1),!o){+Xs(l.d).slice(i+1,i+15)+1==1e14&&(l=Zs(l,f+1,0));break}}while(Ws(l.d,i+=10,d));return Ns=!0,Zs(l,f,d)},Ps.minus=Ps.sub=function(e){var t,r,n,i,o,a,s,l,c,u,f,d,g=this,p=g.constructor;if(e=new p(e),!g.d||!e.d)return g.s&&e.s?g.d?e.s=-e.s:e=new p(e.d||g.s!==e.s?g:NaN):e=new p(NaN),e;if(g.s!=e.s)return e.s=-e.s,g.plus(e);if(c=g.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(g)}return Ns?Zs(e,s,l):e}if(r=Rs(e.e/7),u=Rs(g.e/7),c=c.slice(),o=u-r){for((f=o<0)?(t=c,o=-o,a=d.length):(t=d,r=u,a=c.length),o>(n=Math.max(Math.ceil(s/7),a)+2)&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for((f=(n=c.length)<(a=d.length))&&(a=n),n=0;n<a;n++)if(c[n]!=d[n]){f=c[n]<d[n];break}o=0}for(f&&(t=c,c=d,d=t,e.s=-e.s),a=c.length,n=d.length-a;n>0;--n)c[a++]=0;for(n=d.length;n>o;){if(c[--n]<d[n]){for(i=n;i&&0===c[--i];)c[i]=Js-1;--c[i],c[n]+=Js}c[n]-=d[n]}for(;0===c[--a];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(e.d=c,e.e=tl(c,r),Ns?Zs(e,s,l):e):new p(3===l?-0:0)},Ps.modulo=Ps.mod=function(e){var t,r=this,n=r.constructor;return e=new n(e),!r.d||!e.s||e.d&&!e.d[0]?new n(NaN):!e.d||r.d&&!r.d[0]?Zs(new n(r),n.precision,n.rounding):(Ns=!1,9==n.modulo?(t=$s(r,e.abs(),0,3,1)).s*=e.s:t=$s(r,e,0,n.modulo,1),t=t.times(e),Ns=!0,r.minus(t))},Ps.naturalExponential=Ps.exp=function(){return cl(this)},Ps.naturalLogarithm=Ps.ln=function(){return ul(this)},Ps.negated=Ps.neg=function(){var e=new this.constructor(this);return e.s=-e.s,Zs(e)},Ps.plus=Ps.add=function(e){var t,r,n,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)),Ns?Zs(e,s,l):e;if(o=Rs(f.e/7),n=Rs(e.e/7),c=c.slice(),i=o-n){for(i<0?(r=c,i=-i,a=u.length):(r=u,n=o,a=c.length),i>(a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((a=c.length)-(i=u.length)<0&&(i=a,r=u,u=c,c=r),t=0;i;)t=(c[--i]=c[i]+u[i]+t)/Js|0,c[i]%=Js;for(t&&(c.unshift(t),++n),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=tl(c,n),Ns?Zs(e,s,l):e},Ps.precision=Ps.sd=function(e){var t,r=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Ms+e);return r.d?(t=il(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t},Ps.round=function(){var e=this,t=e.constructor;return Zs(new t(e),e.e+1,t.rounding)},Ps.sine=Ps.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:pl(e,2,t,t);r=(r=1.4*Math.sqrt(n))>16?16:0|r,t=t.times(1/hl(5,r)),t=pl(e,2,t,t);for(var i,o=new e(5),a=new e(16),s=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(a.times(i).minus(s))));return t}(n,Al(n,r)),n.precision=e,n.rounding=t,Zs(Cs>2?r.neg():r,e,t,!0)):new n(NaN)},Ps.squareRoot=Ps.sqrt=function(){var e,t,r,n,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(Ns=!1,0==(c=Math.sqrt(+a))||c==1/0?(((t=Xs(s)).length+l)%2==0&&(t+="0"),c=Math.sqrt(t),l=Rs((l+1)/2)-(l<0||l%2),n=new u(t=c==1/0?"5e"+l:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+l)):n=new u(c.toString()),r=(l=u.precision)+3;;)if(n=(o=n).plus($s(a,o,r+2,1)).times(.5),Xs(o.d).slice(0,r)===(t=Xs(n.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(Zs(n,l+1,1),e=!n.times(n).eq(a));break}if(!i&&(Zs(o,l+1,0),o.times(o).eq(a))){n=o;break}r+=4,i=1}return Ns=!0,Zs(n,l,u.rounding,e)},Ps.tangent=Ps.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(r=r.sin()).s=1,r=$s(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,Zs(2==Cs||4==Cs?r.neg():r,e,t,!0)):new n(NaN)},Ps.times=Ps.mul=function(e){var t,r,n,i,o,a,s,l,c,u=this,f=u.constructor,d=u.d,g=(e=new f(e)).d;if(e.s*=u.s,!(d&&d[0]&&g&&g[0]))return new f(!e.s||d&&!d[0]&&!g||g&&!g[0]&&!d?NaN:d&&g?0*e.s:e.s/0);for(r=Rs(u.e/7)+Rs(e.e/7),(l=d.length)<(c=g.length)&&(o=d,d=g,g=o,a=l,l=c,c=a),o=[],n=a=l+c;n--;)o.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)s=o[i]+g[n]*d[i-n-1]+t,o[i--]=s%Js|0,t=s/Js|0;o[i]=(o[i]+t)%Js|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=tl(o,r),Ns?Zs(e,f.precision,f.rounding):e},Ps.toBinary=function(e,t){return ml(this,2,e,t)},Ps.toDecimalPlaces=Ps.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(_s(e,0,Ds),void 0===t?t=n.rounding:_s(t,0,8),Zs(r,e+r.e+1,t))},Ps.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=el(n,!0):(_s(e,0,Ds),void 0===t?t=i.rounding:_s(t,0,8),r=el(n=Zs(new i(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},Ps.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?r=el(i):(_s(e,0,Ds),void 0===t?t=o.rounding:_s(t,0,8),r=el(n=Zs(new o(i),e+i.e+1,t),!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r},Ps.toFraction=function(e){var t,r,n,i,o,a,s,l,c,u,f,d,g=this,p=g.d,h=g.constructor;if(!p)return new h(g);if(c=r=new h(1),n=l=new h(0),a=(o=(t=new h(n)).e=il(p)-g.e-1)%7,t.d[0]=Os(10,a<0?7+a:a),null==e)e=o>0?t:c;else{if(!(s=new h(e)).isInt()||s.lt(c))throw Error(Ms+s);e=s.gt(t)?o>0?t:c:s}for(Ns=!1,s=new h(Xs(p)),u=h.precision,h.precision=o=7*p.length*2;f=$s(s,t,0,1,1),1!=(i=r.plus(f.times(n))).cmp(e);)r=n,n=i,i=c,c=l.plus(f.times(i)),l=i,i=t,t=s.minus(f.times(i)),s=i;return i=$s(e.minus(r),n,0,1,1),l=l.plus(i.times(c)),r=r.plus(i.times(n)),l.s=c.s=g.s,d=$s(c,n,o,1).minus(g).abs().cmp($s(l,r,o,1).minus(g).abs())<1?[c,n]:[l,r],h.precision=u,Ns=!0,d},Ps.toHexadecimal=Ps.toHex=function(e,t){return ml(this,16,e,t)},Ps.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),null==e){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:_s(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(Ns=!1,r=$s(r,e,0,t,1).times(e),Ns=!0,Zs(r)):(e.s=r.s,r=e),r},Ps.toNumber=function(){return+this},Ps.toOctal=function(e,t){return ml(this,8,e,t)},Ps.toPower=Ps.pow=function(e){var t,r,n,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(Os(+s,c));if((s=new l(s)).eq(1))return s;if(n=l.precision,o=l.rounding,e.eq(1))return Zs(s,n,o);if((t=Rs(e.e/7))>=e.d.length-1&&(r=c<0?-c:c)<=9007199254740991)return i=al(l,s,r,n),e.s<0?new l(1).div(i):Zs(i,n,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!=(r=Os(+s,c))&&isFinite(r)?new l(r+"").e:Rs(c*(Math.log("0."+Xs(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?a/0:0):(Ns=!1,l.rounding=s.s=1,r=Math.min(12,(t+"").length),(i=cl(e.times(ul(s,n+r)),n)).d&&Ws((i=Zs(i,n+5,1)).d,n,o)&&(t=n+10,+Xs((i=Zs(cl(e.times(ul(s,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=Zs(i,n+1,0))),i.s=a,Ns=!0,l.rounding=o,Zs(i,n,o))},Ps.toPrecision=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=el(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(_s(e,1,Ds),void 0===t?t=i.rounding:_s(t,0,8),r=el(n=Zs(new i(n),e,t),e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},Ps.toSignificantDigits=Ps.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(_s(e,1,Ds),void 0===t?t=r.rounding:_s(t,0,8)),Zs(new r(this),e,t)},Ps.toString=function(){var e=this,t=e.constructor,r=el(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r},Ps.truncated=Ps.trunc=function(){return Zs(new this.constructor(this),this.e+1,1)},Ps.valueOf=Ps.toJSON=function(){var e=this,t=e.constructor,r=el(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};var $s=function(){function e(e,t,r){var n,i=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+i,e[o]=n%r|0,i=n/r|0;return i&&e.unshift(i),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,o,a,s,l){var c,u,f,d,g,p,h,A,m,I,y,v,b,w,B,E,C,x,D,F,Q=n.constructor,S=n.s==i.s?1:-1,k=n.d,N=i.d;if(!(k&&k[0]&&N&&N[0]))return new Q(n.s&&i.s&&(k?!N||k[0]!=N[0]:N)?k&&0==k[0]||!N?0*S:S/0:NaN);for(l?(g=1,u=n.e-i.e):(l=Js,g=7,u=Rs(n.e/g)-Rs(i.e/g)),D=N.length,C=k.length,I=(m=new Q(S)).d=[],f=0;N[f]==(k[f]||0);f++);if(N[f]>(k[f]||0)&&u--,null==o?(w=o=Q.precision,a=Q.rounding):w=s?o+(n.e-i.e)+1:o,w<0)I.push(1),p=!0;else{if(w=w/g+2|0,f=0,1==D){for(d=0,N=N[0],w++;(f<C||d)&&w--;f++)B=d*l+(k[f]||0),I[f]=B/N|0,d=B%N|0;p=d||f<C}else{for((d=l/(N[0]+1)|0)>1&&(N=e(N,d,l),k=e(k,d,l),D=N.length,C=k.length),E=D,v=(y=k.slice(0,D)).length;v<D;)y[v++]=0;(F=N.slice()).unshift(0),x=N[0],N[1]>=l/2&&++x;do{d=0,(c=t(N,y,D,v))<0?(b=y[0],D!=v&&(b=b*l+(y[1]||0)),(d=b/x|0)>1?(d>=l&&(d=l-1),1==(c=t(h=e(N,d,l),y,A=h.length,v=y.length))&&(d--,r(h,D<A?F:N,A,l))):(0==d&&(c=d=1),h=N.slice()),(A=h.length)<v&&h.unshift(0),r(y,h,v,l),-1==c&&(c=t(N,y,D,v=y.length))<1&&(d++,r(y,D<v?F:N,v,l)),v=y.length):0===c&&(d++,y=[0]),I[f++]=d,c&&y[0]?y[v++]=k[E]||0:(y=[k[E]],v=1)}while((E++<C||void 0!==y[0])&&w--);p=void 0!==y[0]}I[0]||I.shift()}if(1==g)m.e=u,Es=p;else{for(f=1,d=I[0];d>=10;d/=10)f++;m.e=f+u*g-1,Zs(m,s?o+m.e+1:o,a,p)}return m}}();function Zs(e,t,r,n){var i,o,a,s,l,c,u,f,d,g=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])/Os(10,i-a-1)%10|0;else if((d=Math.ceil((o+1)/7))>=(s=f.length)){if(!n)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/Os(10,i-a-1)%10|0}if(n=n||t<0||void 0!==f[d+1]||(a<0?u:u%Os(10,i-a-1)),c=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(o>0?a>0?u/Os(10,i-a):0:f[d-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,c?(t-=e.e+1,f[0]=Os(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=Os(10,7-o),f[d]=a>0?(u/Os(10,i-a)%Os(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]==Js&&(f[0]=1));break}if(f[d]+=s,f[d]!=Js)break;f[d--]=0,s=1}for(o=f.length;0===f[--o];)f.pop()}return Ns&&(e.e>g.maxE?(e.d=null,e.e=NaN):e.e<g.minE&&(e.e=0,e.d=[0])),e}function el(e,t,r){if(!e.isFinite())return fl(e);var n,i=e.e,o=Xs(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+ol(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+ol(-i-1)+o,r&&(n=r-a)>0&&(o+=ol(n))):i>=a?(o+=ol(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+ol(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=ol(n))),o}function tl(e,t){var r=e[0];for(t*=7;r>=10;r/=10)t++;return t}function rl(e,t,r){if(t>zs)throw Ns=!0,r&&(e.precision=r),Error(Hs);return Zs(new e(Qs),t,1,!0)}function nl(e,t,r){if(t>Vs)throw Error(Hs);return Zs(new e(Ss),t,r,!0)}function il(e){var t=e.length-1,r=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function ol(e){for(var t="";e--;)t+="0";return t}function al(e,t,r,n){var i,o=new e(1),a=Math.ceil(n/7+4);for(Ns=!1;;){if(r%2&&Il((o=o.times(t)).d,a)&&(i=!0),0===(r=Rs(r/2))){r=o.d.length-1,i&&0===o.d[r]&&++o.d[r];break}Il((t=t.times(t)).d,a)}return Ns=!0,o}function sl(e){return 1&e.d[e.d.length-1]}function ll(e,t,r){for(var n,i,o=new e(t[0]),a=0;++a<t.length;){if(!(i=new e(t[a])).s){o=i;break}((n=o.cmp(i))===r||0===n&&o.s===r)&&(o=i)}return o}function cl(e,t){var r,n,i,o,a,s,l,c=0,u=0,f=0,d=e.constructor,g=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?(Ns=!1,l=p):l=t,s=new d(.03125);e.e>-2;)e=e.times(s),f+=5;for(l+=n=Math.log(Os(2,f))/Math.LN10*2+5|0,r=o=a=new d(1),d.precision=l;;){if(o=Zs(o.times(e),l,1),r=r.times(++u),Xs((s=a.plus($s(o,r,l,1))).d).slice(0,l)===Xs(a.d).slice(0,l)){for(i=f;i--;)a=Zs(a.times(a),l,1);if(null!=t)return d.precision=p,a;if(!(c<3&&Ws(a.d,l-n,g,c)))return Zs(a,d.precision=p,g,Ns=!0);d.precision=l+=10,r=o=s=new d(1),u=0,c++}a=s}}function ul(e,t){var r,n,i,o,a,s,l,c,u,f,d,g=1,p=e,h=p.d,A=p.constructor,m=A.rounding,I=A.precision;if(p.s<0||!h||!h[0]||!p.e&&1==h[0]&&1==h.length)return new A(h&&!h[0]?-1/0:1!=p.s?NaN:h?0:p);if(null==t?(Ns=!1,u=I):u=t,A.precision=u+=10,n=(r=Xs(h)).charAt(0),!(Math.abs(o=p.e)<15e14))return c=rl(A,u+2,I).times(o+""),p=ul(new A(n+"."+r.slice(1)),u-10).plus(c),A.precision=I,null==t?Zs(p,I,m,Ns=!0):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=Xs((p=p.times(e)).d)).charAt(0),g++;for(o=p.e,n>1?(p=new A("0."+r),o++):p=new A(n+"."+r.slice(1)),f=p,l=a=p=$s(p.minus(1),p.plus(1),u,1),d=Zs(p.times(p),u,1),i=3;;){if(a=Zs(a.times(d),u,1),Xs((c=l.plus($s(a,new A(i),u,1))).d).slice(0,u)===Xs(l.d).slice(0,u)){if(l=l.times(2),0!==o&&(l=l.plus(rl(A,u+2,I).times(o+""))),l=$s(l,new A(g),u,1),null!=t)return A.precision=I,l;if(!Ws(l.d,u-10,m,s))return Zs(l,A.precision=I,m,Ns=!0);A.precision=u+=10,c=a=p=$s(f.minus(1),f.plus(1),u,1),d=Zs(p.times(p),u,1),i=s=1}l=c,i+=2}}function fl(e){return String(e.s*e.s/0)}function dl(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(n,i)){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";e.d.push(+t),Ns&&(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 gl(e,t){var r,n,i,o,a,s,l,c,u;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),Gs.test(t))return dl(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Ys.test(t))r=16,t=t.toLowerCase();else if(Ts.test(t))r=2;else{if(!js.test(t))throw Error(Ms+t);r=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,n=e.constructor,a&&(o=(s=(t=t.replace(".","")).length)-o,i=al(n,new n(r),o,2*o)),o=u=(c=Ks(t,r,Js)).length-1;0===c[o];--o)c.pop();return o<0?new n(0*e.s):(e.e=tl(c,u),e.d=c,Ns=!1,a&&(e=$s(e,i,4*s)),l&&(e=e.times(Math.abs(l)<54?Os(2,l):oc.pow(2,l))),Ns=!0,e)}function pl(e,t,r,n,i){var o,a,s,l,c=e.precision,u=Math.ceil(c/7);for(Ns=!1,l=r.times(r),s=new e(n);;){if(a=$s(s.times(l),new e(t++*t++),c,1),s=i?n.plus(a):n.minus(a),n=$s(a.times(l),new e(t++*t++),c,1),void 0!==(a=s.plus(n)).d[u]){for(o=u;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=n,n=a,a=o}return Ns=!0,a.d.length=u+1,a}function hl(e,t){for(var r=e;--t;)r*=e;return r}function Al(e,t){var r,n=t.s<0,i=nl(e,e.precision,1),o=i.times(.5);if((t=t.abs()).lte(o))return Cs=n?4:1,t;if((r=t.divToInt(i)).isZero())Cs=n?3:2;else{if((t=t.minus(r.times(i))).lte(o))return Cs=sl(r)?n?2:3:n?4:1,t;Cs=sl(r)?n?1:4:n?3:2}return t.minus(i).abs()}function ml(e,t,r,n){var i,o,a,s,l,c,u,f,d,g=e.constructor,p=void 0!==r;if(p?(_s(r,1,Ds),void 0===n?n=g.rounding:_s(n,0,8)):(r=g.precision,n=g.rounding),e.isFinite()){for(p?(i=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):i=t,(a=(u=el(e)).indexOf("."))>=0&&(u=u.replace(".",""),(d=new g(1)).e=u.length-a,d.d=Ks(el(d),10,i),d.e=d.d.length),o=l=(f=Ks(u,10,i)).length;0==f[--l];)f.pop();if(f[0]){if(a<0?o--:((e=new g(e)).d=f,e.e=o,f=(e=$s(e,d,r,n,0,i)).d,o=e.e,c=Es),a=f[r],s=i/2,c=c||void 0!==f[r+1],c=n<4?(void 0!==a||c)&&(0===n||n===(e.s<0?3:2)):a>s||a===s&&(4===n||c||6===n&&1&f[r-1]||n===(e.s<0?8:7)),f.length=r,c)for(;++f[--r]>i-1;)f[r]=0,r||(++o,f.unshift(1));for(l=f.length;!f[l-1];--l);for(a=0,u="";a<l;a++)u+=Fs.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=Ks(u,i,t)).length;!f[l-1];--l);for(a=1,u="1.";a<l;a++)u+=Fs.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=fl(e);return e.s<0?"-"+u:u}function Il(e,t){if(e.length>t)return e.length=t,!0}function yl(e){return new this(e).abs()}function vl(e){return new this(e).acos()}function bl(e){return new this(e).acosh()}function wl(e,t){return new this(e).plus(t)}function Bl(e){return new this(e).asin()}function El(e){return new this(e).asinh()}function Cl(e){return new this(e).atan()}function xl(e){return new this(e).atanh()}function Dl(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,o=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?nl(this,n,i):new this(0)).s=e.s:!e.d||t.isZero()?(r=nl(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,r=this.atan($s(e,t,o,1)),t=nl(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan($s(e,t,o,1)):(r=nl(this,o,1).times(t.s>0?.25:.75)).s=e.s:r=new this(NaN),r}function Fl(e){return new this(e).cbrt()}function Ql(e){return Zs(e=new this(e),e.e+1,2)}function Sl(e,t,r){return new this(e).clamp(t,r)}function kl(e){if(!e||"object"!=typeof e)throw Error(qs+"Object expected");var t,r,n,i=!0===e.defaults,o=["precision",1,Ds,"rounding",0,8,"toExpNeg",-xs,0,"toExpPos",0,xs,"maxE",0,xs,"minE",-xs,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(r=o[t],i&&(this[r]=ks[r]),void 0!==(n=e[r])){if(!(Rs(n)===n&&n>=o[t+1]&&n<=o[t+2]))throw Error(Ms+r+": "+n);this[r]=n}if(r="crypto",i&&(this[r]=ks[r]),void 0!==(n=e[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(Ms+r+": "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(Ls);this[r]=!0}else this[r]=!1}return this}function Nl(e){return new this(e).cos()}function ql(e){return new this(e).cosh()}function Ml(e,t){return new this(e).div(t)}function Hl(e){return new this(e).exp()}function Ll(e){return Zs(e=new this(e),e.e+1,3)}function Ul(){var e,t,r=new this(0);for(Ns=!1,e=0;e<arguments.length;)if((t=new this(arguments[e++])).d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return Ns=!0,new this(1/0);r=t}return Ns=!0,r.sqrt()}function Rl(e){return e instanceof oc||e&&e.toStringTag===Us||!1}function Ol(e){return new this(e).ln()}function Tl(e,t){return new this(e).log(t)}function Yl(e){return new this(e).log(2)}function jl(e){return new this(e).log(10)}function Gl(){return ll(this,arguments,-1)}function Jl(){return ll(this,arguments,1)}function zl(e,t){return new this(e).mod(t)}function Vl(e,t){return new this(e).mul(t)}function Pl(e,t){return new this(e).pow(t)}function Xl(e){var t,r,n,i,o=0,a=new this(1),s=[];if(void 0===e?e=this.precision:_s(e,1,Ds),n=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));o<n;)(i=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(Ls);for(t=crypto.randomBytes(n*=4);o<n;)(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=n/4}else for(;o<n;)s[o++]=1e7*Math.random()|0;for(e%=7,(n=s[--o])&&e&&(i=Os(10,7-e),s[o]=(n/i|0)*i);0===s[o];o--)s.pop();if(o<0)r=0,s=[0];else{for(r=-1;0===s[0];r-=7)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<7&&(r-=7-n)}return a.e=r,a.d=s,a}function _l(e){return Zs(e=new this(e),e.e+1,this.rounding)}function Wl(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function Kl(e){return new this(e).sin()}function $l(e){return new this(e).sinh()}function Zl(e){return new this(e).sqrt()}function ec(e,t){return new this(e).sub(t)}function tc(){var e=0,t=arguments,r=new this(t[e]);for(Ns=!1;r.s&&++e<t.length;)r=r.plus(t[e]);return Ns=!0,Zs(r,this.precision,this.rounding)}function rc(e){return new this(e).tan()}function nc(e){return new this(e).tanh()}function ic(e){return Zs(e=new this(e),e.e+1,1)}Ps[Symbol.for("nodejs.util.inspect.custom")]=Ps.toString,Ps[Symbol.toStringTag]="Decimal";var oc=Ps.constructor=function e(t){var r,n,i;function o(e){var t,r,n,i=this;if(!(i instanceof o))return new o(e);if(i.constructor=o,Rl(e))return i.s=e.s,void(Ns?!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"===(n=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,r=e;r>=10;r/=10)t++;return void(Ns?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)):dl(i,e.toString())}if("string"===n)return 45===(r=e.charCodeAt(0))?(e=e.slice(1),i.s=-1):(43===r&&(e=e.slice(1)),i.s=1),Gs.test(e)?dl(i,e):gl(i,e);if("bigint"===n)return e<0?(e=-e,i.s=-1):i.s=1,dl(i,e.toString());throw Error(Ms+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=kl,o.clone=e,o.isDecimal=Rl,o.abs=yl,o.acos=vl,o.acosh=bl,o.add=wl,o.asin=Bl,o.asinh=El,o.atan=Cl,o.atanh=xl,o.atan2=Dl,o.cbrt=Fl,o.ceil=Ql,o.clamp=Sl,o.cos=Nl,o.cosh=ql,o.div=Ml,o.exp=Hl,o.floor=Ll,o.hypot=Ul,o.ln=Ol,o.log=Tl,o.log10=jl,o.log2=Yl,o.max=Gl,o.min=Jl,o.mod=zl,o.mul=Vl,o.pow=Pl,o.random=Xl,o.round=_l,o.sign=Wl,o.sin=Kl,o.sinh=$l,o.sqrt=Zl,o.sub=ec,o.sum=tc,o.tan=rc,o.tanh=nc,o.trunc=ic,void 0===t&&(t={}),t&&!0!==t.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],r=0;r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return o.config(t),o}(ks);function ac(e,t=0){if(Eo(t)||(t=0),t=eo(t),!ke(e))return"";return new oc(e).toDecimalPlaces(t,oc.ROUND_CEIL).toNumber()}function sc(e,t=0){if(!ke(e))return"";if(!Eo(t))return"";return e=Hn(e),Zi(e,t).toFixed(t)}function lc(e){let t=function(){let e=vn();return n||e.xss}();let r=function e(r){return xe(r)||Ee(r)?(Cr(r,function(t,n){r[n]=e(t)}),r):Fe(r)?t(r,{onIgnoreTagAttr:function(e,r,n,i){if("style"===r)return r+'="'+t.escapeAttrValue(n)+'"'}}):r}(Vi(e));return r}function cc(e,t){let r=is();if(!xe(e)&&!Ee(e))return r.reject("rs is not an array or object"),r;let n=!1;if(Ee(e)){n=!0;let t=[];Cr(e,(e,r)=>{t.push({k:r,v:e})}),e=t}ba(t)||(t=function(e){return e});let i=-1,o=[];return e.reduce(function(e,r){return e.then(function(e){o.push(e),i+=1;let a=i,s=r;return n&&(a=r.k,s=r.v),ba(t)?t(s,a):s})},Promise.resolve()).then(function(e){o.push(e),o=Ga(o),r.resolve(o)}).catch(function(e){r.reject(e)}),r}Qs=new oc(Qs),Ss=new oc(Ss);let uc={},fc={};function dc({tagName:e,path:t,attributes:r={},func:n}){let i=is();if("done"===uc[t])return i.resolve("loaded"),i;if("loading"===uc[t])return bs(()=>"done"===uc[t]).then(function(){i.resolve("loaded")}),i;uc[t]="loading";let o=document.createElement(e);return Cr(r,(e,t)=>{o.setAttribute(t,e)}),r.rel&&"stylesheet"===r.rel?(o.setAttribute("href",t),setTimeout(()=>{i.resolve(o),uc[t]="done"},1)):(o.src=t,o.addEventListener("load",()=>{let e;ba(n)?e=bs(n):(e=is(),e.resolve()),e.then(()=>ws(500)).then(function(){i.resolve(o),uc[t]="done"})}),o.addEventListener("error",()=>{i.reject(o),uc[t]="done"})),document.getElementsByTagName("head")[0].appendChild(o),i}function gc(e){let t=is();xe(e)||(e=[e]),Cr(e,(t,r)=>{De(t)&&(e[r]={path:t})});let r=Do(Dr(e,"path"),"|");return"done"===fc[r]?(t.resolve("loaded"),t):"loading"===fc[r]?(bs(()=>"done"===fc[r]).then(function(){t.resolve("loaded")}),t):(fc[r]="loading",Cr(e,(e,t)=>{e.type||(".js"===da(e.path,3)?e.type="js":".css"===da(e.path,4)?e.type="css":e.type="unknow")}),cc(e,e=>{let t=is();if("js"===e.type)t=dc({tagName:"script",path:e.path,attributes:{type:"text/javascript"},func:e.func});else if("css"===e.type)t=dc({tagName:"link",path:e.path,attributes:{rel:"stylesheet"}});else{let r="invalid pathItem.type: "+e.type;console.log(r),t.reject(r)}return t}).finally(()=>{fc[r]="done"}))}function pc(e){return ye(e).toUpperCase()}function hc(e,t,r){if(!Fe(e))return"";if(!Fe(t))return"";if(!De(r))return"";return String(e).replaceAll(t,r)}function Ac(e,t,r=1){return Fe(e)&&Eo(t)?(r=to(r)?eo(r):1,e.substring(t,t+r)):""}let mc={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 Ic(e){return vc(e,1)}function yc(e){return vc(e,360)}function vc(e,t=1){if(e.indexOf("%")>=0){if(!ke(e=hc(e,"%","")))throw new Error("invalid color: value is not a number");e=Hn(e)/100}else{if(!ke(e))throw new Error("invalid color: value is not a number");e=Hn(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 bc(e){if(!ke(e))throw new Error("invalid color: value is not a number");if((e=Hn(e))>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function wc(e,t="rgba"){if(!xe(e))throw new Error("invalid colors array");let r=Be(e,0,0),n=Be(e,1,0),i=Be(e,2,0),o=Be(e,3,1);if(4!==gn(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]:r,[s]:n,[l]:i,[c]:o}}function Bc(e){let t=(e=ga(e,1)).length;if(2===t)e=`${e}${e}${e}ff`;else if(3===t){let t=Ac(e,0,1),r=Ac(e,1,1),n=Ac(e,2,1);e=`${t}${t}${r}${r}${n}${n}ff`}else if(6===t)e=`${e}ff`;else if(8!==t)throw new Error("invalid hex color");function r(e){if(2!==e.length)throw new Error("hex.length of color is not equal to 2");if(!ke(e=parseInt(e,16)))throw new Error("invalid hex of color");return(e=Hn(e))/255}return{r:r(Ac(e,0,2)),g:r(Ac(e,2,2)),b:r(Ac(e,4,2)),a:r(Ac(e,6,2))}}function Ec(e){return e=wc(e=Dr(e,(e,t)=>t<=2?vc(e,255):3===t?bc(e):null),"rgba")}function Cc(e){return e=qc(e=wc(e=Dr(e,(e,t)=>0===t?yc(e):1===t||2===t?Ic(e):3===t?bc(e):null),"hsla"))}function xc(e){return e=Mc(e=wc(e=Dr(e,(e,t)=>0===t?yc(e):1===t||2===t?Ic(e):3===t?bc(e):null),"hsva"))}function Dc(e){if("transparent"===e)return{r:0,g:0,b:0,a:0};if(function(e){return Ne(mc,e)}(e))return Bc(e=function(e){return`#${mc[e]}`}(e));if(function(e){return"#"===fa(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 Bc(e);if(function(e){return"rgb"===fa(e,3)||"rgba"===fa(e,4)}(e))return function(e){return e=hc(e,"rgba",""),e=hc(e,"rgb",""),Ec(ua(e=hc(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsl"===fa(e,3)||"hsla"===fa(e,4)}(e))return function(e){return e=hc(e,"hsla",""),e=hc(e,"hsl",""),Cc(ua(e=hc(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsv"===fa(e,3)||"hsva"===fa(e,4)}(e))return function(e){return e=hc(e,"hsva",""),e=hc(e,"hsv",""),xc(ua(e=hc(e=e.replace(/[()]/g,""),","," ")," "))}(e);throw new Error("format of color string is not hex-color, name-color, rgba, hsla, hsva")}function Fc(e,t){return!!Ne(e,t=Bs(t))||!!Ne(e,t=pc(t))}function Qc(e,t,r){let n;return n=Be(e,t,null),null!==n?n:(n=Be(e,t=pc(t),null),null!==n?n:r)}function Sc(e){if(function(e){let t=Fc(e,"r"),r=Fc(e,"g"),n=Fc(e,"b");return t&&r&&n}(e))return function(e){let t=[Qc(e,"r",null),Qc(e,"g",null),Qc(e,"b",null),Qc(e,"a",1)];return t=Dr(t,ja),Ec(t)}(e);if(function(e){let t=Fc(e,"h"),r=Fc(e,"s"),n=Fc(e,"l");return t&&r&&n}(e))return function(e){let t=[Qc(e,"h",null),Qc(e,"s",null),Qc(e,"l",null),Qc(e,"a",1)];return t=Dr(t,ja),Cc(t)}(e);if(function(e){let t=Fc(e,"h"),r=Fc(e,"s"),n=Fc(e,"v");return t&&r&&n}(e))return function(e){let t=[Qc(e,"h",null),Qc(e,"s",null),Qc(e,"v",null),Qc(e,"a",1)];return t=Dr(t,ja),xc(t)}(e);throw new Error("color object is not one of rgba, hsla, hsva")}function kc(e){let t,r,n=e.r,i=e.g,o=e.b,a=Math.max(n,i,o),s=Math.min(n,i,o),l=(a+s)/2;if(a===s)t=r=0;else{let e=a-s;switch(r=l>.5?e/(2-a-s):e/(a+s),a){case n:t=(i-o)/e+(i<o?6:0);break;case i:t=(o-n)/e+2;break;case o:t=(n-i)/e+4}t/=6}return{h:t,s:r,l:l,a:e.a}}function Nc(e){let t,r,n=e.r,i=e.g,o=e.b,a=Math.max(n,i,o),s=Math.min(n,i,o),l=a,c=a-s;if(r=0===a?0:c/a,a===s)t=0;else{switch(a){case n:t=(i-o)/c+(i<o?6:0);break;case i:t=(o-n)/c+2;break;case o:t=(n-i)/c+4}t/=6}return{h:t,s:r,v:l,a:e.a}}function qc(e){let t,r,n,i=e.h,o=e.s,a=e.l;function s(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(0===o)t=r=n=a;else{let e=a<.5?a*(1+o):a+o-a*o,l=2*a-e;t=s(l,e,i+1/3),r=s(l,e,i),n=s(l,e,i-1/3)}return{r:t,g:r,b:n,a:e.a}}function Mc(e){let t,r,n,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,r=f,n=c;break;case 1:t=u,r=a,n=c;break;case 2:t=c,r=a,n=f;break;case 3:t=c,r=u,n=a;break;case 4:t=f,r=c,n=a;break;case 5:t=a,r=c,n=u}return{r:t,g:r,b:n,a:e.a}}function Hc(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 Lc(e,t=!0){let r=e.r,n=e.g,i=e.b,o=e.a,a=`${Hc(r)}${Hc(n)}${Hc(i)}`;return t&&(a=`${a}${Hc(o)}`),a}function Uc(e){return Math.min(1,Math.max(0,e))}function Rc(e,t){if(!Fe(t))throw new Error("fmtOutput is not a string");if(!Iu[t])throw console.log(`fmtOutput must be [${gt(Iu)}]`),new Error("invalid fmtOutput");return e=Iu[t](e)}function Oc(e,t,r="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let n=kc(e);return n.h+=t,n.h=n.h%1,Rc(qc(n),r)}function Tc(e,t,r,n,i="toRgbString"){if(t<0||t>1)throw new Error("w1 < 0 or > 1");if(n<0||n>1)throw new Error("w1 < 0 or > 1");return Rc({r:e.r*t+r.r*n,g:e.g*t+r.g*n,b:e.b*t+r.b*n,a:e.a*t+r.a*n},i)}function Yc(e){return`${Zi(100*e,1)}%`}function jc(e){return Zi(e,0)}function Gc(e){return Zi(e,3)}function Jc(e){return{r:jc(255*e.r),g:jc(255*e.g),b:jc(255*e.b)}}function zc(e){return`rgb(${jc(255*e.r)}, ${jc(255*e.g)}, ${jc(255*e.b)})`}function Vc(e){return{r:jc(255*e.r),g:jc(255*e.g),b:jc(255*e.b),a:Gc(e.a)}}function Pc(e){return`rgba(${jc(255*e.r)}, ${jc(255*e.g)}, ${jc(255*e.b)}, ${Gc(e.a)})`}function Xc(e){let t=kc(e);return{h:jc(360*t.h),s:Gc(t.s),l:Gc(t.l)}}function _c(e){let t=kc(e);return`hsl(${jc(360*t.h)}, ${Gc(t.s)}, ${Gc(t.l)})`}function Wc(e){let t=kc(e);return{h:jc(360*t.h),s:Gc(t.s),l:Gc(t.l),a:Gc(t.a)}}function Kc(e){let t=kc(e);return`hsla(${jc(360*t.h)}, ${Gc(t.s)}, ${Gc(t.l)}, ${Gc(t.a)})`}function $c(e){let t=Nc(e);return{h:jc(360*t.h),s:Gc(t.s),v:Gc(t.v)}}function Zc(e){let t=Nc(e);return`hsv(${jc(360*t.h)}, ${Gc(t.s)}, ${Gc(t.v)})`}function eu(e){let t=Nc(e);return{h:jc(360*t.h),s:Gc(t.s),v:Gc(t.v),a:Gc(t.a)}}function tu(e){let t=Nc(e);return`hsva(${jc(360*t.h)}, ${Gc(t.s)}, ${Gc(t.v)}, ${Gc(t.a)})`}function ru(e){return{r:Yc(e.r),g:Yc(e.g),b:Yc(e.b)}}function nu(e){return`rgb(${Yc(e.r)}, ${Yc(e.g)}, ${Yc(e.b)})`}function iu(e){return{r:Yc(e.r),g:Yc(e.g),b:Yc(e.b),a:Gc(e.a)}}function ou(e){return`rgba(${Yc(e.r)}, ${Yc(e.g)}, ${Yc(e.b)}, ${Gc(e.a)})`}function au(e){let t=kc(e);return{h:jc(360*t.h),s:Yc(t.s),l:Yc(t.l)}}function su(e){let t=kc(e);return`hsl(${jc(360*t.h)}, ${Yc(t.s)}, ${Yc(t.l)})`}function lu(e){let t=kc(e);return{h:jc(360*t.h),s:Yc(t.s),l:Yc(t.l),a:Gc(t.a)}}function cu(e){let t=kc(e);return`hsla(${jc(360*t.h)}, ${Yc(t.s)}, ${Yc(t.l)}, ${Gc(t.a)})`}function uu(e){let t=Nc(e);return{h:jc(360*t.h),s:Yc(t.s),v:Yc(t.v)}}function fu(e){let t=Nc(e);return`hsv(${jc(360*t.h)}, ${Yc(t.s)}, ${Yc(t.v)})`}function du(e){let t=Nc(e);return{h:jc(360*t.h),s:Yc(t.s),v:Yc(t.v),a:Gc(t.a)}}function gu(e){let t=Nc(e);return`hsva(${jc(360*t.h)}, ${Yc(t.s)}, ${Yc(t.v)}, ${Gc(t.a)})`}function pu(e){let t=function(e){return Lc(e,!1)}(e);return`#${t}`}function hu(e){return`#${Lc(e)}`}function Au(e){let t=null,r=null,n=null;if(Fe(e))t=Bs(la(e));else{if(!Ce(e))throw console.log("color=",e),new Error("color is not a string or an object");r=e}if(null!==t)try{n=Dc(t)}catch(e){throw console.log(e),new Error(`can not parse color: ${t}`)}else if(null!==r)try{n=Sc(r)}catch(e){throw console.log(e),new Error(`can not parse color: ${JSON.stringify(r)}`)}return n}function mu(e){if(!Ce(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 Cr(e,(e,r)=>{t.push([Hn(r),Vc(Au(e)),e])}),t=Ta(t,0),function(e){let r=null;for(let n=1;n<t.length;n++){let i=t[n-1][0],o=t[n-1][1],a=t[n][0],s=t[n][1];if(i<=e&&a>=e){let t=(a-e)/(a-i),n=(e-i)/(a-i);r=Tc(Au(o),t,Au(s),n,"toRgbaString");break}}return r}}let Iu={toRgb:Jc,toRgbString:zc,toRgba:Vc,toRgbaString:Pc,toHsl:Xc,toHslString:_c,toHsla:Wc,toHslaString:Kc,toHsv:$c,toHsvString:Zc,toHsva:eu,toHsvaString:tu,toRgbP:ru,toRgbPString:nu,toRgbaP:iu,toRgbaPString:ou,toHslP:au,toHslPString:su,toHslaP:lu,toHslaPString:cu,toHsvP:uu,toHsvPString:fu,toHsvaP:du,toHsvaPString:gu,toHexString:pu,toHex8String:hu};var yu={toRgb:e=>Jc(Au(e)),toRgbString:e=>zc(Au(e)),toRgba:e=>Vc(Au(e)),toRgbaString:e=>Pc(Au(e)),toHsl:e=>Xc(Au(e)),toHslString:e=>_c(Au(e)),toHsla:e=>Wc(Au(e)),toHslaString:e=>Kc(Au(e)),toHsv:e=>$c(Au(e)),toHsvString:e=>Zc(Au(e)),toHsva:e=>eu(Au(e)),toHsvaString:e=>tu(Au(e)),toRgbP:e=>ru(Au(e)),toRgbPString:e=>nu(Au(e)),toRgbaP:e=>iu(Au(e)),toRgbaPString:e=>ou(Au(e)),toHslP:e=>au(Au(e)),toHslPString:e=>su(Au(e)),toHslaP:e=>lu(Au(e)),toHslaPString:e=>cu(Au(e)),toHsvP:e=>uu(Au(e)),toHsvPString:e=>fu(Au(e)),toHsvaP:e=>du(Au(e)),toHsvaPString:e=>gu(Au(e)),toHexString:e=>pu(Au(e)),toHex8String:e=>hu(Au(e)),modSaturate:(e,t,r)=>function(e,t,r="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let n=kc(e);return n.s+=t,n.s=Uc(n.s),Rc(qc(n),r)}(Au(e),t,r),modGrey:(e,t)=>function(e,t="toRgbString"){let r=kc(e);return r.s=0,Rc(qc(r),t)}(Au(e),t),modLighten:(e,t,r)=>function(e,t,r="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let n=kc(e);return n.l+=t,n.l=Uc(n.l),Rc(qc(n),r)}(Au(e),t,r),modBrighten:(e,t,r)=>function(e,t,r="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");return e.r+=t,e.r=Uc(e.r),e.g+=t,e.g=Uc(e.g),e.b+=t,e.b=Uc(e.b),Rc(e,r)}(Au(e),t,r),modHue:(e,t,r)=>Oc(Au(e),t,r),modComplement:(e,t)=>function(e,t="toRgbString"){return Oc(e,.5,t)}(Au(e),t),spreadHue:(e,t,r)=>function(e,t,r="toRgbString"){if(!Ln(t))throw new Error("num is not an integer");if((t=eo(t))<=1)return[e];let n=kc(e),i=1/t,o=[];for(let e=0;e<t;e++)o.push(Rc(qc(n),r)),n.h+=i,n.h=n.h%1;return o}(Au(e),t,r),spreadMonochromatic:(e,t,r)=>function(e,t,r="toRgbString"){if(!Ln(t))throw new Error("num is not an integer");if((t=eo(t))<=1)return[e];let n=Nc(e);n.s=1,n.l=1;let i=1/t,o=[];for(let e=0;e<t;e++)o.push(Rc(Mc(n),r)),n.h-=i,n.l-=i;return o}(Au(e),t,r),mix:(e,t,r,n,i)=>Tc(Au(e),t,Au(r),n,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}(Au(e)),getLuminance:e=>function(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");let t,r,n,i=e.r,o=e.g,a=e.b;return t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),r=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),n=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),.2126*t+.7152*r+.0722*n}(Au(e)),interp:mu};function vu(e,t,r){return null==e?e:function(e,t,r,n){if(!R(e))return e;for(var i=-1,o=(t=ve(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=be(t[i]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=n?n(u,l,s):void 0)&&(c=R(u)?u:Xe(t[i+1])?[]:{})}hi(s,l,c),s=s[l]}return e}(e,t,r)}function bu(e){return br(e)?void 0:e}var wu=wo(function(e,t){var r={};if(null==e)return r;var n=!1;t=he(t,function(t){return t=ve(t,e),n||(n=t.length>1),t}),Ai(e,xi(e),r),n&&(r=zi(r,7,bu));for(var i=t.length;i--;)Na(r,t[i]);return r}),Bu=wu;function Eu(e,t={}){let r="$level",n="$parents";if(!Or(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);hn(s)||(s=!1),e=function(e){let t=[];function a(a){let s=[];Cr(e,(e,l)=>{let c=Be(e,o),u=Be(a,i);if(c&&u&&c===u){let o=Be(a,n,[]);o=Vi(o),o.push(a[i]),t.push({[r]:a[r]+1,[n]:o,...e})}else s.push(e)}),e=s}if(e=Vi(e),function(){let i=[];Cr(e,(e,a)=>{Rr(e[o])?t.push({[r]:0,[n]:[],...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:Bu(e,[r,n])}let c={};return Cr(e,(n,s)=>{if(0===n[r]){let e=l(n);t.push(e),c[n[i]]=[s]}else{let r=function(t){for(let r=0;r<e.length;r++){let n=e[r];if(t[o]===n[i])return n}return null}(n);if(null!==r){let e=c[r[i]];e=[...e,a];let o=Be(t,e,[]),s=l(n);o.push(s),c[n[i]]=[...e,o.length-1],vu(t,e,o)}else console.log(`can not find parent for ${Be(n,o)}`)}}),t}(e);return l}function Cu(e,t=null,r={}){O(t)||(t=e=>e);let n=Be(r,"force",!1);return hn(n)||(n=!1),function(e,t,r=!1){let n=[];if(!xe(e)&&!Ee(e))return t(e,null,[]);function i(e){if(xe(e))return so(gn(e));if(Ee(e)){let t=Object.getOwnPropertyNames(e),n=null;return r&&(n=Object.getOwnPropertySymbols(e)),xe(t)||(t=[]),xe(n)||(n=[]),[...t,...n]}return e}return function e(r,o){if(xe(r))return i(r).map(i=>{let o=r[i],a=Vi(n);return n.push(i),o=t(o,i,a),o=e(o),n.pop(),o});if(Ee(r)){let o=i(r),a={};return o.map(i=>{let o=r[i],s=Vi(n);n.push(i),o=t(o,i,s),o=e(o),n.pop(),a[i]=o}),a}return r}(e)}(e,t,n)}function xu(e,t={}){if(!Ce(e)&&!Or(e))return[];let r=Be(t,"bindKey",null);Fe(r)||(r="id");let n=Be(t,"bindParent",null);Fe(n)||(n="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=Dr(e=Vi(e),e=>M(e)?ja(e):e),M(t)&&(t=ja(t)),(Fe(t)||ke(t))&&e.push(t),Do(e,"-")}Fe(s)||(s="numOfChilren");let c=[];return Cu(e,(e,t,u)=>{let f=l(u,t),d=l(u,null),g="node";Ee(e)?g="object":xe(e)&&(g="array");let p={[r]:f,[n]:d,[a]:g};if((Fe(t)||ya(t))&&(p[i]=t),Ee(e)||xe(e)||(p[o]=e),Ee(e)||xe(e)){let t=null;Ee(e)?t=gn(gt(e)):xe(e)&&(t=gn(e)),p[s]=t}return c.push(p),e},{force:!0}),c}function Du(e){if(!wr(e))return"invalid element";let t=!1;try{t=document.activeElement===e}catch(e){console.log(e)}return t}function Fu(e){return ke(e)?(e=Hn(e),Math.cos(e*Math.PI/180)):null}function Qu(e){return ke(e)?(e=Hn(e),Math.tan(e*Math.PI/180)):null}function Su(){let e=new function e(){if(!(this instanceof e))return new e;this.SheetNames=[],this.Sheets={}};return e}function ku(e){return ke(e)?(e=Hn(e),Math.sin(e*Math.PI/180)):null}function Nu(e){if(!Fe(e))return!1;let t="YYYY-MM-DD";return e===r(e,t).format(t)}function qu(e=300){return new function(e){let t=[],r=null,n=Date.now();return to(e)||(e=300),e=eo(e),function(i,...o){ba(i)?(n=Date.now(),t.push({func:i,input:o}),null===r&&(r=setInterval(()=>{if(0===gn(t))return clearInterval(r),void(r=null);if(Date.now()-n>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 Mu="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),Hu=Mu.length;function Lu(e=32){let t=[];e=to(e)?eo(e):32;for(let r=0;r<e;r++)t[r]=Mu[0|Math.random()*Hu];return t.join("")}function Uu(e,t={}){if(!wr(e))return;let r=Be(t,"duration",500);r=Hn(r),r<0&&(r=1e3);let n=Be(t,"delay",0);n=Hn(n),n<0&&(n=0);let i=Be(t,"opacityIni",0);i=Hn(i),i=Math.min(Math.max(i,0),1),ke(e.style.opacity)&&(i=Hn(e.style.opacity));let o=10/r,a=`tag-${Lu()}`;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)},n)}function Ru(e,t={}){if(!wr(e))return;let r=Be(t,"duration",500);r=Hn(r),r<0&&(r=1e3);let n=Be(t,"delay",0);n=Hn(n),n<0&&(n=0);let i=Be(t,"opacityIni",1);i=Hn(i),i=Math.min(Math.max(i,0),1),ke(e.style.opacity)&&(i=Hn(e.style.opacity));let o=10/r,a=`tag-${Lu()}`;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)},n)}let Ou='<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>',Tu={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:Ou},Yu={},ju=null,Gu=vn();function Ju(){Cr(["top-right","top-left","bottom-right","bottom-left"],e=>{!function(e){let t=ha(Yu,{position:e});t=Ta(t,"timeStart");let r=16;Cr(t,e=>{Yu[e.id].ele||(Yu[e.id].ele=document.querySelector(`#${e.id}`)),Yu[e.id].loc.top=r,Yu[e.id].loc.height=Yu[e.id].ele.offsetHeight,r+=Yu[e.id].loc.height+16}),Cr(t,t=>{e.indexOf("bottom-")>=0?(Yu[t.id].ele.style.bottom=`${Yu[t.id].loc.top}px`,Yu[t.id].loc.bottom=Yu[t.id].loc.top):Yu[t.id].ele.style.top=`${Yu[t.id].loc.top}px`,e.indexOf("-left")>=0?(Yu[t.id].ele.style.left="16px",Yu[t.id].loc.left=16):(Yu[t.id].ele.style.right="16px",Yu[t.id].loc.right=16),Yu[t.id].ele.style.zIndex=2e5,Yu[t.id].ele.style.opacity=1,Yu[t.id].ele.style.transform="",Yu[t.id].ele.style.transform=null})}(e)})}function zu(e){Yu[e].ele&&Yu[e].ele.parentNode.removeChild(Yu[e].ele),Yu[e]&&delete Yu[e],Ju()}function Vu(e,t){if(!wr(e))return"invalid eleParent";if(De(t))e.insertAdjacentHTML("beforeend",t);else{if(!wr(t))return"invalid itemChild";e.appendChild(t)}}function Pu(){return null!==navigator.userAgent.toLowerCase().match(/rv:([\d.]+)\) like gecko/)}function Xu(e){if(!e)return"invalid event";if(!e.cancelable)return"event is not cancelable";try{Pu()?e.cancelBubble=!0:e.stopPropagation(),e.preventDefault()}catch(e){}}var _u;Gu.ttWAlertCancel=function(e){zu(e)},Gu.ttWAlertFadeIn=function(e){Uu(document.querySelector(`#${e}`))},Gu.ttWAlertFadeOut=function(e){Ru(document.querySelector(`#${e}`))},function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(_u||(_u={}));var Wu;!function(e){e.AUTO="auto",e.DARK="dark",e.LIGHT="light"}(Wu||(Wu={}));const Ku=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");function $u(e){return e?e.replace(/\\/g,"/"):e}function Zu(e){const t=e.length;let r=-1/0;for(let n=0;n<t;n++)r=Math.max(r,e[n]);return r}function ef(e,t){const r=e.split(".");return r.length>1?r[r.length-1]:t}function tf(e,t){return t.reduce((t,r)=>t||e.startsWith(r),!1)}const rf=["a/","b/","i/","w/","c/","o/"];function nf(e,t,r){const n=void 0!==r?[...rf,r]:rf,i=t?new RegExp(`^${o=t,o.replace(Ku,"\\$&")} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$');var o;const[,a=""]=i.exec(e)||[],s=n.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 of(e,t={}){const r=[];let n=null,i=null,o=null,a=null,s=null,l=null,c=null;const u="--- ",f="+++ ",d="@@",g=/^old mode (\d{6})/,p=/^new mode (\d{6})/,h=/^deleted file mode (\d{6})/,A=/^new file mode (\d{6})/,m=/^copy from "?(.+)"?/,I=/^copy to "?(.+)"?/,y=/^rename from "?(.+)"?/,v=/^rename to "?(.+)"?/,b=/^similarity index (\d+)%/,w=/^dissimilarity index (\d+)%/,B=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,E=/^Binary files (.*) and (.*) differ/,C=/^GIT binary patch/,x=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,D=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,F=/^new file mode (\d{6})/,Q=/^deleted file mode (\d{6}),(\d{6})/,S=e.replace(/\/g,"").replace(/\r\n?/g,"\n").split("\n");function k(){null!==i&&null!==n&&(n.blocks.push(i),i=null)}function N(){null!==n&&(n.oldName||null===l||(n.oldName=l),n.newName||null===c||(n.newName=c),n.newName&&(r.push(n),n=null)),l=null,c=null}function q(){k(),N(),n={blocks:[],deletedLines:0,addedLines:0}}function M(e){let t;k(),null!==n&&((t=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(n.isCombined=!1,o=parseInt(t[1],10),s=parseInt(t[2],10)):(t=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(n.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,n.isCombined=!1)),i={lines:[],oldStartLine:o,oldStartLine2:a,newStartLine:s,header:e}}return S.forEach((e,a)=>{if(!e||e.startsWith("*"))return;let k;const N=S[a-1],H=S[a+1],L=S[a+2];if(e.startsWith("diff --git")||e.startsWith("diff --combined")){q();if((k=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(e))&&(l=nf(k[1],void 0,t.dstPrefix),c=nf(k[2],void 0,t.srcPrefix)),null===n)throw new Error("Where is my file !!!");return void(n.isGitDiff=!0)}if(e.startsWith("Binary files")&&!(null==n?void 0:n.isGitDiff)){q();if((k=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(e))&&(l=nf(k[1],void 0,t.dstPrefix),c=nf(k[2],void 0,t.srcPrefix)),null===n)throw new Error("Where is my file !!!");return void(n.isBinary=!0)}if((!n||!n.isGitDiff&&n&&e.startsWith(u)&&H.startsWith(f)&&L.startsWith(d))&&q(),null==n?void 0:n.isTooBig)return;if(n&&("number"==typeof t.diffMaxChanges&&n.addedLines+n.deletedLines>t.diffMaxChanges||"number"==typeof t.diffMaxLineLength&&e.length>t.diffMaxLineLength)){n.isTooBig=!0,n.addedLines=0,n.deletedLines=0,n.blocks=[],i=null;return void M("function"==typeof t.diffTooBigMessage?t.diffTooBigMessage(r.length):"Diff too big to be displayed")}if(e.startsWith(u)&&H.startsWith(f)||e.startsWith(f)&&N.startsWith(u)){if(n&&!n.oldName&&e.startsWith("--- ")&&(k=function(e,t){return nf(e,"---",t)}(e,t.srcPrefix)))return n.oldName=k,void(n.language=ef(n.oldName,n.language));if(n&&!n.newName&&e.startsWith("+++ ")&&(k=function(e,t){return nf(e,"+++",t)}(e,t.dstPrefix)))return n.newName=k,void(n.language=ef(n.newName,n.language))}if(n&&(e.startsWith(d)||n.isGitDiff&&n.oldName&&n.newName&&!i))return void M(e);if(i&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))return void function(e){if(null===n||null===i||null===o||null===s)return;const t={content:e},r=n.isCombined?["+ "," +","++"]:["+"],a=n.isCombined?["- "," -","--"]:["-"];tf(e,r)?(n.addedLines++,t.type=_u.INSERT,t.oldNumber=void 0,t.newNumber=s++):tf(e,a)?(n.deletedLines++,t.type=_u.DELETE,t.oldNumber=o++,t.newNumber=void 0):(t.type=_u.CONTEXT,t.oldNumber=o++,t.newNumber=s++),i.lines.push(t)}(e);const U=!function(e,t){let r=t;for(;r<S.length-3;){if(e.startsWith("diff"))return!1;if(S[r].startsWith(u)&&S[r+1].startsWith(f)&&S[r+2].startsWith(d))return!0;r++}return!1}(e,a);if(null===n)throw new Error("Where is my file !!!");(k=g.exec(e))?n.oldMode=k[1]:(k=p.exec(e))?n.newMode=k[1]:(k=h.exec(e))?(n.deletedFileMode=k[1],n.isDeleted=!0):(k=A.exec(e))?(n.newFileMode=k[1],n.isNew=!0):(k=m.exec(e))?(U&&(n.oldName=k[1]),n.isCopy=!0):(k=I.exec(e))?(U&&(n.newName=k[1]),n.isCopy=!0):(k=y.exec(e))?(U&&(n.oldName=k[1]),n.isRename=!0):(k=v.exec(e))?(U&&(n.newName=k[1]),n.isRename=!0):(k=E.exec(e))?(n.isBinary=!0,n.oldName=nf(k[1],void 0,t.srcPrefix),n.newName=nf(k[2],void 0,t.dstPrefix),M("Binary file")):C.test(e)?(n.isBinary=!0,M(e)):(k=b.exec(e))?n.unchangedPercentage=parseInt(k[1],10):(k=w.exec(e))?n.changedPercentage=parseInt(k[1],10):(k=B.exec(e))?(n.checksumBefore=k[1],n.checksumAfter=k[2],k[3]&&(n.mode=k[3])):(k=x.exec(e))?(n.checksumBefore=[k[2],k[3]],n.checksumAfter=k[1]):(k=D.exec(e))?(n.oldMode=[k[2],k[3]],n.newMode=k[1]):(k=F.exec(e))?(n.newFileMode=k[1],n.isNew=!0):(k=Q.exec(e))&&(n.deletedFileMode=k[1],n.isDeleted=!0)}),k(),N(),r}class af{diff(e,t,r={}){let n;"function"==typeof r?(n=r,r={}):"callback"in r&&(n=r.callback);const i=this.castInput(e,r),o=this.castInput(t,r),a=this.removeEmpty(this.tokenize(i,r)),s=this.removeEmpty(this.tokenize(o,r));return this.diffWithOptionsObj(a,s,r,n)}diffWithOptionsObj(e,t,r,n){var i;const o=e=>(e=this.postProcess(e,r),n?void setTimeout(function(){n(e)},0):e),a=t.length,s=e.length;let l=1,c=a+s;null!=r.maxEditLength&&(c=Math.min(c,r.maxEditLength));const u=null!==(i=r.timeout)&&void 0!==i?i:1/0,f=Date.now()+u,d=[{oldPos:-1,lastComponent:void 0}];let g=this.extractCommon(d[0],t,e,0,r);if(d[0].oldPos+1>=s&&g+1>=a)return o(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,h=1/0;const A=()=>{for(let n=Math.max(p,-l);n<=Math.min(h,l);n+=2){let i;const l=d[n-1],c=d[n+1];l&&(d[n-1]=void 0);let u=!1;if(c){const e=c.oldPos-n;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,r):this.addToPath(l,!1,!0,1,r),g=this.extractCommon(i,t,e,n,r),i.oldPos+1>=s&&g+1>=a)return o(this.buildValues(i.lastComponent,t,e))||!0;d[n]=i,i.oldPos+1>=s&&(h=Math.min(h,n-1)),g+1>=a&&(p=Math.max(p,n+1))}else d[n]=void 0}l++};if(n)!function e(){setTimeout(function(){if(l>c||Date.now()>f)return n(void 0);A()||e()},0)}();else for(;l<=c&&Date.now()<=f;){const e=A();if(e)return e}}addToPath(e,t,r,n,i){const o=e.lastComponent;return o&&!i.oneChangePerToken&&o.added===t&&o.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:o.count+1,added:t,removed:r,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:o}}}extractCommon(e,t,r,n,i){const o=t.length,a=r.length;let s=e.oldPos,l=s-n,c=0;for(;l+1<o&&s+1<a&&this.equals(r[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,r){return r.comparator?r.comparator(e,t):e===t||!!r.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let r=0;r<e.length;r++)e[r]&&t.push(e[r]);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,r){const n=[];let i;for(;e;)n.push(e),i=e.previousComponent,delete e.previousComponent,e=i;n.reverse();const o=n.length;let a=0,s=0,l=0;for(;a<o;a++){const e=n[a];if(e.removed)e.value=this.join(r.slice(l,l+e.count)),l+=e.count;else{if(!e.added&&this.useLongestToken){let n=t.slice(s,s+e.count);n=n.map(function(e,t){const n=r[l+t];return n.length>e.length?n:e}),e.value=this.join(n)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(l+=e.count)}}return n}}const sf=new class extends af{};const lf="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 cf=new class extends af{tokenize(e){const t=new RegExp(`(\\r?\\n)|[${lf}]+|[^\\S\\n\\r]+|[^${lf}]`,"ug");return e.match(t)||[]}};function uf(e){return(t,r)=>{const n=e(t).trim(),i=e(r).trim();return function(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;const r=[];let n,i;for(n=0;n<=t.length;n++)r[n]=[n];for(i=0;i<=e.length;i++)r[0][i]=i;for(n=1;n<=t.length;n++)for(i=1;i<=e.length;i++)t.charAt(n-1)===e.charAt(i-1)?r[n][i]=r[n-1][i-1]:r[n][i]=Math.min(r[n-1][i-1]+1,Math.min(r[n][i-1]+1,r[n-1][i]+1));return r[t.length][e.length]}(n,i)/(n.length+i.length)}}function ff(e){return function t(r,n,i=0,o=new Map){const a=function(t,r,n=new Map){let i,o=1/0;for(let a=0;a<t.length;++a)for(let s=0;s<r.length;++s){const l=JSON.stringify([t[a],r[s]]);let c;n.has(l)&&(c=n.get(l))||(c=e(t[a],r[s]),n.set(l,c)),c<o&&(o=c,i={indexA:a,indexB:s,score:o})}return i}(r,n,o);if(!a||r.length+n.length<3)return[[r,n]];const s=r.slice(0,a.indexA),l=n.slice(0,a.indexB),c=[r[a.indexA]],u=[n[a.indexB]],f=a.indexA+1,d=a.indexB+1,g=r.slice(f),p=n.slice(d),h=t(s,l,i+1,o),A=t(c,u,i+1,o),m=t(g,p,i+1,o);let I=A;return(a.indexA>0||a.indexB>0)&&(I=h.concat(I)),(r.length>f||n.length>d)&&(I=I.concat(m)),I}}const df={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:Wu.LIGHT},pf="/",hf=uf(e=>e.value),Af=ff(hf);function mf(e){return-1!==e.indexOf("dev/null")}function If(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function yf(e){switch(e){case _u.CONTEXT:return df.CONTEXT;case _u.INSERT:return df.INSERTS;case _u.DELETE:return df.DELETES}}function vf(e){switch(e){case Wu.DARK:return"d2h-dark-color-scheme";case Wu.AUTO:return"d2h-auto-color-scheme";case Wu.LIGHT:default:return"d2h-light-color-scheme"}}function bf(e){return e.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function wf(e,t,r=!0){const n=function(e){return e?2:1}(t);return{prefix:e.substring(0,n),content:r?bf(e.substring(n)):e.substring(n)}}function Bf(e){const t=$u(e.oldName),r=$u(e.newName);if(t===r||mf(t)||mf(r))return mf(r)?t:r;{const e=[],n=[],i=t.split(pf),o=r.split(pf);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];)n.unshift(o[l]),s-=1,l-=1;const c=e.join(pf),u=n.join(pf),f=i.slice(a,s+1).join(pf),d=o.slice(a,l+1).join(pf);return c.length&&u.length?c+pf+"{"+f+" → "+d+"}"+pf+u:c.length?c+pf+"{"+f+" → "+d+"}":u.length?"{"+f+" → "+d+"}"+pf+u:t+" → "+r}}function Ef(e){return`d2h-${function(e){let t,r,n,i=0;for(t=0,n=e.length;t<n;t++)r=e.charCodeAt(t),i=(i<<5)-i+r,i|=0;return i}(Bf(e)).toString().slice(-6)}`}function Cf(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 xf(e,t,r,n={}){const{matching:i,maxLineLengthHighlight:o,matchWordsThreshold:a,diffStyle:s}=Object.assign(Object.assign({},gf),n),l=wf(e,r,!1),c=wf(t,r,!1);if(l.content.length>o||c.content.length>o)return{oldLine:{prefix:l.prefix,content:bf(l.content)},newLine:{prefix:c.prefix,content:bf(c.content)}};const u="char"===s?(f=l.content,d=c.content,sf.diff(f,d,g)):function(e,t,r){return cf.diff(e,t,r)}(l.content,c.content);var f,d,g;const p=[];if("word"===s&&"words"===i){const e=u.filter(e=>e.removed),t=u.filter(e=>e.added);Af(t,e).forEach(e=>{if(1===e[0].length&&1===e[1].length){hf(e[0][0],e[1][0])<a&&(p.push(e[0][0]),p.push(e[1][0]))}})}const h=u.reduce((e,t)=>{const r=t.added?"ins":t.removed?"del":null,n=p.indexOf(t)>-1?' class="d2h-change"':"",i=bf(t.value);return null!==r?`${e}<${r}${n}>${i}</${r}>`:`${e}${i}`},"");return{oldLine:{prefix:l.prefix,content:(A=h,A.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:c.prefix,content:If(h)}};var A}const Df="file-summary",Ff={colorScheme:gf.colorScheme};class Qf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Ff),t)}render(e){const t=e.map(e=>this.hoganUtils.render(Df,"line",{fileHtmlId:Ef(e),oldName:e.oldName,newName:e.newName,fileName:Bf(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:this.hoganUtils.template("icon",Cf(e))})).join("\n");return this.hoganUtils.render(Df,"wrapper",{colorScheme:vf(this.config.colorScheme),filesNumber:e.length,files:t})}}const Sf=Object.assign(Object.assign({},gf),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),kf="generic",Nf="line-by-line";class qf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Sf),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(kf,"wrapper",{colorScheme:vf(this.config.colorScheme),content:t})}makeFileDiffHtml(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";const r=this.hoganUtils.template(Nf,"file-diff"),n=this.hoganUtils.template(kf,"file-path"),i=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",Cf(e));return r.render({file:e,fileHtmlId:Ef(e),diffs:t,filePath:n.render({fileDiffName:Bf(e)},{fileIcon:i,fileTag:o})})}generateEmptyDiff(){return this.hoganUtils.render(kf,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:df})}generateFileHtml(e){const t=ff(uf(t=>wf(t.content,e.isCombined).content));return e.blocks.map(r=>{let n=this.hoganUtils.render(kf,"block-header",{CSSLineClass:df,blockHeader:e.isTooBig?r.header:bf(r.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(r).forEach(([r,i,o])=>{if(i.length&&o.length&&!r.length)this.applyRematchMatching(i,o,t).map(([t,r])=>{const{left:i,right:o}=this.processChangedLines(e,e.isCombined,t,r);n+=i,n+=o});else if(r.length)r.forEach(t=>{const{prefix:r,content:i}=wf(t.content,e.isCombined);n+=this.generateSingleLineHtml(e,{type:df.CONTEXT,prefix:r,content:i,oldNumber:t.oldNumber,newNumber:t.newNumber})});else if(i.length||o.length){const{left:t,right:r}=this.processChangedLines(e,e.isCombined,i,o);n+=t,n+=r}else console.error("Unknown state reached while processing groups of lines",r,i,o)}),n}).join("\n")}applyLineGroupping(e){const t=[];let r=[],n=[];for(let i=0;i<e.lines.length;i++){const o=e.lines[i];(o.type!==_u.INSERT&&n.length||o.type===_u.CONTEXT&&r.length>0)&&(t.push([[],r,n]),r=[],n=[]),o.type===_u.CONTEXT?t.push([[o],[],[]]):o.type===_u.INSERT&&0===r.length?t.push([[],[],[o]]):o.type===_u.INSERT&&r.length>0?n.push(o):o.type===_u.DELETE&&r.push(o)}return(r.length||n.length)&&(t.push([[],r,n]),r=[],n=[]),t}applyRematchMatching(e,t,r){const n=e.length*t.length,i=Zu(e.concat(t).map(e=>e.content.length));return n<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?r(e,t):[[e,t]]}processChangedLines(e,t,r,n){const i={right:"",left:""},o=Math.max(r.length,n.length);for(let a=0;a<o;a++){const o=r[a],s=n[a],l=void 0!==o&&void 0!==s?xf(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:df.DELETE_CHANGES}:Object.assign(Object.assign({},wf(o.content,t)),{type:yf(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:df.INSERT_CHANGES}:Object.assign(Object.assign({},wf(s.content,t)),{type:yf(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,r){return{left:this.generateSingleLineHtml(e,t),right:this.generateSingleLineHtml(e,r)}}generateSingleLineHtml(e,t){if(void 0===t)return"";const r=this.hoganUtils.render(Nf,"numbers",{oldNumber:t.oldNumber||"",newNumber:t.newNumber||""});return this.hoganUtils.render(kf,"line",{type:t.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===t.prefix?"&nbsp;":t.prefix,content:t.content,lineNumber:r,line:t,file:e})}}const Mf=Object.assign(Object.assign({},gf),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Hf="generic";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(Hf,"wrapper",{colorScheme:vf(this.config.colorScheme),content:t})}makeFileDiffHtml(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";const r=this.hoganUtils.template("side-by-side","file-diff"),n=this.hoganUtils.template(Hf,"file-path"),i=this.hoganUtils.template("icon","file"),o=this.hoganUtils.template("tag",Cf(e));return r.render({file:e,fileHtmlId:Ef(e),diffs:t,filePath:n.render({fileDiffName:Bf(e)},{fileIcon:i,fileTag:o})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Hf,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:df})}}generateFileHtml(e){const t=ff(uf(t=>wf(t.content,e.isCombined).content));return e.blocks.map(r=>{const n={left:this.makeHeaderHtml(r.header,e),right:this.makeHeaderHtml("")};return this.applyLineGroupping(r).forEach(([r,i,o])=>{if(i.length&&o.length&&!r.length)this.applyRematchMatching(i,o,t).map(([t,r])=>{const{left:i,right:o}=this.processChangedLines(e.isCombined,t,r);n.left+=i,n.right+=o});else if(r.length)r.forEach(t=>{const{prefix:r,content:i}=wf(t.content,e.isCombined),{left:o,right:a}=this.generateLineHtml({type:df.CONTEXT,prefix:r,content:i,number:t.oldNumber},{type:df.CONTEXT,prefix:r,content:i,number:t.newNumber});n.left+=o,n.right+=a});else if(i.length||o.length){const{left:t,right:r}=this.processChangedLines(e.isCombined,i,o);n.left+=t,n.right+=r}else console.error("Unknown state reached while processing groups of lines",r,i,o)}),n}).reduce((e,t)=>({left:e.left+t.left,right:e.right+t.right}),{left:"",right:""})}applyLineGroupping(e){const t=[];let r=[],n=[];for(let i=0;i<e.lines.length;i++){const o=e.lines[i];(o.type!==_u.INSERT&&n.length||o.type===_u.CONTEXT&&r.length>0)&&(t.push([[],r,n]),r=[],n=[]),o.type===_u.CONTEXT?t.push([[o],[],[]]):o.type===_u.INSERT&&0===r.length?t.push([[],[],[o]]):o.type===_u.INSERT&&r.length>0?n.push(o):o.type===_u.DELETE&&r.push(o)}return(r.length||n.length)&&(t.push([[],r,n]),r=[],n=[]),t}applyRematchMatching(e,t,r){const n=e.length*t.length,i=Zu(e.concat(t).map(e=>e.content.length));return n<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?r(e,t):[[e,t]]}makeHeaderHtml(e,t){return this.hoganUtils.render(Hf,"block-header",{CSSLineClass:df,blockHeader:(null==t?void 0:t.isTooBig)?e:bf(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(e,t,r){const n={right:"",left:""},i=Math.max(t.length,r.length);for(let o=0;o<i;o++){const i=t[o],a=r[o],s=void 0!==i&&void 0!==a?xf(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:df.DELETE_CHANGES}:Object.assign(Object.assign({},wf(i.content,e)),{type:yf(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:df.INSERT_CHANGES}:Object.assign(Object.assign({},wf(a.content,e)),{type:yf(a.type)})),{number:a.newNumber}):void 0,{left:u,right:f}=this.generateLineHtml(l,c);n.left+=u,n.right+=f}return n}generateLineHtml(e,t){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(t)}}generateSingleHtml(e){const t="d2h-code-side-linenumber",r="d2h-code-side-line";return this.hoganUtils.render(Hf,"line",{type:(null==e?void 0:e.type)||`${df.CONTEXT} d2h-emptyplaceholder`,lineClass:void 0!==e?t:`${t} d2h-code-side-emptyplaceholder`,contentClass:void 0!==e?r:`${r} 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 Uf={};!function(e){!function(e){var t=/\S/,r=/\"/g,n=/\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,r){if(t.charAt(r)!=e.charAt(0))return!1;for(var n=1,i=e.length;n<i;n++)if(t.charAt(r+n)!=e.charAt(n))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(r,n){var i=r.length,o=0,a=null,s=null,f="",d=[],g=!1,p=0,h=0,A="{{",m="}}";function I(){f.length>0&&(d.push({tag:"_t",text:new String(f)}),f="")}function y(r,n){if(I(),r&&function(){for(var r=!0,n=h;n<d.length;n++)if(!(r=e.tags[d[n].tag]<e.tags._v||"_t"==d[n].tag&&null===d[n].text.match(t)))return!1;return r}())for(var i,o=h;o<d.length;o++)d[o].text&&((i=d[o+1])&&">"==i.tag&&(i.indent=d[o].text.toString()),d.splice(o,1));else n||d.push({tag:"\n"});g=!1,h=d.length}function v(e,t){var r="="+m,n=e.indexOf(r,t),i=c(e.substring(e.indexOf("=",t)+1,n)).split(" ");return A=i[0],m=i[i.length-1],n+r.length-1}for(n&&(n=n.split(" "),A=n[0],m=n[1]),p=0;p<i;p++)0==o?u(A,r,p)?(--p,I(),o=1):"\n"==r.charAt(p)?y(g):f+=r.charAt(p):1==o?(p+=A.length-1,"="==(a=(s=e.tags[r.charAt(p+1)])?r.charAt(p+1):"_v")?(p=v(r,p),o=0):(s&&p++,o=2),g=p):u(m,r,p)?(d.push({tag:a,n:c(f),otag:A,ctag:m,i:"/"==a?g-A.length:p+m.length}),f="",p+=m.length-1,o=0,"{"==a&&("}}"==m?p++:l(d[d.length-1]))):f+=r.charAt(p);return y(g,!0),d};var f={_t:!0,"\n":!0,$:!0,"/":!0};function d(t,r,n,i){var o,a=[],s=null,l=null;for(o=n[n.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.$||g(l,i))n.push(l),l.nodes=d(t,l.tag,n,i);else{if("/"==l.tag){if(0===n.length)throw new Error("Closing tag without opener: /"+l.n);if(s=n.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(n.length>0)throw new Error("missing closing tag: "+n.pop().n);return a}function g(e,t){for(var r=0,n=t.length;r<n;r++)if(t[r].o==e.n)return e.tag="#",!0}function p(e,t,r){for(var n=0,i=r.length;n<i;n++)if(r[n].c==e&&r[n].o==t)return!0}function h(e){var t=[];for(var r in e.partials)t.push('"'+m(r)+'":{name:"'+m(e.partials[r].name)+'", '+h(e.partials[r])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var r in e)t.push('"'+m(r)+'": function(c,p,t,i) {'+e[r]+"}");return"{ "+t.join(",")+" }"}(e.subs)}e.stringify=function(t,r,n){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+h(t)+"}"};var A=0;function m(e){return e.replace(o,"\\\\").replace(r,'\\"').replace(n,"\\n").replace(i,"\\r").replace(a,"\\u2028").replace(s,"\\u2029")}function I(e){return~e.indexOf(".")?"d":"f"}function y(e,t){var r="<"+(t.prefix||"")+e.n+A++;return t.partials[r]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+m(r)+'",c,p,"'+(e.indent||"")+'"));',r}function v(e,t){t.code+="t.b(t.t(t."+I(e.n)+'("'+m(e.n)+'",c,p,0)));'}function b(e){return"t.b("+e+");"}e.generate=function(t,r,n){A=0;var i={code:"",subs:{},partials:{}};return e.walk(t,i),n.asString?this.stringify(i,r,n):this.makeTemplate(i,r,n)},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,r){var n=this.makePartials(e);return n.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(n,t,this,r)},e.makePartials=function(e){var t,r={subs:{},partials:e.partials,name:e.name};for(t in r.partials)r.partials[t]=this.makePartials(r.partials[t]);for(t in e.subs)r.subs[t]=new Function("c","p","t","i",e.subs[t]);return r},e.codegen={"#":function(t,r){r.code+="if(t.s(t."+I(t.n)+'("'+m(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,r),r.code+="});c.pop();}"},"^":function(t,r){r.code+="if(!t.s(t."+I(t.n)+'("'+m(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,r),r.code+="};"},">":y,"<":function(t,r){var n={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,n);var i=r.partials[y(t,r)];i.subs=n.subs,i.partials=n.partials},$:function(t,r){var n={subs:{},code:"",partials:r.partials,prefix:t.n};e.walk(t.nodes,n),r.subs[t.n]=n.code,r.inPartial||(r.code+='t.sub("'+m(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=b('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+I(e.n)+'("'+m(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=b('"'+m(e.text)+'"')},"{":v,"&":v},e.walk=function(t,r){for(var n,i=0,o=t.length;i<o;i++)(n=e.codegen[t[i].tag])&&n(t[i],r);return r},e.parse=function(e,t,r){return d(e,0,[],(r=r||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,r){r=r||{};var n=e.cacheKey(t,r),i=this.cache[n];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,r.delimiters),t,r),t,r),this.cache[n]=i}}(e)}(Uf);var Rf={};!function(e){!function(e){function t(e,t,r){var n;return t&&"object"==typeof t&&(void 0!==t[e]?n=t[e]:r&&t.get&&"function"==typeof t.get&&(n=t.get(e))),n}e.Template=function(e,t,r,n){e=e||{},this.r=e.code||this.r,this.c=r,this.options=n||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,r){return""},v:function(e){return e=l(e),s.test(e)?e.replace(r,"&amp;").replace(n,"&lt;").replace(i,"&gt;").replace(o,"&#39;").replace(a,"&quot;"):e},t:l,render:function(e,t,r){return this.ri([e],t||{},r)},ri:function(e,t,r){return this.r(e,t,r)},ep:function(e,t){var r=this.partials[e],n=t[r.name];if(r.instance&&r.base==n)return r.instance;if("string"==typeof n){if(!this.c)throw new Error("No compiler available.");n=this.c.compile(n,this.options)}if(!n)return null;if(this.partials[e].base=n,r.subs){for(key in t.stackText||(t.stackText={}),r.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);n=function(e,t,r,n,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="",n=n||{},c.stackSubs=n,c.subsText=o,t)n[l]||(n[l]=t[l]);for(l in n)c.subs[l]=n[l];for(l in i=i||{},c.stackPartials=i,r)i[l]||(i[l]=r[l]);for(l in i)c.partials[l]=i[l];return c}(n,r.subs,r.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=n,n},rp:function(e,t,r,n){var i=this.ep(e,r);return i?i.ri(t,r,n):""},rs:function(e,t,r){var n=e[e.length-1];if(c(n))for(var i=0;i<n.length;i++)e.push(n[i]),r(e,t,this),e.pop();else r(e,t,this)},s:function(e,t,r,n,i,o,a){var s;return(!c(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,r,n,i,o,a)),s=!!e,!n&&s&&t&&t.push("object"==typeof e?e:t[t.length-1]),s)},d:function(e,r,n,i){var o,a=e.split("."),s=this.f(a[0],r,n,i),l=this.options.modelGet,u=null;if("."===e&&c(r[r.length-2]))s=r[r.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||(r.push(u),s=this.mv(s,r,n),r.pop()),s)},f:function(e,r,n,i){for(var o=!1,a=!1,s=this.options.modelGet,l=r.length-1;l>=0;l--)if(void 0!==(o=t(e,r[l],s))){a=!0;break}return a?(i||"function"!=typeof o||(o=this.mv(o,r,n)),o):!i&&""},ls:function(e,t,r,n,i,o){var a=this.options.delimiters;return this.options.delimiters=o,this.b(this.ct(l(e.call(t,i,r)),t,n)),this.options.delimiters=a,!1},ct:function(e,t,r){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,r)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,r,n,i,o,a){var s,l=t[t.length-1],c=e.call(l);return"function"==typeof c?!!n||(s=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,l,t,r,s.substring(i,o),a)):c},mv:function(e,t,r){var n=t[t.length-1],i=e.call(n);return"function"==typeof i?this.ct(l(i.call(n)),n,r):i},sub:function(e,t,r,n){var i=this.subs[e];i&&(this.activeSub=e,i(t,r,this,n),this.activeSub=!1)}};var r=/&/g,n=/</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)}(Rf);var Of=Uf;Of.Template=Rf.Template,Of.template=Of.Template;var Tf=Of;const Yf={};Yf["file-summary-line"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<li class="d2h-file-list-line">'),n.b("\n"+r),n.b(' <span class="d2h-file-name-wrapper">'),n.b("\n"+r),n.b(n.rp("<fileIcon0",e,t," ")),n.b(' <a href="#'),n.b(n.v(n.f("fileHtmlId",e,t,0))),n.b('" class="d2h-file-name">'),n.b(n.v(n.f("fileName",e,t,0))),n.b("</a>"),n.b("\n"+r),n.b(' <span class="d2h-file-stats">'),n.b("\n"+r),n.b(' <span class="d2h-lines-added">'),n.b(n.v(n.f("addedLines",e,t,0))),n.b("</span>"),n.b("\n"+r),n.b(' <span class="d2h-lines-deleted">'),n.b(n.v(n.f("deletedLines",e,t,0))),n.b("</span>"),n.b("\n"+r),n.b(" </span>"),n.b("\n"+r),n.b(" </span>"),n.b("\n"+r),n.b("</li>"),n.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),Yf["file-summary-wrapper"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<div class="d2h-file-list-wrapper '),n.b(n.v(n.f("colorScheme",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="d2h-file-list-header">'),n.b("\n"+r),n.b(' <span class="d2h-file-list-title">Files changed ('),n.b(n.v(n.f("filesNumber",e,t,0))),n.b(")</span>"),n.b("\n"+r),n.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),n.b("\n"+r),n.b(' <a class="d2h-file-switch d2h-show">show</a>'),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(' <ol class="d2h-file-list">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("files",e,t,0))),n.b("\n"+r),n.b(" </ol>"),n.b("\n"+r),n.b("</div>"),n.fl()},partials:{},subs:{}}),Yf["generic-block-header"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b("<tr>"),n.b("\n"+r),n.b(' <td class="'),n.b(n.v(n.f("lineClass",e,t,0))),n.b(" "),n.b(n.v(n.d("CSSLineClass.INFO",e,t,0))),n.b('"></td>'),n.b("\n"+r),n.b(' <td class="'),n.b(n.v(n.d("CSSLineClass.INFO",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="'),n.b(n.v(n.f("contentClass",e,t,0))),n.b('">'),n.s(n.f("blockHeader",e,t,1),e,t,0,156,173,"{{ }}")&&(n.rs(e,t,function(e,t,r){r.b(r.t(r.f("blockHeader",e,t,0)))}),e.pop()),n.s(n.f("blockHeader",e,t,1),e,t,1,0,0,"")||n.b("&nbsp;"),n.b("</div>"),n.b("\n"+r),n.b(" </td>"),n.b("\n"+r),n.b("</tr>"),n.fl()},partials:{},subs:{}}),Yf["generic-empty-diff"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b("<tr>"),n.b("\n"+r),n.b(' <td class="'),n.b(n.v(n.d("CSSLineClass.INFO",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="'),n.b(n.v(n.f("contentClass",e,t,0))),n.b('">'),n.b("\n"+r),n.b(" File without changes"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(" </td>"),n.b("\n"+r),n.b("</tr>"),n.fl()},partials:{},subs:{}}),Yf["generic-file-path"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<span class="d2h-file-name-wrapper">'),n.b("\n"+r),n.b(n.rp("<fileIcon0",e,t," ")),n.b(' <span class="d2h-file-name">'),n.b(n.v(n.f("fileDiffName",e,t,0))),n.b("</span>"),n.b("\n"+r),n.b(n.rp("<fileTag1",e,t," ")),n.b("</span>"),n.b("\n"+r),n.b('<label class="d2h-file-collapse">'),n.b("\n"+r),n.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),n.b("\n"+r),n.b(" Viewed"),n.b("\n"+r),n.b("</label>"),n.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),Yf["generic-line"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b("<tr>"),n.b("\n"+r),n.b(' <td class="'),n.b(n.v(n.f("lineClass",e,t,0))),n.b(" "),n.b(n.v(n.f("type",e,t,0))),n.b('">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("lineNumber",e,t,0))),n.b("\n"+r),n.b(" </td>"),n.b("\n"+r),n.b(' <td class="'),n.b(n.v(n.f("type",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="'),n.b(n.v(n.f("contentClass",e,t,0))),n.b('">'),n.b("\n"+r),n.s(n.f("prefix",e,t,1),e,t,0,162,238,"{{ }}")&&(n.rs(e,t,function(e,t,n){n.b(' <span class="d2h-code-line-prefix">'),n.b(n.t(n.f("prefix",e,t,0))),n.b("</span>"),n.b("\n"+r)}),e.pop()),n.s(n.f("prefix",e,t,1),e,t,1,0,0,"")||(n.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),n.b("\n"+r)),n.s(n.f("content",e,t,1),e,t,0,371,445,"{{ }}")&&(n.rs(e,t,function(e,t,n){n.b(' <span class="d2h-code-line-ctn">'),n.b(n.t(n.f("content",e,t,0))),n.b("</span>"),n.b("\n"+r)}),e.pop()),n.s(n.f("content",e,t,1),e,t,1,0,0,"")||(n.b(' <span class="d2h-code-line-ctn"><br></span>'),n.b("\n"+r)),n.b(" </div>"),n.b("\n"+r),n.b(" </td>"),n.b("\n"+r),n.b("</tr>"),n.fl()},partials:{},subs:{}}),Yf["generic-wrapper"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<div class="d2h-wrapper '),n.b(n.v(n.f("colorScheme",e,t,0))),n.b('">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("content",e,t,0))),n.b("\n"+r),n.b("</div>"),n.fl()},partials:{},subs:{}}),Yf["icon-file-added"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),n.b("\n"+r),n.b(' width="14">'),n.b("\n"+r),n.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>'),n.b("\n"+r),n.b("</svg>"),n.fl()},partials:{},subs:{}}),Yf["icon-file-changed"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),n.b("\n"+r),n.b(' viewBox="0 0 14 16" width="14">'),n.b("\n"+r),n.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>'),n.b("\n"+r),n.b("</svg>"),n.fl()},partials:{},subs:{}}),Yf["icon-file-deleted"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),n.b("\n"+r),n.b(' viewBox="0 0 14 16" width="14">'),n.b("\n"+r),n.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>'),n.b("\n"+r),n.b("</svg>"),n.fl()},partials:{},subs:{}}),Yf["icon-file-renamed"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),n.b("\n"+r),n.b(' viewBox="0 0 14 16" width="14">'),n.b("\n"+r),n.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>'),n.b("\n"+r),n.b("</svg>"),n.fl()},partials:{},subs:{}}),Yf["icon-file"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),n.b("\n"+r),n.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>'),n.b("\n"+r),n.b("</svg>"),n.fl()},partials:{},subs:{}}),Yf["line-by-line-file-diff"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<div id="'),n.b(n.v(n.f("fileHtmlId",e,t,0))),n.b('" class="d2h-file-wrapper" data-lang="'),n.b(n.v(n.d("file.language",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="d2h-file-header">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("filePath",e,t,0))),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(' <div class="d2h-file-diff">'),n.b("\n"+r),n.b(' <div class="d2h-code-wrapper">'),n.b("\n"+r),n.b(' <table class="d2h-diff-table">'),n.b("\n"+r),n.b(' <tbody class="d2h-diff-tbody">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("diffs",e,t,0))),n.b("\n"+r),n.b(" </tbody>"),n.b("\n"+r),n.b(" </table>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b("</div>"),n.fl()},partials:{},subs:{}}),Yf["line-by-line-numbers"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<div class="line-num1">'),n.b(n.v(n.f("oldNumber",e,t,0))),n.b("</div>"),n.b("\n"+r),n.b('<div class="line-num2">'),n.b(n.v(n.f("newNumber",e,t,0))),n.b("</div>"),n.fl()},partials:{},subs:{}}),Yf["side-by-side-file-diff"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<div id="'),n.b(n.v(n.f("fileHtmlId",e,t,0))),n.b('" class="d2h-file-wrapper" data-lang="'),n.b(n.v(n.d("file.language",e,t,0))),n.b('">'),n.b("\n"+r),n.b(' <div class="d2h-file-header">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.f("filePath",e,t,0))),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(' <div class="d2h-files-diff">'),n.b("\n"+r),n.b(' <div class="d2h-file-side-diff">'),n.b("\n"+r),n.b(' <div class="d2h-code-wrapper">'),n.b("\n"+r),n.b(' <table class="d2h-diff-table">'),n.b("\n"+r),n.b(' <tbody class="d2h-diff-tbody">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.d("diffs.left",e,t,0))),n.b("\n"+r),n.b(" </tbody>"),n.b("\n"+r),n.b(" </table>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(' <div class="d2h-file-side-diff">'),n.b("\n"+r),n.b(' <div class="d2h-code-wrapper">'),n.b("\n"+r),n.b(' <table class="d2h-diff-table">'),n.b("\n"+r),n.b(' <tbody class="d2h-diff-tbody">'),n.b("\n"+r),n.b(" "),n.b(n.t(n.d("diffs.right",e,t,0))),n.b("\n"+r),n.b(" </tbody>"),n.b("\n"+r),n.b(" </table>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b(" </div>"),n.b("\n"+r),n.b("</div>"),n.fl()},partials:{},subs:{}}),Yf["tag-file-added"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),n.fl()},partials:{},subs:{}}),Yf["tag-file-changed"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),n.fl()},partials:{},subs:{}}),Yf["tag-file-deleted"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),n.fl()},partials:{},subs:{}}),Yf["tag-file-renamed"]=new Tf.Template({code:function(e,t,r){var n=this;return n.b(r=r||""),n.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),n.fl()},partials:{},subs:{}});class jf{constructor({compiledTemplates:e={},rawTemplates:t={}}){const r=Object.entries(t).reduce((e,[t,r])=>{const n=Tf.compile(r,{asString:!1});return Object.assign(Object.assign({},e),{[t]:n})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},Yf),e),r)}static compile(e){return Tf.compile(e,{asString:!1})}render(e,t,r,n,i){const o=this.templateKey(e,t);try{return this.preCompiledTemplates[o].render(r,n,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 Gf=Object.assign(Object.assign(Object.assign({},Sf),Mf),{outputFormat:"line-by-line",drawFileList:!0});var Jf=Object.freeze({__proto__:null,defaultDiff2HtmlConfig:Gf,html:function(e,t={}){const r=Object.assign(Object.assign({},Gf),t),n="string"==typeof e?of(e,r):e,i=new jf(r),{colorScheme:o}=r,a={colorScheme:o};return(r.drawFileList?new Qf(i,a).render(n):"")+("side-by-side"===r.outputFormat?new Lf(i,r).render(n):new qf(i,r).render(n))},parse:function(e,t={}){return of(e,Object.assign(Object.assign({},Gf),t))}});function zf(){if("[object Module]"===Object.prototype.toString.call(Jf))return Jf;let e=vn(),t=Be(e,"Diff2Html.default",null),r=Be(e,"Diff2Html",null),n="html";if(Ce(t)&&ba(t[n]))return t;if(Ce(r)&&ba(r[n]))return r;throw console.log("Diff2Html",Jf,"g.Diff2Html",e.Diff2Html),new Error("invalid Diff2Html, g.Diff2Html, g.Diff2Html.default, use script for import")}function Vf(e){return document.querySelectorAll(e)}function Pf(e){function t(e){e.parentNode.removeChild(e)}if(wr(e)){return void t(e)}if(!Fe(e))return;Cr(Vf(e),function(e){t(e)})}function Xf(e,t){if(!wr(e))return"invalid eleParent";if(De(t))e.insertAdjacentHTML("afterbegin",t);else{if(!wr(t))return"invalid itemChild";e.insertBefore(t,e.firstChild)}}async function _f(e,t={}){if(!wr(e))return Promise.reject("invalid ele");let r=Be(t,"scale",null);if(ke(r)||(r=1),r=Hn(r),r<1)return Promise.reject("opt.scale can not less then 1");let n=Be(t,"picType",null);"image/jpg"!==n&&"image/jpeg"!==n&&"image/png"!==n&&"svg"!==n&&(n="image/png");let i=Be(t,"toBase64",null);hn(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),Xf(document.querySelector("body"),s);let l,c=vn().snapdom,u={scale:r,quality:1,cache:"disabled"};return"image/jpg"===n||"image/jpeg"===n?l=await c.toJpg(a,u):"image/png"===n?l=await c.toPng(a,u):"svg"===n&&(l=await c.toSvg(a,u)),i&&(l=Be(l,"src","")),Pf(s),l}var Wf=Oa(Qa);function Kf(e){let t=function(e,r){return null===e.parentNode?r:t(e.parentNode,r.concat([e]))};return e instanceof HTMLElement||e instanceof SVGElement?t(e.parentNode,[]):[]}function $f(e){let t=Be(e,"clientX",null),r=Be(e,"clientY",null),n=Be(e,"pageX",null),i=Be(e,"pageY",null);if(null!==t&&null!==r&&null!==n&&null!==i)return{clientX:t,clientY:r,pageX:n,pageY:i};let o=Be(e,"changedTouches",[]);if(1!==gn(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 Zf(e,t){let r=[];try{r=document.elementsFromPoint(e,t)}catch(e){console.log(e)}return r}function ed(e,t){if(!wr(e))return null;if(!Fe(t))return null;try{return e.getAttribute(t)}catch(e){}return null}function td(e){if(!wr(e))return null;try{return e.getBoundingClientRect()}catch(e){}return null}function rd(e,t){if(!Ce(e))return null;if(!ya(e.clientX)||!ya(e.clientY))return null;if(!wr(t))return null;let r=td(t);return r?{x:e.clientX-r.left,y:e.clientY-r.top,w:t.offsetWidth,h:t.offsetHeight}:null}function nd(e={}){let t="dragpreviewid",r=null,n=null,i=null,o=null,a=null,s=!1,l=Be(e,"attIdentify",null);Fe(l)||(l="dragprevid");let c=Be(e,"containerOpacity",null);ya(c)||(c=.4);let u=Be(e,"containerBackground",null);Fe(u)||(u="white");let f=Be(e,"containerBorderWidth",null);ya(f)||(f=1);let d=Be(e,"containerBorderColor",null);Fe(d)||(d="#f26");let g=`c${Lu(8)}`;function p(e,t,r){n&&i&&o&&a&&!s&&(a.style.top=t-n.tShiftY+"px",a.style.left=e-n.tShiftX+"px")}function h(){Pf(`[${t}='${g}']`),n=null,i=null,o=null,a=null}let A=function(e){p(e.clientX,e.clientY)};window.addEventListener("mousemove",A);let m=function(e){let t=$f(e);t&&p(t.clientX,t.clientY)};return window.addEventListener("touchmove",m),{createPreview:function(e,s,A){try{!function(){let h=function(e,t,n){let i=td(e);if(!i)return null;r=e;let o=e.cloneNode(!0);return o.tShiftX=t-i.left,o.tShiftY=n-i.top,o.tWidth=e.offsetWidth,o.tHeight=e.offsetHeight,o.tParent=e.parentNode,o.setAttribute(l,""),o}(e,s,A);if(null===h)return;let m=document.createElement("div");m.style.position="absolute",m.style.zIndex=1,m.style.top=0,m.style.left=0,m.style.width="100%",m.style.height="100%",m.appendChild(h);let I=document.createElement("div");I.style.position="relative",I.appendChild(m);let y=document.createElement("div");y.setAttribute(t,g),y.style.position="fixed",y.style.zIndex=1e5,y.style.width=`${h.tWidth+2*f}px`,y.style.height=`${h.tHeight+2*f}px`,y.style.opacity=c,y.style.background=u,y.style.border=`${f}px solid ${d}`,y.style.pointerEvents="none",y.appendChild(I),document.querySelector("body").appendChild(y),n=h,i=m,o=I,a=y,p(s,A)}()}catch(e){}let m=setInterval(()=>{let e=ed(r,l);document.querySelector(`[${l}='${e}']`)||(clearInterval(m),h())},500)},updateDragPreview:p,pauseDragPreview:function(e){s=e},removeDragPreview:h,setNodeStyle:function(e){try{Cr(e,(e,t)=>{n.style[t]=e})}catch(e){}},setCoverStyle:function(e){try{Cr(e,(e,t)=>{i.style[t]=e})}catch(e){}},setSellStyle:function(e){try{Cr(e,(e,t)=>{o.style[t]=e})}catch(e){}},setContainerStyle:function(e){try{Cr(e,(e,t)=>{a.style[t]=e})}catch(e){}},clear:function(){window.removeEventListener("mousemove",A),window.removeEventListener("touchmove",m)}}}let id={};function od(e,t,{attIdentify:r,previewOpacity:n,previewBackground:i,previewBorderWidth:o,previewBorderColor:a}){if(!Ne(id,e)){let t=_i(),s=function(e){let t=[];function r(){let r;r="mousemove";let n=function(t){e.dragMove({e:t,name:"mousemove"})};window.addEventListener(r,n),t.push({ele:window,name:r,f:n}),r="mouseup";let i=function(t){e.dragDrop({e:t,name:"mouseup"})};window.addEventListener(r,i),t.push({ele:window,name:r,f:i}),r="touchmove";let o=function(t){e.dragMove({e:t,name:"touchmove"})};window.addEventListener(r,o),t.push({ele:window,name:r,f:o}),r="touchend";let a=function(t){e.dragDrop({e:t,name:"touchend"})};window.addEventListener(r,a),t.push({ele:window,name:r,f:a})}function n(){Cr(t,({ele:e,name:t,f:r})=>{e.removeEventListener(t,r)})}return{bind:r,unbind:n}}({dragMove:r=>{t.emit(e+"-dragMove",r)},dragDrop:r=>{t.emit(e+"-dragDrop",r)}});s.bind();let l=nd({attIdentify:r,containerOpacity:n,containerBackground:i,containerBorderWidth:o,containerBorderColor:a});id[e]={eleIds:[],evg:t,oevg:s,pv:l,isInit:!1,isActive:!0}}return id[e].eleIds.push(t),id[e].evg}function ad(e,t){let r=ed(e,t);return r=eo(r),r}function sd({gid:e,attGroup:t,attIndex:r,attIdentify:n,timeDragStartDelay:i,previewOpacity:o,previewDisabledOpacity:a}){let s=null,l=null,c=null,u=null;if(id[e].isInit)return id[e].evg;id[e].isInit=!0;let f=id[e].evg;f.on(e+"-dragStart",function({e:t,ele:o,from:c}){if(!id[e].isActive)return;let u=ad(o,r);if(null===u)return;s=u,l=o;let g={event:t,startInd:s,startEle:l,tarInd:s,tarEid:ed(l,n)};f.emit(e+"-change",{mode:"start",...g}),f.emit(e+"-start",g);let p=$f(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:g,from:p}){if(!id[e].isActive)return;let h=function(e,t,r){let n=null;return Cr(Kf(e.target),e=>{if(ed(e,t)===r)return n=e,!1}),n}(i,t,e);if(null===s)return;let A=$f(i);if(!A)return;function m(){let t={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:ed(u,n)};f.emit(e+"-change",{mode:"leave",...t}),f.emit(e+"-leave",t),c=null,u=null,d.setContainerStyle({opacity:a})}if(!h)return void(null!==c&&m());let I=ad(h,r);if(null===I)return;if(I===s)return void(null!==c&&m());if(I!==c)null!==c&&m(),function(t,r){c=t,u=r;let a={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:ed(u,n)};f.emit(e+"-change",{mode:"enter",...a}),f.emit(e+"-enter",a),d.setContainerStyle({opacity:o})}(I,h);else{let t=rd(A,h),r=0;t.w>0&&(r=t.x/t.w);let a=0;t.h>0&&(a=t.y/t.h),r>=0&&r<=1&&a>=0&&a<=1&&function(t,r,a){let g={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:ed(u,n),...t,rx:r,ry:a};f.emit(e+"-change",{mode:"move",...g}),f.emit(e+"-move",g),d.setContainerStyle({opacity:o})}(t,r,a)}}),f.on(e+"-dragDrop",function({e:i,name:o,from:a}){if(d.removeDragPreview(),!id[e].isActive)return;if(null===s)return;let g=function(e,t,r){let n=null,i=$f(e);return i?(Cr(Zf(i.clientX,i.clientY),e=>{if(ed(e,t)===r)return n=e,!1}),n):n}(i,t,e);if(!g)return s=null,l=null,c=null,void(u=null);let p=ad(g,r);if(null===p)return;(function(t,r){c=t,u=r;let o={event:i,startInd:s,startEle:l,endInd:c,endEle:u,tarInd:c,tarEid:ed(u,n)};f.emit(e+"-change",{mode:"drop",...o}),f.emit(e+"-drop",o)})(p,g),s=null,l=null,c=null,u=null});let d=id[e].pv}async function ld(e){let t=[],r=is();return await async function e(r){let n=null;if(r.isFile&&(n=await function(e){let t=is();try{e.file(t.resolve,t.reject)}catch(e){t.reject(e)}return t}(r)),t.push({type:r.isDirectory?"folder":r.isFile?"file":"unknow",path:r.fullPath,name:r.name,entry:r,file:n}),r.isDirectory){let t=r.createReader(),n=await function(e){let t=is();try{e.readEntries(t.resolve,t.reject)}catch(e){t.reject(e)}return t}(t);await cc(n,async t=>{await e(t)})}}(e),r.resolve(t),r}async function cd(e){let t=[];Cr(e,e=>{let r=e.webkitGetAsEntry();r&&t.push(r)});let r=await async function(e){let t=[];return await cc(e,async e=>{Cr(await ld(e),e=>{t.push(e)})}),t}(t);return r}async function ud(e){let t=[],r=[];try{t=await async function(e){let t=[];return Cr(e,e=>{e.type&&t.push({type:"file",name:e.name,file:e})}),t}(Be(e,"files",[])),Pu()||(r=await cd(Be(e,"items",[])).catch(e=>{console.log(e)}))}catch(e){return Promise.reject(e)}return{files:t,entries:r}}function fd(e){return document.querySelector(e)}function dd(e){return!Rr(e)}var gd=Math.max;var pd,hd=(pd=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:Mn(r);return i<0&&(i=gd(n+i,0)),Tr(e,dr(t),i)},function(e,t,r){var n=Object(e);if(!dt(e)){var i=dr(t);e=gt(e),t=function(e){return i(n[e],e,n)}}var o=pd(e,t,r);return o>-1?n[i?e[o]:o]:void 0});let Ad=[{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 md(e=""){let t=null;return Fe(e)?(t=hd(Ad,{name:e}),Ce(t)||(t=null)):t=Ad,t}function Id(e=""){if(""!==e&&"name"!==e&&"group"!==e&&"acp"!==e&&"exec"!==e)return[];let t=md();if(""===e)return t;let r={};return Cr(t,function(t){let n=t[e];Ne(r,n)||(r[n]=[]),r[n].push(t)}),r}function yd(e="*"){if("*"===e)return e;if(!De(e)&&!Or(e))return"*";"common"===e&&(e=["docums","compress","image","data"]);let t=Id();function r(e){return Xr(Dr(e,"acp"))}De(e)&&(e=[e]);let n="";if(Or(e)){let i=Dr(e,function(e){return function(e){return r(ha(t,{group:e}))}(e)}),o=Nr(i,Dr(e,function(e){return r(ha(t,{name:e}))}));o=ha(o,dd),n=Do(o,",")}return n}function vd(e,t=1e3){(t=Hn(t))<=0&&(t=1e3);let r={},n=[];return Cr(Be(e,"files",[]),function(e,i){let o=e.size/1024/1024;o>t&&(r[i]=`file size[${o}]mb > ${t}mb`),n.push(e)}),{files:n,errs:r}}function bd(e,t,r){for(var n=-1,i=e.length;++n<i;){var o=e[n],a=t(o);if(null!=a&&(void 0===s?a==a&&!M(a):r(a,s)))var s=a,l=o}return l}function wd(e,t){return e<t}function Bd(e){return e&&e.length?bd(e,cr,wd):void 0}function Ed(){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}}()||ba(window.IntersectionObserverEntry))}function Cd(e,t,r={}){if(!wr(e))return Promise.reject("invalid ele");let n=vn().markmap,{Transformer:i,Markmap:o,loadCSS:a,loadJS:s}=n,l=e=>{let t=new i,{root:r,features:n}=t.transform(e),{styles:o,scripts:a}=t.getUsedAssets(n);return{root:r,features:n,styles:o,scripts:a}},{root:c,styles:u,scripts:f}=l(t);u&&a(u),f&&s(f,{getMarkmap:()=>n}),e.innerHTML="";let d=o.create(e,null,c);return d.transMarkdown=l,d}const xd=e=>void 0===e||"auto"===e||"instant"===e||"smooth"===e;function Dd(e,t){this.scrollLeft=e,this.scrollTop=t}const Fd=(e,t,r="cannot convert to dictionary.")=>`Failed to execute '${e}' on '${t}': ${r}`,Qd=(e,t,r)=>Fd(e,t,`The provided value '${r}' is not a valid enum value of type ScrollBehavior.`),Sd=(e,t,r)=>{var n;const i=`__SEAMLESS.BACKUP$${t}`;return e[i]||!e[t]||(null===(n=e[t])||void 0===n?void 0:n.__isPolyfill)||(e[i]=e[t]),e[i]||r},kd=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},Nd=e=>"scrollBehavior"in window.document.documentElement.style&&!0!==(null==e?void 0:e.forcePolyfill),qd=e=>{Object.defineProperty(e,"__isPolyfill",{value:!0})},Md=(e,t)=>{qd(t),[HTMLElement.prototype,SVGElement.prototype,Element.prototype].forEach(r=>{Sd(r,e),r[e]=t})},Hd=e=>e.ownerDocument.scrollingElement||e.ownerDocument.documentElement;const Ld=e=>.5*(1-Math.cos(Math.PI*e));function Ud(){var e;let t;return t=(null===(e=window.performance)||void 0===e?void 0:e.now)?()=>window.performance.now():()=>window.Date.now(),Ud=t,t()}const Rd=e=>{const t=(Ud()-e.timeStamp)/(e.duration||500);if(t>1)return e.method(e.targetX,e.targetY),void e.callback();const r=(e.timingFunc||Ld)(t),n=e.startX+(e.targetX-e.startX)*r,i=e.startY+(e.targetY-e.startY)*r;e.method(n,i),e.rafId=window.requestAnimationFrame(()=>{Rd(e)})},Od=e=>isFinite(e)?Number(e):0,Td=(e,t,r)=>{var n,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=Od(null!==(n=t.left)&&void 0!==n?n:o),l=Od(null!==(i=t.top)&&void 0!==i?i:a);if(s===o&&l===a)return;const c=Sd(HTMLElement.prototype,"scroll",Dd),u=Sd(Object.getPrototypeOf(e),"scroll",c).bind(e);if("smooth"!==t.behavior)return void u(s,l);const f=()=>{window.removeEventListener("wheel",g),window.removeEventListener("touchmove",g)},d=Object.assign(Object.assign({},r),{timeStamp:Ud(),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))}}),g=()=>{window.cancelAnimationFrame(d.rafId),f()};window.addEventListener("wheel",g,{passive:!0,once:!0}),window.addEventListener("touchmove",g,{passive:!0,once:!0}),Rd(d)},Yd=e=>(t,r,n)=>{const[i,o]=(a=t).window===a?[Hd(t.document.documentElement),"Window"]:[t,"Element"];var a;const s=null!=r?r:{};if(!kd(s))throw new TypeError(Fd(e,o));if(!xd(s.behavior))throw new TypeError(Qd(e,o,s.behavior));"scrollBy"===e&&(s.left=Od(s.left)+i.scrollLeft,s.top=Od(s.top)+i.scrollTop),Td(i,s,n)},jd=Yd("scroll"),Gd=Yd("scrollTo"),Jd=Yd("scrollBy"),zd=jd,Vd=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},Pd=(e,t,r,n)=>{let i=0;switch(t||(i^=2),e){case 0:i=i>>1|(1&i)<<1,[r,n]=[n,r];break;case 1:case 3:i^=1;break;case 4:i^=2}return[i,r,n]},Xd=e=>!(1&~Pd(Vd(e.writingMode),"rtl"!==e.direction,void 0,void 0)[0]),_d=(e,t,r,n,i,o,a)=>0!==e?e:i<t&&o>r||i>t&&o<r?null:i<=t&&a<=n||o>=r&&a>=n?2:o>r&&a<n||i<t&&a>n?3:null,Wd=e=>"visible"!==e&&"clip"!==e,Kd=(e,t)=>(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth)&&(Wd(t.overflowY)||Wd(t.overflowX)||e===Hd(e)),$d=e=>{const t=e.parentNode,r=e.parentElement;if(null===r&&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 r},Zd=(e,t,r)=>e<t?t:e>r?r:e,eg=(e,t,r)=>{switch(e){case 1:return(t+r)/2;case 3:return r;case 2:case 0:return t}},tg=(e,t)=>{var r,n,i;const o=null===(r=e.ownerDocument.defaultView)||void 0===r?void 0:r.visualViewport,[a,s,l,c]=e===Hd(e)?[0,0,null!==(n=null==o?void 0:o.width)&&void 0!==n?n: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]},rg=(e,t)=>{const r=[];let n=e.ownerDocument,i=n.defaultView;if(!i)return r;const o=window.getComputedStyle(e),a="rtl"!==o.direction,s=Vd(o.writingMode||o.getPropertyValue("-webkit-writing-mode")||o.getPropertyValue("-ms-writing-mode")),[l,c]=((e,t,r)=>{const[n,i,o]=Pd(t,r,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==!(n>>t&1)?2:3}})})(t,s,a);let[u,f,d,g]=((e,t,r)=>{const{top:n,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[n,i,o,a];const c=e=>{const t=r.getPropertyValue(`${s}-${e}`);return parseInt(t,10)||0};return[n-c("top"),i+c("right"),o+c("bottom"),a-c("left")]})(e,e.getBoundingClientRect(),o);for(let o=$d(e);null!==o;o=$d(o)){if(n!==o.ownerDocument){if(n=o.ownerDocument,i=n.defaultView,!i)break;const{left:e,top:t}=o.getBoundingClientRect();u+=t,f+=e,d+=t,g+=e}const e=i.getComputedStyle(o);if("fixed"===e.position)break;if(!Kd(o,e))continue;const a=o.getBoundingClientRect(),[s,p,h,A]=tg(o,a),m=_d(l,A,p,o.clientWidth,g,f,f-g),I=_d(c,s,h,o.clientHeight,u,d,d-u),y=null===m?0:eg(m,g,f)-eg(m,A,p),v=null===I?0:eg(I,u,d)-eg(I,s,h),b=Xd(e)?Zd(y,-o.scrollWidth+o.clientWidth-o.scrollLeft,-o.scrollLeft):Zd(y,-o.scrollLeft,o.scrollWidth-o.clientWidth-o.scrollLeft),w=Zd(v,-o.scrollTop,o.scrollHeight-o.clientHeight-o.scrollTop);r.push([o,{left:o.scrollLeft+b,top:o.scrollTop+w,behavior:t.behavior}]),u=Math.max(u-w,s),f=Math.min(f-b,p),d=Math.min(d-w,h),g=Math.max(g-b,A)}return r},ng=(e,t,r)=>{const n=t||{};if(!xd(n.behavior))throw new TypeError(Qd("scrollIntoView","Element",n.behavior));rg(e,n).forEach(([e,t])=>{zd(e,t,r)})},ig=(e,t)=>r=>{if(Nd(r))return;const n={scroll:jd,scrollTo:Gd,scrollBy:Jd}[e];t(e,function(){const e=arguments;if(1===arguments.length)return void n(this,e[0],r);n(this,{left:e[0],top:e[1]})})},og=ig("scroll",Md),ag=ig("scrollTo",Md),sg=ig("scrollBy",Md),lg=(e,t)=>{qd(t),Sd(window,e),window[e]=t},cg=ig("scroll",lg),ug=ig("scrollTo",lg),fg=ig("scrollBy",lg);function dg(e){ng(this,{block:null==e||e?"start":"end",inline:"nearest"})}const gg=e=>{if(Nd(e))return;const t=Sd(window.HTMLElement.prototype,"scrollIntoView",dg);Md("scrollIntoView",function(){const r=arguments,n=r[0];1===r.length&&kd(n)?ng(this,n,e):t.apply(this,r)})},pg=e=>{Nd(e)||(og(e),ag(e),sg(e),gg(e),cg(e),ug(e),fg(e))};function hg(e,t,r){(void 0!==r&&!ne(e[t],r)||void 0===r&&!(t in e))&&gi(e,t,r)}function Ag(e){return q(e)&&dt(e)}function mg(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Ig(e,t,r,n,i,o,a){var s=mg(e,r),l=mg(t,r),c=a.get(l);if(c)hg(e,r,c);else{var u,f=o?o(s,l,r+"",e,t,a):void 0,d=void 0===f;if(d){var g=b(l),p=!g&&Ve(l),h=!g&&!p&&nt(l);f=l,g||p||h?b(s)?f=s:Ag(s)?f=kr(s):p?(d=!1,f=Ei(l,!0)):h?(d=!1,f=Ni(l,!0)):f=[]:br(l)||je(l)?(f=s,je(s)?f=Ai(u=s,yi(u)):R(s)&&!O(s)||(f=Li(l))):d=!1}d&&(a.set(l,f),i(f,l,n,o,a),a.delete(l)),hg(e,r,f)}}function yg(e,t,r,n,i){e!==t&&He(t,function(o,a){if(i||(i=new mt),R(o))Ig(e,t,a,r,yg,n,i);else{var s=n?n(mg(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),hg(e,a,s)}},yi)}var vg,bg=(vg=function(e,t,r){yg(e,t,r)},Oa(function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=vg.length>3&&"function"==typeof i?(n--,i):void 0,o&&gr(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r<n;){var a=t[r];a&&vg(e,a,r,i)}return e}));async function wg(e,t=null,r={}){let n=!0,i=null,o=is();Ce(r)||(r={});let a=Be(r,"disTouchMoveToHide",null);if(Eo(a)||(a=4),a=eo(a),!wr(e))return o.reject("eleImg is not a HTMLElement"),o;if(i=e,null!==t){if(!wr(t))return o.reject("eleGroup is not a HTMLElement"),o;n=!1,i=t}if(!n){let e=gn(t.querySelectorAll("img"));if(0===e)return o.reject("eleGroup does not contain any img"),o;1===e&&(n=!0)}let s={button:!1,navbar:!1,title:!1,toolbar:{zoomIn:4,zoomOut:4,oneToOne:4,reset:4,prev:0,play:0,next:0,rotateLeft:4,rotateRight:4,flipHorizontal:4,flipVertical:4},tooltip:!1,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!1,keyboard:!0};n||(s=function(){let e={button:!1,navbar:!1,title:!1,toolbar:{zoomIn:4,zoomOut:4,oneToOne:4,reset:4,prev:0,play:0,next:0,rotateLeft:4,rotateRight:4,flipHorizontal:4,flipVertical:4},tooltip:!1,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!1,keyboard:!0};return e.navbar=!0,e.toolbar.prev=4,e.toolbar.next=4,e}()),s=bg(s,Vi(r)),s.shown=function(){(async()=>{let e=null;await bs(()=>(e=c.viewer,wr(e)));let t=!1,r=0,n=0,i=0;e.addEventListener("touchstart",e=>{let i=e.touches[0];r=i.clientX,n=i.clientY,((e,t)=>{let r=document.elementsFromPoint(e,t).find(e=>"IMG"===e.tagName);if(!wr(r))return!0;let n=r?.classList?.contains("viewer-move");return!n})(r,n)&&(t=!0)},{passive:!1}),e.addEventListener("touchmove",e=>{if(!t)return;let o=e.touches[0],a=o.clientX,s=o.clientY,l=a-r,c=s-n,u=Math.sqrt(l*l+c*c);i+=u,r=o.clientX,n=o.clientY},{passive:!1}),e.addEventListener("touchend",e=>{t&&(i<a&&(e.preventDefault(),e.stopPropagation(),c.hide(!0)),t=!1,i=0)},{passive:!1}),e.addEventListener("touchcancel",e=>{t=!1,i=0})})().catch(e=>{console.log(e)})};let l=!1;s.hide=function(){l||(l=!0,c.hide(!0))},s.hidden=function(){c.destroy(),o.resolve("close")};let c=new(0,vn().Viewer)(i,s);return c.show(),o}function Bg(e,t){let r=new MouseEvent(t,{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(r)}function Eg(e={}){let t=Be(e,"kind","*"),r=Be(e,"multiple");hn(r)||(r=!1);let n=Be(e,"entireHierarchy");hn(n)||(n=!1),n&&!r&&(r=!0);let i=Be(e,"sizeMbLimit");ke(i)||(i=1e3),i=Hn(i);let o=is(),a="drf"+Lu(),s="GrpDomReadFile";Pf(`[name=${s}]`);let l=yd(t),c=`<div name="${s}" style="position:relative; width:0px; height:0px; overflow:hidden;"><input id="${a}" type="file" accept="${l}" ${r?"multiple":""} ${n?"webkitdirectory":""} style="opacity:0; position:absolute; top:-10000px; left:-10000px;"></div>`;Vu(document.querySelector("body"),c);let u=fd("#"+a),f=!1;function d(e){f=!0;let t=vd(this,i);o.resolve(t),u.removeEventListener("change",d,!0),n||window.removeEventListener("focus",g),Pf(`[name=${s}]`)}function g(e){setTimeout(()=>{f||d()},300)}return u.addEventListener("change",d,!0),n||window.addEventListener("focus",g),Bg(u,"click"),o}function Cg(e){if(!Fe(e))return!1;let t="YYYY-MM-DDTHH:mm:ss";return e===r(e,t).format(t)}yn()&&function(){try{return new MouseEvent("MouseEventPolyfillTest"),!1}catch(e){}let e=function(e,t){t=t||{bubbles:!1,cancelable:!1};let r=document.createEvent("MouseEvent");return r.initMouseEvent(e,t.bubbles,t.cancelable,window,0,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null),r};e.prototype=Event.prototype,window.MouseEvent=e}();var xg="top",Dg="bottom",Fg="right",Qg="left",Sg="auto",kg=[xg,Dg,Fg,Qg],Ng="start",qg="end",Mg="viewport",Hg="popper",Lg=kg.reduce(function(e,t){return e.concat([t+"-"+Ng,t+"-"+qg])},[]),Ug=[].concat(kg,[Sg]).reduce(function(e,t){return e.concat([t,t+"-"+Ng,t+"-"+qg])},[]),Rg=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Og(e){return e?(e.nodeName||"").toLowerCase():null}function Tg(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yg(e){return e instanceof Tg(e).Element||e instanceof Element}function jg(e){return e instanceof Tg(e).HTMLElement||e instanceof HTMLElement}function Gg(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Tg(e).ShadowRoot||e instanceof ShadowRoot)}var Jg={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];jg(i)&&Og(i)&&(Object.assign(i.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});jg(n)&&Og(n)&&(Object.assign(n.style,o),Object.keys(i).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};function zg(e){return e.split("-")[0]}var Vg=Math.max,Pg=Math.min,Xg=Math.round;function _g(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Wg(){return!/^((?!chrome|android).)*safari/i.test(_g())}function Kg(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&jg(e)&&(i=e.offsetWidth>0&&Xg(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Xg(n.height)/e.offsetHeight||1);var a=(Yg(e)?Tg(e):window).visualViewport,s=!Wg()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/i,c=(n.top+(s&&a?a.offsetTop:0))/o,u=n.width/i,f=n.height/o;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l,x:l,y:c}}function $g(e){var t=Kg(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Zg(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Gg(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ep(e){return Tg(e).getComputedStyle(e)}function tp(e){return["table","td","th"].indexOf(Og(e))>=0}function rp(e){return((Yg(e)?e.ownerDocument:e.document)||window.document).documentElement}function np(e){return"html"===Og(e)?e:e.assignedSlot||e.parentNode||(Gg(e)?e.host:null)||rp(e)}function ip(e){return jg(e)&&"fixed"!==ep(e).position?e.offsetParent:null}function op(e){for(var t=Tg(e),r=ip(e);r&&tp(r)&&"static"===ep(r).position;)r=ip(r);return r&&("html"===Og(r)||"body"===Og(r)&&"static"===ep(r).position)?t:r||function(e){var t=/firefox/i.test(_g());if(/Trident/i.test(_g())&&jg(e)&&"fixed"===ep(e).position)return null;var r=np(e);for(Gg(r)&&(r=r.host);jg(r)&&["html","body"].indexOf(Og(r))<0;){var n=ep(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function ap(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sp(e,t,r){return Vg(e,Pg(t,r))}function lp(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function cp(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}var up={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=zg(r.placement),l=ap(s),c=[Qg,Fg].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(e,t){return lp("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:cp(e,kg))}(i.padding,r),f=$g(o),d="y"===l?xg:Qg,g="y"===l?Dg:Fg,p=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],h=a[l]-r.rects.reference[l],A=op(o),m=A?"y"===l?A.clientHeight||0:A.clientWidth||0:0,I=p/2-h/2,y=u[d],v=m-f[c]-u[g],b=m/2-f[c]/2+I,w=sp(y,b,v),B=l;r.modifiersData[n]=((t={})[B]=w,t.centerOffset=w-b,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Zg(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fp(e){return e.split("-")[1]}var dp={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gp(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=a.x,g=void 0===d?0:d,p=a.y,h=void 0===p?0:p,A="function"==typeof u?u({x:g,y:h}):{x:g,y:h};g=A.x,h=A.y;var m=a.hasOwnProperty("x"),I=a.hasOwnProperty("y"),y=Qg,v=xg,b=window;if(c){var w=op(r),B="clientHeight",E="clientWidth";if(w===Tg(r)&&"static"!==ep(w=rp(r)).position&&"absolute"===s&&(B="scrollHeight",E="scrollWidth"),i===xg||(i===Qg||i===Fg)&&o===qg)v=Dg,h-=(f&&w===b&&b.visualViewport?b.visualViewport.height:w[B])-n.height,h*=l?1:-1;if(i===Qg||(i===xg||i===Dg)&&o===qg)y=Fg,g-=(f&&w===b&&b.visualViewport?b.visualViewport.width:w[E])-n.width,g*=l?1:-1}var C,x=Object.assign({position:s},c&&dp),D=!0===u?function(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Xg(r*i)/i||0,y:Xg(n*i)/i||0}}({x:g,y:h},Tg(r)):{x:g,y:h};return g=D.x,h=D.y,l?Object.assign({},x,((C={})[v]=I?"0":"",C[y]=m?"0":"",C.transform=(b.devicePixelRatio||1)<=1?"translate("+g+"px, "+h+"px)":"translate3d("+g+"px, "+h+"px, 0)",C)):Object.assign({},x,((t={})[v]=I?h+"px":"",t[y]=m?g+"px":"",t.transform="",t))}var pp={passive:!0};var hp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=void 0===i||i,a=n.resize,s=void 0===a||a,l=Tg(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",r.update,pp)}),s&&l.addEventListener("resize",r.update,pp),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",r.update,pp)}),s&&l.removeEventListener("resize",r.update,pp)}},data:{}},Ap={left:"right",right:"left",bottom:"top",top:"bottom"};function mp(e){return e.replace(/left|right|bottom|top/g,function(e){return Ap[e]})}var Ip={start:"end",end:"start"};function yp(e){return e.replace(/start|end/g,function(e){return Ip[e]})}function vp(e){var t=Tg(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function bp(e){return Kg(rp(e)).left+vp(e).scrollLeft}function wp(e){var t=ep(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Bp(e){return["html","body","#document"].indexOf(Og(e))>=0?e.ownerDocument.body:jg(e)&&wp(e)?e:Bp(np(e))}function Ep(e,t){var r;void 0===t&&(t=[]);var n=Bp(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=Tg(n),a=i?[o].concat(o.visualViewport||[],wp(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(Ep(np(a)))}function Cp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xp(e,t,r){return t===Mg?Cp(function(e,t){var r=Tg(e),n=rp(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=Wg();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+bp(e),y:l}}(e,r)):Yg(t)?function(e,t){var r=Kg(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Cp(function(e){var t,r=rp(e),n=vp(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=Vg(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Vg(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+bp(e),l=-n.scrollTop;return"rtl"===ep(i||r).direction&&(s+=Vg(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(rp(e)))}function Dp(e,t,r,n){var i="clippingParents"===t?function(e){var t=Ep(np(e)),r=["absolute","fixed"].indexOf(ep(e).position)>=0&&jg(e)?op(e):e;return Yg(r)?t.filter(function(e){return Yg(e)&&Zg(e,r)&&"body"!==Og(e)}):[]}(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce(function(t,r){var i=xp(e,r,n);return t.top=Vg(i.top,t.top),t.right=Pg(i.right,t.right),t.bottom=Pg(i.bottom,t.bottom),t.left=Vg(i.left,t.left),t},xp(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Fp(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?zg(i):null,a=i?fp(i):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(o){case xg:t={x:s,y:r.y-n.height};break;case Dg:t={x:s,y:r.y+r.height};break;case Fg:t={x:r.x+r.width,y:l};break;case Qg:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=o?ap(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Ng:t[c]=t[c]-(r[u]/2-n[u]/2);break;case qg:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}function Qp(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=void 0===n?e.placement:n,o=r.strategy,a=void 0===o?e.strategy:o,s=r.boundary,l=void 0===s?"clippingParents":s,c=r.rootBoundary,u=void 0===c?Mg:c,f=r.elementContext,d=void 0===f?Hg:f,g=r.altBoundary,p=void 0!==g&&g,h=r.padding,A=void 0===h?0:h,m=lp("number"!=typeof A?A:cp(A,kg)),I=d===Hg?"reference":Hg,y=e.rects.popper,v=e.elements[p?I:d],b=Dp(Yg(v)?v:v.contextElement||rp(e.elements.popper),l,u,a),w=Kg(e.elements.reference),B=Fp({reference:w,element:y,strategy:"absolute",placement:i}),E=Cp(Object.assign({},y,B)),C=d===Hg?E:w,x={top:b.top-C.top+m.top,bottom:C.bottom-b.bottom+m.bottom,left:b.left-C.left+m.left,right:C.right-b.right+m.right},D=e.modifiersData.offset;if(d===Hg&&D){var F=D[i];Object.keys(x).forEach(function(e){var t=[Fg,Dg].indexOf(e)>=0?1:-1,r=[xg,Dg].indexOf(e)>=0?"y":"x";x[e]+=F[r]*t})}return x}function Sp(e,t){void 0===t&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?Ug:l,u=fp(n),f=u?s?Lg:Lg.filter(function(e){return fp(e)===u}):kg,d=f.filter(function(e){return c.indexOf(e)>=0});0===d.length&&(d=f);var g=d.reduce(function(t,r){return t[r]=Qp(e,{placement:r,boundary:i,rootBoundary:o,padding:a})[zg(r)],t},{});return Object.keys(g).sort(function(e,t){return g[e]-g[t]})}var kp={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,g=r.flipVariations,p=void 0===g||g,h=r.allowedAutoPlacements,A=t.options.placement,m=zg(A),I=l||(m===A||!p?[mp(A)]:function(e){if(zg(e)===Sg)return[];var t=mp(e);return[yp(e),t,yp(t)]}(A)),y=[A].concat(I).reduce(function(e,r){return e.concat(zg(r)===Sg?Sp(t,{placement:r,boundary:u,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:h}):r)},[]),v=t.rects.reference,b=t.rects.popper,w=new Map,B=!0,E=y[0],C=0;C<y.length;C++){var x=y[C],D=zg(x),F=fp(x)===Ng,Q=[xg,Dg].indexOf(D)>=0,S=Q?"width":"height",k=Qp(t,{placement:x,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),N=Q?F?Fg:Qg:F?Dg:xg;v[S]>b[S]&&(N=mp(N));var q=mp(N),M=[];if(o&&M.push(k[D]<=0),s&&M.push(k[N]<=0,k[q]<=0),M.every(function(e){return e})){E=x,B=!1;break}w.set(x,M)}if(B)for(var H=function(e){var t=y.find(function(t){var r=w.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},L=p?3:1;L>0;L--){if("break"===H(L))break}t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Np(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function qp(e){return[xg,Fg,Dg,Qg].some(function(t){return e[t]>=0})}var Mp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,a=Ug.reduce(function(e,r){return e[r]=function(e,t,r){var n=zg(e),i=[Qg,xg].indexOf(n)>=0?-1:1,o="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Qg,Fg].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,o),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}};var Hp={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,f=r.padding,d=r.tether,g=void 0===d||d,p=r.tetherOffset,h=void 0===p?0:p,A=Qp(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),m=zg(t.placement),I=fp(t.placement),y=!I,v=ap(m),b="x"===v?"y":"x",w=t.modifiersData.popperOffsets,B=t.rects.reference,E=t.rects.popper,C="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,x="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(w){if(o){var Q,S="y"===v?xg:Qg,k="y"===v?Dg:Fg,N="y"===v?"height":"width",q=w[v],M=q+A[S],H=q-A[k],L=g?-E[N]/2:0,U=I===Ng?B[N]:E[N],R=I===Ng?-E[N]:-B[N],O=t.elements.arrow,T=g&&O?$g(O):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=Y[S],G=Y[k],J=sp(0,B[N],T[N]),z=y?B[N]/2-L-J-j-x.mainAxis:U-J-j-x.mainAxis,V=y?-B[N]/2+L+J+G+x.mainAxis:R+J+G+x.mainAxis,P=t.elements.arrow&&op(t.elements.arrow),X=P?"y"===v?P.clientTop||0:P.clientLeft||0:0,_=null!=(Q=null==D?void 0:D[v])?Q:0,W=q+V-_,K=sp(g?Pg(M,q+z-_-X):M,q,g?Vg(H,W):H);w[v]=K,F[v]=K-q}if(s){var $,Z="x"===v?xg:Qg,ee="x"===v?Dg:Fg,te=w[b],re="y"===b?"height":"width",ne=te+A[Z],ie=te-A[ee],oe=-1!==[xg,Qg].indexOf(m),ae=null!=($=null==D?void 0:D[b])?$:0,se=oe?ne:te-B[re]-E[re]-ae+x.altAxis,le=oe?te+B[re]+E[re]-ae-x.altAxis:ie,ce=g&&oe?function(e,t,r){var n=sp(e,t,r);return n>r?r:n}(se,te,le):sp(g?se:ne,te,g?le:ie);w[b]=ce,F[b]=ce-te}t.modifiersData[n]=F}},requiresIfExists:["offset"]};function Lp(e,t,r){void 0===r&&(r=!1);var n,i,o=jg(t),a=jg(t)&&function(e){var t=e.getBoundingClientRect(),r=Xg(t.width)/e.offsetWidth||1,n=Xg(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=rp(t),l=Kg(e,a,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!r)&&(("body"!==Og(t)||wp(s))&&(c=(n=t)!==Tg(n)&&jg(n)?{scrollLeft:(i=n).scrollLeft,scrollTop:i.scrollTop}:vp(n)),jg(t)?((u=Kg(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=bp(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Up(e){var t=new Map,r=new Set,n=[];function i(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&i(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||i(e)}),n}var Rp={placement:"bottom",modifiers:[],strategy:"absolute"};function Op(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Tp(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,i=t.defaultOptions,o=void 0===i?Rp:i;return function(e,t,r){void 0===r&&(r=o);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rp,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(r){var i="function"==typeof r?r(s.options):r;f(),s.options=Object.assign({},o,s.options,i),s.scrollParents={reference:Yg(e)?Ep(e):e.contextElement?Ep(e.contextElement):[],popper:Ep(t)};var a,c,d=function(e){var t=Up(e);return Rg.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}((a=[].concat(n,s.options.modifiers),c=a.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return s.orderedModifiers=d.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,i=e.effect;if("function"==typeof i){var o=i({state:s,name:t,instance:u,options:n}),a=function(){};l.push(o||a)}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,r=e.popper;if(Op(t,r)){s.rects={reference:Lp(t,op(r),"fixed"===s.options.strategy),popper:$g(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var i=s.orderedModifiers[n],o=i.fn,a=i.options,l=void 0===a?{}:a,f=i.name;"function"==typeof o&&(s=o({state:s,options:l,name:f,instance:u})||s)}else s.reset=!1,n=-1}}},update:(i=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(i())})})),a}),destroy:function(){f(),c=!0}};if(!Op(e,t))return u;function f(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(r).then(function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)}),u}}var Yp=Tp({defaultModifiers:[hp,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Fp({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=void 0===n||n,o=r.adaptive,a=void 0===o||o,s=r.roundOffsets,l=void 0===s||s,c={placement:zg(t.placement),variation:fp(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,gp(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,gp(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Jg,Mp,kp,Hp,up,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Qp(t,{elementContext:"reference"}),s=Qp(t,{altBoundary:!0}),l=Np(a,n),c=Np(s,i,o),u=qp(l),f=qp(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}),jp="tippy-content",Gp="tippy-arrow",Jp="tippy-svg-arrow",zp={passive:!0,capture:!0},Vp=function(){return document.body};function Pp(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function Xp(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function _p(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Wp(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)};var r}function Kp(e){return[].concat(e)}function $p(e,t){-1===e.indexOf(t)&&e.push(t)}function Zp(e){return[].slice.call(e)}function eh(e){return Object.keys(e).reduce(function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t},{})}function th(){return document.createElement("div")}function rh(e){return["Element","Fragment"].some(function(t){return Xp(e,t)})}function nh(e){return rh(e)?[e]:function(e){return Xp(e,"NodeList")}(e)?Zp(e):Array.isArray(e)?e:Zp(document.querySelectorAll(e))}function ih(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function oh(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function ah(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,r)})}function sh(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var lh={isTouch:!1},ch=0;function uh(){lh.isTouch||(lh.isTouch=!0,window.performance&&document.addEventListener("mousemove",fh))}function fh(){var e=performance.now();e-ch<20&&(lh.isTouch=!1,document.removeEventListener("mousemove",fh)),ch=e}function dh(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var r=t._tippy;t.blur&&!r.state.isVisible&&t.blur()}}var gh,ph=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function hh(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Ah(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function mh(e){return Ah("\n %ctippy.js\n\n %c"+Ah(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function Ih(e){return[mh(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function yh(e,t){var r;e&&!gh.has(t)&&(gh.add(t),(r=console).warn.apply(r,Ih(t)))}function vh(e,t){var r;e&&!gh.has(t)&&(gh.add(t),(r=console).error.apply(r,Ih(t)))}gh=new Set;var bh={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},wh=Object.assign({appendTo:Vp,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},bh,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Bh=Object.keys(wh);function Eh(e){var t=(e.plugins||[]).reduce(function(t,r){var n,i=r.name,o=r.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(n=wh[i])?n:o);return t},{});return Object.assign({},e,t)}function Ch(e,t){var r=Object.assign({},t,{content:_p(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Eh(Object.assign({},wh,{plugins:t}))):Bh).reduce(function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t},{})}(e,t.plugins));return r.aria=Object.assign({},wh.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function xh(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach(function(e){var r=function(e,t){var r=Object.assign({},e);return t.forEach(function(e){delete r[e]}),r}(wh,Object.keys(bh)),n=!function(e,t){return{}.hasOwnProperty.call(e,t)}(r,e);n&&(n=0===t.filter(function(t){return t.name===e}).length),yh(n,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}function Dh(e,t){e.innerHTML=t}function Fh(e){var t=th();return!0===e?t.className=Gp:(t.className=Jp,rh(e)?t.appendChild(e):Dh(t,e)),t}function Qh(e,t){rh(t.content)?(Dh(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Dh(e,t.content):e.textContent=t.content)}function Sh(e){var t=e.firstElementChild,r=Zp(t.children);return{box:t,content:r.find(function(e){return e.classList.contains(jp)}),arrow:r.find(function(e){return e.classList.contains(Gp)||e.classList.contains(Jp)}),backdrop:r.find(function(e){return e.classList.contains("tippy-backdrop")})}}function kh(e){var t=th(),r=th();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=th();function i(r,n){var i=Sh(t),o=i.box,a=i.content,s=i.arrow;n.theme?o.setAttribute("data-theme",n.theme):o.removeAttribute("data-theme"),"string"==typeof n.animation?o.setAttribute("data-animation",n.animation):o.removeAttribute("data-animation"),n.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),r.content===n.content&&r.allowHTML===n.allowHTML||Qh(a,e.props),n.arrow?s?r.arrow!==n.arrow&&(o.removeChild(s),o.appendChild(Fh(n.arrow))):o.appendChild(Fh(n.arrow)):s&&o.removeChild(s)}return n.className=jp,n.setAttribute("data-state","hidden"),Qh(n,e.props),t.appendChild(r),r.appendChild(n),i(e.props,e.props),{popper:t,onUpdate:i}}kh.$$tippy=!0;var Nh=1,qh=[],Mh=[];function Hh(e,t){var r,n,i,o,a,s,l,c,u=Ch(e,Object.assign({},wh,Eh(eh(t)))),f=!1,d=!1,g=!1,p=!1,h=[],A=Wp(P,u.interactiveDebounce),m=Nh++,I=(c=u.plugins).filter(function(e,t){return c.indexOf(e)===t}),y={id:m,reference:e,popper:th(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:I,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(n),cancelAnimationFrame(i)},setProps:function(t){if(yh(y.state.isDestroyed,hh("setProps")),y.state.isDestroyed)return;q("onBeforeUpdate",[y,t]),z();var r=y.props,n=Ch(e,Object.assign({},r,eh(t),{ignoreAttributes:!0}));y.props=n,J(),r.interactiveDebounce!==n.interactiveDebounce&&(L(),A=Wp(P,n.interactiveDebounce));r.triggerTarget&&!n.triggerTarget?Kp(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded");H(),N(),w&&w(r,n);y.popperInstance&&(K(),Z().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));q("onAfterUpdate",[y,t])},setContent:function(e){y.setProps({content:e})},show:function(){yh(y.state.isDestroyed,hh("show"));var e=y.state.isVisible,t=y.state.isDestroyed,r=!y.state.isEnabled,n=lh.isTouch&&!y.props.touch,i=Pp(y.props.duration,0,wh.duration);if(e||t||r||n)return;if(F().hasAttribute("disabled"))return;if(q("onShow",[y],!1),!1===y.props.onShow(y))return;y.state.isVisible=!0,D()&&(b.style.visibility="visible");N(),T(),y.state.isMounted||(b.style.transition="none");if(D()){var o=S();ih([o.box,o.content],0)}s=function(){var e;if(y.state.isVisible&&!p){if(p=!0,b.offsetHeight,b.style.transition=y.props.moveTransition,D()&&y.props.animation){var t=S(),r=t.box,n=t.content;ih([r,n],i),oh([r,n],"visible")}M(),H(),$p(Mh,y),null==(e=y.popperInstance)||e.forceUpdate(),q("onMount",[y]),y.props.animation&&D()&&function(e,t){j(e,t)}(i,function(){y.state.isShown=!0,q("onShown",[y])})}},function(){var e,t=y.props.appendTo,r=F();e=y.props.interactive&&t===Vp||"parent"===t?r.parentNode:_p(t,[r]);e.contains(b)||e.appendChild(b);y.state.isMounted=!0,K(),yh(y.props.interactive&&t===wh.appendTo&&r.nextElementSibling!==b,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){yh(y.state.isDestroyed,hh("hide"));var e=!y.state.isVisible,t=y.state.isDestroyed,r=!y.state.isEnabled,n=Pp(y.props.duration,1,wh.duration);if(e||t||r)return;if(q("onHide",[y],!1),!1===y.props.onHide(y))return;y.state.isVisible=!1,y.state.isShown=!1,p=!1,f=!1,D()&&(b.style.visibility="hidden");if(L(),Y(),N(!0),D()){var i=S(),o=i.box,a=i.content;y.props.animation&&(ih([o,a],n),oh([o,a],"hidden"))}M(),H(),y.props.animation?D()&&function(e,t){j(e,function(){!y.state.isVisible&&b.parentNode&&b.parentNode.contains(b)&&t()})}(n,y.unmount):y.unmount()},hideWithInteractivity:function(e){yh(y.state.isDestroyed,hh("hideWithInteractivity")),Q().addEventListener("mousemove",A),$p(qh,A),A(e)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){yh(y.state.isDestroyed,hh("unmount")),y.state.isVisible&&y.hide();if(!y.state.isMounted)return;$(),Z().forEach(function(e){e._tippy.unmount()}),b.parentNode&&b.parentNode.removeChild(b);Mh=Mh.filter(function(e){return e!==y}),y.state.isMounted=!1,q("onHidden",[y])},destroy:function(){if(yh(y.state.isDestroyed,hh("destroy")),y.state.isDestroyed)return;y.clearDelayTimeouts(),y.unmount(),z(),delete e._tippy,y.state.isDestroyed=!0,q("onDestroy",[y])}};if(!u.render)return vh(!0,"render() function has not been supplied."),y;var v=u.render(y),b=v.popper,w=v.onUpdate;b.setAttribute("data-tippy-root",""),b.id="tippy-"+y.id,y.popper=b,e._tippy=y,b._tippy=y;var B=I.map(function(e){return e.fn(y)}),E=e.hasAttribute("aria-expanded");return J(),H(),N(),q("onCreate",[y]),u.showOnCreate&&ee(),b.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),b.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&Q().addEventListener("mousemove",A)}),y;function C(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function x(){return"hold"===C()[0]}function D(){var e;return!(null==(e=y.props.render)||!e.$$tippy)}function F(){return l||e}function Q(){var e,t,r=F().parentNode;return r?null!=(t=Kp(r)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function S(){return Sh(b)}function k(e){return y.state.isMounted&&!y.state.isVisible||lh.isTouch||o&&"focus"===o.type?0:Pp(y.props.delay,e?0:1,wh.delay)}function N(e){void 0===e&&(e=!1),b.style.pointerEvents=y.props.interactive&&!e?"":"none",b.style.zIndex=""+y.props.zIndex}function q(e,t,r){var n;(void 0===r&&(r=!0),B.forEach(function(r){r[e]&&r[e].apply(r,t)}),r)&&(n=y.props)[e].apply(n,t)}function M(){var t=y.props.aria;if(t.content){var r="aria-"+t.content,n=b.id;Kp(y.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(r);if(y.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var i=t&&t.replace(n,"").trim();i?e.setAttribute(r,i):e.removeAttribute(r)}})}}function H(){!E&&y.props.aria.expanded&&Kp(y.props.triggerTarget||e).forEach(function(e){y.props.interactive?e.setAttribute("aria-expanded",y.state.isVisible&&e===F()?"true":"false"):e.removeAttribute("aria-expanded")})}function L(){Q().removeEventListener("mousemove",A),qh=qh.filter(function(e){return e!==A})}function U(t){if(!lh.isTouch||!g&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!y.props.interactive||!sh(b,r)){if(Kp(y.props.triggerTarget||e).some(function(e){return sh(e,r)})){if(lh.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else q("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),d=!0,setTimeout(function(){d=!1}),y.state.isMounted||Y())}}}function R(){g=!0}function O(){g=!1}function T(){var e=Q();e.addEventListener("mousedown",U,!0),e.addEventListener("touchend",U,zp),e.addEventListener("touchstart",O,zp),e.addEventListener("touchmove",R,zp)}function Y(){var e=Q();e.removeEventListener("mousedown",U,!0),e.removeEventListener("touchend",U,zp),e.removeEventListener("touchstart",O,zp),e.removeEventListener("touchmove",R,zp)}function j(e,t){var r=S().box;function n(e){e.target===r&&(ah(r,"remove",n),t())}if(0===e)return t();ah(r,"remove",a),ah(r,"add",n),a=n}function G(t,r,n){void 0===n&&(n=!1),Kp(y.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,r,n),h.push({node:e,eventType:t,handler:r,options:n})})}function J(){var e;x()&&(G("touchstart",V,{passive:!0}),G("touchend",X,{passive:!0})),(e=y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(G(e,V),e){case"mouseenter":G("mouseleave",X);break;case"focus":G(ph?"focusout":"blur",_);break;case"focusin":G("focusout",_)}})}function z(){h.forEach(function(e){var t=e.node,r=e.eventType,n=e.handler,i=e.options;t.removeEventListener(r,n,i)}),h=[]}function V(e){var t,r=!1;if(y.state.isEnabled&&!W(e)&&!d){var n="focus"===(null==(t=o)?void 0:t.type);o=e,l=e.currentTarget,H(),!y.state.isVisible&&Xp(e,"MouseEvent")&&qh.forEach(function(t){return t(e)}),"click"===e.type&&(y.props.trigger.indexOf("mouseenter")<0||f)&&!1!==y.props.hideOnClick&&y.state.isVisible?r=!0:ee(e),"click"===e.type&&(f=!r),r&&!n&&te(e)}}function P(e){var t=e.target,r=F().contains(t)||b.contains(t);if("mousemove"!==e.type||!r){var n=Z().concat(b).map(function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:u}:null}).filter(Boolean);(function(e,t){var r=t.clientX,n=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,a=i.placement.split("-")[0],s=i.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,f="left"===a?s.right.x:0,d=t.top-n+l>o,g=n-t.bottom-c>o,p=t.left-r+u>o,h=r-t.right-f>o;return d||g||p||h})})(n,e)&&(L(),te(e))}}function X(e){W(e)||y.props.trigger.indexOf("click")>=0&&f||(y.props.interactive?y.hideWithInteractivity(e):te(e))}function _(e){y.props.trigger.indexOf("focusin")<0&&e.target!==F()||y.props.interactive&&e.relatedTarget&&b.contains(e.relatedTarget)||te(e)}function W(e){return!!lh.isTouch&&x()!==e.type.indexOf("touch")>=0}function K(){$();var t=y.props,r=t.popperOptions,n=t.placement,i=t.offset,o=t.getReferenceClientRect,a=t.moveTransition,l=D()?Sh(b).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||F()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(D()){var r=S().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)}),t.attributes.popper={}}}},f=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},u];D()&&l&&f.push({name:"arrow",options:{element:l,padding:3}}),f.push.apply(f,(null==r?void 0:r.modifiers)||[]),y.popperInstance=Yp(c,b,Object.assign({},r,{placement:n,onFirstUpdate:s,modifiers:f}))}function $(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Z(){return Zp(b.querySelectorAll("[data-tippy-root]"))}function ee(e){y.clearDelayTimeouts(),e&&q("onTrigger",[y,e]),T();var t=k(!0),n=C(),i=n[0],o=n[1];lh.isTouch&&"hold"===i&&o&&(t=o),t?r=setTimeout(function(){y.show()},t):y.show()}function te(e){if(y.clearDelayTimeouts(),q("onUntrigger",[y,e]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=k(!1);t?n=setTimeout(function(){y.state.isVisible&&y.hide()},t):i=requestAnimationFrame(function(){y.hide()})}}else Y()}}function Lh(e,t){void 0===t&&(t={});var r=wh.plugins.concat(t.plugins||[]);!function(e){var t=!e,r="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;vh(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),vh(r,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),xh(t,r),document.addEventListener("touchstart",uh,zp),window.addEventListener("blur",dh);var n=Object.assign({},t,{plugins:r}),i=nh(e),o=rh(n.content),a=i.length>1;yh(o&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var s=i.reduce(function(e,t){var r=t&&Hh(t,n);return r&&e.push(r),e},[]);return rh(e)?s[0]:s}function Uh(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}Lh.defaultProps=wh,Lh.setDefaultProps=function(e){xh(e,[]),Object.keys(e).forEach(function(t){wh[t]=e[t]})},Lh.currentInput=lh,Object.assign({},Jg,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),Lh.setDefaultProps({render:kh});Uh('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}');async function Rh(e,t={}){if(!ba(e))throw new Error("invalid fun");let r=Be(t,"width");r=Fe(r)?la(r):ke(r)?Hn(r):null;let n=Be(t,"height");n=Fe(n)?la(n):ke(n)?Hn(n):null;let i=document.createElement("div");ke(r)&&(i.style.width=`${r}px`),ke(n)&&(i.style.height=`${n}px`);let o=document.createElement("div");o.style.position="absolute",o.style.top=0,o.style.left=0,o.style.zIndex=-1,o.appendChild(i);let a=document.createElement("div");a.style.position="relative",a.appendChild(o);let s,l=document.createElement("div");l.style.position="fixed",l.style.zIndex=-1,l.appendChild(a),Xf(document.querySelector("body"),l);let c=e(i);return s=vs(c)?await c:c,Pf(l),s}function Oh(e){if(!ba(e))throw new Error("fn is not a function");return function(){let t=is(),r=null,n=null;try{r=e.apply(this,arguments)}catch(e){n=e}return null!==n?t.resolve({state:"error",msg:n}):vs(r)?r.then(e=>{t.resolve({state:"success",msg:e})}).catch(e=>{"cancelled"===Be(e,"reason")?t.resolve({state:"cancelled",msg:""}):t.resolve({state:"error",msg:e})}):t.resolve({state:"success",msg:r}),t}}Uh(".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}");let Th=Oh;function Yh(e){if(!Ln(e))return!1;return eo(e)<0}function jh(e=0){let t=0,r=[];Yh(e)&&(e=0),e=eo(e);let n=_i();return n.get=function(){if(r.length>0){return t+=1,r.splice(0,1)[0]}return null},n.cb=function(){t-=1,t<0&&(t=0),r.length>0&&n.emit("message",r)},n.push=function(i){r.push(i),(e<=0||t<e)&&n.emit("message",r)},n.clear=function(){t=0,r=[]},n}function Gh(e=0,t=!1){return new function(e,t){let r=null;Eo(e)||(e=0),e=eo(e),pn(t)||(t=!1);let n=jh(e);return n.on("message",async function(e){let t=n.get();if(!t)return;await ws(1);let r,i=Be(t,"id"),o=Be(t,"fun"),a=Be(t,"input");r=ba(o)?await Th(o)(...a):{state:"error",msg:"fun is not a function"},n.emit(i,r),n.cb()}),function(e,...i){let o=is(),a=Lu();r=a;let s={id:a,fun:e,input:i};return n.push(s),n.once(a,e=>{t?a===r?"success"===e.state?o.resolve(e.msg):o.reject(e.msg):o.reject({reason:"cancelled"}):"success"===e.state?o.resolve(e.msg):o.reject(e.msg)}),o}}(e,t)}function Jh(e,t){yn()?Fe(e)?Pu()?function(e,t){window.navigator.msSaveOrOpenBlob(t,e)}(e,t):function(e,t){let r=window.URL.createObjectURL(t),n=document.createElement("a");n.href=r,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(r)}(e,t):console.log("no filename"):console.log("no window")}function zh(e,t="data"){if(!Ee(e))return{error:"sheet is not an object"};Fe(t)||(t="data");let r=Su();return r.SheetNames.push(t),r.Sheets[t]=e,r}function Vh(e,t="data"){if(!xe(e)&&!wr(e))return{error:"data is not an array or element"};Fe(t)||(t="data");let r=null,n=wn(e);return Ne(n,"error")?n:(r=zh(n,t),Ne(r,"error"),r)}function Ph(e,t="data",r){if(!Fe(e)){let t="no filename";return console.log(t,e),{error:t}}if(Fe(t)||(t="data"),!xe(r)&&!wr(r)){let e="data is not an array or element";return console.log(e,r),{error:e}}xe(r)&&Ce(Be(r,0,null))&&(r=In(r));let n=Vh(r,t);if(Be(n,"error"))return console.log(n.error),n.error;let i=bn();if(yn()){let t=i.write(n,{bookType:"xlsx",bookSST:!1,type:"array"});Jh(e,new Blob([t]))}else try{i.writeFile(n,e)}catch(e){let t=`xl.writeFile failed: ${Be(e,"message",e)}. 提示: 若於Node ESM環境單獨深度import此檔, xlsx ESM build的_fs未注入會擲此錯; 請改用 import { downloadExcelFileFromData } from 'wsemi' (走package main的UMD bundle, xlsx CJS自動載fs), 或於app entry手動呼叫 XLSX.set_fs(fs) 注入fs`;return console.log(t),t}return"ok"}function Xh(e){if(!es(e))return new Blob;return new Blob([e])}function _h(e,t,r=""){if(!Or(t))return{};let n={};return Cr(t,function(t){n[t]=Be(e,t,r)}),n}function Wh(e,t){if(!Ee(e))return{};if(!Or(t))return{};let r={};return Cr(t,function(t){Ne(e,t)&&(r[t]=Be(e,t))}),r}function Kh(e,t=0,r={}){Eo(t)||(t=0),t=eo(t);let n=Be(r,"rounding","");return"ROUND_HALF_UP"!==n&&"ROUND_HALF_EVEN"!==n&&(n="ROUND_HALF_UP"),ke(e)?new oc(e).toDecimalPlaces(t,oc[n]).toNumber():""}function $h(e,t={}){if(!ke(e))throw new Error("v is not a number");let r=Be(t,"returnDigit");if(hn(r)||(r=!1),Ln(e))return r?0:ja(e);let n=null,i=null;for(let t=1;t<=16;t++){let r=e*Math.pow(10,t);if(Math.abs(r-Math.round(r))<1e-9){n=t,i=sc(e,t);break}}return null===i&&(n=16,i=ja(e)),r?n:i}let Zh=e=>{let t=1;e<0&&(t=-1);let r=null;if((e=Math.abs(e))<.1)for(let n=1;n<16;n++){let i=Math.pow(10,n);if((e*=i)<1){r={r:1/i,v:t*e};break}}else{if(e<1)return{r:1,v:t*e};if(e>=1)for(let n=1;n<16;n++){let i=Math.pow(10,n);if((e/=i)<1){r={r:i,v:t*e};break}}}if(null===r)throw new Error(`can not normalize v[${e}]`);return r};function eA(e,t,r={}){if(!Fe(e))return"";if(!Eo(t))return e;if(t=eo(t),e.length<=t)return e;let n=Be(r,"funWithMsg"),i="";if(ba(n)){let r=n(e,t);Fe(r)&&(i=r)}return fa(e,t)+`...${i}`}function tA(e,t={}){let r=Be(t,"fs"),n=!1;try{r.statSync(e),n=!0}catch{n=!1}return n}function rA(e,t={}){let r=Be(t,"fs");return!!tA(e,{fs:r})&&(!r.lstatSync(e).isDirectory()&&!r.lstatSync(e).isSymbolicLink())}function nA(e){return rA(e,{fs:a})}function iA(e,t={}){let r=null,n=Be(t,"fs"),i="";try{i=n.readFileSync(e,"utf8")}catch(e){r=e}return null!==r?{error:r}:{success:i}}function oA(e){return iA(e,{fs:a})}function aA(e){let t=is();return s(Number(e),"SIGKILL",r=>{r?t.reject(r):t.resolve(`pid[${e}] killed`)}),t}function sA(e,t){if("win32"!==process.platform)return{file:e,args:t};let r=function(e){if("win32"!==process.platform)return e;if(/\.(cmd|exe|bat|ps1)$/i.test(e))return e;if(o.isAbsolute(e))return e;try{let t=i.execFileSync("where",[e],{encoding:"utf8",timeout:5e3,windowsHide:!0,shell:!1,stdio:["ignore","pipe","ignore"]}).trim().split(/\r?\n/),r=t.find(e=>/\.cmd$/i.test(e));return r||(t.find(e=>/\.exe$/i.test(e))||t[0]||e)}catch{return e}}(e);if(/\.exe$/i.test(r))return{file:r,args:t};if(/\.(cmd|bat)$/i.test(r)){let e=function(e){let t=Be(oA(e),"success","");if(!Fe(t))return null;let r=t.match(/%dp0%\\(node_modules\\[^"]+)"/i);if(!r)return null;let n=o.dirname(e),i=o.join(n,r[1]);return nA(i)?i:null}(r);if(e)return/\.exe$/i.test(e)?{file:e,args:t}:{file:process.execPath,args:[e,...t]};let i=t.map(e=>`"${e.replace(/(\\*)"/g,'$1$1\\"').replace(/(\\*)$/,"$1$1")}"`.replace(/[()%!^"<>&|]/g,"^$&")),a=`${n=r,n.replace(/[()%!^"<>&|;, ]/g,"^$&")} ${i.join(" ")}`;return{file:process.env.comspec||process.env.COMSPEC||"cmd.exe",args:["/d","/s","/c",`"${a}"`],opt:{windowsVerbatimArguments:!0}}}var n;return{file:r,args:t}}let lA={funWithMsg:e=>`(truncated, total ${e.length} chars)`};function cA(e,t=[],r={}){let{timeoutMs:n=12e4,cwd:o=process.cwd(),input:a,validate:s,maxBuffer:l=10485760,onStdout:c,onStderr:u,env:f}=r,d=function(e){if(ba(e))return e;if(!Fe(e))return null;let t=e.split(",").map(e=>e.trim()).filter(Boolean);return 0===t.length?null:e=>{for(let r of t)if("nonempty"===r){if(!Fe(e)||""===e.trim())return!1}else if("json"===r)try{JSON.parse(e)}catch{return!1}else if("min:"===fa(r,4)){let t=ga(r,4);if(!ke(t))return!1;let n=eo(t);if(!Fe(e)||e.length<n)return!1}return!0}}(s),g=Date.now(),p=is(),h={...process.env,PYTHONIOENCODING:"utf-8"};if(void 0!==f){if("win32"===process.platform){let e=Object.keys(f).map(e=>e.toLowerCase());for(let t of Object.keys(h))e.includes(t.toLowerCase())&&delete h[t]}h={...h,...f}}let A=sA(e,t),m=i.spawn(A.file,A.args,{cwd:o,stdio:["pipe","pipe","pipe"],windowsHide:!0,env:h,...A.opt}),I="",y="",v=new TextDecoder("utf-8"),b=new TextDecoder("utf-8"),w=!1,B=!1;m.stdout.on("data",e=>{let t=v.decode(e,{stream:!0});t&&(ba(c)&&c(t),I.length<l&&(I+=t))}),m.stderr.on("data",e=>{let t=b.decode(e,{stream:!0});t&&(ba(u)&&u(t),y.length<l&&(y+=t))}),m.stdin.on("error",()=>{}),void 0!==a&&m.stdin.write(a,"utf8"),m.stdin.end();let E=setTimeout(()=>{w||(B=!0,aA(m.pid).catch(()=>{}),setTimeout(()=>{w||(w=!0,p.resolve({ok:!1,stdout:eA(I,500,lA),stderr:eA(y,500,lA),code:null,error:`TIMEOUT after ${n/1e3}s(子進程未能結束)`,durationMs:Date.now()-g,pid:m.pid}))},3e3).unref())},n);return m.on("error",e=>{w||(w=!0,clearTimeout(E),p.resolve({ok:!1,stdout:"",stderr:"",code:null,error:`${e.code||"UNKNOWN"}: ${e.message}`,durationMs:Date.now()-g,pid:m.pid}))}),m.on("close",(e,t)=>{if(w)return;w=!0,clearTimeout(E);let r=v.decode();r&&I.length<l&&(I+=r);let i=b.decode();i&&y.length<l&&(y+=i);let o=Date.now()-g;B?p.resolve({ok:!1,stdout:eA(I,500,lA),stderr:eA(y,500,lA),code:e,error:`TIMEOUT after ${n/1e3}s`,durationMs:o,pid:m.pid}):0===e?!d||d(I)?p.resolve({ok:!0,stdout:I,stderr:y,code:0,error:"",durationMs:o,pid:m.pid}):p.resolve({ok:!1,stdout:eA(I,500,lA),stderr:eA(y,500,lA),code:0,error:"OUTPUT_VALIDATION_FAILED",durationMs:o,pid:m.pid}):p.resolve({ok:!1,stdout:eA(I,500,lA),stderr:eA(y,1e3,lA),code:e,error:t?`Signal: ${t}`:`Exit code ${e}`,durationMs:o,pid:m.pid})}),p}function uA(e,t){return e>t}function fA(e){return e&&e.length?bd(e,cr,uA):void 0}function dA(e){return null==e?[]:function(e,t){return he(t,function(t){return e[t]})}(e,gt(e))}function gA(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(n,a,r(a),e)}return n}function pA(e,t,r,n){return ht(e,function(e,i,o){t(n,e,r(e),o)}),n}var hA,AA,mA=Object.prototype.hasOwnProperty,IA=(hA=function(e,t,r){mA.call(e,r)?e[r].push(t):gi(e,r,[t])},function(e,t){var r=b(e)?gA:pA,n=AA?AA():{};return r(e,hA,dr(t),n)}),yA=IA;function vA(e,t){if(!xe(e)||!xe(t))return[];if(e.length!==t.length)return[];return Dr(e,function(r,n){return bg(e[n],t[n])})}function bA(e,t={}){let r=Be(t,"fs");if(!tA(e,{fs:r}))return!1;let n=r.lstatSync(e);return!n.isFile()&&!n.isSymbolicLink()}function wA(e,t={}){let r=Be(t,"fs");if(bA(e,{fs:r}))return{success:"input folder is already exists: "+e};if(tA(e,{fs:r}))return{error:"input path already exists: "+e};try{r.mkdirSync(e,{recursive:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function BA(e,t={}){let r=Be(t,"path"),n=Be(t,"fs");if(!tA(e,{fs:n})){let t=wA(e,{fs:n});return t.error?t.error:{success:"done: "+e}}if(!bA(e,{fs:n}))return{error:"input path is not a folder"};try{let t=n.readdirSync(e);for(let i of t){let t=r.join(e,i);n.statSync(t).isDirectory()?n.rmSync(t,{recursive:!0,force:!0}):n.unlinkSync(t)}}catch(e){return{error:e}}return{success:"done: "+e}}function EA(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs"),o=Be(r,"useSync","");hn(o)||(o=!0);let a="";return a=o?function(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!rA(e,{fs:i}))return{error:`fpSrc[${e}] is not a file`};try{wA(n.dirname(t),{fs:i}),i.copyFileSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}(e,t,{path:n,fs:i}):async function(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!rA(e,{fs:i}))return{error:`fpSrc[${e}] is not a file`};let o=null;return await(async(e,t)=>{wA(n.dirname(t),{fs:i}),await new Promise((r,n)=>{let o=i.createReadStream(e),a=i.createWriteStream(t);o.on("error",n),a.on("error",n),a.on("finish",r),o.pipe(a)})})(e,t).then(()=>{o={success:"done: "+t}}).catch(e=>{o={error:e}}),o}(e,t,{path:n,fs:i}),a}function CA(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!bA(e,{fs:i}))return{error:`fpSrc[${e}] is not a folder`};try{i.readdirSync(e).forEach(function(r){let o=n.resolve(e,r),a=n.resolve(t,r),s=i.lstatSync(o);if(s.isDirectory())wA(a,{fs:i}),CA(o,a,{path:n,fs:i});else if(s.isSymbolicLink()){let e=i.readlinkSync(o);i.symlinkSync(e,a)}else wA(n.dirname(a),{fs:i}),i.copyFileSync(o,a)})}catch(e){return{error:e}}return{success:"done: "+t}}function xA(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs"),o=Be(r,"useSync","");hn(o)||(o=!0);let a="";return a=o?CA(e,t,{path:n,fs:i}):async function(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!bA(e,{fs:i}))return{error:`fpSrc[${e}] is not a folder`};let o=async(e,t)=>{let r=i.readdirSync(e);for(let a of r){let r=n.join(e,a),s=n.join(t,a),l=i.lstatSync(r);if(l.isDirectory())wA(s,{fs:i}),await o(r,s);else if(l.isSymbolicLink()){let e=i.readlinkSync(r);i.symlinkSync(e,s)}else wA(n.dirname(s),{fs:i}),await new Promise((e,t)=>{let n=i.createReadStream(r),o=i.createWriteStream(s);n.on("error",t),o.on("error",t),o.on("finish",e),n.pipe(o)})}},a=null;return await o(e,t).then(()=>{a={success:"done: "+t}}).catch(e=>{a={error:e}}),a}(e,t,{path:n,fs:i}),a}function DA(e){if(!Fe(e))return{path:"",isRoot:!1};for(;e.indexOf("\\\\")>=0;)e=e.replace("\\\\","\\");for(;e.indexOf("//")>=0;)e=e.replace("//","/");if(":"===da(e,1))return{path:`${e}\\`,isRoot:!0};if("\\"===da(e,1)){let t=Ja(e,1);return":"===da(t,1)?{path:e,isRoot:!0}:{path:t,isRoot:!1}}if("/"===da(e,1)){let t=Ja(e,1);return 0===t.length?{path:e,isRoot:!0}:{path:t,isRoot:!1}}return{path:e,isRoot:!1}}function FA(e){if(!Fe(e))return"";let t=DA(e);if(t.isRoot)return t.path;let r=t.path;try{r=r.split("\\").pop().split("/").pop()}catch(e){}return r}function QA(e){if(!Fe(e))return"";let t=DA(e);if(t.isRoot)return t.path;let r=FA(e=t.path);if(!Fe(r))return e;let n=DA(e=Ja(e,r.length));return n.isRoot,n.path}function SA(e,t="",r={}){let n=Be(r,"fs"),i=Be(r,"encoding","");if(Fe(i)||(i="utf8"),tA(e,{fs:n}))return{error:"input path already exists: "+e};if(rA(e,{fs:n}))return{error:"input file is already exists: "+e};let o=QA(e);bA(o,{fs:n})||wA(o,{fs:n});try{n.writeFileSync(e,t,{encoding:i})}catch(e){return{error:e}}return{success:"done: "+e}}function kA(e){return wA(e,{fs:a})}function NA(e,t={}){let r=Be(t,"fs");if(!tA(e,{fs:r}))return{success:"file does not exist: "+e};if(!rA(e,{fs:r}))return{error:"input path is not a file: "+e};try{r.unlinkSync(e)}catch(e){return{error:e}}return{success:"done: "+e}}async function qA(e,t={}){let r=Be(t,"numRetry");to(r)||(r=5),r=eo(r);let n=Be(t,"fs",null);if(!tA(e,{fs:n}))return"file does not exist: "+e;if(!rA(e,{fs:n}))return Promise.reject("input path is not a file: "+e);for(let t=0;t<r;t++)try{n.unlinkSync(e);break}catch(e){if("EBUSY"!==e.code)return Promise.reject(e);await ws(300)}return"done: "+e}function MA(e,t={}){let r=Be(t,"fs");if(!tA(e,{fs:r}))return{success:"folder does not exist: "+e};if(!bA(e,{fs:r}))return{error:"input path is not a folder: "+e};try{r.rmSync(e,{recursive:!0,force:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function HA(e){return MA(e,{fs:a})}async function LA(e,t={}){let r=Be(t,"numRetry");to(r)||(r=5),r=eo(r);let n=Be(t,"fs",null);if(!tA(e,{fs:n}))return"folder does not exist: "+e;if(!bA(e,{fs:n}))return Promise.reject("input path is not a folder: "+e);for(let t=0;t<r;t++)try{n.rmSync(e,{recursive:!0,force:!0});break}catch(e){if("EBUSY"!==e.code)return Promise.reject(e);await ws(300)}return"done: "+e}async function UA(e,t,r={}){let n="",i=Be(r,"fs"),o=Be(r,"Readable");if(!Fe(e))throw new Error("urlIn in not an effective string");let a=QA(t),s=Be(r,"fnOut","");Fe(s)||(s=FA(t)),bA(a,{fs:i})||wA(a,{fs:i});let l=is();try{let r=await fetch(e);if(!r.ok)return l.reject(r.statusText),l;let a=i.createWriteStream(t);o.fromWeb(r.body).pipe(a),a.on("finish",()=>{l.resolve(t)}),a.on("error",e=>{n=e.message,l.reject(n)})}catch(e){n=e.message,l.reject(n)}return l}function RA(){if(!ba(r))throw new Error("invalid dayjs");return r().format("YYYY-MM-DDTHH:mm:ssZ")}function OA(e){if(!Fe(e))return"";let t=FA(e),r=zo(t,".");if(gn(r)<=1)return t;let n="";try{r=Vo(r),n=Do(r,".")}catch(e){}return n}function TA(e){return bA(e,{fs:a})}function YA(e,t={}){let r=Be(t,"polling");hn(r)||(r=!1);let n=Be(t,"timeInterval");to(n)||(n=100),n=eo(n);let i=Be(t,"timeBinaryInterval");to(i)||(i=300),i=eo(i);let s=new f.EventEmitter,l=e,c=null,u=setInterval(()=>{if(null===c)TA(l)&&(c=d.watch(l,{usePolling:r,interval:n,binaryInterval:i,awaitWriteFinish:!0}),c.on("all",(e,t,r)=>{t=o.resolve(t),s.emit("change",{type:e,fp:t,stats:r}),"unlinkDir"===e&&o.resolve(l)===t&&setTimeout(()=>{g()},1)}));else if(!TA(l)){let e=a.fstatSync;s.emit("change",{type:"unlinkDir",fp:o.resolve(l),stats:e}),setTimeout(()=>{g()},1)}},n),g=()=>{if(null!==c){try{c.unwatch(l)}catch(e){console.log(e)}c.close().catch(e=>{console.log(e)}).finally(()=>{c=null})}};return s.clear=()=>{g(),clearInterval(u)},s}function jA(e,t={}){let r=Be(t,"fs"),n=Be(t,"crypto"),i=Be(t,"type","");Fe(i)||(i="sha512");let o=is();if(!rA(e,{fs:r}))return o.reject(`fp[${e}] is not a file`),o;try{let t=n.createHash(i),a=r.createReadStream(e);a.on("readable",()=>{let e=a.read();e?t.update(e):o.resolve(t.digest("hex"))}),a.on("error",e=>{o.reject(e.toString())})}catch(e){o.reject(e.toString())}return o}const GA=new Uint8Array([0,97,115,109,1,0,0,0,1,48,8,96,3,127,127,127,1,127,96,3,127,127,127,0,96,2,127,127,0,96,1,127,1,127,96,3,127,127,126,1,126,96,3,126,127,127,1,126,96,2,127,126,0,96,1,127,1,126,3,11,10,0,0,2,1,3,4,5,6,1,7,5,3,1,0,1,7,85,9,3,109,101,109,2,0,5,120,120,104,51,50,0,0,6,105,110,105,116,51,50,0,2,8,117,112,100,97,116,101,51,50,0,3,8,100,105,103,101,115,116,51,50,0,4,5,120,120,104,54,52,0,5,6,105,110,105,116,54,52,0,7,8,117,112,100,97,116,101,54,52,0,8,8,100,105,103,101,115,116,54,52,0,9,10,251,22,10,242,1,1,4,127,32,0,32,1,106,33,3,32,1,65,16,79,4,127,32,3,65,16,107,33,6,32,2,65,168,136,141,161,2,106,33,3,32,2,65,137,235,208,208,7,107,33,4,32,2,65,207,140,162,142,6,106,33,5,3,64,32,3,32,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,4,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,2,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,5,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,6,32,0,65,4,106,34,0,79,13,0,11,32,2,65,12,119,32,5,65,18,119,106,32,4,65,7,119,106,32,3,65,1,119,106,5,32,2,65,177,207,217,178,1,106,11,32,1,106,32,0,32,1,65,15,113,16,1,11,146,1,0,32,1,32,2,106,33,2,3,64,32,1,65,4,106,32,2,75,69,4,64,32,0,32,1,40,2,0,65,189,220,202,149,124,108,106,65,17,119,65,175,214,211,190,2,108,33,0,32,1,65,4,106,33,1,12,1,11,11,3,64,32,1,32,2,79,69,4,64,32,0,32,1,45,0,0,65,177,207,217,178,1,108,106,65,11,119,65,177,243,221,241,121,108,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,65,15,118,115,65,247,148,175,175,120,108,34,0,65,13,118,32,0,115,65,189,220,202,149,124,108,34,0,65,16,118,32,0,115,11,63,0,32,0,65,8,106,32,1,65,168,136,141,161,2,106,54,2,0,32,0,65,12,106,32,1,65,137,235,208,208,7,107,54,2,0,32,0,65,16,106,32,1,54,2,0,32,0,65,20,106,32,1,65,207,140,162,142,6,106,54,2,0,11,195,4,1,6,127,32,1,32,2,106,33,6,32,0,65,24,106,33,4,32,0,65,40,106,40,2,0,33,3,32,0,32,0,40,2,0,32,2,106,54,2,0,32,0,65,4,106,34,5,32,5,40,2,0,32,2,65,16,79,32,0,40,2,0,65,16,79,114,114,54,2,0,32,2,32,3,106,65,16,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,40,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,16,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,40,2,0,32,4,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,12,106,34,3,32,3,40,2,0,32,4,65,4,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,16,106,34,3,32,3,40,2,0,32,4,65,8,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,20,106,34,3,32,3,40,2,0,32,4,65,12,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,40,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,32,6,65,16,107,77,4,64,32,6,65,16,107,33,8,32,0,65,8,106,40,2,0,33,2,32,0,65,12,106,40,2,0,33,3,32,0,65,16,106,40,2,0,33,5,32,0,65,20,106,40,2,0,33,7,3,64,32,2,32,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,3,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,5,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,7,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,7,32,8,32,1,65,4,106,34,1,79,13,0,11,32,0,65,8,106,32,2,54,2,0,32,0,65,12,106,32,3,54,2,0,32,0,65,16,106,32,5,54,2,0,32,0,65,20,106,32,7,54,2,0,11,32,1,32,6,73,4,64,32,4,32,1,32,6,32,1,107,34,1,252,10,0,0,32,0,65,40,106,32,1,54,2,0,11,11,97,1,1,127,32,0,65,16,106,40,2,0,33,1,32,0,65,4,106,40,2,0,4,127,32,1,65,12,119,32,0,65,20,106,40,2,0,65,18,119,106,32,0,65,12,106,40,2,0,65,7,119,106,32,0,65,8,106,40,2,0,65,1,119,106,5,32,1,65,177,207,217,178,1,106,11,32,0,40,2,0,106,32,0,65,24,106,32,0,65,40,106,40,2,0,16,1,11,255,3,2,3,126,1,127,32,0,32,1,106,33,6,32,1,65,32,79,4,126,32,6,65,32,107,33,6,32,2,66,214,235,130,238,234,253,137,245,224,0,124,33,3,32,2,66,177,169,172,193,173,184,212,166,61,125,33,4,32,2,66,249,234,208,208,231,201,161,228,225,0,124,33,5,3,64,32,3,32,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,3,32,4,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,4,32,2,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,2,32,5,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,5,32,6,32,0,65,8,106,34,0,79,13,0,11,32,2,66,12,137,32,5,66,18,137,124,32,4,66,7,137,124,32,3,66,1,137,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,2,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,2,66,197,207,217,178,241,229,186,234,39,124,11,32,1,173,124,32,0,32,1,65,31,113,16,6,11,134,2,0,32,1,32,2,106,33,2,3,64,32,2,32,1,65,8,106,79,4,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,27,137,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,33,0,32,1,65,8,106,33,1,12,1,11,11,32,1,65,4,106,32,2,77,4,64,32,0,32,1,53,2,0,66,135,149,175,175,152,182,222,155,158,127,126,133,66,23,137,66,207,214,211,190,210,199,171,217,66,126,66,249,243,221,241,153,246,153,171,22,124,33,0,32,1,65,4,106,33,1,11,3,64,32,1,32,2,73,4,64,32,0,32,1,49,0,0,66,197,207,217,178,241,229,186,234,39,126,133,66,11,137,66,135,149,175,175,152,182,222,155,158,127,126,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,66,33,136,133,66,207,214,211,190,210,199,171,217,66,126,34,0,32,0,66,29,136,133,66,249,243,221,241,153,246,153,171,22,126,34,0,32,0,66,32,136,133,11,77,0,32,0,65,8,106,32,1,66,214,235,130,238,234,253,137,245,224,0,124,55,3,0,32,0,65,16,106,32,1,66,177,169,172,193,173,184,212,166,61,125,55,3,0,32,0,65,24,106,32,1,55,3,0,32,0,65,32,106,32,1,66,249,234,208,208,231,201,161,228,225,0,124,55,3,0,11,244,4,2,3,127,4,126,32,1,32,2,106,33,5,32,0,65,40,106,33,4,32,0,65,200,0,106,40,2,0,33,3,32,0,32,0,41,3,0,32,2,173,124,55,3,0,32,2,32,3,106,65,32,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,200,0,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,32,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,41,3,0,32,4,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,16,106,34,3,32,3,41,3,0,32,4,65,8,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,24,106,34,3,32,3,41,3,0,32,4,65,16,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,32,106,34,3,32,3,41,3,0,32,4,65,24,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,200,0,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,65,32,106,32,5,77,4,64,32,5,65,32,107,33,2,32,0,65,8,106,41,3,0,33,6,32,0,65,16,106,41,3,0,33,7,32,0,65,24,106,41,3,0,33,8,32,0,65,32,106,41,3,0,33,9,3,64,32,6,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,7,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,7,32,8,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,8,32,9,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,9,32,2,32,1,65,8,106,34,1,79,13,0,11,32,0,65,8,106,32,6,55,3,0,32,0,65,16,106,32,7,55,3,0,32,0,65,24,106,32,8,55,3,0,32,0,65,32,106,32,9,55,3,0,11,32,1,32,5,73,4,64,32,4,32,1,32,5,32,1,107,34,1,252,10,0,0,32,0,65,200,0,106,32,1,54,2,0,11,11,188,2,1,5,126,32,0,65,24,106,41,3,0,33,1,32,0,41,3,0,34,2,66,32,90,4,126,32,0,65,8,106,41,3,0,34,3,66,1,137,32,0,65,16,106,41,3,0,34,4,66,7,137,124,32,1,66,12,137,32,0,65,32,106,41,3,0,34,5,66,18,137,124,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,1,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,1,66,197,207,217,178,241,229,186,234,39,124,11,32,2,124,32,0,65,40,106,32,2,66,31,131,167,16,6,11]);async function JA(){return function(e){const{exports:{mem:t,xxh32:r,xxh64:n,init32:i,update32:o,digest32:a,init64:s,update64:l,digest64:c}}=e;let u=new Uint8Array(t.buffer);function f(e,r){if(t.buffer.byteLength<e+r){const n=Math.ceil((e+r-t.buffer.byteLength)/65536);t.grow(n),u=new Uint8Array(t.buffer)}}function d(e,t,r,n,i,o){f(e);const a=new Uint8Array(e);return u.set(a),r(0,t),a.set(u.subarray(0,e)),{update(t){let r;return u.set(a),"string"==typeof t?(f(3*t.length,e),r=A.encodeInto(t,u.subarray(e)).written):(f(t.byteLength,e),u.set(t,e),r=t.byteLength),n(0,e,r),a.set(u.subarray(0,e)),this},digest:()=>(u.set(a),o(i(0)))}}function g(e){return e>>>0}const p=2n**64n-1n;function h(e){return e&p}const A=new TextEncoder;function m(e,t=0){return f(3*e.length,0),g(r(0,A.encodeInto(e,u).written,t))}function I(e,t=0n){return f(3*e.length,0),h(n(0,A.encodeInto(e,u).written,t))}return{h32:m,h32ToString:(e,t=0)=>m(e,t).toString(16).padStart(8,"0"),h32Raw:(e,t=0)=>(f(e.byteLength,0),u.set(e),g(r(0,e.byteLength,t))),create32:(e=0)=>d(48,e,i,o,a,g),h64:I,h64ToString:(e,t=0n)=>I(e,t).toString(16).padStart(16,"0"),h64Raw:(e,t=0n)=>(f(e.byteLength,0),u.set(e),h(n(0,e.byteLength,t))),create64:(e=0n)=>d(88,e,s,l,c,h)}}((await WebAssembly.instantiate(GA)).instance)}async function zA(e,t={}){let r=Be(t,"fs"),n=Be(t,"chunkSize");if(ke(n)||(n=67108864),n=Hn(n),!rA(e,{fs:r}))return Promise.reject("fp is not a file");let i=is();try{let{create64:t}=await JA(),o=t(),a=r.createReadStream(e,{highWaterMark:n});a.on("data",e=>{o.update(e)}),a.on("end",()=>{let e=o.digest().toString(16).padStart(16,"0");i.resolve(e)}),a.on("error",i.reject)}catch(e){i.reject(e.toString())}return i}function VA(e,t={}){let r=Be(t,"fs"),n=Be(t,"crypto"),i=Be(t,"type","");Fe(i)||(i="sha512");let o=Be(t,"chunkSize");ke(o)||(o=67108864),o=Hn(o);let a=is();return rA(e,{fs:r})?"xxhash64"===i?zA(e,{fs:r,chunkSize:o}):jA(e,{fs:r,crypto:n,type:i}):(a.reject(`fp[${e}] is not a file`),a)}function PA(e,t=1,r={}){let n=1,i=Be(r,"path"),o=Be(r,"fs");if(!bA(e,{fs:o}))throw new Error(`fd[${e}] is not a folder`);return null!==t&&to(t)&&(t=eo(t))<1&&(t=1),function e(r){let a=[];return bA(r,{fs:o})?(Cr(o.readdirSync(r),function(s){let l=i.resolve(r,s),c=null;try{c=o.statSync(l)}catch(e){}c&&c.isDirectory()?(a.push({isFolder:!0,level:n,path:l,name:i.basename(l)}),n+=1,(n<=t||null===t)&&(a=a.concat(e(l))),n-=1):a.push({isFolder:!1,level:n,path:l,name:i.basename(l)})}),a):a}(e)}function XA(e,t=1,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!bA(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let o=[];return o=PA(e,t,{path:n,fs:i}),o=ha(o,{isFolder:!1}),o=Dr(o,e=>(delete e.isFolder,e)),o}async function _A(e,t=1,r={}){let n=Be(r,"path"),i=Be(r,"fs"),o=Be(r,"crypto"),a=Be(r,"type","");if(Fe(a)||(a="md5"),!bA(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let s=XA(e,t,{path:n,fs:i});return s=await cc(s,async e=>{let t=Be(e,"path","");return e.hashType=a,e.hash="",Fe(t)&&(e.hash=await VA(t,{fs:i,crypto:o,type:a,useSync:!1})),e}),s}async function WA(e,t=1,r={}){return _A(e,t,{path:o,fs:a,crypto:g,...r})}async function KA(e,t={}){let r=Be(t,"path"),n=Be(t,"fs"),i=Be(t,"crypto"),o=Be(t,"type","");Fe(o)||(o="md5");let a=[],s=PA(e,null,{path:r,fs:n});return await cc(s,async e=>{if(e.isFolder)return;let t=await jA(e.path,{fs:n,crypto:i,type:o});a.push(t)}),Do(a,"|")}function $A(e,t=1,r={}){let n=Be(r,"path"),i=Be(r,"fs");if(!bA(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let o=[];return o=PA(e,t,{path:n,fs:i}),o=ha(o,{isFolder:!0}),o=Dr(o,e=>(delete e.isFolder,e)),o}async function ZA(e,t,r={}){let n="",i=Be(r,"fs");if(!Or(e))throw new Error("fpsIn in not an effective array");let o=QA(t),a=Be(r,"fnOut","");Fe(a)||(a=FA(t)),bA(o,{fs:i})||wA(o,{fs:i});let s=is();try{let r=i.createWriteStream(t);for(let t=0;t<e.length;t++){let o=e[t];if(!rA(o,{fs:i}))throw new Error(`fpIn[${o}] is not a file`);let a=()=>{let e=is(),t=i.createReadStream(o);return t.on("error",t=>{n=t.message,e.reject(t)}),t.on("end",()=>{NA(o,{fs:i}),e.resolve()}),t.pipe(r,{end:!1}),e};await a()}r.end(),r.on("error",e=>{n=e.message,s.reject(n)}),r.on("finish",()=>{let e={filename:a,path:t};s.resolve(e)})}catch(e){n=e.message,s.reject(n)}return s}function em(e,t,r={}){let n=Be(r,"fs");if(!rA(e,{fs:n}))return{error:`pahOld[${e}] is not a file`};if(tA(t,{fs:n}))return{error:`pahNew[${t}] already exists`};let i=QA(t);bA(i,{fs:n})||wA(i,{fs:n});try{n.renameSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}function tm(e,t,r={}){let n=Be(r,"fs");if(!bA(e,{fs:n}))return{error:`pahOld[${e}] is not a folder`};if(tA(t,{fs:n}))return{error:`pahNew[${t}] already exists`};let i=QA(t);bA(i,{fs:n})||wA(i,{fs:n});try{n.renameSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}function rm(e,t,r,n={}){let i=Be(n,"withInfor");hn(i)||(i=!0);let o={del:[],add:[],same:[],diff:[]};if(!Fe(r))return console.log("invalid key"),i&&(o.infor={}),o;xe(e)||(e=[e]),xe(t)||(t=[t]),e=ha(e,e=>Ne(e,r)),t=ha(t,e=>Ne(e,r));let a=new Map(t.map(e=>[e[r],e]));for(let t of e){let e=a.get(t[r]);if(e){JSON.stringify(t)===JSON.stringify(e)?o.same.push(e):o.diff.push(e),a.delete(t[r])}else o.del.push(t)}if(o.add=Array.from(a.values()),i){let e={};for(let t of o.del)e[t[r]]="del";for(let t of o.add)e[t[r]]="add";for(let t of o.diff)e[t[r]]="diff";for(let t of o.same)e[t[r]]="same";o.infor=e}return o}async function nm(e,t=1,r={}){let n=Be(r,"path"),i=Be(r,"fs"),o=Be(r,"crypto"),a=Be(r,"type","");Fe(a)||(a="md5");let s=Be(r,"forFile",null);hn(s)||(s=!0);let l=Be(r,"forFolder",null);if(hn(l)||(l=!1),!bA(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);let c=PA(e,t,{path:n,fs:i});return c=await cc(c,async e=>{let t="";return s&&!e.isFolder&&(t=await jA(e.path,{fs:i,crypto:o,type:a})),l&&e.isFolder&&(t=await KA(e.path,{path:n,fs:i,crypto:o,type:a})),e.hash=t,e}),c}async function im(e,t,r={}){let n=Be(r,"path"),i=Be(r,"fs"),o=Be(r,"crypto"),a=Be(r,"type","");if(Fe(a)||(a="md5"),!bA(e,{fs:i}))throw new Error(`fdSrc[${e}] is not a folder`);let s=!1;if(!bA(t,{fs:i}))return await xA(e,t,{path:n,fs:i,useSync:!1}),s=!0,s;let l=n.sep,c=n.sep.length,u=(e,t)=>(e=Dr(e,e=>((e,t)=>{let r=e.isFolder?"folder":"file",n=e.path.replace(t,"");return fa(n,c)===l&&(n=ga(n,c)),n=n.replaceAll("\\","/"),{id:`${r}|${n}`,isFolder:e.isFolder,name:e.name,rpath:n,hash:e.hash}})(e,t)),e),f=await nm(e,null,{path:n,fs:i,crypto:o,type:a,forFile:!0,forFolder:!1});f=u(f,n.resolve(e));let d=await nm(t,null,{path:n,fs:i,crypto:o,type:a,forFile:!0,forFolder:!1});d=u(d,n.resolve(t));let g=rm(d,f,"id",{withInfor:!1});return s=gn(g.del)>0||gn(g.add)>0||gn(g.diff)>0,await cc(g.del,async e=>{if(e.isFolder){MA(n.resolve(t,e.rpath),{fs:i})}}),await cc(g.del,async e=>{if(!e.isFolder){NA(n.resolve(t,e.rpath),{fs:i})}}),await cc([...g.add,...g.diff],async r=>{if(!r.isFolder){let o=n.resolve(e,r.rpath),a=n.resolve(t,r.rpath);await EA(o,a,{path:n,fs:i,useSync:!1})}}),s}function om(e,t={}){let r=Be(t,"polling");hn(r)||(r=!1);let n=Be(t,"timeInterval");to(n)||(n=100),n=eo(n);let i=Be(t,"timeBinaryInterval");to(i)||(i=300),i=eo(i);let a=new f.EventEmitter,s=e,l=null,c=setInterval(()=>{null===l&&nA(s)&&(l=d.watch(s,{usePolling:r,interval:n,binaryInterval:i,awaitWriteFinish:!0}),l.on("all",(e,t,r)=>{t=o.resolve(t),a.emit("change",{type:e,fp:t,stats:r})}))},n);return a.clear=()=>{(()=>{if(null!==l){try{l.unwatch(s)}catch(e){console.log(e)}l.close().catch(e=>{console.log(e)}).finally(()=>{l=null})}})(),clearInterval(c)},a}function am(e,t,r={}){let n=null,i=Be(r,"fs"),o=QA(e);bA(o,{fs:i})||wA(o,{fs:i});try{i.writeFileSync(e,t,"utf8")}catch(e){n=e}return null!==n?{error:n}:{success:e}}const sm=[];for(let e=0;e<256;++e)sm.push((e+256).toString(16).slice(1));const lm=new Uint8Array(16);function cm(){return crypto.getRandomValues(lm)}const um={};function fm(e,t,r){let n;if(e)n=dm(e.random??e.rng?.()??cm(),e.msecs,e.seq,t,r);else{const e=Date.now(),i=cm();!function(e,t,r){e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=r[6]<<23|r[7]<<16|r[8]<<8|r[9],e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++)}(um,e,i),n=dm(i,um.msecs,um.seq,t,r)}return t??function(e,t=0){return(sm[e[t+0]]+sm[e[t+1]]+sm[e[t+2]]+sm[e[t+3]]+"-"+sm[e[t+4]]+sm[e[t+5]]+"-"+sm[e[t+6]]+sm[e[t+7]]+"-"+sm[e[t+8]]+sm[e[t+9]]+"-"+sm[e[t+10]]+sm[e[t+11]]+sm[e[t+12]]+sm[e[t+13]]+sm[e[t+14]]+sm[e[t+15]]).toLowerCase()}(n)}function dm(e,t,r,n,i=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(n){if(i<0||i+16>n.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`)}else n=new Uint8Array(16),i=0;return t??=Date.now(),r??=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9],n[i++]=t/1099511627776&255,n[i++]=t/4294967296&255,n[i++]=t/16777216&255,n[i++]=t/65536&255,n[i++]=t/256&255,n[i++]=255&t,n[i++]=112|r>>>28&15,n[i++]=r>>>20&255,n[i++]=128|r>>>14&63,n[i++]=r>>>6&255,n[i++]=r<<2&255|3&e[10],n[i++]=e[11],n[i++]=e[12],n[i++]=e[13],n[i++]=e[14],n[i++]=e[15],n}function gm(e){return"[object Uint16Array]"===Object.prototype.toString.call(e)}function pm(e){if(!(y(e)||ps(e)||es(e)||gm(e)))return null;try{if(e.byteLength)return e.byteLength}catch(e){}try{if(e.length)return e.length}catch(e){}try{if(e.size)return e.size}catch(e){}return null}function hm(e,t=!0){if(!Or(e)){return{error:"no data"}}let r=null;try{r=function(e,t=!0){let r=t?"\ufeff":"";return Cr(e,e=>{let t=[];Cr(e,e=>{De(e)?(e=hc(e,"\r\n",""),e=hc(e,"\r",""),e=`"${e=hc(e,"\n","")}"`):e=hn(e)?e?"true":"false":ja(e),t.push(e)}),r+=Do(t,",")+"\r\n"}),r}(e,t)}catch(e){return{error:e}}return r}function Am(e){return hn(e)?e?"true":"false":ja(e)}function mm(e,t){let r=[];return e.SheetNames.forEach(function(n){let i=bn().utils.sheet_to_json(e.Sheets[n],{header:"A",defval:"",blankrows:!0});i=Dr(i,e=>dA(e)),t&&(i=Dr(i,e=>Dr(e,e=>Am(e)))),r.push({sheetname:n,data:i})}),r}function Im(e,t){let r=Be(t,"fmt","ltdt");if(!va(["ltdt","csv","array"],r))return{error:"opt.fmt is not one of 'ltdt', 'csv', 'array'"};let n,i=Be(t,"valueToString",!0);if(!hn(i))return{error:"opt.valueToString is not a boolean"};try{n=bn().read(e,{type:"buffer"})}catch(e){return console.log("error: ",e),{error:"can not read data from u8a"}}let o=null;try{"ltdt"===r?o=function(e,t){let r=[];return e.SheetNames.forEach(function(n){let i=bn().utils.sheet_to_json(e.Sheets[n]);t&&(i=Dr(i,e=>(Cr(e,(t,r)=>{e[r]=Am(t)}),e))),r.push({sheetname:n,data:i})}),r}(n,i):"array"===r?o=mm(n,i):"csv"===r&&(o=function(e,t){let r=mm(e,t);return Cr(r,(e,t)=>{r[t].data=hm(e.data,!1)}),r}(n,i))}catch(e){return console.log("error: ",e),{error:"can not convert data"}}return o}var ym;function vm(e){if(!q(e))return!1;var t=N(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!br(e)}function bm(e){return vm(e)}function wm(e){if(!Ce(e))return{error:"wb is not an effective object"};if(!xe(Be(e,"SheetNames")))return{error:"wb.SheetNames is not an array"};if(!Ee(Be(e,"Sheets")))return{error:"wb.Sheets is not an object"};let t=null;try{t=hs(bn().write(e,{bookType:"xlsx",type:"binary"}))}catch(e){return{error:e}}return t}
15
+ var da,ha,pa=9e15,ga=1e9,ma="0123456789abcdef",Aa="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",ya="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",va={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-pa,maxE:pa,crypto:!1},ba=!0,Ia="[DecimalError] ",wa=Ia+"Invalid argument: ",xa=Ia+"Precision limit exceeded",Ca=Ia+"crypto unavailable",Ba="[object Decimal]",Ea=Math.floor,Fa=Math.pow,ka=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Sa=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Da=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Na=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Qa=1e7,Ma=Aa.length-1,Ta=ya.length-1,La={toStringTag:Ba};function Ua(e){var t,n,r,o=e.length-1,i="",s=e[0];if(o>0){for(i+=s,t=1;t<o;t++)(n=7-(r=e[t]+"").length)&&(i+=Va(n)),i+=r;(n=7-(r=(s=e[t])+"").length)&&(i+=Va(n))}else if(0===s)return"0";for(;s%10==0;)s/=10;return i+s}function Ra(e,t,n){if(e!==~~e||e<t||e>n)throw Error(wa+e)}function Ha(e,t,n,r){var o,i,s,a;for(i=e[0];i>=10;i/=10)--t;return--t<0?(t+=7,o=0):(o=Math.ceil((t+1)/7),t%=7),i=Fa(10,7-t),a=e[o]%i|0,null==r?t<3?(0==t?a=a/100|0:1==t&&(a=a/10|0),s=n<4&&99999==a||n>3&&49999==a||5e4==a||0==a):s=(n<4&&a+1==i||n>3&&a+1==i/2)&&(e[o+1]/i/100|0)==Fa(10,t-2)-1||(a==i/2||0==a)&&!(e[o+1]/i/100|0):t<4?(0==t?a=a/1e3|0:1==t?a=a/100|0:2==t&&(a=a/10|0),s=(r||n<4)&&9999==a||!r&&n>3&&4999==a):s=((r||n<4)&&a+1==i||!r&&n>3&&a+1==i/2)&&(e[o+1]/i/1e3|0)==Fa(10,t-3)-1,s}function qa(e,t,n){for(var r,o,i=[0],s=0,a=e.length;s<a;){for(o=i.length;o--;)i[o]*=t;for(i[0]+=ma.indexOf(e.charAt(s++)),r=0;r<i.length;r++)i[r]>n-1&&(void 0===i[r+1]&&(i[r+1]=0),i[r+1]+=i[r]/n|0,i[r]%=n)}return i.reverse()}La.absoluteValue=La.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),Pa(e)},La.ceil=function(){return Pa(new this.constructor(this),this.e+1,2)},La.clampedTo=La.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(wa+t);return n.cmp(e)<0?e:n.cmp(t)>0?t:new r(n)},La.comparedTo=La.cmp=function(e){var t,n,r,o,i=this,s=i.d,a=(e=new i.constructor(e)).d,c=i.s,l=e.s;if(!s||!a)return c&&l?c!==l?c:s===a?0:!s^c<0?1:-1:NaN;if(!s[0]||!a[0])return s[0]?c:a[0]?-l:0;if(c!==l)return c;if(i.e!==e.e)return i.e>e.e^c<0?1:-1;for(t=0,n=(r=s.length)<(o=a.length)?r:o;t<n;++t)if(s[t]!==a[t])return s[t]>a[t]^c<0?1:-1;return r===o?0:r>o^c<0?1:-1},La.cosine=La.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,o;if(t.isZero())return t;r=t.d.length,r<32?o=(1/rc(4,n=Math.ceil(r/3))).toString():(n=16,o="2.3283064365386962890625e-10");e.precision+=n,t=nc(e,1,t.times(o),new e(1));for(var i=n;i--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=n,t}(r,oc(r,n)),r.precision=e,r.rounding=t,Pa(2==ha||3==ha?n.neg():n,e,t,!0)):new r(1):new r(NaN)},La.cubeRoot=La.cbrt=function(){var e,t,n,r,o,i,s,a,c,l,u=this,f=u.constructor;if(!u.isFinite()||u.isZero())return new f(u);for(ba=!1,(i=u.s*Fa(u.s*u,1/3))&&Math.abs(i)!=1/0?r=new f(i.toString()):(n=Ua(u.d),(i=((e=u.e)-n.length+1)%3)&&(n+=1==i||-2==i?"0":"00"),i=Fa(n,1/3),e=Ea((e+1)/3)-(e%3==(e<0?-1:2)),(r=new f(n=i==1/0?"5e"+e:(n=i.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=u.s),s=(e=f.precision)+3;;)if(l=(c=(a=r).times(a).times(a)).plus(u),r=Oa(l.plus(u).times(a),l.plus(c),s+2,1),Ua(a.d).slice(0,s)===(n=Ua(r.d)).slice(0,s)){if("9999"!=(n=n.slice(s-3,s+1))&&(o||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(Pa(r,e+1,1),t=!r.times(r).times(r).eq(u));break}if(!o&&(Pa(a,e+1,0),a.times(a).times(a).eq(u))){r=a;break}s+=4,o=1}return ba=!0,Pa(r,e,f.rounding,t)},La.decimalPlaces=La.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=7*((e=t.length-1)-Ea(this.e/7)),e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},La.dividedBy=La.div=function(e){return Oa(this,new this.constructor(e))},La.dividedToIntegerBy=La.divToInt=function(e){var t=this.constructor;return Pa(Oa(this,new t(e),0,1,1),t.precision,t.rounding)},La.equals=La.eq=function(e){return 0===this.cmp(e)},La.floor=function(){return Pa(new this.constructor(this),this.e+1,3)},La.greaterThan=La.gt=function(e){return this.cmp(e)>0},La.greaterThanOrEqualTo=La.gte=function(e){var t=this.cmp(e);return 1==t||0===t},La.hyperbolicCosine=La.cosh=function(){var e,t,n,r,o,i=this,s=i.constructor,a=new s(1);if(!i.isFinite())return new s(i.s?1/0:NaN);if(i.isZero())return a;n=s.precision,r=s.rounding,s.precision=n+Math.max(i.e,i.sd())+4,s.rounding=1,(o=i.d.length)<32?t=(1/rc(4,e=Math.ceil(o/3))).toString():(e=16,t="2.3283064365386962890625e-10"),i=nc(s,1,i.times(t),new s(1),!0);for(var c,l=e,u=new s(8);l--;)c=i.times(i),i=a.minus(c.times(u.minus(c.times(u))));return Pa(i,s.precision=n,s.rounding=r,!0)},La.hyperbolicSine=La.sinh=function(){var e,t,n,r,o=this,i=o.constructor;if(!o.isFinite()||o.isZero())return new i(o);if(t=i.precision,n=i.rounding,i.precision=t+Math.max(o.e,o.sd())+4,i.rounding=1,(r=o.d.length)<3)o=nc(i,2,o,o,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,o=nc(i,2,o=o.times(1/rc(5,e)),o,!0);for(var s,a=new i(5),c=new i(16),l=new i(20);e--;)s=o.times(o),o=o.times(a.plus(s.times(c.times(s).plus(l))))}return i.precision=t,i.rounding=n,Pa(o,t,n,!0)},La.hyperbolicTangent=La.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,Oa(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)},La.inverseCosine=La.acos=function(){var e=this,t=e.constructor,n=e.abs().cmp(1),r=t.precision,o=t.rounding;return-1!==n?0===n?e.isNeg()?Ya(t,r,o):new t(0):new t(NaN):e.isZero()?Ya(t,r+4,o).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=o,e.times(2))},La.inverseHyperbolicCosine=La.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,ba=!1,n=n.times(n).minus(1).sqrt().plus(n),ba=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},La.inverseHyperbolicSine=La.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,ba=!1,n=n.times(n).plus(1).sqrt().plus(n),ba=!0,r.precision=e,r.rounding=t,n.ln())},La.inverseHyperbolicTangent=La.atanh=function(){var e,t,n,r,o=this,i=o.constructor;return o.isFinite()?o.e>=0?new i(o.abs().eq(1)?o.s/0:o.isZero()?o:NaN):(e=i.precision,t=i.rounding,r=o.sd(),Math.max(r,e)<2*-o.e-1?Pa(new i(o),e,t,!0):(i.precision=n=r-o.e,o=Oa(o.plus(1),new i(1).minus(o),n+e,1),i.precision=e+4,i.rounding=1,o=o.ln(),i.precision=e,i.rounding=t,o.times(.5))):new i(NaN)},La.inverseSine=La.asin=function(){var e,t,n,r,o=this,i=o.constructor;return o.isZero()?new i(o):(t=o.abs().cmp(1),n=i.precision,r=i.rounding,-1!==t?0===t?((e=Ya(i,n+4,r).times(.5)).s=o.s,e):new i(NaN):(i.precision=n+6,i.rounding=1,o=o.div(new i(1).minus(o.times(o)).sqrt().plus(1)).atan(),i.precision=n,i.rounding=r,o.times(2)))},La.inverseTangent=La.atan=function(){var e,t,n,r,o,i,s,a,c,l=this,u=l.constructor,f=u.precision,d=u.rounding;if(l.isFinite()){if(l.isZero())return new u(l);if(l.abs().eq(1)&&f+4<=Ta)return(s=Ya(u,f+4,d).times(.25)).s=l.s,s}else{if(!l.s)return new u(NaN);if(f+4<=Ta)return(s=Ya(u,f+4,d).times(.5)).s=l.s,s}for(u.precision=a=f+10,u.rounding=1,e=n=Math.min(28,a/7+2|0);e;--e)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(ba=!1,t=Math.ceil(a/7),r=1,c=l.times(l),s=new u(l),o=l;-1!==e;)if(o=o.times(c),i=s.minus(o.div(r+=2)),o=o.times(c),void 0!==(s=i.plus(o.div(r+=2))).d[t])for(e=t;s.d[e]===i.d[e]&&e--;);return n&&(s=s.times(2<<n-1)),ba=!0,Pa(s,u.precision=f,u.rounding=d,!0)},La.isFinite=function(){return!!this.d},La.isInteger=La.isInt=function(){return!!this.d&&Ea(this.e/7)>this.d.length-2},La.isNaN=function(){return!this.s},La.isNegative=La.isNeg=function(){return this.s<0},La.isPositive=La.isPos=function(){return this.s>0},La.isZero=function(){return!!this.d&&0===this.d[0]},La.lessThan=La.lt=function(e){return this.cmp(e)<0},La.lessThanOrEqualTo=La.lte=function(e){return this.cmp(e)<1},La.logarithm=La.log=function(e){var t,n,r,o,i,s,a,c,l=this,u=l.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=l.d,l.s<0||!n||!n[0]||l.eq(1))return new u(n&&!n[0]?-1/0:1!=l.s?NaN:n?0:1/0);if(t)if(n.length>1)i=!0;else{for(o=n[0];o%10==0;)o/=10;i=1!==o}if(ba=!1,s=Ka(l,a=f+5),r=t?$a(u,a+10):Ka(e,a),Ha((c=Oa(s,r,a,1)).d,o=f,d))do{if(s=Ka(l,a+=10),r=t?$a(u,a+10):Ka(e,a),c=Oa(s,r,a,1),!i){+Ua(c.d).slice(o+1,o+15)+1==1e14&&(c=Pa(c,f+1,0));break}}while(Ha(c.d,o+=10,d));return ba=!0,Pa(c,f,d)},La.minus=La.sub=function(e){var t,n,r,o,i,s,a,c,l,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(l=h.d,d=e.d,a=p.precision,c=p.rounding,!l[0]||!d[0]){if(d[0])e.s=-e.s;else{if(!l[0])return new p(3===c?-0:0);e=new p(h)}return ba?Pa(e,a,c):e}if(n=Ea(e.e/7),u=Ea(h.e/7),l=l.slice(),i=u-n){for((f=i<0)?(t=l,i=-i,s=d.length):(t=d,n=u,s=l.length),i>(r=Math.max(Math.ceil(a/7),s)+2)&&(i=r,t.length=1),t.reverse(),r=i;r--;)t.push(0);t.reverse()}else{for((f=(r=l.length)<(s=d.length))&&(s=r),r=0;r<s;r++)if(l[r]!=d[r]){f=l[r]<d[r];break}i=0}for(f&&(t=l,l=d,d=t,e.s=-e.s),s=l.length,r=d.length-s;r>0;--r)l[s++]=0;for(r=d.length;r>i;){if(l[--r]<d[r]){for(o=r;o&&0===l[--o];)l[o]=Qa-1;--l[o],l[r]+=Qa}l[r]-=d[r]}for(;0===l[--s];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(e.d=l,e.e=ja(l,n),ba?Pa(e,a,c):e):new p(3===c?-0:0)},La.modulo=La.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]?Pa(new r(n),r.precision,r.rounding):(ba=!1,9==r.modulo?(t=Oa(n,e.abs(),0,3,1)).s*=e.s:t=Oa(n,e,0,r.modulo,1),t=t.times(e),ba=!0,n.minus(t))},La.naturalExponential=La.exp=function(){return Xa(this)},La.naturalLogarithm=La.ln=function(){return Ka(this)},La.negated=La.neg=function(){var e=new this.constructor(this);return e.s=-e.s,Pa(e)},La.plus=La.add=function(e){var t,n,r,o,i,s,a,c,l,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(l=f.d,u=e.d,a=d.precision,c=d.rounding,!l[0]||!u[0])return u[0]||(e=new d(f)),ba?Pa(e,a,c):e;if(i=Ea(f.e/7),r=Ea(e.e/7),l=l.slice(),o=i-r){for(o<0?(n=l,o=-o,s=u.length):(n=u,r=i,s=l.length),o>(s=(i=Math.ceil(a/7))>s?i+1:s+1)&&(o=s,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((s=l.length)-(o=u.length)<0&&(o=s,n=u,u=l,l=n),t=0;o;)t=(l[--o]=l[o]+u[o]+t)/Qa|0,l[o]%=Qa;for(t&&(l.unshift(t),++r),s=l.length;0==l[--s];)l.pop();return e.d=l,e.e=ja(l,r),ba?Pa(e,a,c):e},La.precision=La.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(wa+e);return n.d?(t=Ga(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},La.round=function(){var e=this,t=e.constructor;return Pa(new t(e),e.e+1,t.rounding)},La.sine=La.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:nc(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=t.times(1/rc(5,n)),t=nc(e,2,t,t);for(var o,i=new e(5),s=new e(16),a=new e(20);n--;)o=t.times(t),t=t.times(i.plus(o.times(s.times(o).minus(a))));return t}(r,oc(r,n)),r.precision=e,r.rounding=t,Pa(ha>2?n.neg():n,e,t,!0)):new r(NaN)},La.squareRoot=La.sqrt=function(){var e,t,n,r,o,i,s=this,a=s.d,c=s.e,l=s.s,u=s.constructor;if(1!==l||!a||!a[0])return new u(!l||l<0&&(!a||a[0])?NaN:a?s:1/0);for(ba=!1,0==(l=Math.sqrt(+s))||l==1/0?(((t=Ua(a)).length+c)%2==0&&(t+="0"),l=Math.sqrt(t),c=Ea((c+1)/2)-(c<0||c%2),r=new u(t=l==1/0?"5e"+c:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+c)):r=new u(l.toString()),n=(c=u.precision)+3;;)if(r=(i=r).plus(Oa(s,i,n+2,1)).times(.5),Ua(i.d).slice(0,n)===(t=Ua(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(Pa(r,c+1,1),e=!r.times(r).eq(s));break}if(!o&&(Pa(i,c+1,0),i.times(i).eq(s))){r=i;break}n+=4,o=1}return ba=!0,Pa(r,c,u.rounding,e)},La.tangent=La.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=Oa(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,Pa(2==ha||4==ha?n.neg():n,e,t,!0)):new r(NaN)},La.times=La.mul=function(e){var t,n,r,o,i,s,a,c,l,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=Ea(u.e/7)+Ea(e.e/7),(c=d.length)<(l=h.length)&&(i=d,d=h,h=i,s=c,c=l,l=s),i=[],r=s=c+l;r--;)i.push(0);for(r=l;--r>=0;){for(t=0,o=c+r;o>r;)a=i[o]+h[r]*d[o-r-1]+t,i[o--]=a%Qa|0,t=a/Qa|0;i[o]=(i[o]+t)%Qa|0}for(;!i[--s];)i.pop();return t?++n:i.shift(),e.d=i,e.e=ja(i,n),ba?Pa(e,f.precision,f.rounding):e},La.toBinary=function(e,t){return ic(this,2,e,t)},La.toDecimalPlaces=La.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(Ra(e,0,ga),void 0===t?t=r.rounding:Ra(t,0,8),Pa(n,e+n.e+1,t))},La.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=za(r,!0):(Ra(e,0,ga),void 0===t?t=o.rounding:Ra(t,0,8),n=za(r=Pa(new o(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},La.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?n=za(o):(Ra(e,0,ga),void 0===t?t=i.rounding:Ra(t,0,8),n=za(r=Pa(new i(o),e+o.e+1,t),!1,e+r.e+1)),o.isNeg()&&!o.isZero()?"-"+n:n},La.toFraction=function(e){var t,n,r,o,i,s,a,c,l,u,f,d,h=this,p=h.d,g=h.constructor;if(!p)return new g(h);if(l=n=new g(1),r=c=new g(0),s=(i=(t=new g(r)).e=Ga(p)-h.e-1)%7,t.d[0]=Fa(10,s<0?7+s:s),null==e)e=i>0?t:l;else{if(!(a=new g(e)).isInt()||a.lt(l))throw Error(wa+a);e=a.gt(t)?i>0?t:l:a}for(ba=!1,a=new g(Ua(p)),u=g.precision,g.precision=i=7*p.length*2;f=Oa(a,t,0,1,1),1!=(o=n.plus(f.times(r))).cmp(e);)n=r,r=o,o=l,l=c.plus(f.times(o)),c=o,o=t,t=a.minus(f.times(o)),a=o;return o=Oa(e.minus(n),r,0,1,1),c=c.plus(o.times(l)),n=n.plus(o.times(r)),c.s=l.s=h.s,d=Oa(l,r,i,1).minus(h).abs().cmp(Oa(c,n,i,1).minus(h).abs())<1?[l,r]:[c,n],g.precision=u,ba=!0,d},La.toHexadecimal=La.toHex=function(e,t){return ic(this,16,e,t)},La.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:Ra(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]?(ba=!1,n=Oa(n,e,0,t,1).times(e),ba=!0,Pa(n)):(e.s=n.s,n=e),n},La.toNumber=function(){return+this},La.toOctal=function(e,t){return ic(this,8,e,t)},La.toPower=La.pow=function(e){var t,n,r,o,i,s,a=this,c=a.constructor,l=+(e=new c(e));if(!(a.d&&e.d&&a.d[0]&&e.d[0]))return new c(Fa(+a,l));if((a=new c(a)).eq(1))return a;if(r=c.precision,i=c.rounding,e.eq(1))return Pa(a,r,i);if((t=Ea(e.e/7))>=e.d.length-1&&(n=l<0?-l:l)<=9007199254740991)return o=Ja(c,a,n,r),e.s<0?new c(1).div(o):Pa(o,r,i);if((s=a.s)<0){if(t<e.d.length-1)return new c(NaN);if(1&e.d[t]||(s=1),0==a.e&&1==a.d[0]&&1==a.d.length)return a.s=s,a}return(t=0!=(n=Fa(+a,l))&&isFinite(n)?new c(n+"").e:Ea(l*(Math.log("0."+Ua(a.d))/Math.LN10+a.e+1)))>c.maxE+1||t<c.minE-1?new c(t>0?s/0:0):(ba=!1,c.rounding=a.s=1,n=Math.min(12,(t+"").length),(o=Xa(e.times(Ka(a,r+n)),r)).d&&Ha((o=Pa(o,r+5,1)).d,r,i)&&(t=r+10,+Ua((o=Pa(Xa(e.times(Ka(a,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(o=Pa(o,r+1,0))),o.s=s,ba=!0,c.rounding=i,Pa(o,r,i))},La.toPrecision=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=za(r,r.e<=o.toExpNeg||r.e>=o.toExpPos):(Ra(e,1,ga),void 0===t?t=o.rounding:Ra(t,0,8),n=za(r=Pa(new o(r),e,t),e<=r.e||r.e<=o.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},La.toSignificantDigits=La.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(Ra(e,1,ga),void 0===t?t=n.rounding:Ra(t,0,8)),Pa(new n(this),e,t)},La.toString=function(){var e=this,t=e.constructor,n=za(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},La.truncated=La.trunc=function(){return Pa(new this.constructor(this),this.e+1,1)},La.valueOf=La.toJSON=function(){var e=this,t=e.constructor,n=za(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var Oa=function(){function e(e,t,n){var r,o=0,i=e.length;for(e=e.slice();i--;)r=e[i]*t+o,e[i]=r%n|0,o=r/n|0;return o&&e.unshift(o),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n,r){for(var o=0;n--;)e[n]-=o,o=e[n]<t[n]?1:0,e[n]=o*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,s,a,c){var l,u,f,d,h,p,g,m,A,y,v,b,I,w,x,C,B,E,F,k,S=r.constructor,D=r.s==o.s?1:-1,N=r.d,Q=o.d;if(!(N&&N[0]&&Q&&Q[0]))return new S(r.s&&o.s&&(N?!Q||N[0]!=Q[0]:Q)?N&&0==N[0]||!Q?0*D:D/0:NaN);for(c?(h=1,u=r.e-o.e):(c=Qa,h=7,u=Ea(r.e/h)-Ea(o.e/h)),F=Q.length,B=N.length,y=(A=new S(D)).d=[],f=0;Q[f]==(N[f]||0);f++);if(Q[f]>(N[f]||0)&&u--,null==i?(w=i=S.precision,s=S.rounding):w=a?i+(r.e-o.e)+1:i,w<0)y.push(1),p=!0;else{if(w=w/h+2|0,f=0,1==F){for(d=0,Q=Q[0],w++;(f<B||d)&&w--;f++)x=d*c+(N[f]||0),y[f]=x/Q|0,d=x%Q|0;p=d||f<B}else{for((d=c/(Q[0]+1)|0)>1&&(Q=e(Q,d,c),N=e(N,d,c),F=Q.length,B=N.length),C=F,b=(v=N.slice(0,F)).length;b<F;)v[b++]=0;(k=Q.slice()).unshift(0),E=Q[0],Q[1]>=c/2&&++E;do{d=0,(l=t(Q,v,F,b))<0?(I=v[0],F!=b&&(I=I*c+(v[1]||0)),(d=I/E|0)>1?(d>=c&&(d=c-1),1==(l=t(g=e(Q,d,c),v,m=g.length,b=v.length))&&(d--,n(g,F<m?k:Q,m,c))):(0==d&&(l=d=1),g=Q.slice()),(m=g.length)<b&&g.unshift(0),n(v,g,b,c),-1==l&&(l=t(Q,v,F,b=v.length))<1&&(d++,n(v,F<b?k:Q,b,c)),b=v.length):0===l&&(d++,v=[0]),y[f++]=d,l&&v[0]?v[b++]=N[C]||0:(v=[N[C]],b=1)}while((C++<B||void 0!==v[0])&&w--);p=void 0!==v[0]}y[0]||y.shift()}if(1==h)A.e=u,da=p;else{for(f=1,d=y[0];d>=10;d/=10)f++;A.e=f+u*h-1,Pa(A,a?i+A.e+1:i,s,p)}return A}}();function Pa(e,t,n,r){var o,i,s,a,c,l,u,f,d,h=e.constructor;e:if(null!=t){if(!(f=e.d))return e;for(o=1,a=f[0];a>=10;a/=10)o++;if((i=t-o)<0)i+=7,s=t,c=(u=f[d=0])/Fa(10,o-s-1)%10|0;else if((d=Math.ceil((i+1)/7))>=(a=f.length)){if(!r)break e;for(;a++<=d;)f.push(0);u=c=0,o=1,s=(i%=7)-7+1}else{for(u=a=f[d],o=1;a>=10;a/=10)o++;c=(s=(i%=7)-7+o)<0?0:u/Fa(10,o-s-1)%10|0}if(r=r||t<0||void 0!==f[d+1]||(s<0?u:u%Fa(10,o-s-1)),l=n<4?(c||r)&&(0==n||n==(e.s<0?3:2)):c>5||5==c&&(4==n||r||6==n&&(i>0?s>0?u/Fa(10,o-s):0:f[d-1])%10&1||n==(e.s<0?8:7)),t<1||!f[0])return f.length=0,l?(t-=e.e+1,f[0]=Fa(10,(7-t%7)%7),e.e=-t||0):f[0]=e.e=0,e;if(0==i?(f.length=d,a=1,d--):(f.length=d+1,a=Fa(10,7-i),f[d]=s>0?(u/Fa(10,o-s)%Fa(10,s)|0)*a:0),l)for(;;){if(0==d){for(i=1,s=f[0];s>=10;s/=10)i++;for(s=f[0]+=a,a=1;s>=10;s/=10)a++;i!=a&&(e.e++,f[0]==Qa&&(f[0]=1));break}if(f[d]+=a,f[d]!=Qa)break;f[d--]=0,a=1}for(i=f.length;0===f[--i];)f.pop()}return ba&&(e.e>h.maxE?(e.d=null,e.e=NaN):e.e<h.minE&&(e.e=0,e.d=[0])),e}function za(e,t,n){if(!e.isFinite())return Za(e);var r,o=e.e,i=Ua(e.d),s=i.length;return t?(n&&(r=n-s)>0?i=i.charAt(0)+"."+i.slice(1)+Va(r):s>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(e.e<0?"e":"e+")+e.e):o<0?(i="0."+Va(-o-1)+i,n&&(r=n-s)>0&&(i+=Va(r))):o>=s?(i+=Va(o+1-s),n&&(r=n-o-1)>0&&(i=i+"."+Va(r))):((r=o+1)<s&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-s)>0&&(o+1===s&&(i+="."),i+=Va(r))),i}function ja(e,t){var n=e[0];for(t*=7;n>=10;n/=10)t++;return t}function $a(e,t,n){if(t>Ma)throw ba=!0,n&&(e.precision=n),Error(xa);return Pa(new e(Aa),t,1,!0)}function Ya(e,t,n){if(t>Ta)throw Error(xa);return Pa(new e(ya),t,n,!0)}function Ga(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 Va(e){for(var t="";e--;)t+="0";return t}function Ja(e,t,n,r){var o,i=new e(1),s=Math.ceil(r/7+4);for(ba=!1;;){if(n%2&&sc((i=i.times(t)).d,s)&&(o=!0),0===(n=Ea(n/2))){n=i.d.length-1,o&&0===i.d[n]&&++i.d[n];break}sc((t=t.times(t)).d,s)}return ba=!0,i}function Wa(e){return 1&e.d[e.d.length-1]}function _a(e,t,n){for(var r,o,i=new e(t[0]),s=0;++s<t.length;){if(!(o=new e(t[s])).s){i=o;break}((r=i.cmp(o))===n||0===r&&i.s===n)&&(i=o)}return i}function Xa(e,t){var n,r,o,i,s,a,c,l=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?(ba=!1,c=p):c=t,a=new d(.03125);e.e>-2;)e=e.times(a),f+=5;for(c+=r=Math.log(Fa(2,f))/Math.LN10*2+5|0,n=i=s=new d(1),d.precision=c;;){if(i=Pa(i.times(e),c,1),n=n.times(++u),Ua((a=s.plus(Oa(i,n,c,1))).d).slice(0,c)===Ua(s.d).slice(0,c)){for(o=f;o--;)s=Pa(s.times(s),c,1);if(null!=t)return d.precision=p,s;if(!(l<3&&Ha(s.d,c-r,h,l)))return Pa(s,d.precision=p,h,ba=!0);d.precision=c+=10,n=i=a=new d(1),u=0,l++}s=a}}function Ka(e,t){var n,r,o,i,s,a,c,l,u,f,d,h=1,p=e,g=p.d,m=p.constructor,A=m.rounding,y=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?(ba=!1,u=y):u=t,m.precision=u+=10,r=(n=Ua(g)).charAt(0),!(Math.abs(i=p.e)<15e14))return l=$a(m,u+2,y).times(i+""),p=Ka(new m(r+"."+n.slice(1)),u-10).plus(l),m.precision=y,null==t?Pa(p,y,A,ba=!0):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=Ua((p=p.times(e)).d)).charAt(0),h++;for(i=p.e,r>1?(p=new m("0."+n),i++):p=new m(r+"."+n.slice(1)),f=p,c=s=p=Oa(p.minus(1),p.plus(1),u,1),d=Pa(p.times(p),u,1),o=3;;){if(s=Pa(s.times(d),u,1),Ua((l=c.plus(Oa(s,new m(o),u,1))).d).slice(0,u)===Ua(c.d).slice(0,u)){if(c=c.times(2),0!==i&&(c=c.plus($a(m,u+2,y).times(i+""))),c=Oa(c,new m(h),u,1),null!=t)return m.precision=y,c;if(!Ha(c.d,u-10,A,a))return Pa(c,m.precision=y,A,ba=!0);m.precision=u+=10,l=s=p=Oa(f.minus(1),f.plus(1),u,1),d=Pa(p.times(p),u,1),o=a=1}c=l,o+=2}}function Za(e){return String(e.s*e.s/0)}function ec(e,t){var n,r,o;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(o=t.length;48===t.charCodeAt(o-1);--o);if(t=t.slice(r,o)){if(o-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%7,n<0&&(r+=7),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=7;r<o;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=o;for(;r--;)t+="0";e.d.push(+t),ba&&(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 tc(e,t){var n,r,o,i,s,a,c,l,u;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),Na.test(t))return ec(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Sa.test(t))n=16,t=t.toLowerCase();else if(ka.test(t))n=2;else{if(!Da.test(t))throw Error(wa+t);n=8}for((i=t.search(/p/i))>0?(c=+t.slice(i+1),t=t.substring(2,i)):t=t.slice(2),s=(i=t.indexOf("."))>=0,r=e.constructor,s&&(i=(a=(t=t.replace(".","")).length)-i,o=Ja(r,new r(n),i,2*i)),i=u=(l=qa(t,n,Qa)).length-1;0===l[i];--i)l.pop();return i<0?new r(0*e.s):(e.e=ja(l,u),e.d=l,ba=!1,s&&(e=Oa(e,o,4*a)),c&&(e=e.times(Math.abs(c)<54?Fa(2,c):Vc.pow(2,c))),ba=!0,e)}function nc(e,t,n,r,o){var i,s,a,c,l=e.precision,u=Math.ceil(l/7);for(ba=!1,c=n.times(n),a=new e(r);;){if(s=Oa(a.times(c),new e(t++*t++),l,1),a=o?r.plus(s):r.minus(s),r=Oa(s.times(c),new e(t++*t++),l,1),void 0!==(s=a.plus(r)).d[u]){for(i=u;s.d[i]===a.d[i]&&i--;);if(-1==i)break}i=a,a=r,r=s,s=i}return ba=!0,s.d.length=u+1,s}function rc(e,t){for(var n=e;--t;)n*=e;return n}function oc(e,t){var n,r=t.s<0,o=Ya(e,e.precision,1),i=o.times(.5);if((t=t.abs()).lte(i))return ha=r?4:1,t;if((n=t.divToInt(o)).isZero())ha=r?3:2;else{if((t=t.minus(n.times(o))).lte(i))return ha=Wa(n)?r?2:3:r?4:1,t;ha=Wa(n)?r?1:4:r?3:2}return t.minus(o).abs()}function ic(e,t,n,r){var o,i,s,a,c,l,u,f,d,h=e.constructor,p=void 0!==n;if(p?(Ra(n,1,ga),void 0===r?r=h.rounding:Ra(r,0,8)):(n=h.precision,r=h.rounding),e.isFinite()){for(p?(o=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):o=t,(s=(u=za(e)).indexOf("."))>=0&&(u=u.replace(".",""),(d=new h(1)).e=u.length-s,d.d=qa(za(d),10,o),d.e=d.d.length),i=c=(f=qa(u,10,o)).length;0==f[--c];)f.pop();if(f[0]){if(s<0?i--:((e=new h(e)).d=f,e.e=i,f=(e=Oa(e,d,n,r,0,o)).d,i=e.e,l=da),s=f[n],a=o/2,l=l||void 0!==f[n+1],l=r<4?(void 0!==s||l)&&(0===r||r===(e.s<0?3:2)):s>a||s===a&&(4===r||l||6===r&&1&f[n-1]||r===(e.s<0?8:7)),f.length=n,l)for(;++f[--n]>o-1;)f[n]=0,n||(++i,f.unshift(1));for(c=f.length;!f[c-1];--c);for(s=0,u="";s<c;s++)u+=ma.charAt(f[s]);if(p){if(c>1)if(16==t||8==t){for(s=16==t?4:3,--c;c%s;c++)u+="0";for(c=(f=qa(u,o,t)).length;!f[c-1];--c);for(s=1,u="1.";s<c;s++)u+=ma.charAt(f[s])}else u=u.charAt(0)+"."+u.slice(1);u=u+(i<0?"p":"p+")+i}else if(i<0){for(;++i;)u="0"+u;u="0."+u}else if(++i>c)for(i-=c;i--;)u+="0";else i<c&&(u=u.slice(0,i)+"."+u.slice(i))}else u=p?"0p+0":"0";u=(16==t?"0x":2==t?"0b":8==t?"0o":"")+u}else u=Za(e);return e.s<0?"-"+u:u}function sc(e,t){if(e.length>t)return e.length=t,!0}function ac(e){return new this(e).abs()}function cc(e){return new this(e).acos()}function lc(e){return new this(e).acosh()}function uc(e,t){return new this(e).plus(t)}function fc(e){return new this(e).asin()}function dc(e){return new this(e).asinh()}function hc(e){return new this(e).atan()}function pc(e){return new this(e).atanh()}function gc(e,t){e=new this(e),t=new this(t);var n,r=this.precision,o=this.rounding,i=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?Ya(this,r,o):new this(0)).s=e.s:!e.d||t.isZero()?(n=Ya(this,i,1).times(.5)).s=e.s:t.s<0?(this.precision=i,this.rounding=1,n=this.atan(Oa(e,t,i,1)),t=Ya(this,i,1),this.precision=r,this.rounding=o,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(Oa(e,t,i,1)):(n=Ya(this,i,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function mc(e){return new this(e).cbrt()}function Ac(e){return Pa(e=new this(e),e.e+1,2)}function yc(e,t,n){return new this(e).clamp(t,n)}function vc(e){if(!e||"object"!=typeof e)throw Error(Ia+"Object expected");var t,n,r,o=!0===e.defaults,i=["precision",1,ga,"rounding",0,8,"toExpNeg",-pa,0,"toExpPos",0,pa,"maxE",0,pa,"minE",-pa,0,"modulo",0,9];for(t=0;t<i.length;t+=3)if(n=i[t],o&&(this[n]=va[n]),void 0!==(r=e[n])){if(!(Ea(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(wa+n+": "+r);this[n]=r}if(n="crypto",o&&(this[n]=va[n]),void 0!==(r=e[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(wa+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(Ca);this[n]=!0}else this[n]=!1}return this}function bc(e){return new this(e).cos()}function Ic(e){return new this(e).cosh()}function wc(e,t){return new this(e).div(t)}function xc(e){return new this(e).exp()}function Cc(e){return Pa(e=new this(e),e.e+1,3)}function Bc(){var e,t,n=new this(0);for(ba=!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 ba=!0,new this(1/0);n=t}return ba=!0,n.sqrt()}function Ec(e){return e instanceof Vc||e&&e.toStringTag===Ba||!1}function Fc(e){return new this(e).ln()}function kc(e,t){return new this(e).log(t)}function Sc(e){return new this(e).log(2)}function Dc(e){return new this(e).log(10)}function Nc(){return _a(this,arguments,-1)}function Qc(){return _a(this,arguments,1)}function Mc(e,t){return new this(e).mod(t)}function Tc(e,t){return new this(e).mul(t)}function Lc(e,t){return new this(e).pow(t)}function Uc(e){var t,n,r,o,i=0,s=new this(1),a=[];if(void 0===e?e=this.precision:Ra(e,1,ga),r=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));i<r;)(o=t[i])>=429e7?t[i]=crypto.getRandomValues(new Uint32Array(1))[0]:a[i++]=o%1e7;else{if(!crypto.randomBytes)throw Error(Ca);for(t=crypto.randomBytes(r*=4);i<r;)(o=t[i]+(t[i+1]<<8)+(t[i+2]<<16)+((127&t[i+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,i):(a.push(o%1e7),i+=4);i=r/4}else for(;i<r;)a[i++]=1e7*Math.random()|0;for(e%=7,(r=a[--i])&&e&&(o=Fa(10,7-e),a[i]=(r/o|0)*o);0===a[i];i--)a.pop();if(i<0)n=0,a=[0];else{for(n=-1;0===a[0];n-=7)a.shift();for(r=1,o=a[0];o>=10;o/=10)r++;r<7&&(n-=7-r)}return s.e=n,s.d=a,s}function Rc(e){return Pa(e=new this(e),e.e+1,this.rounding)}function Hc(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function qc(e){return new this(e).sin()}function Oc(e){return new this(e).sinh()}function Pc(e){return new this(e).sqrt()}function zc(e,t){return new this(e).sub(t)}function jc(){var e=0,t=arguments,n=new this(t[e]);for(ba=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return ba=!0,Pa(n,this.precision,this.rounding)}function $c(e){return new this(e).tan()}function Yc(e){return new this(e).tanh()}function Gc(e){return Pa(e=new this(e),e.e+1,1)}La[Symbol.for("nodejs.util.inspect.custom")]=La.toString,La[Symbol.toStringTag]="Decimal";var Vc=La.constructor=function e(t){var n,r,o;function i(e){var t,n,r,o=this;if(!(o instanceof i))return new i(e);if(o.constructor=i,Ec(e))return o.s=e.s,void(ba?!e.d||e.e>i.maxE?(o.e=NaN,o.d=null):e.e<i.minE?(o.e=0,o.d=[0]):(o.e=e.e,o.d=e.d.slice()):(o.e=e.e,o.d=e.d?e.d.slice():e.d));if("number"===(r=typeof e)){if(0===e)return o.s=1/e<0?-1:1,o.e=0,void(o.d=[0]);if(e<0?(e=-e,o.s=-1):o.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;return void(ba?t>i.maxE?(o.e=NaN,o.d=null):t<i.minE?(o.e=0,o.d=[0]):(o.e=t,o.d=[e]):(o.e=t,o.d=[e]))}return 0*e!=0?(e||(o.s=NaN),o.e=NaN,void(o.d=null)):ec(o,e.toString())}if("string"===r)return 45===(n=e.charCodeAt(0))?(e=e.slice(1),o.s=-1):(43===n&&(e=e.slice(1)),o.s=1),Na.test(e)?ec(o,e):tc(o,e);if("bigint"===r)return e<0?(e=-e,o.s=-1):o.s=1,ec(o,e.toString());throw Error(wa+e)}if(i.prototype=La,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=vc,i.clone=e,i.isDecimal=Ec,i.abs=ac,i.acos=cc,i.acosh=lc,i.add=uc,i.asin=fc,i.asinh=dc,i.atan=hc,i.atanh=pc,i.atan2=gc,i.cbrt=mc,i.ceil=Ac,i.clamp=yc,i.cos=bc,i.cosh=Ic,i.div=wc,i.exp=xc,i.floor=Cc,i.hypot=Bc,i.ln=Fc,i.log=kc,i.log10=Dc,i.log2=Sc,i.max=Nc,i.min=Qc,i.mod=Mc,i.mul=Tc,i.pow=Lc,i.random=Uc,i.round=Rc,i.sign=Hc,i.sin=qc,i.sinh=Oc,i.sqrt=Pc,i.sub=zc,i.sum=jc,i.tan=$c,i.tanh=Yc,i.trunc=Gc,void 0===t&&(t={}),t&&!0!==t.defaults)for(o=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}(va);function Jc(e,t=0){if(di(t)||(t=0),t=jo(t),!Se(e))return"";return new Vc(e).toDecimalPlaces(t,Vc.ROUND_CEIL).toNumber()}function Wc(e,t=0){if(!Se(e))return"";if(!di(t))return"";return e=wr(e),zo(e,t).toFixed(t)}function _c(){return"undefined"!=typeof self?self:Vs()?window:"undefined"!=typeof global?global:null}function Xc(e){let t=function(){let e=_c();return n||e.xss}();let r=function e(n){return we(n)||xe(n)?(mn(n,function(t,r){n[r]=e(t)}),n):Ee(n)?t(n,{onIgnoreTagAttr:function(e,n,r,o){if("style"===n)return n+'="'+t.escapeAttrValue(r)+'"'}}):n}(Lo(e));return r}function Kc(e,t){let n=Gs();if(!we(e)&&!xe(e))return n.reject("rs is not an array or object"),n;let r=!1;if(xe(e)){r=!0;let t=[];mn(e,(e,n)=>{t.push({k:n,v:e})}),e=t}ls(t)||(t=function(e){return e});let o=-1,i=[];return e.reduce(function(e,n){return e.then(function(e){i.push(e),o+=1;let s=o,a=n;return r&&(s=n.k,a=n.v),ls(t)?t(a,s):a})},Promise.resolve()).then(function(e){i.push(e),i=Ns(i),n.resolve(i)}).catch(function(e){n.reject(e)}),n}Aa=new Vc(Aa),ya=new Vc(ya);let Zc={},el={};function tl({tagName:e,path:t,attributes:n={},func:r}){let o=Gs();if("done"===Zc[t])return o.resolve("loaded"),o;if("loading"===Zc[t])return la(()=>"done"===Zc[t]).then(function(){o.resolve("loaded")}),o;Zc[t]="loading";let i=document.createElement(e);return mn(n,(e,t)=>{i.setAttribute(t,e)}),n.rel&&"stylesheet"===n.rel?(i.setAttribute("href",t),setTimeout(()=>{o.resolve(i),Zc[t]="done"},1)):(i.src=t,i.addEventListener("load",()=>{let e;ls(r)?e=la(r):(e=Gs(),e.resolve()),e.then(()=>ua(500)).then(function(){o.resolve(i),Zc[t]="done"})}),i.addEventListener("error",()=>{o.reject(i),Zc[t]="done"})),document.getElementsByTagName("head")[0].appendChild(i),o}function nl(e){let t=Gs();we(e)||(e=[e]),mn(e,(t,n)=>{Be(t)&&(e[n]={path:t})});let n=gi(yn(e,"path"),"|");return"done"===el[n]?(t.resolve("loaded"),t):"loading"===el[n]?(la(()=>"done"===el[n]).then(function(){t.resolve("loaded")}),t):(el[n]="loading",mn(e,(e,t)=>{e.type||(".js"===es(e.path,3)?e.type="js":".css"===es(e.path,4)?e.type="css":e.type="unknow")}),Kc(e,e=>{let t=Gs();if("js"===e.type)t=tl({tagName:"script",path:e.path,attributes:{type:"text/javascript"},func:e.func});else if("css"===e.type)t=tl({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(()=>{el[n]="done"}))}function rl(e){return Ae(e).toUpperCase()}function ol(e,t,n){if(!Ee(e))return"";if(!Ee(t))return"";if(!Be(n))return"";return String(e).replaceAll(t,n)}function il(e,t,n=1){return Ee(e)&&di(t)?(n=$o(n)?jo(n):1,e.substring(t,t+n)):""}let sl={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 al(e){return ll(e,1)}function cl(e){return ll(e,360)}function ll(e,t=1){if(e.indexOf("%")>=0){if(!Se(e=ol(e,"%","")))throw new Error("invalid color: value is not a number");e=wr(e)/100}else{if(!Se(e))throw new Error("invalid color: value is not a number");e=wr(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 ul(e){if(!Se(e))throw new Error("invalid color: value is not a number");if((e=wr(e))>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function fl(e,t="rgba"){if(!we(e))throw new Error("invalid colors array");let n=Ie(e,0,0),r=Ie(e,1,0),o=Ie(e,2,0),i=Ie(e,3,1);if(4!==rr(t=t.split("")))throw new Error("tar.length !== 4");let s=Ie(t,0),a=Ie(t,1),c=Ie(t,2),l=Ie(t,3);return{[s]:n,[a]:r,[c]:o,[l]:i}}function dl(e){let t=(e=ts(e,1)).length;if(2===t)e=`${e}${e}${e}ff`;else if(3===t){let t=il(e,0,1),n=il(e,1,1),r=il(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(!Se(e=parseInt(e,16)))throw new Error("invalid hex of color");return(e=wr(e))/255}return{r:n(il(e,0,2)),g:n(il(e,2,2)),b:n(il(e,4,2)),a:n(il(e,6,2))}}function hl(e){return e=fl(e=yn(e,(e,t)=>t<=2?ll(e,255):3===t?ul(e):null),"rgba")}function pl(e){return e=wl(e=fl(e=yn(e,(e,t)=>0===t?cl(e):1===t||2===t?al(e):3===t?ul(e):null),"hsla"))}function gl(e){return e=xl(e=fl(e=yn(e,(e,t)=>0===t?cl(e):1===t||2===t?al(e):3===t?ul(e):null),"hsva"))}function ml(e){if("transparent"===e)return{r:0,g:0,b:0,a:0};if(function(e){return De(sl,e)}(e))return dl(e=function(e){return`#${sl[e]}`}(e));if(function(e){return"#"===Zi(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 dl(e);if(function(e){return"rgb"===Zi(e,3)||"rgba"===Zi(e,4)}(e))return function(e){return e=ol(e,"rgba",""),e=ol(e,"rgb",""),hl(Ki(e=ol(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsl"===Zi(e,3)||"hsla"===Zi(e,4)}(e))return function(e){return e=ol(e,"hsla",""),e=ol(e,"hsl",""),pl(Ki(e=ol(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsv"===Zi(e,3)||"hsva"===Zi(e,4)}(e))return function(e){return e=ol(e,"hsva",""),e=ol(e,"hsv",""),gl(Ki(e=ol(e=e.replace(/[()]/g,""),","," ")," "))}(e);throw new Error("format of color string is not hex-color, name-color, rgba, hsla, hsva")}function Al(e,t){return!!De(e,t=fa(t))||!!De(e,t=rl(t))}function yl(e,t,n){let r;return r=Ie(e,t,null),null!==r?r:(r=Ie(e,t=rl(t),null),null!==r?r:n)}function vl(e){if(function(e){let t=Al(e,"r"),n=Al(e,"g"),r=Al(e,"b");return t&&n&&r}(e))return function(e){let t=[yl(e,"r",null),yl(e,"g",null),yl(e,"b",null),yl(e,"a",1)];return t=yn(t,Ds),hl(t)}(e);if(function(e){let t=Al(e,"h"),n=Al(e,"s"),r=Al(e,"l");return t&&n&&r}(e))return function(e){let t=[yl(e,"h",null),yl(e,"s",null),yl(e,"l",null),yl(e,"a",1)];return t=yn(t,Ds),pl(t)}(e);if(function(e){let t=Al(e,"h"),n=Al(e,"s"),r=Al(e,"v");return t&&n&&r}(e))return function(e){let t=[yl(e,"h",null),yl(e,"s",null),yl(e,"v",null),yl(e,"a",1)];return t=yn(t,Ds),gl(t)}(e);throw new Error("color object is not one of rgba, hsla, hsva")}function bl(e){let t,n,r=e.r,o=e.g,i=e.b,s=Math.max(r,o,i),a=Math.min(r,o,i),c=(s+a)/2;if(s===a)t=n=0;else{let e=s-a;switch(n=c>.5?e/(2-s-a):e/(s+a),s){case r:t=(o-i)/e+(o<i?6:0);break;case o:t=(i-r)/e+2;break;case i:t=(r-o)/e+4}t/=6}return{h:t,s:n,l:c,a:e.a}}function Il(e){let t,n,r=e.r,o=e.g,i=e.b,s=Math.max(r,o,i),a=Math.min(r,o,i),c=s,l=s-a;if(n=0===s?0:l/s,s===a)t=0;else{switch(s){case r:t=(o-i)/l+(o<i?6:0);break;case o:t=(i-r)/l+2;break;case i:t=(r-o)/l+4}t/=6}return{h:t,s:n,v:c,a:e.a}}function wl(e){let t,n,r,o=e.h,i=e.s,s=e.l;function a(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===i)t=n=r=s;else{let e=s<.5?s*(1+i):s+i-s*i,c=2*s-e;t=a(c,e,o+1/3),n=a(c,e,o),r=a(c,e,o-1/3)}return{r:t,g:n,b:r,a:e.a}}function xl(e){let t,n,r,o=e.h,i=e.s,s=e.v,a=Math.floor(6*o),c=6*o-a,l=s*(1-i),u=s*(1-c*i),f=s*(1-(1-c)*i);switch(a%6){case 0:t=s,n=f,r=l;break;case 1:t=u,n=s,r=l;break;case 2:t=l,n=s,r=f;break;case 3:t=l,n=u,r=s;break;case 4:t=f,n=l,r=s;break;case 5:t=s,n=l,r=u}return{r:t,g:n,b:r,a:e.a}}function Cl(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 Bl(e,t=!0){let n=e.r,r=e.g,o=e.b,i=e.a,s=`${Cl(n)}${Cl(r)}${Cl(o)}`;return t&&(s=`${s}${Cl(i)}`),s}function El(e){return Math.min(1,Math.max(0,e))}function Fl(e,t){if(!Ee(t))throw new Error("fmtOutput is not a string");if(!au[t])throw console.log(`fmtOutput must be [${ft(au)}]`),new Error("invalid fmtOutput");return e=au[t](e)}function kl(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let r=bl(e);return r.h+=t,r.h=r.h%1,Fl(wl(r),n)}function Sl(e,t,n,r,o="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 Fl({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},o)}function Dl(e){return`${zo(100*e,1)}%`}function Nl(e){return zo(e,0)}function Ql(e){return zo(e,3)}function Ml(e){return{r:Nl(255*e.r),g:Nl(255*e.g),b:Nl(255*e.b)}}function Tl(e){return`rgb(${Nl(255*e.r)}, ${Nl(255*e.g)}, ${Nl(255*e.b)})`}function Ll(e){return{r:Nl(255*e.r),g:Nl(255*e.g),b:Nl(255*e.b),a:Ql(e.a)}}function Ul(e){return`rgba(${Nl(255*e.r)}, ${Nl(255*e.g)}, ${Nl(255*e.b)}, ${Ql(e.a)})`}function Rl(e){let t=bl(e);return{h:Nl(360*t.h),s:Ql(t.s),l:Ql(t.l)}}function Hl(e){let t=bl(e);return`hsl(${Nl(360*t.h)}, ${Ql(t.s)}, ${Ql(t.l)})`}function ql(e){let t=bl(e);return{h:Nl(360*t.h),s:Ql(t.s),l:Ql(t.l),a:Ql(t.a)}}function Ol(e){let t=bl(e);return`hsla(${Nl(360*t.h)}, ${Ql(t.s)}, ${Ql(t.l)}, ${Ql(t.a)})`}function Pl(e){let t=Il(e);return{h:Nl(360*t.h),s:Ql(t.s),v:Ql(t.v)}}function zl(e){let t=Il(e);return`hsv(${Nl(360*t.h)}, ${Ql(t.s)}, ${Ql(t.v)})`}function jl(e){let t=Il(e);return{h:Nl(360*t.h),s:Ql(t.s),v:Ql(t.v),a:Ql(t.a)}}function $l(e){let t=Il(e);return`hsva(${Nl(360*t.h)}, ${Ql(t.s)}, ${Ql(t.v)}, ${Ql(t.a)})`}function Yl(e){return{r:Dl(e.r),g:Dl(e.g),b:Dl(e.b)}}function Gl(e){return`rgb(${Dl(e.r)}, ${Dl(e.g)}, ${Dl(e.b)})`}function Vl(e){return{r:Dl(e.r),g:Dl(e.g),b:Dl(e.b),a:Ql(e.a)}}function Jl(e){return`rgba(${Dl(e.r)}, ${Dl(e.g)}, ${Dl(e.b)}, ${Ql(e.a)})`}function Wl(e){let t=bl(e);return{h:Nl(360*t.h),s:Dl(t.s),l:Dl(t.l)}}function _l(e){let t=bl(e);return`hsl(${Nl(360*t.h)}, ${Dl(t.s)}, ${Dl(t.l)})`}function Xl(e){let t=bl(e);return{h:Nl(360*t.h),s:Dl(t.s),l:Dl(t.l),a:Ql(t.a)}}function Kl(e){let t=bl(e);return`hsla(${Nl(360*t.h)}, ${Dl(t.s)}, ${Dl(t.l)}, ${Ql(t.a)})`}function Zl(e){let t=Il(e);return{h:Nl(360*t.h),s:Dl(t.s),v:Dl(t.v)}}function eu(e){let t=Il(e);return`hsv(${Nl(360*t.h)}, ${Dl(t.s)}, ${Dl(t.v)})`}function tu(e){let t=Il(e);return{h:Nl(360*t.h),s:Dl(t.s),v:Dl(t.v),a:Ql(t.a)}}function nu(e){let t=Il(e);return`hsva(${Nl(360*t.h)}, ${Dl(t.s)}, ${Dl(t.v)}, ${Ql(t.a)})`}function ru(e){let t=function(e){return Bl(e,!1)}(e);return`#${t}`}function ou(e){return`#${Bl(e)}`}function iu(e){let t=null,n=null,r=null;if(Ee(e))t=fa(_i(e));else{if(!Ce(e))throw console.log("color=",e),new Error("color is not a string or an object");n=e}if(null!==t)try{r=ml(t)}catch(e){throw console.log(e),new Error(`can not parse color: ${t}`)}else if(null!==n)try{r=vl(n)}catch(e){throw console.log(e),new Error(`can not parse color: ${JSON.stringify(n)}`)}return r}function su(e){if(!Ce(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 mn(e,(e,n)=>{t.push([wr(n),Ll(iu(e)),e])}),t=ks(t,0),function(e){let n=null;for(let r=1;r<t.length;r++){let o=t[r-1][0],i=t[r-1][1],s=t[r][0],a=t[r][1];if(o<=e&&s>=e){let t=(s-e)/(s-o),r=(e-o)/(s-o);n=Sl(iu(i),t,iu(a),r,"toRgbaString");break}}return n}}let au={toRgb:Ml,toRgbString:Tl,toRgba:Ll,toRgbaString:Ul,toHsl:Rl,toHslString:Hl,toHsla:ql,toHslaString:Ol,toHsv:Pl,toHsvString:zl,toHsva:jl,toHsvaString:$l,toRgbP:Yl,toRgbPString:Gl,toRgbaP:Vl,toRgbaPString:Jl,toHslP:Wl,toHslPString:_l,toHslaP:Xl,toHslaPString:Kl,toHsvP:Zl,toHsvPString:eu,toHsvaP:tu,toHsvaPString:nu,toHexString:ru,toHex8String:ou};var cu={toRgb:e=>Ml(iu(e)),toRgbString:e=>Tl(iu(e)),toRgba:e=>Ll(iu(e)),toRgbaString:e=>Ul(iu(e)),toHsl:e=>Rl(iu(e)),toHslString:e=>Hl(iu(e)),toHsla:e=>ql(iu(e)),toHslaString:e=>Ol(iu(e)),toHsv:e=>Pl(iu(e)),toHsvString:e=>zl(iu(e)),toHsva:e=>jl(iu(e)),toHsvaString:e=>$l(iu(e)),toRgbP:e=>Yl(iu(e)),toRgbPString:e=>Gl(iu(e)),toRgbaP:e=>Vl(iu(e)),toRgbaPString:e=>Jl(iu(e)),toHslP:e=>Wl(iu(e)),toHslPString:e=>_l(iu(e)),toHslaP:e=>Xl(iu(e)),toHslaPString:e=>Kl(iu(e)),toHsvP:e=>Zl(iu(e)),toHsvPString:e=>eu(iu(e)),toHsvaP:e=>tu(iu(e)),toHsvaPString:e=>nu(iu(e)),toHexString:e=>ru(iu(e)),toHex8String:e=>ou(iu(e)),modSaturate:(e,t,n)=>function(e,t,n="toRgbString"){if(t<0||t>1)throw new Error("amount < 0 or > 1");let r=bl(e);return r.s+=t,r.s=El(r.s),Fl(wl(r),n)}(iu(e),t,n),modGrey:(e,t)=>function(e,t="toRgbString"){let n=bl(e);return n.s=0,Fl(wl(n),t)}(iu(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=bl(e);return r.l+=t,r.l=El(r.l),Fl(wl(r),n)}(iu(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=El(e.r),e.g+=t,e.g=El(e.g),e.b+=t,e.b=El(e.b),Fl(e,n)}(iu(e),t,n),modHue:(e,t,n)=>kl(iu(e),t,n),modComplement:(e,t)=>function(e,t="toRgbString"){return kl(e,.5,t)}(iu(e),t),spreadHue:(e,t,n)=>function(e,t,n="toRgbString"){if(!xr(t))throw new Error("num is not an integer");if((t=jo(t))<=1)return[e];let r=bl(e),o=1/t,i=[];for(let e=0;e<t;e++)i.push(Fl(wl(r),n)),r.h+=o,r.h=r.h%1;return i}(iu(e),t,n),spreadMonochromatic:(e,t,n)=>function(e,t,n="toRgbString"){if(!xr(t))throw new Error("num is not an integer");if((t=jo(t))<=1)return[e];let r=Il(e);r.s=1,r.l=1;let o=1/t,i=[];for(let e=0;e<t;e++)i.push(Fl(xl(r),n)),r.h-=o,r.l-=o;return i}(iu(e),t,n),mix:(e,t,n,r,o)=>Sl(iu(e),t,iu(n),r,o),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}(iu(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,o=e.r,i=e.g,s=e.b;return t=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),n=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),r=s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4),.2126*t+.7152*n+.0722*r}(iu(e)),interp:su};function lu(e,t,n){return null==e?e:function(e,t,n,r){if(!U(e))return e;for(var o=-1,i=(t=ye(t,e)).length,s=i-1,a=e;null!=a&&++o<i;){var c=ve(t[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var u=a[c];void 0===(l=r?r(u,c,a):void 0)&&(l=U(u)?u:Ge(t[o+1])?[]:{})}no(a,c,l),a=a[c]}return e}(e,t,n)}var uu=Function.prototype,fu=Object.prototype,du=uu.toString,hu=fu.hasOwnProperty,pu=du.call(Object);function gu(e){if(!N(e)||"[object Object]"!=D(e))return!1;var t=ho(e);if(null===t)return!0;var n=hu.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&du.call(n)==pu}function mu(e){return gu(e)?void 0:e}var Au=ui(function(e,t){var n={};if(null==e)return n;var r=!1;t=he(t,function(t){return t=ye(t,e),r||(r=t.length>1),t}),ro(e,go(e),n),r&&(n=To(n,7,mu));for(var o=t.length;o--;)bs(n,t[o]);return n}),yu=Au;function vu(e,t={}){let n="$level",r="$parents";if(!Dn(e))return[];let o=Ie(t,"bindKey",null);Ee(o)||(o="id");let i=Ie(t,"bindParent",null);Ee(i)||(i="parentId");let s=Ie(t,"bindChildren",null);Ee(s)||(s="children");let a=Ie(t,"saveExtProps",null);ir(a)||(a=!1),e=function(e){let t=[];function s(s){let a=[];mn(e,(e,c)=>{let l=Ie(e,i),u=Ie(s,o);if(l&&u&&l===u){let i=Ie(s,r,[]);i=Lo(i),i.push(s[o]),t.push({[n]:s[n]+1,[r]:i,...e})}else a.push(e)}),e=a}if(e=Lo(e),function(){let o=[];mn(e,(e,s)=>{Sn(e[i])?t.push({[n]:0,[r]:[],...e}):o.push(e)}),e=o}(),0===t.length)return t;let a=-1;for(;a+=1,!(a>t.length-1);){if(s(t[a]),0===e.length)break}return t}(e);let c=function(e){let t=[];function c(e){return a?e:yu(e,[n,r])}let l={};return mn(e,(r,a)=>{if(0===r[n]){let e=c(r);t.push(e),l[r[o]]=[a]}else{let n=function(t){for(let n=0;n<e.length;n++){let r=e[n];if(t[i]===r[o])return r}return null}(r);if(null!==n){let e=l[n[o]];e=[...e,s];let i=Ie(t,e,[]),a=c(r);i.push(a),l[r[o]]=[...e,i.length-1],lu(t,e,i)}else console.log(`can not find parent for ${Ie(r,i)}`)}}),t}(e);return c}function bu(e,t=null,n={}){R(t)||(t=e=>e);let r=Ie(n,"force",!1);return ir(r)||(r=!1),function(e,t,n=!1){let r=[];if(!we(e)&&!xe(e))return t(e,null,[]);function o(e){if(we(e))return _o(rr(e));if(xe(e)){let t=Object.getOwnPropertyNames(e),r=null;return n&&(r=Object.getOwnPropertySymbols(e)),we(t)||(t=[]),we(r)||(r=[]),[...t,...r]}return e}return function e(n,i){if(we(n))return o(n).map(o=>{let i=n[o],s=Lo(r);return r.push(o),i=t(i,o,s),i=e(i),r.pop(),i});if(xe(n)){let i=o(n),s={};return i.map(o=>{let i=n[o],a=Lo(r);r.push(o),i=t(i,o,a),i=e(i),r.pop(),s[o]=i}),s}return n}(e)}(e,t,r)}function Iu(e,t={}){if(!Ce(e)&&!Dn(e))return[];let n=Ie(t,"bindKey",null);Ee(n)||(n="id");let r=Ie(t,"bindParent",null);Ee(r)||(r="parentId");let o=Ie(t,"bindBelong",null);Ee(o)||(o="key");let i=Ie(t,"bindText",null);Ee(i)||(i="text");let s=Ie(t,"bindType",null);Ee(s)||(s="type");let a=Ie(t,"bindNumOfChilren",null);function c(e,t){return e=yn(e=Lo(e),e=>Q(e)?Ds(e):e),Q(t)&&(t=Ds(t)),(Ee(t)||Se(t))&&e.push(t),gi(e,"-")}Ee(a)||(a="numOfChilren");let l=[];return bu(e,(e,t,u)=>{let f=c(u,t),d=c(u,null),h="node";xe(e)?h="object":we(e)&&(h="array");let p={[n]:f,[r]:d,[s]:h};if((Ee(t)||as(t))&&(p[o]=t),xe(e)||we(e)||(p[i]=e),xe(e)||we(e)){let t=null;xe(e)?t=rr(ft(e)):we(e)&&(t=rr(e)),p[a]=t}return l.push(p),e},{force:!0}),l}function wu(e){return N(t=e)&&1===t.nodeType&&!gu(t);var t}function xu(e){if(!wu(e))return"invalid element";let t=!1;try{t=document.activeElement===e}catch(e){console.log(e)}return t}function Cu(e){return Se(e)?(e=wr(e),Math.cos(e*Math.PI/180)):null}function Bu(e){return Se(e)?(e=wr(e),Math.tan(e*Math.PI/180)):null}function Eu(){return{sheets:[]}}function Fu(e){return Se(e)?(e=wr(e),Math.sin(e*Math.PI/180)):null}function ku(e){if(!Ee(e))return!1;let n="YYYY-MM-DD";return e===t(e,n).format(n)}function Su(e=300){return new function(e){let t=[],n=null,r=Date.now();return $o(e)||(e=300),e=jo(e),function(o,...i){ls(o)?(r=Date.now(),t.push({func:o,input:i}),null===n&&(n=setInterval(()=>{if(0===rr(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 Du="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),Nu=Du.length;function Qu(e=32){let t=[];e=$o(e)?jo(e):32;for(let n=0;n<e;n++)t[n]=Du[0|Math.random()*Nu];return t.join("")}function Mu(e,t={}){if(!wu(e))return;let n=Ie(t,"duration",500);n=wr(n),n<0&&(n=1e3);let r=Ie(t,"delay",0);r=wr(r),r<0&&(r=0);let o=Ie(t,"opacityIni",0);o=wr(o),o=Math.min(Math.max(o,0),1),Se(e.style.opacity)&&(o=wr(e.style.opacity));let i=10/n,s=`tag-${Qu()}`;e.setAttribute("dom-fade-tag",s),setTimeout(()=>{let t=setInterval(()=>{try{e.getAttribute("dom-fade-tag")!==s&&clearInterval(t),e.style.opacity=o,o>=1&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),o+=i,o>1&&(o=1)}catch(e){console.log(e),clearInterval(t)}},10)},r)}function Tu(e,t={}){if(!wu(e))return;let n=Ie(t,"duration",500);n=wr(n),n<0&&(n=1e3);let r=Ie(t,"delay",0);r=wr(r),r<0&&(r=0);let o=Ie(t,"opacityIni",1);o=wr(o),o=Math.min(Math.max(o,0),1),Se(e.style.opacity)&&(o=wr(e.style.opacity));let i=10/n,s=`tag-${Qu()}`;e.setAttribute("dom-fade-tag",s),setTimeout(()=>{let t=setInterval(()=>{try{e.getAttribute("dom-fade-tag")!==s&&clearInterval(t),e.style.opacity=o,o<=0&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),o-=i,o<0&&(o=0)}catch(e){console.log(e),clearInterval(t)}},10)},r)}let Lu='<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>',Uu={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:Lu},Ru={},Hu=null,qu=_c();function Ou(){mn(["top-right","top-left","bottom-right","bottom-left"],e=>{!function(e){let t=rs(Ru,{position:e});t=ks(t,"timeStart");let n=16;mn(t,e=>{Ru[e.id].ele||(Ru[e.id].ele=document.querySelector(`#${e.id}`)),Ru[e.id].loc.top=n,Ru[e.id].loc.height=Ru[e.id].ele.offsetHeight,n+=Ru[e.id].loc.height+16}),mn(t,t=>{e.indexOf("bottom-")>=0?(Ru[t.id].ele.style.bottom=`${Ru[t.id].loc.top}px`,Ru[t.id].loc.bottom=Ru[t.id].loc.top):Ru[t.id].ele.style.top=`${Ru[t.id].loc.top}px`,e.indexOf("-left")>=0?(Ru[t.id].ele.style.left="16px",Ru[t.id].loc.left=16):(Ru[t.id].ele.style.right="16px",Ru[t.id].loc.right=16),Ru[t.id].ele.style.zIndex=2e5,Ru[t.id].ele.style.opacity=1,Ru[t.id].ele.style.transform="",Ru[t.id].ele.style.transform=null})}(e)})}function Pu(e){Ru[e].ele&&Ru[e].ele.parentNode.removeChild(Ru[e].ele),Ru[e]&&delete Ru[e],Ou()}function zu(e,t){if(!wu(e))return"invalid eleParent";if(Be(t))e.insertAdjacentHTML("beforeend",t);else{if(!wu(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 Yu;qu.ttWAlertCancel=function(e){Pu(e)},qu.ttWAlertFadeIn=function(e){Mu(document.querySelector(`#${e}`))},qu.ttWAlertFadeOut=function(e){Tu(document.querySelector(`#${e}`))},function(e){e.INSERT="insert",e.DELETE="delete",e.CONTEXT="context"}(Yu||(Yu={}));var Gu;!function(e){e.AUTO="auto",e.DARK="dark",e.LIGHT="light"}(Gu||(Gu={}));const Vu=RegExp("["+["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"].join("\\")+"]","g");function Ju(e){return e?e.replace(/\\/g,"/"):e}function Wu(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 _u(e,t){const n=e.split(".");return n.length>1?n[n.length-1]:t}function Xu(e,t){return t.reduce((t,n)=>t||e.startsWith(n),!1)}const Ku=["a/","b/","i/","w/","c/","o/"];function Zu(e,t,n){const r=void 0!==n?[...Ku,n]:Ku,o=t?new RegExp(`^${i=t,i.replace(Vu,"\\$&")} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$');var i;const[,s=""]=o.exec(e)||[],a=r.find(e=>0===s.indexOf(e));return(a?s.slice(a.length):s).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function ef(e,t={}){const n=[];let r=null,o=null,i=null,s=null,a=null,c=null,l=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})/,A=/^copy from "?(.+)"?/,y=/^copy to "?(.+)"?/,v=/^rename from "?(.+)"?/,b=/^rename to "?(.+)"?/,I=/^similarity index (\d+)%/,w=/^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]+)/,F=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,k=/^new file mode (\d{6})/,S=/^deleted file mode (\d{6}),(\d{6})/,D=e.replace(/\/g,"").replace(/\r\n?/g,"\n").split("\n");function N(){null!==o&&null!==r&&(r.blocks.push(o),o=null)}function Q(){null!==r&&(r.oldName||null===c||(r.oldName=c),r.newName||null===l||(r.newName=l),r.newName&&(n.push(r),r=null)),c=null,l=null}function M(){N(),Q(),r={blocks:[],deletedLines:0,addedLines:0}}function T(e){let t;N(),null!==r&&((t=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(r.isCombined=!1,i=parseInt(t[1],10),a=parseInt(t[2],10)):(t=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(r.isCombined=!0,i=parseInt(t[1],10),s=parseInt(t[2],10),a=parseInt(t[3],10)):(e.startsWith(d)&&console.error("Failed to parse lines, starting in 0!"),i=0,a=0,r.isCombined=!1)),o={lines:[],oldStartLine:i,oldStartLine2:s,newStartLine:a,header:e}}return D.forEach((e,s)=>{if(!e||e.startsWith("*"))return;let N;const Q=D[s-1],L=D[s+1],U=D[s+2];if(e.startsWith("diff --git")||e.startsWith("diff --combined")){M();if((N=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(e))&&(c=Zu(N[1],void 0,t.dstPrefix),l=Zu(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)){M();if((N=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(e))&&(c=Zu(N[1],void 0,t.dstPrefix),l=Zu(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)&&U.startsWith(d))&&M(),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=[],o=null;return void T("function"==typeof t.diffTooBigMessage?t.diffTooBigMessage(n.length):"Diff too big to be displayed")}if(e.startsWith(u)&&L.startsWith(f)||e.startsWith(f)&&Q.startsWith(u)){if(r&&!r.oldName&&e.startsWith("--- ")&&(N=function(e,t){return Zu(e,"---",t)}(e,t.srcPrefix)))return r.oldName=N,void(r.language=_u(r.oldName,r.language));if(r&&!r.newName&&e.startsWith("+++ ")&&(N=function(e,t){return Zu(e,"+++",t)}(e,t.dstPrefix)))return r.newName=N,void(r.language=_u(r.newName,r.language))}if(r&&(e.startsWith(d)||r.isGitDiff&&r.oldName&&r.newName&&!o))return void T(e);if(o&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))return void function(e){if(null===r||null===o||null===i||null===a)return;const t={content:e},n=r.isCombined?["+ "," +","++"]:["+"],s=r.isCombined?["- "," -","--"]:["-"];Xu(e,n)?(r.addedLines++,t.type=Yu.INSERT,t.oldNumber=void 0,t.newNumber=a++):Xu(e,s)?(r.deletedLines++,t.type=Yu.DELETE,t.oldNumber=i++,t.newNumber=void 0):(t.type=Yu.CONTEXT,t.oldNumber=i++,t.newNumber=a++),o.lines.push(t)}(e);const R=!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,s);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=A.exec(e))?(R&&(r.oldName=N[1]),r.isCopy=!0):(N=y.exec(e))?(R&&(r.newName=N[1]),r.isCopy=!0):(N=v.exec(e))?(R&&(r.oldName=N[1]),r.isRename=!0):(N=b.exec(e))?(R&&(r.newName=N[1]),r.isRename=!0):(N=C.exec(e))?(r.isBinary=!0,r.oldName=Zu(N[1],void 0,t.srcPrefix),r.newName=Zu(N[2],void 0,t.dstPrefix),T("Binary file")):B.test(e)?(r.isBinary=!0,T(e)):(N=I.exec(e))?r.unchangedPercentage=parseInt(N[1],10):(N=w.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=F.exec(e))?(r.oldMode=[N[2],N[3]],r.newMode=N[1]):(N=k.exec(e))?(r.newFileMode=N[1],r.isNew=!0):(N=S.exec(e))&&(r.deletedFileMode=N[1],r.isDeleted=!0)}),N(),Q(),n}class tf{diff(e,t,n={}){let r;"function"==typeof n?(r=n,n={}):"callback"in n&&(r=n.callback);const o=this.castInput(e,n),i=this.castInput(t,n),s=this.removeEmpty(this.tokenize(o,n)),a=this.removeEmpty(this.tokenize(i,n));return this.diffWithOptionsObj(s,a,n,r)}diffWithOptionsObj(e,t,n,r){var o;const i=e=>(e=this.postProcess(e,n),r?void setTimeout(function(){r(e)},0):e),s=t.length,a=e.length;let c=1,l=s+a;null!=n.maxEditLength&&(l=Math.min(l,n.maxEditLength));const u=null!==(o=n.timeout)&&void 0!==o?o: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>=a&&h+1>=s)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,g=1/0;const m=()=>{for(let r=Math.max(p,-c);r<=Math.min(g,c);r+=2){let o;const c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){const e=l.oldPos-r;u=l&&0<=e&&e<s}const f=c&&c.oldPos+1<a;if(u||f){if(o=!f||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),h=this.extractCommon(o,t,e,r,n),o.oldPos+1>=a&&h+1>=s)return i(this.buildValues(o.lastComponent,t,e))||!0;d[r]=o,o.oldPos+1>=a&&(g=Math.min(g,r-1)),h+1>=s&&(p=Math.max(p,r+1))}else d[r]=void 0}c++};if(r)!function e(){setTimeout(function(){if(c>l||Date.now()>f)return r(void 0);m()||e()},0)}();else for(;c<=l&&Date.now()<=f;){const e=m();if(e)return e}}addToPath(e,t,n,r,o){const i=e.lastComponent;return i&&!o.oneChangePerToken&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}}extractCommon(e,t,n,r,o){const i=t.length,s=n.length;let a=e.oldPos,c=a-r,l=0;for(;c+1<i&&a+1<s&&this.equals(n[a+1],t[c+1],o);)c++,a++,l++,o.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!o.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=a,c}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 o;for(;e;)r.push(e),o=e.previousComponent,delete e.previousComponent,e=o;r.reverse();const i=r.length;let s=0,a=0,c=0;for(;s<i;s++){const e=r[s];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(a,a+e.count);r=r.map(function(e,t){const r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(a,a+e.count));a+=e.count,e.added||(c+=e.count)}}return r}}const nf=new class extends tf{};const rf="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 of=new class extends tf{tokenize(e){const t=new RegExp(`(\\r?\\n)|[${rf}]+|[^\\S\\n\\r]+|[^${rf}]`,"ug");return e.match(t)||[]}};function sf(e){return(t,n)=>{const r=e(t).trim(),o=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,o;for(r=0;r<=t.length;r++)n[r]=[r];for(o=0;o<=e.length;o++)n[0][o]=o;for(r=1;r<=t.length;r++)for(o=1;o<=e.length;o++)t.charAt(r-1)===e.charAt(o-1)?n[r][o]=n[r-1][o-1]:n[r][o]=Math.min(n[r-1][o-1]+1,Math.min(n[r][o-1]+1,n[r-1][o]+1));return n[t.length][e.length]}(r,o)/(r.length+o.length)}}function af(e){return function t(n,r,o=0,i=new Map){const s=function(t,n,r=new Map){let o,i=1/0;for(let s=0;s<t.length;++s)for(let a=0;a<n.length;++a){const c=JSON.stringify([t[s],n[a]]);let l;r.has(c)&&(l=r.get(c))||(l=e(t[s],n[a]),r.set(c,l)),l<i&&(i=l,o={indexA:s,indexB:a,score:i})}return o}(n,r,i);if(!s||n.length+r.length<3)return[[n,r]];const a=n.slice(0,s.indexA),c=r.slice(0,s.indexB),l=[n[s.indexA]],u=[r[s.indexB]],f=s.indexA+1,d=s.indexB+1,h=n.slice(f),p=r.slice(d),g=t(a,c,o+1,i),m=t(l,u,o+1,i),A=t(h,p,o+1,i);let y=m;return(s.indexA>0||s.indexB>0)&&(y=g.concat(y)),(n.length>f||r.length>d)&&(y=y.concat(A)),y}}const cf={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},lf={matching:"none",matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:"word",colorScheme:Gu.LIGHT},uf="/",ff=sf(e=>e.value),df=af(ff);function hf(e){return-1!==e.indexOf("dev/null")}function pf(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function gf(e){switch(e){case Yu.CONTEXT:return cf.CONTEXT;case Yu.INSERT:return cf.INSERTS;case Yu.DELETE:return cf.DELETES}}function mf(e){switch(e){case Gu.DARK:return"d2h-dark-color-scheme";case Gu.AUTO:return"d2h-auto-color-scheme";case Gu.LIGHT:default:return"d2h-light-color-scheme"}}function Af(e){return e.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function yf(e,t,n=!0){const r=function(e){return e?2:1}(t);return{prefix:e.substring(0,r),content:n?Af(e.substring(r)):e.substring(r)}}function vf(e){const t=Ju(e.oldName),n=Ju(e.newName);if(t===n||hf(t)||hf(n))return hf(n)?t:n;{const e=[],r=[],o=t.split(uf),i=n.split(uf);let s=0,a=o.length-1,c=i.length-1;for(;s<a&&s<c&&o[s]===i[s];)e.push(i[s]),s+=1;for(;a>s&&c>s&&o[a]===i[c];)r.unshift(i[c]),a-=1,c-=1;const l=e.join(uf),u=r.join(uf),f=o.slice(s,a+1).join(uf),d=i.slice(s,c+1).join(uf);return l.length&&u.length?l+uf+"{"+f+" → "+d+"}"+uf+u:l.length?l+uf+"{"+f+" → "+d+"}":u.length?"{"+f+" → "+d+"}"+uf+u:t+" → "+n}}function bf(e){return`d2h-${function(e){let t,n,r,o=0;for(t=0,r=e.length;t<r;t++)n=e.charCodeAt(t),o=(o<<5)-o+n,o|=0;return o}(vf(e)).toString().slice(-6)}`}function If(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 wf(e,t,n,r={}){const{matching:o,maxLineLengthHighlight:i,matchWordsThreshold:s,diffStyle:a}=Object.assign(Object.assign({},lf),r),c=yf(e,n,!1),l=yf(t,n,!1);if(c.content.length>i||l.content.length>i)return{oldLine:{prefix:c.prefix,content:Af(c.content)},newLine:{prefix:l.prefix,content:Af(l.content)}};const u="char"===a?(f=c.content,d=l.content,nf.diff(f,d,h)):function(e,t,n){return of.diff(e,t,n)}(c.content,l.content);var f,d,h;const p=[];if("word"===a&&"words"===o){const e=u.filter(e=>e.removed),t=u.filter(e=>e.added);df(t,e).forEach(e=>{if(1===e[0].length&&1===e[1].length){ff(e[0][0],e[1][0])<s&&(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"':"",o=Af(t.value);return null!==n?`${e}<${n}${r}>${o}</${n}>`:`${e}${o}`},"");return{oldLine:{prefix:c.prefix,content:(m=g,m.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,""))},newLine:{prefix:l.prefix,content:pf(g)}};var m}const xf="file-summary",Cf={colorScheme:lf.colorScheme};class Bf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Cf),t)}render(e){const t=e.map(e=>this.hoganUtils.render(xf,"line",{fileHtmlId:bf(e),oldName:e.oldName,newName:e.newName,fileName:vf(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:this.hoganUtils.template("icon",If(e))})).join("\n");return this.hoganUtils.render(xf,"wrapper",{colorScheme:mf(this.config.colorScheme),filesNumber:e.length,files:t})}}const Ef=Object.assign(Object.assign({},lf),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Ff="generic",kf="line-by-line";class Sf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Ef),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(Ff,"wrapper",{colorScheme:mf(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(kf,"file-diff"),r=this.hoganUtils.template(Ff,"file-path"),o=this.hoganUtils.template("icon","file"),i=this.hoganUtils.template("tag",If(e));return n.render({file:e,fileHtmlId:bf(e),diffs:t,filePath:r.render({fileDiffName:vf(e)},{fileIcon:o,fileTag:i})})}generateEmptyDiff(){return this.hoganUtils.render(Ff,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:cf})}generateFileHtml(e){const t=af(sf(t=>yf(t.content,e.isCombined).content));return e.blocks.map(n=>{let r=this.hoganUtils.render(Ff,"block-header",{CSSLineClass:cf,blockHeader:e.isTooBig?n.header:Af(n.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(n).forEach(([n,o,i])=>{if(o.length&&i.length&&!n.length)this.applyRematchMatching(o,i,t).map(([t,n])=>{const{left:o,right:i}=this.processChangedLines(e,e.isCombined,t,n);r+=o,r+=i});else if(n.length)n.forEach(t=>{const{prefix:n,content:o}=yf(t.content,e.isCombined);r+=this.generateSingleLineHtml(e,{type:cf.CONTEXT,prefix:n,content:o,oldNumber:t.oldNumber,newNumber:t.newNumber})});else if(o.length||i.length){const{left:t,right:n}=this.processChangedLines(e,e.isCombined,o,i);r+=t,r+=n}else console.error("Unknown state reached while processing groups of lines",n,o,i)}),r}).join("\n")}applyLineGroupping(e){const t=[];let n=[],r=[];for(let o=0;o<e.lines.length;o++){const i=e.lines[o];(i.type!==Yu.INSERT&&r.length||i.type===Yu.CONTEXT&&n.length>0)&&(t.push([[],n,r]),n=[],r=[]),i.type===Yu.CONTEXT?t.push([[i],[],[]]):i.type===Yu.INSERT&&0===n.length?t.push([[],[],[i]]):i.type===Yu.INSERT&&n.length>0?r.push(i):i.type===Yu.DELETE&&n.push(i)}return(n.length||r.length)&&(t.push([[],n,r]),n=[],r=[]),t}applyRematchMatching(e,t,n){const r=e.length*t.length,o=Wu(e.concat(t).map(e=>e.content.length));return r<this.config.matchingMaxComparisons&&o<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?n(e,t):[[e,t]]}processChangedLines(e,t,n,r){const o={right:"",left:""},i=Math.max(n.length,r.length);for(let s=0;s<i;s++){const i=n[s],a=r[s],c=void 0!==i&&void 0!==a?wf(i.content,a.content,t,this.config):void 0,l=void 0!==i&&void 0!==i.oldNumber?Object.assign(Object.assign({},void 0!==c?{prefix:c.oldLine.prefix,content:c.oldLine.content,type:cf.DELETE_CHANGES}:Object.assign(Object.assign({},yf(i.content,t)),{type:gf(i.type)})),{oldNumber:i.oldNumber,newNumber:i.newNumber}):void 0,u=void 0!==a&&void 0!==a.newNumber?Object.assign(Object.assign({},void 0!==c?{prefix:c.newLine.prefix,content:c.newLine.content,type:cf.INSERT_CHANGES}:Object.assign(Object.assign({},yf(a.content,t)),{type:gf(a.type)})),{oldNumber:a.oldNumber,newNumber:a.newNumber}):void 0,{left:f,right:d}=this.generateLineHtml(e,l,u);o.left+=f,o.right+=d}return o}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(kf,"numbers",{oldNumber:t.oldNumber||"",newNumber:t.newNumber||""});return this.hoganUtils.render(Ff,"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 Df=Object.assign(Object.assign({},lf),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),Nf="generic";class Qf{constructor(e,t={}){this.hoganUtils=e,this.config=Object.assign(Object.assign({},Df),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(Nf,"wrapper",{colorScheme:mf(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(Nf,"file-path"),o=this.hoganUtils.template("icon","file"),i=this.hoganUtils.template("tag",If(e));return n.render({file:e,fileHtmlId:bf(e),diffs:t,filePath:r.render({fileDiffName:vf(e)},{fileIcon:o,fileTag:i})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(Nf,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:cf})}}generateFileHtml(e){const t=af(sf(t=>yf(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,o,i])=>{if(o.length&&i.length&&!n.length)this.applyRematchMatching(o,i,t).map(([t,n])=>{const{left:o,right:i}=this.processChangedLines(e.isCombined,t,n);r.left+=o,r.right+=i});else if(n.length)n.forEach(t=>{const{prefix:n,content:o}=yf(t.content,e.isCombined),{left:i,right:s}=this.generateLineHtml({type:cf.CONTEXT,prefix:n,content:o,number:t.oldNumber},{type:cf.CONTEXT,prefix:n,content:o,number:t.newNumber});r.left+=i,r.right+=s});else if(o.length||i.length){const{left:t,right:n}=this.processChangedLines(e.isCombined,o,i);r.left+=t,r.right+=n}else console.error("Unknown state reached while processing groups of lines",n,o,i)}),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 o=0;o<e.lines.length;o++){const i=e.lines[o];(i.type!==Yu.INSERT&&r.length||i.type===Yu.CONTEXT&&n.length>0)&&(t.push([[],n,r]),n=[],r=[]),i.type===Yu.CONTEXT?t.push([[i],[],[]]):i.type===Yu.INSERT&&0===n.length?t.push([[],[],[i]]):i.type===Yu.INSERT&&n.length>0?r.push(i):i.type===Yu.DELETE&&n.push(i)}return(n.length||r.length)&&(t.push([[],n,r]),n=[],r=[]),t}applyRematchMatching(e,t,n){const r=e.length*t.length,o=Wu(e.concat(t).map(e=>e.content.length));return r<this.config.matchingMaxComparisons&&o<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching)?n(e,t):[[e,t]]}makeHeaderHtml(e,t){return this.hoganUtils.render(Nf,"block-header",{CSSLineClass:cf,blockHeader:(null==t?void 0:t.isTooBig)?e:Af(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(e,t,n){const r={right:"",left:""},o=Math.max(t.length,n.length);for(let i=0;i<o;i++){const o=t[i],s=n[i],a=void 0!==o&&void 0!==s?wf(o.content,s.content,e,this.config):void 0,c=void 0!==o&&void 0!==o.oldNumber?Object.assign(Object.assign({},void 0!==a?{prefix:a.oldLine.prefix,content:a.oldLine.content,type:cf.DELETE_CHANGES}:Object.assign(Object.assign({},yf(o.content,e)),{type:gf(o.type)})),{number:o.oldNumber}):void 0,l=void 0!==s&&void 0!==s.newNumber?Object.assign(Object.assign({},void 0!==a?{prefix:a.newLine.prefix,content:a.newLine.content,type:cf.INSERT_CHANGES}:Object.assign(Object.assign({},yf(s.content,e)),{type:gf(s.type)})),{number:s.newNumber}):void 0,{left:u,right:f}=this.generateLineHtml(c,l);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(Nf,"line",{type:(null==e?void 0:e.type)||`${cf.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 Mf={};!function(e){!function(e){var t=/\S/,n=/\"/g,r=/\n/g,o=/\r/g,i=/\\/g,s=/\u2028/,a=/\u2029/;function c(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function l(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,o=e.length;r<o;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 o=n.length,i=0,s=null,a=null,f="",d=[],h=!1,p=0,g=0,m="{{",A="}}";function y(){f.length>0&&(d.push({tag:"_t",text:new String(f)}),f="")}function v(n,r){if(y(),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 o,i=g;i<d.length;i++)d[i].text&&((o=d[i+1])&&">"==o.tag&&(o.indent=d[i].text.toString()),d.splice(i,1));else r||d.push({tag:"\n"});h=!1,g=d.length}function b(e,t){var n="="+A,r=e.indexOf(n,t),o=l(e.substring(e.indexOf("=",t)+1,r)).split(" ");return m=o[0],A=o[o.length-1],r+n.length-1}for(r&&(r=r.split(" "),m=r[0],A=r[1]),p=0;p<o;p++)0==i?u(m,n,p)?(--p,y(),i=1):"\n"==n.charAt(p)?v(h):f+=n.charAt(p):1==i?(p+=m.length-1,"="==(s=(a=e.tags[n.charAt(p+1)])?n.charAt(p+1):"_v")?(p=b(n,p),i=0):(a&&p++,i=2),h=p):u(A,n,p)?(d.push({tag:s,n:l(f),otag:m,ctag:A,i:"/"==s?h-m.length:p+A.length}),f="",p+=A.length-1,i=0,"{"==s&&("}}"==A?p++:c(d[d.length-1]))):f+=n.charAt(p);return v(h,!0),d};var f={_t:!0,"\n":!0,$:!0,"/":!0};function d(t,n,r,o){var i,s=[],a=null,c=null;for(i=r[r.length-1];t.length>0;){if(c=t.shift(),i&&"<"==i.tag&&!(c.tag in f))throw new Error("Illegal content in < super tag.");if(e.tags[c.tag]<=e.tags.$||h(c,o))r.push(c),c.nodes=d(t,c.tag,r,o);else{if("/"==c.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+c.n);if(a=r.pop(),c.n!=a.n&&!p(c.n,a.n,o))throw new Error("Nesting error: "+a.n+" vs. "+c.n);return a.end=c.i,s}"\n"==c.tag&&(c.last=0==t.length||"\n"==t[0].tag)}s.push(c)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return s}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,o=n.length;r<o;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('"'+A(n)+'":{name:"'+A(e.partials[n].name)+'", '+g(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var n in e)t.push('"'+A(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 A(e){return e.replace(i,"\\\\").replace(n,'\\"').replace(r,"\\n").replace(o,"\\r").replace(s,"\\u2028").replace(a,"\\u2029")}function y(e){return~e.indexOf(".")?"d":"f"}function v(e,t){var n="<"+(t.prefix||"")+e.n+m++;return t.partials[n]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+A(n)+'",c,p,"'+(e.indent||"")+'"));',n}function b(e,t){t.code+="t.b(t.t(t."+y(e.n)+'("'+A(e.n)+'",c,p,0)));'}function I(e){return"t.b("+e+");"}e.generate=function(t,n,r){m=0;var o={code:"",subs:{},partials:{}};return e.walk(t,o),r.asString?this.stringify(o,n,r):this.makeTemplate(o,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."+y(t.n)+'("'+A(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."+y(t.n)+'("'+A(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,n),n.code+="};"},">":v,"<":function(t,n){var r={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,r);var o=n.partials[v(t,n)];o.subs=r.subs,o.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("'+A(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=I('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+y(e.n)+'("'+A(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=I('"'+A(e.text)+'"')},"{":b,"&":b},e.walk=function(t,n){for(var r,o=0,i=t.length;o<i;o++)(r=e.codegen[t[o].tag])&&r(t[o],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),o=this.cache[r];if(o){var i=o.partials;for(var s in i)delete i[s].instance;return o}return o=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[r]=o}}(e)}(Mf);var Tf={};!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=c(e),a.test(e)?e.replace(n,"&amp;").replace(r,"&lt;").replace(o,"&gt;").replace(i,"&#39;").replace(s,"&quot;"):e},t:c,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,o,i){function s(){}function a(){}var c;s.prototype=e,a.prototype=e.subs;var l=new s;for(c in l.subs=new a,l.subsText={},l.buf="",r=r||{},l.stackSubs=r,l.subsText=i,t)r[c]||(r[c]=t[c]);for(c in r)l.subs[c]=r[c];for(c in o=o||{},l.stackPartials=o,n)o[c]||(o[c]=n[c]);for(c in o)l.partials[c]=o[c];return l}(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 o=this.ep(e,n);return o?o.ri(t,n,r):""},rs:function(e,t,n){var r=e[e.length-1];if(l(r))for(var o=0;o<r.length;o++)e.push(r[o]),n(e,t,this),e.pop();else n(e,t,this)},s:function(e,t,n,r,o,i,s){var a;return(!l(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,n,r,o,i,s)),a=!!e,!r&&a&&t&&t.push("object"==typeof e?e:t[t.length-1]),a)},d:function(e,n,r,o){var i,s=e.split("."),a=this.f(s[0],n,r,o),c=this.options.modelGet,u=null;if("."===e&&l(n[n.length-2]))a=n[n.length-1];else for(var f=1;f<s.length;f++)void 0!==(i=t(s[f],a,c))?(u=a,a=i):a="";return!(o&&!a)&&(o||"function"!=typeof a||(n.push(u),a=this.mv(a,n,r),n.pop()),a)},f:function(e,n,r,o){for(var i=!1,s=!1,a=this.options.modelGet,c=n.length-1;c>=0;c--)if(void 0!==(i=t(e,n[c],a))){s=!0;break}return s?(o||"function"!=typeof i||(i=this.mv(i,n,r)),i):!o&&""},ls:function(e,t,n,r,o,i){var s=this.options.delimiters;return this.options.delimiters=i,this.b(this.ct(c(e.call(t,o,n)),t,r)),this.options.delimiters=s,!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,o,i,s){var a,c=t[t.length-1],l=e.call(c);return"function"==typeof l?!!r||(a=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(l,c,t,n,a.substring(o,i),s)):l},mv:function(e,t,n){var r=t[t.length-1],o=e.call(r);return"function"==typeof o?this.ct(c(o.call(r)),r,n):o},sub:function(e,t,n,r){var o=this.subs[e];o&&(this.activeSub=e,o(t,n,this,r),this.activeSub=!1)}};var n=/&/g,r=/</g,o=/>/g,i=/\'/g,s=/\"/g,a=/[&<>\"\']/;function c(e){return String(null==e?"":e)}var l=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(e)}(Tf);var Lf=Mf;Lf.Template=Tf.Template,Lf.template=Lf.Template;var Uf=Lf;const Rf={};Rf["file-summary-line"]=new Uf.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:{}}),Rf["file-summary-wrapper"]=new Uf.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:{}}),Rf["generic-block-header"]=new Uf.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:{}}),Rf["generic-empty-diff"]=new Uf.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:{}}),Rf["generic-file-path"]=new Uf.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:{}}),Rf["generic-line"]=new Uf.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:{}}),Rf["generic-wrapper"]=new Uf.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:{}}),Rf["icon-file-added"]=new Uf.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:{}}),Rf["icon-file-changed"]=new Uf.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:{}}),Rf["icon-file-deleted"]=new Uf.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:{}}),Rf["icon-file-renamed"]=new Uf.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:{}}),Rf["icon-file"]=new Uf.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:{}}),Rf["line-by-line-file-diff"]=new Uf.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:{}}),Rf["line-by-line-numbers"]=new Uf.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:{}}),Rf["side-by-side-file-diff"]=new Uf.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:{}}),Rf["tag-file-added"]=new Uf.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:{}}),Rf["tag-file-changed"]=new Uf.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:{}}),Rf["tag-file-deleted"]=new Uf.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:{}}),Rf["tag-file-renamed"]=new Uf.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 Hf{constructor({compiledTemplates:e={},rawTemplates:t={}}){const n=Object.entries(t).reduce((e,[t,n])=>{const r=Uf.compile(n,{asString:!1});return Object.assign(Object.assign({},e),{[t]:r})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},Rf),e),n)}static compile(e){return Uf.compile(e,{asString:!1})}render(e,t,n,r,o){const i=this.templateKey(e,t);try{return this.preCompiledTemplates[i].render(n,r,o)}catch(e){throw new Error(`Could not find template to render '${i}'`)}}template(e,t){return this.preCompiledTemplates[this.templateKey(e,t)]}templateKey(e,t){return`${e}-${t}`}}const qf=Object.assign(Object.assign(Object.assign({},Ef),Df),{outputFormat:"line-by-line",drawFileList:!0});var Of=Object.freeze({__proto__:null,defaultDiff2HtmlConfig:qf,html:function(e,t={}){const n=Object.assign(Object.assign({},qf),t),r="string"==typeof e?ef(e,n):e,o=new Hf(n),{colorScheme:i}=n,s={colorScheme:i};return(n.drawFileList?new Bf(o,s).render(r):"")+("side-by-side"===n.outputFormat?new Qf(o,n).render(r):new Sf(o,n).render(r))},parse:function(e,t={}){return ef(e,Object.assign(Object.assign({},qf),t))}});function Pf(){if("[object Module]"===Object.prototype.toString.call(Of))return Of;let e=_c(),t=Ie(e,"Diff2Html.default",null),n=Ie(e,"Diff2Html",null),r="html";if(Ce(t)&&ls(t[r]))return t;if(Ce(n)&&ls(n[r]))return n;throw console.log("Diff2Html",Of,"g.Diff2Html",e.Diff2Html),new Error("invalid Diff2Html, g.Diff2Html, g.Diff2Html.default, use script for import")}var zf={image:new Map,background:new Map,resource:new Map,defaultStyle:new Map,baseStyle:new Map,computedStyle:new WeakMap,font:new Set,session:{styleMap:new Map,styleCache:new WeakMap,nodeMap:new Map}};function jf(e){const t=e.match(/url\((['"]?)(.*?)(\1)\)/);if(!t)return null;const n=t[2].trim();return n.startsWith("#")?null:n}function $f(e){if(/%[0-9A-Fa-f]{2}/.test(e))return e;try{return encodeURI(e)}catch{return e}}var Yf=function(e="[snapDOM]",{ttlMs:t=3e5,maxEntries:n=12}={}){const r=new Map;let o=0;function i(i,s,a){if(o>=n)return;const c=Date.now();(r.get(s)||0)>c||(r.set(s,c+t),o++,"warn"===i&&console&&console.warn?console.warn(`${e} ${a}`):console&&console.error&&console.error(`${e} ${a}`))}return{warnOnce(e,t){i("warn",e,t)},errorOnce(e,t){i("error",e,t)},reset(){r.clear(),o=0}}}("[snapDOM]",{ttlMs:18e4,maxEntries:10}),Gf=new Map,Vf=new Map;function Jf(e,t){if(!t)return!1;if(function(e){return/^data:|^blob:|^about:blank$/i.test(e)}(e))return!1;if(function(e,t){try{const n="undefined"!=typeof location&&location.href?location.href:"http://localhost/",r=t.includes("{url}")?t.split("{url}")[0]:t,o=new URL(r||".",n),i=new URL(e,n);if(i.origin===o.origin)return!0;const s=i.searchParams;if(s&&(s.has("url")||s.has("target")))return!0}catch{}return!1}(e,t))return!1;try{const t="undefined"!=typeof location&&location.href?location.href:"http://localhost/",n=new URL(e,t);return"undefined"==typeof location||n.origin!==location.origin}catch{return!!t}}function Wf(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=()=>t(String(r.result||"")),r.onerror=()=>n(new Error("read_failed")),r.readAsDataURL(e)})}async function _f(e,t={}){const n=t.as??"blob",r=t.timeout??3e3,o=t.useProxy||"",i=t.errorTTL??8e3,s=t.headers||{},a=!!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]||""};const[,t="",r=""]=String(e).match(/^data:([^,]*),(.*)$/)||[],o=/;base64/i.test(t)?atob(r):decodeURIComponent(r),i=new Uint8Array([...o].map(e=>e.charCodeAt(0))),s=new Blob([i],{type:(t||"").split(";")[0]||""});return{ok:!0,data:s,status:200,url:e,fromCache:!1,mime:s.type||""}}catch{return{ok:!1,data:null,status:0,url:e,fromCache:!1,reason:"special_url_error"}}if(/^blob:/i.test(e))try{const t=await fetch(e);if(!t.ok)return{ok:!1,data:null,status:t.status,url:e,fromCache:!1,reason:"http_error"};const r=await t.blob(),o=r.type||t.headers.get("content-type")||"";if("dataURL"===n){return{ok:!0,data:await Wf(r),status:t.status,url:e,fromCache:!1,mime:o}}if("text"===n){return{ok:!0,data:await r.text(),status:t.status,url:e,fromCache:!1,mime:o}}return{ok:!0,data:r,status:t.status,url:e,fromCache:!1,mime:o}}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};const c=function(e,t){return[t.as||"blob",t.timeout??3e3,t.useProxy||"",t.errorTTL??8e3,e].join("|")}(e,{as:n,timeout:r,useProxy:o,errorTTL:i}),l=Vf.get(c);if(l&&l.until>Date.now())return{...l.result,fromCache:!0};l&&Vf.delete(c);const u=Gf.get(c);if(u)return u;const f=Jf(e,o)?function(e,t){if(!t)return e;if(t.includes("{url}"))return t.replace("{urlRaw}",$f(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}${$f(e)}`;const n=t.includes("?")?"&":"?";return`${t}${n}url=${encodeURIComponent(e)}`}(e,o):e;let d=t.credentials;if(!d)try{const t="undefined"!=typeof location&&location.href?location.href:"http://localhost/",n=new URL(e,t),r="undefined"!=typeof location&&n.origin===location.origin;d=r?"include":"omit"}catch{d="omit"}const h=new AbortController,p=setTimeout(()=>h.abort("timeout"),r),g=(async()=>{try{const r=await fetch(f,{signal:h.signal,credentials:d,headers:s});if(!r.ok){const o={ok:!1,data:null,status:r.status,url:f,fromCache:!1,reason:"http_error"};if(i>0&&Vf.set(c,{until:Date.now()+i,result:o}),!a){const t=`${r.status} ${r.statusText||""}`.trim();Yf.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(o),o}if("text"===n){return{ok:!0,data:await r.text(),status:r.status,url:f,fromCache:!1}}const o=await r.blob(),l=o.type||r.headers.get("content-type")||"";if("dataURL"===n){return{ok:!0,data:await Wf(o),status:r.status,url:f,fromCache:!1,mime:l}}return{ok:!0,data:o,status:r.status,url:f,fromCache:!1,mime:l}}catch(o){const s=o&&"object"==typeof o&&"name"in o&&"AbortError"===o.name?String(o.message||"").includes("timeout")?"timeout":"abort":"network",l={ok:!1,data:null,status:0,url:f,fromCache:!1,reason:s};if(!/^blob:/i.test(e)&&i>0&&Vf.set(c,{until:Date.now()+i,result:l}),!a){const t=`${s}:${n}:${new URL(e,location?.href??"http://localhost/").origin}`,o="timeout"===s?`Timeout after ${r}ms. Consider increasing timeout or using a proxy for ${e}`:"abort"===s?`Request aborted while fetching ${n} ${e}`:`Network/CORS issue while fetching ${n} ${e}. A proxy may be required`;Yf.errorOnce(t,o)}return t.onError&&t.onError(l),l}finally{clearTimeout(p),Gf.delete(c)}})();return Gf.set(c,g),g}function Xf(e,t){if(!t||!e.width||!e.height)return e;const n=document.createElement("canvas");n.width=e.width,n.height=e.height;const r=n.getContext("2d");return r.fillStyle=t,r.fillRect(0,0,n.width,n.height),r.drawImage(e,0,0),n}async function Kf(e,t={}){if(/^((repeating-)?(linear|radial|conic)-gradient)\(/i.test(e)||"none"===e.trim())return e;const n=jf(e);if(!n)return e;const r=$f(n);if(zf.background.has(r)){const e=zf.background.get(r);return e?`url("${e}")`:"none"}try{const e=await _f(r,{as:"dataURL",useProxy:t.useProxy});return e.ok?(zf.background.set(r,e.data),`url("${e.data}")`):(zf.background.set(r,null),"none")}catch{return zf.background.set(r,null),"none"}}var Zf=new Set(["meta","script","noscript","title","link","template"]),ed=new Set(["meta","link","style","title","noscript","script","template","g","defs","use","marker","mask","clipPath","pattern","path","polygon","polyline","line","circle","ellipse","rect","filter","lineargradient","radialgradient","stop"]);var td=/(?:^|-)(animation|transition)(?:-|$)/i,nd=/^(--|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,rd=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"]);function od(e){const t=String(e).toLowerCase();return!!rd.has(t)||(!!nd.test(t)||!!td.test(t))}function id(e,t){if(t=String(t||"").toLowerCase(),ed.has(t))return"";const n=[],r=function(e){if(e=String(e).toLowerCase(),ed.has(e)){const t={};return zf.defaultStyle.set(e,t),t}if(zf.defaultStyle.has(e))return zf.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));const n=document.createElement(e);n.style.all="initial",t.appendChild(n);const r=getComputedStyle(n),o={};for(let e of r){if(od(e))continue;const t=r.getPropertyValue(e);o[e]=t}return t.removeChild(n),zf.defaultStyle.set(e,o),o}(t);for(let[t,o]of Object.entries(e)){if(od(t))continue;const e=r[t];o&&o!==e&&n.push(`${t}:${o}`)}return n.sort(),n.join(";")}function sd(e,t=null){if(!(e instanceof Element))return window.getComputedStyle(e,t);let n=zf.computedStyle.get(e);if(n||(n=new Map,zf.computedStyle.set(e,n)),!n.has(t)){const r=window.getComputedStyle(e,t);n.set(t,r)}return n.get(t)}function ad(e){const t={};for(let n of e)t[n]=e.getPropertyValue(n);return t}function cd(e){const t=[];let n=0,r=0;for(let o=0;o<e.length;o++){const i=e[o];"("===i&&n++,")"===i&&n--,","===i&&0===n&&(t.push(e.slice(r,o).trim()),r=o+1)}return t.push(e.slice(r).trim()),t}function ld(e,{fast:t=!1}={}){if(t)return e();"requestIdleCallback"in window?requestIdleCallback(e,{timeout:50}):setTimeout(e,1)}function ud(){const e="undefined"!=typeof navigator&&navigator.userAgent?navigator.userAgent:"",t=/^((?!chrome|android).)*safari/i.test(e),n=/AppleWebKit/i.test(e)&&/Mobile/i.test(e)&&!/Safari/i.test(e),r=/(MicroMessenger|wxwork|WeCom|WindowsWechat|MacWechat)/i.test(e);return t||n||r}var fd=new WeakMap,dd=new Map,hd=0;function pd(){hd++}var gd=!1;var md=new WeakMap;function Ad(e,t=null,n={}){const r=fd.get(e);if(r&&r.epoch===hd)return r.snapshot;const o=t||getComputedStyle(e),i=function(e,t={}){const n={},r=e.getPropertyValue("visibility");for(let t=0;t<e.length;t++){const r=e[t];let o=e.getPropertyValue(r);"background-image"!==r&&"content"!==r||!o.includes("url(")||o.includes("data:")||(o="none"),n[r]=o}if(t.embedFonts){const t=["font-feature-settings","font-variation-settings","font-kerning","font-variant","font-variant-ligatures","font-optical-sizing"];for(const r of t)if(!n[r])try{const t=e.getPropertyValue(r);t&&(n[r]=t)}catch{}}return"hidden"===r&&(n.opacity="0"),n}(o,n);return function(e,t,n){if(e instanceof HTMLElement&&e.style&&e.style.height)return;const r=t.display||"";if(r.includes("flex")||r.includes("grid"))return;if(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;const o=t.position;if("absolute"===o||"fixed"===o||"sticky"===o)return;if("none"!==t.transform)return;if(function(e){if(e.backgroundImage&&"none"!==e.backgroundImage)return!0;if(e.backgroundColor&&"rgba(0, 0, 0, 0)"!==e.backgroundColor&&"transparent"!==e.backgroundColor)return!0;if((parseFloat(e.borderTopWidth)||0)>0)return!0;if((parseFloat(e.borderBottomWidth)||0)>0)return!0;if((parseFloat(e.paddingTop)||0)>0)return!0;if((parseFloat(e.paddingBottom)||0)>0)return!0;const t=e.overflowBlock||e.overflowY||"visible";return"visible"!==t}(t))return;if(function(e){const t=e.parentElement;if(!t)return!1;const n=getComputedStyle(t).display||"";return n.includes("flex")||n.includes("grid")}(e))return;if(!function(e,t){if(e.textContent&&/\S/.test(e.textContent))return!0;const n=e.firstElementChild,r=e.lastElementChild;if(n&&"BR"===n.tagName||r&&"BR"===r.tagName)return!0;const o=e.scrollHeight;if(0===o)return!1;const i=parseFloat(t.paddingTop)||0,s=parseFloat(t.paddingBottom)||0;return o>i+s}(e,t))return;delete n.height,delete n["block-size"]}(e,o,i),fd.set(e,{epoch:hd,snapshot:i}),i}async function yd(e,t,n,r){if("STYLE"===e.tagName)return;const o=function(e,t){return e&&e.session&&e.persist?e:e&&(e.styleMap||e.styleCache||e.nodeMap)?{session:e,persist:{snapshotKeyCache:dd,defaultStyle:zf.defaultStyle,baseStyle:zf.baseStyle,image:zf.image,resource:zf.resource,background:zf.background,font:zf.font},options:t||{}}:{session:zf.session,persist:{snapshotKeyCache:dd,defaultStyle:zf.defaultStyle,baseStyle:zf.baseStyle,image:zf.image,resource:zf.resource,background:zf.background,font:zf.font},options:e||t||{}}}(n,r),i=o.options&&o.options.cache||"auto";if("disabled"!==i&&function(e=document.documentElement){if(!gd){gd=!0;try{new MutationObserver(()=>pd()).observe(e,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{new MutationObserver(()=>pd()).observe(document.head,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{const e=document.fonts;e&&(e.addEventListener?.("loadingdone",pd),e.ready?.then(()=>pd()).catch(()=>{}))}catch{}}}(document.documentElement),"disabled"!==i||o.session.__bumpedForDisabled||(pd(),dd.clear(),o.session.__bumpedForDisabled=!0),ed.has(e.tagName?.toLowerCase())){const n=e.getAttribute?.("style");n&&t.setAttribute("style",n)}const{session:s,persist:a}=o;s.styleCache.has(e)||s.styleCache.set(e,getComputedStyle(e));const c=Ad(e,s.styleCache.get(e),o.options),l=function(e){let t=md.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(";"),md.set(e,t),t)}(c);let u=a.snapshotKeyCache.get(l);if(!u){u=id(c,e.tagName?.toLowerCase()||"div"),a.snapshotKeyCache.set(l,u)}s.styleMap.set(t,u)}function vd(e,t,n){return Promise.all(e.map(e=>new Promise(r=>{!function o(){ld(n=>{!n||"function"!=typeof n.timeRemaining||n.timeRemaining()>0?t(e,r):o()},{fast:n})}()})))}function bd(e,t){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,n,r,o)=>{const i=function(e,t,n=!0){return e.split(",").map(e=>e.trim()).filter(Boolean).map(e=>{if(e.startsWith(":where("))return e;if(e.startsWith("@"))return e;const r=n?(o=(o=e).trim())?/:not\(\s*\[data-sd-slotted\]\s*\)\s*$/.test(o)?o:`${o}:not([data-sd-slotted])`:o:e;var o;return`:where(${t} ${r})`}).join(", ")}(o,t,!0);return`${n}${r}${i}{`}):""}function Id(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""}async function wd(e,t,n){const r=await async function(e,t=3){const n=()=>{try{return e.contentDocument||e.contentWindow?.document||null}catch{return null}};let r=n(),o=0;for(;o<t&&(!r||!r.body&&!r.documentElement);)await new Promise(e=>setTimeout(e,0)),r=n(),o++;return r&&(r.body||r.documentElement)?r:null}(e,3);if(!r)throw new Error("iframe document not accessible/ready");const{contentWidth:o,contentHeight:i,rect:s}=function(e){const t=e.getBoundingClientRect();let n=0,r=0,o=0,i=0;try{const t=getComputedStyle(e);n=parseFloat(t.borderLeftWidth)||0,r=parseFloat(t.borderRightWidth)||0,o=parseFloat(t.borderTopWidth)||0,i=parseFloat(t.borderBottomWidth)||0}catch{}return{contentWidth:Math.max(0,Math.round(t.width-(n+r))),contentHeight:Math.max(0,Math.round(t.height-(o+i))),rect:t}}(e),a=n?.snap;if(!a||"function"!=typeof a.toPng)throw new Error("snapdom.toPng not available in iframe or window");const c={...n,scale:1},l=function(e,t,n){const r=e.createElement("style");return r.setAttribute("data-sd-iframe-pin",""),r.textContent=`html, body {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;}`,(e.head||e.documentElement).appendChild(r),()=>{try{r.remove()}catch{}}}(r,o,i);let u;try{u=await a.toPng(r.documentElement,c)}finally{l()}u.style.display="block",u.style.width=`${o}px`,u.style.height=`${i}px`;const f=document.createElement("div");return t.nodeMap.set(f,e),yd(e,f,t,n),f.style.overflow="hidden",f.style.display="block",f.style.width||(f.style.width=`${Math.round(s.width)}px`),f.style.height||(f.style.height=`${Math.round(s.height)}px`),f.appendChild(u),f}async function xd(e,t,n){if(!e)throw new Error("Invalid node");const r=new Set;let o,i=null,s=null;if(e.nodeType===Node.ELEMENT_NODE){const t=(e.localName||e.tagName||"").toLowerCase();if("snapdom-sandbox"===e.id||e.hasAttribute("data-snapdom-sandbox"))return null;if(Zf.has(t))return null}if(e.nodeType===Node.TEXT_NODE)return e.cloneNode(!0);if(e.nodeType!==Node.ELEMENT_NODE)return e.cloneNode(!0);if("exclude"===e.getAttribute("data-capture")){if("hide"===n.excludeMode){const t=document.createElement("div"),n=e.getBoundingClientRect();return t.style.cssText=`display:inline-block;width:${n.width}px;height:${n.height}px;visibility:hidden;`,t}if("remove"===n.excludeMode)return null}if(n.exclude&&Array.isArray(n.exclude))for(const t of n.exclude)try{if(e.matches?.(t)){if("hide"===n.excludeMode){const t=document.createElement("div"),n=e.getBoundingClientRect();return t.style.cssText=`display:inline-block;width:${n.width}px;height:${n.height}px;visibility:hidden;`,t}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){const t=document.createElement("div"),n=e.getBoundingClientRect();return t.style.cssText=`display:inline-block;width:${n.width}px;height:${n.height}px;visibility:hidden;`,t}if("remove"===n.filterMode)return null}}catch(e){console.warn("Error in filter function:",e)}if("IFRAME"===e.tagName){let r=!1;try{r=!(!e.contentDocument&&!e.contentWindow?.document)}catch{r=!1}if(r)try{return await wd(e,t,n)}catch(e){console.warn("[SnapDOM] iframe rasterization failed, fallback:",e)}if(n.placeholders){const r=document.createElement("div");return r.style.cssText=`width:${e.offsetWidth}px;height:${e.offsetHeight}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;`,yd(e,r,t,n),r}{const r=e.getBoundingClientRect(),o=document.createElement("div");return o.style.cssText=`display:inline-block;width:${r.width}px;height:${r.height}px;visibility:hidden;`,yd(e,o,t,n),o}}if("placeholder"===e.getAttribute("data-capture")){const r=e.cloneNode(!1);t.nodeMap.set(r,e),yd(e,r,t,n);const o=document.createElement("div");return o.textContent=e.getAttribute("data-placeholder-text")||"",o.style.cssText="color:#666;font-size:12px;text-align:center;line-height:1.4;padding:0.5em;box-sizing:border-box;",r.appendChild(o),r}if("CANVAS"===e.tagName){const r=e.toDataURL(),o=document.createElement("img");return o.src=r,o.width=e.width,o.height=e.height,t.nodeMap.set(o,e),yd(e,o,t,n),o}try{if(o=e.cloneNode(!1),function(e,t){if(!(e instanceof Element&&t instanceof Element))return;const n=e.getAttribute?.("style");let r,o=!(!n||!n.includes("var("));if(!o&&e.attributes?.length){const t=e.attributes;for(let e=0;e<t.length;e++){const n=t[e];if(n&&"string"==typeof n.value&&n.value.includes("var(")){o=!0;break}}}if(!o)return;try{r=getComputedStyle(e)}catch{return}const i=e.style;if(i&&i.length)for(let e=0;e<i.length;e++){const n=i[e],o=i.getPropertyValue(n);if(!o||!o.includes("var("))continue;const s=r.getPropertyValue(n);if(s)try{t.style.setProperty(n,s.trim(),i.getPropertyPriority(n))}catch{}}if(e.attributes?.length){const n=e.attributes;for(let e=0;e<n.length;e++){const o=n[e];if(!o||"string"!=typeof o.value||!o.value.includes("var("))continue;const i=o.name;let s="";try{s=r.getPropertyValue(i)}catch{}if(s)try{t.style.setProperty(i,s.trim())}catch{}}}}(e,o),t.nodeMap.set(o,e),"IMG"===e.tagName){!function(e,t){try{const n=e.currentSrc||e.src||"";if(!n)return;t.setAttribute("src",n),t.removeAttribute("srcset"),t.removeAttribute("sizes"),t.loading="eager",t.decoding="sync"}catch{}}(e,o);try{const t=e.getBoundingClientRect();let n=Math.round(t.width||0),r=Math.round(t.height||0);if(!n||!r){const t=window.getComputedStyle(e),o=parseFloat(t.width)||0,i=parseFloat(t.height)||0,s=parseInt(e.getAttribute("width")||"",10)||0,a=parseInt(e.getAttribute("height")||"",10)||0,c=e.width||e.naturalWidth||0,l=e.height||e.naturalHeight||0;n=Math.round(n||o||s||c||0),r=Math.round(r||i||a||l||0)}n&&(o.dataset.snapdomWidth=String(n)),r&&(o.dataset.snapdomHeight=String(r))}catch{}}}catch(t){throw console.error("[Snapdom] Failed to clone node:",e,t),t}if(e instanceof HTMLTextAreaElement){const t=e.getBoundingClientRect();o.style.width=`${t.width}px`,o.style.height=`${t.height}px`}if(e instanceof HTMLInputElement&&(o.value=e.value,o.setAttribute("value",e.value),void 0!==e.checked&&(o.checked=e.checked,e.checked&&o.setAttribute("checked",""),e.indeterminate&&(o.indeterminate=e.indeterminate))),e instanceof HTMLSelectElement&&(i=e.value),e instanceof HTMLTextAreaElement&&(s=e.value),yd(e,o,t,n),e.shadowRoot){let i=function(e,r){if(e.nodeType===Node.ELEMENT_NODE&&"STYLE"===e.tagName)return r(null);xd(e,t,n).then(e=>{r(e||null)}).catch(()=>{r(null)})};try{const t=e.shadowRoot.querySelectorAll("slot");for(const e of t){let t=[];try{t=e.assignedNodes?.({flatten:!0})||e.assignedNodes?.()||[]}catch{t=e.assignedNodes?.()||[]}for(const e of t)r.add(e)}}catch{}const s=function(e){return e.shadowScopeSeq=(e.shadowScopeSeq||0)+1,`s${e.shadowScopeSeq}`}(t),a=`[data-sd="${s}"]`;try{o.setAttribute("data-sd",s)}catch{}const c=function(e){let t="";try{e.querySelectorAll("style").forEach(e=>{t+=(e.textContent||"")+"\n"});const n=e.adoptedStyleSheets||[];for(const e of n)try{if(e&&e.cssRules)for(const n of e.cssRules)t+=n.cssText+"\n"}catch{}}catch{}return t}(e.shadowRoot),l=bd(c,a),u=function(e,t,n){const r=[];for(const n of t){const t=Id(e,n);t&&r.push(`${n}: ${t};`)}return r.length?`${n}{${r.join("")}}\n`:""}(e,function(e){const t=new Set;if(!e)return t;const n=/var\(\s*(--[A-Za-z0-9_-]+)\b/g;let r;for(;r=n.exec(e);)t.add(r[1]);return t}(c),a);!function(e,t,n){if(!t)return;const r=document.createElement("style");r.setAttribute("data-sd",n),r.textContent=t,e.insertBefore(r,e.firstChild||null)}(o,u+l,s);const f=document.createDocumentFragment(),d=await vd(Array.from(e.shadowRoot.childNodes),i,n.fast);f.append(...d.filter(e=>!!e)),o.appendChild(f)}if("SLOT"===e.tagName){let r=function(e,r){xd(e,t,n).then(e=>{e&&function(e){e&&(e.nodeType===Node.ELEMENT_NODE&&e.setAttribute("data-sd-slotted",""),e.querySelectorAll&&e.querySelectorAll("*").forEach(e=>e.setAttribute("data-sd-slotted","")))}(e),r(e||null)}).catch(()=>{r(null)})};const o=e.assignedNodes?.({flatten:!0})||[],i=o.length>0?o:Array.from(e.childNodes),s=document.createDocumentFragment(),a=await vd(Array.from(i),r,n.fast);return s.append(...a.filter(e=>!!e)),s}const a=await vd(Array.from(e.childNodes),function(e,o){if(r.has(e))return o(null);xd(e,t,n).then(e=>{o(e||null)}).catch(()=>{o(null)})},n.fast);if(o.append(...a.filter(e=>!!e)),null!==i&&o instanceof HTMLSelectElement){o.value=i;for(const e of o.options)e.value===i?e.setAttribute("selected",""):e.removeAttribute("selected")}return null!==s&&o instanceof HTMLTextAreaElement&&(o.textContent=s),o}var Cd=[/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],Bd=[];function Ed(e){const t="string"==typeof e?e:"",n=[...Cd,...Bd];for(const 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))}async function Fd(e,t,n,r=32,o="#000"){t=t.replace(/^['"]+|['"]+$/g,"");const i=window.devicePixelRatio||1;try{await document.fonts.ready}catch{}const s=document.createElement("span");s.textContent=e,s.style.position="absolute",s.style.visibility="hidden",s.style.fontFamily=`"${t}"`,s.style.fontWeight=n||"normal",s.style.fontSize=`${r}px`,s.style.lineHeight="1",s.style.whiteSpace="nowrap",s.style.padding="0",s.style.margin="0",document.body.appendChild(s);const a=s.getBoundingClientRect(),c=Math.ceil(a.width),l=Math.ceil(a.height);document.body.removeChild(s);const u=document.createElement("canvas");u.width=Math.max(1,c*i),u.height=Math.max(1,l*i);const f=u.getContext("2d");return f.scale(i,i),f.font=n?`${n} ${r}px "${t}"`:`${r}px "${t}"`,f.textAlign="left",f.textBaseline="top",f.fillStyle=o,f.fillText(e,0,0),{dataUrl:u.toDataURL(),width:c,height:l}}var kd=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","emoji","math","fangsong","ui-serif","ui-sans-serif","ui-monospace","ui-rounded"]);function Sd(e){if(!e)return"";for(let t of e.split(",")){let e=t.trim().replace(/^['"]+|['"]+$/g,"");if(e&&!kd.has(e.toLowerCase()))return e}return""}function Dd(e){const t=String(e??"400").trim().toLowerCase();if("normal"===t)return 400;if("bold"===t)return 700;const n=parseInt(t,10);return Number.isFinite(n)?Math.min(900,Math.max(100,n)):400}function Nd(e){const t=String(e??"normal").trim().toLowerCase();return t.startsWith("italic")?"italic":t.startsWith("oblique")?"oblique":"normal"}function Qd(e,t){if(!e)return!1;try{const n=new URL(e,location.href);if(n.origin===location.origin)return!0;const r=n.host.toLowerCase();if(["fonts.googleapis.com","fonts.gstatic.com","use.typekit.net","p.typekit.net","kit.fontawesome.com","use.fontawesome.com"].some(e=>r.endsWith(e)))return!0;const o=(n.pathname+n.search).toLowerCase();if(/\bfont(s)?\b/.test(o)||/\.woff2?(\b|$)/.test(o))return!0;for(const e of t){const t=e.toLowerCase().replace(/\s+/g,"+"),n=e.toLowerCase().replace(/\s+/g,"-");if(o.includes(t)||o.includes(n))return!0}return!1}catch{return!1}}function Md(e,t){return e?e.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/g,(e,n,r)=>{const o=(r||"").trim();if(!o||/^data:|^blob:|^https?:|^file:|^about:/i.test(o))return e;let i=o;try{i=new URL(o,t||location.href).href}catch{}return`url("${i}")`}):e}var Td=/@import\s+(?:url\(\s*(['"]?)([^)"']+)\1\s*\)|(['"])([^"']+)\3)([^;]*);/g;async function Ld(e,t,n){if(!e)return e;const r=new Set;function o(e,t){try{return new URL(e,t||location.href).href}catch{return e}}let i=Md(e,t||location.href);return i=await async function e(t,i,s=0){if(s>4)return console.warn(`[snapDOM] @import depth exceeded (4) at ${i}`),t;let a,c="",l=0;for(;a=Td.exec(t);){c+=t.slice(l,a.index),l=Td.lastIndex;const u=o((a[2]||a[4]||"").trim(),i);if(r.has(u)){console.warn(`[snapDOM] Skipping circular @import: ${u}`);continue}r.add(u);let f="";try{const e=await _f(u,{as:"text",useProxy:n,silent:!0});e.ok&&"string"==typeof e.data&&(f=e.data)}catch{}f?(f=Md(f,u),f=await e(f,u,s+1),c+=`\n/* inlined: ${u} */\n${f}\n`):c+=a[0]}return c+=t.slice(l),c}(i,t||location.href,0),i}var Ud=/url\((["']?)([^"')]+)\1\)/g,Rd=/@font-face[^{}]*\{[^}]*\}/g;function Hd(e){if(!e)return[];const t=[],n=e.split(",").map(e=>e.trim()).filter(Boolean);for(const e of n){const n=e.match(/^U\+([0-9A-Fa-f?]+)(?:-([0-9A-Fa-f?]+))?$/);if(!n)continue;const r=n[1],o=n[2],i=e=>{if(!e.includes("?"))return parseInt(e,16);return[parseInt(e.replace(/\?/g,"0"),16),parseInt(e.replace(/\?/g,"F"),16)]};if(o){const e=i(r),n=i(o),s=Array.isArray(e)?e[0]:e,a=Array.isArray(n)?n[1]:n;t.push([Math.min(s,a),Math.max(s,a)])}else{const e=i(r);Array.isArray(e)?t.push([e[0],e[1]]):t.push([e,e])}}return t}function qd(e,t){if(!t.length)return!0;if(!e||0===e.size)return!0;for(const n of e)for(const[e,r]of t)if(n>=e&&n<=r)return!0;return!1}function Od(e,t){const n=[];if(!e)return n;for(const r of e.matchAll(Ud)){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 Pd(e,t,n=""){let r=e;for(const o of e.matchAll(Ud)){const e=jf(o[0]);if(!e)continue;let i=e;if(!i.startsWith("http")&&!i.startsWith("data:"))try{i=new URL(i,t||location.href).href}catch{}if(!Ed(i))if(zf.resource?.has(i))zf.font?.add(i),r=r.replace(o[0],`url(${zf.resource.get(i)})`);else if(!zf.font?.has(i))try{const e=await _f(i,{as:"dataURL",useProxy:n,silent:!0});if(e.ok&&"string"==typeof e.data){const t=e.data;zf.resource?.set(i,t),zf.font?.add(i),r=r.replace(o[0],`url(${t})`)}}catch{console.warn("[snapDOM] Failed to fetch font resource:",i)}}return r}function zd(e={}){const 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,o)=>{if(t.size&&t.has(e.family.toLowerCase()))return!0;if(n.size)for(const t of e.srcUrls)try{if(n.has(new URL(t).host.toLowerCase()))return!0}catch{}if(r.size){const e=function(e){if(!e.length)return null;const 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),o=t(880,1023),i=t(1024,1279);return t(7840,7929)||t(258,259)||t(416,417)||t(431,432)?"vietnamese":i?"cyrillic":o?"greek":r?"latin-ext":n?"latin":null}(o);if(e&&r.has(e))return!0}return!1}}async function jd(e,t,n,r){let o;try{o=e.cssRules||[]}catch{return}const i=(e,t)=>{try{return new URL(e,t||location.href).href}catch{return e}};for(const e of o){if(e.type===CSSRule.IMPORT_RULE&&e.styleSheet){const o=e.href?i(e.href,t):t;if(r.depth>=4){console.warn(`[snapDOM] CSSOM import depth exceeded (4) at ${o}`);continue}if(o&&r.visitedSheets.has(o)){console.warn(`[snapDOM] Skipping circular CSSOM import: ${o}`);continue}o&&r.visitedSheets.add(o);const s={...r,depth:(r.depth||0)+1};await jd(e.styleSheet,o,n,s);continue}if(e.type===CSSRule.FONT_FACE_RULE){const o=Sd((e.style.getPropertyValue("font-family")||"").trim());if(!o||Ed(o))continue;const i=(e.style.getPropertyValue("font-weight")||"400").trim(),s=(e.style.getPropertyValue("font-style")||"normal").trim(),a=(e.style.getPropertyValue("font-stretch")||"100%").trim(),c=(e.style.getPropertyValue("src")||"").trim(),l=(e.style.getPropertyValue("unicode-range")||"").trim();if(!r.faceMatchesRequired(o,s,i,a))continue;const u=Hd(l);if(!qd(r.usedCodepoints,u))continue;const f={family:o,weightSpec:i,styleSpec:s,stretchSpec:a,unicodeRange:l,srcRaw:c,srcUrls:Od(c,t||location.href),href:t||location.href};if(r.simpleExcluder&&r.simpleExcluder(f,u))continue;if(/url\(/i.test(c)){const e=await Pd(c,t||location.href,r.useProxy);await n(`@font-face{font-family:${o};src:${e};font-style:${s};font-weight:${i};font-stretch:${a};${l?`unicode-range:${l};`:""}}`)}else await n(`@font-face{font-family:${o};src:${c};font-style:${s};font-weight:${i};font-stretch:${a};${l?`unicode-range:${l};`:""}}`)}}}async function $d({required:e,usedCodepoints:t,exclude:n,localFonts:r=[],useProxy:o=""}={}){e instanceof Set||(e=new Set),t instanceof Set||(t=new Set);const i=new Map;for(const t of e){const[e,n,r,o]=String(t).split("__");if(!e)continue;const s=i.get(e)||[];s.push({w:parseInt(n,10),s:r,st:parseInt(o,10)}),i.set(e,s)}function s(e,t,n,r){if(!i.has(e))return!1;const o=i.get(e),s=function(e){const t=String(e||"400").trim(),n=t.match(/^(\d{2,3})\s+(\d{2,3})$/);if(n){const e=Dd(n[1]),t=Dd(n[2]);return{min:Math.min(e,t),max:Math.max(e,t)}}const r=Dd(t);return{min:r,max:r}}(n),a=function(e){const t=String(e||"normal").trim().toLowerCase();return"italic"===t?{kind:"italic"}:t.startsWith("oblique")?{kind:"oblique"}:{kind:"normal"}}(t),c=function(e){const t=String(e||"100%").trim(),n=t.match(/(\d+(?:\.\d+)?)\s*%\s+(\d+(?:\.\d+)?)\s*%/);if(n){const e=parseFloat(n[1]),t=parseFloat(n[2]);return{min:Math.min(e,t),max:Math.max(e,t)}}const r=t.match(/(\d+(?:\.\d+)?)\s*%/),o=r?parseFloat(r[1]):100;return{min:o,max:o}}(r),l=s.min!==s.max,u=s.min,f=e=>"normal"===a.kind&&"normal"===e||"normal"!==a.kind&&("italic"===e||"oblique"===e);let d=!1;for(const e of o){const t=l?e.w>=s.min&&e.w<=s.max:e.w===u,n=f(Nd(e.s)),r=e.st>=c.min&&e.st<=c.max;if(t&&n&&r){d=!0;break}}if(d)return!0;if(!l)for(const e of o){const t=f(Nd(e.s)),n=e.st>=c.min&&e.st<=c.max;if(Math.abs(u-e.w)<=300&&t&&n)return!0}return!1}const a=zd(n),c=function(e,t,n,r){return`fonts-embed-css::req=${Array.from(e||[]).sort().join("|")}::ex=${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()}):""}::lf=${(n||[]).map(e=>`${(e.family||"").toLowerCase()}::${e.weight||"normal"}::${e.style||"normal"}::${e.src||""}`).sort().join("|")}::px=${r||""}`}(e,n,r,o);if(zf.resource?.has(c))return zf.resource.get(c);const l=function(e){const t=new Set;for(const n of e||[]){const e=String(n).split("__")[0]?.trim();e&&t.add(e)}return t}(e),u=[],f=Td;for(const e of document.querySelectorAll("style")){const t=e.textContent||"";for(const e of t.matchAll(f)){const t=(e[2]||e[4]||"").trim();if(!t||Ed(t))continue;!!document.querySelector(`link[rel="stylesheet"][href="${t}"]`)||u.push(t)}}u.length&&await Promise.all(u.map(e=>new Promise(t=>{if(document.querySelector(`link[rel="stylesheet"][href="${e}"]`))return t(null);const n=document.createElement("link");n.rel="stylesheet",n.href=e,n.setAttribute("data-snapdom","injected-import"),n.onload=()=>t(n),n.onerror=()=>t(null),document.head.appendChild(n)})));let d="";const h=Array.from(document.querySelectorAll('link[rel="stylesheet"]')).filter(e=>!!e.href);for(const e of h)try{if(Ed(e.href))continue;let r="",i=!1;try{i=new URL(e.href,location.href).origin===location.origin}catch{}if(!i&&!Qd(e.href,l))continue;if(i){const t=Array.from(document.styleSheets).find(t=>t.href===e.href);if(t)try{const e=t.cssRules||[];r=Array.from(e).map(e=>e.cssText).join("")}catch{}}if(!r){if(r=(await _f(e.href,{as:"text",useProxy:o})).data,Ed(e.href))continue}r=await Ld(r,e.href,o);let c="";for(const i of r.match(Rd)||[]){const r=Sd((i.match(/font-family:\s*([^;]+);/i)?.[1]||"").trim());if(!r||Ed(r))continue;const l=(i.match(/font-weight:\s*([^;]+);/i)?.[1]||"400").trim(),u=(i.match(/font-style:\s*([^;]+);/i)?.[1]||"normal").trim(),f=(i.match(/font-stretch:\s*([^;]+);/i)?.[1]||"100%").trim(),d=(i.match(/unicode-range:\s*([^;]+);/i)?.[1]||"").trim(),h=(i.match(/src\s*:\s*([^;]+);/i)?.[1]||"").trim(),p=Od(h,e.href);if(!s(r,u,l,f))continue;const g=Hd(d);if(!qd(t,g))continue;const m={family:r,weightSpec:l,styleSpec:u,stretchSpec:f,unicodeRange:d,srcRaw:h,srcUrls:p,href:e.href};if(n&&a(m,g))continue;c+=/url\(/i.test(h)?await Pd(i,e.href,o):i}c.trim()&&(d+=c)}catch{console.warn("[snapDOM] Failed to process stylesheet:",e.href)}const p={requiredIndex:i,usedCodepoints:t,faceMatchesRequired:s,simpleExcluder:n?zd(n):null,useProxy:o,visitedSheets:new Set,depth:0};for(const e of document.styleSheets)if(!e.href||!h.some(t=>t.href===e.href))try{const t=e.href||location.href;t&&p.visitedSheets.add(t),await jd(e,t,async e=>{d+=e},p)}catch{}try{for(const e of document.fonts||[]){if(!e||!e.family||"loaded"!==e.status||!e._snapdomSrc)continue;const t=String(e.family).replace(/^['"]+|['"]+$/g,"");if(Ed(t))continue;if(!i.has(t))continue;if(n?.families&&n.families.some(e=>String(e).toLowerCase()===t.toLowerCase()))continue;let r=e._snapdomSrc;if(!String(r).startsWith("data:"))if(zf.resource?.has(e._snapdomSrc))r=zf.resource.get(e._snapdomSrc),zf.font?.add(e._snapdomSrc);else if(!zf.font?.has(e._snapdomSrc))try{const t=await _f(e._snapdomSrc,{as:"dataURL",useProxy:o,silent:!0});if(!t.ok||"string"!=typeof t.data)continue;r=t.data,zf.resource?.set(e._snapdomSrc,r),zf.font?.add(e._snapdomSrc)}catch{console.warn("[snapDOM] Failed to fetch dynamic font src:",e._snapdomSrc);continue}d+=`@font-face{font-family:'${t}';src:url(${r});font-style:${e.style||"normal"};font-weight:${e.weight||"normal"};}`}}catch{}for(const e of r){if(!e||"object"!=typeof e)continue;const t=String(e.family||"").replace(/^['"]+|['"]+$/g,"");if(!t||Ed(t))continue;if(!i.has(t))continue;if(n?.families&&n.families.some(e=>String(e).toLowerCase()===t.toLowerCase()))continue;const r=null!=e.weight?String(e.weight):"normal",s=null!=e.style?String(e.style):"normal",a=null!=e.stretchPct?`${e.stretchPct}%`:"100%",c=String(e.src||"");let l=c;if(!l.startsWith("data:"))if(zf.resource?.has(c))l=zf.resource.get(c),zf.font?.add(c);else if(!zf.font?.has(c))try{const e=await _f(c,{as:"dataURL",useProxy:o,silent:!0});if(!e.ok||"string"!=typeof e.data)continue;l=e.data,zf.resource?.set(c,l),zf.font?.add(c)}catch{console.warn("[snapDOM] Failed to fetch localFonts src:",c);continue}d+=`@font-face{font-family:'${t}';src:url(${l});font-style:${s};font-weight:${r};font-stretch:${a};}`}return d&&(d=function(e){if(!e)return e;const t=/@font-face[^{}]*\{[^}]*\}/gi,n=new Set,r=[];for(const o of e.match(t)||[]){const e=Sd(o.match(/font-family:\s*([^;]+);/i)?.[1]||""),t=(o.match(/font-weight:\s*([^;]+);/i)?.[1]||"400").trim(),i=(o.match(/font-style:\s*([^;]+);/i)?.[1]||"normal").trim(),s=(o.match(/font-stretch:\s*([^;]+);/i)?.[1]||"100%").trim(),a=(o.match(/unicode-range:\s*([^;]+);/i)?.[1]||"").trim(),c=(o.match(/src\s*:\s*([^;]+);/i)?.[1]||"").trim(),l=Od(c,location.href),u=l.length?l.map(e=>String(e).toLowerCase()).sort().join("|"):c.toLowerCase(),f=[String(e||"").toLowerCase(),t,i,s,a.toLowerCase(),u].join("|");n.has(f)||(n.add(f),r.push(o))}if(0===r.length)return e;let o=0;return e.replace(t,()=>r[o++]||"")}(d),zf.resource?.set(c,d)),d}function Yd(e){const t=new Set;if(!e)return t;const n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null),r=e=>{const n=Sd(e.fontFamily);if(!n)return;var r,o,i;t.add((r=e.fontWeight,o=e.fontStyle,i=e.fontStretch,`${n}__${Dd(r)}__${Nd(o)}__${function(e){const t=String(e??"100%").match(/(\d+(?:\.\d+)?)\s*%/);return t?Math.max(50,Math.min(200,parseFloat(t[1]))):100}(i)}`))};r(getComputedStyle(e));const o=getComputedStyle(e,"::before");o&&o.content&&"none"!==o.content&&r(o);const i=getComputedStyle(e,"::after");for(i&&i.content&&"none"!==i.content&&r(i);n.nextNode();){const e=n.currentNode;r(getComputedStyle(e));const t=getComputedStyle(e,"::before");t&&t.content&&"none"!==t.content&&r(t);const o=getComputedStyle(e,"::after");o&&o.content&&"none"!==o.content&&r(o)}return t}function Gd(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 Vd(e,t=!0){const 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"]];let r=Math.max(1,Math.min(3999,e)),o="";for(const[e,t]of n)for(;r>=e;)o+=t,r-=e;return t?o:o.toLowerCase()}function Jd(e,t){switch((t||"decimal").toLowerCase()){case"decimal":default:return String(Math.max(0,e));case"decimal-leading-zero":return(e<10?"0":"")+String(Math.max(0,e));case"lower-alpha":return Gd(e,!1);case"upper-alpha":return Gd(e,!0);case"lower-roman":return Vd(e,!1);case"upper-roman":return Vd(e,!0)}}function Wd(e){const t=new WeakMap,n=e instanceof Document?e.documentElement:e,r=e=>{let t=0,n=e?.parentElement;if(!n)return 0;for(const r of n.children){if(r===e)break;"LI"===r.tagName&&t++}return t},o=(e,t,n)=>{const o=(e=>{const t=new Map;for(const[n,r]of e)t.set(n,r.slice());return t})(e);let i,s;try{i=n.style?.counterReset||getComputedStyle(n).counterReset}catch{}if(i&&"none"!==i)for(const e of i.split(",")){const n=e.trim().split(/\s+/),r=n[0],i=Number.isFinite(Number(n[1]))?Number(n[1]):0;if(!r)continue;const s=t.get(r);if(s&&s.length){const e=s.slice();e.push(i),o.set(r,e)}else o.set(r,[i])}try{s=n.style?.counterIncrement||getComputedStyle(n).counterIncrement}catch{}if(s&&"none"!==s)for(const e of s.split(",")){const t=e.trim().split(/\s+/),n=t[0],r=Number.isFinite(Number(t[1]))?Number(t[1]):1;if(!n)continue;const i=o.get(n)||[];0===i.length&&i.push(0),i[i.length-1]+=r,o.set(n,i)}try{if("list-item"===getComputedStyle(n).display&&(e=>e&&"LI"===e.tagName)(n)){const e=n.parentElement;let t=1;if(e&&"OL"===e.tagName){const o=e.getAttribute("start"),i=Number.isFinite(Number(o))?Number(o):1,s=r(n),a=n.getAttribute("value");t=Number.isFinite(Number(a))?Number(a):i+s}else t=1+r(n);const i=o.get("list-item")||[];0===i.length&&i.push(0),i[i.length-1]=t,o.set("list-item",i)}}catch{}return o},i=(e,n,r)=>{const s=o(r,n,e);t.set(e,s);let a=s;for(const t of e.children){a=i(t,s,a)}return s},s=new Map;return i(n,s,s),{get(e,n){const r=t.get(e)?.get(n);return r&&r.length?r[r.length-1]:0},getStack(e,n){const r=t.get(e)?.get(n);return r?r.slice():[]}}}var _d=null,Xd=new WeakMap;function Kd(e,t){const n=e.parentElement,r=n?Xd.get(n):null;return r?{get(e,n){const o=t.get(e,n),i=r.get(n);return"number"==typeof i?Math.max(o,i):o},getStack(e,n){const o=t.getStack(e,n);if(!o.length)return o;const i=r.get(n);if("number"==typeof i){const e=o.slice();return e[e.length-1]=Math.max(e[e.length-1],i),e}return o}}:t}function Zd(e,t,n){const r=new Map;function o(e){const t=[];if(!e||"none"===e)return t;for(const n of String(e).split(",")){const e=n.trim().split(/\s+/),r=e[0],o=Number.isFinite(Number(e[1]))?Number(e[1]):void 0;r&&t.push({name:r,num:o})}return t}const i=o(t?.counterReset),s=o(t?.counterIncrement);function a(t){if(r.has(t))return r.get(t).slice();let o=n.getStack(e,t);o=o.length?o.slice():[];const a=i.find(e=>e.name===t);if(a){const e=Number.isFinite(a.num)?a.num:0;o=o.length?[...o,e]:[e]}const c=s.find(e=>e.name===t);if(c){const e=Number.isFinite(c.num)?c.num:1;0===o.length&&(o=[0]),o[o.length-1]+=e}return r.set(t,o.slice()),o}return{get(e,t){const n=a(t);return n.length?n[n.length-1]:0},getStack:(e,t)=>a(t),__incs:s}}function eh(e,t,n){let r;try{r=getComputedStyle(e,t)}catch{}const o=r?.content;if(!o||"none"===o||"normal"===o)return{text:"",incs:[]};const i=Zd(e,r,Kd(e,n));let s=/\bcounter\s*\(|\bcounters\s*\(/.test(o||"")?function(e,t,n){if(!e||"none"===e)return e;try{const r=/\b(counter|counters)\s*\(([^)]+)\)/g;let o=e.replace(r,(e,r,o)=>{const i=String(o).split(",").map(e=>e.trim());if("counter"===r){const e=i[0]?.replace(/^["']|["']$/g,""),r=(i[1]||"decimal").toLowerCase();return Jd(n.get(t,e),r)}{const e=i[0]?.replace(/^["']|["']$/g,""),r=i[1]?.replace(/^["']|["']$/g,"")??"",o=(i[2]||"decimal").toLowerCase(),s=n.getStack(t,e);return s.length?s.map(e=>Jd(e,o)).join(r):""}});return(o||"").replace(/"([^"]*)"/g,"$1")}catch{return"- "}}(o,e,i):o;const a=function(e){if(!e)return"";const t=[],n=/"([^"]*)"/g;let r;for(;r=n.exec(e);)t.push(r[1]);return t.length?t.join(""):(e||"").replace(/"([^"]*)"/g,"$1")}(s);return{text:a,incs:i.__incs||[]}}async function th(e,t,n,r){if(!(e instanceof Element&&t instanceof Element))return;if(!_d)try{_d=Wd(e.ownerDocument||document)}catch{}for(const o of["::before","::after","::first-letter"])try{const i=sd(e,o);if(!i||"function"!=typeof i[Symbol.iterator])continue;if(!("none"!==i.content||"none"!==i.backgroundImage||"transparent"!==i.backgroundColor||"none"!==i.borderStyle&&0!==parseFloat(i.borderWidth)||i.transform&&"none"!==i.transform||"inline"!==i.display))continue;if("::first-letter"===o){const r=getComputedStyle(e);if(!(i.color!==r.color||i.fontSize!==r.fontSize||i.fontWeight!==r.fontWeight))continue;const o=Array.from(t.childNodes).find(e=>e.nodeType===Node.TEXT_NODE&&e.textContent?.trim().length>0);if(!o)continue;const s=o.textContent,a=s.match(/^([^\p{L}\p{N}\s]*[\p{L}\p{N}](?:['’])?)/u),c=a?.[0],l=s.slice(c?.length||0);if(!c||/[\uD800-\uDFFF]/.test(c))continue;const u=document.createElement("span");u.textContent=c,u.dataset.snapdomPseudo="::first-letter";const f=id(ad(i),"span");n.styleMap.set(u,f);const d=document.createTextNode(l);t.replaceChild(d,o),t.insertBefore(u,d);continue}const s=i.content,{text:a,incs:c}=eh(e,o,_d),l=i.backgroundImage,u=i.backgroundColor,f=i.fontFamily,d=parseInt(i.fontSize)||32,h=parseInt(i.fontWeight)||!1,p=i.color||"#000",g=i.borderStyle,m=parseFloat(i.borderWidth),A=i.transform,y=Ed(f),v="none"!==s&&""!==a,b=l&&"none"!==l,I=u&&"transparent"!==u&&"rgba(0, 0, 0, 0)"!==u,w=g&&"none"!==g&&m>0,x=A&&"none"!==A;if(!(v||b||I||w||x)){if(c&&c.length&&e.parentElement){const t=Xd.get(e.parentElement)||new Map;for(const{name:n}of c){if(!n)continue;const r=Kd(e,_d),i=Zd(e,getComputedStyle(e,o),r).get(e,n);t.set(n,i)}Xd.set(e.parentElement,t)}continue}const C=document.createElement("span");C.dataset.snapdomPseudo=o,C.style.verticalAlign="middle",C.style.pointerEvents="none";const B=id(ad(i),"span");if(n.styleMap.set(C,B),y&&a&&1===a.length){const{dataUrl:e,width:n,height:r}=await Fd(a,f,h,d,p),o=document.createElement("img");o.src=e,o.style=`height:${d}px;width:${n/r*d}px;object-fit:contain;`,C.appendChild(o),t.dataset.snapdomHasIcon="true"}else if(a&&a.startsWith("url(")){const t=jf(a);if(t?.trim())try{const e=document.createElement("img"),n=await _f($f(t),{as:"dataURL",useProxy:r.useProxy});e.src=n.data,e.style=`width:${d}px;height:auto;object-fit:contain;`,C.appendChild(e)}catch(t){console.error(`[snapdom] Error in pseudo ${o} for`,e,t)}}else!y&&v&&(C.textContent=a);if(C.style.background="none","mask"in C.style&&(C.style.mask="none"),b)try{const e=cd(l),t=await Promise.all(e.map(Kf));C.style.backgroundImage=t.join(", ")}catch(e){console.warn(`[snapdom] Failed to inline background-image for ${o}`,e)}I&&(C.style.backgroundColor=u);const E=C.childNodes.length>0||""!==C.textContent?.trim()||b||I||w||x;if(c&&c.length&&e.parentElement){const t=Xd.get(e.parentElement)||new Map,n=Kd(e,_d),r=Zd(e,getComputedStyle(e,o),n);for(const{name:n}of c){if(!n)continue;const o=r.get(e,n);t.set(n,o)}Xd.set(e.parentElement,t)}if(!E)continue;"::before"===o?t.insertBefore(C,t.firstChild):t.appendChild(C)}catch(t){console.warn(`[snapdom] Failed to capture ${o} for`,e,t)}const o=Array.from(e.children),i=Array.from(t.children).filter(e=>!e.dataset.snapdomPseudo);for(let e=0;e<Math.min(o.length,i.length);e++)await th(o[e],i[e],n,r)}function nh(e){if(!e||"auto"===e)return null;const t=Number.parseFloat(e);return Number.isFinite(t)?t:null}function rh(e,t){const n=[];for(let r=e;r&&r!==t;){const e=r.parentElement;if(!e)break;n.push(Array.prototype.indexOf.call(e.children,r)),r=e}return n.reverse()}function oh(e,t,n){let r=e;for(let e=0;e<t.length;e++){if(r=ih(r,n)[t[e]],!r)return null}return r instanceof HTMLElement?r:null}function ih(e,t){const n=[],r=e.children;for(let e=0;e<r.length;e++){const o=r[e];o.hasAttribute(t)||n.push(o)}return n}async function sh(e,t={}){const n={styleMap:zf.session.styleMap,styleCache:zf.session.styleCache,nodeMap:zf.session.nodeMap};let r,o="",i="";!function(e){const t=getComputedStyle(e),n=t.outlineStyle,r=t.outlineWidth,o=t.borderStyle,i=t.borderWidth,s="none"!==n&&parseFloat(r)>0,a="none"===o||0===parseFloat(i);s&&a&&(e.style.border=`${r} solid transparent`)}(e);try{!function(e){if(!e)return;const t=new Set;if(e.querySelectorAll("use").forEach(e=>{const n=e.getAttribute("xlink:href")||e.getAttribute("href");n&&n.startsWith("#")&&t.add(n.slice(1))}),!t.size)return;const n=Array.from(document.querySelectorAll("svg > symbol, svg > defs")),r=n.filter(e=>"symbol"===e.tagName.toLowerCase()),o=n.filter(e=>"defs"===e.tagName.toLowerCase());let i=e.querySelector("svg.inline-defs-container");i||(i=document.createElementNS("http://www.w3.org/2000/svg","svg"),i.setAttribute("aria-hidden","true"),i.setAttribute("style","position: absolute; width: 0; height: 0; overflow: hidden;"),i.classList.add("inline-defs-container"),e.insertBefore(i,e.firstChild));const s=new Set;e.querySelectorAll("symbol[id], defs > *[id]").forEach(e=>{s.add(e.id)}),t.forEach(e=>{if(s.has(e))return;const t=r.find(t=>t.id===e);if(t)return i.appendChild(t.cloneNode(!0)),void s.add(e);for(const t of o){const n=t.querySelector(`#${CSS.escape(e)}`);if(n){let t=i.querySelector("defs");t||(t=document.createElementNS("http://www.w3.org/2000/svg","defs"),i.appendChild(t)),t.appendChild(n.cloneNode(!0)),s.add(e);break}}})}(e)}catch(e){console.warn("inlineExternal defs or symbol failed:",e)}try{r=await xd(e,n,t)}catch(e){throw console.warn("deepClone failed:",e),e}try{await th(e,r,n,t)}catch(e){console.warn("inlinePseudoElements failed:",e)}await async function(e){if(!e)return;const t=e.querySelectorAll?e.querySelectorAll("img"):[];for(const e of t)try{const t=e.getAttribute("src")||e.currentSrc||"";if(fh(t)){const n=await ch(t);e.setAttribute("src",n)}const n=e.getAttribute("srcset");if(n&&n.includes("blob:")){const t=dh(n);let r=!1;for(const e of t)if(fh(e.url))try{e.url=await ch(e.url),r=!0}catch{}r&&e.setAttribute("srcset",hh(t))}}catch{}const n=e.querySelectorAll?e.querySelectorAll("image"):[];for(const e of n)try{const t="http://www.w3.org/1999/xlink",n=e.getAttribute("href")||e.getAttributeNS?.(t,"href");if(fh(n)){const r=await ch(n);e.setAttribute("href",r),e.removeAttributeNS?.(t,"href")}}catch{}const r=e.querySelectorAll?e.querySelectorAll("[style*='blob:']"):[];for(const e of r)try{const t=e.getAttribute("style");if(t&&t.includes("blob:")){const n=await uh(t);e.setAttribute("style",n)}}catch{}const o=e.querySelectorAll?e.querySelectorAll("style"):[];for(const e of o)try{const t=e.textContent||"";t.includes("blob:")&&(e.textContent=await uh(t))}catch{}const i=["poster"];for(const t of i){const n=e.querySelectorAll?e.querySelectorAll(`[${t}^='blob:']`):[];for(const e of n)try{const n=e.getAttribute(t);fh(n)&&e.setAttribute(t,await ch(n))}catch{}}}(r);try{const e=r.querySelectorAll("style[data-sd]");for(const t of e)i+=t.textContent||"",t.remove()}catch{}const s=function(e){const t=Array.from(new Set(e.values())).filter(Boolean).sort(),n=new Map;let r=1;for(const e of t)n.set(e,"c"+r++);return n}(n.styleMap);o=Array.from(s.entries()).map(([e,t])=>`.${t}{${e}}`).join(""),o=i+o;for(const[e,t]of n.styleMap.entries()){if("STYLE"===e.tagName)continue;if(e.getRootNode&&e.getRootNode()instanceof ShadowRoot){e.setAttribute("style",t.replace(/;/g,"; "));continue}const n=s.get(t);n&&e.classList.add(n);const r=e.style?.backgroundImage,o=e.dataset?.snapdomHasIcon;r&&"none"!==r&&(e.style.backgroundImage=r),o&&(e.style.verticalAlign="middle",e.style.display="inline")}for(const[e,t]of n.nodeMap.entries()){const n=t.scrollLeft,r=t.scrollTop;if((n||r)&&e instanceof HTMLElement){e.style.overflow="hidden",e.style.scrollbarWidth="none",e.style.msOverflowStyle="none";const t=document.createElement("div");for(t.style.transform=`translate(${-n}px, ${-r}px)`,t.style.willChange="transform",t.style.display="inline-block",t.style.width="100%";e.firstChild;)t.appendChild(e.firstChild);e.appendChild(t)}}if(function(e,t){if(!e||!t)return;const n=e.scrollTop||0;if(!n)return;"static"===getComputedStyle(t).position&&(t.style.position="relative");const r=e.getBoundingClientRect(),o=e.clientHeight,i="data-snap-ph",s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;s.nextNode();){const a=s.currentNode,c=getComputedStyle(a),l=c.position;if("sticky"!==l&&"-webkit-sticky"!==l)continue;const u=nh(c.top),f=nh(c.bottom);if(null==u&&null==f)continue;const d=oh(t,rh(a,e),i);if(!d)continue;const h=a.getBoundingClientRect(),p=h.width,g=h.height,m=h.left-r.left;if(!(p>0&&g>0))continue;if(!Number.isFinite(m))continue;const A=null!=u?u+n:n+(o-g-f);if(!Number.isFinite(A))continue;const y=Number.parseInt(c.zIndex,10),v=Number.isFinite(y),b=v?Math.max(y,1)+1:2,I=v?y-1:0,w=d.cloneNode(!1);w.setAttribute(i,"1"),w.style.position="sticky",w.style.left=`${m}px`,w.style.top=`${A}px`,w.style.width=`${p}px`,w.style.height=`${g}px`,w.style.visibility="hidden",w.style.zIndex=String(I),w.style.overflow="hidden",w.style.background="transparent",w.style.boxShadow="none",w.style.filter="none",d.parentElement?.insertBefore(w,d),d.style.position="absolute",d.style.left=`${m}px`,d.style.top=`${A}px`,d.style.bottom="auto",d.style.zIndex=String(b),d.style.pointerEvents="none"}}(e,r instanceof HTMLElement&&r.firstElementChild instanceof HTMLElement?r.firstElementChild:r),e===n.nodeMap.get(r)){const t=n.styleCache.get(e)||window.getComputedStyle(e);n.styleCache.set(e,t);const o=function(e){if(!e||"none"===e)return"";let t=e.replace(/translate[XY]?\([^)]*\)/g,"");return t=t.replace(/matrix\(([^)]+)\)/g,(e,t)=>{const 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)=>{const 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);r.style.margin="0",r.style.top="auto",r.style.left="auto",r.style.right="auto",r.style.bottom="auto",r.style.animation="none",r.style.transition="none",r.style.willChange="auto",r.style.float="none",r.style.clear="none",r.style.transform=o||""}for(const[e,t]of n.nodeMap.entries())"PRE"===t.tagName&&(e.style.marginTop="0",e.style.marginBlockStart="0");return{clone:r,classCSS:o,styleCache:n.styleCache}}var ah=new Map;async function ch(e){if(zf.resource?.has(e))return zf.resource.get(e);if(ah.has(e))return ah.get(e);const t=(async()=>{const t=await _f(e,{as:"dataURL",silent:!0});if(!t.ok||"string"!=typeof t.data)throw new Error(`[snapDOM] Failed to read blob URL: ${e}`);return zf.resource?.set(e,t.data),t.data})();ah.set(e,t);try{const n=await t;return ah.set(e,n),n}catch(t){throw ah.delete(e),t}}var lh=/\bblob:[^)"'\s]+/g;async function uh(e){if(!e||-1===e.indexOf("blob:"))return e;const t=Array.from(new Set(e.match(lh)||[]));if(0===t.length)return e;let n=e;for(const e of t)try{const t=await ch(e);n=n.split(e).join(t)}catch{}return n}function fh(e){return"string"==typeof e&&e.startsWith("blob:")}function dh(e){return(e||"").split(",").map(e=>e.trim()).filter(Boolean).map(e=>{const t=e.match(/^(\S+)(\s+.+)?$/);return t?{url:t[1],desc:t[2]||""}:null}).filter(Boolean)}function hh(e){return e.map(e=>e.desc?`${e.url} ${e.desc.trim()}`:e.url).join(", ")}function ph(e){if(!e)return()=>{};const t=function(e){const t=getComputedStyle(e);let n=t.getPropertyValue("-webkit-line-clamp")||t.getPropertyValue("line-clamp");n=(n||"").trim();const r=parseInt(n,10);return Number.isFinite(r)&&r>0?r:0}(e);if(t<=0)return()=>{};if(!function(e){return!(e.childElementCount>0)&&Array.from(e.childNodes).some(e=>e.nodeType===Node.TEXT_NODE)}(e))return()=>{};const n=getComputedStyle(e),r=Math.round(function(e){const 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)}(n)*t+function(e){return(parseFloat(e.paddingTop)||0)+(parseFloat(e.paddingBottom)||0)}(n)),o=e.textContent??"",i=o;if(e.scrollHeight<=r+.5)return()=>{};let s=0,a=o.length,c=-1;for(;s<=a;){const t=s+a>>1;e.textContent=o.slice(0,t)+"…",e.scrollHeight<=r+.5?(c=t,s=t+1):a=t-1}return e.textContent=(c>=0?o.slice(0,c):"")+"…",()=>{e.textContent=i}}async function gh(e,t){if(!e)throw new Error("Element cannot be null or undefined");!function(e="soft"){switch(e){case"auto":return zf.session.styleMap=new Map,void(zf.session.nodeMap=new Map);case"soft":default:return zf.session.styleMap=new Map,zf.session.nodeMap=new Map,void(zf.session.styleCache=new WeakMap);case"full":return;case"disabled":zf.session.styleMap=new Map,zf.session.nodeMap=new Map,zf.session.styleCache=new WeakMap,zf.computedStyle=new WeakMap,zf.baseStyle=new Map,zf.defaultStyle=new Map,zf.image=new Map,zf.background=new Map,zf.resource=new Map,zf.font=new Set}}(t.cache);const n=t.fast,r=!!t.straighten,o=!!t.noShadows;let i,s,a,c,l,u="",f="",d=null;const h=ph(e);try{({clone:i,classCSS:s,styleCache:a}=await sh(e,t)),r&&i&&(d=function(e,t){if(!e||!t||!t.style)return null;const 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{}const r=n.transform||"none";if(!r||"none"===r)try{const n=Ah(e);if(1===n.a&&0===n.b&&0===n.c&&1===n.d)return t.style.transform="none",{a:1,b:0,c:0,d:1}}catch{}const o=r.match(/^matrix\(\s*([^)]+)\)$/i);if(o){const e=o[1].split(",").map(e=>parseFloat(e.trim()));if(6===e.length&&e.every(Number.isFinite)){const[n,r,o,i]=e,s=Math.sqrt(n*n+r*r)||0;let a=0,c=0,l=0,u=0,f=0,d=0;s>0&&(a=n/s,c=r/s,l=a*o+c*i,u=o-a*l,f=i-c*l,d=Math.sqrt(u*u+f*f)||0,d>0?l/=d:l=0);const h=s,p=0,g=l*d,m=d;try{t.style.transform=`matrix(${h}, ${p}, ${g}, ${m}, 0, 0)`}catch{}return{a:h,b:p,c:g,d:m}}}try{const e=String(r).trim();return t.style.transform=e+" translate(0px, 0px) rotate(0deg)",null}catch{return null}}(e,i)),o&&i&&function(e,t){if(!e||!t||!t.style)return;const n=getComputedStyle(e);try{t.style.boxShadow="none"}catch{}try{t.style.textShadow="none"}catch{}try{t.style.outline="none"}catch{}const r=(n.filter||"").replace(/\bblur\([^()]*\)\s*/gi,"").replace(/\bdrop-shadow\([^()]*\)\s*/gi,"").trim().replace(/\s+/g," ");try{t.style.filter=r.length?r:"none"}catch{}}(e,i)}finally{h()}await new Promise(e=>{ld(async()=>{await async function(e,t={}){const n=Array.from(e.querySelectorAll("img")),r=async e=>{if(!e.getAttribute("src")){const t=e.currentSrc||e.src||"";t&&e.setAttribute("src",t)}e.removeAttribute("srcset"),e.removeAttribute("sizes");const n=e.src||"";if(!n)return;const r=await _f(n,{as:"dataURL",useProxy:t.useProxy});if(r.ok&&"string"==typeof r.data&&r.data.startsWith("data:"))return e.src=r.data,e.width||(e.width=e.naturalWidth||100),void(e.height||(e.height=e.naturalHeight||100));const{fallbackURL:o}=t||{};if(o)try{const r=parseInt(e.dataset?.snapdomWidth||"",10)||0,i=parseInt(e.dataset?.snapdomHeight||"",10)||0,s=parseInt(e.getAttribute("width")||"",10)||0,a=parseInt(e.getAttribute("height")||"",10)||0,c=parseFloat(e.style?.width||"")||0,l=parseFloat(e.style?.height||"")||0,u=r||c||s||e.width||void 0,f=i||l||a||e.height||void 0,d="function"==typeof o?await o({width:u,height:f,src:n,element:e}):o;if(d){const n=await _f(d,{as:"dataURL",useProxy:t.useProxy});return e.src=n.data,!e.width&&u&&(e.width=u),!e.height&&f&&(e.height=f),e.width||(e.width=e.naturalWidth||100),void(e.height||(e.height=e.naturalHeight||100))}}catch{}const i=e.width||e.naturalWidth||100,s=e.height||e.naturalHeight||100;if(!1!==t.placeholders){const t=document.createElement("div");t.style.cssText=[`width:${i}px`,`height:${s}px`,"background:#ccc","display:inline-block","text-align:center",`line-height:${s}px`,"color:#666","font-size:12px","overflow:hidden"].join(";"),t.textContent="img",e.replaceWith(t)}else{const t=document.createElement("div");t.style.cssText=`display:inline-block;width:${i}px;height:${s}px;visibility:hidden;`,e.replaceWith(t)}};for(let e=0;e<n.length;e+=4){const t=n.slice(e,e+4).map(r);await Promise.allSettled(t)}}(i,t),e()},{fast:n})}),await new Promise(r=>{ld(async()=>{await async function(e,t,n,r={}){const o=[[e,t]],i=["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"],s=["mask-position","mask-size","mask-repeat","-webkit-mask-position","-webkit-mask-size","-webkit-mask-repeat","mask-origin","mask-clip","-webkit-mask-origin","-webkit-mask-clip","-webkit-mask-position-x","-webkit-mask-position-y"],a=["border-image-slice","border-image-width","border-image-outset","border-image-repeat"];for(;o.length;){const[e,t]=o.shift(),c=n.get(e)||sd(e);n.has(e)||n.set(e,c);const l=(()=>{const e=c.getPropertyValue("border-image"),t=c.getPropertyValue("border-image-source");return e&&"none"!==e||t&&"none"!==t})();for(const e of i){const n=c.getPropertyValue(e);if(!n||"none"===n)continue;const o=cd(n),i=await Promise.all(o.map(e=>Kf(e,r)));i.some(e=>e&&"none"!==e&&!/^url\(undefined/.test(e))&&t.style.setProperty(e,i.join(", "))}for(const e of s){const n=c.getPropertyValue(e);n&&"initial"!==n&&t.style.setProperty(e,n)}if(l)for(const e of a){const n=c.getPropertyValue(e);n&&"initial"!==n&&t.style.setProperty(e,n)}const u=Array.from(e.children),f=Array.from(t.children);for(let e=0;e<Math.min(u.length,f.length);e++)o.push([u[e],f[e]])}}(e,i,a,t),r()},{fast:n})}),t.embedFonts&&await new Promise(r=>{ld(async()=>{const n=Yd(e),o=function(e){const t=new Set,n=e=>{if(e)for(const n of e)t.add(n.codePointAt(0))},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null);for(;r.nextNode();){const e=r.currentNode;if(e.nodeType===Node.TEXT_NODE)n(e.nodeValue||"");else if(e.nodeType===Node.ELEMENT_NODE){const r=e;for(const e of["::before","::after"]){const o=getComputedStyle(r,e),i=o?.getPropertyValue("content");if(i&&"none"!==i)if(/^"/.test(i)||/^'/.test(i))n(i.slice(1,-1));else{const e=i.match(/\\[0-9A-Fa-f]{1,6}/g);if(e)for(const n of e)try{t.add(parseInt(n.slice(1),16))}catch{}}}}}return t}(e);if(ud()){const e=new Set(Array.from(n).map(e=>String(e).split("__")[0]).filter(Boolean));await async function(e,t=2){try{await document.fonts.ready}catch{}const n=Array.from(e||[]).filter(Boolean);if(0===n.length)return;const r=()=>{const e=document.createElement("div");e.style.cssText="position:absolute!important;left:-9999px!important;top:0!important;opacity:0!important;pointer-events:none!important;contain:layout size style;";for(const t of n){const n=document.createElement("span");n.textContent="AaBbGg1234ÁÉÍÓÚçñ—∞",n.style.fontFamily=`"${t}"`,n.style.fontWeight="700",n.style.fontStyle="italic",n.style.fontSize="32px",n.style.lineHeight="1",n.style.whiteSpace="nowrap",n.style.margin="0",n.style.padding="0",e.appendChild(n)}document.body.appendChild(e),e.offsetWidth,document.body.removeChild(e)};for(let e=0;e<Math.max(1,t);e++)r(),await new Promise(e=>requestAnimationFrame(()=>requestAnimationFrame(e)))}(e,1)}u=await $d({required:n,usedCodepoints:o,preCached:!1,exclude:t.excludeFonts,useProxy:t.useProxy}),r()},{fast:n})});const p=function(e){const 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))}(i).sort(),g=p.join(",");zf.baseStyle.has(g)?f=zf.baseStyle.get(g):await new Promise(e=>{ld(()=>{f=function(e){const t=new Map;for(let n of e){const e=zf.defaultStyle.get(n);if(!e)continue;const 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}(p),zf.baseStyle.set(g,f),e()},{fast:n})}),await new Promise(a=>{ld(()=>{const n=getComputedStyle(e);const h=e.getBoundingClientRect(),p=Math.max(1,Math.ceil(e.offsetWidth||parseFloat(n.width)||h.width||1)),g=Math.max(1,Math.ceil(e.offsetHeight||parseFloat(n.height)||h.height||1)),m=(e,t=NaN)=>{const n="string"==typeof e?parseFloat(e):e;return Number.isFinite(n)?n:t},A=m(t.width),y=m(t.height);let v=p,b=g;const I=Number.isFinite(A),w=Number.isFinite(y),x=g>0?p/g:1;I&&w?(v=Math.max(1,Math.ceil(A)),b=Math.max(1,Math.ceil(y))):I?(v=Math.max(1,Math.ceil(A)),b=Math.max(1,Math.ceil(v/(x||1)))):w?(b=Math.max(1,Math.ceil(y)),v=Math.max(1,Math.ceil(b*(x||1)))):(v=p,b=g);let C=0,B=0,E=p,F=g;if(r&&d&&Number.isFinite(d.a)){const e=mh(p,g,{a:d.a,b:d.b||0,c:d.c||0,d:d.d||1,e:0,f:0},0,0);C=e.minX,B=e.minY,E=e.maxX,F=e.maxY}else{const t=!r&&function(e){const t=getComputedStyle(e),n=t.transform||"none",r="none"!==n&&!/^matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\)$/i.test(n);if(r)return!0;const o=t.rotate&&"none"!==t.rotate&&"0deg"!==t.rotate,i=t.scale&&"none"!==t.scale&&"1"!==t.scale,s=t.translate&&"none"!==t.translate&&"0px 0px"!==t.translate;return Boolean(o||i||s)}(e);if(t){const t=n.transform&&"none"!==n.transform?n.transform:"",r=function(e){const t={rotate:"0deg",scale:null,translate:null},n="function"==typeof e.computedStyleMap?e.computedStyleMap():null;if(n){const r=e=>{try{return"function"!=typeof n.has||n.has(e)?"function"!=typeof n.get?null:n.get(e):null}catch{return null}},o=r("rotate");if(o)if(o.angle){const e=o.angle;t.rotate="rad"===e.unit?180*e.value/Math.PI+"deg":e.value+e.unit}else o.unit?t.rotate="rad"===o.unit?180*o.value/Math.PI+"deg":o.value+o.unit:t.rotate=String(o);else{const n=getComputedStyle(e);t.rotate=n.rotate&&"none"!==n.rotate?n.rotate:"0deg"}const i=r("scale");if(i){const e="x"in i&&null!=i.x?.value?i.x.value:Array.isArray(i)?i[0]?.value:Number(i)||1,n="y"in i&&null!=i.y?.value?i.y.value:Array.isArray(i)?i[1]?.value:e;t.scale=`${e} ${n}`}else{const n=getComputedStyle(e);t.scale=n.scale&&"none"!==n.scale?n.scale:null}const s=r("translate");if(s){const e="x"in s&&"value"in s.x?s.x.value:Array.isArray(s)?s[0]?.value:0,n="y"in s&&"value"in s.y?s.y.value:Array.isArray(s)?s[1]?.value:0,r="x"in s&&s.x?.unit?s.x.unit:"px",o="y"in s&&s.y?.unit?s.y.unit:"px";t.translate=`${e}${r} ${n}${o}`}else{const n=getComputedStyle(e);t.translate=n.translate&&"none"!==n.translate?n.translate:null}return t}const 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}(e),o=function(e){const t=function(){if(yh)return yh;const 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),yh=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);const r=Ah(n);return t.removeChild(n),r}({baseTransform:t,rotate:r.rotate||"0deg",scale:r.scale,translate:r.translate}),{ox:i,oy:s}=function(e,t,n){const r=(e.transformOrigin||"0 0").trim().split(/\s+/),[o,i]=[r[0]||"0",r[1]||"0"],s=(e,t)=>{const 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:s(o,t),oy:s(i,n)}}(n,p,g),a=mh(p,g,o.is2D?o:new DOMMatrix(o.toString()),i,s);C=a.minX,B=a.minY,E=a.maxX,F=a.maxY}}const k=function(e){const t=e.boxShadow||"";if(!t||"none"===t)return{top:0,right:0,bottom:0,left:0};const n=t.split(/\),(?=(?:[^()]*\([^()]*\))*[^()]*$)/).map(e=>e.trim());let r=0,o=0,i=0,s=0;for(const e of n){const t=e.match(/-?\d+(\.\d+)?px/g)?.map(e=>parseFloat(e))||[];if(t.length<2)continue;const[n,a,c=0,l=0]=t,u=Math.abs(n)+c+l,f=Math.abs(a)+c+l;o=Math.max(o,u+Math.max(n,0)),s=Math.max(s,u+Math.max(-n,0)),i=Math.max(i,f+Math.max(a,0)),r=Math.max(r,f+Math.max(-a,0))}return{top:Math.ceil(r),right:Math.ceil(o),bottom:Math.ceil(i),left:Math.ceil(s)}}(n),S=function(e){const t=(e.filter||"").match(/blur\(\s*([0-9.]+)px\s*\)/),n=t?Math.ceil(parseFloat(t[1])||0):0;return{top:n,right:n,bottom:n,left:n}}(n),D=function(e){if("none"===(e.outlineStyle||"none"))return{top:0,right:0,bottom:0,left:0};const t=Math.ceil(parseFloat(e.outlineWidth||"0")||0);return{top:t,right:t,bottom:t,left:t}}(n),N=function(e){const t=`${e.filter||""} ${e.webkitFilter||""}`.trim();if(!t||"none"===t)return{bleed:{top:0,right:0,bottom:0,left:0},has:!1};const n=t.match(/drop-shadow\((?:[^()]|\([^()]*\))*\)/gi)||[];let r=0,o=0,i=0,s=0,a=!1;for(const e of n){a=!0;const t=e.match(/-?\d+(?:\.\d+)?px/gi)?.map(e=>parseFloat(e))||[],[n=0,c=0,l=0]=t,u=Math.abs(n)+l,f=Math.abs(c)+l;o=Math.max(o,u+Math.max(n,0)),s=Math.max(s,u+Math.max(-n,0)),i=Math.max(i,f+Math.max(c,0)),r=Math.max(r,f+Math.max(-c,0))}return{bleed:{top:Math.ceil(r),right:Math.ceil(o),bottom:Math.ceil(i),left:Math.ceil(s)},has:a}}(n),Q=o?{top:0,right:0,bottom:0,left:0}:{top:k.top+S.top+D.top+N.bleed.top,right:k.right+S.right+D.right+N.bleed.right,bottom:k.bottom+S.bottom+D.bottom+N.bleed.bottom,left:k.left+S.left+D.left+N.bleed.left};C-=Q.left,B-=Q.top,E+=Q.right,F+=Q.bottom;const M=Math.max(1,Math.ceil(E-C)),T=Math.max(1,Math.ceil(F-B)),L=Math.max(1,Math.round(M*(I||w?v/p:1))),U=Math.max(1,Math.round(T*(w||I?b/g:1))),R="http://www.w3.org/2000/svg",H=(ud()?1:0)+(r?1:0),q=document.createElementNS(R,"foreignObject"),O=Math.floor(C),P=Math.floor(B);q.setAttribute("x",String(-(O-H))),q.setAttribute("y",String(-(P-H))),q.setAttribute("width",String(Math.ceil(p+2*H))),q.setAttribute("height",String(Math.ceil(g+2*H))),q.style.overflow="visible";const z=document.createElement("style");z.textContent=f+u+"svg{overflow:visible;} foreignObject{overflow:visible;}"+s,q.appendChild(z);const j=document.createElement("div");j.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),j.style.width=`${p}px`,j.style.height=`${g}px`,j.style.overflow="visible",i.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),j.appendChild(i),q.appendChild(j);const $=(new XMLSerializer).serializeToString(q),Y=M+2*H,G=T+2*H,V=I||w;t.meta={w0:p,h0:g,vbW:Y,vbH:G,targetW:v,targetH:b};const J=ud()&&V?Y:L+2*H,W=ud()&&V?G:U+2*H;l=`<svg xmlns="${R}" width="${J}" height="${W}" viewBox="0 0 ${Y} ${G}">`+$+"</svg>",c=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(l)}`,a()},{fast:n})});const m=document.getElementById("snapdom-sandbox");return m&&"absolute"===m.style.position&&m.remove(),c}function mh(e,t,n,r,o){const i=n.a,s=n.b,a=n.c,c=n.d,l=n.e||0,u=n.f||0;function f(e,t){let n=e-r,f=t-o,d=i*n+a*f,h=s*n+c*f;return d+=r+l,h+=o+u,[d,h]}const d=[f(0,0),f(e,0),f(0,t),f(e,t)];let h=1/0,p=1/0,g=-1/0,m=-1/0;for(const[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 Ah(e){const t=getComputedStyle(e).transform;if(!t||"none"===t)return new DOMMatrix;try{return new DOMMatrix(t)}catch{return new WebKitCSSMatrix(t)}}var yh=null;function vh(e){const t=function(e){let t=[],n="",r=0;for(let o=0;o<e.length;o++){const i=e[o];"("===i&&r++,")"===i&&(r=Math.max(0,r-1)),";"===i&&0===r?(t.push(n),n=""):n+=i}return n.trim()&&t.push(n),t.map(e=>e.trim()).filter(Boolean)}(e);let n=null,r=null,o=null;const i=[];for(const e of t){const t=e.indexOf(":");if(t<0)continue;const s=e.slice(0,t).trim().toLowerCase(),a=e.slice(t+1).trim();"box-shadow"===s?o=a:"filter"===s?n=a:"-webkit-filter"===s?r=a:i.push([s,a])}if(o){const e=function(e){const t=[];let n="",r=0;for(let o=0;o<e.length;o++){const i=e[o];"("===i&&r++,")"===i&&(r=Math.max(0,r-1)),","===i&&0===r?(t.push(n.trim()),n=""):n+=i}n.trim()&&t.push(n.trim());const o=[];for(const e of t){if(/\binset\b/i.test(e))continue;const t=e.match(/-?\d+(?:\.\d+)?px/gi)||[],[n="0px",r="0px",i="0px"]=t;let s=e.replace(/-?\d+(?:\.\d+)?px/gi,"").replace(/\binset\b/gi,"").trim().replace(/\s{2,}/g," ");const a=!!s&&","!==s;o.push(`drop-shadow(${n} ${r} ${i}${a?` ${s}`:""})`)}return o.join(" ")}(o);e&&(n=n?`${n} ${e}`:e,r=r?`${r} ${e}`:e)}const s=[...i];return n&&s.push(["filter",n]),r&&s.push(["-webkit-filter",r]),s.map(([e,t])=>`${e}:${t}`).join(";")}function bh(e){return e=(e=e.replace(/<style[^>]*>([\s\S]*?)<\/style>/gi,(e,t)=>e.replace(t,function(e){return e.replace(/([^{}]+)\{([^}]*)\}/g,(e,t,n)=>`${t}{${vh(n)}}`)}(t)))).replace(/style=(['"])([\s\S]*?)\1/gi,(e,t,n)=>`style=${t}${vh(n)}${t}`),e}function Ih(e){if(!ud()||("string"!=typeof(t=e)||!/^data:image\/svg\+xml/i.test(t)))return e;var t;try{const t=function(e){const t=e.indexOf(",");return t>=0?decodeURIComponent(e.slice(t+1)):""}(e),n=bh(t);return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n)}`}catch{return e}}async function wh(e,t){let{width:n,height:r,scale:o=1,dpr:i=1,meta:s={}}=t;e=Ih(e);const a=new Image;a.loading="eager",a.decoding="sync",a.crossOrigin="anonymous",a.src=e,await a.decode();const c=a.naturalWidth,l=a.naturalHeight,u=Number.isFinite(s.w0)?s.w0:c,f=Number.isFinite(s.h0)?s.h0:l;let d,h;const p=Number.isFinite(n),g=Number.isFinite(r);if(p&&g)d=Math.max(1,n),h=Math.max(1,r);else if(p){const e=n/Math.max(1,u);d=n,h=Math.round(f*e)}else if(g){const e=r/Math.max(1,f);h=r,d=Math.round(u*e)}else d=c,h=l;d=Math.round(d*o),h=Math.round(h*o);const m=document.createElement("canvas");m.width=Math.ceil(d*i),m.height=Math.ceil(h*i),m.style.width=`${d}px`,m.style.height=`${h}px`;const A=m.getContext("2d");return 1!==i&&A.scale(i,i),A.drawImage(a,0,0,d,h),m}async function xh(e,t){const n=await wh(e,t),r=t.backgroundColor?Xf(n,t.backgroundColor):n,o=new Image;return o.src=r.toDataURL(`image/${t.format}`,t.quality),await o.decode(),o.style.width=r.width/t.dpr+"px",o.style.height=r.height/t.dpr+"px",o}async function Ch(e,t){const{scale:n=1,width:r,height:o,meta:i={}}=t,s=Number.isFinite(r),a=Number.isFinite(o),c=Number.isFinite(n)&&1!==n||s||a;if(ud()&&c){return await xh(e,{...t,format:"png",quality:1,meta:i})}const l=new Image;if(l.decoding="sync",l.loading="eager",l.src=e,await l.decode(),s&&a)l.style.width=`${r}px`,l.style.height=`${o}px`;else if(s){const e=Number.isFinite(i.w0)?i.w0:l.naturalWidth,t=Number.isFinite(i.h0)?i.h0:l.naturalHeight,n=r/Math.max(1,e);l.style.width=`${r}px`,l.style.height=`${Math.round(t*n)}px`}else if(a){const e=Number.isFinite(i.w0)?i.w0:l.naturalWidth,t=Number.isFinite(i.h0)?i.h0:l.naturalHeight,n=o/Math.max(1,t);l.style.height=`${o}px`,l.style.width=`${Math.round(e*n)}px`}else{const t=Math.round(l.naturalWidth*n),r=Math.round(l.naturalHeight*n);if(l.style.width=`${t}px`,l.style.height=`${r}px`,"string"==typeof e&&e.startsWith("data:image/svg+xml"))try{const n=decodeURIComponent(e.split(",")[1]).replace(/width="[^"]*"/,`width="${t}"`).replace(/height="[^"]*"/,`height="${r}"`);e=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n)}`,l.src=e}catch{}}return l}async function Bh(e,t){const n=t.type;if("svg"===n){const t=decodeURIComponent(e.split(",")[1]);return new Blob([t],{type:"image/svg+xml"})}const r=await wh(e,t),o=t.backgroundColor?Xf(r,t.backgroundColor):r;return new Promise(e=>o.toBlob(t=>e(t),`image/${n}`,t.quality))}var Eh=Symbol("snapdom.internal"),Fh=!1;async function kh(e,t){if(!e)throw new Error("Element cannot be null or undefined");const n=function(e={}){const t=e.format??"png",n=function(e){if("string"==typeof e){const t=e.toLowerCase().trim();if("disabled"===t||"full"===t||"auto"===t||"soft"===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,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??(["jpg","jpeg","webp"].includes(t)?"#ffffff":null),filename:e.filename??"snapDOM",straighten:e.straighten??!1,noShadows:e.noShadows??!1}}(t);if(ud()&&(!0===n.embedFonts||function(e){const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);for(;t.nextNode();){const e=t.currentNode,n=getComputedStyle(e),r=n.backgroundImage&&"none"!==n.backgroundImage,o=n.maskImage&&"none"!==n.maskImage||n.webkitMaskImage&&"none"!==n.webkitMaskImage;if(r||o)return!0}return!1}(e)))for(let n=0;n<3;n++)try{await Sh(e,t),console.log("Iteración número:",n),Fh=!1}catch{}return n.iconFonts&&n.iconFonts.length>0&&function(e){const t=Array.isArray(e)?e:[e];for(const e of t)e instanceof RegExp?Bd.push(e):"string"==typeof e?Bd.push(new RegExp(e,"i")):console.warn("[snapdom] Ignored invalid iconFont value:",e)}(n.iconFonts),n.snap||(n.snap={toPng:(e,t)=>kh.toPng(e,t),toSvg:(e,t)=>kh.toSvg(e,t)}),kh.capture(e,n,Eh)}async function Sh(e,t){if(Fh)return;const n={...t,fast:!0,embedFonts:!0,scale:.2};let r;try{r=await gh(e,n)}catch{return}await new Promise(e=>{const t=new Image;t.decoding="sync",t.loading="eager",t.style.position="fixed",t.style.left=0,t.style.top=0,t.style.width="10px",t.style.height="10px",t.style.opacity="0.01",t.style.transform="translateZ(10px)",t.style.willChange="transform,opacity;",t.src=r;document.body.appendChild(t),(async()=>{await new Promise(e=>setTimeout(e,100)),t&&t.parentNode&&t.parentNode.removeChild(t),Fh=!0,e()})()})}function Dh(e){return document.querySelectorAll(e)}function Nh(e){function t(e){e.parentNode.removeChild(e)}if(wu(e)){return void t(e)}if(!Ee(e))return;mn(Dh(e),function(e){t(e)})}function Qh(e,t){if(!wu(e))return"invalid eleParent";if(Be(t))e.insertAdjacentHTML("afterbegin",t);else{if(!wu(t))return"invalid itemChild";e.insertBefore(t,e.firstChild)}}async function Mh(e,t={}){if(!wu(e))return Promise.reject("invalid ele");let n=Ie(t,"scale",null);if(Se(n)||(n=1),n=wr(n),n<1)return Promise.reject("opt.scale can not less then 1");let r=Ie(t,"picType",null);"image/jpg"!==r&&"image/jpeg"!==r&&"image/png"!==r&&"svg"!==r&&(r="image/png");let o=Ie(t,"toBase64",null);ir(o)||(o=!0);let i=e.cloneNode(!0),s=document.createElement("div");s.style.position="absolute",s.style.top=0,s.style.left=0,s.style.zIndex=-1,s.appendChild(i);let a=document.createElement("div");a.style.opacity=0,a.style.position="relative",a.appendChild(s),Qh(document.querySelector("body"),a);let c,l={scale:n,quality:1,cache:"disabled"};return"image/jpg"===r||"image/jpeg"===r?c=await kh.toJpg(s,l):"image/png"===r?c=await kh.toPng(s,l):"svg"===r&&(c=await kh.toSvg(s,l)),o&&(c=Ie(c,"src","")),Nh(a),c}kh.capture=async(e,t,n)=>{if(n!==Eh)throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");const r=await gh(e,t),o=e=>({...t,...e||{}}),i=e=>t=>{const n=o({...t||{},format:e}),i="jpeg"===e||"jpg"===e,s=null==n.backgroundColor||"transparent"===n.backgroundColor;return i&&s&&(n.backgroundColor="#ffffff"),xh(r,n)};return{url:r,toRaw:()=>r,toImg:e=>Ch(r,o(e)),toSvg:e=>Ch(r,o(e)),toCanvas:e=>wh(r,o(e)),toBlob:e=>Bh(r,o(e)),toPng:i("png"),toJpg:i("jpeg"),toWebp:i("webp"),download:e=>async function(e,t){if(t.dpr=1,"svg"===t.format){const n=await Bh(e,{...t,type:"svg"}),r=URL.createObjectURL(n),o=document.createElement("a");return o.href=r,o.download=t.filename,o.click(),void URL.revokeObjectURL(r)}const n=await wh(e,t),r=t.backgroundColor?Xf(n,t.backgroundColor):n,o=document.createElement("a");o.href=r.toDataURL(`image/${t.format}`,t.quality),o.download=t.filename,o.click()}(r,o(e))}},kh.toRaw=(e,t)=>kh(e,t).then(e=>e.toRaw()),kh.toImg=(e,t)=>kh(e,t).then(e=>e.toImg()),kh.toSvg=(e,t)=>kh(e,t).then(e=>e.toSvg()),kh.toCanvas=(e,t)=>kh(e,t).then(e=>e.toCanvas()),kh.toBlob=(e,t)=>kh(e,t).then(e=>e.toBlob()),kh.toPng=(e,t)=>kh(e,{...t,format:"png"}).then(e=>e.toPng()),kh.toJpg=(e,t)=>kh(e,{...t,format:"jpeg"}).then(e=>e.toJpg()),kh.toWebp=(e,t)=>kh(e,{...t,format:"webp"}).then(e=>e.toWebp()),kh.download=(e,t)=>kh(e,t).then(e=>e.download());var Th=Fs(As);function Lh(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 Uh(e){let t=Ie(e,"clientX",null),n=Ie(e,"clientY",null),r=Ie(e,"pageX",null),o=Ie(e,"pageY",null);if(null!==t&&null!==n&&null!==r&&null!==o)return{clientX:t,clientY:n,pageX:r,pageY:o};let i=Ie(e,"changedTouches",[]);if(1!==rr(i))return null;let s=i[0];return{clientX:Ie(s,"clientX",null),clientY:Ie(s,"clientY",null),pageX:Ie(s,"pageX",null),pageY:Ie(s,"pageY",null)}}function Rh(e,t){let n=[];try{n=document.elementsFromPoint(e,t)}catch(e){console.log(e)}return n}function Hh(e,t){if(!wu(e))return null;if(!Ee(t))return null;try{return e.getAttribute(t)}catch(e){}return null}function qh(e){if(!wu(e))return null;try{return e.getBoundingClientRect()}catch(e){}return null}function Oh(e,t){if(!Ce(e))return null;if(!as(e.clientX)||!as(e.clientY))return null;if(!wu(t))return null;let n=qh(t);return n?{x:e.clientX-n.left,y:e.clientY-n.top,w:t.offsetWidth,h:t.offsetHeight}:null}function Ph(e={}){let t="dragpreviewid",n=null,r=null,o=null,i=null,s=null,a=!1,c=Ie(e,"attIdentify",null);Ee(c)||(c="dragprevid");let l=Ie(e,"containerOpacity",null);as(l)||(l=.4);let u=Ie(e,"containerBackground",null);Ee(u)||(u="white");let f=Ie(e,"containerBorderWidth",null);as(f)||(f=1);let d=Ie(e,"containerBorderColor",null);Ee(d)||(d="#f26");let h=`c${Qu(8)}`;function p(e,t,n){r&&o&&i&&s&&!a&&(s.style.top=t-r.tShiftY+"px",s.style.left=e-r.tShiftX+"px")}function g(){Nh(`[${t}='${h}']`),r=null,o=null,i=null,s=null}let m=function(e){p(e.clientX,e.clientY)};window.addEventListener("mousemove",m);let A=function(e){let t=Uh(e);t&&p(t.clientX,t.clientY)};return window.addEventListener("touchmove",A),{createPreview:function(e,a,m){try{!function(){let g=function(e,t,r){let o=qh(e);if(!o)return null;n=e;let i=e.cloneNode(!0);return i.tShiftX=t-o.left,i.tShiftY=r-o.top,i.tWidth=e.offsetWidth,i.tHeight=e.offsetHeight,i.tParent=e.parentNode,i.setAttribute(c,""),i}(e,a,m);if(null===g)return;let A=document.createElement("div");A.style.position="absolute",A.style.zIndex=1,A.style.top=0,A.style.left=0,A.style.width="100%",A.style.height="100%",A.appendChild(g);let y=document.createElement("div");y.style.position="relative",y.appendChild(A);let v=document.createElement("div");v.setAttribute(t,h),v.style.position="fixed",v.style.zIndex=1e5,v.style.width=`${g.tWidth+2*f}px`,v.style.height=`${g.tHeight+2*f}px`,v.style.opacity=l,v.style.background=u,v.style.border=`${f}px solid ${d}`,v.style.pointerEvents="none",v.appendChild(y),document.querySelector("body").appendChild(v),r=g,o=A,i=y,s=v,p(a,m)}()}catch(e){}let A=setInterval(()=>{let e=Hh(n,c);document.querySelector(`[${c}='${e}']`)||(clearInterval(A),g())},500)},updateDragPreview:p,pauseDragPreview:function(e){a=e},removeDragPreview:g,setNodeStyle:function(e){try{mn(e,(e,t)=>{r.style[t]=e})}catch(e){}},setCoverStyle:function(e){try{mn(e,(e,t)=>{o.style[t]=e})}catch(e){}},setSellStyle:function(e){try{mn(e,(e,t)=>{i.style[t]=e})}catch(e){}},setContainerStyle:function(e){try{mn(e,(e,t)=>{s.style[t]=e})}catch(e){}},clear:function(){window.removeEventListener("mousemove",m),window.removeEventListener("touchmove",A)}}}let zh={};function jh(e,t,{attIdentify:n,previewOpacity:r,previewBackground:o,previewBorderWidth:i,previewBorderColor:s}){if(!De(zh,e)){let t=Ho(),a=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 o=function(t){e.dragDrop({e:t,name:"mouseup"})};window.addEventListener(n,o),t.push({ele:window,name:n,f:o}),n="touchmove";let i=function(t){e.dragMove({e:t,name:"touchmove"})};window.addEventListener(n,i),t.push({ele:window,name:n,f:i}),n="touchend";let s=function(t){e.dragDrop({e:t,name:"touchend"})};window.addEventListener(n,s),t.push({ele:window,name:n,f:s})}function r(){mn(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)}});a.bind();let c=Ph({attIdentify:n,containerOpacity:r,containerBackground:o,containerBorderWidth:i,containerBorderColor:s});zh[e]={eleIds:[],evg:t,oevg:a,pv:c,isInit:!1,isActive:!0}}return zh[e].eleIds.push(t),zh[e].evg}function $h(e,t){let n=Hh(e,t);return n=jo(n),n}function Yh({gid:e,attGroup:t,attIndex:n,attIdentify:r,timeDragStartDelay:o,previewOpacity:i,previewDisabledOpacity:s}){let a=null,c=null,l=null,u=null;if(zh[e].isInit)return zh[e].evg;zh[e].isInit=!0;let f=zh[e].evg;f.on(e+"-dragStart",function({e:t,ele:i,from:l}){if(!zh[e].isActive)return;let u=$h(i,n);if(null===u)return;a=u,c=i;let h={event:t,startInd:a,startEle:c,tarInd:a,tarEid:Hh(c,r)};f.emit(e+"-change",{mode:"start",...h}),f.emit(e+"-start",h);let p=Uh(t);if(!p)return;setTimeout(()=>{null!==a&&(d.createPreview(c,p.clientX,p.clientY),d.setContainerStyle({opacity:s}))},o)}),f.on(e+"-dragMove",function({e:o,name:h,from:p}){if(!zh[e].isActive)return;let g=function(e,t,n){let r=null;return mn(Lh(e.target),e=>{if(Hh(e,t)===n)return r=e,!1}),r}(o,t,e);if(null===a)return;let m=Uh(o);if(!m)return;function A(){let t={event:o,startInd:a,startEle:c,endInd:l,endEle:u,tarInd:l,tarEid:Hh(u,r)};f.emit(e+"-change",{mode:"leave",...t}),f.emit(e+"-leave",t),l=null,u=null,d.setContainerStyle({opacity:s})}if(!g)return void(null!==l&&A());let y=$h(g,n);if(null===y)return;if(y===a)return void(null!==l&&A());if(y!==l)null!==l&&A(),function(t,n){l=t,u=n;let s={event:o,startInd:a,startEle:c,endInd:l,endEle:u,tarInd:l,tarEid:Hh(u,r)};f.emit(e+"-change",{mode:"enter",...s}),f.emit(e+"-enter",s),d.setContainerStyle({opacity:i})}(y,g);else{let t=Oh(m,g),n=0;t.w>0&&(n=t.x/t.w);let s=0;t.h>0&&(s=t.y/t.h),n>=0&&n<=1&&s>=0&&s<=1&&function(t,n,s){let h={event:o,startInd:a,startEle:c,endInd:l,endEle:u,tarInd:l,tarEid:Hh(u,r),...t,rx:n,ry:s};f.emit(e+"-change",{mode:"move",...h}),f.emit(e+"-move",h),d.setContainerStyle({opacity:i})}(t,n,s)}}),f.on(e+"-dragDrop",function({e:o,name:i,from:s}){if(d.removeDragPreview(),!zh[e].isActive)return;if(null===a)return;let h=function(e,t,n){let r=null,o=Uh(e);return o?(mn(Rh(o.clientX,o.clientY),e=>{if(Hh(e,t)===n)return r=e,!1}),r):r}(o,t,e);if(!h)return a=null,c=null,l=null,void(u=null);let p=$h(h,n);if(null===p)return;(function(t,n){l=t,u=n;let i={event:o,startInd:a,startEle:c,endInd:l,endEle:u,tarInd:l,tarEid:Hh(u,r)};f.emit(e+"-change",{mode:"drop",...i}),f.emit(e+"-drop",i)})(p,h),a=null,c=null,l=null,u=null});let d=zh[e].pv}async function Gh(e){let t=[],n=Gs();return await async function e(n){let r=null;if(n.isFile&&(r=await function(e){let t=Gs();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=Gs();try{e.readEntries(t.resolve,t.reject)}catch(e){t.reject(e)}return t}(t);await Kc(r,async t=>{await e(t)})}}(e),n.resolve(t),n}async function Vh(e){let t=[];mn(e,e=>{let n=e.webkitGetAsEntry();n&&t.push(n)});let n=await async function(e){let t=[];return await Kc(e,async e=>{mn(await Gh(e),e=>{t.push(e)})}),t}(t);return n}async function Jh(e){let t=[],n=[];try{t=await async function(e){let t=[];return mn(e,e=>{e.type&&t.push({type:"file",name:e.name,file:e})}),t}(Ie(e,"files",[])),ju()||(n=await Vh(Ie(e,"items",[])).catch(e=>{console.log(e)}))}catch(e){return Promise.reject(e)}return{files:t,entries:n}}function Wh(e){return document.querySelector(e)}function _h(e){return!Sn(e)}var Xh=Math.max;var Kh,Zh=(Kh=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ir(n);return o<0&&(o=Xh(r+o,0)),Nn(e,fn(t),o)},function(e,t,n){var r=Object(e);if(!ut(e)){var o=fn(t);e=ft(e),t=function(e){return o(r[e],e,r)}}var i=Kh(e,t,n);return i>-1?r[o?e[i]:i]:void 0});let ep=[{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 tp(e=""){let t=null;return Ee(e)?(t=Zh(ep,{name:e}),Ce(t)||(t=null)):t=ep,t}function np(e=""){if(""!==e&&"name"!==e&&"group"!==e&&"acp"!==e&&"exec"!==e)return[];let t=tp();if(""===e)return t;let n={};return mn(t,function(t){let r=t[e];De(n,r)||(n[r]=[]),n[r].push(t)}),n}function rp(e="*"){if("*"===e)return e;if(!Be(e)&&!Dn(e))return"*";"common"===e&&(e=["docums","compress","image","data"]);let t=np();function n(e){return qn(yn(e,"acp"))}Be(e)&&(e=[e]);let r="";if(Dn(e)){let o=yn(e,function(e){return function(e){return n(rs(t,{group:e}))}(e)}),i=xn(o,yn(e,function(e){return n(rs(t,{name:e}))}));i=rs(i,_h),r=gi(i,",")}return r}function op(e,t=1e3){(t=wr(t))<=0&&(t=1e3);let n={},r=[];return mn(Ie(e,"files",[]),function(e,o){let i=e.size/1024/1024;i>t&&(n[o]=`file size[${i}]mb > ${t}mb`),r.push(e)}),{files:r,errs:n}}function ip(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],s=t(i);if(null!=s&&(void 0===a?s==s&&!Q(s):n(s,a)))var a=s,c=i}return c}function sp(e,t){return e<t}function ap(e){return e&&e.length?ip(e,cn,sp):void 0}function cp(){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}}()||ls(window.IntersectionObserverEntry))}function lp(e,t,n={}){if(!wu(e))return Promise.reject("invalid ele");let r=_c().markmap,{Transformer:o,Markmap:i,loadCSS:s,loadJS:a}=r,c=e=>{let t=new o,{root:n,features:r}=t.transform(e),{styles:i,scripts:s}=t.getUsedAssets(r);return{root:n,features:r,styles:i,scripts:s}},{root:l,styles:u,scripts:f}=c(t);u&&s(u),f&&a(f,{getMarkmap:()=>r}),e.innerHTML="";let d=i.create(e,null,l);return d.transMarkdown=c,d}const up=e=>void 0===e||"auto"===e||"instant"===e||"smooth"===e;function fp(e,t){this.scrollLeft=e,this.scrollTop=t}const dp=(e,t,n="cannot convert to dictionary.")=>`Failed to execute '${e}' on '${t}': ${n}`,hp=(e,t,n)=>dp(e,t,`The provided value '${n}' is not a valid enum value of type ScrollBehavior.`),pp=(e,t,n)=>{var r;const o=`__SEAMLESS.BACKUP$${t}`;return e[o]||!e[t]||(null===(r=e[t])||void 0===r?void 0:r.__isPolyfill)||(e[o]=e[t]),e[o]||n},gp=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},mp=e=>"scrollBehavior"in window.document.documentElement.style&&!0!==(null==e?void 0:e.forcePolyfill),Ap=e=>{Object.defineProperty(e,"__isPolyfill",{value:!0})},yp=(e,t)=>{Ap(t),[HTMLElement.prototype,SVGElement.prototype,Element.prototype].forEach(n=>{pp(n,e),n[e]=t})},vp=e=>e.ownerDocument.scrollingElement||e.ownerDocument.documentElement;const bp=e=>.5*(1-Math.cos(Math.PI*e));function Ip(){var e;let t;return t=(null===(e=window.performance)||void 0===e?void 0:e.now)?()=>window.performance.now():()=>window.Date.now(),Ip=t,t()}const wp=e=>{const t=(Ip()-e.timeStamp)/(e.duration||500);if(t>1)return e.method(e.targetX,e.targetY),void e.callback();const n=(e.timingFunc||bp)(t),r=e.startX+(e.targetX-e.startX)*n,o=e.startY+(e.targetY-e.startY)*n;e.method(r,o),e.rafId=window.requestAnimationFrame(()=>{wp(e)})},xp=e=>isFinite(e)?Number(e):0,Cp=(e,t,n)=>{var r,o;if(!(e=>{var t;return null!==(t=e.isConnected)&&void 0!==t?t:!(e.ownerDocument&&1&e.ownerDocument.compareDocumentPosition(e))})(e))return;const i=e.scrollLeft,s=e.scrollTop,a=xp(null!==(r=t.left)&&void 0!==r?r:i),c=xp(null!==(o=t.top)&&void 0!==o?o:s);if(a===i&&c===s)return;const l=pp(HTMLElement.prototype,"scroll",fp),u=pp(Object.getPrototypeOf(e),"scroll",l).bind(e);if("smooth"!==t.behavior)return void u(a,c);const f=()=>{window.removeEventListener("wheel",h),window.removeEventListener("touchmove",h)},d=Object.assign(Object.assign({},n),{timeStamp:Ip(),startX:i,startY:s,targetX:a,targetY:c,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}),wp(d)},Bp=e=>(t,n,r)=>{const[o,i]=(s=t).window===s?[vp(t.document.documentElement),"Window"]:[t,"Element"];var s;const a=null!=n?n:{};if(!gp(a))throw new TypeError(dp(e,i));if(!up(a.behavior))throw new TypeError(hp(e,i,a.behavior));"scrollBy"===e&&(a.left=xp(a.left)+o.scrollLeft,a.top=xp(a.top)+o.scrollTop),Cp(o,a,r)},Ep=Bp("scroll"),Fp=Bp("scrollTo"),kp=Bp("scrollBy"),Sp=Ep,Dp=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},Np=(e,t,n,r)=>{let o=0;switch(t||(o^=2),e){case 0:o=o>>1|(1&o)<<1,[n,r]=[r,n];break;case 1:case 3:o^=1;break;case 4:o^=2}return[o,n,r]},Qp=e=>!(1&~Np(Dp(e.writingMode),"rtl"!==e.direction,void 0,void 0)[0]),Mp=(e,t,n,r,o,i,s)=>0!==e?e:o<t&&i>n||o>t&&i<n?null:o<=t&&s<=r||i>=n&&s>=r?2:i>n&&s<r||o<t&&s>r?3:null,Tp=e=>"visible"!==e&&"clip"!==e,Lp=(e,t)=>(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth)&&(Tp(t.overflowY)||Tp(t.overflowX)||e===vp(e)),Up=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},Rp=(e,t,n)=>e<t?t:e>n?n:e,Hp=(e,t,n)=>{switch(e){case 1:return(t+n)/2;case 3:return n;case 2:case 0:return t}},qp=(e,t)=>{var n,r,o;const i=null===(n=e.ownerDocument.defaultView)||void 0===n?void 0:n.visualViewport,[s,a,c,l]=e===vp(e)?[0,0,null!==(r=null==i?void 0:i.width)&&void 0!==r?r:e.clientWidth,null!==(o=null==i?void 0:i.height)&&void 0!==o?o:e.clientHeight]:[t.left,t.top,e.clientWidth,e.clientHeight],u=s+e.clientLeft,f=a+e.clientTop;return[f,u+c,f+l,u]},Op=(e,t)=>{const n=[];let r=e.ownerDocument,o=r.defaultView;if(!o)return n;const i=window.getComputedStyle(e),s="rtl"!==i.direction,a=Dp(i.writingMode||i.getPropertyValue("-webkit-writing-mode")||i.getPropertyValue("-ms-writing-mode")),[c,l]=((e,t,n)=>{const[r,o,i]=Np(t,n,e.block||"start",e.inline||"nearest");return[o,i].map((e,t)=>{switch(e){case"center":return 1;case"nearest":return 0;default:return"start"===e==!(r>>t&1)?2:3}})})(t,a,s);let[u,f,d,h]=((e,t,n)=>{const{top:r,right:o,bottom:i,left:s}=t,a=(c=e.ownerDocument,["scroll-margin","scroll-snap-margin"].filter(e=>e in c.documentElement.style)[0]);var c;if(!a)return[r,o,i,s];const l=e=>{const t=n.getPropertyValue(`${a}-${e}`);return parseInt(t,10)||0};return[r-l("top"),o+l("right"),i+l("bottom"),s-l("left")]})(e,e.getBoundingClientRect(),i);for(let i=Up(e);null!==i;i=Up(i)){if(r!==i.ownerDocument){if(r=i.ownerDocument,o=r.defaultView,!o)break;const{left:e,top:t}=i.getBoundingClientRect();u+=t,f+=e,d+=t,h+=e}const e=o.getComputedStyle(i);if("fixed"===e.position)break;if(!Lp(i,e))continue;const s=i.getBoundingClientRect(),[a,p,g,m]=qp(i,s),A=Mp(c,m,p,i.clientWidth,h,f,f-h),y=Mp(l,a,g,i.clientHeight,u,d,d-u),v=null===A?0:Hp(A,h,f)-Hp(A,m,p),b=null===y?0:Hp(y,u,d)-Hp(y,a,g),I=Qp(e)?Rp(v,-i.scrollWidth+i.clientWidth-i.scrollLeft,-i.scrollLeft):Rp(v,-i.scrollLeft,i.scrollWidth-i.clientWidth-i.scrollLeft),w=Rp(b,-i.scrollTop,i.scrollHeight-i.clientHeight-i.scrollTop);n.push([i,{left:i.scrollLeft+I,top:i.scrollTop+w,behavior:t.behavior}]),u=Math.max(u-w,a),f=Math.min(f-I,p),d=Math.min(d-w,g),h=Math.max(h-I,m)}return n},Pp=(e,t,n)=>{const r=t||{};if(!up(r.behavior))throw new TypeError(hp("scrollIntoView","Element",r.behavior));Op(e,r).forEach(([e,t])=>{Sp(e,t,n)})},zp=(e,t)=>n=>{if(mp(n))return;const r={scroll:Ep,scrollTo:Fp,scrollBy:kp}[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]})})},jp=zp("scroll",yp),$p=zp("scrollTo",yp),Yp=zp("scrollBy",yp),Gp=(e,t)=>{Ap(t),pp(window,e),window[e]=t},Vp=zp("scroll",Gp),Jp=zp("scrollTo",Gp),Wp=zp("scrollBy",Gp);function _p(e){Pp(this,{block:null==e||e?"start":"end",inline:"nearest"})}const Xp=e=>{if(mp(e))return;const t=pp(window.HTMLElement.prototype,"scrollIntoView",_p);yp("scrollIntoView",function(){const n=arguments,r=n[0];1===n.length&&gp(r)?Pp(this,r,e):t.apply(this,n)})},Kp=e=>{mp(e)||(jp(e),$p(e),Yp(e),Xp(e),Vp(e),Jp(e),Wp(e))};function Zp(e,t,n){(void 0!==n&&!te(e[t],n)||void 0===n&&!(t in e))&&eo(e,t,n)}function eg(e){return N(e)&&ut(e)}function tg(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function ng(e,t,n,r,o,i,s){var a=tg(e,n),c=tg(t,n),l=s.get(c);if(l)Zp(e,n,l);else{var u,f=i?i(a,c,n+"",e,t,s):void 0,d=void 0===f;if(d){var h=v(c),p=!h&&$e(c),g=!h&&!p&&tt(c);f=c,h||p||g?v(a)?f=a:eg(a)?f=wn(a):p?(d=!1,f=fo(c,!0)):g?(d=!1,f=Io(c,!0)):f=[]:gu(c)||Oe(c)?(f=a,Oe(a)?f=ro(u=a,so(u)):U(a)&&!R(a)||(f=Bo(c))):d=!1}d&&(s.set(c,f),o(f,c,r,i,s),s.delete(c)),Zp(e,n,f)}}function rg(e,t,n,r,o){e!==t&&Me(t,function(i,s){if(o||(o=new gt),U(i))ng(e,t,s,n,rg,r,o);else{var a=r?r(tg(e,s),i,s+"",e,t,o):void 0;void 0===a&&(a=i),Zp(e,s,a)}},so)}var og,ig=(og=function(e,t,n){rg(e,t,n)},Fs(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=og.length>3&&"function"==typeof o?(r--,o):void 0,i&&dn(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var s=t[n];s&&og(e,s,n,o)}return e}));async function sg(e,t=null,n={}){let r=!0,o=null,i=Gs();Ce(n)||(n={});let s=Ie(n,"disTouchMoveToHide",null);if(di(s)||(s=4),s=jo(s),!wu(e))return i.reject("eleImg is not a HTMLElement"),i;if(o=e,null!==t){if(!wu(t))return i.reject("eleGroup is not a HTMLElement"),i;r=!1,o=t}if(!r){let e=rr(t.querySelectorAll("img"));if(0===e)return i.reject("eleGroup does not contain any img"),i;1===e&&(r=!0)}let a={button:!1,navbar:!1,title:!1,toolbar:{zoomIn:4,zoomOut:4,oneToOne:4,reset:4,prev:0,play:0,next:0,rotateLeft:4,rotateRight:4,flipHorizontal:4,flipVertical:4},tooltip:!1,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!1,keyboard:!0};r||(a=function(){let e={button:!1,navbar:!1,title:!1,toolbar:{zoomIn:4,zoomOut:4,oneToOne:4,reset:4,prev:0,play:0,next:0,rotateLeft:4,rotateRight:4,flipHorizontal:4,flipVertical:4},tooltip:!1,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!1,keyboard:!0};return e.navbar=!0,e.toolbar.prev=4,e.toolbar.next=4,e}()),a=ig(a,Lo(n)),a.shown=function(){(async()=>{let e=null;await la(()=>(e=l.viewer,wu(e)));let t=!1,n=0,r=0,o=0;e.addEventListener("touchstart",e=>{let o=e.touches[0];n=o.clientX,r=o.clientY,((e,t)=>{let n=document.elementsFromPoint(e,t).find(e=>"IMG"===e.tagName);if(!wu(n))return!0;let r=n?.classList?.contains("viewer-move");return!r})(n,r)&&(t=!0)},{passive:!1}),e.addEventListener("touchmove",e=>{if(!t)return;let i=e.touches[0],s=i.clientX,a=i.clientY,c=s-n,l=a-r,u=Math.sqrt(c*c+l*l);o+=u,n=i.clientX,r=i.clientY},{passive:!1}),e.addEventListener("touchend",e=>{t&&(o<s&&(e.preventDefault(),e.stopPropagation(),l.hide(!0)),t=!1,o=0)},{passive:!1}),e.addEventListener("touchcancel",e=>{t=!1,o=0})})().catch(e=>{console.log(e)})};let c=!1;a.hide=function(){c||(c=!0,l.hide(!0))},a.hidden=function(){l.destroy(),i.resolve("close")};let l=new(0,_c().Viewer)(o,a);return l.show(),i}function ag(e,t){let n=new MouseEvent(t,{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(n)}function cg(e={}){let t=Ie(e,"kind","*"),n=Ie(e,"multiple");ir(n)||(n=!1);let r=Ie(e,"entireHierarchy");ir(r)||(r=!1),r&&!n&&(n=!0);let o=Ie(e,"sizeMbLimit");Se(o)||(o=1e3),o=wr(o);let i=Gs(),s="drf"+Qu(),a="GrpDomReadFile";Nh(`[name=${a}]`);let c=rp(t),l=`<div name="${a}" style="position:relative; width:0px; height:0px; overflow:hidden;"><input id="${s}" type="file" accept="${c}" ${n?"multiple":""} ${r?"webkitdirectory":""} style="opacity:0; position:absolute; top:-10000px; left:-10000px;"></div>`;zu(document.querySelector("body"),l);let u=Wh("#"+s),f=!1;function d(e){f=!0;let t=op(this,o);i.resolve(t),u.removeEventListener("change",d,!0),u.removeEventListener("cancel",h,!0),r||window.removeEventListener("focus",p),Nh(`[name=${a}]`)}function h(e){f||d.call(u,e)}function p(e){setTimeout(()=>{f||d.call(u,e)},1500)}return u.addEventListener("change",d,!0),u.addEventListener("cancel",h,!0),r||window.addEventListener("focus",p),ag(u,"click"),i}function lg(e){if(!Ee(e))return!1;let n="YYYY-MM-DDTHH:mm:ss";return e===t(e,n).format(n)}Vs()&&function(){try{return new MouseEvent("MouseEventPolyfillTest"),!1}catch(e){}let e=function(e,t){t=t||{bubbles:!1,cancelable:!1};let n=document.createEvent("MouseEvent");return n.initMouseEvent(e,t.bubbles,t.cancelable,window,0,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null),n};e.prototype=Event.prototype,window.MouseEvent=e}();var ug="top",fg="bottom",dg="right",hg="left",pg="auto",gg=[ug,fg,dg,hg],mg="start",Ag="end",yg="viewport",vg="popper",bg=gg.reduce(function(e,t){return e.concat([t+"-"+mg,t+"-"+Ag])},[]),Ig=[].concat(gg,[pg]).reduce(function(e,t){return e.concat([t,t+"-"+mg,t+"-"+Ag])},[]),wg=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function xg(e){return e?(e.nodeName||"").toLowerCase():null}function Cg(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Bg(e){return e instanceof Cg(e).Element||e instanceof Element}function Eg(e){return e instanceof Cg(e).HTMLElement||e instanceof HTMLElement}function Fg(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Cg(e).ShadowRoot||e instanceof ShadowRoot)}var kg={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Eg(o)&&xg(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Eg(r)&&xg(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function Sg(e){return e.split("-")[0]}var Dg=Math.max,Ng=Math.min,Qg=Math.round;function Mg(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Tg(){return!/^((?!chrome|android).)*safari/i.test(Mg())}function Lg(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Eg(e)&&(o=e.offsetWidth>0&&Qg(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Qg(r.height)/e.offsetHeight||1);var s=(Bg(e)?Cg(e):window).visualViewport,a=!Tg()&&n,c=(r.left+(a&&s?s.offsetLeft:0))/o,l=(r.top+(a&&s?s.offsetTop:0))/i,u=r.width/o,f=r.height/i;return{width:u,height:f,top:l,right:c+u,bottom:l+f,left:c,x:c,y:l}}function Ug(e){var t=Lg(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Rg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Hg(e){return Cg(e).getComputedStyle(e)}function qg(e){return["table","td","th"].indexOf(xg(e))>=0}function Og(e){return((Bg(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pg(e){return"html"===xg(e)?e:e.assignedSlot||e.parentNode||(Fg(e)?e.host:null)||Og(e)}function zg(e){return Eg(e)&&"fixed"!==Hg(e).position?e.offsetParent:null}function jg(e){for(var t=Cg(e),n=zg(e);n&&qg(n)&&"static"===Hg(n).position;)n=zg(n);return n&&("html"===xg(n)||"body"===xg(n)&&"static"===Hg(n).position)?t:n||function(e){var t=/firefox/i.test(Mg());if(/Trident/i.test(Mg())&&Eg(e)&&"fixed"===Hg(e).position)return null;var n=Pg(e);for(Fg(n)&&(n=n.host);Eg(n)&&["html","body"].indexOf(xg(n))<0;){var r=Hg(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function $g(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yg(e,t,n){return Dg(e,Ng(t,n))}function Gg(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Vg(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Jg={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Sg(n.placement),c=$g(a),l=[hg,dg].indexOf(a)>=0?"height":"width";if(i&&s){var u=function(e,t){return Gg("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Vg(e,gg))}(o.padding,n),f=Ug(i),d="y"===c?ug:hg,h="y"===c?fg:dg,p=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],g=s[c]-n.rects.reference[c],m=jg(i),A=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,y=p/2-g/2,v=u[d],b=A-f[l]-u[h],I=A/2-f[l]/2+y,w=Yg(v,I,b),x=c;n.modifiersData[r]=((t={})[x]=w,t.centerOffset=w-I,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Rg(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wg(e){return e.split("-")[1]}var _g={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xg(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=s.x,h=void 0===d?0:d,p=s.y,g=void 0===p?0:p,m="function"==typeof u?u({x:h,y:g}):{x:h,y:g};h=m.x,g=m.y;var A=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),v=hg,b=ug,I=window;if(l){var w=jg(n),x="clientHeight",C="clientWidth";if(w===Cg(n)&&"static"!==Hg(w=Og(n)).position&&"absolute"===a&&(x="scrollHeight",C="scrollWidth"),o===ug||(o===hg||o===dg)&&i===Ag)b=fg,g-=(f&&w===I&&I.visualViewport?I.visualViewport.height:w[x])-r.height,g*=c?1:-1;if(o===hg||(o===ug||o===fg)&&i===Ag)v=dg,h-=(f&&w===I&&I.visualViewport?I.visualViewport.width:w[C])-r.width,h*=c?1:-1}var B,E=Object.assign({position:a},l&&_g),F=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Qg(n*o)/o||0,y:Qg(r*o)/o||0}}({x:h,y:g},Cg(n)):{x:h,y:g};return h=F.x,g=F.y,c?Object.assign({},E,((B={})[b]=y?"0":"",B[v]=A?"0":"",B.transform=(I.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",B)):Object.assign({},E,((t={})[b]=y?g+"px":"",t[v]=A?h+"px":"",t.transform="",t))}var Kg={passive:!0};var Zg={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,s=r.resize,a=void 0===s||s,c=Cg(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach(function(e){e.addEventListener("scroll",n.update,Kg)}),a&&c.addEventListener("resize",n.update,Kg),function(){i&&l.forEach(function(e){e.removeEventListener("scroll",n.update,Kg)}),a&&c.removeEventListener("resize",n.update,Kg)}},data:{}},em={left:"right",right:"left",bottom:"top",top:"bottom"};function tm(e){return e.replace(/left|right|bottom|top/g,function(e){return em[e]})}var nm={start:"end",end:"start"};function rm(e){return e.replace(/start|end/g,function(e){return nm[e]})}function om(e){var t=Cg(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function im(e){return Lg(Og(e)).left+om(e).scrollLeft}function sm(e){var t=Hg(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function am(e){return["html","body","#document"].indexOf(xg(e))>=0?e.ownerDocument.body:Eg(e)&&sm(e)?e:am(Pg(e))}function cm(e,t){var n;void 0===t&&(t=[]);var r=am(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Cg(r),s=o?[i].concat(i.visualViewport||[],sm(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(cm(Pg(s)))}function lm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function um(e,t,n){return t===yg?lm(function(e,t){var n=Cg(e),r=Og(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;var l=Tg();(l||!l&&"fixed"===t)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a+im(e),y:c}}(e,n)):Bg(t)?function(e,t){var n=Lg(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):lm(function(e){var t,n=Og(e),r=om(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Dg(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Dg(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+im(e),c=-r.scrollTop;return"rtl"===Hg(o||n).direction&&(a+=Dg(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}(Og(e)))}function fm(e,t,n,r){var o="clippingParents"===t?function(e){var t=cm(Pg(e)),n=["absolute","fixed"].indexOf(Hg(e).position)>=0&&Eg(e)?jg(e):e;return Bg(n)?t.filter(function(e){return Bg(e)&&Rg(e,n)&&"body"!==xg(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(t,n){var o=um(e,n,r);return t.top=Dg(o.top,t.top),t.right=Ng(o.right,t.right),t.bottom=Ng(o.bottom,t.bottom),t.left=Dg(o.left,t.left),t},um(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function dm(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Sg(o):null,s=o?Wg(o):null,a=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case ug:t={x:a,y:n.y-r.height};break;case fg:t={x:a,y:n.y+n.height};break;case dg:t={x:n.x+n.width,y:c};break;case hg:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var l=i?$g(i):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case mg:t[l]=t[l]-(n[u]/2-r[u]/2);break;case Ag:t[l]=t[l]+(n[u]/2-r[u]/2)}}return t}function hm(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,s=void 0===i?e.strategy:i,a=n.boundary,c=void 0===a?"clippingParents":a,l=n.rootBoundary,u=void 0===l?yg:l,f=n.elementContext,d=void 0===f?vg:f,h=n.altBoundary,p=void 0!==h&&h,g=n.padding,m=void 0===g?0:g,A=Gg("number"!=typeof m?m:Vg(m,gg)),y=d===vg?"reference":vg,v=e.rects.popper,b=e.elements[p?y:d],I=fm(Bg(b)?b:b.contextElement||Og(e.elements.popper),c,u,s),w=Lg(e.elements.reference),x=dm({reference:w,element:v,strategy:"absolute",placement:o}),C=lm(Object.assign({},v,x)),B=d===vg?C:w,E={top:I.top-B.top+A.top,bottom:B.bottom-I.bottom+A.bottom,left:I.left-B.left+A.left,right:B.right-I.right+A.right},F=e.modifiersData.offset;if(d===vg&&F){var k=F[o];Object.keys(E).forEach(function(e){var t=[dg,fg].indexOf(e)>=0?1:-1,n=[ug,fg].indexOf(e)>=0?"y":"x";E[e]+=k[n]*t})}return E}function pm(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?Ig:c,u=Wg(r),f=u?a?bg:bg.filter(function(e){return Wg(e)===u}):gg,d=f.filter(function(e){return l.indexOf(e)>=0});0===d.length&&(d=f);var h=d.reduce(function(t,n){return t[n]=hm(e,{placement:n,boundary:o,rootBoundary:i,padding:s})[Sg(n)],t},{});return Object.keys(h).sort(function(e,t){return h[e]-h[t]})}var gm={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=void 0===h||h,g=n.allowedAutoPlacements,m=t.options.placement,A=Sg(m),y=c||(A===m||!p?[tm(m)]:function(e){if(Sg(e)===pg)return[];var t=tm(e);return[rm(e),t,rm(t)]}(m)),v=[m].concat(y).reduce(function(e,n){return e.concat(Sg(n)===pg?pm(t,{placement:n,boundary:u,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:g}):n)},[]),b=t.rects.reference,I=t.rects.popper,w=new Map,x=!0,C=v[0],B=0;B<v.length;B++){var E=v[B],F=Sg(E),k=Wg(E)===mg,S=[ug,fg].indexOf(F)>=0,D=S?"width":"height",N=hm(t,{placement:E,boundary:u,rootBoundary:f,altBoundary:d,padding:l}),Q=S?k?dg:hg:k?fg:ug;b[D]>I[D]&&(Q=tm(Q));var M=tm(Q),T=[];if(i&&T.push(N[F]<=0),a&&T.push(N[Q]<=0,N[M]<=0),T.every(function(e){return e})){C=E,x=!1;break}w.set(E,T)}if(x)for(var L=function(e){var t=v.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return C=t,"break"},U=p?3:1;U>0;U--){if("break"===L(U))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function mm(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Am(e){return[ug,dg,fg,hg].some(function(t){return e[t]>=0})}var ym={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,s=Ig.reduce(function(e,n){return e[n]=function(e,t,n){var r=Sg(e),o=[hg,ug].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[hg,dg].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,i),e},{}),a=s[t.placement],c=a.x,l=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=s}};var vm={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,h=void 0===d||d,p=n.tetherOffset,g=void 0===p?0:p,m=hm(t,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),A=Sg(t.placement),y=Wg(t.placement),v=!y,b=$g(A),I="x"===b?"y":"x",w=t.modifiersData.popperOffsets,x=t.rects.reference,C=t.rects.popper,B="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,E="number"==typeof B?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(w){if(i){var S,D="y"===b?ug:hg,N="y"===b?fg:dg,Q="y"===b?"height":"width",M=w[b],T=M+m[D],L=M-m[N],U=h?-C[Q]/2:0,R=y===mg?x[Q]:C[Q],H=y===mg?-C[Q]:-x[Q],q=t.elements.arrow,O=h&&q?Ug(q):{width:0,height:0},P=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=P[D],j=P[N],$=Yg(0,x[Q],O[Q]),Y=v?x[Q]/2-U-$-z-E.mainAxis:R-$-z-E.mainAxis,G=v?-x[Q]/2+U+$+j+E.mainAxis:H+$+j+E.mainAxis,V=t.elements.arrow&&jg(t.elements.arrow),J=V?"y"===b?V.clientTop||0:V.clientLeft||0:0,W=null!=(S=null==F?void 0:F[b])?S:0,_=M+G-W,X=Yg(h?Ng(T,M+Y-W-J):T,M,h?Dg(L,_):L);w[b]=X,k[b]=X-M}if(a){var K,Z="x"===b?ug:hg,ee="x"===b?fg:dg,te=w[I],ne="y"===I?"height":"width",re=te+m[Z],oe=te-m[ee],ie=-1!==[ug,hg].indexOf(A),se=null!=(K=null==F?void 0:F[I])?K:0,ae=ie?re:te-x[ne]-C[ne]-se+E.altAxis,ce=ie?te+x[ne]+C[ne]-se-E.altAxis:oe,le=h&&ie?function(e,t,n){var r=Yg(e,t,n);return r>n?n:r}(ae,te,ce):Yg(h?ae:re,te,h?ce:oe);w[I]=le,k[I]=le-te}t.modifiersData[r]=k}},requiresIfExists:["offset"]};function bm(e,t,n){void 0===n&&(n=!1);var r,o,i=Eg(t),s=Eg(t)&&function(e){var t=e.getBoundingClientRect(),n=Qg(t.width)/e.offsetWidth||1,r=Qg(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Og(t),c=Lg(e,s,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==xg(t)||sm(a))&&(l=(r=t)!==Cg(r)&&Eg(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:om(r)),Eg(t)?((u=Lg(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=im(a))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function Im(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}var wm={placement:"bottom",modifiers:[],strategy:"absolute"};function xm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Cm(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?wm:o;return function(e,t,n){void 0===n&&(n=i);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},wm,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],l=!1,u={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;f(),a.options=Object.assign({},i,a.options,o),a.scrollParents={reference:Bg(e)?cm(e):e.contextElement?cm(e.contextElement):[],popper:cm(t)};var s,l,d=function(e){var t=Im(e);return wg.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((s=[].concat(r,a.options.modifiers),l=s.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(l).map(function(e){return l[e]})));return a.orderedModifiers=d.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:a,name:t,instance:u,options:r}),s=function(){};c.push(i||s)}}),u.update()},forceUpdate:function(){if(!l){var e=a.elements,t=e.reference,n=e.popper;if(xm(t,n)){a.rects={reference:bm(t,jg(n),"fixed"===a.options.strategy),popper:Ug(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var o=a.orderedModifiers[r],i=o.fn,s=o.options,c=void 0===s?{}:s,f=o.name;"function"==typeof i&&(a=i({state:a,options:c,name:f,instance:u})||a)}else a.reset=!1,r=-1}}},update:(o=function(){return new Promise(function(e){u.forceUpdate(),e(a)})},function(){return s||(s=new Promise(function(e){Promise.resolve().then(function(){s=void 0,e(o())})})),s}),destroy:function(){f(),l=!0}};if(!xm(e,t))return u;function f(){c.forEach(function(e){return e()}),c=[]}return u.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}}var Bm=Cm({defaultModifiers:[Zg,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=dm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,c=void 0===a||a,l={placement:Sg(t.placement),variation:Wg(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Xg(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Xg(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},kg,ym,gm,vm,Jg,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=hm(t,{elementContext:"reference"}),a=hm(t,{altBoundary:!0}),c=mm(s,r),l=mm(a,o,i),u=Am(c),f=Am(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}),Em="tippy-content",Fm="tippy-arrow",km="tippy-svg-arrow",Sm={passive:!0,capture:!0},Dm=function(){return document.body};function Nm(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Qm(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Mm(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Tm(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)};var n}function Lm(e){return[].concat(e)}function Um(e,t){-1===e.indexOf(t)&&e.push(t)}function Rm(e){return[].slice.call(e)}function Hm(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function qm(){return document.createElement("div")}function Om(e){return["Element","Fragment"].some(function(t){return Qm(e,t)})}function Pm(e){return Om(e)?[e]:function(e){return Qm(e,"NodeList")}(e)?Rm(e):Array.isArray(e)?e:Rm(document.querySelectorAll(e))}function zm(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function jm(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function $m(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[r](t,n)})}function Ym(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var Gm={isTouch:!1},Vm=0;function Jm(){Gm.isTouch||(Gm.isTouch=!0,window.performance&&document.addEventListener("mousemove",Wm))}function Wm(){var e=performance.now();e-Vm<20&&(Gm.isTouch=!1,document.removeEventListener("mousemove",Wm)),Vm=e}function _m(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Xm,Km=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function Zm(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function eA(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function tA(e){return eA("\n %ctippy.js\n\n %c"+eA(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function nA(e){return[tA(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function rA(e,t){var n;e&&!Xm.has(t)&&(Xm.add(t),(n=console).warn.apply(n,nA(t)))}function oA(e,t){var n;e&&!Xm.has(t)&&(Xm.add(t),(n=console).error.apply(n,nA(t)))}Xm=new Set;var iA={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},sA=Object.assign({appendTo:Dm,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},iA,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),aA=Object.keys(sA);function cA(e){var t=(e.plugins||[]).reduce(function(t,n){var r,o=n.name,i=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=sA[o])?r:i);return t},{});return Object.assign({},e,t)}function lA(e,t){var n=Object.assign({},t,{content:Mm(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(cA(Object.assign({},sA,{plugins:t}))):aA).reduce(function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{})}(e,t.plugins));return n.aria=Object.assign({},sA.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function uA(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach(function(e){var n=function(e,t){var n=Object.assign({},e);return t.forEach(function(e){delete n[e]}),n}(sA,Object.keys(iA)),r=!function(e,t){return{}.hasOwnProperty.call(e,t)}(n,e);r&&(r=0===t.filter(function(t){return t.name===e}).length),rA(r,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}function fA(e,t){e.innerHTML=t}function dA(e){var t=qm();return!0===e?t.className=Fm:(t.className=km,Om(e)?t.appendChild(e):fA(t,e)),t}function hA(e,t){Om(t.content)?(fA(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?fA(e,t.content):e.textContent=t.content)}function pA(e){var t=e.firstElementChild,n=Rm(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(Em)}),arrow:n.find(function(e){return e.classList.contains(Fm)||e.classList.contains(km)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function gA(e){var t=qm(),n=qm();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=qm();function o(n,r){var o=pA(t),i=o.box,s=o.content,a=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||hA(s,e.props),r.arrow?a?n.arrow!==r.arrow&&(i.removeChild(a),i.appendChild(dA(r.arrow))):i.appendChild(dA(r.arrow)):a&&i.removeChild(a)}return r.className=Em,r.setAttribute("data-state","hidden"),hA(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}gA.$$tippy=!0;var mA=1,AA=[],yA=[];function vA(e,t){var n,r,o,i,s,a,c,l,u=lA(e,Object.assign({},sA,cA(Hm(t)))),f=!1,d=!1,h=!1,p=!1,g=[],m=Tm(V,u.interactiveDebounce),A=mA++,y=(l=u.plugins).filter(function(e,t){return l.indexOf(e)===t}),v={id:A,reference:e,popper:qm(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){if(rA(v.state.isDestroyed,Zm("setProps")),v.state.isDestroyed)return;M("onBeforeUpdate",[v,t]),Y();var n=v.props,r=lA(e,Object.assign({},n,Hm(t),{ignoreAttributes:!0}));v.props=r,$(),n.interactiveDebounce!==r.interactiveDebounce&&(U(),m=Tm(V,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?Lm(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):r.triggerTarget&&e.removeAttribute("aria-expanded");L(),Q(),w&&w(n,r);v.popperInstance&&(X(),Z().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));M("onAfterUpdate",[v,t])},setContent:function(e){v.setProps({content:e})},show:function(){rA(v.state.isDestroyed,Zm("show"));var e=v.state.isVisible,t=v.state.isDestroyed,n=!v.state.isEnabled,r=Gm.isTouch&&!v.props.touch,o=Nm(v.props.duration,0,sA.duration);if(e||t||n||r)return;if(k().hasAttribute("disabled"))return;if(M("onShow",[v],!1),!1===v.props.onShow(v))return;v.state.isVisible=!0,F()&&(I.style.visibility="visible");Q(),O(),v.state.isMounted||(I.style.transition="none");if(F()){var i=D();zm([i.box,i.content],0)}a=function(){var e;if(v.state.isVisible&&!p){if(p=!0,I.offsetHeight,I.style.transition=v.props.moveTransition,F()&&v.props.animation){var t=D(),n=t.box,r=t.content;zm([n,r],o),jm([n,r],"visible")}T(),L(),Um(yA,v),null==(e=v.popperInstance)||e.forceUpdate(),M("onMount",[v]),v.props.animation&&F()&&function(e,t){z(e,t)}(o,function(){v.state.isShown=!0,M("onShown",[v])})}},function(){var e,t=v.props.appendTo,n=k();e=v.props.interactive&&t===Dm||"parent"===t?n.parentNode:Mm(t,[n]);e.contains(I)||e.appendChild(I);v.state.isMounted=!0,X(),rA(v.props.interactive&&t===sA.appendTo&&n.nextElementSibling!==I,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){rA(v.state.isDestroyed,Zm("hide"));var e=!v.state.isVisible,t=v.state.isDestroyed,n=!v.state.isEnabled,r=Nm(v.props.duration,1,sA.duration);if(e||t||n)return;if(M("onHide",[v],!1),!1===v.props.onHide(v))return;v.state.isVisible=!1,v.state.isShown=!1,p=!1,f=!1,F()&&(I.style.visibility="hidden");if(U(),P(),Q(!0),F()){var o=D(),i=o.box,s=o.content;v.props.animation&&(zm([i,s],r),jm([i,s],"hidden"))}T(),L(),v.props.animation?F()&&function(e,t){z(e,function(){!v.state.isVisible&&I.parentNode&&I.parentNode.contains(I)&&t()})}(r,v.unmount):v.unmount()},hideWithInteractivity:function(e){rA(v.state.isDestroyed,Zm("hideWithInteractivity")),S().addEventListener("mousemove",m),Um(AA,m),m(e)},enable:function(){v.state.isEnabled=!0},disable:function(){v.hide(),v.state.isEnabled=!1},unmount:function(){rA(v.state.isDestroyed,Zm("unmount")),v.state.isVisible&&v.hide();if(!v.state.isMounted)return;K(),Z().forEach(function(e){e._tippy.unmount()}),I.parentNode&&I.parentNode.removeChild(I);yA=yA.filter(function(e){return e!==v}),v.state.isMounted=!1,M("onHidden",[v])},destroy:function(){if(rA(v.state.isDestroyed,Zm("destroy")),v.state.isDestroyed)return;v.clearDelayTimeouts(),v.unmount(),Y(),delete e._tippy,v.state.isDestroyed=!0,M("onDestroy",[v])}};if(!u.render)return oA(!0,"render() function has not been supplied."),v;var b=u.render(v),I=b.popper,w=b.onUpdate;I.setAttribute("data-tippy-root",""),I.id="tippy-"+v.id,v.popper=I,e._tippy=v,I._tippy=v;var x=y.map(function(e){return e.fn(v)}),C=e.hasAttribute("aria-expanded");return $(),L(),Q(),M("onCreate",[v]),u.showOnCreate&&ee(),I.addEventListener("mouseenter",function(){v.props.interactive&&v.state.isVisible&&v.clearDelayTimeouts()}),I.addEventListener("mouseleave",function(){v.props.interactive&&v.props.trigger.indexOf("mouseenter")>=0&&S().addEventListener("mousemove",m)}),v;function B(){var e=v.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===B()[0]}function F(){var e;return!(null==(e=v.props.render)||!e.$$tippy)}function k(){return c||e}function S(){var e,t,n=k().parentNode;return n?null!=(t=Lm(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function D(){return pA(I)}function N(e){return v.state.isMounted&&!v.state.isVisible||Gm.isTouch||i&&"focus"===i.type?0:Nm(v.props.delay,e?0:1,sA.delay)}function Q(e){void 0===e&&(e=!1),I.style.pointerEvents=v.props.interactive&&!e?"":"none",I.style.zIndex=""+v.props.zIndex}function M(e,t,n){var r;(void 0===n&&(n=!0),x.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(r=v.props)[e].apply(r,t)}function T(){var t=v.props.aria;if(t.content){var n="aria-"+t.content,r=I.id;Lm(v.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(v.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}})}}function L(){!C&&v.props.aria.expanded&&Lm(v.props.triggerTarget||e).forEach(function(e){v.props.interactive?e.setAttribute("aria-expanded",v.state.isVisible&&e===k()?"true":"false"):e.removeAttribute("aria-expanded")})}function U(){S().removeEventListener("mousemove",m),AA=AA.filter(function(e){return e!==m})}function R(t){if(!Gm.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!v.props.interactive||!Ym(I,n)){if(Lm(v.props.triggerTarget||e).some(function(e){return Ym(e,n)})){if(Gm.isTouch)return;if(v.state.isVisible&&v.props.trigger.indexOf("click")>=0)return}else M("onClickOutside",[v,t]);!0===v.props.hideOnClick&&(v.clearDelayTimeouts(),v.hide(),d=!0,setTimeout(function(){d=!1}),v.state.isMounted||P())}}}function H(){h=!0}function q(){h=!1}function O(){var e=S();e.addEventListener("mousedown",R,!0),e.addEventListener("touchend",R,Sm),e.addEventListener("touchstart",q,Sm),e.addEventListener("touchmove",H,Sm)}function P(){var e=S();e.removeEventListener("mousedown",R,!0),e.removeEventListener("touchend",R,Sm),e.removeEventListener("touchstart",q,Sm),e.removeEventListener("touchmove",H,Sm)}function z(e,t){var n=D().box;function r(e){e.target===n&&($m(n,"remove",r),t())}if(0===e)return t();$m(n,"remove",s),$m(n,"add",r),s=r}function j(t,n,r){void 0===r&&(r=!1),Lm(v.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),g.push({node:e,eventType:t,handler:n,options:r})})}function $(){var e;E()&&(j("touchstart",G,{passive:!0}),j("touchend",J,{passive:!0})),(e=v.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(j(e,G),e){case"mouseenter":j("mouseleave",J);break;case"focus":j(Km?"focusout":"blur",W);break;case"focusin":j("focusout",W)}})}function Y(){g.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)}),g=[]}function G(e){var t,n=!1;if(v.state.isEnabled&&!_(e)&&!d){var r="focus"===(null==(t=i)?void 0:t.type);i=e,c=e.currentTarget,L(),!v.state.isVisible&&Qm(e,"MouseEvent")&&AA.forEach(function(t){return t(e)}),"click"===e.type&&(v.props.trigger.indexOf("mouseenter")<0||f)&&!1!==v.props.hideOnClick&&v.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function V(e){var t=e.target,n=k().contains(t)||I.contains(t);if("mousemove"!==e.type||!n){var r=Z().concat(I).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null}).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every(function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,s=o.placement.split("-")[0],a=o.modifiersData.offset;if(!a)return!0;var c="bottom"===s?a.top.y:0,l="top"===s?a.bottom.y:0,u="right"===s?a.left.x:0,f="left"===s?a.right.x:0,d=t.top-r+c>i,h=r-t.bottom-l>i,p=t.left-n+u>i,g=n-t.right-f>i;return d||h||p||g})})(r,e)&&(U(),te(e))}}function J(e){_(e)||v.props.trigger.indexOf("click")>=0&&f||(v.props.interactive?v.hideWithInteractivity(e):te(e))}function W(e){v.props.trigger.indexOf("focusin")<0&&e.target!==k()||v.props.interactive&&e.relatedTarget&&I.contains(e.relatedTarget)||te(e)}function _(e){return!!Gm.isTouch&&E()!==e.type.indexOf("touch")>=0}function X(){K();var t=v.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,s=t.moveTransition,c=F()?pA(I).arrow:null,l=i?{getBoundingClientRect:i,contextElement:i.contextElement||k()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(F()){var n=D().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}},f=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},u];F()&&c&&f.push({name:"arrow",options:{element:c,padding:3}}),f.push.apply(f,(null==n?void 0:n.modifiers)||[]),v.popperInstance=Bm(l,I,Object.assign({},n,{placement:r,onFirstUpdate:a,modifiers:f}))}function K(){v.popperInstance&&(v.popperInstance.destroy(),v.popperInstance=null)}function Z(){return Rm(I.querySelectorAll("[data-tippy-root]"))}function ee(e){v.clearDelayTimeouts(),e&&M("onTrigger",[v,e]),O();var t=N(!0),r=B(),o=r[0],i=r[1];Gm.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout(function(){v.show()},t):v.show()}function te(e){if(v.clearDelayTimeouts(),M("onUntrigger",[v,e]),v.state.isVisible){if(!(v.props.trigger.indexOf("mouseenter")>=0&&v.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=N(!1);t?r=setTimeout(function(){v.state.isVisible&&v.hide()},t):o=requestAnimationFrame(function(){v.hide()})}}else P()}}function bA(e,t){void 0===t&&(t={});var n=sA.plugins.concat(t.plugins||[]);!function(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;oA(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),oA(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),uA(t,n),document.addEventListener("touchstart",Jm,Sm),window.addEventListener("blur",_m);var r=Object.assign({},t,{plugins:n}),o=Pm(e),i=Om(r.content),s=o.length>1;rA(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var a=o.reduce(function(e,t){var n=t&&vA(t,r);return n&&e.push(n),e},[]);return Om(e)?a[0]:a}function IA(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}bA.defaultProps=sA,bA.setDefaultProps=function(e){uA(e,[]),Object.keys(e).forEach(function(t){sA[t]=e[t]})},bA.currentInput=Gm,Object.assign({},kg,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),bA.setDefaultProps({render:gA});IA('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}');async function wA(e,t={}){if(!ls(e))throw new Error("invalid fun");let n=Ie(t,"width");n=Ee(n)?_i(n):Se(n)?wr(n):null;let r=Ie(t,"height");r=Ee(r)?_i(r):Se(r)?wr(r):null;let o=document.createElement("div");Se(n)&&(o.style.width=`${n}px`),Se(r)&&(o.style.height=`${r}px`);let i=document.createElement("div");i.style.position="absolute",i.style.top=0,i.style.left=0,i.style.zIndex=-1,i.appendChild(o);let s=document.createElement("div");s.style.position="relative",s.appendChild(i);let a,c=document.createElement("div");c.style.position="fixed",c.style.zIndex=-1,c.appendChild(s),Qh(document.querySelector("body"),c);let l=e(o);return a=ca(l)?await l:l,Nh(c),a}function xA(e){if(!ls(e))throw new Error("fn is not a function");return function(){let t=Gs(),n=null,r=null;try{n=e.apply(this,arguments)}catch(e){r=e}return null!==r?t.resolve({state:"error",msg:r}):ca(n)?n.then(e=>{t.resolve({state:"success",msg:e})}).catch(e=>{"cancelled"===Ie(e,"reason")?t.resolve({state:"cancelled",msg:""}):t.resolve({state:"error",msg:e})}):t.resolve({state:"success",msg:n}),t}}IA(".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}");let CA=xA;function BA(e){if(!xr(e))return!1;return jo(e)<0}function EA(e=0){let t=0,n=[];BA(e)&&(e=0),e=jo(e);let r=Ho();return r.get=function(){if(n.length>0){return t+=1,n.splice(0,1)[0]}return null},r.cb=function(){t-=1,t<0&&(t=0),n.length>0&&r.emit("message",n)},r.push=function(o){n.push(o),(e<=0||t<e)&&r.emit("message",n)},r.clear=function(){t=0,n=[]},r}function FA(e=0,t=!1){return new function(e,t){let n=null;di(e)||(e=0),e=jo(e),or(t)||(t=!1);let r=EA(e);return r.on("message",async function(e){let t=r.get();if(!t)return;await ua(1);let n,o=Ie(t,"id"),i=Ie(t,"fun"),s=Ie(t,"input");n=ls(i)?await CA(i)(...s):{state:"error",msg:"fun is not a function"},r.emit(o,n),r.cb()}),function(e,...o){let i=Gs(),s=Qu();n=s;let a={id:s,fun:e,input:o};return r.push(a),r.once(s,e=>{t?s===n?"success"===e.state?i.resolve(e.msg):i.reject(e.msg):i.reject({reason:"cancelled"}):"success"===e.state?i.resolve(e.msg):i.reject(e.msg)}),i}}(e,t)}function kA(e,t){Vs()?Ee(e)?ju()?function(e,t){window.navigator.msSaveOrOpenBlob(t,e)}(e,t):function(e,t){let n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}(e,t):console.log("no filename"):console.log("no window")}function SA(e,t="data"){if(!xe(e))return{error:"sheet is not an object"};if(!we(Ie(e,"rows")))return{error:"sheet.rows is not an array"};Ee(t)||(t="data");let n={sheets:[]};return n.sheets.push({...e,name:t}),n}function DA(e,t="data"){if(!we(e))return{error:"data is not an array"};Ee(t)||(t="data");let n=null,r=lr(e);return De(r,"error")?r:(n=SA(r,t),De(n,"error"),n)}class NA extends Error{name="HucreError";constructor(e,t){super(e,t)}}class QA extends NA{details;name="ParseError";constructor(e,t,n){super(e,n),this.details=t}}class MA extends NA{name="ZipError"}class TA extends NA{name="XmlError"}class LA extends NA{name="InvalidArgumentError"}class UA extends NA{name="EncryptedFileError";format;constructor(e,t){super(t??(e?`File is password-protected (${e.toUpperCase()} encrypted with the OLE2/CFB container). Provide a password in options to decrypt it.`:"File is password-protected. Provide a password in options.")),this.format=e}}class RA extends NA{name="DecryptionError";constructor(e="Failed to decrypt: incorrect password or corrupt encryption data.",t){super(e,t)}}const HA=536870888;class qA extends QA{}function OA(e,t){try{return new TextDecoder("utf-8").decode(e)}catch(n){if(n instanceof RangeError||"ERR_STRING_TOO_LONG"===n?.code||e.length>HA)throw function(e,t){return new qA(`Part "${e}" is ${t.toLocaleString("en-US")} bytes, over the ${HA.toLocaleString("en-US")}-character maximum string length this runtime supports, so it cannot be read into memory whole.\n - streamXlsxRows(input) reads a worksheet of any size, a row at a time.\n - The workbook is not damaged; this is a limit of the buffered reader.`)}(t,e.length);throw n}}const PA={amp:"&",lt:"<",gt:">",quot:'"',apos:"'"};function zA(e){return-1===e.indexOf("\r")?e:e.replace(/\r\n?/g,"\n")}function jA(e){return-1===e.indexOf("&")?e:e.replace(/&(#x[0-9a-fA-F]+|#[0-9]+|[a-zA-Z]+);/g,(e,t)=>{if(35===t.charCodeAt(0)){const n=120===t.charCodeAt(1)||88===t.charCodeAt(1)?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Number.isNaN(n)||(n<0||n>1114111)?e:String.fromCodePoint(n)}return PA[t]??e})}function $A(e){return-1===e.indexOf("_x")?e:e.replace(/_x([0-9A-Fa-f]{4})_/g,(e,t)=>String.fromCharCode(parseInt(t,16)))}function YA(e){const t={};let n=0;const r=e.length;for(;n<r;){for(;n<r&&GA(e.charCodeAt(n));)n++;if(n>=r)break;const o=n;for(;n<r&&61!==e.charCodeAt(n)&&!GA(e.charCodeAt(n));)n++;const i=e.slice(o,n);if(!i)break;for(;n<r&&GA(e.charCodeAt(n));)n++;if(n>=r||61!==e.charCodeAt(n)){t[i]="";continue}for(n++;n<r&&GA(e.charCodeAt(n));)n++;if(n>=r)break;const s=e.charCodeAt(n);if(34===s||39===s){n++;const o=n;for(;n<r&&e.charCodeAt(n)!==s;)n++;t[i]=jA(zA(e.slice(o,n))),n++}else{const o=n;for(;n<r&&!GA(e.charCodeAt(n));)n++;t[i]=jA(zA(e.slice(o,n)))}}return t}function GA(e){return 32===e||9===e||10===e||13===e}function VA(e,t){const n=65279===e.charCodeAt(0)?e.slice(1):e,r=n.length;let o=0;function i(e){let t=1,i=1;for(let e=0;e<o&&e<r;e++)10===n.charCodeAt(e)?(t++,i=1):i++;throw new TA(`${e} at line ${t}, column ${i}`)}for(;o<r;){if(60===n.charCodeAt(o)){const e=o+1<r?n.charCodeAt(o+1):0;if(33===e){if("\x3c!--"===n.slice(o,o+4)){const e=n.indexOf("--\x3e",o+4);-1===e&&i("Unterminated comment"),o=e+3;continue}if("<![CDATA["===n.slice(o,o+9)){const e=n.indexOf("]]>",o+9);-1===e&&i("Unterminated CDATA section");const r=n.slice(o+9,e);t.onCData?.(r),t.onText?.(r),o=e+3;continue}const e=n.indexOf(">",o+2);-1===e&&i("Unterminated declaration"),o=e+1;continue}if(63===e){const e=n.indexOf("?>",o+2);-1===e&&i("Unterminated processing instruction"),o=e+2;continue}if(47===e){const e=n.indexOf(">",o+2);-1===e&&i("Unterminated closing tag");const r=n.slice(o+2,e).trim();t.onCloseTag?.(r),o=e+1;continue}let s=o+1,a=0;for(;s<r;){const e=n.charCodeAt(s);if(a)e===a&&(a=0);else if(34===e||39===e)a=e;else if(62===e)break;s++}s>=r&&i("Unterminated opening tag");const c=47===n.charCodeAt(s-1),l=n.slice(o+1,c?s-1:s);let u=0;const f=l.length;for(;u<f&&!GA(l.charCodeAt(u));)u++;const d=l.slice(0,u),h=u<f?l.slice(u+1):"",p=h?YA(h):{};t.onOpenTag?.(d,p),c&&t.onCloseTag?.(d),o=s+1;continue}const e=o;for(;o<r&&60!==n.charCodeAt(o);)o++;const s=n.slice(e,o);if(s){const e=jA(zA(s));t.onText?.(e)}}}const JA=262144,WA=64;function _A(e,t,n){let r=n;const o=e.lastIndexOf("&",r-1);o>=t&&n-o<=WA&&-1===e.indexOf(";",o)&&(r=o);const i=r>t?e.charCodeAt(r-1):0;return(i>=55296&&i<=56319||13===i)&&r--,r>t?r:t}function XA(e,t,n,r){if(e)throw new TA(r);return t.slice(n)}function KA(e,t,n,r){let o=0;const i=e.length;for(;o<i;){if(60===e.charCodeAt(o)){const s=o+1<i?e.charCodeAt(o+1):-1;if(-1===s&&!n)return e.slice(o);if(33===s){if("\x3c!--"===e.slice(o,o+4)){const t=e.indexOf("--\x3e",o+4);if(-1===t)return XA(n&&r,e,o,"Unterminated comment");o=t+3;continue}if("<![CDATA["===e.slice(o,o+9)){const i=e.indexOf("]]>",o+9);if(-1===i)return XA(n&&r,e,o,"Unterminated CDATA section");const s=e.slice(o+9,i);t.onCData?.(s),t.onText?.(s),o=i+3;continue}if(!n&&i-o<9)return e.slice(o);const s=e.indexOf(">",o+2);if(-1===s)return XA(n&&r,e,o,"Unterminated declaration");o=s+1;continue}if(63===s){const t=e.indexOf("?>",o+2);if(-1===t)return XA(n&&r,e,o,"Unterminated processing instruction");o=t+2;continue}if(47===s){const i=e.indexOf(">",o+2);if(-1===i)return XA(n&&r,e,o,"Unterminated closing tag");const s=e.slice(o+2,i).trim();t.onCloseTag?.(s),o=i+1;continue}let a=o+1,c=0;for(;a<i;){const t=e.charCodeAt(a);if(c)t===c&&(c=0);else if(34===t||39===t)c=t;else if(62===t)break;a++}if(a>=i)return XA(n&&r,e,o,"Unterminated opening tag");const l=47===e.charCodeAt(a-1),u=e.slice(o+1,l?a-1:a);let f=0;const d=u.length;for(;f<d&&!GA(u.charCodeAt(f));)f++;const h=u.slice(0,f),p=f<d?u.slice(f+1):"",g=p?YA(p):{};t.onOpenTag?.(h,g),l&&t.onCloseTag?.(h),o=a+1;continue}const s=o;for(;o<i&&60!==e.charCodeAt(o);)o++;if(o>=i&&!n){if(i-s>JA){const n=_A(e,s,i);if(n>s)return t.onText?.(jA(zA(e.slice(s,n)))),e.slice(n)}return e.slice(s)}const a=e.slice(s,o);if(a){const e=jA(zA(a));t.onText?.(e)}}return""}function ZA(e){const t={tag:"",local:"",prefix:"",attrs:{},children:[]},n=[t];if(VA(e,{onOpenTag(e,t){const{local:r,prefix:o}=function(e){const t=e.indexOf(":");return-1===t?{local:e,prefix:""}:{prefix:e.slice(0,t),local:e.slice(t+1)}}(e),i={tag:e,local:r,prefix:o,attrs:t,children:[]};n[n.length-1].children.push(i),n.push(i)},onCloseTag(e){if(n.length<=1)throw new TA("Unexpected closing tag: no matching open tag");const t=n[n.length-1];if(t.tag!==e)throw new TA(`Mismatched closing tag: expected </${t.tag}> but found </${e}>`);if(n.pop(),t.children.length>0){const e=[];for(const n of t.children)"string"==typeof n&&e.push(n);e.length>0&&(t.text=e.join(""))}},onText(e){n[n.length-1].children.push(e)}}),n.length>1){const e=n[n.length-1].tag;throw new TA(`Unexpected end of document: unclosed element <${e}>`)}if(0===t.children.length)throw new TA("Empty document: no root element found");for(const e of t.children)if("string"!=typeof e)return e;throw new TA("No root element found in document")}function ey(e,t){for(const n of e.children)if("string"!=typeof n&&n.local===t)return n}function ty(e){const t=[];for(const n of e.children)"string"!=typeof n&&t.push(n);return t}function ny(e,t){if(e.local===t)return e;for(const n of e.children){if("string"==typeof n)continue;const e=ny(n,t);if(e)return e}}function ry(e,t){const n=ey(e,t);if(!n)return"";let r="";for(const e of n.children)"string"==typeof e&&(r+=e);return r}function oy(e,t){if(void 0===e)return t;const n=parseInt(e,10);return Number.isNaN(n)?t:n}function iy(e){const t=ZA(e),n=[];for(const e of ty(t)){if("threadedComment"!==e.local)continue;const t=e.attrs.id,r=e.attrs.personId;if(!t||!r)continue;const o={id:t,personId:r,text:ry(e,"text")};e.attrs.ref&&(o.ref=e.attrs.ref),e.attrs.parentId&&(o.parentId=e.attrs.parentId),e.attrs.dT&&(o.date=e.attrs.dT),"1"!==e.attrs.done&&"true"!==e.attrs.done||(o.done=!0);const i=ey(e,"mentions");if(i){const e=[];for(const t of ty(i)){if("mention"!==t.local)continue;const n=t.attrs.mentionpersonId,r=t.attrs.mentionId;n&&r&&e.push({mentionPersonId:n,mentionId:r,startIndex:oy(t.attrs.startIndex,0),length:oy(t.attrs.length,0)})}e.length>0&&(o.mentions=e)}n.push(o)}return n}function sy(e){const t=ZA(e),n=[];for(const e of t.children){if("string"==typeof e)continue;if("Relationship"===(e.local||e.tag)){const t=e.attrs.Id??"",r=e.attrs.Type??"",o=e.attrs.Target??"",i=e.attrs.TargetMode;if(t&&r&&o){const e={id:t,type:r,target:o};i&&(e.targetMode=i),n.push(e)}}}return n}function ay(e,t){if(t.startsWith("/"))return t.slice(1);const n=e.split("/").filter(Boolean),r=t.split("/").filter(Boolean);for(const e of r)".."===e?n.pop():"."!==e&&n.push(e);return n.join("/")}function cy(e){const t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}function ly(e){for(const t of Object.keys(e))if(t.endsWith(":id")&&e[t].startsWith("rId"))return e[t]}const uy=new Set(["n","s","b","e","str"]);function fy(e,t){const n=ey(ZA(e),"externalBook");let r,o="";if(n&&t){const e=sy(t),i=n.attrs["r:id"]??n.attrs.id,s=i?e.find(e=>e.id===i):void 0;s&&(o=s.target,"External"!==s.targetMode&&"Internal"!==s.targetMode||(r=s.targetMode))}const i=function(e){const t=e?ey(e,"sheetNames"):void 0;if(!t)return[];const n=[];for(const e of ty(t))"sheetName"===e.local&&n.push(e.attrs.val??"");return n}(n),s=function(e){const t=e?ey(e,"sheetDataSet"):void 0;if(!t)return[];const n=[];for(const e of ty(t)){if("sheetData"!==e.local)continue;const t=oy(e.attrs.sheetId,0),r=[];for(const t of ty(e))if("row"===t.local)for(const e of ty(t)){if("cell"!==e.local)continue;const t=e.attrs.r??"";if(!t)continue;const n=e.attrs.t??"n",o=uy.has(n)?n:"n",i=ry(e,"v");r.push({ref:t,type:o,value:dy(o,i)})}n.push({sheetId:t,cells:r})}return n}(n),a=function(e){const t=e?ey(e,"definedNames"):void 0;if(!t)return[];const n=[];for(const e of ty(t)){if("definedName"!==e.local)continue;const t={name:e.attrs.name??""};if(e.attrs.refersTo&&(t.refersTo=e.attrs.refersTo),void 0!==e.attrs.sheetId){const n=oy(e.attrs.sheetId,NaN);Number.isNaN(n)||(t.sheetId=n)}t.name&&n.push(t)}return n}(n),c={target:o,sheetNames:i,sheetData:s};return r&&(c.targetMode=r),a&&a.length>0&&(c.definedNames=a),c}function dy(e,t){switch(e){case"n":case"s":{const e=Number(t);return Number.isFinite(e)?e:0}case"b":return"1"===t||"true"===t;case"e":case"str":return t}}function hy(e){const t=ey(e,"pic");if(!t)return;const n=ey(t,"nvPicPr"),r=n?ey(n,"cNvPr"):void 0,o=r?.attrs.name;if(!o)return;const i=ey(t,"blipFill"),s=i?ey(i,"blip"):void 0,a=s?.attrs["r:embed"]??s?.attrs.embed;if(!a)return;const c={id:o,embedRId:a},l=r?.attrs.descr;return l&&(c.description=l),c}function py(e){const t=ZA(e),n="pivotCacheDefinition"===t.local?t:ey(t,"pivotCacheDefinition");if(!n)return;const r={cacheId:0,fieldNames:[]},o=ey(n,"cacheSource");if(o){const e=o.attrs.type;"worksheet"!==e&&"external"!==e&&"consolidation"!==e&&"scenario"!==e||(r.sourceType=e);const t=ey(o,"worksheetSource");t&&(t.attrs.ref?r.sourceRef=t.attrs.ref:t.attrs.name&&(r.sourceRef=t.attrs.name),t.attrs.sheet&&(r.sourceSheet=t.attrs.sheet))}const i=ey(n,"cacheFields");if(i)for(const e of ty(i)){if("cacheField"!==e.local)continue;const t=e.attrs.name??"";r.fieldNames.push(t)}return r}function gy(e){const t=ZA(e),n="pivotTableDefinition"===t.local?t:ey(t,"pivotTableDefinition");if(!n)return;const r=n.attrs.name;if(!r)return;const o=oy(n.attrs.cacheId,NaN),i={name:r,cacheId:Number.isNaN(o)?0:o,location:"",fields:[]},s=ey(n,"location");if(s){s.attrs.ref&&(i.location=s.attrs.ref);const e=oy(s.attrs.firstHeaderRow,NaN);Number.isNaN(e)||(i.firstHeaderRow=e);const t=oy(s.attrs.firstDataRow,NaN);Number.isNaN(t)||(i.firstDataRow=t);const n=oy(s.attrs.firstDataCol,NaN);Number.isNaN(n)||(i.firstDataCol=n);const r=oy(s.attrs.rowPageCount,NaN);Number.isNaN(r)||(i.rowPageCount=r);const o=oy(s.attrs.colPageCount,NaN);Number.isNaN(o)||(i.colPageCount=o)}const a=ey(n,"pivotFields"),c=[];if(a)for(const e of ty(a)){if("pivotField"!==e.local)continue;const t=e.attrs.axis,n="1"===e.attrs.dataField||"true"===e.attrs.dataField;let r="hidden";"axisRow"===t?r="row":"axisCol"===t?r="col":"axisPage"===t?r="page":("axisValues"===t||n)&&(r="data"),c.push({axis:r,raw:e})}const l=ey(n,"dataFields"),u=new Map;if(l)for(const e of ty(l)){if("dataField"!==e.local)continue;const t=oy(e.attrs.fld,NaN);if(Number.isNaN(t))continue;const n={};e.attrs.name&&(n.name=e.attrs.name);const r=Ay(e.attrs.subtotal);r&&(n.subtotal=r),u.set(t,n)}for(let e=0;e<c.length;e++){const{axis:t}=c[e],n={name:`field${e+1}`,axis:t};if("data"===t){const t=u.get(e);n.function=t?.subtotal?t.subtotal:"sum",t?.name&&(n.displayName=t.name)}i.fields.push(n)}const f=ey(n,"pivotTableStyleInfo");return f?.attrs.name&&(i.styleName=f.attrs.name),n.attrs.dataCaption&&(i.dataCaption=n.attrs.dataCaption),i}function my(e,t){for(let n=0;n<e.fields.length;n++){const r=t.fieldNames[n];r&&(e.fields[n].name=r)}}function Ay(e){if(e)switch(e){case"sum":case"count":case"average":case"max":case"min":case"product":case"countNums":case"stdDev":case"stdDevp":case"var":case"varp":return e;case"countA":return"count";default:return}}function yy(e){const t=ZA(e),n=[];for(const e of ty(t)){if("slicer"!==e.local)continue;const t=e.attrs.name,r=e.attrs.cache;if(!t||!r)continue;const o={name:t,cache:r};if(e.attrs.caption&&(o.caption=e.attrs.caption),void 0!==e.attrs.columnCount){const t=oy(e.attrs.columnCount,NaN);Number.isNaN(t)||(o.columnCount=t)}if(e.attrs.style&&(o.style=e.attrs.style),e.attrs.sortOrder&&(o.sortOrder=e.attrs.sortOrder),void 0!==e.attrs.rowHeight){const t=oy(e.attrs.rowHeight,NaN);Number.isNaN(t)||(o.rowHeight=t)}n.push(o)}return n}function vy(e){const t=ZA(e),n="slicerCacheDefinition"===t.local?t:ey(t,"slicerCacheDefinition");if(!n)return;const r=n.attrs.name;if(!r)return;const o={name:r};n.attrs.sourceName&&(o.sourceName=n.attrs.sourceName);const i=wy(n);i.length>0&&(o.pivotTables=i);const s=function(e){const t=ey(e,"extLst");if(!t)return;for(const e of ty(t)){if("ext"!==e.local)continue;const t=ey(e,"tableSlicerCache");if(!t)continue;const n=t.attrs.name??t.attrs.tableId;if(!n)continue;const r={name:n};return t.attrs.column&&(r.column=t.attrs.column),r}return}(n);return s&&(o.tableSource=s),o}function by(e){const t=ZA(e),n=[];for(const e of ty(t)){if("timeline"!==e.local)continue;const t=e.attrs.name,r=e.attrs.cache;if(!t||!r)continue;const o={name:t,cache:r};e.attrs.caption&&(o.caption=e.attrs.caption),e.attrs.style&&(o.style=e.attrs.style),e.attrs.level&&(o.level=e.attrs.level),void 0!==e.attrs.showHeader&&(o.showHeader=xy(e.attrs.showHeader)),void 0!==e.attrs.showSelectionLabel&&(o.showSelectionLabel=xy(e.attrs.showSelectionLabel)),void 0!==e.attrs.showTimeLevel&&(o.showTimeLevel=xy(e.attrs.showTimeLevel)),void 0!==e.attrs.showHorizontalScrollbar&&(o.showHorizontalScrollbar=xy(e.attrs.showHorizontalScrollbar)),n.push(o)}return n}function Iy(e){const t=ZA(e),n="timelineCacheDefinition"===t.local?t:ey(t,"timelineCacheDefinition");if(!n)return;const r=n.attrs.name;if(!r)return;const o={name:r};n.attrs.sourceName&&(o.sourceName=n.attrs.sourceName);const i=wy(n);return i.length>0&&(o.pivotTables=i),o}function wy(e){const t=ey(e,"pivotTables");if(!t)return[];const n=[];for(const e of ty(t)){if("pivotTable"!==e.local)continue;const t=e.attrs.name;if(!t)continue;const r=oy(e.attrs.tabId,NaN);Number.isNaN(r)||n.push({tabId:r,name:t})}return n}function xy(e){return"1"===e||"true"===e}function Cy(e){return`_x${e.toString(16).toUpperCase().padStart(4,"0")}_`}function By(e){return e>=0&&e<=8||11===e||12===e||e>=14&&e<=31}function Ey(e,t="ooxml"){let n="",r=0;for(let o=0;o<e.length;o++){const i=e.charCodeAt(o);let s;switch(i){case 38:s="&amp;";break;case 60:s="&lt;";break;case 62:s="&gt;";break;case 13:s="charRef"===t?"&#13;":Cy(13);break;default:By(i)&&(s=Cy(i))}s&&(n+=e.slice(r,o)+s,r=o+1)}return 0===r?e:n+e.slice(r)}function Fy(e){let t="",n=0;for(let r=0;r<e.length;r++){let o;switch(e.charCodeAt(r)){case 38:o="&amp;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;case 34:o="&quot;";break;case 39:o="&apos;";break;case 9:o="&#9;";break;case 10:o="&#10;";break;case 13:o="&#13;";break;default:By(e.charCodeAt(r))&&(o=Cy(e.charCodeAt(r)))}o&&(t+=e.slice(n,r)+o,n=r+1)}return 0===n?e:t+e.slice(n)}function ky(e){if(!e)return"";let t="";const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=n[r],i=e[o];null!=i&&(t+="boolean"==typeof i?` ${o}="${i?"true":"false"}"`:` ${o}="${Fy(String(i))}"`)}return t}function Sy(e,t){return`<${e}${ky(t)}/>`}function Dy(e){const t=Ey(e);return e.length>0&&(" "===e[0]||" "===e[e.length-1]||e.includes("\n")||e.includes("\t"))?`<t xml:space="preserve">${t}</t>`:Ny("t",void 0,t)}function Ny(e,t,n){const r=ky(t);if(null==n)return`<${e}${r}/>`;const o=Array.isArray(n)?n.join(""):n;return o?`<${e}${r}>${o}</${e}>`:`<${e}${r}/>`}function Qy(e,t,n,r){const o=[];return!1!==r?.declaration&&o.push(function(e){return`<?xml version="1.0" encoding="UTF-8" standalone="${e?.standalone??"yes"}"?>`}(r)),null==n?o.push(Sy(e,t)):o.push(Ny(e,t,n)),o.join("")}function My(e,t){for(const n of e.children)"string"!=typeof n&&("t"===n.local?t.push(Ty(n)):My(n,t))}function Ty(e){let t="";for(const n of e.children)t+="string"==typeof n?n:Ty(n);return t}function Ly(e){if("string"!=typeof e)return;const t=e.trim().toLowerCase();return"1"===t||"true"===t||"0"!==t&&"false"!==t&&void 0}function Uy(e){const t=e.attrs.val;if("string"==typeof t)return"1"===t||"true"===t.toLowerCase()}function Ry(e){if(void 0!==e)return"1"===e||"true"===e||"0"!==e&&"false"!==e&&void 0}function Hy(e){if(!e)return;const t=ey(e,"numRef")??ey(e,"strRef");if(t){const e=ey(t,"f");if(e){const t=Ty(e).trim();if(t.length>0)return t}}const n=ey(e,"f");if(n){const e=Ty(n).trim();if(e.length>0)return e}}function qy(e,t){const n=ey(e,t);if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;const o=r.trim();if(0===o.length)return;const i=Number(o);return Number.isFinite(i)?i:void 0}const Oy=.25,Py=13.5,zy=12700,jy=new Set(["solid","dot","dash","lgDash","dashDot","lgDashDot","lgDashDotDot","sysDash","sysDot","sysDashDot","sysDashDotDot"]),$y=new Set(["solid","dash","dashDot","dot","lgDash","lgDashDot","lgDashDotDot","sysDash","sysDashDot","sysDashDotDot","sysDot"]),Yy=new Set(["rnd","sq","flat"]),Gy=new Set(["sng","dbl","thickThin","thinThick","tri"]);function Vy(e){if("string"==typeof e&&Yy.has(e)&&"flat"!==e)return e}function Jy(e){if("string"==typeof e&&Gy.has(e)&&"sng"!==e)return e}function Wy(e){const t=ey(e,"spPr");if(!t)return;const n=ey(t,"ln");if(!n)return;const r=n.attrs.cap;if("string"!=typeof r)return;const o=r.trim();return Yy.has(o)&&"flat"!==o?o:void 0}function _y(e){const t=ey(e,"spPr");if(!t)return;const n=ey(t,"ln");if(!n)return;const r=n.attrs.cmpd;if("string"!=typeof r)return;const o=r.trim();return Gy.has(o)&&"sng"!==o?o:void 0}const Xy=new Set(["bg1","tx1","bg2","tx2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink","phClr","dk1","lt1","dk2","lt2"]),Ky=1e5,Zy=-1e5,ev=1e5;function tv(e,t,n,r){const o=ey(e,t);if(!o)return;const i=o.attrs.val;if("string"!=typeof i)return;const s=Number.parseInt(i.trim(),10);return Number.isFinite(s)&&!(s<n||s>r)?s:void 0}function nv(e){const t=e.attrs.val;if("string"!=typeof t)return;const n=t.trim();if(!Xy.has(n))return;const r={theme:n},o=tv(e,"lumMod",0,Ky);void 0!==o&&(r.lumMod=o);const i=tv(e,"lumOff",0,Ky);void 0!==i&&(r.lumOff=i);const s=tv(e,"tint",Zy,ev);void 0!==s&&(r.tint=s);const a=tv(e,"shade",Zy,ev);void 0!==a&&(r.shade=a);const c=tv(e,"alpha",0,Ky);return void 0!==c&&(r.alpha=c),r}function rv(e){if(null==e)return;if("string"==typeof e){return iv(e)}if("object"!=typeof e)return;const t=e.theme;if("string"!=typeof t||!Xy.has(t))return;const n={theme:t},r=(e,t,n)=>{if("number"!=typeof e||!Number.isFinite(e))return;const r=Math.round(e);return r<t||r>n?void 0:r},o=r(e.lumMod,0,Ky);void 0!==o&&(n.lumMod=o);const i=r(e.lumOff,0,Ky);void 0!==i&&(n.lumOff=i);const s=r(e.tint,Zy,ev);void 0!==s&&(n.tint=s);const a=r(e.shade,Zy,ev);void 0!==a&&(n.shade=a);const c=r(e.alpha,0,Ky);return void 0!==c&&(n.alpha=c),n}function ov(e){if("string"==typeof e)return Sy("a:srgbClr",{val:e});const t=[];return void 0!==e.tint&&t.push(Sy("a:tint",{val:e.tint})),void 0!==e.shade&&t.push(Sy("a:shade",{val:e.shade})),void 0!==e.alpha&&t.push(Sy("a:alpha",{val:e.alpha})),void 0!==e.lumMod&&t.push(Sy("a:lumMod",{val:e.lumMod})),void 0!==e.lumOff&&t.push(Sy("a:lumOff",{val:e.lumOff})),0===t.length?Sy("a:schemeClr",{val:e.theme}):Ny("a:schemeClr",{val:e.theme},t)}function iv(e){if("string"!=typeof e)return;const t=e.trim();if(0===t.length)return;const n=t.startsWith("#")?t.slice(1):t;return 6===n.length&&/^[0-9a-fA-F]{6}$/.test(n)?n.toUpperCase():void 0}function sv(e){const t=ey(e,"spPr");if(!t)return;const n=ey(t,"solidFill");if(!n)return;const r=ey(n,"srgbClr");if(r)return iv(r.attrs.val);const o=ey(n,"schemeClr");return o?nv(o):void 0}function av(e){const t=ey(e,"spPr");if(!t)return;const n=ey(t,"ln");if(!n)return;const r=ey(n,"solidFill");if(!r)return;const o=ey(r,"srgbClr");if(o)return iv(o.attrs.val);const i=ey(r,"schemeClr");return i?nv(i):void 0}function cv(e){const t=ey(e,"spPr");if(!t)return;const n=ey(t,"ln");if(!n)return;const r=n.attrs.w;if("string"!=typeof r)return;const o=Number.parseFloat(r);if(!Number.isFinite(o)||o<=0)return;const i=Math.round(o/zy*4)/4;return i<Oy?Oy:i>Py?Py:i}function lv(e){const t=ey(e,"spPr");if(!t)return;const n=ey(t,"ln");if(!n)return;const r=ey(n,"prstDash");if(!r)return;const o=r.attrs.val;if("string"!=typeof o)return;const i=o.trim();return $y.has(i)&&"solid"!==i?i:void 0}function uv(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(4*e)/4;return t<Oy?Oy:t>Py?Py:t}function fv(e){if("string"==typeof e&&$y.has(e)&&"solid"!==e)return e}function dv(e){const t=ey(e,"view3D");if(!t)return;const n={},r=hv(t,"rotX",-90,90);void 0!==r&&(n.rotX=r);const o=hv(t,"hPercent",5,500);void 0!==o&&(n.hPercent=o);const i=hv(t,"rotY",0,360);void 0!==i&&(n.rotY=i);const s=hv(t,"depthPercent",20,2e3);void 0!==s&&(n.depthPercent=s);const a=function(e,t){const n=ey(e,t);if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;switch(r){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}(t,"rAngAx");void 0!==a&&(n.rAngAx=a);const c=hv(t,"perspective",0,240);return void 0!==c&&(n.perspective=c),n}function hv(e,t,n,r){const o=ey(e,t);if(!o)return;const i=o.attrs.val;if("string"!=typeof i)return;if(!/^-?\d+$/.test(i))return;const s=Number(i);return Number.isInteger(s)&&!(s<n||s>r)?s:void 0}function pv(e,t,n){if("number"==typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<t||e>n))return e}function gv(e){if(!e)return;const t=e.attrs.val;if("string"!=typeof t)return;const n=t.trim();if(0===n.length)return;const r=Number(n);return Number.isFinite(r)&&!(r<0||r>1)?r:void 0}function mv(e){const t=ey(e,"layout");if(!t)return;const n=ey(t,"manualLayout");if(!n)return;const r=gv(ey(n,"x")),o=gv(ey(n,"y")),i=gv(ey(n,"w")),s=gv(ey(n,"h"));if(void 0===r&&void 0===o&&void 0===i&&void 0===s)return;const a={};return void 0!==r&&(a.x=r),void 0!==o&&(a.y=o),void 0!==i&&(a.w=i),void 0!==s&&(a.h=s),a}function Av(e){if(!e||"object"!=typeof e)return;const t={},n=yv(e.x);void 0!==n&&(t.x=n);const r=yv(e.y);void 0!==r&&(t.y=r);const o=yv(e.w);void 0!==o&&(t.w=o);const i=yv(e.h);return void 0!==i&&(t.h=i),void 0!==t.x||void 0!==t.y||void 0!==t.w||void 0!==t.h?t:void 0}function yv(e){if("number"==typeof e&&Number.isFinite(e)&&!(e<0||e>1))return e}function vv(e){if(!e)return;const t=[];return void 0!==e.x&&t.push(Sy("c:xMode",{val:"edge"})),void 0!==e.y&&t.push(Sy("c:yMode",{val:"edge"})),void 0!==e.w&&t.push(Sy("c:wMode",{val:"edge"})),void 0!==e.h&&t.push(Sy("c:hMode",{val:"edge"})),void 0!==e.x&&t.push(Sy("c:x",{val:e.x})),void 0!==e.y&&t.push(Sy("c:y",{val:e.y})),void 0!==e.w&&t.push(Sy("c:w",{val:e.w})),void 0!==e.h&&t.push(Sy("c:h",{val:e.h})),0!==t.length?Ny("c:layout",void 0,[Ny("c:manualLayout",void 0,t)]):void 0}function bv(e){const t=ey(e,"txPr");if(t)return wv(t)}function Iv(e){const t=ey(e,"title");if(!t)return;const n=ey(t,"tx");if(!n)return;const r=ey(n,"rich");return r?wv(r):void 0}function wv(e){const t=ey(e,"p");if(!t)return;const n=ey(t,"pPr");return n?ey(n,"defRPr"):void 0}const xv=6e4,Cv=100,Bv=400,Ev=xv,Fv=-90;function kv(e,t,n,r,o,i){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===o&&void 0===i)return;const s=[];if(void 0!==e&&s.push(Ny("a:solidFill",void 0,[ov(e)])),void 0!==t||void 0!==n||void 0!==r||void 0!==o||void 0!==i){const e={};void 0!==n&&(e.w=Math.round(n*zy)),void 0!==o&&(e.cap=o),void 0!==i&&(e.cmpd=i);const a=[];void 0!==t&&a.push(Ny("a:solidFill",void 0,[ov(t)])),void 0!==r&&a.push(Sy("a:prstDash",{val:r})),s.push(0===a.length?Sy("a:ln",e):Ny("a:ln",Object.keys(e).length>0?e:void 0,a))}return Ny("c:spPr",void 0,s)}function Sv(e){if(void 0===e||"number"!=typeof e||!Number.isFinite(e))return;let t=Math.round(e);return t<Fv?t=Fv:t>90&&(t=90),0!==t?t:void 0}function Dv(e){if(void 0===e||"number"!=typeof e||!Number.isFinite(e))return;const t=Math.round(2*e)/2;return t<1||t>400?void 0:t}function Nv(e){return!0===e||!1!==e&&void 0}function Qv(e){return!0===e||!1!==e&&void 0}function Mv(e){return"string"==typeof e?iv(e):rv(e)}function Tv(e){return!0===e||!1!==e&&void 0}function Lv(e){return!0===e||!1!==e&&void 0}const Uv=Cv,Rv=Bv;function Hv(e,t,n,r,o,i,s,a,c,l,u,f,d,h,p,g,m){const A=[Sy("c:legendPos",{val:e})];for(const e of n){const t=[Sy("c:idx",{val:e.idx}),Sy("c:delete",{val:e.delete?1:0})],n=qv(e.fontSize,e.bold,e.italic,e.underline,e.strikethrough,e.color,e.fontFamily);void 0!==n&&t.push(n),A.push(Ny("c:legendEntry",void 0,t))}const y=vv(u);void 0!==y&&A.push(y),A.push(Sy("c:overlay",{val:t?1:0}));const v=function(e,t,n,r,o,i){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===o&&void 0===i)return;const s=[];void 0!==e&&s.push(Ny("a:solidFill",void 0,[ov(e)]));if(void 0!==t||void 0!==n||void 0!==r||void 0!==o||void 0!==i){const e={};void 0!==n&&(e.w=Math.round(n*zy)),void 0!==o&&(e.cap=o),void 0!==i&&(e.cmpd=i);const a=[];void 0!==t&&a.push(Ny("a:solidFill",void 0,[ov(t)])),void 0!==r&&a.push(Sy("a:prstDash",{val:r})),s.push(0===a.length?Sy("a:ln",e):Ny("a:ln",Object.keys(e).length>0?e:void 0,a))}return Ny("c:spPr",void 0,s)}(f,d,h,p,g,m);void 0!==v&&A.push(v);const b=qv(r,o,i,s,a,c,l);return void 0!==b&&A.push(b),Ny("c:legend",void 0,A)}function qv(e,t,n,r,o,i,s){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===o&&void 0===i&&void 0===s)return;const a={};void 0!==e&&(a.sz=e*Uv),void 0!==t&&(a.b=t?1:0),void 0!==n&&(a.i=n?1:0),void 0!==r&&(a.u=r?"sng":"none"),!0===o&&(a.strike="sngStrike");const c=void 0!==i?Ny("a:solidFill",void 0,[ov(i)]):void 0,l=s?Sy("a:latin",{typeface:s}):void 0,u=[];c&&u.push(c),l&&u.push(l);const f=u.length>0?Ny("a:defRPr",a,u):Sy("a:defRPr",a);return Ny("c:txPr",void 0,[Sy("a:bodyPr"),Sy("a:lstStyle"),Ny("a:p",void 0,[Ny("a:pPr",void 0,[f]),Sy("a:endParaRPr",{lang:"en-US"})])])}const Ov=Cv;function Pv(e){const t=ey(e,"dTable");if(!t)return;const n={},r=zv(t,"showHorzBorder");void 0!==r&&(n.showHorzBorder=r);const o=zv(t,"showVertBorder");void 0!==o&&(n.showVertBorder=o);const i=zv(t,"showOutline");void 0!==i&&(n.showOutline=i);const s=zv(t,"showKeys");void 0!==s&&(n.showKeys=s);const a=function(e){const t=bv(e);if(!t)return;const n=t.attrs.sz;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const o=Number.parseInt(r,10);if(!Number.isFinite(o))return;const i=Math.round(o/Ov*2)/2;return i<1||i>400?void 0:i}(t);void 0!==a&&(n.fontSize=a);const c=function(e){const t=bv(e);if(!t)return;const n=ey(t,"solidFill");if(!n)return;const r=ey(n,"srgbClr");if(r)return iv(r.attrs.val);const o=ey(n,"schemeClr");return o?nv(o):void 0}(t);void 0!==c&&(n.fontColor=c);const l=function(e){const t=bv(e);if(!t)return;const n=t.attrs.b;if("string"!=typeof n)return;switch(n){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}(t);void 0!==l&&(n.bold=l);const u=function(e){const t=bv(e);if(!t)return;const n=t.attrs.i;if("string"!=typeof n)return;switch(n){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}(t);void 0!==u&&(n.italic=u);const f=function(e){const t=bv(e);if(!t)return;const n=t.attrs.u;return"sng"===n||"none"!==n&&void 0}(t);void 0!==f&&(n.underline=f);const d=function(e){const t=bv(e);if(!t)return;return"sngStrike"===t.attrs.strike||void 0}(t);void 0!==d&&(n.strikethrough=d);const h=function(e){const t=bv(e);if(!t)return;const n=ey(t,"latin");if(!n)return;const r=n.attrs.typeface;if("string"!=typeof r)return;const o=r.trim();return 0===o.length?void 0:o}(t);void 0!==h&&(n.fontFamily=h);const p=sv(t);void 0!==p&&(n.fillColor=p);const g=function(e){return av(e)}(t);void 0!==g&&(n.borderColor=g);const m=cv(t);void 0!==m&&(n.borderWidth=m);const A=lv(t);void 0!==A&&(n.borderDash=A);const y=Wy(t);void 0!==y&&(n.borderCap=y);const v=_y(t);return void 0!==v&&(n.borderCompound=v),n}function zv(e,t){const n=ey(e,t);if(!n)return;const r=n.attrs.val;if("string"==typeof r)switch(r){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}function jv(e){return Mv(e)}function $v(e){return!0===e||!1!==e&&void 0}function Yv(e){return!0===e||!1!==e&&void 0}function Gv(e){return!0===e||!1!==e&&void 0}function Vv(e){if(!0===e)return!0}function Jv(e){if("string"!=typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}function Wv(e){return Mv(e)}function _v(e){return Mv(e)}function Xv(e){const t=[Sy("c:showHorzBorder",{val:e.showHorzBorder?1:0}),Sy("c:showVertBorder",{val:e.showVertBorder?1:0}),Sy("c:showOutline",{val:e.showOutline?1:0}),Sy("c:showKeys",{val:e.showKeys?1:0})],n=function(e,t,n,r,o,i){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===o&&void 0===i)return;const s=[];void 0!==e&&s.push(Ny("a:solidFill",void 0,[ov(e)]));if(void 0!==t||void 0!==n||void 0!==r||void 0!==o||void 0!==i){const e={};void 0!==n&&(e.w=Math.round(n*zy)),void 0!==o&&(e.cap=o),void 0!==i&&(e.cmpd=i);const a=[];void 0!==t&&a.push(Ny("a:solidFill",void 0,[ov(t)])),void 0!==r&&a.push(Sy("a:prstDash",{val:r})),s.push(0===a.length?Sy("a:ln",e):Ny("a:ln",Object.keys(e).length>0?e:void 0,a))}return Ny("c:spPr",void 0,s)}(e.fillColor,e.borderColor,e.borderWidth,e.borderDash,e.borderCap,e.borderCompound);void 0!==n&&t.push(n);const r=function(e,t,n,r,o,i,s){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===o&&void 0===i&&void 0===s)return;const a={};void 0!==e&&(a.sz=e*Ov);void 0!==n&&(a.b=n?1:0);void 0!==r&&(a.i=r?1:0);void 0!==o&&(a.u=o?"sng":"none");!0===i&&(a.strike="sngStrike");const c=void 0!==t?Ny("a:solidFill",void 0,[ov(t)]):void 0,l=s?Sy("a:latin",{typeface:s}):void 0,u=[];c&&u.push(c);l&&u.push(l);const f=u.length>0?Ny("a:defRPr",a,u):Sy("a:defRPr",a);return Ny("c:txPr",void 0,[Sy("a:bodyPr"),Sy("a:lstStyle"),Ny("a:p",void 0,[Ny("a:pPr",void 0,[f]),Sy("a:endParaRPr",{lang:"en-US"})])])}(e.fontSize,e.fontColor,e.bold,e.italic,e.underline,e.strikethrough,e.fontFamily);return void 0!==r&&t.push(r),Ny("c:dTable",void 0,t)}const Kv=Cv,Zv=new Set(["t","b","l","r","ctr","inEnd","inBase","outEnd","bestFit"]);function eb(e){const t=ey(e,"delete");if(t&&!0===Uy(t))return;const n={},r=ey(e,"dLblPos");if(r){const e=r.attrs.val;"string"==typeof e&&Zv.has(e)&&(n.position=e)}const o=ey(e,"showLegendKey");o&&!0===Uy(o)&&(n.showLegendKey=!0);const i=ey(e,"showVal");i&&!0===Uy(i)&&(n.showValue=!0);const s=ey(e,"showCatName");s&&!0===Uy(s)&&(n.showCategoryName=!0);const a=ey(e,"showSerName");a&&!0===Uy(a)&&(n.showSeriesName=!0);const c=ey(e,"showPercent");c&&!0===Uy(c)&&(n.showPercent=!0);const l=ey(e,"separator");if(l){const e=Ty(l);e.length>0&&(n.separator=e)}const u=function(e){const t=ey(e,"numFmt");if(!t)return;const n=t.attrs.formatCode;if("string"!=typeof n||0===n.length)return;const r={formatCode:n},o=t.attrs.sourceLinked;"string"==typeof o&&("1"!==o&&"true"!==o.toLowerCase()||(r.sourceLinked=!0));return r}(e);u&&(n.numberFormat=u);const f=ey(e,"showLeaderLines");if(f){const e=f.attrs.val;"string"!=typeof e||"0"!==e&&"false"!==e.toLowerCase()||(n.showLeaderLines=!1)}const d=function(e){const t=bv(e);if(!t)return;const n=t.attrs.sz;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const o=Number.parseInt(r,10);if(!Number.isFinite(o))return;const i=Math.round(o/Kv*2)/2;return i<1||i>400?void 0:i}(e);void 0!==d&&(n.fontSize=d);const h=function(e){const t=bv(e);if(!t)return;const n=ey(t,"solidFill");if(!n)return;const r=ey(n,"srgbClr");if(r)return iv(r.attrs.val);const o=ey(n,"schemeClr");return o?nv(o):void 0}(e);void 0!==h&&(n.fontColor=h);const p=function(e){const t=bv(e);if(!t)return;const n=t.attrs.b;return"1"===n||"true"===n||void 0}(e);void 0!==p&&(n.bold=p);const g=function(e){const t=bv(e);if(!t)return;const n=t.attrs.i;return"1"===n||"true"===n||void 0}(e);void 0!==g&&(n.italic=g);const m=function(e){const t=bv(e);if(!t)return;return"sng"===t.attrs.u||void 0}(e);void 0!==m&&(n.underline=m);const A=function(e){const t=bv(e);if(!t)return;return"sngStrike"===t.attrs.strike||void 0}(e);void 0!==A&&(n.strikethrough=A);const y=function(e){const t=bv(e);if(!t)return;const n=ey(t,"latin");if(!n)return;const r=n.attrs.typeface;if("string"!=typeof r)return;const o=r.trim();return 0===o.length?void 0:o}(e);void 0!==y&&(n.fontFamily=y);const v=sv(e);void 0!==v&&(n.fillColor=v);const b=function(e){return av(e)}(e);void 0!==b&&(n.borderColor=b);const I=cv(e);void 0!==I&&(n.borderWidth=I);const w=lv(e);void 0!==w&&(n.borderDash=w);const x=Wy(e);void 0!==x&&(n.borderCap=x);const C=_y(e);return void 0!==C&&(n.borderCompound=C),void 0!==n.position||n.showValue||n.showCategoryName||n.showSeriesName||n.showPercent||n.showLegendKey||void 0!==n.separator||void 0!==n.numberFormat||void 0!==n.showLeaderLines||void 0!==n.fontSize||void 0!==n.fontColor||void 0!==n.bold||void 0!==n.italic||void 0!==n.underline||void 0!==n.strikethrough||void 0!==n.fontFamily||void 0!==n.fillColor||void 0!==n.borderColor||void 0!==n.borderWidth||void 0!==n.borderDash||void 0!==n.borderCap||void 0!==n.borderCompound?n:void 0}function tb(e){if(e.dataLabels)return nb(e.dataLabels,e.type)}function nb(e,t){const n=[],r=function(e){if(!e)return;const t=e.formatCode;if("string"!=typeof t||0===t.length)return;const n={formatCode:t};!0===e.sourceLinked&&(n.sourceLinked=!0);return n}(e.numberFormat);r&&n.push(Sy("c:numFmt",{formatCode:r.formatCode,sourceLinked:!0===r.sourceLinked?1:0}));const o=function(e,t,n,r,o,i){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===o&&void 0===i)return;const s=[];void 0!==e&&s.push(Ny("a:solidFill",void 0,[ov(e)]));if(void 0!==t||void 0!==n||void 0!==r||void 0!==o||void 0!==i){const e={};void 0!==n&&(e.w=Math.round(n*zy)),void 0!==o&&(e.cap=o),void 0!==i&&(e.cmpd=i);const a=[];void 0!==t&&a.push(Ny("a:solidFill",void 0,[ov(t)])),void 0!==r&&a.push(Sy("a:prstDash",{val:r})),s.push(0===a.length?Sy("a:ln",e):Ny("a:ln",Object.keys(e).length>0?e:void 0,a))}return Ny("c:spPr",void 0,s)}(Mv(e.fillColor),function(e){return Mv(e)}(e.borderColor),uv(e.borderWidth),fv(e.borderDash),Vy(e.borderCap),Jy(e.borderCompound));void 0!==o&&n.push(o);const i=function(e,t,n,r,o,i,s){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===o&&void 0===i&&void 0===s)return;const a={};void 0!==e&&(a.sz=e*Kv);void 0!==n&&(a.b=n?1:0);void 0!==r&&(a.i=r?1:0);void 0!==o&&(a.u=o?"sng":"none");!0===i&&(a.strike="sngStrike");const c=void 0!==t?Ny("a:solidFill",void 0,[ov(t)]):void 0,l=s?Sy("a:latin",{typeface:s}):void 0,u=[];c&&u.push(c);l&&u.push(l);const f=u.length>0?Ny("a:defRPr",a,u):Sy("a:defRPr",a);return Ny("c:txPr",void 0,[Sy("a:bodyPr"),Sy("a:lstStyle"),Ny("a:p",void 0,[Ny("a:pPr",void 0,[f]),Sy("a:endParaRPr",{lang:"en-US"})])])}(function(e){return Dv(e)}(e.fontSize),function(e){return Mv(e)}(e.fontColor),function(e){return!0===e||!1!==e&&void 0}(e.bold),function(e){return!0===e||!1!==e&&void 0}(e.italic),function(e){return!0===e||!1!==e&&void 0}(e.underline),function(e){return!0===e||void 0}(e.strikethrough),function(e){if("string"!=typeof e)return;const t=e.trim();return 0===t.length?void 0:t}(e.fontFamily));return void 0!==i&&n.push(i),e.position&&n.push(Sy("c:dLblPos",{val:e.position})),n.push(Sy("c:showLegendKey",{val:!0===e.showLegendKey?1:0})),n.push(Sy("c:showVal",{val:e.showValue?1:0})),n.push(Sy("c:showCatName",{val:e.showCategoryName?1:0})),n.push(Sy("c:showSerName",{val:e.showSeriesName?1:0})),n.push(Sy("c:showPercent",{val:e.showPercent?1:0})),n.push(Sy("c:showBubbleSize",{val:0})),void 0!==e.separator&&n.push(Ny("c:separator",void 0,Ey(e.separator))),"pie"!==t&&"doughnut"!==t||!1!==e.showLeaderLines||n.push(Sy("c:showLeaderLines",{val:0})),Ny("c:dLbls",void 0,n)}const rb=new Set(["cone","coneToMax","box","cylinder","pyramid","pyramidToMax"]),ob=new Set(["linear","log","exp","power","poly","movingAvg"]),ib=new Set(["x","y"]),sb=new Set(["both","minus","plus"]),ab=new Set(["cust","fixedVal","percentage","stdDev","stdErr"]);function cb(e){const t=function(e){if("string"==typeof e)return rb.has(e)?e:void 0}(e);if(void 0!==t)return Sy("c:shape",{val:t})}function lb(e){const t=ey(e,"spPr");if(!t)return;const n=ey(t,"solidFill");if(!n)return;const r=ey(n,"srgbClr");return r?iv(r.attrs.val):void 0}function ub(e){const t=ey(e,"spPr");if(!t)return;const n=ey(t,"ln");if(!n)return;const r=ey(n,"solidFill");if(!r)return;const o=ey(r,"srgbClr");return o?iv(o.attrs.val):void 0}function fb(e){const t=ey(e,"spPr");if(!t)return;const n=ey(t,"ln");if(!n)return;const r=n.attrs.w;if("string"!=typeof r)return;const o=Number.parseFloat(r);if(!Number.isFinite(o)||o<=0)return;const i=Math.round(o/zy*4)/4;return i<Oy?Oy:i>Py?Py:i}function db(e){const t=ey(e,"spPr");if(!t)return;const n=ey(t,"ln");if(!n)return;const r=ey(n,"prstDash");if(!r)return;const o=r.attrs.val;if("string"!=typeof o)return;const i=o.trim();return $y.has(i)&&"solid"!==i?i:void 0}function hb(e){const t="string"==typeof e.type&&ob.has(e.type)?e.type:void 0;if(void 0===t)return;const n=[];"string"==typeof e.name&&e.name.trim().length>0&&n.push(Ny("c:name",void 0,e.name.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")));const r=function(e){const t=iv(e.lineColor),n=uv(e.lineWidth),r=fv(e.lineDash);if(!t&&void 0===n&&void 0===r)return;const o={};void 0!==n&&(o.w=Math.round(n*zy));const i=[];t&&i.push(Ny("a:solidFill",void 0,[Sy("a:srgbClr",{val:t})]));void 0!==r&&i.push(Sy("a:prstDash",{val:r}));const s=0===i.length?Sy("a:ln",o):Ny("a:ln",Object.keys(o).length>0?o:void 0,i);return Ny("c:spPr",void 0,[s])}(e);if(r&&n.push(r),n.push(Sy("c:trendlineType",{val:t})),"poly"===t&&"number"==typeof e.order&&Number.isFinite(e.order)){const t=Math.max(2,Math.min(6,Math.round(e.order)));n.push(Sy("c:order",{val:t}))}if("movingAvg"===t&&"number"==typeof e.period&&Number.isFinite(e.period)){const t=Math.max(2,Math.min(100,Math.round(e.period)));n.push(Sy("c:period",{val:t}))}return"number"==typeof e.forward&&Number.isFinite(e.forward)&&n.push(Sy("c:forward",{val:e.forward})),"number"==typeof e.backward&&Number.isFinite(e.backward)&&n.push(Sy("c:backward",{val:e.backward})),"number"==typeof e.intercept&&Number.isFinite(e.intercept)&&n.push(Sy("c:intercept",{val:e.intercept})),!0===e.dispRSquared&&n.push(Sy("c:dispRSqr",{val:1})),!0===e.dispEquation&&n.push(Sy("c:dispEq",{val:1})),Ny("c:trendline",void 0,n)}function pb(e){if(!ib.has(e.direction))return;if(!sb.has(e.type))return;if(!ab.has(e.valType))return;const t=[Sy("c:errDir",{val:e.direction}),Sy("c:errBarType",{val:e.type}),Sy("c:errValType",{val:e.valType})];!0===e.noEndCap&&t.push(Sy("c:noEndCap",{val:1})),"stdErr"!==e.valType&&"cust"!==e.valType&&"number"==typeof e.value&&Number.isFinite(e.value)&&t.push(Sy("c:val",{val:e.value}));const n=iv(e.lineColor),r=uv(e.lineWidth),o=fv(e.lineDash);if(n||void 0!==r||void 0!==o){const e={};void 0!==r&&(e.w=Math.round(r*zy));const i=[];n&&i.push(Ny("a:solidFill",void 0,[Sy("a:srgbClr",{val:n})])),void 0!==o&&i.push(Sy("a:prstDash",{val:o}));const s=0===i.length?Sy("a:ln",e):Ny("a:ln",Object.keys(e).length>0?e:void 0,i);t.push(Ny("c:spPr",void 0,[s]))}return Ny("c:errBars",void 0,t)}const gb=new Set(["none","auto","circle","square","diamond","triangle","x","star","dot","dash","plus"]),mb=2,Ab=72;function yb(e,t){return e.includes("!")?e:`${n=t,/^[A-Za-z_][A-Za-z0-9_]*$/.test(n)?n:`'${n.replace(/'/g,"''")}'`}!${e}`;var n}function vb(e,t,n){const r={kind:t,index:n},o=function(e){const t=ey(e,"tx");if(!t)return;const n=ey(t,"v");if(n){const e=Ty(n).trim();if(e.length>0)return e}const r=ey(t,"strRef");if(r){const e=ey(r,"strCache");if(e)for(const t of ty(e)){if("pt"!==t.local)continue;const e=ey(t,"v");if(e){const t=Ty(e).trim();if(t.length>0)return t}}const t=Hy(r);if(t)return t}return}(e);void 0!==o&&(r.name=o);const i=Hy(ey(e,"val"))??Hy(ey(e,"yVal"));void 0!==i&&(r.valuesRef=i);const s=Hy(ey(e,"cat"))??Hy(ey(e,"xVal"));void 0!==s&&(r.categoriesRef=s);const a=function(e){const t=ey(e,"spPr");if(!t)return;const n=ey(t,"solidFill");if(!n)return;const r=ey(n,"srgbClr");if(r){const e=r.attrs.val;if("string"!=typeof e)return;const t=e.replace(/^#/,"").toUpperCase();return/^[0-9A-F]{6}$/.test(t)?t:void 0}const o=ey(n,"schemeClr");return o?nv(o):void 0}(e);void 0!==a&&(r.color=a);const c=ey(e,"dLbls");if(c){const e=eb(c);e&&(r.dataLabels=e)}if("line"===t||"line3D"===t||"scatter"===t){const t=function(e){const t=ey(e,"smooth");if(!t)return;return!0===Uy(t)||void 0}(e);void 0!==t&&(r.smooth=t);const n=function(e){const t=ey(e,"spPr");if(!t)return;const n=ey(t,"ln");if(!n)return;const r={},o=n.attrs.w;if("string"==typeof o){const e=Number.parseFloat(o);if(Number.isFinite(e)&&e>0){const t=Math.round(e/zy*4)/4;r.width=t<Oy?Oy:t>Py?Py:t}}const i=ey(n,"prstDash");if(i){const e=i.attrs.val;"string"==typeof e&&jy.has(e)&&(r.dash=e)}const s=n.attrs.cap;if("string"==typeof s){const e=s.trim();Yy.has(e)&&"flat"!==e&&(r.cap=e)}const a=n.attrs.cmpd;if("string"==typeof a){const e=a.trim();Gy.has(e)&&"sng"!==e&&(r.compound=e)}return void 0===r.dash&&void 0===r.width&&void 0===r.cap&&void 0===r.compound?void 0:r}(e);void 0!==n&&(r.stroke=n);const o=bb(e);void 0!==o&&(r.marker=o)}if("bar"===t||"bar3D"===t){const t=function(e){const t=ey(e,"invertIfNegative");if(!t)return;return!0===Uy(t)||void 0}(e);void 0!==t&&(r.invertIfNegative=t)}if("pie"===t||"pie3D"===t||"doughnut"===t||"ofPie"===t){const t=function(e){const t=ey(e,"explosion");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseFloat(n);if(!Number.isFinite(r)||r<0)return;const o=Math.round(r);return 0===o?void 0:o}(e);void 0!==t&&(r.explosion=t)}const l=function(e){const t=[];for(const n of ty(e)){if("dPt"!==n.local)continue;const e=ey(n,"idx");if(!e)continue;const r=e.attrs.val;if("string"!=typeof r)continue;const o=Number.parseInt(r,10);if(!Number.isFinite(o)||o<0)continue;const i={idx:o},s=ey(n,"explosion");if(s){const e=s.attrs.val;if("string"==typeof e){const t=Number.parseFloat(e);if(Number.isFinite(t)&&t>0){const e=Math.round(t);e>0&&(i.explosion=e)}}}const a=ey(n,"bubble3D");a&&!0===Uy(a)&&(i.bubble3D=!0);const c=lb(n);void 0!==c&&(i.fillColor=c);const l=ub(n);void 0!==l&&(i.borderColor=l);const u=fb(n);void 0!==u&&(i.borderWidth=u);const f=db(n);void 0!==f&&(i.borderDash=f);const d=bb(n);void 0!==d&&(i.marker=d),t.push(i)}return t.length>0?t:void 0}(e);if(void 0!==l&&(r.dataPoints=l),"bar"===t||"bar3D"===t||"line"===t||"line3D"===t||"area"===t||"area3D"===t||"scatter"===t||"bubble"===t){const t=function(e){const t=[];for(const n of ty(e)){if("trendline"!==n.local)continue;const e=ey(n,"trendlineType");if(!e)continue;const r=e.attrs.val;if("string"!=typeof r)continue;const o=r.trim();if(!ob.has(o))continue;const i={type:o},s=ey(n,"name");if(s){let e="";for(const t of s.children)"string"==typeof t&&(e+=t);const t=e.trim();t.length>0&&(i.name=t)}const a=ey(n,"order");if(a){const e=parseFloat(String(a.attrs.val??""));if(Number.isFinite(e)){const t=Math.round(e);t>=2&&t<=6&&(i.order=t)}}const c=ey(n,"period");if(c){const e=parseFloat(String(c.attrs.val??""));if(Number.isFinite(e)){const t=Math.round(e);t>=2&&t<=100&&(i.period=t)}}const l=ey(n,"forward");if(l){const e=parseFloat(String(l.attrs.val??""));Number.isFinite(e)&&(i.forward=e)}const u=ey(n,"backward");if(u){const e=parseFloat(String(u.attrs.val??""));Number.isFinite(e)&&(i.backward=e)}const f=ey(n,"intercept");if(f){const e=parseFloat(String(f.attrs.val??""));Number.isFinite(e)&&(i.intercept=e)}const d=ey(n,"dispEq");d&&!0===Uy(d)&&(i.dispEquation=!0);const h=ey(n,"dispRSqr");h&&!0===Uy(h)&&(i.dispRSquared=!0);const p=ey(n,"spPr");if(p){const e=ey(p,"ln");if(e){const t=ey(e,"solidFill");if(t){const e=ey(t,"srgbClr");if(e){const t=iv(e.attrs.val);t&&(i.lineColor=t)}}const n=e.attrs.w;if("string"==typeof n){const e=Number.parseFloat(n);if(Number.isFinite(e)&&e>0){const t=Math.round(e/zy*4)/4;i.lineWidth=t>=Oy&&t<=Py?t:t<Oy?Oy:Py}}const r=ey(e,"prstDash");if(r){const e=r.attrs.val;if("string"==typeof e){const t=e.trim();$y.has(t)&&"solid"!==t&&(i.lineDash=t)}}}}t.push(i)}return t.length>0?t:void 0}(e);void 0!==t&&(r.trendlines=t);const n=function(e){const t=[];for(const n of ty(e)){if("errBars"!==n.local)continue;const e=ey(n,"errDir");if(!e)continue;const r=e.attrs.val;if("string"!=typeof r)continue;const o=r.trim();if(!ib.has(o))continue;const i=ey(n,"errBarType");if(!i)continue;const s=i.attrs.val;if("string"!=typeof s)continue;const a=s.trim();if(!sb.has(a))continue;const c=ey(n,"errValType");if(!c)continue;const l=c.attrs.val;if("string"!=typeof l)continue;const u=l.trim();if(!ab.has(u))continue;const f={direction:o,type:a,valType:u},d=ey(n,"val");if(d){const e=parseFloat(String(d.attrs.val??""));Number.isFinite(e)&&(f.value=e)}const h=ey(n,"noEndCap");h&&!0===Uy(h)&&(f.noEndCap=!0);const p=ey(n,"spPr");if(p){const e=ey(p,"ln");if(e){const t=ey(e,"solidFill");if(t){const e=ey(t,"srgbClr");if(e){const t=iv(e.attrs.val);t&&(f.lineColor=t)}}const n=e.attrs.w;if("string"==typeof n){const e=Number.parseFloat(n);if(Number.isFinite(e)&&e>0){const t=Math.round(e/zy*4)/4;f.lineWidth=t<Oy?Oy:t>Py?Py:t}}const r=ey(e,"prstDash");if(r){const e=r.attrs.val;if("string"==typeof e){const t=e.trim();$y.has(t)&&"solid"!==t&&(f.lineDash=t)}}}}t.push(f)}return t.length>0?t:void 0}(e);void 0!==n&&(r.errorBars=n)}if("bubble"===t){const t=function(e){return Hy(ey(e,"bubbleSize"))}(e);void 0!==t&&(r.bubbleSizeRef=t)}if("bar3D"===t){const t=function(e){const t=ey(e,"shape");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=n.trim();return rb.has(r)?r:void 0}(e);void 0!==t&&(r.shape3D=t)}return r}function bb(e){const t=ey(e,"marker");if(!t)return;const n={},r=ey(t,"symbol");if(r){const e=r.attrs.val;"string"==typeof e&&gb.has(e)&&(n.symbol=e)}const o=ey(t,"size");if(o){const e=o.attrs.val;if("string"==typeof e){const t=Number.parseInt(e,10);Number.isFinite(t)&&(n.size=t<2?2:t>72?72:t)}}const i=ey(t,"spPr");if(i){const e=ey(i,"solidFill");if(e){const t=ey(e,"srgbClr"),r=t?.attrs.val;if("string"==typeof r){const e=r.replace(/^#/,"").toUpperCase();/^[0-9A-F]{6}$/.test(e)&&(n.fill=e)}}const t=ey(i,"ln");if(t){const e=ey(t,"solidFill");if(e){const t=ey(e,"srgbClr"),r=t?.attrs.val;if("string"==typeof r){const e=r.replace(/^#/,"").toUpperCase();/^[0-9A-F]{6}$/.test(e)&&(n.line=e)}}}}return void 0!==n.symbol||void 0!==n.size||void 0!==n.fill||void 0!==n.line?n:void 0}function Ib(e,t,n,r,o){const i=[Sy("c:idx",{val:t}),Sy("c:order",{val:t})];e.name&&i.push(Ny("c:tx",void 0,[Ny("c:v",void 0,Ey(e.name))]));const s=function(e,t){let n;if("string"==typeof e){const t=e.replace(/^#/,"").toUpperCase();n=/^[0-9A-F]{6}$/.test(t)?t:void 0}else void 0!==e&&(n=rv(e));const r=(l=t?.dash,void 0===l?void 0:jy.has(l)?l:void 0),o=uv(t?.width),i=Vy(t?.cap),s="flat"===i?void 0:i,a=Jy(t?.compound),c="sng"===a?void 0:a;var l;if(!n&&void 0===r&&void 0===o&&void 0===s&&void 0===c)return;const u=[];void 0!==n&&u.push(Ny("a:solidFill",void 0,[ov(n)]));if(void 0!==n||void 0!==r||void 0!==o||void 0!==s||void 0!==c){const e={};void 0!==o&&(e.w=Math.round(o*zy)),void 0!==s&&(e.cap=s),void 0!==c&&(e.cmpd=c);const t=[];void 0!==n&&t.push(Ny("a:solidFill",void 0,[ov(n)])),void 0!==r&&t.push(Sy("a:prstDash",{val:r})),u.push(0===t.length?Sy("a:ln",e):Ny("a:ln",Object.keys(e).length>0?e:void 0,t))}return Ny("c:spPr",void 0,u)}(e.color,o?.stroke);s&&i.push(s);const a=wb(o?.marker);a&&i.push(a),!0===o?.invertIfNegative&&i.push(Sy("c:invertIfNegative",{val:1}));const c=function(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<=0?void 0:t>400?400:t}(o?.explosion);void 0!==c&&i.push(Sy("c:explosion",{val:c}));const l=function(e,t){if(!e||0===e.length)return[];const n="pie"===t||"doughnut"===t||"pie3D"===t,r=[];for(const t of e){if(!Number.isFinite(t.idx)||t.idx<0)continue;const e=Math.floor(t.idx),o=[];o.push(Sy("c:idx",{val:e}));const i=wb(t.marker);if(i&&o.push(i),o.push(Sy("c:bubble3D",{val:!0===t.bubble3D?1:0})),n&&void 0!==t.explosion&&Number.isFinite(t.explosion)){const e=Math.max(0,Math.min(400,Math.round(t.explosion)));e>0&&o.push(Sy("c:explosion",{val:e}))}const s=iv(t.fillColor),a=iv(t.borderColor),c=uv(t.borderWidth),l=fv(t.borderDash);if(s||a||void 0!==c||void 0!==l){const e=[];if(s&&e.push(Ny("a:solidFill",void 0,[Sy("a:srgbClr",{val:s})])),a||void 0!==c||void 0!==l){const t={};void 0!==c&&(t.w=Math.round(c*zy));const n=[];a&&n.push(Ny("a:solidFill",void 0,[Sy("a:srgbClr",{val:a})])),void 0!==l&&n.push(Sy("a:prstDash",{val:l})),e.push(0===n.length?Sy("a:ln",t):Ny("a:ln",Object.keys(t).length>0?t:void 0,n))}o.push(Ny("c:spPr",void 0,e))}r.push(Ny("c:dPt",void 0,o))}return r}(o.dataPoints,o.chartType);for(const e of l)i.push(e);const u=(f=e.dataLabels,o.dataLabels,d=o.chartType,!1===f?Ny("c:dLbls",void 0,[Ny("c:dLbl",void 0,[Sy("c:idx",{val:0}),Sy("c:delete",{val:1})]),Sy("c:delete",{val:1})]):f?nb(f,d):void 0);var f,d;if(u&&i.push(u),o.trendlines&&o.trendlines.length>0){if(!("pie"===o.chartType||"doughnut"===o.chartType)){const e=function(e){if(!e||0===e.length)return[];const t=[];for(const n of e){const e=hb(n);e&&t.push(e)}return t}(o.trendlines);for(const t of e)i.push(t)}}if(o.errorBars&&o.errorBars.length>0){if(!("pie"===o.chartType||"doughnut"===o.chartType)){const e=function(e){if(!e||0===e.length)return[];const t=[];for(const n of e){const e=pb(n);e&&t.push(e)}return t}(o.errorBars);for(const t of e)i.push(t)}}if(e.categories){const t=yb(e.categories,n);r?i.push(Ny("c:xVal",void 0,[Ny("c:numRef",void 0,[Ny("c:f",void 0,Ey(t))])])):i.push(Ny("c:cat",void 0,[Ny("c:strRef",void 0,[Ny("c:f",void 0,Ey(t))])]))}const h=yb(e.values,n);if(r?i.push(Ny("c:yVal",void 0,[Ny("c:numRef",void 0,[Ny("c:f",void 0,Ey(h))])])):i.push(Ny("c:val",void 0,[Ny("c:numRef",void 0,[Ny("c:f",void 0,Ey(h))])])),void 0!==o?.smooth&&i.push(Sy("c:smooth",{val:o.smooth?1:0})),void 0!==o.shape3D){const e=cb(o.shape3D);e&&i.push(e)}if("string"==typeof o.bubbleSize&&o.bubbleSize.length>0){const e=yb(o.bubbleSize,n);i.push(Ny("c:bubbleSize",void 0,[Ny("c:numRef",void 0,[Ny("c:f",void 0,Ey(e))])]))}return Ny("c:ser",void 0,i)}function wb(e){if(!e)return;const t=function(e){if(void 0!==e)return gb.has(e)?e:void 0}(e.symbol),n=function(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<mb?mb:t>Ab?Ab:t}(e.size),r=iv(e.fill),o=iv(e.line);if(void 0===t&&void 0===n&&!r&&!o)return;const i=[];if(void 0!==t&&i.push(Sy("c:symbol",{val:t})),void 0!==n&&i.push(Sy("c:size",{val:n})),r||o){const e=[];r&&e.push(Ny("a:solidFill",void 0,[Sy("a:srgbClr",{val:r})])),o&&e.push(Ny("a:ln",void 0,[Ny("a:solidFill",void 0,[Sy("a:srgbClr",{val:o})])])),i.push(Ny("c:spPr",void 0,e))}return Ny("c:marker",void 0,i)}const xb=Cv,Cb=Bv,Bb=new Set(["none","in","out","cross"]),Eb=new Set(["nextTo","low","high","none"]),Fb=new Set(["ctr","l","r"]),kb=-90,Sb=90,Db=new Set(["autoZero","min","max"]),Nb=new Set(["hundreds","thousands","tenThousands","hundredThousands","millions","tenMillions","hundredMillions","billions","trillions"]),Qb=new Set(["between","midCat"]);function Mb(e,t){const n=function(e){const t=ey(e,"title");if(!t)return;const n=ey(t,"tx");if(!n)return;const r=ey(n,"rich");if(r){const e=[];My(r,e);const t=e.join("").trim();return t.length>0?t:void 0}const o=ey(n,"strRef");if(o){const e=ey(o,"strCache");if(e)for(const t of ty(e)){if("pt"!==t.local)continue;const e=ey(t,"v");if(e){const t=Ty(e).trim();if(t.length>0)return t}}}return}(e),r=function(e){const t=ey(e,"title");if(!t)return;const n=ey(t,"tx");if(!n)return;const r=ey(n,"rich");if(!r)return;const o=ey(r,"bodyPr");if(!o)return;const i=o.attrs.rot;if("string"!=typeof i)return;const s=i.trim();if(0===s.length)return;const a=Number.parseInt(s,10);if(!Number.isFinite(a))return;const c=Math.round(a/xv);return 0===c?void 0:c<kb?kb:c>Sb?Sb:c}(e),o=function(e){const t=Iv(e);if(!t)return;const n=t.attrs.sz;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const o=Number.parseInt(r,10);if(!Number.isFinite(o))return;const i=Math.round(o/xb*2)/2;return i<1||i>Cb?void 0:i}(e),i=function(e){const t=Iv(e);if(!t)return;return!0===Ly(t.attrs.b)||void 0}(e),s=function(e){const t=Iv(e);if(!t)return;return!0===Ly(t.attrs.i)||void 0}(e),a=function(e){const t=Iv(e);if(!t)return;const n=ey(t,"solidFill");if(!n)return;const r=ey(n,"srgbClr");if(r)return iv(r.attrs.val);const o=ey(n,"schemeClr");return o?nv(o):void 0}(e),c=function(e){const t=Iv(e);if(!t)return;return"sngStrike"===t.attrs.strike||void 0}(e),l=function(e){const t=Iv(e);if(!t)return;return"sng"===t.attrs.u||void 0}(e),u=function(e){const t=Iv(e);if(!t)return;const n=ey(t,"latin");if(!n)return;const r=n.attrs.typeface;if("string"!=typeof r)return;const o=r.trim();return 0===o.length?void 0:o}(e),f=function(e){const t=ey(e,"title");if(!t)return;const n=ey(t,"overlay");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;switch(r){case"1":case"true":return!0;default:return}}(e),d=function(e){const t=ey(e,"title");return t?mv(t):void 0}(e),h=function(e){const t=ey(e,"title");return t?sv(t):void 0}(e),p=function(e){const t=ey(e,"title");return t?av(t):void 0}(e),g=function(e){const t=ey(e,"title");return t?cv(t):void 0}(e),m=function(e){const t=ey(e,"title");return t?lv(t):void 0}(e),A=function(e){const t=ey(e,"title");return t?Wy(t):void 0}(e),y=function(e){const t=ey(e,"title");return t?_y(t):void 0}(e),v=function(e){const t=void 0!==ey(e,"majorGridlines"),n=void 0!==ey(e,"minorGridlines");if(!t&&!n)return;const r={};t&&(r.major=!0);n&&(r.minor=!0);return r}(e),b=function(e){const t={},n=ey(e,"scaling");if(n){const e=qy(n,"min");void 0!==e&&(t.min=e);const r=qy(n,"max");void 0!==r&&(t.max=r);const o=qy(n,"logBase");void 0!==o&&(t.logBase=o)}const r=qy(e,"majorUnit");void 0!==r&&r>0&&(t.majorUnit=r);const o=qy(e,"minorUnit");void 0!==o&&o>0&&(t.minorUnit=o);return Object.keys(t).length>0?t:void 0}(e),I=function(e){const t=ey(e,"numFmt");if(!t)return;const n=t.attrs.formatCode;if("string"!=typeof n||0===n.length)return;const r={formatCode:n},o=t.attrs.sourceLinked;void 0!==o&&!0===Ly(o)&&(r.sourceLinked=!0);return r}(e),w=Tb(e,"majorTickMark","out"),x=Tb(e,"minorTickMark","none"),C=function(e){const t=ey(e,"tickLblPos");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=n.trim();return Eb.has(r)?"nextTo"===r?void 0:r:void 0}(e),B=function(e){const t=ey(e,"txPr");if(!t)return;const n=ey(t,"bodyPr");if(!n)return;const r=n.attrs.rot;if("string"!=typeof r)return;const o=r.trim();if(0===o.length)return;const i=Number.parseInt(o,10);if(!Number.isFinite(i))return;const s=Math.round(i/xv);return 0===s?void 0:s<kb?kb:s>Sb?Sb:s}(e),E=function(e){const t=bv(e);if(!t)return;const n=t.attrs.sz;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const o=Number.parseInt(r,10);if(!Number.isFinite(o))return;const i=Math.round(o/xb*2)/2;return i<1||i>Cb?void 0:i}(e),F=function(e){const t=bv(e);if(!t)return;return!0===Ly(t.attrs.b)||void 0}(e),k=function(e){const t=bv(e);if(!t)return;return!0===Ly(t.attrs.i)||void 0}(e),S=function(e){const t=bv(e);if(!t)return;const n=ey(t,"solidFill");if(!n)return;const r=ey(n,"srgbClr");if(r)return iv(r.attrs.val);const o=ey(n,"schemeClr");return o?nv(o):void 0}(e),D=function(e){const t=bv(e);if(!t)return;return"sng"===t.attrs.u||void 0}(e),N=function(e){const t=bv(e);if(!t)return;return"sngStrike"===t.attrs.strike||void 0}(e),Q=function(e){const t=bv(e);if(!t)return;const n=ey(t,"latin");if(!n)return;const r=n.attrs.typeface;if("string"!=typeof r)return;const o=r.trim();return 0===o.length?void 0:o}(e),M=function(e){const t=ey(e,"scaling");if(!t)return;const n=ey(t,"orientation");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;return"maxMin"===r.trim()||void 0}(e),T="catAx"===e.local||"dateAx"===e.local,L=T?Lb(e,"tickLblSkip"):void 0,U=T?Lb(e,"tickMarkSkip"):void 0,R=T?function(e){const t=ey(e,"lblOffset");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const o=Number.parseInt(r,10);return Number.isFinite(o)?o<0||o>1e3||100===o?void 0:o:void 0}(e):void 0,H=T?function(e){const t=ey(e,"lblAlgn");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=n.trim();return Fb.has(r)?"ctr"===r?void 0:r:void 0}(e):void 0,q="catAx"===e.local?function(e){const t=ey(e,"noMultiLvlLbl");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n.trim()){case"1":case"true":return!0;default:return}}(e):void 0,O="catAx"===e.local?function(e){const t=ey(e,"auto");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n.trim()){case"0":case"false":return!1;default:return}}(e):void 0,P=function(e){const t=ey(e,"delete");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n.trim()){case"1":case"true":return!0;default:return}}(e),z=function(e){const t=ey(e,"crossesAt");if(t){const e=t.attrs.val;if("string"==typeof e){const t=e.trim();if(t.length>0){const e=Number.parseFloat(t);if(Number.isFinite(e))return{crossesAt:e}}}}const n=ey(e,"crosses");if(!n)return{};const r=n.attrs.val;if("string"!=typeof r)return{};const o=r.trim();return Db.has(o)?"autoZero"===o?{}:{crosses:o}:{}}(e),j=z.crosses,$=z.crossesAt,Y="valAx"===e.local?function(e){const t=ey(e,"dispUnits");if(!t)return;const n={},r=ey(t,"custUnit");if(r){const e=r.attrs.val;if("string"==typeof e){const t=Number.parseFloat(e.trim());Number.isFinite(t)&&t>0&&(n.custUnit=t)}}if(void 0===n.custUnit){const e=ey(t,"builtInUnit");if(e){const t=e.attrs.val;if("string"==typeof t){const e=t.trim();Nb.has(e)&&(n.unit=e)}}}if(void 0===n.unit&&void 0===n.custUnit)return;const o=ey(t,"dispUnitsLbl");if(o){n.showLabel=!0;const e=ey(o,"tx");if(e){const t=ey(e,"rich");if(t){const e=[];for(const n of t.children){if("string"==typeof n)continue;if("p"!==n.local)continue;const t=[];for(const e of n.children)if("string"!=typeof e&&"r"===e.local)for(const n of e.children){if("string"==typeof n)continue;if("t"!==n.local)continue;let e="";for(const t of n.children)"string"==typeof t&&(e+=t);t.push(e)}t.length>0&&e.push(t.join(""))}const r=e.join("\n").trim();r.length>0&&(n.customLabel=r)}}}return n}(e):void 0,G="valAx"===e.local?function(e){const t=ey(e,"crossBetween");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=n.trim();return Qb.has(r)?r:void 0}(e):void 0,V=G===t?void 0:G;if(void 0===n&&void 0===r&&void 0===o&&void 0===i&&void 0===s&&void 0===a&&void 0===c&&void 0===l&&void 0===u&&void 0===f&&void 0===d&&void 0===h&&void 0===p&&void 0===g&&void 0===m&&void 0===A&&void 0===y&&void 0===v&&void 0===b&&void 0===I&&void 0===w&&void 0===x&&void 0===C&&void 0===B&&void 0===E&&void 0===F&&void 0===k&&void 0===S&&void 0===Q&&void 0===D&&void 0===N&&void 0===M&&void 0===L&&void 0===U&&void 0===R&&void 0===H&&void 0===q&&void 0===O&&void 0===P&&void 0===j&&void 0===$&&void 0===Y&&void 0===V)return;const J={};return void 0!==n&&(J.title=n),void 0!==r&&(J.axisTitleRotation=r),void 0!==o&&(J.axisTitleFontSize=o),void 0!==i&&(J.axisTitleBold=i),void 0!==s&&(J.axisTitleItalic=s),void 0!==a&&(J.axisTitleColor=a),void 0!==c&&(J.axisTitleStrike=c),void 0!==l&&(J.axisTitleUnderline=l),void 0!==u&&(J.axisTitleFontFamily=u),void 0!==f&&(J.axisTitleOverlay=f),void 0!==d&&(J.axisTitleLayout=d),void 0!==h&&(J.axisTitleFillColor=h),void 0!==p&&(J.axisTitleBorderColor=p),void 0!==g&&(J.axisTitleBorderWidth=g),void 0!==m&&(J.axisTitleBorderDash=m),void 0!==A&&(J.axisTitleBorderCap=A),void 0!==y&&(J.axisTitleBorderCompound=y),void 0!==v&&(J.gridlines=v),void 0!==b&&(J.scale=b),void 0!==I&&(J.numberFormat=I),void 0!==w&&(J.majorTickMark=w),void 0!==x&&(J.minorTickMark=x),void 0!==C&&(J.tickLblPos=C),void 0!==B&&(J.labelRotation=B),void 0!==E&&(J.labelFontSize=E),void 0!==F&&(J.labelBold=F),void 0!==k&&(J.labelItalic=k),void 0!==S&&(J.labelColor=S),void 0!==Q&&(J.labelFontFamily=Q),void 0!==D&&(J.labelUnderline=D),void 0!==N&&(J.labelStrike=N),void 0!==M&&(J.reverse=M),void 0!==L&&(J.tickLblSkip=L),void 0!==U&&(J.tickMarkSkip=U),void 0!==R&&(J.lblOffset=R),void 0!==H&&(J.lblAlgn=H),void 0!==q&&(J.noMultiLvlLbl=q),void 0!==O&&(J.auto=O),void 0!==P&&(J.hidden=P),void 0!==j&&(J.crosses=j),void 0!==$&&(J.crossesAt=$),void 0!==Y&&(J.dispUnits=Y),void 0!==V&&(J.crossBetween=V),J}function Tb(e,t,n){const r=ey(e,t);if(!r)return;const o=r.attrs.val;if("string"!=typeof o)return;const i=o.trim();return Bb.has(i)?i===n?void 0:i:void 0}function Lb(e,t){const n=ey(e,t);if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;const o=r.trim();if(0===o.length)return;const i=Number.parseInt(o,10);return Number.isFinite(i)&&!(i<1||i>32767)&&1!==i?i:void 0}const Ub=new Set(["autoZero","min","max"]),Rb=111111111,Hb=222222222,qb=333333333,Ob=444444444,Pb=new Set(["none","in","out","cross"]),zb=new Set(["nextTo","low","high","none"]);function jb(e){if(!0===e.autoTitleDeleted)return!0;if(!1===e.autoTitleDeleted)return!1;return!((e.showTitle??Boolean(e.title))&&e.title)}function $b(e){if("string"!=typeof e)return;const t=e.trim();return t.length>0?t:void 0}function Yb(e){if(!e)return;const t=!0===e.major,n=!0===e.minor;return t||n?{major:t,minor:n}:void 0}function Gb(e){if(!e)return[];const t=[];return e.major&&t.push(Ny("c:majorGridlines",void 0,[])),e.minor&&t.push(Ny("c:minorGridlines",void 0,[])),t}function Vb(e){if(!e)return;const t={};return"number"==typeof e.min&&Number.isFinite(e.min)&&(t.min=e.min),"number"==typeof e.max&&Number.isFinite(e.max)&&(t.max=e.max),void 0!==t.min&&void 0!==t.max&&t.min>=t.max&&delete t.max,"number"==typeof e.majorUnit&&Number.isFinite(e.majorUnit)&&e.majorUnit>0&&(t.majorUnit=e.majorUnit),"number"==typeof e.minorUnit&&Number.isFinite(e.minorUnit)&&e.minorUnit>0&&(t.minorUnit=e.minorUnit),"number"==typeof e.logBase&&Number.isFinite(e.logBase)&&e.logBase>=2&&e.logBase<=1e3&&(t.logBase=e.logBase),Object.keys(t).length>0?t:void 0}function Jb(e){if(!e)return;const t="string"==typeof e.formatCode?e.formatCode:"";if(0===t.length)return;const n={formatCode:t};return!0===e.sourceLinked&&(n.sourceLinked=!0),n}function Wb(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<1||t>32767||1===t?void 0:t}function _b(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<0||t>1e3||100===t?void 0:t}function Xb(e){if(void 0!==e&&("ctr"===e||"l"===e||"r"===e)&&"ctr"!==e)return e}function Kb(e){return!0===e}function Zb(e){if(void 0===e||"number"!=typeof e||!Number.isFinite(e))return;let t=Math.round(e);return t<kb?t=kb:t>Sb&&(t=Sb),0!==t?t:void 0}function eI(e){if(void 0===e||"number"!=typeof e||!Number.isFinite(e))return;const t=Math.round(2*e)/2;return t<1||t>Cb?void 0:t}function tI(e){return Nv(e)}function nI(e){return Qv(e)}function rI(e){return Mv(e)}function oI(e){return Lv(e)}function iI(e){return Tv(e)}function sI(e){if("string"!=typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}function aI(e,t,n,r,o,i,s,a){if(void 0===e&&void 0===t&&void 0===n&&void 0===r&&void 0===o&&void 0===i&&void 0===s&&void 0===a)return;const c=void 0===e?void 0:e*xv,l=void 0===t?void 0:t*xb,u=void 0===n?void 0:n?1:0,f=void 0===r?void 0:r?1:0,d=!0===i?"sng":void 0,h=!0===s?"sngStrike":void 0,p=void 0!==o?Ny("a:solidFill",void 0,[ov(o)]):void 0,g=a?Sy("a:latin",{typeface:a}):void 0,m=[];p&&m.push(p),g&&m.push(g);const A=m.length>0?Ny("a:defRPr",{sz:l,b:u,i:f,u:d,strike:h},m):Sy("a:defRPr",{sz:l,b:u,i:f,u:d,strike:h});return Ny("c:txPr",void 0,[Sy("a:bodyPr",{rot:c}),Sy("a:lstStyle"),Ny("a:p",void 0,[Ny("a:pPr",void 0,[A]),Sy("a:endParaRPr",{lang:"en-US"})])])}function cI(e,t){return"number"==typeof t&&Number.isFinite(t)?{kind:"numeric",value:t}:void 0!==e&&Ub.has(e)&&"autoZero"!==e?{kind:"semantic",value:e}:{kind:"default"}}function lI(e){switch(e.kind){case"numeric":return Sy("c:crossesAt",{val:e.value});case"semantic":return Sy("c:crosses",{val:e.value});case"default":return Sy("c:crosses",{val:"autoZero"})}}function uI(e,t=!1){const{before:n,after:r}=function(e){if(!e)return{before:[],after:[]};const t=[],n=[];return void 0!==e.logBase&&t.push(Sy("c:logBase",{val:e.logBase})),void 0!==e.max&&n.push(Sy("c:max",{val:e.max})),void 0!==e.min&&n.push(Sy("c:min",{val:e.min})),{before:t,after:n}}(e);return Ny("c:scaling",void 0,[...n,Sy("c:orientation",{val:t?"maxMin":"minMax"}),...r])}function fI(e){if(!e)return[];const t=[];return void 0!==e.majorUnit&&t.push(Sy("c:majorUnit",{val:e.majorUnit})),void 0!==e.minorUnit&&t.push(Sy("c:minorUnit",{val:e.minorUnit})),t}function dI(e){if(void 0===e)return;if("string"==typeof e)return Nb.has(e)?{unit:e}:void 0;if("object"!=typeof e||null===e)return;const t={},n=e.unit;"string"==typeof n&&Nb.has(n)&&(t.unit=n);const r=e.custUnit;if("number"==typeof r&&Number.isFinite(r)&&r>0&&(t.custUnit=r),void 0!==t.unit||void 0!==t.custUnit){if(!0===e.showLabel&&(t.showLabel=!0),"string"==typeof e.customLabel){const n=e.customLabel.trim();n.length>0&&(t.customLabel=n)}return t}}function hI(e){if(!e)return[];const t=[];if(void 0!==e.custUnit)t.push(Sy("c:custUnit",{val:e.custUnit}));else{if(void 0===e.unit)return[];t.push(Sy("c:builtInUnit",{val:e.unit}))}if(!0===e.showLabel||"string"==typeof e.customLabel&&e.customLabel.trim().length>0){const n="string"==typeof e.customLabel?e.customLabel.trim():"";if(n.length>0){const e=n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),r=Ny("c:rich",void 0,[Sy("a:bodyPr"),Sy("a:lstStyle"),Ny("a:p",void 0,[Ny("a:r",void 0,[Ny("a:t",void 0,e)])])]),o=Ny("c:tx",void 0,[r]);t.push(Ny("c:dispUnitsLbl",void 0,[o]))}else t.push(Sy("c:dispUnitsLbl"))}return[Ny("c:dispUnits",void 0,t)]}function pI(e){if("string"==typeof e)return Qb.has(e)?e:void 0}function gI(e){if(!e)return[];const t=!0===e.sourceLinked?1:0;return[Sy("c:numFmt",{formatCode:e.formatCode,sourceLinked:t})]}function mI(e){if(void 0!==e)return Pb.has(e)?e:void 0}function AI(e){if(void 0!==e)return zb.has(e)?e:void 0}function yI(e,t,n){const r=[];return void 0!==e&&r.push(Sy("c:majorTickMark",{val:e})),void 0!==t&&r.push(Sy("c:minorTickMark",{val:t})),void 0!==n&&r.push(Sy("c:tickLblPos",{val:n})),r}function vI(e,t){const n="column"===e?"b":"l",r="column"===e?"l":"b",o=[Sy("c:axId",{val:Rb}),uI(t.xScale,t.xReverse),Sy("c:delete",{val:t.xHidden?1:0}),Sy("c:axPos",{val:n}),...Gb(t.xGridlines)];t.xAxisTitle&&o.push(bI(t.xAxisTitle,t.xAxisTitleRotation,t.xAxisTitleFontSize,t.xAxisTitleBold,t.xAxisTitleItalic,t.xAxisTitleColor,t.xAxisTitleStrike,t.xAxisTitleUnderline,t.xAxisTitleFontFamily,t.xAxisTitleOverlay,t.xAxisTitleLayout,t.xAxisTitleFillColor,t.xAxisTitleBorderColor,t.xAxisTitleBorderWidth,t.xAxisTitleBorderDash,t.xAxisTitleBorderCap,t.xAxisTitleBorderCompound)),o.push(...gI(t.xNumFmt),...yI(t.xMajorTickMark,t.xMinorTickMark,t.xTickLblPos));const i=aI(t.xLabelRotation,t.xLabelFontSize,t.xLabelBold,t.xLabelItalic,t.xLabelColor,t.xLabelUnderline,t.xLabelStrike,t.xLabelFontFamily);i&&o.push(i),o.push(Sy("c:crossAx",{val:Hb}),lI(t.xCrosses),Sy("c:auto",{val:t.xAuto?1:0}),Sy("c:lblAlgn",{val:t.xLblAlgn??"ctr"}),Sy("c:lblOffset",{val:t.xLblOffset??100}),...function(e,t){const n=[];return void 0!==e&&n.push(Sy("c:tickLblSkip",{val:e})),void 0!==t&&n.push(Sy("c:tickMarkSkip",{val:t})),n}(t.xTickLblSkip,t.xTickMarkSkip),Sy("c:noMultiLvlLbl",{val:t.xNoMultiLvlLbl?1:0}));const s=[Sy("c:axId",{val:Hb}),uI(t.yScale,t.yReverse),Sy("c:delete",{val:t.yHidden?1:0}),Sy("c:axPos",{val:r}),...Gb(t.yGridlines)];t.yAxisTitle&&s.push(bI(t.yAxisTitle,t.yAxisTitleRotation,t.yAxisTitleFontSize,t.yAxisTitleBold,t.yAxisTitleItalic,t.yAxisTitleColor,t.yAxisTitleStrike,t.yAxisTitleUnderline,t.yAxisTitleFontFamily,t.yAxisTitleOverlay,t.yAxisTitleLayout,t.yAxisTitleFillColor,t.yAxisTitleBorderColor,t.yAxisTitleBorderWidth,t.yAxisTitleBorderDash,t.yAxisTitleBorderCap,t.yAxisTitleBorderCompound)),s.push(...gI(t.yNumFmt),...yI(t.yMajorTickMark,t.yMinorTickMark,t.yTickLblPos));const a=aI(t.yLabelRotation,t.yLabelFontSize,t.yLabelBold,t.yLabelItalic,t.yLabelColor,t.yLabelUnderline,t.yLabelStrike,t.yLabelFontFamily);return a&&s.push(a),s.push(Sy("c:crossAx",{val:Rb}),lI(t.yCrosses),Sy("c:crossBetween",{val:t.yCrossBetween??"between"}),...fI(t.yScale),...hI(t.yDispUnits)),[Ny("c:catAx",void 0,o),Ny("c:valAx",void 0,s)]}function bI(e,t,n,r,o,i,s,a,c,l,u,f,d,h,p,g,m){const A=void 0===t?0:6e4*t,y=void 0===n?1e3:n*xb,v=r?1:0,b=!0===o?1:void 0,I=!0===s?"sngStrike":void 0,w=!0===a?"sng":void 0,x=void 0!==i?Ny("a:solidFill",void 0,[ov(i)]):void 0,C=c?Sy("a:latin",{typeface:c}):void 0,B=[];x&&B.push(x),C&&B.push(C);const E=B.length>0?Ny("a:defRPr",{sz:y,b:v,i:b,u:w,strike:I},B):Sy("a:defRPr",{sz:y,b:v,i:b,u:w,strike:I}),F=B.length>0?Ny("a:rPr",{lang:"en-US",sz:y,b:v,i:b,u:w,strike:I},B):Sy("a:rPr",{lang:"en-US",sz:y,b:v,i:b,u:w,strike:I}),k=vv(u),S=[Ny("c:tx",void 0,[Ny("c:rich",void 0,[Ny("a:bodyPr",{rot:A,spcFirstLastPara:1,vertOverflow:"ellipsis",wrap:"square",anchor:"ctr",anchorCtr:1},[]),Sy("a:lstStyle"),Ny("a:p",void 0,[Ny("a:pPr",void 0,[E]),Ny("a:r",void 0,[F,Ny("a:t",void 0,Ey(e))])])])])];k&&S.push(k),S.push(Sy("c:overlay",{val:l?1:0}));const D=kv(f,d,h,p,g,m);return void 0!==D&&S.push(D),Ny("c:title",void 0,S)}function II(e){return Sv(e)}function wI(e){return Dv(e)}function xI(e){return Nv(e)}function CI(e){return Qv(e)}function BI(e){return Mv(e)}function EI(e){return Tv(e)}function FI(e){return Lv(e)}function kI(e){if("string"!=typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}const SI=new Set(["pie","pie3D","doughnut","ofPie"]),DI=new Set(["none","line","lineMarker","marker","smooth","smoothMarker"]),NI=new Set(["pie","doughnut"]),QI=new Set(["none","line","lineMarker","marker","smooth","smoothMarker"]);function MI(e,t){const n=ey(e,"varyColors");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;const o=SI.has(t);let i;switch(r){case"1":case"true":i=!0;break;case"0":case"false":i=!1;break;default:return}return i!==o?i:void 0}function TI(e){const t=ey(e,"scatterStyle");if(!t)return;const n=t.attrs.val;return"string"==typeof n&&DI.has(n)?n:void 0}function LI(e){return!!ey(e,"dropLines")||void 0}function UI(e){return!!ey(e,"hiLowLines")||void 0}function RI(e){return!!ey(e,"serLines")||void 0}function HI(e){const t=ey(e,"marker");if(!t)return;const n=t.attrs.val;if("string"==typeof n)switch(n){case"0":case"false":return!1;default:return}}function qI(e){const t=ey(e,"grouping");if(!t)return;const n=t.attrs.val;if("string"==typeof n)switch(n){case"stacked":return"stacked";case"percentStacked":return"percentStacked";case"clustered":return"clustered";default:return}}function OI(e){const t=ey(e,"holeSize");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseInt(n,10);return Number.isFinite(r)&&!(r<1||r>99)?r:void 0}function PI(e){const t=ey(e,"gapWidth");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseInt(n,10);return Number.isFinite(r)&&!(r<0||r>500)&&150!==r?r:void 0}function zI(e){const t=ey(e,"gapWidth");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseInt(n,10);return Number.isFinite(r)&&!(r<0||r>500)&&150!==r?r:void 0}function jI(e){const t=ey(e,"overlap");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseInt(n,10);return Number.isFinite(r)&&!(r<-100||r>100)&&0!==r?r:void 0}function $I(e){const t=ey(e,"firstSliceAng");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;const r=Number.parseInt(n,10);return Number.isFinite(r)&&!(r<0||r>360)&&0!==r&&360!==r?r:void 0}function YI(e){const t=ey(e,"grouping");if(!t)return;const n=t.attrs.val;if("string"==typeof n)switch(n){case"stacked":return"stacked";case"percentStacked":return"percentStacked";default:return}}function GI(e,t){const n=vv(function(e){return Av(e.plotAreaLayout)}(e)),r=[n??Sy("c:layout")],o={xAxisTitle:$b(e.axes?.x?.title),yAxisTitle:$b(e.axes?.y?.title),xAxisTitleRotation:II(e.axes?.x?.axisTitleRotation),yAxisTitleRotation:II(e.axes?.y?.axisTitleRotation),xAxisTitleFontSize:wI(e.axes?.x?.axisTitleFontSize),yAxisTitleFontSize:wI(e.axes?.y?.axisTitleFontSize),xAxisTitleBold:xI(e.axes?.x?.axisTitleBold),yAxisTitleBold:xI(e.axes?.y?.axisTitleBold),xAxisTitleItalic:CI(e.axes?.x?.axisTitleItalic),yAxisTitleItalic:CI(e.axes?.y?.axisTitleItalic),xAxisTitleColor:BI(e.axes?.x?.axisTitleColor),yAxisTitleColor:BI(e.axes?.y?.axisTitleColor),xAxisTitleStrike:EI(e.axes?.x?.axisTitleStrike),yAxisTitleStrike:EI(e.axes?.y?.axisTitleStrike),xAxisTitleUnderline:FI(e.axes?.x?.axisTitleUnderline),yAxisTitleUnderline:FI(e.axes?.y?.axisTitleUnderline),xAxisTitleFontFamily:kI(e.axes?.x?.axisTitleFontFamily),yAxisTitleFontFamily:kI(e.axes?.y?.axisTitleFontFamily),xAxisTitleOverlay:!0===e.axes?.x?.axisTitleOverlay,yAxisTitleOverlay:!0===e.axes?.y?.axisTitleOverlay,xAxisTitleLayout:Av(e.axes?.x?.axisTitleLayout),yAxisTitleLayout:Av(e.axes?.y?.axisTitleLayout),xAxisTitleFillColor:Mv(e.axes?.x?.axisTitleFillColor),yAxisTitleFillColor:Mv(e.axes?.y?.axisTitleFillColor),xAxisTitleBorderColor:Mv(e.axes?.x?.axisTitleBorderColor),yAxisTitleBorderColor:Mv(e.axes?.y?.axisTitleBorderColor),xAxisTitleBorderWidth:uv(e.axes?.x?.axisTitleBorderWidth),yAxisTitleBorderWidth:uv(e.axes?.y?.axisTitleBorderWidth),xAxisTitleBorderDash:fv(e.axes?.x?.axisTitleBorderDash),yAxisTitleBorderDash:fv(e.axes?.y?.axisTitleBorderDash),xAxisTitleBorderCap:Vy(e.axes?.x?.axisTitleBorderCap),yAxisTitleBorderCap:Vy(e.axes?.y?.axisTitleBorderCap),xAxisTitleBorderCompound:Jy(e.axes?.x?.axisTitleBorderCompound),yAxisTitleBorderCompound:Jy(e.axes?.y?.axisTitleBorderCompound),xGridlines:Yb(e.axes?.x?.gridlines),yGridlines:Yb(e.axes?.y?.gridlines),xScale:Vb(e.axes?.x?.scale),yScale:Vb(e.axes?.y?.scale),xNumFmt:Jb(e.axes?.x?.numberFormat),yNumFmt:Jb(e.axes?.y?.numberFormat),xMajorTickMark:mI(e.axes?.x?.majorTickMark),yMajorTickMark:mI(e.axes?.y?.majorTickMark),xMinorTickMark:mI(e.axes?.x?.minorTickMark),yMinorTickMark:mI(e.axes?.y?.minorTickMark),xTickLblPos:AI(e.axes?.x?.tickLblPos),yTickLblPos:AI(e.axes?.y?.tickLblPos),xLabelRotation:Zb(e.axes?.x?.labelRotation),yLabelRotation:Zb(e.axes?.y?.labelRotation),xLabelFontSize:eI(e.axes?.x?.labelFontSize),yLabelFontSize:eI(e.axes?.y?.labelFontSize),xLabelBold:tI(e.axes?.x?.labelBold),yLabelBold:tI(e.axes?.y?.labelBold),xLabelItalic:nI(e.axes?.x?.labelItalic),yLabelItalic:nI(e.axes?.y?.labelItalic),xLabelColor:rI(e.axes?.x?.labelColor),yLabelColor:rI(e.axes?.y?.labelColor),xLabelUnderline:oI(e.axes?.x?.labelUnderline),yLabelUnderline:oI(e.axes?.y?.labelUnderline),xLabelStrike:iI(e.axes?.x?.labelStrike),yLabelStrike:iI(e.axes?.y?.labelStrike),xLabelFontFamily:sI(e.axes?.x?.labelFontFamily),yLabelFontFamily:sI(e.axes?.y?.labelFontFamily),xReverse:!0===e.axes?.x?.reverse,yReverse:!0===e.axes?.y?.reverse,xTickLblSkip:Wb(e.axes?.x?.tickLblSkip),xTickMarkSkip:Wb(e.axes?.x?.tickMarkSkip),xLblOffset:_b(e.axes?.x?.lblOffset),xLblAlgn:Xb(e.axes?.x?.lblAlgn),xNoMultiLvlLbl:!0===e.axes?.x?.noMultiLvlLbl,xAuto:!1!==e.axes?.x?.auto,xHidden:Kb(e.axes?.x?.hidden),yHidden:Kb(e.axes?.y?.hidden),xCrosses:cI(e.axes?.x?.crosses,e.axes?.x?.crossesAt),yCrosses:cI(e.axes?.y?.crosses,e.axes?.y?.crossesAt),xDispUnits:dI(e.axes?.x?.dispUnits),yDispUnits:dI(e.axes?.y?.dispUnits),xCrossBetween:pI(e.axes?.x?.crossBetween),yCrossBetween:pI(e.axes?.y?.crossBetween)};switch(e.type){case"bar":case"column":r.push(function(e,t){const n=e.barGrouping??"clustered",r="bar"===e.type?"bar":"col",o="percentStacked"===n||"stacked"===n,i=[Sy("c:barDir",{val:r}),Sy("c:grouping",{val:n}),Sy("c:varyColors",{val:WI(e)?1:0})];for(let n=0;n<e.series.length;n++)i.push(Ib(e.series[n],n,t,!1,{chartType:e.type,dataLabels:e.dataLabels,invertIfNegative:!0===e.series[n].invertIfNegative,dataPoints:e.series[n].dataPoints,trendlines:e.series[n].trendlines,errorBars:e.series[n].errorBars}));const s=tb(e);s&&i.push(s);const a=function(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<0?0:t>500?500:t}(e.gapWidth),c=function(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<-100?-100:t>100?100:t}(e.overlap),l=a??(o?void 0:150);void 0!==l&&i.push(Sy("c:gapWidth",{val:l}));const u=c??(o?100:void 0);void 0!==u&&i.push(Sy("c:overlap",{val:u}));!0===e.serLines&&i.push(Ny("c:serLines",void 0,[]));return i.push(Sy("c:axId",{val:Rb})),i.push(Sy("c:axId",{val:Hb})),Ny("c:barChart",void 0,i)}(e,t)),r.push(...vI(e.type,o));break;case"line":r.push(function(e,t){const n=e.lineGrouping??"standard",r=[Sy("c:grouping",{val:n}),Sy("c:varyColors",{val:WI(e)?1:0})];for(let n=0;n<e.series.length;n++){const o=Ib(e.series[n],n,t,!1,{chartType:e.type,smooth:!0===e.series[n].smooth,dataLabels:e.dataLabels,stroke:e.series[n].stroke,marker:e.series[n].marker,dataPoints:e.series[n].dataPoints,trendlines:e.series[n].trendlines,errorBars:e.series[n].errorBars});r.push(o)}const o=tb(e);o&&r.push(o);!0===e.dropLines&&r.push(Ny("c:dropLines",void 0,[]));!0===e.hiLowLines&&r.push(Ny("c:hiLowLines",void 0,[]));!0===e.upDownBars&&r.push(function(e){const t=function(e){if(void 0===e||!Number.isFinite(e))return;const t=Math.round(e);return t<0||t>500?void 0:t}(e)??150;return Ny("c:upDownBars",void 0,[Sy("c:gapWidth",{val:t})])}(e.upDownBarsGapWidth));return r.push(Sy("c:marker",{val:!1===e.showLineMarkers?0:1})),r.push(Sy("c:axId",{val:Rb})),r.push(Sy("c:axId",{val:Hb})),Ny("c:lineChart",void 0,r)}(e,t)),r.push(...vI("column",o));break;case"area":r.push(function(e,t){const n=e.areaGrouping??"standard",r=[Sy("c:grouping",{val:n}),Sy("c:varyColors",{val:WI(e)?1:0})];for(let n=0;n<e.series.length;n++)r.push(Ib(e.series[n],n,t,!1,{chartType:e.type,dataLabels:e.dataLabels,dataPoints:e.series[n].dataPoints,trendlines:e.series[n].trendlines,errorBars:e.series[n].errorBars}));const o=tb(e);o&&r.push(o);!0===e.dropLines&&r.push(Ny("c:dropLines",void 0,[]));return r.push(Sy("c:axId",{val:Rb})),r.push(Sy("c:axId",{val:Hb})),Ny("c:areaChart",void 0,r)}(e,t)),r.push(...vI("column",o));break;case"pie":r.push(function(e,t){const n=[Sy("c:varyColors",{val:WI(e)?1:0})];e.series.length>0&&n.push(Ib(e.series[0],0,t,!1,{chartType:e.type,dataLabels:e.dataLabels,explosion:e.series[0].explosion,dataPoints:e.series[0].dataPoints}));const r=tb(e);r&&n.push(r);const o=VI(e.firstSliceAng);void 0!==o&&n.push(Sy("c:firstSliceAng",{val:o}));return Ny("c:pieChart",void 0,n)}(e,t));break;case"doughnut":r.push(function(e,t){const n=[Sy("c:varyColors",{val:WI(e)?1:0})];for(let r=0;r<e.series.length;r++)n.push(Ib(e.series[r],r,t,!1,{chartType:e.type,dataLabels:e.dataLabels,explosion:e.series[r].explosion,dataPoints:e.series[r].dataPoints}));const r=tb(e);r&&n.push(r);return n.push(Sy("c:firstSliceAng",{val:VI(e.firstSliceAng)??0})),n.push(Sy("c:holeSize",{val:JI(e.holeSize)})),Ny("c:doughnutChart",void 0,n)}(e,t));break;case"scatter":r.push(function(e,t){const n=[Sy("c:scatterStyle",{val:_I(e)}),Sy("c:varyColors",{val:WI(e)?1:0})];for(let r=0;r<e.series.length;r++)n.push(Ib(e.series[r],r,t,!0,{chartType:e.type,smooth:!0===e.series[r].smooth||void 0,dataLabels:e.dataLabels,stroke:e.series[r].stroke,marker:e.series[r].marker,dataPoints:e.series[r].dataPoints,trendlines:e.series[r].trendlines,errorBars:e.series[r].errorBars}));const r=tb(e);r&&n.push(r);return n.push(Sy("c:axId",{val:qb})),n.push(Sy("c:axId",{val:Ob})),Ny("c:scatterChart",void 0,n)}(e,t)),r.push(...function(e){const t=[Sy("c:axId",{val:qb}),uI(e.xScale,e.xReverse),Sy("c:delete",{val:e.xHidden?1:0}),Sy("c:axPos",{val:"b"}),...Gb(e.xGridlines)];e.xAxisTitle&&t.push(bI(e.xAxisTitle,e.xAxisTitleRotation,e.xAxisTitleFontSize,e.xAxisTitleBold,e.xAxisTitleItalic,e.xAxisTitleColor,e.xAxisTitleStrike,e.xAxisTitleUnderline,e.xAxisTitleFontFamily,e.xAxisTitleOverlay,e.xAxisTitleLayout,e.xAxisTitleFillColor,e.xAxisTitleBorderColor,e.xAxisTitleBorderWidth,e.xAxisTitleBorderDash,e.xAxisTitleBorderCap,e.xAxisTitleBorderCompound)),t.push(...gI(e.xNumFmt),...yI(e.xMajorTickMark,e.xMinorTickMark,e.xTickLblPos));const n=aI(e.xLabelRotation,e.xLabelFontSize,e.xLabelBold,e.xLabelItalic,e.xLabelColor,e.xLabelUnderline,e.xLabelStrike,e.xLabelFontFamily);n&&t.push(n),t.push(Sy("c:crossAx",{val:Ob}),lI(e.xCrosses),Sy("c:crossBetween",{val:e.xCrossBetween??"midCat"}),...fI(e.xScale),...hI(e.xDispUnits));const r=[Sy("c:axId",{val:Ob}),uI(e.yScale,e.yReverse),Sy("c:delete",{val:e.yHidden?1:0}),Sy("c:axPos",{val:"l"}),...Gb(e.yGridlines)];e.yAxisTitle&&r.push(bI(e.yAxisTitle,e.yAxisTitleRotation,e.yAxisTitleFontSize,e.yAxisTitleBold,e.yAxisTitleItalic,e.yAxisTitleColor,e.yAxisTitleStrike,e.yAxisTitleUnderline,e.yAxisTitleFontFamily,e.yAxisTitleOverlay,e.yAxisTitleLayout,e.yAxisTitleFillColor,e.yAxisTitleBorderColor,e.yAxisTitleBorderWidth,e.yAxisTitleBorderDash,e.yAxisTitleBorderCap,e.yAxisTitleBorderCompound)),r.push(...gI(e.yNumFmt),...yI(e.yMajorTickMark,e.yMinorTickMark,e.yTickLblPos));const o=aI(e.yLabelRotation,e.yLabelFontSize,e.yLabelBold,e.yLabelItalic,e.yLabelColor,e.yLabelUnderline,e.yLabelStrike,e.yLabelFontFamily);return o&&r.push(o),r.push(Sy("c:crossAx",{val:qb}),lI(e.yCrosses),Sy("c:crossBetween",{val:e.yCrossBetween??"midCat"}),...fI(e.yScale),...hI(e.yDispUnits)),[Ny("c:valAx",void 0,t),Ny("c:valAx",void 0,r)]}(o));break;default:{const t=e.type;throw new Error(`Unsupported chart type: ${String(t)}`)}}const i=function(e){if("pie"===e.type||"doughnut"===e.type)return;const t=e.dataTable;var n;return void 0!==t&&!1!==t?!0===t?{showHorzBorder:!0,showVertBorder:!0,showOutline:!0,showKeys:!0,fontSize:void 0,fontColor:void 0,bold:void 0,italic:void 0,underline:void 0,strikethrough:void 0,fontFamily:void 0,fillColor:void 0,borderColor:void 0,borderWidth:void 0,borderDash:void 0,borderCap:void 0,borderCompound:void 0}:{showHorzBorder:!1!==t.showHorzBorder,showVertBorder:!1!==t.showVertBorder,showOutline:!1!==t.showOutline,showKeys:!1!==t.showKeys,fontSize:(n=t.fontSize,Dv(n)),fontColor:jv(t.fontColor),bold:$v(t.bold),italic:Yv(t.italic),underline:Gv(t.underline),strikethrough:Vv(t.strikethrough),fontFamily:Jv(t.fontFamily),fillColor:Wv(t.fillColor),borderColor:_v(t.borderColor),borderWidth:uv(t.borderWidth),borderDash:fv(t.borderDash),borderCap:Vy(t.borderCap),borderCompound:Jy(t.borderCompound)}:void 0}(e);void 0!==i&&r.push(Xv(i));const s=function(e){const t=(a=e.plotAreaFillColor,Mv(a)),n=function(e){return Mv(e)}(e.plotAreaBorderColor),r=uv(e.plotAreaBorderWidth),o=fv(e.plotAreaBorderDash),i=Vy(e.plotAreaBorderCap),s=Jy(e.plotAreaBorderCompound);var a;if(void 0===t&&void 0===n&&void 0===r&&void 0===o&&void 0===i&&void 0===s)return;const c=[];void 0!==t&&c.push(Ny("a:solidFill",void 0,[ov(t)]));if(void 0!==n||void 0!==r||void 0!==o||void 0!==i||void 0!==s){const e={};void 0!==r&&(e.w=Math.round(r*zy)),void 0!==i&&(e.cap=i),void 0!==s&&(e.cmpd=s);const t=[];void 0!==n&&t.push(Ny("a:solidFill",void 0,[ov(n)])),void 0!==o&&t.push(Sy("a:prstDash",{val:o})),c.push(0===t.length?Sy("a:ln",e):Ny("a:ln",Object.keys(e).length>0?e:void 0,t))}return Ny("c:spPr",void 0,c)}(e);return void 0!==s&&r.push(s),Ny("c:plotArea",void 0,r)}function VI(e){if(void 0===e||!Number.isFinite(e))return;let t=Math.round(e)%360;return t<0&&(t+=360),0!==t?t:void 0}function JI(e){if(void 0===e||!Number.isFinite(e))return 50;const t=Math.round(e);return t<10?10:t>90?90:t}function WI(e){return"boolean"==typeof e.varyColors?e.varyColors:NI.has(e.type)}function _I(e){const t=e.scatterStyle;return t&&QI.has(t)?t:"lineMarker"}const XI=new Map([["barChart","bar"],["bar3DChart","bar3D"],["lineChart","line"],["line3DChart","line3D"],["pieChart","pie"],["pie3DChart","pie3D"],["doughnutChart","doughnut"],["areaChart","area"],["area3DChart","area3D"],["scatterChart","scatter"],["bubbleChart","bubble"],["radarChart","radar"],["surfaceChart","surface"],["surface3DChart","surface3D"],["stockChart","stock"],["ofPieChart","ofPie"]]);function KI(e){const t=ZA(e),n="chartSpace"===t.local?t:ny(t,"chartSpace");if(!n)return;const r=ey(n,"chart");if(!r)return{kinds:[],seriesCount:0};const o={kinds:[],seriesCount:0},i=function(e){const t=ey(e,"title");if(!t)return;const n=ey(t,"tx");if(!n)return;const r=ey(n,"rich");if(r){const e=[];My(r,e);const t=e.join("").trim();return t.length>0?t:void 0}const o=ey(n,"strRef");if(o){const e=ey(o,"strCache");if(e)for(const t of ty(e)){if("pt"!==t.local)continue;const e=ey(t,"v");if(e){const t=Ty(e).trim();if(t.length>0)return t}}}}(r);void 0!==i&&(o.title=i);const s=function(e){const t=ey(e,"title");if(!t)return;const n=ey(t,"overlay");if(!n)return;const r=n.attrs.val;if("string"==typeof r)switch(r){case"1":case"true":return!0;default:return}}(r);void 0!==s&&(o.titleOverlay=s);const a=function(e){const t=ey(e,"title");if(!t)return;const n=ey(t,"tx");if(!n)return;const r=ey(n,"rich");if(!r)return;const o=ey(r,"bodyPr");if(!o)return;const i=o.attrs.rot;if("string"!=typeof i)return;const s=i.trim();if(0===s.length)return;const a=Number.parseInt(s,10);if(!Number.isFinite(a))return;const c=Math.round(a/Ev);return 0!==c?c<Fv?Fv:c>90?90:c:void 0}(r);void 0!==a&&(o.titleRotation=a);const c=function(e){const t=Iv(e);if(!t)return;const n=t.attrs.sz;if("string"!=typeof n)return;const r=n.trim();if(0===r.length)return;const o=Number.parseInt(r,10);if(!Number.isFinite(o))return;const i=Math.round(o/100*2)/2;return i<1||i>400?void 0:i}(r);void 0!==c&&(o.titleFontSize=c);const l=function(e){const t=Iv(e);if(!t)return;return!0===Ly(t.attrs.b)||void 0}(r);void 0!==l&&(o.titleBold=l);const u=function(e){const t=Iv(e);if(!t)return;return!0===Ly(t.attrs.i)||void 0}(r);void 0!==u&&(o.titleItalic=u);const f=function(e){const t=Iv(e);if(!t)return;const n=ey(t,"solidFill");if(!n)return;const r=ey(n,"srgbClr");if(r)return iv(r.attrs.val);const o=ey(n,"schemeClr");return o?nv(o):void 0}(r);void 0!==f&&(o.titleColor=f);const d=function(e){const t=Iv(e);if(!t)return;return"sngStrike"===t.attrs.strike||void 0}(r);void 0!==d&&(o.titleStrike=d);const h=function(e){const t=Iv(e);if(!t)return;return"sng"===t.attrs.u||void 0}(r);void 0!==h&&(o.titleUnderline=h);const p=function(e){const t=Iv(e);if(!t)return;const n=ey(t,"latin");if(!n)return;const r=n.attrs.typeface;if("string"!=typeof r)return;const o=r.trim();return 0!==o.length?o:void 0}(r);void 0!==p&&(o.titleFontFamily=p);const g=function(e){const t=ey(e,"title");if(t)return mv(t)}(r);void 0!==g&&(o.titleLayout=g);const m=function(e){const t=ey(e,"title");if(t)return sv(t)}(r);void 0!==m&&(o.titleFillColor=m);const A=function(e){const t=ey(e,"title");if(t)return av(t)}(r);void 0!==A&&(o.titleBorderColor=A);const y=function(e){const t=ey(e,"title");if(t)return cv(t)}(r);void 0!==y&&(o.titleBorderWidth=y);const v=function(e){const t=ey(e,"title");if(t)return lv(t)}(r);void 0!==v&&(o.titleBorderDash=v);const b=function(e){const t=ey(e,"title");if(t)return Wy(t)}(r);void 0!==b&&(o.titleBorderCap=b);const I=function(e){const t=ey(e,"title");if(t)return _y(t)}(r);void 0!==I&&(o.titleBorderCompound=I);const w=function(e){const t=ey(e,"autoTitleDeleted");if(!t)return;const n=t.attrs.val;if("string"==typeof n)switch(n){case"1":case"true":return!0;default:return}}(r);void 0!==w&&(o.autoTitleDeleted=w);const x=ey(r,"plotArea");if(x){let e=0;const t=[];let n,r,i,s,a,c,l,u,f,d,h,p,g,m,A,y;for(const v of ty(x)){const b=XI.get(v.local);if(!b)continue;if(o.kinds.includes(b)||o.kinds.push(b),void 0===f&&(f=MI(v,b)),void 0!==n||"bar"!==b&&"bar3D"!==b||(n=qI(v)),void 0!==c||"bar"!==b&&"bar3D"!==b||(c=PI(v)),void 0!==l||"bar"!==b&&"bar3D"!==b||(l=jI(v)),void 0!==r||"line"!==b&&"line3D"!==b||(r=YI(v)),void 0!==i||"area"!==b&&"area3D"!==b||(i=YI(v)),void 0===a&&"doughnut"===b&&(a=OI(v)),void 0!==u||"pie"!==b&&"pie3D"!==b&&"doughnut"!==b&&"ofPie"!==b||(u=$I(v)),void 0===d&&"scatter"===b&&(d=TI(v)),void 0!==h||"line"!==b&&"line3D"!==b&&"area"!==b&&"area3D"!==b||(h=LI(v)),void 0!==p||"line"!==b&&"line3D"!==b&&"stock"!==b||(p=UI(v)),void 0!==g||"bar"!==b&&"ofPie"!==b||(g=RI(v)),void 0===m&&("line"===b||"line3D"===b||"stock"===b)){const e=ey(v,"upDownBars");void 0!==e&&(m=!0,A=zI(e))}void 0===y&&"line"===b&&(y=HI(v));let I=0;for(const n of ty(v))"ser"===n.local&&(e++,t.push(vb(n,b,I)),I++);if(void 0===s){const e=ey(v,"dLbls");if(e){const t=eb(e);t&&(s=t)}}}o.seriesCount=e,t.length>0&&(o.series=t),void 0!==n&&(o.barGrouping=n),void 0!==r&&(o.lineGrouping=r),void 0!==i&&(o.areaGrouping=i),s&&(o.dataLabels=s),void 0!==a&&(o.holeSize=a),void 0!==c&&(o.gapWidth=c),void 0!==l&&(o.overlap=l),void 0!==u&&(o.firstSliceAng=u),void 0!==f&&(o.varyColors=f),void 0!==d&&(o.scatterStyle=d),void 0!==h&&(o.dropLines=h),void 0!==p&&(o.hiLowLines=p),void 0!==g&&(o.serLines=g),void 0!==m&&(o.upDownBars=m),void 0!==A&&(o.upDownBarsGapWidth=A),void 0!==y&&(o.showLineMarkers=y);const v=function(e){let t;const n=[];for(const r of ty(e))"catAx"===r.local?t??=r:"valAx"===r.local&&n.push(r);let r,o;t?(r=t,o=n[0]):(r=n[0],o=n[1]);const i=t?"between":"midCat",s=r?Mb(r,i):void 0,a=o?Mb(o,i):void 0;if(!s&&!a)return;const c={};return s&&(c.x=s),a&&(c.y=a),c}(x);void 0!==v&&(o.axes=v);const b=Pv(x);void 0!==b&&(o.dataTable=b);const I=function(e){return mv(e)}(x);void 0!==I&&(o.plotAreaLayout=I);const w=function(e){return sv(e)}(x);void 0!==w&&(o.plotAreaFillColor=w);const C=function(e){return av(e)}(x);void 0!==C&&(o.plotAreaBorderColor=C);const B=function(e){return cv(e)}(x);void 0!==B&&(o.plotAreaBorderWidth=B);const E=lv(x);void 0!==E&&(o.plotAreaBorderDash=E);const F=Wy(x);void 0!==F&&(o.plotAreaBorderCap=F);const k=_y(x);void 0!==k&&(o.plotAreaBorderCompound=k)}const C=function(e){const t=ey(e,"legend");if(!t)return;const n=ey(t,"delete");if(n&&!0===Ry(n.attrs.val))return!1;const r=ey(t,"legendPos");if(!r)return"right";const o=r.attrs.val;if("string"!=typeof o)return"right";switch(o){case"t":return"top";case"b":return"bottom";case"l":return"left";case"r":return"right";case"tr":return"topRight";default:return}}(r);if(void 0!==C&&(o.legend=C),void 0!==C&&!1!==C){const e=function(e){const t=ey(e,"legend");if(!t)return;const n=ey(t,"overlay");if(!n)return;const r=n.attrs.val;if("string"==typeof r)switch(r){case"1":case"true":return!0;default:return}}(r);void 0!==e&&(o.legendOverlay=e);const t=function(e){const t=ey(e,"legend");if(!t)return;const n=new Set,r=[];for(const e of ty(t)){if("legendEntry"!==e.local)continue;const t=ey(e,"idx");if(!t)continue;const o=t.attrs.val;if("string"!=typeof o)continue;const i=Number.parseInt(o,10);if(!Number.isFinite(i)||i<0)continue;if(n.has(i))continue;n.add(i);const s=ey(e,"delete"),a={idx:i,delete:void 0!==s&&!0===Ry(s.attrs.val)},c=bv(e);if(c){const e=c.attrs.sz;if("string"==typeof e){const t=e.trim();if(t.length>0){const e=Number.parseInt(t,10);if(Number.isFinite(e)){const t=Math.round(e/Uv*2)/2;t>=1&&t<=Rv&&(a.fontSize=t)}}}const t=c.attrs.b;"string"==typeof t&&!0===Ry(t)&&(a.bold=!0);const n=c.attrs.i;"string"==typeof n&&!0===Ry(n)&&(a.italic=!0);const r=c.attrs.u;"string"==typeof r&&"sng"===r&&(a.underline=!0);const o=c.attrs.strike;"string"==typeof o&&"sngStrike"===o&&(a.strikethrough=!0);const i=ey(c,"solidFill");if(i){const e=ey(i,"srgbClr");if(e){const t=e.attrs.val;if("string"==typeof t){const e=t.replace(/^#/,"").toUpperCase();/^[0-9A-F]{6}$/.test(e)&&(a.color=e)}}}const s=ey(c,"latin");if(s){const e=s.attrs.typeface;if("string"==typeof e){const t=e.trim();t.length>0&&(a.fontFamily=t)}}}r.push(a)}return r.length>0?r:void 0}(r);void 0!==t&&(o.legendEntries=t);const n=function(e){const t=ey(e,"legend");if(!t)return;const n=bv(t);if(!n)return;const r=n.attrs.sz;if("string"!=typeof r)return;const o=r.trim();if(0===o.length)return;const i=Number.parseInt(o,10);if(!Number.isFinite(i))return;const s=Math.round(i/Uv*2)/2;return s<1||s>Rv?void 0:s}(r);void 0!==n&&(o.legendFontSize=n);const i=function(e){const t=ey(e,"legend");if(!t)return;const n=bv(t);if(!n)return;const r=n.attrs.b;return"1"===r||"true"===r||void 0}(r);void 0!==i&&(o.legendBold=i);const s=function(e){const t=ey(e,"legend");if(!t)return;const n=bv(t);if(!n)return;const r=n.attrs.i;return"1"===r||"true"===r||void 0}(r);void 0!==s&&(o.legendItalic=s);const a=function(e){const t=ey(e,"legend");if(!t)return;const n=bv(t);if(!n)return;return"sng"===n.attrs.u||void 0}(r);void 0!==a&&(o.legendUnderline=a);const c=function(e){const t=ey(e,"legend");if(!t)return;const n=bv(t);if(!n)return;return"sngStrike"===n.attrs.strike||void 0}(r);void 0!==c&&(o.legendStrikethrough=c);const l=function(e){const t=ey(e,"legend");if(!t)return;const n=bv(t);if(!n)return;const r=ey(n,"solidFill");if(!r)return;const o=ey(r,"srgbClr");if(o)return iv(o.attrs.val);const i=ey(r,"schemeClr");return i?nv(i):void 0}(r);void 0!==l&&(o.legendFontColor=l);const u=function(e){const t=ey(e,"legend");if(!t)return;const n=bv(t);if(!n)return;const r=ey(n,"latin");if(!r)return;const o=r.attrs.typeface;if("string"!=typeof o)return;const i=o.trim();return 0!==i.length?i:void 0}(r);void 0!==u&&(o.legendFontFamily=u);const f=function(e){const t=ey(e,"legend");if(t)return mv(t)}(r);void 0!==f&&(o.legendLayout=f);const d=function(e){const t=ey(e,"legend");if(t)return sv(t)}(r);void 0!==d&&(o.legendFillColor=d);const h=function(e){const t=ey(e,"legend");if(t)return av(t)}(r);void 0!==h&&(o.legendBorderColor=h);const p=function(e){const t=ey(e,"legend");if(t)return cv(t)}(r);void 0!==p&&(o.legendBorderWidth=p);const g=function(e){const t=ey(e,"legend");if(t)return lv(t)}(r);void 0!==g&&(o.legendBorderDash=g);const m=function(e){const t=ey(e,"legend");if(t)return Wy(t)}(r);void 0!==m&&(o.legendBorderCap=m);const A=function(e){const t=ey(e,"legend");if(t)return _y(t)}(r);void 0!==A&&(o.legendBorderCompound=A)}const B=function(e){const t=ey(e,"dispBlanksAs");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n){case"zero":return"zero";case"span":return"span";default:return}}(r);void 0!==B&&(o.dispBlanksAs=B);const E=function(e){const t=ey(e,"plotVisOnly");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n){case"0":case"false":return!1;default:return}}(r);void 0!==E&&(o.plotVisOnly=E);const F=function(e){const t=ey(e,"showDLblsOverMax");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n){case"0":case"false":return!1;default:return}}(r);void 0!==F&&(o.showDLblsOverMax=F);const k=function(e){const t=ey(e,"roundedCorners");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n){case"1":case"true":return!0;default:return}}(n);void 0!==k&&(o.roundedCorners=k);const S=function(e){const t=ey(e,"style");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;if(!/^\d+$/.test(n))return;const r=Number(n);return Number.isInteger(r)?r<1||r>48?void 0:r:void 0}(n);void 0!==S&&(o.style=S);const D=function(e){const t=ey(e,"lang");if(!t)return;const n=t.attrs.val;return"string"!=typeof n?void 0:/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/.test(n)?n:void 0}(n);void 0!==D&&(o.lang=D);const N=function(e){const t=ey(e,"date1904");if(!t)return;const n=t.attrs.val;if("string"!=typeof n)return;switch(n){case"1":case"true":return!0;default:return}}(n);void 0!==N&&(o.date1904=N);const Q=function(e){const t=ey(e,"protection");if(!t)return;const n={},r=ZI(t,"chartObject");void 0!==r&&(n.chartObject=r);const o=ZI(t,"data");void 0!==o&&(n.data=o);const i=ZI(t,"formatting");void 0!==i&&(n.formatting=i);const s=ZI(t,"selection");void 0!==s&&(n.selection=s);const a=ZI(t,"userInterface");void 0!==a&&(n.userInterface=a);return n}(n);void 0!==Q&&(o.protection=Q);const M=dv(r);void 0!==M&&(o.view3D=M);const T=function(e){const t=ey(e,"floor");if(!t)return;const n=ey(t,"thickness");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;if(!/^\d+$/.test(r))return;const o=Number(r);return!Number.isInteger(o)||0===o||o>100?void 0:o}(r);void 0!==T&&(o.floorThickness=T);const L=function(e){const t=ey(e,"sideWall");if(!t)return;const n=ey(t,"thickness");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;if(!/^\d+$/.test(r))return;const o=Number(r);return!Number.isInteger(o)||0===o||o>100?void 0:o}(r);void 0!==L&&(o.sideWallThickness=L);const U=function(e){const t=ey(e,"backWall");if(!t)return;const n=ey(t,"thickness");if(!n)return;const r=n.attrs.val;if("string"!=typeof r)return;if(!/^\d+$/.test(r))return;const o=Number(r);return!Number.isInteger(o)||0===o||o>100?void 0:o}(r);void 0!==U&&(o.backWallThickness=U);const R=function(e){return sv(e)}(n);void 0!==R&&(o.chartSpaceFillColor=R);const H=function(e){return av(e)}(n);void 0!==H&&(o.chartSpaceBorderColor=H);const q=cv(n);void 0!==q&&(o.chartSpaceBorderWidth=q);const O=lv(n);void 0!==O&&(o.chartSpaceBorderDash=O);const P=Wy(n);void 0!==P&&(o.chartSpaceBorderCap=P);const z=_y(n);return void 0!==z&&(o.chartSpaceBorderCompound=z),o}function ZI(e,t){const n=ey(e,t);if(!n)return;const r=n.attrs.val;if("string"==typeof r)switch(r){case"1":case"true":return!0;case"0":case"false":return!1;default:return}}const ew=1073741824,tw=1048575,nw=16383,rw=16777216,ow=Object.freeze([208,207,17,224,161,177,26,225]);async function iw(e,t){if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if("object"==typeof(n=e)&&null!==n&&"function"==typeof n.getReader)return async function(e,t=1073741824){const n=Number.isFinite(t)&&t>0?t:ew,r=e.getReader(),o=[];let i=0;try{for(;;){const{done:e,value:t}=await r.read();if(e)break;if(t){if(i+=t.length,i>n)throw new QA(`Input stream exceeds the maximum of ${n} bytes. Raise \`maxInputBytes\` if the file really is this large.`);o.push(t)}}if(0===o.length)return new Uint8Array(0);if(1===o.length)return o[0];const e=new Uint8Array(i);let t=0;for(const n of o)e.set(n,t),t+=n.length;return e}finally{try{await r.cancel()}catch{}try{r.releaseLock()}catch{}}}(e,t);var n;throw new QA("Unsupported input type. Expected Uint8Array, ArrayBuffer, or ReadableStream<Uint8Array>.")}const sw=[208,207,17,224,161,177,26,225],aw=4294967294,cw=4294967295,lw=4096,uw=64;function fw(e){if(e.length<512)throw new QA("CFB: file too small");for(let t=0;t<sw.length;t++)if(e[t]!==sw[t])throw new QA("CFB: bad signature");const t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=1<<t.getUint16(30,!0),r=1<<t.getUint16(32,!0),o=t.getUint32(44,!0),i=t.getUint32(48,!0),s=t.getUint32(56,!0),a=t.getUint32(60,!0),c=t.getUint32(64,!0),l=t.getUint32(68,!0),u=t.getUint32(72,!0),f=t=>{const r=(e=>(e+1)*n)(t);if(r+n>e.length)throw new QA("CFB: sector out of range");return e.subarray(r,r+n)},d=[];for(let e=0;e<109&&d.length<o;e++){const n=t.getUint32(76+4*e,!0);if(n===cw||n===aw)break;d.push(n)}const h=Math.floor(e.length/n)+1,p=Math.min(u,h);let g=l,m=0;for(;g!==aw&&g!==cw&&p>0&&m++<p+1;){const e=f(g),t=new DataView(e.buffer,e.byteOffset,e.byteLength),r=n/4-1;for(let e=0;e<r&&d.length<o;e++){const n=t.getUint32(4*e,!0);n!==cw&&n!==aw&&d.push(n)}g=t.getUint32(n-4,!0)}const A=[];for(const e of d){const t=f(e),r=new DataView(t.buffer,t.byteOffset,t.byteLength);for(let e=0;e<n/4;e++)A.push(r.getUint32(4*e,!0))}const y=(e,t)=>{const r=(e=>{const t=[];let n=e,r=0;for(;n!==aw&&n!==cw&&r++<A.length+1;)t.push(n),n=A[n]??aw;return t})(e),o=new Uint8Array(r.length*n);let i=0;for(const e of r)o.set(f(e),i),i+=n;return t>=0?o.subarray(0,t):o},v=y(i,-1),b=new DataView(v.buffer,v.byteOffset,v.byteLength),I=[];for(let e=0;e+128<=v.length;e+=128){const t=v[e+66];if(0===t)continue;const n=b.getUint16(e+64,!0);let r="";for(let t=0;t+1<n;t+=2){const n=b.getUint16(e+t,!0);if(0===n)break;r+=String.fromCharCode(n)}const o=b.getUint32(e+116,!0),i=b.getUint32(e+120,!0);I.push({name:r,type:t,startSector:o,size:i})}const w=I.find(e=>5===e.type);if(!w)throw new QA("CFB: missing root entry");const x=y(w.startSector,w.size),C=[];if(c>0&&a!==aw){const e=y(a,c*n),t=new DataView(e.buffer,e.byteOffset,e.byteLength);for(let n=0;n<e.length/4;n++)C.push(t.getUint32(4*n,!0))}const B=(e,t)=>{if(t<0||t>x.length)throw new QA("CFB: mini stream size out of range");const n=new Uint8Array(t);let o=e,i=0,s=0;for(;o!==aw&&o!==cw&&i<t&&s++<C.length+1;){const e=o*r,s=Math.min(r,t-i);n.set(x.subarray(e,e+s),i),i+=s,o=C[o]??aw}return n},E=new Map;for(const e of I){if(2!==e.type)continue;const t=s||lw;E.set(e.name,e.size<t?B(e.startSector,e.size):y(e.startSector,e.size))}return E}function dw(e){const t=512,n=[],r=[],o=[],i=new Map;let s=0;for(const t of e)if(t.data.length<lw){i.set(t.name,{mini:!0}),r.push(s);const e=hw(t.data,uw);n.push(e),s+=e.length/uw}else i.set(t.name,{mini:!1}),o.push({name:t.name,data:t.data});const a=function(e){let t=0;for(const n of e)t+=n.length;const n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(n);let c=0;const l=e=>{const n=Math.max(1,Math.ceil(e/t)),r=c;return c+=n,{startSector:r,sectorCount:n}},u=o.map(e=>({name:e.name,data:e.data,region:l(e.data.length)})),f=a.length>0?l(a.length):null,d=new Uint8Array(Math.ceil(Math.max(s,0)/128)*t);{const t=new DataView(d.buffer);for(let e=0;e<d.length/4;e++)t.setUint32(4*e,cw,!0);let n=0;for(const o of e){if(o.data.length>=lw)continue;const e=hw(o.data,uw).length/uw;for(let o=0;o<e;o++){const i=r[n]+o;t.setUint32(4*i,o===e-1?aw:i+1,!0)}n++}}const h=s>0?l(d.length):null,p=1+e.length,g=Math.ceil(p/4)*t,m=l(g),A=c;let y=1;for(;;){const e=A+y,t=Math.ceil(e/128);if(t<=y)break;y=t}const v={startSector:c,sectorCount:y};c+=y;const b=c,I=new Uint32Array(128*y);I.fill(cw);const w=e=>{for(let t=0;t<e.sectorCount;t++)I[e.startSector+t]=t===e.sectorCount-1?aw:e.startSector+t+1};for(const e of u)w(e.region);f&&w(f),h&&w(h),w(m);for(let e=0;e<y;e++)I[v.startSector+e]=4294967293;const x=new Uint8Array(g),C=new DataView(x.buffer),B=(e,t,n,r,o,i,s,a,c)=>{const l=128*e;for(let e=0;e<t.length;e++)C.setUint16(l+2*e,t.charCodeAt(e),!0);C.setUint16(l+64,2*(t.length+1),!0),x[l+66]=n,x[l+67]=r,C.setUint32(l+68,o,!0),C.setUint32(l+72,i,!0),C.setUint32(l+76,s,!0),C.setUint32(l+116,a,!0),C.setUint32(l+120,c,!0)};for(let e=0;e<g/128;e++)C.setUint32(128*e+68,cw,!0),C.setUint32(128*e+72,cw,!0),C.setUint32(128*e+76,cw,!0);B(0,"Root Entry",5,1,cw,cw,e.length>0?1:cw,f?f.startSector:aw,a.length);for(let t=0;t<e.length;t++){const n=e[t],r=i.get(n.name),o=t+1,s=t+1<e.length?o+1:cw;let a;if(r.mini){let n=0;for(let r=0;r<t;r++){const t=e[r];t.data.length<lw&&(n+=hw(t.data,uw).length/uw)}a=n}else{a=u.find(e=>e.name===n.name).region.startSector}B(o,n.name,2,1,cw,s,cw,a,n.data.length)}const E=new Uint8Array((b+1)*t),F=new DataView(E.buffer);for(let e=0;e<sw.length;e++)E[e]=sw[e];F.setUint16(24,62,!0),F.setUint16(26,3,!0),F.setUint16(28,65534,!0),F.setUint16(30,9,!0),F.setUint16(32,6,!0),F.setUint32(44,y,!0),F.setUint32(48,m.startSector,!0),F.setUint32(56,lw,!0),F.setUint32(60,h?h.startSector:aw,!0),F.setUint32(64,h?h.sectorCount:0,!0),F.setUint32(68,aw,!0),F.setUint32(72,0,!0);for(let e=0;e<109;e++)F.setUint32(76+4*e,e<y?v.startSector+e:cw,!0);const k=e=>(e+1)*t,S=(e,t)=>{E.set(t,k(e.startSector))};for(const e of u)S(e.region,e.data);f&&S(f,a),h&&S(h,d),S(m,x);{const e=k(v.startSector),n=new DataView(E.buffer,e,y*t);for(let e=0;e<I.length;e++)n.setUint32(4*e,I[e],!0)}return E}function hw(e,t){if(e.length%t===0)return e;const n=new Uint8Array(Math.ceil(e.length/t)*t);return n.set(e,0),n}const pw=new Uint8Array([254,167,210,118,59,75,158,121]),gw=new Uint8Array([215,170,15,109,48,97,52,78]),mw=new Uint8Array([20,110,11,231,171,172,208,214]),Aw=new Uint8Array([95,178,173,1,12,185,225,246]),yw=new Uint8Array([160,103,127,2,178,44,132,51]),vw=4096,bw=new Uint8Array(16);async function Iw(e,t,n=1e7){let r;try{r=fw(e)}catch(e){throw new RA("Not a valid encrypted workbook container.",{cause:e})}const o=r.get("EncryptionInfo"),i=r.get("EncryptedPackage");if(!o||!i)throw new RA("Encrypted workbook missing EncryptionInfo/EncryptedPackage.");const s=o[0]|o[1]<<8,a=o[2]|o[3]<<8;if(4!==s||4!==a)throw new RA(`Unsupported encryption (version ${s}.${a}); only ECMA-376 Agile is supported.`);const c=new TextDecoder("utf-8").decode(o.subarray(8)),l=function(e,t){const n=Lw(e,"encryptedKey");if(!n)throw new RA("EncryptionInfo missing encryptedKey.");const r=parseInt(Uw(n,"spinCount"),10);if(!Number.isFinite(r)||r<0)throw new RA("EncryptionInfo has an invalid spinCount.");if(r>t)throw new RA(`EncryptionInfo spinCount ${r} exceeds the maximum of ${t}. Raise \`maxSpinCount\` to agree to spend that time.`);return{saltValue:$w(Uw(n,"saltValue")),hashAlgorithm:Hw(Uw(n,"hashAlgorithm")),keyBytes:parseInt(Uw(n,"keyBits"),10)/8,blockSize:parseInt(Uw(n,"blockSize"),10),spinCount:r,encryptedVerifierHashInput:$w(Uw(n,"encryptedVerifierHashInput")),encryptedVerifierHashValue:$w(Uw(n,"encryptedVerifierHashValue")),encryptedKeyValue:$w(Uw(n,"encryptedKeyValue"))}}(c,n),u=function(e){const t=Lw(e,"keyData");if(!t)throw new RA("EncryptionInfo missing keyData.");return{saltValue:$w(Uw(t,"saltValue")),hashAlgorithm:Hw(Uw(t,"hashAlgorithm")),keyBytes:parseInt(Uw(t,"keyBits"),10)/8,blockSize:parseInt(Uw(t,"blockSize"),10)}}(c),f=await async function(e,t){const n=await Cw(e,t.saltValue,t.spinCount,t.hashAlgorithm),r=await Bw(n,pw,t.keyBytes,t.hashAlgorithm),o=await Bw(n,gw,t.keyBytes,t.hashAlgorithm),i=await Bw(n,mw,t.keyBytes,t.hashAlgorithm),s=await Qw(r,t.saltValue,t.encryptedVerifierHashInput),a=await Qw(o,t.saltValue,t.encryptedVerifierHashValue),c=await Sw(t.hashAlgorithm,s),l=Math.min(c.length,a.length);if(!function(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return 0===n}(c.subarray(0,l),a.subarray(0,l)))return null;const u=await Qw(i,t.saltValue,t.encryptedKeyValue);return u.subarray(0,t.keyBytes)}(t,l);if(!f)throw new RA("Incorrect password.");return await async function(e,t,n,r){const o=Lw(e,"dataIntegrity");if(!o)return;if("SHA-512"!==r.hashAlgorithm)return;const i=$w(Uw(o,"encryptedHmacKey")),s=$w(Uw(o,"encryptedHmacValue"));if(0===i.length||0===s.length)return;const a=await Ew(r.saltValue,Aw,r.hashAlgorithm,r.blockSize),c=await Ew(r.saltValue,yw,r.hashAlgorithm,r.blockSize),l=await Qw(n,a,i),u=await Qw(n,c,s),f=await Tw(l,t),d=Math.min(f.length,u.length);let h=0===f.length?1:0;for(let e=0;e<d;e++)h|=f[e]^u[e];if(0!==h)throw new RA("Encrypted package failed integrity check (HMAC mismatch).")}(c,i,f,u),async function(e,t,n){const r=Number(new DataView(e.buffer,e.byteOffset,8).getBigUint64(0,!0)),o=e.subarray(8),i=new Uint8Array(Math.ceil(o.length/vw)*vw),s=new Uint8Array(4),a=new DataView(s.buffer);let c=0,l=0;for(;c<o.length;){const e=o.subarray(c,Math.min(c+vw,o.length));a.setUint32(0,l,!0);const r=Fw(await Sw(n.hashAlgorithm,Pw([n.saltValue,s])),n.blockSize),u=await Qw(t,r,e);i.set(u,c),c+=vw,l++}return i.subarray(0,r)}(i,f,u)}async function ww(e,t,n){const r=n?.spinCount??1e5,o="SHA-512",i=32,s=16,a=qw(16),c=qw(16),l=qw(i),u=await Cw(t,c,r,o),f=qw(s),d=await Sw(o,f),h=await Bw(u,pw,i,o),p=await Bw(u,gw,i,o),g=await Bw(u,mw,i,o),m=await Mw(h,c,f),A=await Mw(p,c,Ow(d,s)),y=await Mw(g,c,l),v=await async function(e,t,n){const r=new Uint8Array(8);new DataView(r.buffer).setBigUint64(0,BigInt(e.length),!0);const o=Ow(e,vw),i=new Uint8Array(o.length),s=new Uint8Array(4),a=new DataView(s.buffer);let c=0,l=0;for(;c<o.length;){const e=o.subarray(c,c+vw);a.setUint32(0,l,!0);const r=Fw(await Sw(n.hashAlgorithm,Pw([n.saltValue,s])),n.blockSize),u=await Mw(t,r,e);i.set(u,c),c+=vw,l++}return Pw([r,i])}(e,l,{saltValue:a,hashAlgorithm:o,keyBytes:i,blockSize:s}),b=qw(64),I=await Ew(a,Aw,o,s),w=await Mw(l,I,Ow(b,s)),x=await Tw(b,v),C=await Ew(a,yw,o,s),B=function(e){const t=jw;return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><encryption xmlns="http://schemas.microsoft.com/office/2006/encryption" xmlns:p="http://schemas.microsoft.com/office/2006/keyEncryptor/password"><keyData saltSize="${e.keyDataSalt.length}" blockSize="${e.blockSize}" keyBits="${e.keyBits}" hashSize="${e.hashSize}" cipherAlgorithm="AES" cipherChaining="ChainingModeCBC" hashAlgorithm="SHA512" saltValue="${t(e.keyDataSalt)}"/><dataIntegrity encryptedHmacKey="${t(e.encryptedHmacKey)}" encryptedHmacValue="${t(e.encryptedHmacValue)}"/><keyEncryptors><keyEncryptor uri="http://schemas.microsoft.com/office/2006/keyEncryptor/password"><p:encryptedKey spinCount="${e.spinCount}" saltSize="${e.pwSalt.length}" blockSize="${e.blockSize}" keyBits="${e.keyBits}" hashSize="${e.hashSize}" cipherAlgorithm="AES" cipherChaining="ChainingModeCBC" hashAlgorithm="SHA512" saltValue="${t(e.pwSalt)}" encryptedVerifierHashInput="${t(e.encryptedVerifierHashInput)}" encryptedVerifierHashValue="${t(e.encryptedVerifierHashValue)}" encryptedKeyValue="${t(e.encryptedKeyValue)}"/></keyEncryptor></keyEncryptors></encryption>`}({keyDataSalt:a,pwSalt:c,spinCount:r,keyBits:256,hashSize:64,blockSize:s,encryptedVerifierHashInput:m,encryptedVerifierHashValue:A,encryptedKeyValue:y,encryptedHmacKey:w,encryptedHmacValue:await Mw(l,C,Ow(x,s))}),E=new Uint8Array(8),F=new DataView(E.buffer);F.setUint16(0,4,!0),F.setUint16(2,4,!0),F.setUint32(4,64,!0);return dw([{name:"EncryptionInfo",data:Pw([E,(new TextEncoder).encode(B)])},{name:"EncryptedPackage",data:v}])}function xw(e){const t=new Uint8Array(2*e.length),n=new DataView(t.buffer);for(let t=0;t<e.length;t++)n.setUint16(2*t,e.charCodeAt(t),!0);return t}async function Cw(e,t,n,r){let o=await Sw(r,Pw([t,xw(e)]));const i=new Uint8Array(4),s=new DataView(i.buffer);for(let e=0;e<n;e++)s.setUint32(0,e,!0),o=await Sw(r,Pw([i,o]));return o}async function Bw(e,t,n,r){return function(e,t){if(e.length>=t)return e.subarray(0,t);const n=new Uint8Array(t).fill(54);return n.set(e,0),n}(await Sw(r,Pw([e,t])),n)}async function Ew(e,t,n,r){return Fw(await Sw(n,Pw([e,t])),r)}function Fw(e,t){if(e.length>=t)return e.subarray(0,t);const n=new Uint8Array(t).fill(54);return n.set(e,0),n}const kw=e=>e;async function Sw(e,t){return new Uint8Array(await crypto.subtle.digest(e,kw(t)))}async function Dw(e){return crypto.subtle.importKey("raw",kw(e),{name:"AES-CBC"},!1,["encrypt","decrypt"])}async function Nw(e,t,n){if(0===n.length)return new Uint8Array(0);const r=n.subarray(n.length-16),o=new Uint8Array(16);for(let e=0;e<16;e++)o[e]=16^r[e];const i=await async function(e,t){return new Uint8Array(await crypto.subtle.encrypt({name:"AES-CBC",iv:kw(bw)},e,kw(t))).subarray(0,16)}(e,o),s=Pw([n,i]);return new Uint8Array(await crypto.subtle.decrypt({name:"AES-CBC",iv:kw(t)},e,kw(s))).subarray(0,n.length)}async function Qw(e,t,n){return Nw(await Dw(e),t,n)}async function Mw(e,t,n){return async function(e,t,n){return 0===n.length?new Uint8Array(0):new Uint8Array(await crypto.subtle.encrypt({name:"AES-CBC",iv:kw(t)},e,kw(n))).subarray(0,n.length)}(await Dw(e),t,n)}async function Tw(e,t){const n=await crypto.subtle.importKey("raw",kw(e),{name:"HMAC",hash:"SHA-512"},!1,["sign"]);return new Uint8Array(await crypto.subtle.sign("HMAC",n,kw(t)))}function Lw(e,t){const n=new RegExp(`<(?:\\w+:)?${t}\\b[^>]*?/?>`).exec(e);return n?n[0]:null}function Uw(e,t){const n=new RegExp(`\\b${t}="([^"]*)"`).exec(e);return n?n[1]:""}const Rw={SHA512:"SHA-512",SHA384:"SHA-384",SHA256:"SHA-256",SHA1:"SHA-1"};function Hw(e){return Rw[e]??"SHA-512"}function qw(e){const t=new Uint8Array(e);return crypto.getRandomValues(t),t}function Ow(e,t){if(e.length%t===0)return e;const n=new Uint8Array(Math.ceil(e.length/t)*t);return n.set(e,0),n}function Pw(e){let t=0;for(const n of e)t+=n.length;const n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}const zw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function jw(e){let t="",n=0;for(;n+2<e.length;n+=3){const r=e[n]<<16|e[n+1]<<8|e[n+2];t+=zw[r>>18&63]+zw[r>>12&63]+zw[r>>6&63]+zw[63&r]}if(n<e.length){if(1===e.length-n){const r=e[n]<<16;t+=zw[r>>18&63]+zw[r>>12&63]+"=="}else{const r=e[n]<<16|e[n+1]<<8;t+=zw[r>>18&63]+zw[r>>12&63]+zw[r>>6&63]+"="}}return t}function $w(e){const t=e.replace(/[^A-Za-z0-9+/]/g,""),n=Math.floor(3*t.length/4),r=new Uint8Array(n);let o=0,i=0,s=0;for(let e=0;e<t.length;e++)i=i<<6|zw.indexOf(t[e]),o+=6,o>=8&&(o-=8,r[s++]=i>>o&255);return r.subarray(0,s)}function Yw(e){let t=0;return new ReadableStream({pull(n){if(t>=e.length)return void n.close();const r=Math.min(t+1048576,e.length);n.enqueue(e.subarray(t,r)),t=r}})}const Gw=(()=>{const e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e})();function Vw(e){return t=function(e,t){let n=e;for(let e=0;e<t.length;e++)n=Gw[255&(n^t[e])]^n>>>8;return n>>>0}(4294967295,e),(4294967295^t)>>>0;var t}class Jw{data;pos=0;bitBuf=0;bitCount=0;constructor(e){this.data=e}readBits(e){for(;this.bitCount<e;){if(this.pos>=this.data.length)throw new MA("Unexpected end of DEFLATE data");this.bitBuf|=this.data[this.pos++]<<this.bitCount,this.bitCount+=8}const t=this.bitBuf&(1<<e)-1;return this.bitBuf>>>=e,this.bitCount-=e,t}alignToByte(){this.bitBuf=0,this.bitCount=0}readByte(){if(this.pos>=this.data.length)throw new MA("Unexpected end of DEFLATE data");return this.data[this.pos++]}readUint16LE(){return this.readByte()|this.readByte()<<8}get offset(){return this.pos}get available(){return this.pos<this.data.length||this.bitCount>0}}function Ww(e,t){const n=new Uint16Array(16);for(let r=0;r<t;r++)e[r]&&n[e[r]]++;const r=new Uint16Array(16);for(let e=1;e<15;e++)r[e+1]=r[e]+n[e];const o=r[15]+n[15],i=new Uint16Array(o);for(let n=0;n<t;n++)e[n]&&(i[r[e[n]]++]=n);return{counts:n,symbols:i}}function _w(e,t){let n=0,r=0,o=0;for(let i=1;i<=15;i++){n|=e.readBits(1);const s=t.counts[i];if(n<r+s)return t.symbols[o+(n-r)];o+=s,r=r+s<<1,n<<=1}throw new MA("Invalid Huffman code")}const Xw=(()=>{const e=new Uint8Array(288);for(let t=0;t<=143;t++)e[t]=8;for(let t=144;t<=255;t++)e[t]=9;for(let t=256;t<=279;t++)e[t]=7;for(let t=280;t<=287;t++)e[t]=8;return Ww(e,288)})(),Kw=(()=>{const e=new Uint8Array(32);for(let t=0;t<32;t++)e[t]=5;return Ww(e,32)})(),Zw=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],ex=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],tx=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],nx=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],rx=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function ox(e,t=2147483648){const n=new Jw(e);let r=new Uint8Array(3*e.length||1024),o=0;function i(e){if(o+e>t)throw new MA(`Decompressed size exceeds limit of ${t} bytes (possible zip bomb)`);if(o+e>r.length){let n=2*r.length;for(;o+e>n;)n*=2;n>t&&(n=t);const i=new Uint8Array(n);i.set(r),r=i}}function s(e){i(1),r[o++]=e}function a(e,t){i(t);let n=o-e;for(let e=0;e<t;e++)r[o++]=r[n++]}function c(e,t){for(;;){const r=_w(n,e);if(r<256)s(r);else{if(256===r)return;{const e=r-257,o=Zw[e]+n.readBits(ex[e]),i=_w(n,t);a(tx[i]+n.readBits(nx[i]),o)}}}}let l=0;do{l=n.readBits(1);const e=n.readBits(2);if(0===e){n.alignToByte();const e=n.readUint16LE();n.readUint16LE(),i(e);for(let t=0;t<e;t++)r[o++]=n.readByte()}else if(1===e)c(Xw,Kw);else{if(2!==e)throw new MA(`Invalid DEFLATE block type: ${e}`);{const e=n.readBits(5)+257,t=n.readBits(5)+1,r=n.readBits(4)+4,o=new Uint8Array(19);for(let e=0;e<r;e++)o[rx[e]]=n.readBits(3);const i=Ww(o,19),s=e+t,a=new Uint8Array(s);let l=0;for(;l<s;){const e=_w(n,i);if(e<16)a[l++]=e;else if(16===e){const e=n.readBits(2)+3,t=l>0?a[l-1]:0;for(let n=0;n<e;n++)a[l++]=t}else if(17===e){const e=n.readBits(3)+3;for(let t=0;t<e;t++)a[l++]=0}else if(18===e){const e=n.readBits(7)+11;for(let t=0;t<e;t++)a[l++]=0}}const u=a.subarray(0,e),f=a.subarray(e,e+t);c(Ww(u,e),Ww(f,t))}}}while(0===l);return r.subarray(0,o)}function ix(e){return 0===e.length?new Uint8Array([3,0]):e.length<=64?function(e){const t=[];let n=0;for(;n<e.length;){const r=e.length-n,o=Math.min(r,65535),i=n+o>=e.length,s=new Uint8Array(5+o);s[0]=i?1:0,s[1]=255&o,s[2]=o>>8&255,s[3]=255&~o,s[4]=~o>>8&255,s.set(e.subarray(n,n+o),5),t.push(s),n+=o}const r=t.reduce((e,t)=>e+t.length,0),o=new Uint8Array(r);let i=0;for(const e of t)o.set(e,i),i+=e.length;return o}(e):function(e){let t=new Uint8Array(e.length+512),n=0,r=0,o=0;function i(e){if(n+e>t.length){let r=2*t.length;for(;n+e>r;)r*=2;const o=new Uint8Array(r);o.set(t),t=o}}function s(e,s){for(r|=e<<o,o+=s;o>=8;)i(1),t[n++]=255&r,r>>>=8,o-=8}function a(){o>0&&(i(1),t[n++]=255&r,r=0,o=0)}function c(e){e<=143?s(sx(48+e,8),8):e<=255?s(sx(e-144+400,9),9):e<=279?s(sx(e-256,7),7):s(sx(e-280+192,8),8)}function l(e){s(sx(e,5),5)}s(1,1),s(1,2);const u=32768,f=258,d=3,h=32768,p=h-1,g=new Int32Array(h).fill(-1),m=new Int32Array(u);function A(t){return t+2>=e.length?0:(e[t]<<10^e[t+1]<<5^e[t+2])&p}let y=0;for(;y<e.length;){if(y+d>e.length){c(e[y]),y++;continue}const t=A(y);let n=d-1,r=0,o=g[t],i=0;const a=128,h=Math.max(0,y-u);for(;o>=h&&i<a;){const t=y-o;if(t>0&&t<=u){let i=0;const s=Math.min(f,e.length-y);for(;i<s&&e[o+i]===e[y+i];)i++;if(i>n&&(n=i,r=t,i===f))break}o=m[o&u-1],i++}if(m[y&u-1]=g[t],g[t]=y,n>=d){const t=ax(n);c(t+257),s(n-Zw[t],ex[t]);const o=cx(r);l(o),s(r-tx[o],nx[o]);for(let t=1;t<n;t++){const n=y+t;if(n+d<=e.length){const e=A(n);m[n&u-1]=g[e],g[e]=n}}y+=n}else c(e[y]),y++}return c(256),a(),t.subarray(0,n)}(e)}function sx(e,t){let n=0;for(let r=0;r<t;r++)n=n<<1|1&e,e>>=1;return n}function ax(e){for(let t=Zw.length-1;t>=0;t--)if(e>=Zw[t])return t;return 0}function cx(e){for(let t=tx.length-1;t>=0;t--)if(e>=tx[t])return t;return 0}let lx,ux;function fx(){if(void 0===ux)try{new DecompressionStream("deflate-raw"),ux="undefined"!=typeof ReadableStream}catch{ux=!1}return ux}const dx=67324752,hx=4294967295;class px{data;view;centralDir=[];entryMap=new Map;maxDecompressedBytes;constructor(e,t=2147483648){if(this.data=e,this.maxDecompressedBytes=t,e.length<22)throw new MA("Data too small to be a valid ZIP archive");this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.readEndOfCentralDir()}entries(){return this.centralDir.map(e=>e.fileName)}has(e){return this.entryMap.has(e)}declaredSize(e){const t=this.entryMap.get(e);if(!t?.uncompressedSize)return;const n=0===t.compressionMethod?t.compressedSize:1032*t.compressedSize;return t.compressedSize>0&&t.uncompressedSize>n?void 0:t.uncompressedSize}async extract(e){const t=this.entryMap.get(e);if(!t)throw new MA(`Entry not found: ${e}`);return this.extractEntry(t)}extractStream(e){const t=this.entryMap.get(e);if(!t)throw new MA(`Entry not found: ${e}`);return this.extractEntryStream(t)}async extractAll(){const e=new Map;for(const t of this.centralDir){if(t.fileName.endsWith("/"))continue;const n=await this.extractEntry(t);e.set(t.fileName,n)}return e}readEndOfCentralDir(){const e=Math.max(0,this.data.length-65557);let t=-1;for(let n=this.data.length-22;n>=e;n--)if(101010256===this.view.getUint32(n,!0)){t=n;break}if(-1===t)throw new MA("End of Central Directory not found — not a valid ZIP file");let n=this.view.getUint32(t+12,!0),r=this.view.getUint32(t+16,!0),o=this.view.getUint16(t+10,!0);if(65535===o||n===hx||r===hx){const e=this.readZip64EndOfCentralDir(t);o=e.entryCount,n=e.centralDirSize,r=e.centralDirOffset}this.readCentralDirectory(r,n,o)}readZip64EndOfCentralDir(e){const t=e-20;if(t<0||117853008!==this.view.getUint32(t,!0))throw new MA("ZIP64 End of Central Directory locator not found");const n=this.readUint64(t+8,"ZIP64 EOCD offset");if(n+56>this.data.length)throw new MA("ZIP64 End of Central Directory record extends beyond file");if(101075792!==this.view.getUint32(n,!0))throw new MA("Invalid ZIP64 End of Central Directory signature");return{entryCount:this.readUint64(n+32,"ZIP64 entry count"),centralDirSize:this.readUint64(n+40,"ZIP64 central directory size"),centralDirOffset:this.readUint64(n+48,"ZIP64 central directory offset")}}readUint64(e,t){if(e+8>this.data.length)throw new MA(`${t} extends beyond file`);const n=this.view.getBigUint64(e,!0);if(n>BigInt(Number.MAX_SAFE_INTEGER))throw new MA(`${t} (${n}) exceeds the addressable range`);return Number(n)}readCentralDirectory(e,t,n){let r=e;for(let e=0;e<n;e++){if(r+46>this.data.length)throw new MA("Central Directory entry extends beyond file");const e=this.view.getUint32(r,!0);if(33639248!==e)throw new MA(`Invalid Central Directory signature at offset ${r}: 0x${e.toString(16)}`);const t=this.view.getUint16(r+8,!0),n=this.view.getUint16(r+10,!0),o=this.view.getUint32(r+16,!0);let i=this.view.getUint32(r+20,!0),s=this.view.getUint32(r+24,!0);const a=this.view.getUint16(r+28,!0),c=this.view.getUint16(r+30,!0),l=this.view.getUint16(r+32,!0);let u=this.view.getUint32(r+42,!0);const f=this.data.subarray(r+46,r+46+a),d=(new TextDecoder).decode(f);if(i===hx||s===hx||u===hx){const e=this.readZip64Extra(r+46+a,c,s===hx,i===hx,u===hx,d);void 0!==e.uncompressedSize&&(s=e.uncompressedSize),void 0!==e.compressedSize&&(i=e.compressedSize),void 0!==e.localHeaderOffset&&(u=e.localHeaderOffset)}const h={fileName:d,compressionMethod:n,compressedSize:i,uncompressedSize:s,crc32:o,localHeaderOffset:u,hasDataDescriptor:!!(8&t)};this.centralDir.push(h),this.entryMap.set(d,h),r+=46+a+c+l}}readZip64Extra(e,t,n,r,o,i){const s=Math.min(e+t,this.data.length);let a=e;for(;a+4<=s;){const e=this.view.getUint16(a,!0),t=this.view.getUint16(a+2,!0),s=a+4;if(1!==e){a=s+t;continue}const c=s+t;let l=s;const u={},f=e=>{if(l+8>c)throw new MA(`Truncated ZIP64 extra field for entry: ${i}`);const t=this.readUint64(l,e);return l+=8,t};return n&&(u.uncompressedSize=f("ZIP64 uncompressed size")),r&&(u.compressedSize=f("ZIP64 compressed size")),o&&(u.localHeaderOffset=f("ZIP64 local header offset")),u}throw new MA(`Missing ZIP64 extra field for entry: ${i}`)}async extractEntry(e){const t=e.localHeaderOffset;if(t+30>this.data.length)throw new MA("Local file header extends beyond file");if(this.view.getUint32(t,!0)!==dx)throw new MA(`Invalid local file header signature at offset ${t}`);const n=t+30+this.view.getUint16(t+26,!0)+this.view.getUint16(t+28,!0);let{compressedSize:r,uncompressedSize:o,crc32:i}=e;if(e.hasDataDescriptor&&0===r){const e=this.view.getUint32(t+18,!0);e>0&&e!==hx&&(r=e);const s=this.view.getUint32(t+22,!0);if(s>0&&s!==hx&&(o=s),0===r){const e=this.findDataDescriptor(n);e&&(i=e.crc,r=e.compressedSize,o=e.uncompressedSize)}}if(n+r>this.data.length)throw new MA(`Compressed data extends beyond file for entry: ${e.fileName}`);const s=this.data.subarray(n,n+r);let a;if(0===e.compressionMethod)a=s;else{if(8!==e.compressionMethod)throw new MA(`Unsupported compression method ${e.compressionMethod} for entry: ${e.fileName}`);if(0===r&&0===o)a=new Uint8Array(0);else{const e=o>0?Math.min(o,this.maxDecompressedBytes):this.maxDecompressedBytes;a=await async function(e,t=2147483648){if(fx())try{const n=new DecompressionStream("deflate-raw"),r=n.writable.getWriter(),o=n.readable.getReader();r.write(e).catch(()=>{}),r.close().catch(()=>{});const i=[];let s=0;for(;;){const{done:e,value:n}=await o.read();if(e)break;if(s+=n.length,s>t){try{await o.cancel()}catch{}throw new MA(`Decompressed size exceeds limit of ${t} bytes (possible zip bomb)`)}i.push(n)}const a=new Uint8Array(s);let c=0;for(const e of i)a.set(e,c),c+=e.length;return a}catch(e){if(e instanceof MA)throw e}return ox(e,t)}(s,e)}}if(0!==i&&a.length>0){const t=Vw(a);if(t!==i)throw new MA(`CRC-32 mismatch for ${e.fileName}: expected 0x${i.toString(16)}, got 0x${t.toString(16)}`)}return a}extractEntryStream(e){const t=e.localHeaderOffset;if(t+30>this.data.length)throw new MA("Local file header extends beyond file");if(this.view.getUint32(t,!0)!==dx)throw new MA(`Invalid local file header signature at offset ${t}`);const n=t+30+this.view.getUint16(t+26,!0)+this.view.getUint16(t+28,!0);let{compressedSize:r}=e;if(e.hasDataDescriptor&&0===r){const e=this.view.getUint32(t+18,!0);if(e>0&&e!==hx&&(r=e),0===r){const e=this.findDataDescriptor(n);e&&(r=e.compressedSize)}}if(n+r>this.data.length)throw new MA(`Compressed data extends beyond file for entry: ${e.fileName}`);const o=this.data.subarray(n,n+r);if(0===e.compressionMethod)return Yw(o);if(8===e.compressionMethod){if(0===r&&0===e.uncompressedSize)return new ReadableStream({start(e){e.close()}});const t=e.uncompressedSize>0?Math.min(e.uncompressedSize,this.maxDecompressedBytes):this.maxDecompressedBytes;if(fx()){return new ReadableStream({start(e){e.enqueue(o),e.close()}}).pipeThrough(new DecompressionStream("deflate-raw")).pipeThrough(function(e){let t=0;return new TransformStream({transform(n,r){if(t+=n.length,t>e)throw new MA(`Decompressed size exceeds limit of ${e} bytes (possible zip bomb)`);r.enqueue(n)}})}(t))}return Yw(ox(o,t))}throw new MA(`Unsupported compression method ${e.compressionMethod} for entry: ${e.fileName}`)}findDataDescriptor(e){for(let t=e;t<this.data.length-16;t++)if(134695760===this.view.getUint32(t,!0))return{crc:this.view.getUint32(t+4,!0),compressedSize:this.view.getUint32(t+8,!0),uncompressedSize:this.view.getUint32(t+12,!0)};return null}}function gx(e){const t=[];let n=null;for(const r of e.children){if("string"==typeof r)continue;const e=r.local||r.tag;"t"===e?n=mx(r):"r"===e&&t.push(r)}if(0===t.length)return{text:$A(n??"")};const r=[],o=[];for(const e of t){let t,n="";for(const r of e.children){if("string"==typeof r)continue;const e=r.local||r.tag;"t"===e?n=mx(r):"rPr"===e&&(t=Ax(r))}const i=$A(n);o.push(i),r.push(t?{text:i,font:t}:{text:i})}return{text:o.join(""),richText:r}}function mx(e){return e.text??""}function Ax(e){const t={};for(const n of e.children){if("string"==typeof n)continue;switch(n.local||n.tag){case"b":t.bold="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"i":t.italic="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"u":{const e=n.attrs.val;t.underline="double"===e?"double":"singleAccounting"===e?"singleAccounting":"doubleAccounting"!==e||"doubleAccounting";break}case"strike":t.strikethrough="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"sz":n.attrs.val&&(t.size=Number(n.attrs.val));break;case"rFont":n.attrs.val&&(t.name=n.attrs.val);break;case"color":if(t.color={},n.attrs.rgb){const e=n.attrs.rgb;t.color.rgb=8===e.length?e.slice(2):e}n.attrs.theme&&(t.color.theme=Number(n.attrs.theme)),n.attrs.tint&&(t.color.tint=Number(n.attrs.tint)),n.attrs.indexed&&(t.color.indexed=Number(n.attrs.indexed));break;case"vertAlign":"superscript"!==n.attrs.val&&"subscript"!==n.attrs.val||(t.vertAlign=n.attrs.val);break;case"family":n.attrs.val&&(t.family=Number(n.attrs.val));break;case"charset":n.attrs.val&&(t.charset=Number(n.attrs.val));break;case"scheme":"major"!==n.attrs.val&&"minor"!==n.attrs.val&&"none"!==n.attrs.val||(t.scheme=n.attrs.val)}}return t}const yx=Date.UTC(1899,11,31),vx=Date.UTC(1904,0,1),bx=864e5;function Ix(e,t){const n=e.getTime();if(t)return(n-vx)/bx;let r=(n-yx)/bx;return r>=60&&(r+=1),Math.round(1e10*r)/1e10}const wx=new Set([14,15,16,17,18,19,20,21,22,27,28,29,30,31,32,33,34,35,36,45,46,47,50,51,52,53,54,55,56,57,58]);function xx(e){if(!e)return!1;const t=Number(e);if(!Number.isNaN(t)&&Number.isInteger(t)&&wx.has(t))return!0;let n=e.replace(/\[[$\-\w]*\]/g,"");if(n=n.replace(/\\./g,""),n=n.replace(/"[^"]*"/g,""),n=n.replace(/[*_]./g,""),/^(General|@)$/i.test(n.trim()))return!1;const r=n.toLowerCase();if(/[hs]/.test(r)){if(/\bh{1,2}\b|(?:^|[^a-z])h{1,2}(?:[^a-z]|$)/i.test(r))return!0;if(/\bs{1,2}\b|(?:^|[^a-z])s{1,2}(?:[^a-z]|$)/i.test(r))return!0}return!!/am\/pm|a\/p/i.test(r)||(!!/\[h+\]|\[m+\]|\[s+\]/i.test(e)||(!!/y{1,4}/.test(r)||(!!/d{1,4}/.test(r)||!!/m{3,}/.test(r))))}const Cx=["January","February","March","April","May","June","July","August","September","October","November","December"],Bx=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ex=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Fx=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const kx=["000000","FFFFFF","FF0000","00FF00","0000FF","FFFF00","FF00FF","00FFFF","000000","FFFFFF","FF0000","00FF00","0000FF","FFFF00","FF00FF","00FFFF","800000","008000","000080","808000","800080","008080","C0C0C0","808080","9999FF","993366","FFFFCC","CCFFFF","660066","FF8080","0066CC","CCCCFF","000080","FF00FF","FFFF00","00FFFF","800080","800000","008080","0000FF","00CCFF","CCFFFF","CCFFCC","FFFF99","99CCFF","FF99CC","CC99FF","FFCC99","3366FF","33CCCC","99CC00","FFCC00","FF9900","FF6600","666699","969696","003366","339966","003300","333300","993300","993366","333399","333333"],Sx="http://schemas.microsoft.com/office/spreadsheetml/2022/featurepropertybag",Dx="{C7286773-470A-42A8-94C5-96B5CB345126}",Nx="xl/featurePropertyBag/featurePropertyBag.xml";const Qx={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",5:"$#,##0_);\\($#,##0\\)",6:"$#,##0_);[Red]\\($#,##0\\)",7:"$#,##0.00_);\\($#,##0.00\\)",8:"$#,##0.00_);[Red]\\($#,##0.00\\)",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yyyy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yyyy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@"};function Mx(e){const t=ZA(e),n=new Map,r=[],o=[],i=[],s=[],a=[];for(const e of t.children){if("string"==typeof e)continue;switch(e.local||e.tag){case"numFmts":Lx(e,n);break;case"fonts":Ux(e,r);break;case"fills":qx(e,o);break;case"borders":jx(e,i);break;case"cellXfs":Gx(e,s);break;case"dxfs":Jx(e,a)}}const c=function(e){for(const t of e.children)if("string"!=typeof t&&"colors"===(t.local||t.tag))for(const e of t.children){if("string"==typeof e)continue;if("indexedColors"!==(e.local||e.tag))continue;const t=[];for(const n of e.children){if("string"==typeof n)continue;if("rgbColor"!==(n.local||n.tag))continue;const e=n.attrs.rgb;e&&t.push(8===e.length?e.slice(2):e)}if(t.length>0)return t}return kx}(t);for(const e of[r,o,i,a])Tx(e,c);return{numFmts:n,fonts:r,fills:o,borders:i,cellXfs:s,dxfs:a}}function Tx(e,t){if(null===e||"object"!=typeof e)return;if(Array.isArray(e)){for(const n of e)Tx(n,t);return}const n=e;if("number"==typeof n.indexed&&"string"!=typeof n.rgb){const e=t[n.indexed];e&&(n.rgb=e)}for(const e of Object.values(n))Tx(e,t)}function Lx(e,t){for(const n of e.children){if("string"==typeof n)continue;if("numFmt"===(n.local||n.tag)){const e=Number(n.attrs.numFmtId),r=n.attrs.formatCode??"";Number.isNaN(e)||t.set(e,r)}}}function Ux(e,t){for(const n of e.children){if("string"==typeof n)continue;"font"===(n.local||n.tag)&&t.push(Rx(n))}}function Rx(e){const t={};for(const n of e.children){if("string"==typeof n)continue;switch(n.local||n.tag){case"b":t.bold="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"i":t.italic="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"u":{const e=n.attrs.val;t.underline="double"===e?"double":"singleAccounting"===e?"singleAccounting":"doubleAccounting"!==e||"doubleAccounting";break}case"strike":t.strikethrough="0"!==n.attrs.val&&"false"!==n.attrs.val;break;case"sz":n.attrs.val&&(t.size=Number(n.attrs.val));break;case"name":n.attrs.val&&(t.name=n.attrs.val);break;case"color":t.color=Hx(n);break;case"vertAlign":"superscript"!==n.attrs.val&&"subscript"!==n.attrs.val||(t.vertAlign=n.attrs.val);break;case"family":n.attrs.val&&(t.family=Number(n.attrs.val));break;case"charset":n.attrs.val&&(t.charset=Number(n.attrs.val));break;case"scheme":"major"!==n.attrs.val&&"minor"!==n.attrs.val&&"none"!==n.attrs.val||(t.scheme=n.attrs.val)}}return t}function Hx(e){const t={};if(e.attrs.rgb){const n=e.attrs.rgb;t.rgb=8===n.length?n.slice(2):n}return e.attrs.theme&&(t.theme=Number(e.attrs.theme)),e.attrs.tint&&(t.tint=Number(e.attrs.tint)),e.attrs.indexed&&(t.indexed=Number(e.attrs.indexed)),t}function qx(e,t){for(const n of e.children){if("string"==typeof n)continue;"fill"===(n.local||n.tag)&&t.push(Ox(n))}}function Ox(e){for(const t of e.children){if("string"==typeof t)continue;const e=t.local||t.tag;if("patternFill"===e)return Px(t);if("gradientFill"===e)return zx(t)}return{type:"pattern",pattern:"none"}}function Px(e){const t={type:"pattern",pattern:e.attrs.patternType??"none"};for(const n of e.children){if("string"==typeof n)continue;const e=n.local||n.tag;"fgColor"===e?t.fgColor=Hx(n):"bgColor"===e&&(t.bgColor=Hx(n))}return t}function zx(e){const t=e.attrs.degree?Number(e.attrs.degree):void 0,n=[];for(const t of e.children){if("string"==typeof t)continue;if("stop"===(t.local||t.tag)){const e=Number(t.attrs.position??"0");for(const r of t.children){if("string"==typeof r)continue;"color"===(r.local||r.tag)&&n.push({position:e,color:Hx(r)})}}}return{type:"gradient",degree:t,stops:n}}function jx(e,t){for(const n of e.children){if("string"==typeof n)continue;"border"===(n.local||n.tag)&&t.push($x(n))}}function $x(e){const t={},n=e.attrs.diagonalUp,r=e.attrs.diagonalDown;"1"!==n&&"true"!==n||(t.diagonalUp=!0),"1"!==r&&"true"!==r||(t.diagonalDown=!0);for(const n of e.children){if("string"==typeof n)continue;const e=n.local||n.tag,r=Yx(n);if(r)switch(e){case"left":t.left=r;break;case"right":t.right=r;break;case"top":t.top=r;break;case"bottom":t.bottom=r;break;case"diagonal":t.diagonal=r}}return t}function Yx(e){const t=e.attrs.style;if(!t)return;const n={style:t};for(const t of e.children){if("string"==typeof t)continue;"color"===(t.local||t.tag)&&(n.color=Hx(t))}return n}function Gx(e,t){for(const n of e.children){if("string"==typeof n)continue;"xf"===(n.local||n.tag)&&t.push(Vx(n))}}function Vx(e){const t={numFmtId:Number(e.attrs.numFmtId??"0"),fontId:Number(e.attrs.fontId??"0"),fillId:Number(e.attrs.fillId??"0"),borderId:Number(e.attrs.borderId??"0")};"1"!==e.attrs.applyNumberFormat&&"true"!==e.attrs.applyNumberFormat||(t.applyNumberFormat=!0),"1"!==e.attrs.applyFont&&"true"!==e.attrs.applyFont||(t.applyFont=!0),"1"!==e.attrs.applyFill&&"true"!==e.attrs.applyFill||(t.applyFill=!0),"1"!==e.attrs.applyBorder&&"true"!==e.attrs.applyBorder||(t.applyBorder=!0),"1"!==e.attrs.applyAlignment&&"true"!==e.attrs.applyAlignment||(t.applyAlignment=!0),"1"!==e.attrs.applyProtection&&"true"!==e.attrs.applyProtection||(t.applyProtection=!0);for(const n of e.children){if("string"==typeof n)continue;const e=n.local||n.tag;"alignment"===e?t.alignment=Kx(n):"protection"===e?t.protection=Xx(n):"extLst"===e&&_x(n)&&(t.hasCheckboxFeature=!0)}return t}function Jx(e,t){for(const n of e.children){if("string"==typeof n)continue;"dxf"===(n.local||n.tag)&&t.push(Wx(n))}}function Wx(e){const t={};for(const n of e.children){if("string"==typeof n)continue;switch(n.local||n.tag){case"font":t.font=Rx(n);break;case"numFmt":{const e=n.attrs.formatCode;if(e)t.numFmt=e;else{const e=Number(n.attrs.numFmtId),r=Number.isNaN(e)?void 0:Qx[e];r&&(t.numFmt=r)}break}case"fill":t.fill=Ox(n);break;case"border":t.border=$x(n);break;case"alignment":t.alignment=Kx(n)}}return t}function _x(e){for(const t of e.children){if("string"==typeof t)continue;if("ext"===(t.local||t.tag)&&t.attrs.uri===Dx)return!0}return!1}function Xx(e){const t={},n=e.attrs.locked;void 0!==n&&(t.locked="1"===n||"true"===n);const r=e.attrs.hidden;return void 0!==r&&(t.hidden="1"===r||"true"===r),t}function Kx(e){const t={};if(e.attrs.horizontal&&(t.horizontal=e.attrs.horizontal),e.attrs.vertical&&(t.vertical=e.attrs.vertical),"1"!==e.attrs.wrapText&&"true"!==e.attrs.wrapText||(t.wrapText=!0),"1"!==e.attrs.shrinkToFit&&"true"!==e.attrs.shrinkToFit||(t.shrinkToFit=!0),e.attrs.textRotation&&(t.textRotation=Number(e.attrs.textRotation)),e.attrs.indent&&(t.indent=Number(e.attrs.indent)),e.attrs.readingOrder){const n=Number(e.attrs.readingOrder);t.readingOrder=1===n?"ltr":2===n?"rtl":"context"}return t}function Zx(e,t){const n=e.cellXfs[t];if(!n)return{};const r={};if(0!==n.numFmtId){const t=e.numFmts.get(n.numFmtId)??Qx[n.numFmtId];t&&(r.numFmt=t)}return n.fontId<e.fonts.length&&0!==n.fontId&&(r.font=e.fonts[n.fontId]),n.fillId<e.fills.length&&n.fillId>1&&(r.fill=e.fills[n.fillId]),n.borderId<e.borders.length&&0!==n.borderId&&(r.border=e.borders[n.borderId]),n.alignment&&(r.alignment=n.alignment),n.protection&&(r.protection=n.protection),r}function eC(e,t){const n=e.cellXfs[t];if(!n)return!1;const r=n.numFmtId,o=e.numFmts.get(r);if(o)return xx(o);if(i=r,wx.has(i))return!0;var i;const s=Qx[r];return!!s&&xx(s)}function tC(e){return void 0===e?void 0:{...e}}function nC(e){const t={...e};return e.color&&(t.color=tC(e.color)),t}function rC(e){if("gradient"===e.type)return{...e,stops:e.stops.map(e=>({...e,color:{...e.color}}))};const t={...e};return e.fgColor&&(t.fgColor=tC(e.fgColor)),e.bgColor&&(t.bgColor=tC(e.bgColor)),t}function oC(e){if(void 0===e)return;const t={...e};return e.color&&(t.color=tC(e.color)),t}function iC(e){const t={...e};for(const n of["top","right","bottom","left","diagonal"])e[n]&&(t[n]=oC(e[n]));return t}function sC(e){const t={...e};return e.font&&(t.font=nC(e.font)),e.fill&&(t.fill=rC(e.fill)),e.border&&(t.border=iC(e.border)),e.alignment&&(t.alignment={...e.alignment}),e.protection&&(t.protection={...e.protection}),t}function aC(e){return"string"==typeof e?function(e){const t=e.split(":"),n=eB(t[0]),r=t.length>1?eB(t[1]):n;return{startRow:n.row,startCol:n.col,endRow:r.row,endCol:r.col}}(e):e}function cC(e){return"object"==typeof e&&null!==e&&"string"==typeof e.hyperlink&&"string"==typeof e.text}function lC(e){return cC(e)?e.text:e}function uC(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=63744&&e<=64255||e>=44032&&e<=55215||e>=12448&&e<=12543||e>=12352&&e<=12447||e>=12288&&e<=12351||e>=65280&&e<=65376||e>=65504&&e<=65510}function fC(e){const t=e.indexOf(".");if(-1===t)return 0;let n=0;for(let r=t+1;r<e.length&&("0"===e[r]||"#"===e[r]);r++)n++;return n}function dC(e,t){if(!t.includes(","))return e;const n=e.split(".");let r=n[0];const o=r.startsWith("-");o&&(r=r.slice(1));let i="";for(let e=0;e<r.length;e++)e>0&&(r.length-e)%3==0&&(i+=","),i+=r[e];return o&&(i="-"+i),void 0!==n[1]&&(i+="."+n[1]),i}function hC(e){let t=0;for(const n of e){const e=n.codePointAt(0);void 0!==e&&uC(e)?t+=2:t+=1}return t}function pC(e,t){if(null==e)return 0;if("boolean"==typeof e)return e?5:6;if("string"==typeof e){if(0===e.length)return 0;if(e.includes("\n")){const t=e.split("\n");let n=0;for(const e of t){const t=hC(e);t>n&&(n=t)}return n}return hC(e)}if("number"==typeof e){if(t){const n=function(e,t){const n=t.trim().split(";");let r;if(e>0?r=n[0]:e<0&&n.length>1?(r=n[1],e=Math.abs(e)):r=0===e&&n.length>2?n[2]:n[0],r=r.replace(/\[[^\]]*\]/g,""),r=r.replace(/\\./g,e=>e[1]),r=r.replace(/"([^"]*)"/g,"$1"),r.includes("%")){const t=fC(r.replace(/%/g,""));return dC((100*e).toFixed(t),r)+"%"}const o=fC(r);return dC(e.toFixed(o),r)}(e,t),r=function(e){let t=0;const n=e.split(";")[0].replace(/\[[^\]]*\]/g,"");for(let e=0;e<n.length;e++){const r=n[e];if('"'===r)for(e++;e<n.length&&'"'!==n[e];)t++,e++;else"\\"===r?(t++,e++):"$"!==r&&"€"!==r&&"£"!==r&&"¥"!==r||t++}return t}(t);return hC(n)+r}return hC(String(e))}if(e instanceof Date){if(t){const n=function(e,t,n){const r=e.getUTCFullYear(),o=e.getUTCMonth(),i=e.getUTCDate(),s=e.getUTCDay();let a=e.getUTCHours();const c=e.getUTCMinutes(),l=e.getUTCSeconds(),u=e.getUTCMilliseconds();let f="",d=a;/am\/pm|a\/p/i.test(t)&&(f=a>=12?"PM":"AM",d=a%12,0===d&&(d=12));const h=function(e){const t=[];let n=0;for(;n<e.length;){if("["===e[n]&&"$"===e[n+1]){const t=e.indexOf("]",n);if(-1!==t){n=t+1;continue}}if("["===e[n]){const r=e.indexOf("]",n);if(-1!==r){const o=e.slice(n+1,r);if(/^h+$/i.test(o)||/^m+$/i.test(o)||/^s+$/i.test(o)){t.push(e.slice(n,r+1)),n=r+1;continue}n=r+1;continue}}if('"'===e[n]){let r="";for(n++;n<e.length&&'"'!==e[n];)r+=e[n],n++;n++,t.push(r);continue}if("\\"===e[n]){n++,n<e.length&&(t.push(e[n]),n++);continue}if(/^am\/pm/i.test(e.slice(n))){t.push(e.slice(n,n+5)),n+=5;continue}if(/^a\/p/i.test(e.slice(n))){t.push(e.slice(n,n+3)),n+=3;continue}if("."===e[n]&&n+1<e.length&&"0"===e[n+1]){let r=".",o=n+1;for(;o<e.length&&"0"===e[o];)r+="0",o++;t.push(r),n=o;continue}const r=e[n].toLowerCase();if("ymdhsn".includes(r)){let o="";const i=r;for(;n<e.length&&e[n].toLowerCase()===i;)o+=e[n],n++;t.push(o);continue}t.push(e[n]),n++}return t}(t),p=void 0!==n&&n>0?n:0,g=Math.floor(24*p),m=Math.floor(24*p*60),A=Math.floor(24*p*60*60),y=Array.from({length:h.length},()=>!1);for(let e=0;e<h.length;e++){const t=h[e].toLowerCase();if("m"!==t&&"mm"!==t)continue;let n=!1;for(let t=e-1;t>=0;t--){const e=h[t].toLowerCase();if("h"===e||"hh"===e||/^\[h+\]$/.test(e)){n=!0;break}if(/^[ymdhs]+$/.test(e)||/^\[[ms]+\]$/.test(e)||"am/pm"===e||"a/p"===e)break}let r=!1;for(let t=e+1;t<h.length;t++){const e=h[t].toLowerCase();if("s"===e||"ss"===e){r=!0;break}if(/^[ymdh]+$/.test(e)||"am/pm"===e||"a/p"===e)break}y[e]=n||r}let v="";for(let e=0;e<h.length;e++){const t=h[e],n=t.toLowerCase();if(t.startsWith("[")&&t.endsWith("]")){const e=n.slice(1,-1);/^h+$/.test(e)?v+=String(g).padStart(e.length,"0"):/^m+$/.test(e)?v+=String(m).padStart(e.length,"0"):/^s+$/.test(e)&&(v+=String(A).padStart(e.length,"0"));continue}switch(n){case"yyyy":v+=String(r);break;case"yy":v+=String(r%100).padStart(2,"0");break;case"mmmm":v+=Cx[o];break;case"mmm":v+=Bx[o];break;case"mm":y[e]?v+=String(c).padStart(2,"0"):v+=String(o+1).padStart(2,"0");break;case"m":y[e]?v+=String(c):v+=String(o+1);break;case"dddd":v+=Ex[s];break;case"ddd":v+=Fx[s];break;case"dd":v+=String(i).padStart(2,"0");break;case"d":v+=String(i);break;case"hh":v+=String(d).padStart(2,"0");break;case"h":v+=String(d);break;case"ss":v+=String(l).padStart(2,"0");break;case"s":v+=String(l);break;case".0":case".00":case".000":{const e=n.length-1;v+="."+String(u).padStart(3,"0").slice(0,e)}break;case"am/pm":v+=f;break;case"a/p":v+=f.charAt(0);break;default:v+=t}}return v}(e,t);return hC(n)}return hC(`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,"0")}-${String(e.getUTCDate()).padStart(2,"0")}`)}return 0}function gC(e,t){const n=t?.minWidth??8,r=t?.maxWidth??255,o=t?.padding??2,i=!0===t?.font?.bold;let s=0;for(const n of e){const e=pC(n,t?.numFmt);e>s&&(s=e)}let a=1.1*s;return i&&(a*=1.05),a+=o,a=Math.ceil(2*a)/2,a<n&&(a=n),a>r&&(a=r),a}const mC="XLDAPR",AC="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}",yC="xl/metadata.xml";function vC(e){for(const t of ty(e))if("extLst"===t.local)for(const e of ty(t))if("ext"===e.local&&(e.attrs.uri??"").toLowerCase()===AC)for(const t of ty(e)){if("dynamicArrayProperties"!==t.local)continue;const e=t.attrs.fDynamic;return"0"!==e&&"false"!==e}return!0}function bC(e){let t=0;for(let n=e.length-1;n>=0;n--){t=t>>14&1|t<<1&32767,t^=e.charCodeAt(n)}return t=t>>14&1|t<<1&32767,t^=e.length,t^=52811,t.toString(16).toUpperCase().padStart(4,"0")}const IC=/[[\]:*?/\\]/;function wC(e,t){const n=`sheet ${t+1}`;if("string"!=typeof e||0===e.length)throw new LA(`Sheet name is empty (${n}); Excel requires a name`);if(e.length>31)throw new LA(`Sheet name "${e}" is ${e.length} characters (${n}); Excel allows at most 31`);const r=e.match(IC);if(r)throw new LA(`Sheet name "${e}" contains ${JSON.stringify(r[0])} (${n}); Excel forbids [ ] : * ? / \\ in sheet names`);if(e.startsWith("'")||e.endsWith("'"))throw new LA(`Sheet name "${e}" starts or ends with an apostrophe (${n}); Excel forbids it because it breaks quoted range references`);if("history"===e.toLowerCase())throw new LA(`Sheet name "${e}" is reserved by Excel for change tracking (${n})`)}function xC(e){return!("object"!=typeof e||null===e||e instanceof Date||Array.isArray(e)||cC(e))}function CC(e){return xC(e)?e.value??null:e}function BC(e){let t=!1;const n=e.map(e=>{const n=function(e){const t=e.rows;if(!t)return e;let n=!1;for(const e of t){for(const t of e)if(xC(t)){n=!0;break}if(n)break}if(!n)return e;const r=[],o=new Map;for(let e=0;e<t.length;e++){const n=t[e],i=[];for(let t=0;t<n.length;t++){const r=n[t];xC(r)?(o.set(`${e},${t}`,r),i.push(r.value??null)):i.push(r)}r[e]=i}if(e.cells)for(const[t,n]of e.cells)o.set(t,n);return{...e,rows:r,cells:o}}(e);return n!==e&&(t=!0),n});return t?n:e}const EC="http://schemas.openxmlformats.org/spreadsheetml/2006/main";function FC(e){!function(e){if(!Number.isInteger(e)||e<0||e>nw)throw new LA(`Column index ${e} is not a valid 0-based column (Excel allows 0..16383)`)}(e);let t="",n=e;do{t=String.fromCharCode(65+n%26)+t,n=Math.floor(n/26)-1}while(n>=0);return t}function kC(e,t){const n={r:e+1};return void 0!==t?.height&&(n.ht=t.height,n.customHeight=1),t?.hidden&&(n.hidden=1),t?.outlineLevel&&(n.outlineLevel=t.outlineLevel),t?.collapsed&&(n.collapsed=1),n}function SC(e,t){return FC(t)+(e+1)}function DC(e,t,n,r){return`${SC(e,t)}:${SC(n,r)}`}function NC(e){const t=e.hyperlink.startsWith("#")?{target:"",location:e.hyperlink.slice(1),display:e.text}:{target:e.hyperlink,display:e.text};return void 0!==e.tooltip&&(t.tooltip=e.tooltip),t}const QC="yyyy-mm-dd",MC=Object.freeze({numFmt:QC}),TC=new WeakMap,LC=new Set(["#VALUE!","#REF!","#N/A","#NAME?","#NULL!","#DIV/0!","#NUM!","#GETTING_DATA","#SPILL!","#CALC!"]);function UC(e,t,n,r,o,i,s){const a="1904"===r,c=HC(e),l=c.length;let u=0;for(const e of c)e.length>u&&(u=e.length);e.columns&&e.columns.length>u&&(u=e.columns.length);const f=[];{const t=[];if(e.view?.tabColor&&t.push(Sy("tabColor",$C(e.view.tabColor))),e.outlineProperties){const n={};void 0!==e.outlineProperties.summaryBelow&&(n.summaryBelow=e.outlineProperties.summaryBelow?1:0),void 0!==e.outlineProperties.summaryRight&&(n.summaryRight=e.outlineProperties.summaryRight?1:0),t.push(Sy("outlinePr",n))}e.pageSetup?.fitToPage&&t.push(Sy("pageSetUpPr",{fitToPage:1})),t.length>0&&f.push(Ny("sheetPr",void 0,t))}if(l>0||u>0){const e=l>0?l-1:0,t=u>0?u-1:0;f.push(Sy("dimension",{ref:DC(0,0,e,t)}))}const d=[];if(e.freezePane){const t=e.freezePane,n=SC(t.rows??0,t.columns??0),r={};t.columns&&t.columns>0&&(r.xSplit=t.columns),t.rows&&t.rows>0&&(r.ySplit=t.rows),r.topLeftCell=n,r.state="frozen";const o=t.columns&&t.columns>0,i=t.rows&&t.rows>0;r.activePane=o&&i?"bottomRight":o?"topRight":"bottomLeft",d.push(Sy("pane",r))}else if(e.splitPane){const t=e.splitPane,n={},r=void 0!==t.xSplit&&t.xSplit>0,o=void 0!==t.ySplit&&t.ySplit>0;r&&(n.xSplit=t.xSplit),o&&(n.ySplit=t.ySplit),n.topLeftCell="A1",n.state="split",n.activePane=r&&o?"bottomRight":r?"topRight":"bottomLeft",d.push(Sy("pane",n))}const h={workbookViewId:0};e.view&&(!1===e.view.showGridLines&&(h.showGridLines=0),!1===e.view.showRowColHeaders&&(h.showRowColHeaders=0),void 0!==e.view.zoomScale&&(h.zoomScale=e.view.zoomScale),e.view.rightToLeft&&(h.rightToLeft=1)),f.push(Ny("sheetViews",void 0,[d.length>0?Ny("sheetView",h,d):Sy("sheetView",h)]));const p={defaultRowHeight:e.defaultRowHeight??15};if(void 0!==e.defaultRowHeight&&(p.customHeight=1),void 0!==e.defaultColWidth&&(p.defaultColWidth=e.defaultColWidth),f.push(Sy("sheetFormatPr",p)),e.columns&&e.columns.length>0){const n=[];for(let r=0;r<e.columns.length;r++){const o=e.columns[r];let i=o.width;if(o.autoWidth&&void 0===i){const e=[];for(const t of c)t&&r<t.length&&t[r]&&e.push(t[r].value);i=gC(e,{font:o.style?.font,numFmt:o.numFmt??o.style?.numFmt})}const s=o.numFmt&&!o.style?.numFmt?{...o.style,numFmt:o.numFmt}:o.style??void 0,a=s?t.addStyle(s):0;if(void 0!==i||o.hidden||o.outlineLevel||o.collapsed||0!==a){const e={min:r+1,max:r+1};void 0!==i&&(e.width=i,e.customWidth=!0),0!==a&&(e.style=a),o.hidden&&(e.hidden=!0),o.outlineLevel&&(e.outlineLevel=o.outlineLevel),o.collapsed&&(e.collapsed=!0),n.push(Sy("col",e))}}n.length>0&&f.push(Ny("cols",void 0,n))}const g=[];let m=!1;for(let r=0;r<l;r++){const o=c[r],s=e.rowDefs?.get(r),l=s&&(void 0!==s.height||s.hidden||s.outlineLevel||s.collapsed);if(!(o&&0!==o.length||l))continue;const u=[];let f=!1;if(o)for(let e=0;e<o.length;e++){const s=o[e];if(!s)continue;s.formulaDynamic&&void 0!==s.formula&&null!==s.formula&&(m=!0);const c=OC(r,e,s,t,n,a,i);c&&(u.push(c),f=!0)}if(f||l){const e=kC(r,s);f?g.push(Ny("row",e,u)):g.push(Sy("row",e))}}if(f.push(Ny("sheetData",void 0,g.length>0?g:"")),e.protection&&f.push(function(e){const t={};e.password&&(t.password=bC(e.password));!1!==e.sheet&&(t.sheet=1);e.objects&&(t.objects=1);e.scenarios&&(t.scenarios=1);const n=[["selectLockedCells","selectLockedCells"],["selectUnlockedCells","selectUnlockedCells"],["formatCells","formatCells"],["formatColumns","formatColumns"],["formatRows","formatRows"],["insertColumns","insertColumns"],["insertRows","insertRows"],["insertHyperlinks","insertHyperlinks"],["deleteColumns","deleteColumns"],["deleteRows","deleteRows"],["sort","sort"],["autoFilter","autoFilter"],["pivotTables","pivotTables"]];for(const[r,o]of n){const n=e[r];void 0!==n&&"boolean"==typeof n&&(t[o]=n?0:1)}return Sy("sheetProtection",t)}(e.protection)),e.autoFilter)if(e.autoFilter.columns&&e.autoFilter.columns.length>0){const t=[];for(const n of e.autoFilter.columns)if(n.filters&&n.filters.length>0){const e=n.filters.map(e=>Sy("filter",{val:e}));t.push(Ny("filterColumn",{colId:n.colIndex},[Ny("filters",void 0,e)]))}f.push(Ny("autoFilter",{ref:e.autoFilter.range},t))}else f.push(Sy("autoFilter",{ref:e.autoFilter.range}));const A=function(e){if(e)return e.some(e=>"string"==typeof e)?e.map(aC):e}(e.merges);if(A&&A.length>0){const e=A.map(e=>Sy("mergeCell",{ref:DC(e.startRow,e.startCol,e.endRow,e.endCol)}));f.push(Ny("mergeCells",{count:A.length},e))}e.conditionalRules&&e.conditionalRules.length>0&&f.push(...function(e,t){const n=new Map;for(const t of e){const e=n.get(t.range);e?e.push(t):n.set(t.range,[t])}const r=[];for(const[e,o]of n){const n=[];for(const e of o)n.push(GC(e,t));r.push(Ny("conditionalFormatting",{sqref:e},n))}return r}(e.conditionalRules,t)),e.dataValidations&&e.dataValidations.length>0&&f.push(function(e){const t=[];for(const n of e){const e={type:n.type,sqref:n.range};n.operator&&(e.operator=n.operator),n.allowBlank&&(e.allowBlank=1),n.showInputMessage&&(e.showInputMessage=1),n.showErrorMessage&&(e.showErrorMessage=1),n.errorStyle&&(e.errorStyle=n.errorStyle),n.inputTitle&&(e.promptTitle=n.inputTitle),n.inputMessage&&(e.prompt=n.inputMessage),n.errorTitle&&(e.errorTitle=n.errorTitle),n.errorMessage&&(e.error=n.errorMessage);const r=[];if("list"===n.type&&n.values&&n.values.length>0){const e=`"${n.values.join(",")}"`;r.push(Ny("formula1",void 0,Ey(e)))}else void 0!==n.formula1&&r.push(Ny("formula1",void 0,Ey(n.formula1)));void 0!==n.formula2&&r.push(Ny("formula2",void 0,Ey(n.formula2))),r.length>0?t.push(Ny("dataValidation",e,r)):t.push(Sy("dataValidation",e))}return Ny("dataValidations",{count:e.length},t)}(e.dataValidations));const{xml:y,relationships:v}=function(e,t){const n=t??HC(e),r=[],o=[];let i=1;for(let e=0;e<n.length;e++){const t=n[e];for(let n=0;n<t.length;n++){const s=t[n]?.hyperlink;if(!s)continue;const a={ref:SC(e,n)};if(s.location)a.location=s.location;else if(s.target){const e="rId"+i++;a["r:id"]=e,o.push({id:e,target:s.target})}s.tooltip&&(a.tooltip=s.tooltip),s.display&&(a.display=s.display),r.push(Sy("hyperlink",a))}}if(0===r.length)return{xml:"",relationships:[]};return{xml:Ny("hyperlinks",void 0,r),relationships:o}}(e,c);y&&f.push(y);const b=function(e){if(!e)return"";const t={};e.showGridLines&&(t.gridLines=1);e.showRowColHeaders&&(t.headings=1);e.horizontalCentered&&(t.horizontalCentered=1);e.verticalCentered&&(t.verticalCentered=1);return 0===Object.keys(t).length?"":Sy("printOptions",t)}(e.pageSetup);if(b&&f.push(b),f.push(function(e){const t=e??{};return Sy("pageMargins",{left:t.left??jC.left,right:t.right??jC.right,top:t.top??jC.top,bottom:t.bottom??jC.bottom,header:t.header??jC.header,footer:t.footer??jC.footer})}(e.pageSetup?.margins)),e.pageSetup&&f.push(function(e){const t={};if(void 0!==e.paperSize){const n=function(e){if("number"==typeof e)return Number.isInteger(e)&&e>0?e:void 0;return PC[e]}(e.paperSize);void 0!==n&&(t.paperSize=n)}e.orientation&&(t.orientation=e.orientation);void 0!==e.scale&&(t.scale=e.scale);e.fitToPage&&(void 0!==e.fitToWidth&&(t.fitToWidth=e.fitToWidth),void 0!==e.fitToHeight&&(t.fitToHeight=e.fitToHeight));void 0!==e.paperWidth&&(t.paperWidth=e.paperWidth);void 0!==e.paperHeight&&(t.paperHeight=e.paperHeight);void 0!==e.firstPageNumber&&(t.firstPageNumber=e.firstPageNumber);const n=e.useFirstPageNumber??(void 0!==e.firstPageNumber||void 0);void 0!==n&&(t.useFirstPageNumber=n?1:0);void 0!==e.pageOrder&&"downThenOver"!==e.pageOrder&&(t.pageOrder=e.pageOrder);e.blackAndWhite&&(t.blackAndWhite=1);e.draft&&(t.draft=1);void 0!==e.cellComments&&"none"!==e.cellComments&&(t.cellComments=e.cellComments);void 0!==e.errors&&"displayed"!==e.errors&&(t.errors=e.errors);void 0!==e.copies&&(t.copies=e.copies);void 0!==e.horizontalDpi&&(t.horizontalDpi=e.horizontalDpi);void 0!==e.verticalDpi&&(t.verticalDpi=e.verticalDpi);!1===e.usePrinterDefaults&&(t.usePrinterDefaults=0);if(0===Object.keys(t).length)return"";return Sy("pageSetup",t)}(e.pageSetup)),e.headerFooter&&f.push(function(e){const t={};e.differentOddEven&&(t.differentOddEven=1);e.differentFirst&&(t.differentFirst=1);const n=[];e.oddHeader&&n.push(Ny("oddHeader",void 0,Ey(e.oddHeader)));e.oddFooter&&n.push(Ny("oddFooter",void 0,Ey(e.oddFooter)));e.evenHeader&&n.push(Ny("evenHeader",void 0,Ey(e.evenHeader)));e.evenFooter&&n.push(Ny("evenFooter",void 0,Ey(e.evenFooter)));e.firstHeader&&n.push(Ny("firstHeader",void 0,Ey(e.firstHeader)));e.firstFooter&&n.push(Ny("firstFooter",void 0,Ey(e.firstFooter)));if(0===n.length)return"";return Ny("headerFooter",Object.keys(t).length>0?t:void 0,n)}(e.headerFooter)),e.rowBreaks&&e.rowBreaks.length>0){const t=[...e.rowBreaks].sort((e,t)=>e-t),n=t.map(e=>Sy("brk",{id:e+1,max:16383,man:1}));f.push(Ny("rowBreaks",{count:t.length,manualBreakCount:t.length},n))}if(e.colBreaks&&e.colBreaks.length>0){const t=[...e.colBreaks].sort((e,t)=>e-t),n=t.map(e=>Sy("brk",{id:e+1,max:1048575,man:1}));f.push(Ny("colBreaks",{count:t.length,manualBreakCount:t.length},n))}let I=null,w=v.length+1;const x=e.images&&e.images.length>0,C=e.textBoxes&&e.textBoxes.length>0,B=e.charts&&e.charts.length>0,E=f.length;(x||C||B)&&(I=`rId${w}`,w++,f.push(Sy("drawing",{"r:id":I})));let F=null,k=null,S=!1;if(e.cells)for(const[,t]of e.cells)if(t.comment){S=!0;break}S&&(F=`rId${w}`,w++,k=`rId${w}`,w++,f.push(Sy("legacyDrawing",{"r:id":F})));let D=null;e.backgroundImage&&(D=`rId${w}`,w++,f.push(Sy("picture",{"r:id":D})));const N=[];if(e.tables&&e.tables.length>0&&void 0!==o){const t=[];for(let n=0;n<e.tables.length;n++){const e=`rId${w}`;w++;const r=o+n;N.push({rId:e,globalTableIndex:r}),t.push(Sy("tablePart",{"r:id":e}))}f.push(Ny("tableParts",{count:e.tables.length},t))}e.sparklines&&e.sparklines.length>0&&f.push(function(e){const t=[];let n=1;for(const r of e){const e={},o=r.type??"line";"line"!==o&&(e.type=o),e.displayEmptyCellsAs="gap";const i=`{00000000-0000-0000-0000-${String(n++).padStart(12,"0")}}`;e["xr2:uid"]=i,r.markers&&(e.markers="1");const s=[],a=r.color??"376092",c=6===a.length?`FF${a}`:a;s.push(Sy("x14:colorSeries",{rgb:c}));const l=Ny("x14:sparkline",void 0,[Ny("xm:f",void 0,r.dataRange),Ny("xm:sqref",void 0,r.location)]);s.push(Ny("x14:sparklines",void 0,[l])),t.push(Ny("x14:sparklineGroup",e,s))}const r=Ny("x14:sparklineGroups",{"xmlns:xm":JC},t),o=Ny("ext",{uri:_C,"xmlns:x14":VC,"xmlns:xr2":WC},[r]);return Ny("extLst",void 0,[o])}(e.sparklines));const Q=[];if(e.pivotTables&&e.pivotTables.length>0&&void 0!==s)for(let t=0;t<e.pivotTables.length;t++){const e=`rId${w}`;w++,Q.push({rId:e,globalPivotIndex:s+t})}const M=Qy("worksheet",{xmlns:EC,"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},f);return{xml:M,drawingInsertOffset:XC(M,f,E),hyperlinkRelationships:v,drawingRId:I,legacyDrawingRId:F,commentsRId:k,hasComments:S,tables:N,pictureRId:D,pivotTables:Q,hasDynamicArray:m}}function RC(e){if(e)return e.numFmt&&!e.style?.numFmt?{...e.style,numFmt:e.numFmt}:e.style}function HC(e){const t=[];if(e.data&&e.columns){const n=e.columns.map(e=>e.key);if(e.columns.some(e=>e.header)){const n=[];for(let t=0;t<e.columns.length;t++){const r=e.columns[t];n.push({value:r.header??r.key??null,style:r.style})}t.push(n)}for(const r of e.data){const o=[];for(let t=0;t<n.length;t++){const i=n[t],s=void 0!==i?r[i]??null:null,a={value:cC(s)?s.text:s,style:RC(e.columns[t])};cC(s)&&(a.hyperlink=NC(s)),o.push(a)}t.push(o)}}else if(e.rows)for(const n of e.rows){const r=[];for(let t=0;t<n.length;t++){const o=CC(n[t]),i=e.columns?RC(e.columns[t]):void 0;r.push(i?{value:o,style:i}:{value:o})}t.push(r)}if(e.cells)for(const[n,r]of e.cells){const[e,o]=n.split(","),i=parseInt(e,10),s=parseInt(o,10);for(;t.length<=i;)t.push([]);const a=t[i];for(;a.length<=s;)a.push(null);const c=a[s];a[s]={value:r.value??c?.value??null,style:r.style??c?.style,checkbox:r.checkbox??c?.checkbox,formula:r.formula??c?.formula,formulaResult:r.formulaResult??c?.formulaResult,formulaType:r.formulaType??c?.formulaType,formulaSharedIndex:r.formulaSharedIndex??c?.formulaSharedIndex,formulaRef:r.formulaRef??c?.formulaRef,formulaDynamic:r.formulaDynamic??c?.formulaDynamic,richText:r.richText??c?.richText,hyperlink:r.hyperlink??c?.hyperlink}}return t}function qC(e,t,n,r){return 0===t?""===n?`<c r="${e}"><v>${r}</v></c>`:`<c r="${e}" t="${n}"><v>${r}</v></c>`:""===n?`<c r="${e}" s="${t}"><v>${r}</v></c>`:`<c r="${e}" t="${n}" s="${t}"><v>${r}</v></c>`}function OC(e,t,n,r,o,i,s){const{value:a,style:c,formula:l,formulaResult:u,formulaType:f,formulaSharedIndex:d,formulaRef:h,formulaDynamic:p,richText:g}=n;let m=0,A=c;if(a instanceof Date&&(!A||!A.numFmt))if(A){const e=TC.get(A);if(e)A=e;else{const e={...A,numFmt:QC};TC.set(A,e),A=e}}else A=MC;n.checkbox?m=r.addCheckboxStyle(A):A&&(m=r.addStyle(A));const y=SC(e,t);if(g&&g.length>0){const e={r:y,t:"inlineStr"};0!==m&&(e.s=m);const t=function(e){const t=[];for(const n of e){const e=[];if(n.font){const t=YC(n.font);t.length>0&&e.push(Ny("rPr",void 0,t))}e.push(Dy(n.text)),t.push(Ny("r",void 0,e))}return t}(g);return Ny("c",e,[Ny("is",void 0,t)])}if(null!=l){const e={r:y};let t;if(0!==m&&(e.s=m),p&&(e.cm=1),"shared"===f){const e={t:"shared"};void 0!==d&&(e.si=d),h&&(e.ref=h),t=""===l?Sy("f",e):Ny("f",e,Ey(l))}else if("array"===f){const e={t:"array"};h&&(e.ref=h),t=Ny("f",e,Ey(l))}else t=Ny("f",void 0,Ey(l));const n=[t];return null!=u&&("string"==typeof u?(e.t="str",n.push(Ny("v",void 0,Ey(u)))):"boolean"==typeof u?(e.t="b",n.push(Ny("v",void 0,u?"1":"0"))):"number"==typeof u?Number.isFinite(u)&&n.push(Ny("v",void 0,String(u))):u instanceof Date&&n.push(Ny("v",void 0,String(Ix(u,i))))),Ny("c",e,n)}if(null==a)return 0!==m?Sy("c",{r:y,s:m}):null;if("string"==typeof a&&LC.has(a))return qC(y,m,"e",a);if("string"==typeof a){if(s){const e=`<is>${Dy(a)}</is>`;return 0===m?`<c r="${y}" t="inlineStr">${e}</c>`:`<c r="${y}" t="inlineStr" s="${m}">${e}</c>`}return qC(y,m,"s",String(o.add(a)))}return"number"==typeof a?Number.isFinite(a)?qC(y,m,"",String(a)):0!==m?Sy("c",{r:y,s:m}):null:"boolean"==typeof a?qC(y,m,"b",a?"1":"0"):a instanceof Date?qC(y,m,"",String(Ix(a,i))):null}const PC={letter:1,letterSmall:2,tabloid:3,ledger:4,legal:5,statement:6,executive:7,a3:8,a4:9,a4Small:10,a5:11,b4:12,b5:13,folio:14,quarto:15,note:18,envelope9:19,envelope10:20,envelope11:21,envelope12:22,envelope14:23,cSheet:24,dSheet:25,eSheet:26,envelopeDL:27,envelopeC5:28,envelopeC3:29,envelopeC4:30,envelopeC6:31,envelopeC65:32,envelopeB4:33,envelopeB5:34,envelopeB6:35,envelopeItaly:36,envelopeMonarch:37,envelopePersonal:38,fanfoldUS:39,fanfoldGermanStd:40,fanfoldGermanLegal:41,a6:70,japanesePostcard:43,japaneseDoublePostcard:69},zC={};for(const[e,t]of Object.entries(PC))zC[t]=e;const jC={left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3};function $C(e){const t={};if(void 0!==e.rgb){const n=e.rgb;t.rgb=6===n.length?`FF${n}`:n}return void 0!==e.theme&&(t.theme=e.theme),void 0!==e.tint&&(t.tint=e.tint),void 0!==e.indexed&&(t.indexed=e.indexed),t}function YC(e){const t=[];return e.bold&&t.push(Sy("b")),e.italic&&t.push(Sy("i")),e.underline&&(!0===e.underline||"single"===e.underline?t.push(Sy("u")):t.push(Sy("u",{val:e.underline}))),e.strikethrough&&t.push(Sy("strike")),e.vertAlign&&t.push(Sy("vertAlign",{val:e.vertAlign})),void 0!==e.size&&t.push(Sy("sz",{val:e.size})),e.color&&t.push(Sy("color",$C(e.color))),e.name&&t.push(Sy("rFont",{val:e.name})),void 0!==e.family&&t.push(Sy("family",{val:e.family})),void 0!==e.charset&&t.push(Sy("charset",{val:e.charset})),e.scheme&&t.push(Sy("scheme",{val:e.scheme})),t}function GC(e,t){const n={type:e.type,priority:e.priority};e.style&&(n.dxfId=t.addDxf(e.style)),e.operator&&(n.operator=e.operator),e.stopIfTrue&&(n.stopIfTrue=!0),void 0!==e.text&&(n.text=e.text);const r=[];if(void 0!==e.formula){const t=Array.isArray(e.formula)?e.formula:[e.formula];for(const e of t)r.push(Ny("formula",void 0,Ey(e)))}if("colorScale"===e.type&&e.colorScale){const t=[];for(const n of e.colorScale.cfvo){const e={type:n.type};void 0!==n.value&&(e.val=n.value),t.push(Sy("cfvo",e))}for(const n of e.colorScale.colors)t.push(Sy("color",{rgb:n}));r.push(Ny("colorScale",void 0,t))}if("dataBar"===e.type&&e.dataBar){const t=[];for(const n of e.dataBar.cfvo){const e={type:n.type};void 0!==n.value&&(e.val=n.value),t.push(Sy("cfvo",e))}t.push(Sy("color",{rgb:e.dataBar.color})),r.push(Ny("dataBar",void 0,t))}if("iconSet"===e.type&&e.iconSet){const t={iconSet:e.iconSet.iconSet};e.iconSet.reverse&&(t.reverse=!0),!1===e.iconSet.showValue&&(t.showValue=!1);const n=[];for(const t of e.iconSet.cfvo){const e={type:t.type};void 0!==t.value&&(e.val=t.value),n.push(Sy("cfvo",e))}r.push(Ny("iconSet",t,n))}return r.length>0?Ny("cfRule",n,r):Sy("cfRule",n)}const VC="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",JC="http://schemas.microsoft.com/office/excel/2006/main",WC="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2",_C="{05C60535-1F16-4fd2-B633-F4F36F0B64E0}";function XC(e,t,n){const r=t.join(""),o=0===r.length?e.lastIndexOf("</worksheet>"):e.indexOf(r);if(o<0)return e.lastIndexOf("</worksheet>");let i=o;for(let e=0;e<n;e++)i+=t[e].length;return i}function KC(e,t,n){if(!(e.size<rw||e.has(t)))throw new QA(`Sheet "${n??"?"}" has more than 16777216 filled cells, which is the most \`Sheet.cells\` can hold — a Map caps at 2^24 entries.\n - streamXlsxRows(input) reads it a row at a time and has no such bound.\nThe file is not damaged; it is larger than this model.`)}function ZC(e,t){if(void 0===e)return!1;const n=Number(e);return!(!Number.isFinite(n)||n<=0)&&(!t.dynamicArrayCm||t.dynamicArrayCm.has(n))}function eB(e){let t=0,n=0;for(;t<e.length;){const r=e.charCodeAt(t);if(r>=65&&r<=90)n=26*n+(r-64),t++;else{if(!(r>=97&&r<=122))break;n=26*n+(r-96),t++}}n--;return{row:Number(e.slice(t))-1,col:n}}function tB(e,t){const n=Number(e??"");if(Number.isNaN(n))return t;const r=Math.trunc(n);return r<1?t:Math.min(r,16384)}function nB(e){const t=e.split(":"),n=eB(t[0]),r=t.length>1?eB(t[1]):n;return{startRow:n.row,startCol:n.col,endRow:r.row,endCol:r.col}}function rB(e,t){const n=[],r=new Map,o=[];let i,s=-1,a=-1,c=0,l=!1;t.range&&(i=nB(t.range));const u=[],f=[],d=[];let h,p,g,m,A,y,v,b,I,w=!1,x=-1,C=[],B=!1,E=!1;const F=[],k=[];let S=!1,D=!1;const N=[];let Q=!1,M=!1,T=!1,L=!1,U=!1,R="",H="",q=!1,O="",P="",z=!1,j=!1,$=!1,Y=!1,G=!1,V=!1,J=!1,W="";const _=t.maxRows??0;let X=0;const K=new Map,Z=[];let ee,te,ne,re=!1,oe=!1,ie=!1,se=!1,ae=!1,ce=!1,le=!1,ue=!1,fe=!1,de=!1,he=!1,pe=!1,ge=!1,me=!1,Ae="",ye="",ve={},be=!1,Ie="",we=!1,xe={},Ce=!1,Be="",Ee=[],Fe=!1,ke=[],Se=[],De=!1,Ne=[],Qe="",Me=!1,Te={},Le=[],Ue=!1,Re=!1,He=!1,qe="",Oe=0,Pe=0,ze="",je=-1,$e="",Ye="",Ge="",Ve=-1,Je="",We=!1,_e="",Xe=[],Ke="";const Ze={onOpenTag(e,n){const r=e.includes(":")?e.slice(e.indexOf(":")+1):e;switch(r){case"cols":re=!0;break;case"col":if(re){const e=tB(n.min,1),r=tB(n.max,0),o=n.width?Number(n.width):void 0,i="1"===n.hidden||"true"===n.hidden,s=n.outlineLevel?Number(n.outlineLevel):void 0,a="1"===n.collapsed||"true"===n.collapsed,c="1"===n.bestFit||"true"===n.bestFit,l=void 0!==n.style?Number(n.style):void 0,u=t.readStyles&&t.styles&&void 0!==l&&l>=0?Zx(t.styles,l):void 0;for(let t=e;t<=r;t++){const e=t-1;for(;Z.length<=e;)Z.push({});const n={};void 0===o||Number.isNaN(o)||(n.width=o),i&&(n.hidden=!0),void 0!==s&&!Number.isNaN(s)&&s>0&&(n.outlineLevel=s),a&&(n.collapsed=!0),c&&(n.autoWidth=!0),u&&Object.keys(u).length>0&&(n.style=sC(u)),Object.keys(n).length>0&&(Z[e]=n)}}break;case"sheetFormatPr":{const e=n.defaultRowHeight,t=n.defaultColWidth;if(void 0!==e){const t=Number(e);Number.isFinite(t)&&t>0&&15!==t&&(ee=t)}if(void 0!==t){const e=Number(t);Number.isFinite(e)&&e>0&&(te=e)}break}case"sheetData":oe=!0;break;case"row":if(oe){if(_>0&&X>=_)break;if(ie=!0,Oe=Number(n.r)||Oe+1,Pe=0,n.ht&&("1"===n.customHeight||"true"===n.customHeight)){const e=Number(n.r)-1,t=Number(n.ht);if(!Number.isNaN(e)&&!Number.isNaN(t)){const n=K.get(e)??{};n.height=t,K.set(e,n)}}if("1"===n.hidden||"true"===n.hidden){const e=Number(n.r)-1;if(!Number.isNaN(e)){const t=K.get(e)??{};t.hidden=!0,K.set(e,t)}}if(n.outlineLevel){const e=Number(n.r)-1,t=Number(n.outlineLevel);if(!Number.isNaN(e)&&!Number.isNaN(t)&&t>0){const n=K.get(e)??{};n.outlineLevel=t,K.set(e,n)}}if("1"===n.collapsed||"true"===n.collapsed){const e=Number(n.r)-1;if(!Number.isNaN(e)){const t=K.get(e)??{};t.collapsed=!0,K.set(e,t)}}}break;case"c":ie&&(se=!0,qe=n.r??"",ze=n.t??"",je=n.s?Number(n.s):-1,$e="",Ye="",Ge="",Ve=-1,Je="",We=ZC(n.cm,t),_e="",Xe=[]);break;case"v":se&&(ae=!0);break;case"f":T?(L=!0,O=""):se&&(ce=!0,Ge=n.t??"",void 0!==n.si&&(Ve=Number(n.si)),n.ref&&(Je=n.ref),void 0!==n.cm&&ZC(n.cm,t)&&(We=!0));break;case"is":se&&(le=!0);break;case"t":le&&!Ue?ue=!0:Ue&&(He=!0);break;case"r":le&&(Ue=!0,Ke="",ne=void 0);break;case"rPr":Ue&&(Re=!0,ne={});break;case"sheetPr":B=!0;break;case"outlinePr":if(B){const e={};void 0!==n.summaryBelow&&(e.summaryBelow="1"===n.summaryBelow||"true"===n.summaryBelow),void 0!==n.summaryRight&&(e.summaryRight="1"===n.summaryRight||"true"===n.summaryRight),Object.keys(e).length>0&&(m=e)}break;case"pageSetUpPr":B&&(E="1"===n.fitToPage||"true"===n.fitToPage);break;case"tabColor":B&&(g||(g={}),g.tabColor=function(e){const t={};if(e.rgb){const n=e.rgb;t.rgb=8===n.length?n.slice(2):n}e.theme&&(t.theme=Number(e.theme));e.tint&&(t.tint=Number(e.tint));e.indexed&&(t.indexed=Number(e.indexed));return t}(n));break;case"sheetView":if(!oe){if(g||(g={}),"0"!==n.showGridLines&&"false"!==n.showGridLines||(g.showGridLines=!1),"0"!==n.showRowColHeaders&&"false"!==n.showRowColHeaders||(g.showRowColHeaders=!1),n.zoomScale){const e=Number(n.zoomScale);Number.isNaN(e)||(g.zoomScale=e)}"1"!==n.rightToLeft&&"true"!==n.rightToLeft||(g.rightToLeft=!0)}break;case"pane":if(!oe){const e=n.state;if("frozen"===e||"frozenSplit"===e){const e=Number(n.xSplit||"0"),t=Number(n.ySplit||"0");(e>0||t>0)&&(A={},e>0&&(A.columns=e),t>0&&(A.rows=t))}else if("split"===e){const e=Number(n.xSplit||"0"),t=Number(n.ySplit||"0");(e>0||t>0)&&(y={},e>0&&(y.xSplit=e),t>0&&(y.ySplit=t))}}break;case"sheetProtection":p=function(e){const t={};"1"!==e.sheet&&"true"!==e.sheet||(t.sheet=!0);"1"!==e.objects&&"true"!==e.objects||(t.objects=!0);"1"!==e.scenarios&&"true"!==e.scenarios||(t.scenarios=!0);const n=[["selectLockedCells","selectLockedCells"],["selectUnlockedCells","selectUnlockedCells"],["formatCells","formatCells"],["formatColumns","formatColumns"],["formatRows","formatRows"],["insertColumns","insertColumns"],["insertRows","insertRows"],["insertHyperlinks","insertHyperlinks"],["deleteColumns","deleteColumns"],["deleteRows","deleteRows"],["sort","sort"],["autoFilter","autoFilter"],["pivotTables","pivotTables"]];for(const[r,o]of n){const n=e[r];void 0!==n&&(t[o]=!("1"===n||"true"===n))}return t}(n);break;case"autoFilter":n.ref&&(h={range:n.ref},w=!0);break;case"filterColumn":w&&void 0!==n.colId&&(x=Number(n.colId),C=[]);break;case"filter":w&&x>=0&&void 0!==n.val&&C.push(n.val);break;case"mergeCells":fe=!0;break;case"mergeCell":fe&&n.ref&&o.push(nB(n.ref));break;case"hyperlinks":de=!0;break;case"hyperlink":if(de&&n.ref){const e={ref:n.ref},t=n["r:id"]??n["R:id"];t&&(e.rId=t),n.location&&(e.location=n.location),n.tooltip&&(e.tooltip=n.tooltip),n.display&&(e.display=n.display),u.push(e)}break;case"conditionalFormatting":be=!0,Ie=n.sqref??"";break;case"cfRule":be&&(we=!0,xe={...n},Ee=[],ke=[],Se=[],Ne=[],Qe="",Le=[],Te={});break;case"colorScale":we&&(Fe=!0,ke=[],Se=[]);break;case"cfvo":Fe?ke.push({type:n.type??"min",value:n.val}):De?Ne.push({type:n.type??"min",value:n.val}):Me&&Le.push({type:n.type??"min",value:n.val});break;case"dataBar":we&&(De=!0,Ne=[],Qe="");break;case"iconSet":we&&(Me=!0,Te={...n},Le=[]);break;case"dataValidations":he=!0;break;case"dataValidation":he&&(pe=!0,ve={...n},Ae="",ye="");break;case"formula1":pe&&(ge=!0);break;case"formula2":pe&&(me=!0);break;case"pageMargins":b=function(e){const t={};e.left&&(t.left=Number(e.left));e.right&&(t.right=Number(e.right));e.top&&(t.top=Number(e.top));e.bottom&&(t.bottom=Number(e.bottom));e.header&&(t.header=Number(e.header));e.footer&&(t.footer=Number(e.footer));return t}(n);break;case"pageSetup":v={...v,...lB(n,t)};break;case"printOptions":v=function(e,t){const n=e??{},r=e=>"1"===e||"true"===e;r(t.gridLines)&&(n.showGridLines=!0);r(t.headings)&&(n.showRowColHeaders=!0);r(t.horizontalCentered)&&(n.horizontalCentered=!0);r(t.verticalCentered)&&(n.verticalCentered=!0);return n}(v,n);break;case"headerFooter":z=!0,I={},"1"!==n.differentOddEven&&"true"!==n.differentOddEven||(I.differentOddEven=!0),"1"!==n.differentFirst&&"true"!==n.differentFirst||(I.differentFirst=!0);break;case"oddHeader":z&&(j=!0,W="");break;case"oddFooter":z&&($=!0,W="");break;case"evenHeader":z&&(Y=!0,W="");break;case"evenFooter":z&&(G=!0,W="");break;case"firstHeader":z&&(V=!0,W="");break;case"firstFooter":z&&(J=!0,W="");break;case"rowBreaks":S=!0;break;case"colBreaks":D=!0;break;case"brk":if(S||D){const e=n.id;if(e){const t=Number(e)-1;S?F.push(t):k.push(t)}}break;case"color":Fe?Se.push(n.rgb??""):De?Qe=n.rgb??"":Re&&ne&&cB(ne,r,n);break;case"formula":we&&!pe&&(Ce=!0,Be="");break;case"sparklineGroups":Q=!0;break;case"sparklineGroup":Q&&(M=!0,R=n.type??"line",H="",q="1"===n.markers||"true"===n.markers);break;case"colorSeries":if(M){const e=n.rgb??"";H=8===e.length?e.slice(2):e}break;case"sparkline":M&&(T=!0,O="",P="");break;default:if(T&&"sqref"===r){U=!0,P="";break}Re&&ne&&cB(ne,r,n)}},onText(e){ae?$e+=e:ce?Ye+=e:Ce?Be+=e:ue?_e+=e:He?Ke+=e:ge?Ae+=e:me?ye+=e:j||$||Y||G||V||J?W+=e:L?O+=e:U&&(P+=e)},onCloseTag(e){const o=e.includes(":")?e.slice(e.indexOf(":")+1):e;switch(o){case"cols":re=!1;break;case"sheetData":oe=!1;break;case"row":ie&&X++,ie=!1;break;case"c":if(se){const e=qe?eB(qe).row:Oe-1,o=qe?eB(qe).col:Pe;Pe=o+1;let u=!1;i&&(e<i.startRow||e>i.endRow||o<i.startCol||o>i.endCol)&&(u=!0);const f=""!==$e||""!==_e||Xe.length>0||""!==Ye||"e"===ze||"inlineStr"===ze||t.readStyles&&je>=0||!!(t.styles&&je>=0)&&(t.styles.cellXfs[je]?.hasCheckboxFeature??!1);!u&&f&&(!function(e,t,n,r,o,i,s,a,c,l,u,f,d,h,p,g){const m=""!==e?eB(e):void 0!==p&&void 0!==g?{row:p,col:g}:null;if(!m)return;const{row:A,col:y}=m;if(A>tw||y>nw)throw new QA(`Cell reference "${e}" is outside the supported sheet bounds (max row 1048576, max col 16384)`);if(!Number.isInteger(A)||!Number.isInteger(y)||A<0||y<0)return void a.onWarning?.({code:"malformed-cell-ref",message:`Cell reference "${e}" is not a cell reference — a column needs a row number and rows are 1-based. The cell is dropped; the rest of the sheet is read.`,sheet:a.sheetName});if(!a.sparse){for(;c.length<=A;)c.push([]);for(;c[A].length<=y;)c[A].push(null)}let v,b,I,w=null,x="empty";o?v=o:"shared"===u&&void 0!==f&&f>=0&&(v="");switch(t){case"s":{const t=Number(r);if(!Number.isNaN(t)&&t>=0&&t<a.sharedStrings.length){const e=a.sharedStrings[t];w=e.text,e.richText&&e.richText.length>0?(I=e.richText,x="richText"):x="string"}else a.onWarning?.({code:"unresolved-shared-string",message:`Cell ${e||`${A},${y}`} points at shared string ${r}, which the file does not have (${a.sharedStrings.length} present). Read as empty.`,sheet:a.sheetName,row:A,col:y}),w=null,x="empty";break}case"str":w=$A(r),x=v?"formula":"string",v&&(b=w);break;case"inlineStr":s&&s.length>0?(w=s.map(e=>e.text).join(""),I=s,x="richText"):(w=$A(i),x="string");break;case"b":w="1"===r||"true"===r.toLowerCase(),x=v?"formula":"boolean",v&&(b=w);break;case"e":w=r,x=v?"formula":"error",v&&(b=w);break;case"d":{const e=function(e){const t=e.trim();if(!/^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:?\d{2})?)?$/.test(t))return;const n=/(?:Z|[+-]\d{2}:?\d{2})$/.test(t),r=/[T ]\d{2}:/.test(t),o=t.replace(" ","T"),i=new Date(r&&!n?`${o}Z`:o);return Number.isNaN(i.getTime())?void 0:i}(r);e?(w=e,x="date"):""!==r?(w=r,x="string"):(w=null,x="empty"),v&&(b=w,x="formula");break}default:{if(""===r&&!v){w=null,x="empty";break}const e=Number(r);Number.isNaN(e)||""===r?""!==r&&(w=r,x="string"):a.styles&&n>=0&&eC(a.styles,n)?(w=function(e,t){if(t){const t=vx+Math.round(e*bx);return new Date(t)}if(60===e)return new Date(Date.UTC(1900,1,28));let n=e;e>60&&(n=e-1);const r=yx+Math.round(n*bx);return new Date(r)}(e,"1904"===a.dateSystem),x="date"):(w=e,x="number"),v&&(b=w,x="formula");break}}a.sparse||(c[A][y]=w);const C=!!(a.styles&&n>=0)&&(a.styles.cellXfs[n]?.hasCheckboxFeature??!1),B=a.sparse||void 0!==v||void 0!==I||a.readStyles&&a.styles&&n>=0||C||"error"===x||"formula"===x||"richText"===x;if(B){const t={value:w,type:x};if(C&&(t.checkbox=!0),void 0!==v&&(t.formula=v,void 0!==b&&(t.formulaResult=b),"shared"===u?(t.formulaType="shared",void 0!==f&&f>=0&&(t.formulaSharedIndex=f),d&&(t.formulaRef=d)):"array"===u&&(t.formulaType="array",d&&(t.formulaRef=d)),h&&(t.formulaDynamic=!0)),I&&(t.richText=I),a.readStyles&&a.styles&&n>=0){const r=Zx(a.styles,n);Object.keys(r).length>0?t.style=r:n>=a.styles.cellXfs.length&&a.onWarning?.({code:"unresolved-style",message:`Cell ${e||`${A},${y}`} points at cell format ${n}, which the file does not have (${a.styles.cellXfs.length} present). Read unstyled.`,sheet:a.sheetName,row:A,col:y})}const r=`${A},${y}`;KC(l,r,a.sheetName),l.set(r,t)}}(qe,ze,je,$e,Ye,_e,Xe.length>0?Xe:void 0,t,n,r,Ge,Ve,Je,We,e,o),e>=0&&o>=0&&(o>s&&(s=o),e>a&&(a=e),l=!0,c++)),se=!1}break;case"v":ae=!1;break;case"f":L?L=!1:ce=!1;break;case"is":le=!1;break;case"t":He?He=!1:ue&&(ue=!1);break;case"r":if(Ue){const e=$A(Ke);Xe.push(ne?{text:e,font:ne}:{text:e}),Ue=!1}break;case"rPr":Re=!1;break;case"sheetPr":B=!1;break;case"mergeCells":fe=!1;break;case"autoFilter":w=!1;break;case"filterColumn":w&&h&&x>=0&&C.length>0&&(h.columns||(h.columns=[]),h.columns.push({colIndex:x,filters:C})),x=-1,C=[];break;case"hyperlinks":de=!1;break;case"conditionalFormatting":be=!1;break;case"cfRule":if(we){const e=function(e,t,n,r,o,i,s,a,c,l,u){const f=e.type;if(!f||!aB.has(f))return null;if(!t)return null;const d={type:f,priority:Number(e.priority??"1"),range:t},h=e.operator;h&&sB.has(h)&&(d.operator=h);const p=Number(e.dxfId);if(l&&!Number.isNaN(p)){const e=l[p];e&&Object.keys(e).length>0?d.style=e:e||u?.onWarning?.({code:"unresolved-dxf",message:`Conditional rule on ${t} asks for differential format ${p}, which the file does not have (${l.length} present). The rule keeps its condition and loses its formatting.`,sheet:u.sheetName})}"1"!==e.stopIfTrue&&"true"!==e.stopIfTrue||(d.stopIfTrue=!0);void 0!==e.text&&(d.text=e.text);1===n.length?d.formula=n[0]:n.length>1&&(d.formula=n);"colorScale"===f&&r.length>0&&(d.colorScale={cfvo:r.map(e=>({type:e.type,value:e.value})),colors:o});"dataBar"===f&&i.length>0&&(d.dataBar={cfvo:i.map(e=>({type:e.type,value:e.value})),color:s});"iconSet"===f&&a.length>0&&(d.iconSet={iconSet:c.iconSet??"3TrafficLights1",cfvo:a.map(e=>({type:e.type,value:e.value}))},"1"!==c.reverse&&"true"!==c.reverse||(d.iconSet.reverse=!0),"0"!==c.showValue&&"false"!==c.showValue||(d.iconSet.showValue=!1));return d}(xe,Ie,Ee,ke,Se,Ne,Qe,Le,Te,t.styles?.dxfs,t);e&&d.push(e),we=!1}break;case"colorScale":Fe=!1;break;case"dataBar":we&&(De=!1);break;case"iconSet":Me=!1;break;case"formula":Ce&&(Ee.push(Be),Ce=!1);break;case"dataValidations":he=!1;break;case"dataValidation":if(pe){const e=function(e,t,n){const r=e.type;if(!r||!iB.has(r))return null;const o=e.sqref;if(!o)return null;const i={type:r,range:o},s=e.operator;s&&sB.has(s)&&(i.operator=s);"1"!==e.allowBlank&&"true"!==e.allowBlank||(i.allowBlank=!0);"1"!==e.showInputMessage&&"true"!==e.showInputMessage||(i.showInputMessage=!0);"1"!==e.showErrorMessage&&"true"!==e.showErrorMessage||(i.showErrorMessage=!0);const a=e.errorStyle;"stop"!==a&&"warning"!==a&&"information"!==a||(i.errorStyle=a);e.promptTitle&&(i.inputTitle=e.promptTitle);e.prompt&&(i.inputMessage=e.prompt);e.errorTitle&&(i.errorTitle=e.errorTitle);e.error&&(i.errorMessage=e.error);if(t)if("list"===r){const e=t.trim();if(e.startsWith('"')&&e.endsWith('"')){const t=e.slice(1,-1);i.values=t.split(",")}else i.formula1=t}else i.formula1=t;n&&(i.formula2=n);return i}(ve,Ae,ye);e&&f.push(e),pe=!1}break;case"formula1":ge=!1;break;case"formula2":me=!1;break;case"headerFooter":z=!1;break;case"oddHeader":j&&I&&(I.oddHeader=W,j=!1);break;case"oddFooter":$&&I&&(I.oddFooter=W,$=!1);break;case"evenHeader":Y&&I&&(I.evenHeader=W,Y=!1);break;case"evenFooter":G&&I&&(I.evenFooter=W,G=!1);break;case"firstHeader":V&&I&&(I.firstHeader=W,V=!1);break;case"firstFooter":J&&I&&(I.firstFooter=W,J=!1);break;case"rowBreaks":S=!1;break;case"colBreaks":D=!1;break;case"sparklineGroups":Q=!1;break;case"sparklineGroup":M=!1;break;case"sparkline":if(T&&P){const e={location:P,dataRange:O};R&&"line"!==R&&(e.type=R),H&&(e.color=H),q&&(e.markers=!0),N.push(e)}T=!1;break;default:if(T&&"sqref"===o){U=!1;break}}}};return{handlers:Ze,finish:function(){if(l&&!t.sparse){const r=s+1,o=(a+1)*r,i=t.maxTotalCells??2e7;if(o>i)throw new QA(function(e,t,n,r,o,i){const s=o<=rw;return`Sheet "${e}" spans ${t} rows x ${n} columns (${r} cells, ${(r>0?100*o/r:100).toFixed(2)}% of them filled), over the ${i} limit.\n - streamXlsxRows(input) reads it a row at a time, whatever the box.\n`+(s?" - readXlsx(input, { sparse: true }) returns the cells and no grid.\n":` - \`sparse: true\` cannot help here: ${o} filled cells is past the 16777216 a Map can hold.\n`)+" - `range` or `maxRows` bound the area, if you know where the data is.\n - `maxTotalCells` raises the bound, if the sheet really is this large."}(e,a+1,r,o,c,i));for(let e=0;e<=a;e++)if(n[e])for(;n[e].length<r;)n[e].push(null);else n[e]=Array.from({length:r},()=>null)}const i=new Map;if(t.worksheetRels)for(const e of t.worksheetRels)i.set(e.id,e.target);for(const o of u){const s=eB(o.ref),a=`${s.row},${s.col}`;let c=r.get(a);c||(c={value:(n[s.row]&&n[s.row][s.col])??null,type:"string"},KC(r,a,e),r.set(a,c));const l={target:""};if(o.location)l.location=o.location,l.target=o.location;else if(o.rId){const e=i.get(o.rId);e?l.target=e:t.onWarning?.({code:"unresolved-hyperlink",message:`Cell ${o.ref} links through ${o.rId}, which the sheet's relationships do not define. Read with an empty target.`,sheet:t.sheetName,row:s.row,col:s.col})}o.tooltip&&(l.tooltip=o.tooltip),o.display&&(l.display=o.display),c.hyperlink=l}const w={name:e,rows:n};if(r.size>0&&(w.cells=r),void 0!==ee&&(w.defaultRowHeight=ee),void 0!==te&&(w.defaultColWidth=te),Z.some(e=>Object.keys(e).length>0)&&(w.columns=Z),o.length>0&&(w.merges=o),f.length>0&&(w.dataValidations=f),d.length>0&&(w.conditionalRules=d),h&&(w.autoFilter=h),A&&(w.freezePane=A),y&&(w.splitPane=y),p&&(w.protection=p),g&&Object.keys(g).length>0&&(w.view=g),v||b||E){const e=v??{};b&&(e.margins=b),E&&(e.fitToPage=!0),w.pageSetup=e}return I&&Object.keys(I).length>0&&(w.headerFooter=I),F.length>0&&(w.rowBreaks=F.sort((e,t)=>e-t)),k.length>0&&(w.colBreaks=k.sort((e,t)=>e-t)),K.size>0&&(w.rowDefs=K),N.length>0&&(w.sparklines=N),m&&(w.outlineProperties=m),w}}}async function oB(e,t,n){const{handlers:r,finish:o}=rB(t,n);return await async function(e,t,n){const r=n?.strict??!1,o=e.getReader(),i=new TextDecoder("utf-8");let s="",a=!1;try{for(;;){const{done:e,value:n}=await o.read();if(e)break;s+=i.decode(n,{stream:!0}),a||(65279===s.charCodeAt(0)&&(s=s.slice(1)),a=!0),s=KA(s,t,!1,r)}s+=i.decode(),s.length>0&&KA(s,t,!0,r)}finally{try{await o.cancel()}catch{}try{o.releaseLock()}catch{}}}(e,r,{strict:!0}),o()}const iB=new Set(["list","whole","decimal","date","time","textLength","custom"]),sB=new Set(["between","notBetween","equal","notEqual","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"]);const aB=new Set(["cellIs","expression","colorScale","dataBar","iconSet","top10","aboveAverage","duplicateValues","uniqueValues","containsText","notContainsText","beginsWith","endsWith","containsBlanks","notContainsBlanks"]);function cB(e,t,n){switch(t){case"b":e.bold="0"!==n.val&&"false"!==n.val;break;case"i":e.italic="0"!==n.val&&"false"!==n.val;break;case"u":{const t=n.val;e.underline="double"!==t||"double";break}case"strike":e.strikethrough="0"!==n.val&&"false"!==n.val;break;case"sz":n.val&&(e.size=Number(n.val));break;case"rFont":n.val&&(e.name=n.val);break;case"color":if(e.color={},n.rgb){const t=n.rgb;e.color.rgb=8===t.length?t.slice(2):t}n.theme&&(e.color.theme=Number(n.theme)),n.tint&&(e.color.tint=Number(n.tint)),n.indexed&&(e.color.indexed=Number(n.indexed));break;case"vertAlign":"superscript"!==n.val&&"subscript"!==n.val||(e.vertAlign=n.val);break;case"family":n.val&&(e.family=Number(n.val));break;case"charset":n.val&&(e.charset=Number(n.val));break;case"scheme":"major"!==n.val&&"minor"!==n.val&&"none"!==n.val||(e.scheme=n.val)}}function lB(e,t){const n={};if(e.paperSize){const r=Number(e.paperSize);Number.isInteger(r)&&r>0?n.paperSize=zC[r]??r:t?.onWarning?.({code:"unusable-paper-size",message:`Page setup names paper size "${e.paperSize}", which is not a positive integer code. Dropped; the sheet reads with no paper size set.`,sheet:t.sheetName})}"landscape"!==e.orientation&&"portrait"!==e.orientation||(n.orientation=e.orientation),e.scale&&(n.scale=Number(e.scale)),void 0===e.fitToWidth&&void 0===e.fitToHeight||(n.fitToPage=!0,e.fitToWidth&&(n.fitToWidth=Number(e.fitToWidth)),e.fitToHeight&&(n.fitToHeight=Number(e.fitToHeight))),"1"!==e.horizontalCentered&&"true"!==e.horizontalCentered||(n.horizontalCentered=!0),"1"!==e.verticalCentered&&"true"!==e.verticalCentered||(n.verticalCentered=!0),e.paperWidth&&(n.paperWidth=e.paperWidth),e.paperHeight&&(n.paperHeight=e.paperHeight);const r=fB(e.firstPageNumber);void 0!==r&&(n.firstPageNumber=r),void 0!==e.useFirstPageNumber&&(n.useFirstPageNumber=uB(e.useFirstPageNumber)),"overThenDown"!==e.pageOrder&&"downThenOver"!==e.pageOrder||(n.pageOrder=e.pageOrder),uB(e.blackAndWhite)&&(n.blackAndWhite=!0),uB(e.draft)&&(n.draft=!0);const o=e.cellComments;"none"!==o&&"asDisplayed"!==o&&"atEnd"!==o||(n.cellComments=o);const i=e.errors;"displayed"!==i&&"blank"!==i&&"dash"!==i&&"NA"!==i||(n.errors=i);const s=fB(e.copies);void 0!==s&&(n.copies=s);const a=fB(e.horizontalDpi);void 0!==a&&(n.horizontalDpi=a);const c=fB(e.verticalDpi);return void 0!==c&&(n.verticalDpi=c),void 0!==e.usePrinterDefaults&&(n.usePrinterDefaults=uB(e.usePrinterDefaults)),n}function uB(e){return"1"===e||"true"===e}function fB(e){if(void 0===e)return;const t=Number(e);return Number.isInteger(t)&&t>=0?t:void 0}function dB(e){const t=new Map,n=[];let r=!1,o=!1,i=!1,s=!1,a=!1,c=!1,l="",u="",f=-1,d="";return VA(e,{onOpenTag(e,t){switch(e.includes(":")?e.slice(e.indexOf(":")+1):e){case"authors":r=!0;break;case"author":r&&(o=!0,l="");break;case"commentList":i=!0;break;case"comment":i&&(s=!0,u=t.ref??"",f=t.authorId?Number(t.authorId):-1,d="");break;case"text":s&&(a=!0);break;case"r":break;case"t":a&&(c=!0)}},onText(e){o?l+=e:c&&(d+=e)},onCloseTag(e){switch(e.includes(":")?e.slice(e.indexOf(":")+1):e){case"authors":r=!1;break;case"author":o&&(n.push(l),o=!1);break;case"commentList":i=!1;break;case"comment":if(s&&u){const e={text:d};if(f>=0&&f<n.length){const t=n[f];t&&(e.author=t)}t.set(u,e),s=!1}break;case"text":a=!1;break;case"r":break;case"t":c=!1}}}),t}function hB(e,t){for(const n of e.children){if("string"==typeof n)continue;if((n.local||n.tag)===t){return n.children.filter(e=>"string"==typeof e).join("")||void 0}}}function pB(e){if(e)return function(e){const t=e.trim(),n=t.indexOf("T"),r=n>=0&&/(?:Z|[+-]\d{2}:?\d{2})$/.test(t.slice(n+1)),o=new Date(n>=0&&!r?`${t}Z`:t);return Number.isNaN(o.getTime())?void 0:o}(e)}const gB=["dk1","lt1","dk2","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function mB(e,t){return e===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/${t}`||e===`http://purl.oclc.org/ooxml/officeDocument/relationships/${t}`||e.endsWith("/"+t)}function AB(e,t="(unknown)"){return OA(e,t)}async function yB(e,t,n,r){const o=e.declaredSize(t);if(void 0===o||o<=HA)try{return function(e,t,n){const{handlers:r,finish:o}=rB(t,n);return VA(e,r),o()}(AB(await e.extract(t),t),n,r)}catch(e){if(!function(e){return e instanceof qA}(e))throw e}return oB(e.extractStream(t),n,r)}async function vB(e,t){let n,r=await iw(e,t?.maxInputBytes);if(function(e){if(e.length<ow.length)return!1;for(let t=0;t<ow.length;t++)if(e[t]!==ow[t])return!1;return!0}(r)){if(!t?.password)throw new UA("xlsx");r=await Iw(r,t.password,t.maxSpinCount)}try{n=new px(r,t?.maxDecompressedBytes)}catch(e){if(e instanceof MA)throw e;throw new QA("Failed to open XLSX file: not a valid ZIP archive",void 0,{cause:e})}if(!n.has("[Content_Types].xml"))throw new QA("Invalid XLSX: missing [Content_Types].xml");if(function(e){const t=ZA(e),n=new Map,r=new Map;for(const e of t.children){if("string"==typeof e)continue;const t=e.local||e.tag;if("Default"===t){const t=e.attrs.Extension,r=e.attrs.ContentType;t&&r&&n.set(t,r)}else if("Override"===t){const t=e.attrs.PartName,n=e.attrs.ContentType;t&&n&&r.set(t,n)}}}(AB(await n.extract("[Content_Types].xml"),"[Content_Types].xml")),!n.has("_rels/.rels"))throw new QA("Invalid XLSX: missing _rels/.rels");const o=sy(AB(await n.extract("_rels/.rels"),"_rels/.rels")).find(e=>mB(e.type,"officeDocument"));if(!o)throw new QA("Invalid XLSX: cannot find workbook relationship in _rels/.rels");const i=o.target.startsWith("/")?o.target.slice(1):o.target,s=cy(i),a=s?`${s}/_rels/${i.slice(s.length+1)}.rels`:`_rels/${i}.rels`;let c=[];if(n.has(a)){c=sy(AB(await n.extract(a),a))}if(!n.has(i))throw new QA(`Invalid XLSX: missing workbook at ${i}`);const l=AB(await n.extract(i),i),{sheets:u,dateSystem:f,namedRanges:d,workbookProtection:h,activeSheet:p,pivotCacheRefs:g}=function(e,t){const n=ZA(e),r=[],o=[],i=[];let s,a,c="1900";"1904"===t?.dateSystem?c="1904":"1900"===t?.dateSystem&&(c="1900");for(const e of n.children){if("string"==typeof e)continue;const n=e.local||e.tag;if("workbookPr"===n&&("1"!==e.attrs.date1904&&"true"!==e.attrs.date1904||t?.dateSystem&&"auto"!==t.dateSystem||(c="1904")),"workbookProtection"===n){const t="1"===e.attrs.lockStructure||"true"===e.attrs.lockStructure,n="1"===e.attrs.lockWindows||"true"===e.attrs.lockWindows;(t||n)&&(s={},t&&(s.lockStructure=!0),n&&(s.lockWindows=!0))}if("bookViews"===n)for(const t of e.children){if("string"==typeof t)continue;if("workbookView"!==(t.local||t.tag))continue;const e=Number(t.attrs.activeTab);Number.isInteger(e)&&e>0&&void 0===a&&(a=e)}if("sheets"===n)for(const t of e.children){if("string"==typeof t)continue;if("sheet"===(t.local||t.tag)){const e=t.attrs.name??"",n=Number(t.attrs.sheetId??"0"),o=t.attrs["r:id"]??t.attrs["R:id"]??ly(t.attrs)??"",i=t.attrs.state;let s="visible";"hidden"===i?s="hidden":"veryHidden"===i&&(s="veryHidden"),e&&o&&r.push({name:e,sheetId:n,rId:o,state:s})}}if("pivotCaches"===n)for(const t of e.children){if("string"==typeof t)continue;if("pivotCache"===(t.local||t.tag)){const e=t.attrs.cacheId,n=void 0===e?NaN:Number(e),r=t.attrs["r:id"]??t.attrs["R:id"]??ly(t.attrs)??"";r&&!Number.isNaN(n)&&i.push({cacheId:n,rId:r})}}}for(const e of n.children){if("string"==typeof e)continue;if("definedNames"===(e.local||e.tag))for(const t of e.children){if("string"==typeof t)continue;if("definedName"===(t.local||t.tag)){const e=t.attrs.name??"",n=t.children.filter(e=>"string"==typeof e).join("");if(e&&n){const i={name:e,range:n},s=t.attrs.localSheetId;if(void 0!==s){const e=Number(s);e>=0&&e<r.length&&(i.scope=r[e].name)}t.attrs.comment&&(i.comment=t.attrs.comment),o.push(i)}}}}return{sheets:r,dateSystem:c,namedRanges:o,workbookProtection:s,activeSheet:a,pivotCacheRefs:i}}(l,t);let m=[];const A=c.find(e=>mB(e.type,"sharedStrings"));if(A){const e=ay(s,A.target);if(n.has(e)){m=function(e){const t=ZA(e),n=[];for(const e of t.children)"string"!=typeof e&&"si"===(e.local||e.tag)&&n.push(gx(e));return n}(AB(await n.extract(e),e))}}let y=null;const v=c.find(e=>mB(e.type,"styles"));if(v){const e=ay(s,v.target);if(n.has(e)){y=Mx(AB(await n.extract(e),e))}}let b;const I=s?`${s}/theme/theme1.xml`:"theme/theme1.xml";if(n.has(I)){b=function(e){const t=new Map;let n=!1,r="";return VA(e,{onOpenTag(e,o){if("clrScheme"===e||"a:clrScheme"===e)return void(n=!0);if(!n)return;const i=e.includes(":")?e.split(":").pop():e;gB.includes(i)?r=i:r&&("srgbClr"===i&&o.val?t.set(r,o.val.toUpperCase()):"sysClr"===i&&o.lastClr&&t.set(r,o.lastClr.toUpperCase()))},onCloseTag(e){const t=e.includes(":")?e.split(":").pop():e;"clrScheme"===t&&(n=!1),r&&gB.includes(t)&&(r="")}}),gB.map(e=>t.get(e)??"000000")}(AB(await n.extract(I),I))}let w;const x=c.find(e=>mB(e.type,"person"));if(x){const e=ay(s,x.target);if(n.has(e)){w=function(e){const t=ZA(e),n=[];for(const e of ty(t)){if("person"!==e.local)continue;const t=e.attrs.id,r=e.attrs.displayName;if(!t||void 0===r)continue;const o={id:t,displayName:r};e.attrs.userId&&(o.userId=e.attrs.userId),e.attrs.providerId&&(o.providerId=e.attrs.providerId),n.push(o)}return n}(AB(await n.extract(e),e))}}const C=c.filter(e=>mB(e.type,"externalLink")).sort((e,t)=>IB(e.id)-IB(t.id)),B=[];for(const e of C){const t=ay(s,e.target);if(!n.has(t))continue;const r=AB(await n.extract(t),t),o=wB(t),i=n.has(o)?AB(await n.extract(o),o):void 0;B.push(fy(r,i))}let E;const F=c.find(e=>"http://www.wps.cn/officeDocument/2017/relationships/cellimage"===e.type);if(F){const e=ay(s,F.target);if(n.has(e)){const t=function(e){const t=ZA(e),n=[];for(const e of ty(t)){if("cellImage"!==e.local)continue;const t=hy(e);t&&n.push(t)}return n}(AB(await n.extract(e),e)),r=wB(e),o=cy(e),i=new Map;if(n.has(r)){const e=AB(await n.extract(r),r);for(const t of sy(e)){if(!mB(t.type,"image"))continue;const e=ay(o,t.target);if(!n.has(e))continue;const r=e.split(".").pop()?.toLowerCase()??"",s=xB[r];s&&i.set(t.id,{data:await n.extract(e),type:s})}}const s=function(e,t){const n=[],r=new Set;for(const o of e){if(r.has(o.id))continue;const e=t.get(o.embedRId);if(!e)continue;const i={id:o.id,data:e.data,type:e.type};o.description&&(i.description=o.description),n.push(i),r.add(o.id)}return n}(t,i);s.length>0&&(E=s)}}const k=new Map,S=new Map;for(const e of g){const t=c.find(t=>t.id===e.rId);if(!t)continue;const r=ay(s,t.target);if(!n.has(r))continue;const o=py(AB(await n.extract(r),r));if(!o)continue;o.cacheId=e.cacheId;const i=wB(r);if(n.has(i)){sy(AB(await n.extract(i),i)).some(e=>mB(e.type,"pivotCacheRecords"))&&(o.hasRecords=!0)}k.set(e.cacheId,o),S.set(e.rId,o)}const D=g.map(e=>k.get(e.cacheId)).filter(e=>void 0!==e),N=c.filter(e=>mB(e.type,"slicerCache")).sort((e,t)=>bB(e.target)-bB(t.target)),Q=[];for(const e of N){const t=ay(s,e.target);if(!n.has(t))continue;const r=vy(AB(await n.extract(t),t));r&&Q.push(r)}const M=c.filter(e=>mB(e.type,"timelineCache")).sort((e,t)=>bB(e.target)-bB(t.target)),T=[];for(const e of M){const t=ay(s,e.target);if(!n.has(t))continue;const r=Iy(AB(await n.extract(t),t));r&&T.push(r)}let L;const U=c.find(e=>mB(e.type,"sheetMetadata"));if(U){const e=ay(s,U.target);n.has(e)&&(L=function(e){const t=new Set,n=ZA(e),r="metadata"===n.local?n:ey(n,"metadata");if(!r)return t;const o=[],i=ey(r,"metadataTypes");if(i)for(const e of ty(i))"metadataType"===e.local&&o.push(e.attrs.name??"");const s=new Map;for(const e of ty(r)){if("futureMetadata"!==e.local)continue;const t=e.attrs.name??"",n=s.get(t)??[];for(const t of ty(e))"bk"===t.local&&n.push(vC(t));s.set(t,n)}const a=ey(r,"cellMetadata");if(!a)return t;let c=0;for(const e of ty(a))if("bk"===e.local){c++;for(const n of ty(e)){if("rc"!==n.local)continue;if(o[oy(n.attrs.t,0)-1]!==mC)continue;const e=s.get(mC),r=oy(n.attrs.v,-1);(!e||r<0||r>=e.length||e[r])&&t.add(c)}}return t}(AB(await n.extract(e),e)))}const R=new Map,H=new Map;for(const e of c)mB(e.type,"worksheet")?R.set(e.id,ay(s,e.target)):mB(e.type,"chartsheet")?H.set(e.id,"chartsheet"):mB(e.type,"dialogsheet")&&H.set(e.id,"dialogsheet");const q=function(e,t){if(void 0===t)return e;if("function"==typeof t){const n=[];for(let r=0;r<e.length;r++){const o=e[r];t({name:o.name,index:r,hidden:"hidden"===o.state,veryHidden:"veryHidden"===o.state},r)&&n.push(o)}return n}if(0===t.length)return e;const n=[];for(const r of t)if("number"==typeof r)r>=0&&r<e.length&&n.push(e[r]);else{const t=e.find(e=>e.name===r);t&&n.push(t)}return n}(u,t?.sheets),O=t?.readStyles??!1,P=[];for(const e of q){const r=H.get(e.rId);if(void 0!==r){const t={name:e.name,rows:[],kind:r};"hidden"===e.state&&(t.hidden=!0),"veryHidden"===e.state&&(t.veryHidden=!0),P.push(t);continue}const o=R.get(e.rId);if(!o||!n.has(o))throw new QA(`Invalid XLSX: missing worksheet file for sheet "${e.name}"`);const i=cy(o),a=wB(o);let l;if(n.has(a)){l=sy(AB(await n.extract(a),a))}const u={sharedStrings:m,styles:y,readStyles:O,dateSystem:f,worksheetRels:l,maxRows:t?.maxRows,range:t?.range,maxTotalCells:t?.maxTotalCells,sparse:t?.sparse,dynamicArrayCm:L,sheetName:e.name,onWarning:t?.onWarning},d=await yB(n,o,e.name,u);if("hidden"===e.state&&(d.hidden=!0),"veryHidden"===e.state&&(d.veryHidden=!0),l){const e=l.find(e=>mB(e.type,"drawing"));if(e){const t=ay(i,e.target),r=await CB(n,t);if(r.images.length>0&&(d.images=r.images),r.textBoxes.length>0&&(d.textBoxes=r.textBoxes),r.chartRefs.length>0){const e=[];for(const t of r.chartRefs){if(!n.has(t.path))continue;const r=KI(AB(await n.extract(t.path),t.path));r&&(t.anchor&&(r.anchor=t.anchor),t.altText&&(r.altText=t.altText),t.frameTitle&&(r.frameTitle=t.frameTitle),e.push(r))}e.length>0&&(d.charts=e)}}}if(l){const e=l.find(e=>mB(e.type,"comments"));if(e){const t=ay(i,e.target);if(n.has(t)){const e=dB(AB(await n.extract(t),t));if(e.size>0){d.cells||(d.cells=new Map);for(const[t,n]of e){const e=eB(t),r=`${e.row},${e.col}`;let o=d.cells.get(r);o||(o={value:(d.rows[e.row]&&d.rows[e.row][e.col])??null,type:"string"},d.cells.set(r,o)),o.comment=n}}}}const t=l.find(e=>mB(e.type,"threadedComment"));if(t){const e=ay(i,t.target);if(n.has(e)){const t=iy(AB(await n.extract(e),e));t.length>0&&(d.threadedComments=t)}}}if(l){const e=l.filter(e=>mB(e.type,"table"));if(e.length>0){const t=[];for(const r of e){const e=ay(i,r.target);if(n.has(e)){const r=qB(AB(await n.extract(e),e));r&&t.push(r)}}t.length>0&&(d.tables=t)}}if(l){const e=l.find(e=>mB(e.type,"image"));if(e){const t=ay(i,e.target);n.has(t)&&(d.backgroundImage=await n.extract(t))}}if(l){const e=l.filter(e=>mB(e.type,"pivotTable"));if(e.length>0){const t=[];for(const r of e){const e=ay(i,r.target);if(!n.has(e))continue;const o=gy(AB(await n.extract(e),e));if(!o)continue;const a=wB(e);if(n.has(a)){const t=sy(AB(await n.extract(a),a)).find(e=>mB(e.type,"pivotCacheDefinition"));if(t){const n=ay(cy(e),t.target);for(const e of g){const t=c.find(t=>t.id===e.rId);if(!t)continue;if(ay(s,t.target)===n){o.cacheId=e.cacheId;break}}}}const l=k.get(o.cacheId);l&&my(o,l),t.push(o)}t.length>0&&(d.pivotTables=t)}const t=l.filter(e=>mB(e.type,"slicer"));if(t.length>0){const e=[];for(const r of t){const t=ay(i,r.target);if(!n.has(t))continue;const o=AB(await n.extract(t),t);for(const t of yy(o))e.push(t)}e.length>0&&(d.slicers=e)}const r=l.filter(e=>mB(e.type,"timeline"));if(r.length>0){const e=[];for(const t of r){const r=ay(i,t.target);if(!n.has(r))continue;const o=AB(await n.extract(r),r);for(const t of by(o))e.push(t)}e.length>0&&(d.timelines=e)}}P.push(d)}let z;if(n.has("docProps/core.xml")){const e=function(e){const t=ZA(e),n={};for(const e of t.children){if("string"==typeof e)continue;const t=e.local||e.tag,r=e.children.filter(e=>"string"==typeof e).join("");switch(t){case"title":r&&(n.title=r);break;case"subject":r&&(n.subject=r);break;case"creator":r&&(n.creator=r);break;case"keywords":r&&(n.keywords=r);break;case"description":r&&(n.description=r);break;case"lastModifiedBy":r&&(n.lastModifiedBy=r);break;case"category":r&&(n.category=r);break;case"created":if(r){const e=pB(r);e&&(n.created=e)}break;case"modified":if(r){const e=pB(r);e&&(n.modified=e)}}}return n}(AB(await n.extract("docProps/core.xml"),"docProps/core.xml"));Object.keys(e).length>0&&(z={...e})}if(n.has("docProps/app.xml")){const e=function(e){const t=ZA(e),n={},r=hB(t,"Company");r&&(n.company=r);const o=hB(t,"Manager");return o&&(n.manager=o),n}(AB(await n.extract("docProps/app.xml"),"docProps/app.xml"));Object.keys(e).length>0&&(z={...z,...e})}if(n.has("docProps/custom.xml")){const e=function(e){const t=ZA(e),n={};for(const e of t.children){if("string"==typeof e)continue;if("property"!==(e.local||e.tag))continue;const t=e.attrs.name;if(t)for(const r of e.children){if("string"==typeof r)continue;const e=r.local||r.tag,o=r.children.filter(e=>"string"==typeof e).join("");switch(e){case"lpwstr":n[t]=o;break;case"i4":case"i8":case"int":o&&(n[t]=parseInt(o,10));break;case"r8":case"decimal":o&&(n[t]=parseFloat(o));break;case"bool":n[t]="true"===o||"1"===o;break;case"filetime":case"date":if(o){const e=new Date(o);Number.isNaN(e.getTime())||(n[t]=e)}}break}}return n}(AB(await n.extract("docProps/custom.xml"),"docProps/custom.xml"));Object.keys(e).length>0&&(z||(z={}),z.custom=e)}const j={sheets:P,dateSystem:f},$=function(e,t){if(0===t.length)return t;const n=new Map;for(const t of e)n.set(t.name,t);const r=[];for(const e of t){const t="_xlnm.Print_Area"===e.name,o="_xlnm.Print_Titles"===e.name,i=void 0!==e.scope?n.get(e.scope):void 0;if(!t&&!o||!i){r.push(e);continue}const s=i.pageSetup??(i.pageSetup={});if(t){const t=e.range.split(",").map(HB).filter(e=>e.length>0).join(",");t&&(s.printArea=t)}else for(const t of e.range.split(",")){const e=HB(t);e&&(/\d/.test(e)?s.printTitlesRow=e:s.printTitlesColumn=e)}}return r}(P,d);$.length>0&&(j.namedRanges=$),z&&(j.properties=z),b&&(j.themeColors=b),h&&(j.workbookProtection=h),void 0!==p&&(j.activeSheet=p);const Y=y?.fonts[0];return Y&&Object.keys(Y).length>0&&(j.defaultFont=Y),w&&w.length>0&&(j.persons=w),B.length>0&&(j.externalLinks=B),E&&E.length>0&&(j.cellImages=E),D.length>0&&(j.pivotCaches=D),Q.length>0&&(j.slicerCaches=Q),T.length>0&&(j.timelineCaches=T),j}function bB(e){const t=e.match(/(\d+)\.xml$/i);return t?parseInt(t[1],10):Number.POSITIVE_INFINITY}function IB(e){const t=e.match(/(\d+)$/);return t?parseInt(t[1],10):Number.POSITIVE_INFINITY}function wB(e){const t=e.lastIndexOf("/");return-1===t?`_rels/${e}.rels`:`${e.slice(0,t)}/_rels/${e.slice(t+1)}.rels`}const xB={png:"png",jpg:"jpeg",jpeg:"jpeg",gif:"gif",svg:"svg",webp:"webp"};async function CB(e,t){if(!e.has(t))return{images:[],textBoxes:[],chartRefs:[]};const n=AB(await e.extract(t),t),r=cy(t),o=wB(t),i=new Map,s=new Map;if(e.has(o)){const t=sy(AB(await e.extract(o),o));for(const e of t)mB(e.type,"image")?i.set(e.id,ay(r,e.target)):mB(e.type,"chart")&&s.set(e.id,ay(r,e.target))}const a=ZA(n),c=[],l=[],u=[];for(const t of a.children){if("string"==typeof t)continue;const n=t.local||t.tag;if("twoCellAnchor"===n||"oneCellAnchor"===n||"absoluteAnchor"===n){const e=EB(t);if(e){const r=s.get(e);if(r&&!u.some(e=>e.path===r)){const e="absoluteAnchor"===n?void 0:BB(t,n),o={path:r};e&&(o.anchor=e);const i=DB(t,"graphicFrame");if(i){const e=TB(i,"nvGraphicFramePr");e.altText&&(o.altText=e.altText),e.title&&(o.frameTitle=e.title)}u.push(o)}}}if("twoCellAnchor"===n){const n=SB(t);if(n){l.push(n);continue}const r=FB(t,i);if(r){const t=r.mediaPath;if(e.has(t)){const n={data:await e.extract(t),type:r.type,anchor:r.anchor};void 0!==r.width&&(n.width=r.width),void 0!==r.height&&(n.height=r.height),void 0!==r.altText&&(n.altText=r.altText),void 0!==r.title&&(n.title=r.title),c.push(n)}}}else if("oneCellAnchor"===n){const n=MB(t,i);if(n){const t=n.mediaPath;if(e.has(t)){const r={data:await e.extract(t),type:n.type,anchor:n.anchor};void 0!==n.width&&(r.width=n.width),void 0!==n.height&&(r.height=n.height),void 0!==n.altText&&(r.altText=n.altText),void 0!==n.title&&(r.title=n.title),c.push(r)}}}}return{images:c,textBoxes:l,chartRefs:u}}function BB(e,t){let n,r;for(const t of e.children){if("string"==typeof t)continue;const e=t,o=e.local||e.tag;"from"===o?n=LB(e):"to"===o&&(r=LB(e))}if(n)return"twoCellAnchor"===t&&r?{from:n,to:r}:{from:n}}function EB(e){for(const t of e.children){if("string"==typeof t)continue;const e=t;if("chart"===(e.local||e.tag)){const t=e.attrs["r:id"]??e.attrs.id;if(t)return t}const n=EB(e);if(n)return n}}function FB(e,t){let n,r,o,i,s=0,a=0,c=0,l=0;for(const t of e.children){if("string"==typeof t)continue;const e=t,u=e.local||e.tag;if("from"===u){const t=LB(e);s=t.row,a=t.col}else if("to"===u){const t=LB(e);c=t.row,l=t.col}else if("pic"===u){n=UB(e);const t=TB(e,"nvPicPr");r=t.altText,o=t.title,i=kB(e)}}if(!n)return null;const u=t.get(n);if(!u)return null;const f=u.split(".").pop()?.toLowerCase()??"",d={mediaPath:u,type:xB[f]??"png",anchor:{from:{row:s,col:a},to:{row:c,col:l}}};return i&&(d.width=i.width,d.height=i.height),r&&(d.altText=r),o&&(d.title=o),d}function kB(e){const t=DB(e,"spPr");if(!t)return;const n=DB(t,"xfrm");if(!n)return;const r=DB(n,"ext");if(!r)return;const o=Number(r.attrs.cx),i=Number(r.attrs.cy);return o>0&&i>0?{width:Math.round(o/QB),height:Math.round(i/QB)}:void 0}function SB(e){let t=0,n=0,r=0,o=0,i=null;for(const s of e.children){if("string"==typeof s)continue;const e=s,a=e.local||e.tag;if("from"===a){const r=LB(e);t=r.row,n=r.col}else if("to"===a){const t=LB(e);r=t.row,o=t.col}else if("sp"===a){const t=DB(e,"nvSpPr");if(t){const n=DB(t,"cNvSpPr");!n||"1"!==n.attrs.txBox&&"true"!==n.attrs.txBox||(i=e)}}}if(!i)return null;const s=DB(i,"txBody");let a,c,l,u,f,d="";if(s){const e=[];for(const t of s.children){if("string"==typeof t)continue;if("p"===(t.local||t.tag)){const n=NB(t);e.push(n.text),void 0!==n.fontSize&&void 0===a&&(a=n.fontSize),void 0!==n.bold&&void 0===c&&(c=n.bold),void 0!==n.color&&void 0===l&&(l=n.color)}}d=e.join("\n")}if(!d)return null;const h=DB(i,"spPr");if(h){const e=DB(h,"solidFill");if(e){const t=DB(e,"srgbClr");t&&t.attrs.val&&(u=t.attrs.val)}const t=DB(h,"ln");if(t){const e=DB(t,"solidFill");if(e){const t=DB(e,"srgbClr");t&&t.attrs.val&&(f=t.attrs.val)}}}const p={text:d,anchor:{from:{row:t,col:n},to:{row:r,col:o}}},g=kB(i);g&&(p.width=g.width,p.height=g.height);const m=TB(i,"nvSpPr");m.altText&&(p.altText=m.altText),m.title&&(p.title=m.title);const A={};let y=!1;return void 0!==a&&(A.fontSize=a,y=!0),void 0!==c&&(A.bold=c,y=!0),void 0!==l&&(A.color=l,y=!0),void 0!==u&&(A.fillColor=u,y=!0),void 0!==f&&(A.borderColor=f,y=!0),y&&(p.style=A),p}function DB(e,t){for(const n of e.children){if("string"==typeof n)continue;const e=n;if((e.local||e.tag)===t)return e}return null}function NB(e){let t,n,r,o="";for(const i of e.children){if("string"==typeof i)continue;const e=i;if("r"===(e.local||e.tag)){const i=DB(e,"rPr");if(i){i.attrs.sz&&(t=Number(i.attrs.sz)/100),"1"!==i.attrs.b&&"true"!==i.attrs.b||(n=!0);const e=DB(i,"solidFill");if(e){const t=DB(e,"srgbClr");t&&t.attrs.val&&(r=t.attrs.val)}}const s=DB(e,"t");s&&(o+=s.children.filter(e=>"string"==typeof e).join(""))}}return{text:o,fontSize:t,bold:n,color:r}}const QB=9525;function MB(e,t){let n,r,o,i=0,s=0,a=0,c=0;for(const t of e.children){if("string"==typeof t)continue;const e=t,l=e.local||e.tag;if("from"===l){const t=LB(e);i=t.row,s=t.col}else if("ext"===l)a=Number(e.attrs.cx)||0,c=Number(e.attrs.cy)||0;else if("pic"===l){n=UB(e);const t=TB(e,"nvPicPr");r=t.altText,o=t.title}}if(!n)return null;const l=t.get(n);if(!l)return null;const u=l.split(".").pop()?.toLowerCase()??"",f={mediaPath:l,type:xB[u]??"png",anchor:{from:{row:i,col:s}}};return a>0&&(f.width=Math.round(a/QB)),c>0&&(f.height=Math.round(c/QB)),r&&(f.altText=r),o&&(f.title=o),f}function TB(e,t){const n=DB(e,t);if(!n)return{};const r=DB(n,"cNvPr");if(!r)return{};const o={};return r.attrs.descr&&(o.altText=r.attrs.descr),r.attrs.title&&(o.title=r.attrs.title),o}function LB(e){let t=0,n=0;for(const r of e.children){if("string"==typeof r)continue;const e=r,o=e.local||e.tag,i=e.children.filter(e=>"string"==typeof e).join("");"row"===o?t=Number(i)||0:"col"===o&&(n=Number(i)||0)}return{row:t,col:n}}function UB(e){for(const t of e.children){if("string"==typeof t)continue;const e=t;if("blipFill"===(e.local||e.tag))for(const t of e.children){if("string"==typeof t)continue;const e=t;if("blip"===(e.local||e.tag))return e.attrs["r:embed"]??e.attrs["R:embed"]??RB(e.attrs)}}}function RB(e){for(const t of Object.keys(e))if(t.endsWith(":embed")&&e[t].startsWith("rId"))return e[t]}function HB(e){const t=e.trim(),n=t.lastIndexOf("!");return-1===n?t:t.slice(n+1)}function qB(e){const t=ZA(e),n=t.attrs.name??"",r=t.attrs.displayName??n,o=t.attrs.ref??"";if(!n)return null;const i=t.attrs.totalsRowCount,s=void 0!==i&&"0"!==i,a=[];let c,l,u,f=!1;for(const e of t.children){if("string"==typeof e)continue;const t=e.local||e.tag;if("autoFilter"===t)f=!0;else if("tableColumns"===t)for(const t of e.children){if("string"==typeof t)continue;if("tableColumn"===(t.local||t.tag)){const e={name:t.attrs.name??""};t.attrs.totalsRowFunction&&(e.totalFunction=t.attrs.totalsRowFunction),t.attrs.totalsRowLabel&&(e.totalLabel=t.attrs.totalsRowLabel);for(const n of t.children){if("string"==typeof n)continue;if("totalsRowFormula"===(n.local||n.tag)){const t=n.children.filter(e=>"string"==typeof e).join("");t&&(e.totalFormula=t)}}a.push(e)}}else"tableStyleInfo"===t&&(c=e.attrs.name,l="1"===e.attrs.showRowStripes,u="1"===e.attrs.showColumnStripes)}const d={name:n,columns:a};return r&&r!==n&&(d.displayName=r),o&&(d.range=o),c&&(d.style=c),void 0!==l&&(d.showRowStripes=l),void 0!==u&&(d.showColumnStripes=u),d.showAutoFilter=f,s&&(d.showTotalRow=!0),d}async function OB(e){if(function(){if(void 0===lx)try{new CompressionStream("deflate-raw"),lx="undefined"!=typeof ReadableStream}catch{lx=!1}return lx}())try{const t=new CompressionStream("deflate-raw"),n=t.writable.getWriter(),r=t.readable.getReader();n.write(e),n.close();const o=[];let i=0;for(;;){const{done:e,value:t}=await r.read();if(e)break;o.push(t),i+=t.length}const s=new Uint8Array(i);let a=0;for(const e of o)s.set(e,a),a+=e.length;return s}catch{}return ix(e)}class PB{entries=[];paths=new Set;add(e,t,n){if(this.paths.has(e))throw new MA(`Duplicate ZIP entry: "${e}"`);this.paths.add(e);const r=n?.compress??!0;this.entries.push({path:e,data:t,compress:r})}async build(){const e=[];for(const t of this.entries){const n=t.data.length>0?Vw(t.data):0;let r,o;t.compress&&t.data.length>0?(r=await OB(t.data),o=8,r.length>=t.data.length&&(r=t.data,o=0)):(r=t.data,o=0),e.push({path:t.path,data:t.data,compressedData:r,method:o,entryCrc32:n})}const t=new TextEncoder,n=e.map(e=>t.encode(e.path));let r=0;for(let t=0;t<e.length;t++)r+=30+n[t].length+e[t].compressedData.length;let o=0;for(let t=0;t<e.length;t++)o+=46+n[t].length;const i=new Uint8Array(r+o+22),s=new DataView(i.buffer);let a=0;const c=[];for(let t=0;t<e.length;t++){const r=e[t],o=n[t];c.push(a),s.setUint32(a,67324752,!0),s.setUint16(a+4,20,!0),s.setUint16(a+6,0,!0),s.setUint16(a+8,r.method,!0),s.setUint16(a+10,0,!0),s.setUint16(a+12,33,!0),s.setUint32(a+14,r.entryCrc32,!0),s.setUint32(a+18,r.compressedData.length,!0),s.setUint32(a+22,r.data.length,!0),s.setUint16(a+26,o.length,!0),s.setUint16(a+28,0,!0),i.set(o,a+30),a+=30+o.length,i.set(r.compressedData,a),a+=r.compressedData.length}const l=a;for(let t=0;t<e.length;t++){const r=e[t],o=n[t];s.setUint32(a,33639248,!0),s.setUint16(a+4,20,!0),s.setUint16(a+6,20,!0),s.setUint16(a+8,0,!0),s.setUint16(a+10,r.method,!0),s.setUint16(a+12,0,!0),s.setUint16(a+14,33,!0),s.setUint32(a+16,r.entryCrc32,!0),s.setUint32(a+20,r.compressedData.length,!0),s.setUint32(a+24,r.data.length,!0),s.setUint16(a+28,o.length,!0),s.setUint16(a+30,0,!0),s.setUint16(a+32,0,!0),s.setUint16(a+34,0,!0),s.setUint16(a+36,0,!0),s.setUint32(a+38,0,!0),s.setUint32(a+42,c[t],!0),i.set(o,a+46),a+=46+o.length}const u=a-l;return s.setUint32(a,101010256,!0),s.setUint16(a+4,0,!0),s.setUint16(a+6,0,!0),s.setUint16(a+8,e.length,!0),s.setUint16(a+10,e.length,!0),s.setUint32(a+12,u,!0),s.setUint32(a+16,l,!0),s.setUint16(a+20,0,!0),i}}const zB={png:"image/png",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",webp:"image/webp"};const jB="http://schemas.openxmlformats.org/package/2006/relationships";function $B(e,t){const n={};return void 0!==t.rgb&&(n.rgb=6===t.rgb.length?`FF${t.rgb}`:t.rgb),void 0!==t.theme&&(n.theme=t.theme),void 0!==t.tint&&(n.tint=t.tint),void 0!==t.indexed&&(n.indexed=t.indexed),Sy(e,n)}function YB(e){const t=[];return e.bold&&t.push(Sy("b")),e.italic&&t.push(Sy("i")),void 0!==e.underline&&!1!==e.underline&&(!0===e.underline||"single"===e.underline?t.push(Sy("u")):t.push(Sy("u",{val:e.underline}))),e.strikethrough&&t.push(Sy("strike")),void 0!==e.charset&&t.push(Sy("charset",{val:e.charset})),void 0!==e.family&&t.push(Sy("family",{val:e.family})),e.scheme&&t.push(Sy("scheme",{val:e.scheme})),e.color&&t.push($B("color",e.color)),void 0!==e.size&&t.push(Sy("sz",{val:e.size})),e.name&&t.push(Sy("name",{val:e.name})),e.vertAlign&&t.push(Sy("vertAlign",{val:e.vertAlign})),Ny("font",void 0,t)}function GB(e){if("pattern"===e.type){const t=[];e.fgColor&&t.push($B("fgColor",e.fgColor)),e.bgColor&&t.push($B("bgColor",e.bgColor));const n=Ny("patternFill",{patternType:e.pattern},t.length>0?t:void 0);return Ny("fill",void 0,[n])}const t=[];for(const n of e.stops)t.push(Ny("stop",{position:n.position},[$B("color",n.color)]));const n={};void 0!==e.degree&&(n.degree=e.degree);const r=Ny("gradientFill",n,t);return Ny("fill",void 0,[r])}function VB(e,t){return t?t.color?Ny(""+e,{style:t.style},[$B("color",t.color)]):Sy(e,{style:t.style}):Sy(e)}function JB(e){const t={};e.diagonalUp&&(t.diagonalUp=!0),e.diagonalDown&&(t.diagonalDown=!0);const n=[VB("left",e.left),VB("right",e.right),VB("top",e.top),VB("bottom",e.bottom),VB("diagonal",e.diagonal)];return Ny("border",Object.keys(t).length>0?t:void 0,n)}function WB(e){if(!e)return"";const t=[];return void 0!==e.rgb&&t.push(`rgb:${e.rgb}`),void 0!==e.theme&&t.push(`th:${e.theme}`),void 0!==e.tint&&t.push(`tint:${e.tint}`),void 0!==e.indexed&&t.push(`idx:${e.indexed}`),t.join("|")}function _B(e){const t=[];return e.name&&t.push(`n:${e.name}`),void 0!==e.size&&t.push(`s:${e.size}`),e.bold&&t.push("b"),e.italic&&t.push("i"),void 0!==e.underline&&!1!==e.underline&&t.push(`u:${e.underline}`),e.strikethrough&&t.push("st"),e.color&&t.push(`c:${WB(e.color)}`),e.vertAlign&&t.push(`va:${e.vertAlign}`),void 0!==e.family&&t.push(`fam:${e.family}`),void 0!==e.charset&&t.push(`cs:${e.charset}`),e.scheme&&t.push(`sch:${e.scheme}`),t.join(",")}function XB(e){return"pattern"===e.type?`p:${e.pattern}|fg:${WB(e.fgColor)}|bg:${WB(e.bgColor)}`:`g:${e.degree??""}|${e.stops.map(e=>`${e.position}:${WB(e.color)}`).join(";")}`}function KB(e){return e?`${e.style}:${WB(e.color)}`:""}function ZB(e){return[`l:${KB(e.left)}`,`r:${KB(e.right)}`,`t:${KB(e.top)}`,`b:${KB(e.bottom)}`,`d:${KB(e.diagonal)}`,e.diagonalUp?"du":"",e.diagonalDown?"dd":""].join("|")}function eE(e,t){const n=t?.reuseStyleIdentity??!1,r={name:e?.name??"Calibri",size:e?.size??11,...e},o=[{key:_B(r),font:r}],i=new Map([[o[0].key,0]]),s=[{key:"p:none|fg:|bg:",fill:{type:"pattern",pattern:"none"}},{key:"p:gray125|fg:|bg:",fill:{type:"pattern",pattern:"gray125"}}],a=new Map([[s[0].key,0],[s[1].key,1]]),c={},l=[{key:ZB(c),border:c}],u=new Map([[l[0].key,0]]),f=[],d=new Map;let h=164;const p="nf:0|f:0|fl:0|b:0|a:|p:",g=[{key:p,numFmtId:0,fontId:0,fillId:0,borderId:0}],m=new Map([[p,0]]);function A(e){const t=d.get(e);if(void 0!==t)return t;const n=h++;return f.push({id:n,formatCode:e}),d.set(e,n),n}function y(e){if(!e)return"";const t=[];return e.horizontal&&t.push(`h:${e.horizontal}`),e.vertical&&t.push(`v:${e.vertical}`),e.wrapText&&t.push("w"),e.shrinkToFit&&t.push("sf"),void 0!==e.textRotation&&t.push(`r:${e.textRotation}`),void 0!==e.indent&&t.push(`i:${e.indent}`),e.readingOrder&&t.push(`ro:${e.readingOrder}`),t.join(",")}function v(e){if(!e)return"";const t=[];return void 0!==e.locked&&t.push(`l:${e.locked}`),void 0!==e.hidden&&t.push(`h:${e.hidden}`),t.join(",")}const b=[],I=new Map;const w=n?new WeakMap:void 0;function x(e,t){if(w&&!t){const t=w.get(e);if(void 0!==t)return t}const n=e.font?function(e){const t=_B(e),n=i.get(t);if(void 0!==n)return n;const r=o.length;return o.push({key:t,font:nC(e)}),i.set(t,r),r}(e.font):0,r=e.fill?function(e){const t=XB(e),n=a.get(t);if(void 0!==n)return n;const r=s.length;return s.push({key:t,fill:rC(e)}),a.set(t,r),r}(e.fill):0,c=e.border?function(e){const t=ZB(e),n=u.get(t);if(void 0!==n)return n;const r=l.length;return l.push({key:t,border:iC(e)}),u.set(t,r),r}(e.border):0,f=e.numFmt?A(e.numFmt):0,d=[`nf:${f}`,`f:${n}`,`fl:${r}`,`b:${c}`,`a:${y(e.alignment)}`,`p:${v(e.protection)}`,t?"cb:1":"cb:0"].join("|"),h=m.get(d);if(void 0!==h)return w&&!t&&w.set(e,h),h;const p=g.length;return g.push({key:d,numFmtId:f,fontId:n,fillId:r,borderId:c,alignment:e.alignment?{...e.alignment}:void 0,protection:e.protection?{...e.protection}:void 0,hasCheckboxFeature:t||void 0}),m.set(d,p),w&&!t&&w.set(e,p),p}function C(e){const t={};if(e.horizontal&&(t.horizontal=e.horizontal),e.vertical&&(t.vertical=e.vertical),e.wrapText&&(t.wrapText=!0),e.shrinkToFit&&(t.shrinkToFit=!0),void 0!==e.textRotation&&(t.textRotation=e.textRotation),void 0!==e.indent&&(t.indent=e.indent),e.readingOrder){const n={ltr:1,rtl:2,context:0};t.readingOrder=n[e.readingOrder]}return Sy("alignment",t)}return{addStyle:function(e){return x(e,!1)},addCheckboxStyle:function(e){return x(e??{},!0)},addNumFmt:A,addDxf:function(e){const t=function(e){const t=[];return e.font&&t.push(`f:${_B(e.font)}`),e.fill&&t.push(`fl:${XB(e.fill)}`),e.border&&t.push(`b:${ZB(e.border)}`),e.numFmt&&t.push(`nf:${e.numFmt}`),e.alignment&&t.push(`a:${y(e.alignment)}`),t.join("|")}(e),n=I.get(t);if(void 0!==n)return n;const r=b.length;return b.push(e),I.set(t,r),r},hasCheckboxFeature:function(){for(const e of g)if(e.hasCheckboxFeature)return!0;return!1},toXml:function(){const e=[];if(f.length>0){const t=f.map(e=>Sy("numFmt",{numFmtId:e.id,formatCode:e.formatCode}));e.push(Ny("numFmts",{count:f.length},t))}const t=o.map(e=>YB(e.font));e.push(Ny("fonts",{count:o.length},t));const n=s.map(e=>GB(e.fill));e.push(Ny("fills",{count:s.length},n));const r=l.map(e=>JB(e.border));e.push(Ny("borders",{count:l.length},r)),e.push(Ny("cellStyleXfs",{count:1},[Sy("xf",{numFmtId:0,fontId:0,fillId:0,borderId:0})]));const i=g.map(e=>{const t={numFmtId:e.numFmtId,fontId:e.fontId,fillId:e.fillId,borderId:e.borderId,xfId:0};0!==e.numFmtId&&(t.applyNumberFormat=!0),0!==e.fontId&&(t.applyFont=!0),0!==e.fillId&&(t.applyFill=!0),0!==e.borderId&&(t.applyBorder=!0);const n=void 0!==e.alignment,r=void 0!==e.protection,o=!0===e.hasCheckboxFeature;if(n&&(t.applyAlignment=!0),r&&(t.applyProtection=!0),n||r||o){const i=[];return n&&i.push(C(e.alignment)),r&&i.push(function(e){const t={};return void 0!==e.locked&&(t.locked=e.locked?1:0),void 0!==e.hidden&&(t.hidden=e.hidden?1:0),Sy("protection",t)}(e.protection)),o&&i.push(Ny("extLst",void 0,Ny("ext",{uri:Dx,"xmlns:xfpb":Sx},Sy("xfpb:xfComplement",{i:"0"})))),Ny("xf",t,i)}return Sy("xf",t)});if(e.push(Ny("cellXfs",{count:g.length},i)),e.push(Ny("cellStyles",{count:1},[Sy("cellStyle",{name:"Normal",xfId:0,builtinId:0})])),b.length>0){const t=b.map(e=>{const t=[];if(e.font&&t.push(YB(e.font)),e.numFmt){const n=A(e.numFmt);t.push(Sy("numFmt",{numFmtId:n,formatCode:e.numFmt}))}return e.fill&&t.push(GB(e.fill)),e.border&&t.push(JB(e.border)),e.alignment&&t.push(C(e.alignment)),Ny("dxf",void 0,t)});e.push(Ny("dxfs",{count:b.length},t))}else e.push(Sy("dxfs",{count:0}));return e.push(Sy("tableStyles",{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"})),Qy("styleSheet",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"},e)}}}function tE(e){const t=e;return t.length>=8&&137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]?"png":t.length>=3&&255===t[0]&&216===t[1]&&255===t[2]?"jpeg":t.length>=6&&71===t[0]&&73===t[1]&&70===t[2]?"gif":t.length>=12&&82===t[0]&&73===t[1]&&70===t[2]&&70===t[3]&&87===t[8]&&69===t[9]&&66===t[10]&&80===t[11]?"webp":function(e){const t=e.subarray(0,nE);let n="";for(let e=0;e<t.length;e++)n+=String.fromCharCode(t[e]);const r=n.trimStart().replace(/^/,"");return!!r.startsWith("<")&&/<svg[\s>]/i.test(r)}(t)?"svg":"png"}const nE=1024;const rE="http://schemas.openxmlformats.org/officeDocument/2006/relationships",oE="http://schemas.openxmlformats.org/drawingml/2006/chart",iE=9525,sE={png:"png",jpeg:"jpeg",gif:"gif",svg:"svg",webp:"webp"},aE={png:"image/png",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",webp:"image/webp"};function cE(e,t,n,r,o=1){const i=[],s=[],a=[];for(let n=0;n<e.length;n++){const r=e[n],o=t+n,c=`rId${n+1}`,l=sE[r.type]??"png",u=aE[r.type]??"image/png",f=`xl/media/image${o}.${l}`,d=`../media/image${o}.${l}`;i.push({path:f,data:r.data,contentType:u}),s.push(Sy("Relationship",{Id:c,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:d}));const h=r.width?r.width*iE:3e6,p=r.height?r.height*iE:2e6,g=r.anchor.from.col,m=r.anchor.from.row,A=r.anchor.to?.col??g+3,y=r.anchor.to?.row??m+5,v=Ny("xdr:from",void 0,[Ny("xdr:col",void 0,String(g)),Ny("xdr:colOff",void 0,"0"),Ny("xdr:row",void 0,String(m)),Ny("xdr:rowOff",void 0,"0")]),b=Ny("xdr:to",void 0,[Ny("xdr:col",void 0,String(A)),Ny("xdr:colOff",void 0,"0"),Ny("xdr:row",void 0,String(y)),Ny("xdr:rowOff",void 0,"0")]),I={id:n+2,name:`Picture ${n+1}`};r.title&&(I.title=r.title),r.altText&&(I.descr=r.altText);const w=Ny("xdr:nvPicPr",void 0,[Sy("xdr:cNvPr",I),Ny("xdr:cNvPicPr",void 0,[Sy("a:picLocks",{noChangeAspect:1})])]),x=Ny("xdr:blipFill",void 0,[Sy("a:blip",{"r:embed":c}),Ny("a:stretch",void 0,[Sy("a:fillRect")])]),C=Ny("xdr:spPr",void 0,[Ny("a:xfrm",void 0,[Sy("a:off",{x:0,y:0}),Sy("a:ext",{cx:h,cy:p})]),Ny("a:prstGeom",{prst:"rect"},[Sy("a:avLst")])]),B=Ny("xdr:pic",void 0,[w,x,C]),E=Ny("xdr:twoCellAnchor",void 0,[v,b,B,Sy("xdr:clientData")]);a.push(E)}if(n&&n.length>0){let t=e.length+2;for(let e=0;e<n.length;e++){const r=n[e],o=r.anchor.from.col,i=r.anchor.from.row,s=r.anchor.to?.col??o+3,c=r.anchor.to?.row??i+3,l=r.width?r.width*iE:2e6,u=r.height?r.height*iE:5e5,f=Ny("xdr:from",void 0,[Ny("xdr:col",void 0,String(o)),Ny("xdr:colOff",void 0,"0"),Ny("xdr:row",void 0,String(i)),Ny("xdr:rowOff",void 0,"0")]),d=Ny("xdr:to",void 0,[Ny("xdr:col",void 0,String(s)),Ny("xdr:colOff",void 0,"0"),Ny("xdr:row",void 0,String(c)),Ny("xdr:rowOff",void 0,"0")]),h={id:t++,name:`TextBox ${e+1}`};r.title&&(h.title=r.title),r.altText&&(h.descr=r.altText);const p=Ny("xdr:nvSpPr",void 0,[Sy("xdr:cNvPr",h),Ny("xdr:cNvSpPr",{txBox:1},[])]),g=[Ny("a:xfrm",void 0,[Sy("a:off",{x:0,y:0}),Sy("a:ext",{cx:l,cy:u})]),Ny("a:prstGeom",{prst:"rect"},[Sy("a:avLst")])],m=r.style?.fillColor??"FFFFFF";g.push(Ny("a:solidFill",void 0,[Sy("a:srgbClr",{val:m})]));const A=r.style?.borderColor??"000000";g.push(Ny("a:ln",void 0,[Ny("a:solidFill",void 0,[Sy("a:srgbClr",{val:A})])]));const y=Ny("xdr:spPr",void 0,g),v={lang:"en-US",sz:100*(r.style?.fontSize??11)};r.style?.bold&&(v.b=1);const b=[];r.style?.color&&b.push(Ny("a:solidFill",void 0,[Sy("a:srgbClr",{val:r.style.color})]));const I=b.length>0?Ny("a:rPr",v,b):Sy("a:rPr",v),w=Ny("xdr:txBody",void 0,[Sy("a:bodyPr",{wrap:"square"}),Ny("a:p",void 0,[Ny("a:r",void 0,[I,Ny("a:t",void 0,Ey(r.text))])])]),x=Ny("xdr:sp",void 0,[p,y,w]),C=Ny("xdr:twoCellAnchor",void 0,[f,d,x,Sy("xdr:clientData")]);a.push(C)}}const c=[];if(r&&r.length>0){let t=e.length+(n?.length??0)+2;for(let n=0;n<r.length;n++){const i=r[n],l=o+n,u=`rId${e.length+n+1}`;s.push(Sy("Relationship",{Id:u,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",Target:`../charts/chart${l}.xml`}));const f=i.anchor.from.col,d=i.anchor.from.row,h=i.anchor.to?.col??f+8,p=i.anchor.to?.row??d+15,g=Ny("xdr:from",void 0,[Ny("xdr:col",void 0,String(f)),Ny("xdr:colOff",void 0,"0"),Ny("xdr:row",void 0,String(d)),Ny("xdr:rowOff",void 0,"0")]),m=Ny("xdr:to",void 0,[Ny("xdr:col",void 0,String(h)),Ny("xdr:colOff",void 0,"0"),Ny("xdr:row",void 0,String(p)),Ny("xdr:rowOff",void 0,"0")]),A={id:t++,name:`Chart ${n+1}`};i.frameTitle&&(A.title=i.frameTitle),i.altText&&(A.descr=i.altText);const y=Ny("xdr:nvGraphicFramePr",void 0,[Sy("xdr:cNvPr",A),Ny("xdr:cNvGraphicFramePr",void 0,[])]),v=Ny("xdr:xfrm",void 0,[Sy("a:off",{x:0,y:0}),Sy("a:ext",{cx:0,cy:0})]),b=Ny("a:graphic",void 0,Ny("a:graphicData",{uri:oE},[Sy("c:chart",{"xmlns:c":oE,"xmlns:r":rE,"r:id":u})])),I=Ny("xdr:graphicFrame",{macro:""},[y,v,b]),w=Ny("xdr:twoCellAnchor",{editAs:"oneCell"},[g,m,I,Sy("xdr:clientData")]);a.push(w),c.push({globalChartIndex:l})}}return{drawingXml:Qy("xdr:wsDr",{"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main","xmlns:r":rE},a),drawingRels:Qy("Relationships",{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},s),images:i,charts:c}}function lE(e,t){const n=e.showTitle??Boolean(e.title),r=function(e){if(!1===e.legend)return null;if(void 0===e.legend)return"scatter"===e.type?"b":"r";switch(e.legend){case"top":return"t";case"bottom":return"b";case"left":return"l";case"right":return"r";case"topRight":return"tr"}}(e),o=[];n&&e.title&&o.push(function(e,t,n,r,o,i,s,a,c,l,u,f,d,h,p,g,m){const A=void 0===n?0:n*Ev,y=void 0===r?1400:100*r,v=o?1:0,b=!0===i?1:void 0,I=!0===a?"sngStrike":void 0,w=!0===c?"sng":void 0,x=void 0!==s?Ny("a:solidFill",void 0,[ov(s)]):void 0,C=l?Sy("a:latin",{typeface:l}):void 0,B=[];x&&B.push(x),C&&B.push(C);const E=B.length>0?Ny("a:defRPr",{sz:y,b:v,i:b,u:w,strike:I},B):Sy("a:defRPr",{sz:y,b:v,i:b,u:w,strike:I}),F=B.length>0?Ny("a:rPr",{lang:"en-US",sz:y,b:v,i:b,u:w,strike:I},B):Sy("a:rPr",{lang:"en-US",sz:y,b:v,i:b,u:w,strike:I}),k=vv(u),S=[Ny("c:tx",void 0,[Ny("c:rich",void 0,[Ny("a:bodyPr",{rot:A,spcFirstLastPara:1,vertOverflow:"ellipsis",wrap:"square",anchor:"ctr",anchorCtr:1},[]),Sy("a:lstStyle"),Ny("a:p",void 0,[Ny("a:pPr",void 0,[E]),Ny("a:r",void 0,[F,Ny("a:t",void 0,Ey(e))])])])])];void 0!==k&&S.push(k),S.push(Sy("c:overlay",{val:t?1:0}));const D=kv(f,d,h,p,g,m);return void 0!==D&&S.push(D),Ny("c:title",void 0,S)}(e.title,function(e){return!0===e.titleOverlay}(e),function(e){return Sv(e.titleRotation)}(e),function(e){return Dv(e.titleFontSize)}(e),function(e){return Nv(e.titleBold)}(e),function(e){return Qv(e.titleItalic)}(e),function(e){return Mv(e.titleColor)}(e),function(e){return Tv(e.titleStrike)}(e),function(e){return Lv(e.titleUnderline)}(e),function(e){return function(e){if("string"!=typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}(e.titleFontFamily)}(e),function(e){return Av(e.titleLayout)}(e),function(e){return Mv(e.titleFillColor)}(e),function(e){return Mv(e.titleBorderColor)}(e),function(e){return uv(e.titleBorderWidth)}(e),function(e){return fv(e.titleBorderDash)}(e),function(e){return Vy(e.titleBorderCap)}(e),function(e){return Jy(e.titleBorderCompound)}(e))),o.push(Sy("c:autoTitleDeleted",{val:jb(e)?1:0}));const i=function(e){if(void 0===e)return;const t=[],n=pv(e.rotX,-90,90);void 0!==n&&t.push(Sy("c:rotX",{val:n}));const r=pv(e.hPercent,5,500);void 0!==r&&t.push(Sy("c:hPercent",{val:r}));const o=pv(e.rotY,0,360);void 0!==o&&t.push(Sy("c:rotY",{val:o}));const i=pv(e.depthPercent,20,2e3);void 0!==i&&t.push(Sy("c:depthPercent",{val:i})),!0===e.rAngAx?t.push(Sy("c:rAngAx",{val:1})):!1===e.rAngAx&&t.push(Sy("c:rAngAx",{val:0}));const s=pv(e.perspective,0,240);return void 0!==s&&t.push(Sy("c:perspective",{val:s})),Ny("c:view3D",void 0,t)}(e.view3D);void 0!==i&&o.push(i);const s=function(e){if("number"==typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<=0||e>100))return Ny("c:floor",void 0,[Sy("c:thickness",{val:e})])}(e.floorThickness);void 0!==s&&o.push(s);const a=function(e){if("number"==typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<=0||e>100))return Ny("c:sideWall",void 0,[Sy("c:thickness",{val:e})])}(e.sideWallThickness);void 0!==a&&o.push(a);const c=function(e){if("number"==typeof e&&Number.isFinite(e)&&Number.isInteger(e)&&!(e<=0||e>100))return Ny("c:backWall",void 0,[Sy("c:thickness",{val:e})])}(e.backWallThickness);void 0!==c&&o.push(c),o.push(GI(e,t)),r&&o.push(Hv(r,function(e){return!0===e.legendOverlay}(e),function(e){const t=e.legendEntries;if(!Array.isArray(t)||0===t.length)return[];const n=new Map;for(const e of t){if(!e||"object"!=typeof e)continue;const t=e.idx;if("number"!=typeof t||!Number.isFinite(t))continue;if(!Number.isInteger(t)||t<0)continue;const r={idx:t,delete:!0===e.delete};if("number"==typeof e.fontSize&&Number.isFinite(e.fontSize)){const t=Math.round(2*e.fontSize)/2;t>=1&&t<=Rv&&(r.fontSize=t)}if(!0===e.bold?r.bold=!0:!1===e.bold&&(r.bold=!1),!0===e.italic?r.italic=!0:!1===e.italic&&(r.italic=!1),!0===e.underline?r.underline=!0:!1===e.underline&&(r.underline=!1),!0===e.strikethrough?r.strikethrough=!0:!1===e.strikethrough&&(r.strikethrough=!1),void 0!==e.color){const t=rv(e.color);void 0!==t&&(r.color=t)}if("string"==typeof e.fontFamily){const t=e.fontFamily.trim();t.length>0&&(r.fontFamily=t)}n.set(t,r)}return Array.from(n.values()).sort((e,t)=>e.idx-t.idx)}(e),function(e){return Dv(e.legendFontSize)}(e),function(e){const t=e.legendBold;return!0===t||!1!==t&&void 0}(e),function(e){const t=e.legendItalic;return!0===t||!1!==t&&void 0}(e),function(e){const t=e.legendUnderline;return!0===t||!1!==t&&void 0}(e),function(e){if(!0===e.legendStrikethrough)return!0}(e),function(e){return Mv(e.legendFontColor)}(e),function(e){return function(e){if("string"!=typeof e)return;const t=e.trim();return 0!==t.length?t:void 0}(e.legendFontFamily)}(e),function(e){return Av(e.legendLayout)}(e),function(e){return Mv(e.legendFillColor)}(e),function(e){return Mv(e.legendBorderColor)}(e),function(e){return uv(e.legendBorderWidth)}(e),function(e){return fv(e.legendBorderDash)}(e),Vy(e.legendBorderCap),Jy(e.legendBorderCompound))),o.push(Sy("c:plotVisOnly",{val:dE(e)?1:0})),o.push(Sy("c:dispBlanksAs",{val:fE(e)})),o.push(Sy("c:showDLblsOverMax",{val:hE(e)?1:0}));const l=Ny("c:chart",void 0,o),u=[];(function(e){return!0===e.date1904})(e)&&u.push(Sy("c:date1904",{val:1}));const f=function(e){const t=e.lang;return"string"!=typeof t?void 0:/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/.test(t)?t:void 0}(e);void 0!==f&&u.push(Sy("c:lang",{val:f})),u.push(Sy("c:roundedCorners",{val:pE(e)?1:0}));const d=function(e){const t=e.style;return"number"!=typeof t?void 0:Number.isInteger(t)?t<1||t>48?void 0:t:void 0}(e);void 0!==d&&u.push(Sy("c:style",{val:d}));const h=function(e){const t=e.protection;if(void 0===t||!1===t)return;if(!0===t)return{chartObject:!1,data:!1,formatting:!1,selection:!1,userInterface:!1};return{chartObject:!0===t.chartObject,data:!0===t.data,formatting:!0===t.formatting,selection:!0===t.selection,userInterface:!0===t.userInterface}}(e);void 0!==h&&u.push(function(e){return Ny("c:protection",void 0,[Sy("c:chartObject",{val:e.chartObject?1:0}),Sy("c:data",{val:e.data?1:0}),Sy("c:formatting",{val:e.formatting?1:0}),Sy("c:selection",{val:e.selection?1:0}),Sy("c:userInterface",{val:e.userInterface?1:0})])}(h)),u.push(l);const p=function(e){const t=(a=e.chartSpaceFillColor,Mv(a)),n=function(e){return Mv(e)}(e.chartSpaceBorderColor),r=uv(e.chartSpaceBorderWidth),o=fv(e.chartSpaceBorderDash),i=Vy(e.chartSpaceBorderCap),s=Jy(e.chartSpaceBorderCompound);var a;if(void 0===t&&void 0===n&&void 0===r&&void 0===o&&void 0===i&&void 0===s)return;const c=[];void 0!==t&&c.push(Ny("a:solidFill",void 0,[ov(t)]));if(void 0!==n||void 0!==r||void 0!==o||void 0!==i||void 0!==s){const e={};void 0!==r&&(e.w=Math.round(r*zy)),void 0!==i&&(e.cap=i),void 0!==s&&(e.cmpd=s);const t=[];void 0!==n&&t.push(Ny("a:solidFill",void 0,[ov(n)])),void 0!==o&&t.push(Sy("a:prstDash",{val:o})),c.push(0===t.length?Sy("a:ln",e):Ny("a:ln",Object.keys(e).length>0?e:void 0,t))}return Ny("c:spPr",void 0,c)}(e);void 0!==p&&u.push(p);return{chartXml:Qy("c:chartSpace",{"xmlns:c":"http://schemas.openxmlformats.org/drawingml/2006/chart","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},u),chartRels:Qy("Relationships",{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},[])}}const uE=new Set(["gap","zero","span"]);function fE(e){const t=e.dispBlanksAs;return t&&uE.has(t)?t:"gap"}function dE(e){return"boolean"!=typeof e.plotVisOnly||e.plotVisOnly}function hE(e){return"boolean"!=typeof e.showDLblsOverMax||e.showDLblsOverMax}function pE(e){return"boolean"==typeof e.roundedCorners&&e.roundedCorners}const gE="http://schemas.openxmlformats.org/spreadsheetml/2006/main";function mE(e,t){const n=[];for(const[t,r]of e){if(!r.comment)continue;const[e,o]=t.split(","),i=parseInt(e,10),s=parseInt(o,10),a=SC(i,s),c=r.comment.author??"",l=r.comment.text;n.push({ref:a,row:i,col:s,author:c,text:l})}if(0===n.length)return null;n.sort((e,t)=>e.row-t.row||e.col-t.col);const r=new Map;for(const e of n)r.has(e.author)||r.set(e.author,r.size);const o=function(e,t){const n=[];for(const[e]of t)n.push(Ny("author",void 0,Ey(e)));const r=Ny("authors",void 0,n),o=[];for(const n of e){const e=t.get(n.author)??0,r=Ny("text",void 0,[Ny("r",void 0,[Ny("t",void 0,Ey(n.text))])]);o.push(Ny("comment",{ref:n.ref,authorId:e},[r]))}const i=Ny("commentList",void 0,o);return Qy("comments",{xmlns:gE},[r,i])}(n,r),i=function(e,t){const n=[];n.push('<xml xmlns:v="urn:schemas-microsoft-com:vml"',' xmlns:o="urn:schemas-microsoft-com:office:office"',' xmlns:x="urn:schemas-microsoft-com:office:excel">'),n.push('<o:shapelayout v:ext="edit">',`<o:idmap v:ext="edit" data="${t+1}"/>`,"</o:shapelayout>"),n.push('<v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202"',' path="m,l,21600r21600,l21600,xe">','<v:stroke joinstyle="miter"/>','<v:path gradientshapeok="t" o:connecttype="rect"/>',"</v:shapetype>");const r=1024*(t+1)+1;for(let t=0;t<e.length;t++){const o=e[t],i=r+t,s=o.col+1,a=o.row,c=s+2,l=a+4,u=48*(o.col+1),f=15*o.row;n.push(`<v:shape id="_x0000_s${i}" type="#_x0000_t202"`,` style="position:absolute;margin-left:${u}pt;margin-top:${f}pt;`,`width:108pt;height:59.25pt;z-index:${t+1};visibility:hidden"`,' fillcolor="#ffffe1" o:insetmode="auto">','<v:fill color2="#ffffe1"/>','<v:shadow on="t" color="black" obscured="t"/>','<v:path o:connecttype="none"/>','<v:textbox style="mso-direction-alt:auto">','<div style="text-align:left"/>',"</v:textbox>",'<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",`<x:Anchor>${s},15,${a},2,${c},31,${l},4</x:Anchor>`,"<x:AutoFill>False</x:AutoFill>",`<x:Row>${o.row}</x:Row>`,`<x:Column>${o.col}</x:Column>`,"</x:ClientData>","</v:shape>")}return n.push("</xml>"),n.join("")}(n,t);return{commentsXml:o,vmlXml:i,comments:n}}function AE(e,t,n){const r=e.displayName??e.name,o=e.range??"",i=!1!==e.showAutoFilter,s=!0===e.showTotalRow,a={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",id:t,name:e.name,displayName:r,ref:o};s?a.totalsRowCount=1:a.totalsRowShown=0;const c=[];if(i){const e=s?function(e){const t=e.indexOf(":");if(-1===t)return e;const n=e.slice(t+1);let r=n.length;for(;r>0&&n.charCodeAt(r-1)>=48&&n.charCodeAt(r-1)<=57;)r--;const o=n.slice(0,r),i=parseInt(n.slice(r),10);return isNaN(i)||i<=1?e:`${e.slice(0,t+1)}${o}${i-1}`}(o):o;c.push(Sy("autoFilter",{ref:e}))}const l=[];for(let t=0;t<e.columns.length;t++){const n=e.columns[t],r={id:t+1,name:n.name};if(s&&n.totalFunction&&(r.totalsRowFunction=n.totalFunction),s&&n.totalLabel&&(r.totalsRowLabel=n.totalLabel),s&&"custom"===n.totalFunction&&n.totalFormula){const e=Ny("totalsRowFormula",void 0,Ey(n.totalFormula));l.push(Ny("tableColumn",r,[e]))}else l.push(Sy("tableColumn",r))}c.push(Ny("tableColumns",{count:e.columns.length},l));const u=e.style??"TableStyleMedium2",f=!1!==e.showRowStripes,d=!0===e.showColumnStripes;c.push(Sy("tableStyleInfo",{name:u,showFirstColumn:0,showLastColumn:0,showRowStripes:f?1:0,showColumnStripes:d?1:0}));return{tableXml:Qy("table",a,c),tableId:t}}function yE(e,t){const n=e.columns.length;let r=0;if(t.rows)r=t.rows.length;else if(t.data){const e=t.columns?.some(e=>e.header);r=t.data.length+(e?1:0)}e.showTotalRow&&(r+=1),r<1&&(r=1);return`${FC(0)}1:${FC(n-1)}${r}`}const vE="http://schemas.openxmlformats.org/spreadsheetml/2006/main",bE="http://schemas.openxmlformats.org/officeDocument/2006/relationships",IE="http://schemas.openxmlformats.org/package/2006/relationships",wE="http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords",xE="http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition";function CE(e,t,n,r=1){const o=function(e,t){const n=t.fieldNames.map((e,n)=>({index:n,name:e,axis:"hidden",axisOrder:0,kind:EE(t.dataRows,n)})),r=(e,t)=>{if(e)for(let r=0;r<e.length;r++){const o=n.find(t=>t.name===e[r]);o&&(o.axis=t,o.axisOrder=r)}};r(e.rows,"row"),r(e.columns,"col"),r(e.pages,"page");const o=[];for(let r=0;r<e.values.length;r++){const i=e.values[r],s=t.fieldNames.indexOf(i.field);if(-1===s)continue;n[s].axis="data",n[s].axisOrder=r;const a=i.function??"sum",c={fieldIndex:s,function:a,displayName:i.displayName??NE(a,i.field)};void 0!==i.numberFormat&&(c.numberFormat=i.numberFormat),o.push(c)}for(const e of n){if("data"===e.axis||"hidden"===e.axis)continue;if("string"!==e.kind)continue;const n=new Set,r=[];for(const o of t.dataRows){const t=o[e.index],i=null==t?"":String(t);n.has(i)||(n.add(i),r.push(i))}e.sharedStrings=r,e.sharedIndex=new Map(r.map((e,t)=>[e,t]))}return{fields:n,dataFieldDefs:o}}(e,t),i=function(e,t){const n=Ny("cacheSource",{type:"worksheet"},[Sy("worksheetSource",{ref:e.ref,sheet:e.sheetName})]),r=[];for(const n of t.fields)r.push(FE(n,e.dataRows));return Qy("pivotCacheDefinition",{xmlns:vE,"xmlns:r":bE,"r:id":"rId1",refreshOnLoad:1,refreshedBy:"hucre",refreshedDate:0,createdVersion:6,refreshedVersion:6,minRefreshableVersion:3,recordCount:e.dataRows.length},[n,Ny("cacheFields",{count:t.fields.length},r)])}(t,o),s=function(e){return Qy("Relationships",{xmlns:IE},[Sy("Relationship",{Id:"rId1",Type:wE,Target:`pivotCacheRecords${e}.xml`})])}(r),a=function(e,t){const n=[];for(const r of e.dataRows){const e=[];for(const n of t.fields)e.push(kE(r[n.index],n));n.push(Ny("r",void 0,e))}return Qy("pivotCacheRecords",{xmlns:vE,"xmlns:r":bE,count:e.dataRows.length},n)}(t,o),c=function(e,t,n){const r=t.fields.filter(e=>"row"===e.axis).sort((e,t)=>e.axisOrder-t.axisOrder),o=t.fields.filter(e=>"col"===e.axis).sort((e,t)=>e.axisOrder-t.axisOrder),i=t.fields.filter(e=>"page"===e.axis).sort((e,t)=>e.axisOrder-t.axisOrder),s=e.targetCell??"A1",a=e.styleName??"PivotStyleLight16",c=e.dataCaption??"Values",l=function(e,t,n,r){const{col:o,row:i}=function(e){const t=/^([A-Z]+)(\d+)$/i.exec(e.trim());if(!t)throw new Error(`Invalid pivot targetCell "${e}" — expected an A1-style reference`);const n=t[1].toUpperCase();let r=0;for(let e=0;e<n.length;e++)r=26*r+(n.charCodeAt(e)-64);return{col:r-1,row:parseInt(t[2],10)-1}}(e),s=0,a=Math.max(1,n)+(r.dataFieldDefs.length>1?1:0),c=Math.max(1,t),l=Math.max(2,t+Math.max(1,r.dataFieldDefs.length)),u=a+2,f=DE(i,o),d=DE(i+u-1,o+l-1);return{ref:`${f}:${d}`,firstHeaderRow:s,firstDataRow:a,firstDataCol:c}}(s,r.length,o.length,t),u=[];u.push(Sy("location",l));const f=[];for(const e of t.fields)f.push(SE(e));u.push(Ny("pivotFields",{count:t.fields.length},f)),r.length>0&&(u.push(Ny("rowFields",{count:r.length},r.map(e=>Sy("field",{x:e.index})))),u.push(Ny("rowItems",{count:1},[Ny("i",void 0,[Sy("x")])])));if(o.length>0)u.push(Ny("colFields",{count:o.length},o.map(e=>Sy("field",{x:e.index})))),u.push(Ny("colItems",{count:1},[Ny("i",void 0,[Sy("x")])]));else if(t.dataFieldDefs.length>1){u.push(Ny("colFields",{count:1},[Sy("field",{x:-2})]));const e=[];for(let n=0;n<t.dataFieldDefs.length;n++)e.push(Ny("i",0===n?void 0:{i:n},[Sy("x",{v:n})]));u.push(Ny("colItems",{count:t.dataFieldDefs.length},e))}i.length>0&&u.push(Ny("pageFields",{count:i.length},i.map(e=>Sy("pageField",{fld:e.index,hier:-1}))));if(t.dataFieldDefs.length>0){const e=[];for(const n of t.dataFieldDefs){const t={name:n.displayName,fld:n.fieldIndex,baseField:0,baseItem:0};"sum"!==n.function&&(t.subtotal=n.function),void 0!==n.numberFormat&&(t.numFmtId=0),e.push(Sy("dataField",t))}u.push(Ny("dataFields",{count:t.dataFieldDefs.length},e))}return u.push(Sy("pivotTableStyleInfo",{name:a,showRowHeaders:1,showColHeaders:1,showRowStripes:0,showColStripes:0,showLastColumn:1})),Qy("pivotTableDefinition",{xmlns:vE,"xmlns:r":bE,name:e.name,cacheId:n,applyNumberFormats:0,applyBorderFormats:0,applyFontFormats:0,applyPatternFormats:0,applyAlignmentFormats:0,applyWidthHeightFormats:1,dataCaption:c,updatedVersion:6,minRefreshableVersion:3,useAutoFormatting:1,itemPrintTitles:1,createdVersion:6,indent:0,outline:1,outlineData:1,multipleFieldFilters:0},u)}(e,o,n),l=function(e){return Qy("Relationships",{xmlns:IE},[Sy("Relationship",{Id:"rId1",Type:xE,Target:`../pivotCache/pivotCacheDefinition${e}.xml`})])}(r);return{cacheDefinitionXml:i,cacheDefinitionRels:s,cacheRecordsXml:a,pivotTableXml:c,pivotTableRels:l}}function BE(e,t,n){if(n.length<2)throw new Error(`Pivot "${e.name}" source sheet "${t}" needs at least a header row plus one data row (got ${n.length}).`);const r=n[0],o=[];for(let e=0;e<r.length;e++){const t=r[e];o.push(null==t?`Column${e+1}`:String(t))}const i=[];for(let e=1;e<n.length;e++){const t=n[e],r=[];for(let e=0;e<o.length;e++)r.push(e<t.length?t[e]:null);i.push(r)}const s=new Set(o),a=[...e.rows??[],...e.columns??[],...e.pages??[]];for(const t of e.values)a.push(t.field);for(const t of a)if(!s.has(t))throw new Error(`Pivot "${e.name}" references field "${t}" which is not in the source header (have: ${o.join(", ")}).`);const c=e.sourceRange??function(e,t){if(e<=0||t<=0)throw new Error("Pivot source range must contain at least one column and row");const n=DE(0,0),r=DE(t-1,e-1);return`${n}:${r}`}(o.length,n.length);return{sheetName:t,fieldNames:o,dataRows:i,ref:c}}function EE(e,t){for(const n of e){const e=n[t];if(null!=e&&""!==e&&("number"!=typeof e||!Number.isFinite(e)))return"string"}return"number"}function FE(e,t){if("string"===e.kind){const t=[];if(e.sharedStrings)for(const n of e.sharedStrings)t.push(Sy("s",{v:n}));return Ny("cacheField",{name:e.name,numFmtId:0},[Ny("sharedItems",{count:t.length},t)])}let n=1/0,r=-1/0,o=!1;for(const i of t){const t=i[e.index];null!=t&&""!==t?"number"==typeof t&&(t<n&&(n=t),t>r&&(r=t)):o=!0}const i={containsSemiMixedTypes:0,containsString:0,containsNumber:1,containsInteger:Number.isInteger(n)&&Number.isInteger(r)?1:0};return o&&(i.containsBlank=1),Number.isFinite(n)&&(i.minValue=n),Number.isFinite(r)&&(i.maxValue=r),Ny("cacheField",{name:e.name,numFmtId:0},[Sy("sharedItems",i)])}function kE(e,t){if(null==e||""===e)return Sy("m");if("string"===t.kind){const n=t.sharedIndex?.get(String(e));return void 0!==n?Sy("x",{v:n}):Sy("s",{v:String(e)})}return"number"==typeof e&&Number.isFinite(e)?Sy("n",{v:e}):"boolean"==typeof e?Sy("b",{v:e?1:0}):Sy("s",{v:String(e)})}function SE(e){if("data"===e.axis)return Sy("pivotField",{dataField:1,showAll:0});if("hidden"===e.axis)return Sy("pivotField",{showAll:0});const t="row"===e.axis?"axisRow":"col"===e.axis?"axisCol":"axisPage",n=[];if(e.sharedStrings)for(let t=0;t<e.sharedStrings.length;t++)n.push(Sy("item",{x:t}));return n.push(Sy("item",{t:"default"})),Ny("pivotField",{axis:t,showAll:0},[Ny("items",{count:n.length},n)])}function DE(e,t){let n=t,r="";for(;n>=0;)r=String.fromCharCode(65+n%26)+r,n=Math.floor(n/26)-1;return`${r}${e+1}`}function NE(e,t){return`${"sum"===e?"Sum":"count"===e?"Count":"average"===e?"Average":"max"===e?"Max":"min"===e?"Min":"product"===e?"Product":"countNums"===e?"Count Nums":"stdDev"===e?"StdDev":"stdDevp"===e?"StdDevp":"var"===e?"Var":"Varp"} of ${t}`}function QE(e){return e.toISOString().replace(/\.\d{3}Z$/,"Z")}const ME=new TextEncoder;async function TE(e){const t=BC(e.sheets),{defaultFont:n,dateSystem:r,namedRanges:o,activeSheet:i,workbookProtection:s}=e;!function(e){const t=new Map;for(let n=0;n<e.length;n++){const r=e[n].name;wC(r,n);const o=r.toLowerCase(),i=t.get(o);if(void 0!==i)throw new LA(`Duplicate sheet name "${r}" (sheets ${i+1} and ${n+1}); Excel compares sheet names case-insensitively`);t.set(o,n)}}(t);const a=function(e){const t=e.properties;if(t?.description)return t;for(const n of e.sheets){const e=n.a11y?.summary;if(e&&e.trim().length>0)return{...t,description:e}}return t}(e),c=eE(n,{reuseStyleIdentity:!0}),l=function(){const e=[],t=new Map;return{add:function(n){const r=t.get(n);if(void 0!==r)return r;const o=e.length;return e.push(n),t.set(n,o),o},getAll:function(){return e},count:function(){return e.length}}}();let u=1;const f=[];for(const e of t)e.tables&&e.tables.length>0?(f.push(u),u+=e.tables.length):f.push(void 0);let d=1;const h=[];for(const e of t)e.pivotTables&&e.pivotTables.length>0?(h.push(d),d+=e.pivotTables.length):h.push(void 0);const p=[];for(let n=0;n<t.length;n++){const o=UC(t[n],c,l,r,f[n],"inline"===e.stringMode,h[n]);p.push(o)}const g=l.count()>0,m=[],A=[],y=new Set;let v=1,b=1;const I=[],w=[];for(let e=0;e<t.length;e++){const n=t[e],r=n.images&&n.images.length>0,o=n.textBoxes&&n.textBoxes.length>0,i=n.charts&&n.charts.length>0;if(r||o||i){const t=cE(n.images??[],v,n.textBoxes,n.charts,b);m.push(t),A.push(e+1);for(const e of t.images){const t=e.path.split(".").pop();t&&y.add(t)}n.images&&(v+=n.images.length);const r=[];if(n.charts){for(let e=0;e<n.charts.length;e++){const t=lE(n.charts[e],n.name),o=b+e;r.push({globalIndex:o,xml:t.chartXml,rels:t.chartRels}),w.push(o)}b+=n.charts.length}I.push(r)}else m.push(null),I.push([])}const{paths:x,nextIndex:C}=function(e,t,n){const r=[];let o=t;for(const t of e){if(!t.backgroundImage){r.push(null);continue}const e=tE(t.backgroundImage);r.push(`xl/media/image${o}.${e}`),n.add(e),o++}return{paths:r,nextIndex:o}}(t,v,y);v=C;const B=[],E=[];for(let e=0;e<t.length;e++){const n=t[e];if(n.cells){const t=mE(n.cells,e);t?(B.push(t),E.push(e+1)):B.push(null)}else B.push(null)}const F=[];for(const e of p)for(const t of e.tables)F.push(t.globalTableIndex);const k=[];for(let e=0;e<t.length;e++){const n=t[e];if(!n.pivotTables||0===n.pivotTables.length)continue;const r=h[e];if(void 0!==r)for(let e=0;e<n.pivotTables.length;e++){const o=n.pivotTables[e],i=o.sourceSheet??n.name,s=t.find(e=>e.name===i);if(!s)throw new Error(`Pivot "${o.name}" sourceSheet "${i}" not found in workbook`);const a=LE(s),c=r+e,l=CE(o,BE(o,i,a),c-1,c);k.push({parts:l,globalIndex:c})}}const S=k.map(e=>e.globalIndex),D=k.map(e=>({rId:`rIdPivot${e.globalIndex}`,target:`pivotCache/pivotCacheDefinition${e.globalIndex}.xml`})),N=k.map((e,t)=>({cacheId:e.globalIndex-1,rId:D[t].rId})),Q=new PB,M=function(e){if(!e?.custom)return null;const t=Object.entries(e.custom);if(0===t.length)return null;const n=[];let r=2;for(const[e,o]of t){let t;if("string"==typeof o)t=Ny("vt:lpwstr",void 0,Ey(o));else if("number"==typeof o)t=Number.isInteger(o)?Ny("vt:i4",void 0,String(o)):Ny("vt:r8",void 0,String(o));else if("boolean"==typeof o)t=Ny("vt:bool",void 0,o?"true":"false");else{if(!(o instanceof Date))continue;t=Ny("vt:filetime",void 0,QE(o))}n.push(Ny("property",{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r++,name:e},t))}return 0===n.length?null:Qy("Properties",{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},n)}(a),T=null!==M,L=void 0!==e.vbaProject&&e.vbaProject.length>0,U=c.hasCheckboxFeature(),R=p.some(e=>e.hasDynamicArray),H={sheetCount:t.length,hasSharedStrings:g,drawingIndices:A.length>0?A:void 0,chartIndices:w.length>0?w:void 0,imageExtensions:y.size>0?y:void 0,commentIndices:E.length>0?E:void 0,tableIndices:F.length>0?F:void 0,pivotTableIndices:S.length>0?S:void 0,pivotCacheDefinitionIndices:S.length>0?S:void 0,pivotCacheRecordIndices:S.length>0?S:void 0,hasCoreProps:!0,hasAppProps:!0,hasCustomProps:T,hasMacros:L,hasFeaturePropertyBag:U,hasMetadata:R};Q.add("[Content_Types].xml",ME.encode(function(e,t){let n;n="number"==typeof e?{sheetCount:e,hasSharedStrings:t??!1}:e;const r=[];if(r.push(Sy("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"})),r.push(Sy("Default",{Extension:"xml",ContentType:"application/xml"})),n.hasMacros&&r.push(Sy("Default",{Extension:"bin",ContentType:"application/vnd.ms-office.vbaProject"})),n.imageExtensions)for(const e of n.imageExtensions){const t=zB[e];t&&r.push(Sy("Default",{Extension:e,ContentType:t}))}r.push(Sy("Override",{PartName:"/xl/workbook.xml",ContentType:n.hasMacros?"application/vnd.ms-excel.sheet.macroEnabled.main+xml":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}));for(let e=1;e<=n.sheetCount;e++)r.push(Sy("Override",{PartName:`/xl/worksheets/sheet${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"}));if(r.push(Sy("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"})),r.push(Sy("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"})),n.hasSharedStrings&&r.push(Sy("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"})),n.drawingIndices)for(const e of n.drawingIndices)r.push(Sy("Override",{PartName:`/xl/drawings/drawing${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"}));if(n.chartIndices)for(const e of n.chartIndices)r.push(Sy("Override",{PartName:`/xl/charts/chart${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawingml.chart+xml"}));if(n.commentIndices&&n.commentIndices.length>0&&r.push(Sy("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"})),n.commentIndices)for(const e of n.commentIndices)r.push(Sy("Override",{PartName:`/xl/comments${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"}));if(n.tableIndices)for(const e of n.tableIndices)r.push(Sy("Override",{PartName:`/xl/tables/table${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"}));if(n.threadedCommentSheetIndices)for(const e of n.threadedCommentSheetIndices)r.push(Sy("Override",{PartName:`/xl/threadedComments/threadedComment${e}.xml`,ContentType:"application/vnd.ms-excel.threadedcomments+xml"}));if(n.hasPersons&&r.push(Sy("Override",{PartName:"/xl/persons/person.xml",ContentType:"application/vnd.ms-excel.person+xml"})),n.externalLinkIndices)for(const e of n.externalLinkIndices)r.push(Sy("Override",{PartName:`/xl/externalLinks/externalLink${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml"}));if(n.hasCellImages&&r.push(Sy("Override",{PartName:"/xl/cellimages.xml",ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})),n.pivotTableIndices)for(const e of n.pivotTableIndices)r.push(Sy("Override",{PartName:`/xl/pivotTables/pivotTable${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml"}));if(n.pivotCacheDefinitionIndices)for(const e of n.pivotCacheDefinitionIndices)r.push(Sy("Override",{PartName:`/xl/pivotCache/pivotCacheDefinition${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml"}));if(n.pivotCacheRecordIndices)for(const e of n.pivotCacheRecordIndices)r.push(Sy("Override",{PartName:`/xl/pivotCache/pivotCacheRecords${e}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml"}));if(n.slicerIndices)for(const e of n.slicerIndices)r.push(Sy("Override",{PartName:`/xl/slicers/slicer${e}.xml`,ContentType:"application/vnd.ms-excel.slicer+xml"}));if(n.slicerCacheIndices)for(const e of n.slicerCacheIndices)r.push(Sy("Override",{PartName:`/xl/slicerCaches/slicerCache${e}.xml`,ContentType:"application/vnd.ms-excel.slicerCache+xml"}));if(n.timelineIndices)for(const e of n.timelineIndices)r.push(Sy("Override",{PartName:`/xl/timelines/timeline${e}.xml`,ContentType:"application/vnd.ms-excel.timeline+xml"}));if(n.timelineCacheIndices)for(const e of n.timelineCacheIndices)r.push(Sy("Override",{PartName:`/xl/timelineCaches/timelineCache${e}.xml`,ContentType:"application/vnd.ms-excel.timelineCache+xml"}));if(n.chartStyleIndices)for(const e of n.chartStyleIndices)r.push(Sy("Override",{PartName:`/xl/charts/style${e}.xml`,ContentType:"application/vnd.ms-office.chartstyle+xml"}));if(n.chartColorsIndices)for(const e of n.chartColorsIndices)r.push(Sy("Override",{PartName:`/xl/charts/colors${e}.xml`,ContentType:"application/vnd.ms-office.chartcolorstyle+xml"}));return n.hasMetadata&&r.push(Sy("Override",{PartName:`/${yC}`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml"})),n.hasFeaturePropertyBag&&r.push(Sy("Override",{PartName:`/${Nx}`,ContentType:"application/vnd.ms-excel.featurepropertybag+xml"})),n.hasCoreProps&&r.push(Sy("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"})),n.hasAppProps&&r.push(Sy("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"})),n.hasCustomProps&&r.push(Sy("Override",{PartName:"/docProps/custom.xml",ContentType:"application/vnd.openxmlformats-officedocument.custom-properties+xml"})),Qy("Types",{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},r)}(H))),Q.add("_rels/.rels",ME.encode(function(e){const t=[];t.push(Sy("Relationship",{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Target:"xl/workbook.xml"}));let n=2;return e?.hasCoreProps&&t.push(Sy("Relationship",{Id:"rId"+n++,Type:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",Target:"docProps/core.xml"})),e?.hasAppProps&&t.push(Sy("Relationship",{Id:"rId"+n++,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Target:"docProps/app.xml"})),e?.hasCustomProps&&t.push(Sy("Relationship",{Id:"rId"+n++,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",Target:"docProps/custom.xml"})),Qy("Relationships",{xmlns:jB},t)}({hasCoreProps:!0,hasAppProps:!0,hasCustomProps:T}))),Q.add("docProps/core.xml",ME.encode(function(e){const t=[];e?.title&&t.push(Ny("dc:title",void 0,Ey(e.title))),e?.subject&&t.push(Ny("dc:subject",void 0,Ey(e.subject))),e?.creator&&t.push(Ny("dc:creator",void 0,Ey(e.creator))),e?.keywords&&t.push(Ny("cp:keywords",void 0,Ey(e.keywords))),e?.description&&t.push(Ny("dc:description",void 0,Ey(e.description))),e?.lastModifiedBy&&t.push(Ny("cp:lastModifiedBy",void 0,Ey(e.lastModifiedBy))),e?.category&&t.push(Ny("cp:category",void 0,Ey(e.category))),e?.created&&t.push(Ny("dcterms:created",{"xsi:type":"dcterms:W3CDTF"},QE(e.created)));const n=e?.modified??new Date;return t.push(Ny("dcterms:modified",{"xsi:type":"dcterms:W3CDTF"},QE(n))),Qy("cp:coreProperties",{"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},t)}(a))),Q.add("docProps/app.xml",ME.encode(function(e){const t=[];return t.push(Ny("Application",void 0,"hucre")),t.push(Ny("DocSecurity",void 0,"0")),e?.company&&t.push(Ny("Company",void 0,Ey(e.company))),e?.manager&&t.push(Ny("Manager",void 0,Ey(e.manager))),Qy("Properties",{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"},t)}(a))),M&&Q.add("docProps/custom.xml",ME.encode(M));const q=function(e,t){const n=t?[...t]:[];for(const t of e){const e=t.pageSetup;if(!e)continue;e.printArea&&n.push({name:"_xlnm.Print_Area",range:`${t.name}!${e.printArea}`,scope:t.name});const r=[];e.printTitlesRow&&r.push(`${t.name}!${e.printTitlesRow}`),e.printTitlesColumn&&r.push(`${t.name}!${e.printTitlesColumn}`),r.length>0&&n.push({name:"_xlnm.Print_Titles",range:r.join(","),scope:t.name})}return n}(t,o);Q.add("xl/workbook.xml",ME.encode(function(e,t,n,r,o,i,s,a,c){const l=[];for(let t=0;t<e.length;t++){const n=e[t],r={name:n.name,sheetId:t+1,"r:id":`rId${t+1}`};n.hidden?r.state="hidden":n.veryHidden&&(r.state="veryHidden"),l.push(Sy("sheet",r))}const u=[];if("1904"===n&&u.push(Sy("workbookPr",{date1904:1})),o){const e={};o.lockStructure&&(e.lockStructure=1),o.lockWindows&&(e.lockWindows=1),o.password&&(e.workbookPassword=bC(o.password)),u.push(Sy("workbookProtection",e))}const f=r??0;if(u.push(Ny("bookViews",void 0,[Sy("workbookView",{xWindow:0,yWindow:0,windowWidth:16384,windowHeight:8192,activeTab:f})])),u.push(Ny("sheets",void 0,l)),i&&i.length>0){const e=i.map(e=>Sy("externalReference",{"r:id":e.rId}));u.push(Ny("externalReferences",void 0,e))}if(t&&t.length>0){const n=new Map;for(let t=0;t<e.length;t++)n.set(e[t].name,t);const r=[];for(const e of t){const t={name:e.name};if(void 0!==e.scope){const r=n.get(e.scope);void 0!==r&&(t.localSheetId=r)}e.comment&&(t.comment=e.comment),r.push(Ny("definedName",t,Ey(e.range)))}u.push(Ny("definedNames",void 0,r))}if(u.push(Sy("calcPr",{calcId:0,fullCalcOnLoad:1})),s&&s.length>0){const e=s.map(e=>Sy("pivotCache",{cacheId:e.cacheId,"r:id":e.rId}));u.push(Ny("pivotCaches",void 0,e))}const d=[];if(a&&a.length>0){const e=Ny("x14:slicerCaches",void 0,a.map(e=>Sy("x14:slicerCache",{"r:id":e.rId})));d.push(Ny("ext",{uri:"{BBE1A952-AA13-448E-AADC-164F8A28A991}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},[e]))}if(c&&c.length>0){const e=Ny("x15:timelineCachePivotCaches",void 0,c.map(e=>Sy("x15:timelineCachePivotCache",{"r:id":e.rId})));d.push(Ny("ext",{uri:"{7E03D99C-DC04-49D9-9315-930204A7B6E9}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},[e]))}return d.length>0&&u.push(Ny("extLst",void 0,d)),Qy("workbook",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},u)}(t,q.length>0?q:void 0,r,i,s,void 0,N.length>0?N:void 0))),Q.add("xl/_rels/workbook.xml.rels",ME.encode(function(e,t,n,r,o,i,s,a,c,l,u){const f=[];for(let t=1;t<=e;t++)f.push(Sy("Relationship",{Id:`rId${t}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",Target:`worksheets/sheet${t}.xml`}));let d=e+1;if(f.push(Sy("Relationship",{Id:`rId${d}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Target:"styles.xml"})),d++,t&&(f.push(Sy("Relationship",{Id:`rId${d}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Target:"sharedStrings.xml"})),d++),f.push(Sy("Relationship",{Id:`rId${d}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Target:"theme/theme1.xml"})),d++,u&&(f.push(Sy("Relationship",{Id:`rId${d}`,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",Target:"metadata.xml"})),d++),n&&(f.push(Sy("Relationship",{Id:`rId${d}`,Type:"http://schemas.microsoft.com/office/2006/relationships/vbaProject",Target:"vbaProject.bin"})),d++),r&&(f.push(Sy("Relationship",{Id:`rId${d}`,Type:"http://schemas.microsoft.com/office/2022/11/relationships/FeaturePropertyBag",Target:"featurePropertyBag/featurePropertyBag.xml"})),d++),o&&(f.push(Sy("Relationship",{Id:`rId${d}`,Type:"http://schemas.microsoft.com/office/2017/10/relationships/person",Target:"persons/person.xml"})),d++),i){for(const e of i)f.push(Sy("Relationship",{Id:e.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",Target:e.target}));d+=i.length}if(l&&(f.push(Sy("Relationship",{Id:`rId${d}`,Type:"http://www.wps.cn/officeDocument/2017/relationships/cellimage",Target:"cellimages.xml"})),d++),s)for(const e of s)f.push(Sy("Relationship",{Id:e.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition",Target:e.target}));if(a)for(const e of a)f.push(Sy("Relationship",{Id:e.rId,Type:"http://schemas.microsoft.com/office/2007/relationships/slicerCache",Target:e.target}));if(c)for(const e of c)f.push(Sy("Relationship",{Id:e.rId,Type:"http://schemas.microsoft.com/office/2011/relationships/timelineCache",Target:e.target}));return Qy("Relationships",{xmlns:jB},f)}(t.length,g,L,U,void 0,void 0,D.length>0?D:void 0,void 0,void 0,void 0,R))),Q.add("xl/styles.xml",ME.encode(c.toXml())),Q.add("xl/theme/theme1.xml",ME.encode('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light"/><a:ea typeface=""/><a:cs typeface=""/></a:majorFont><a:minorFont><a:latin typeface="Calibri"/><a:ea typeface=""/><a:cs typeface=""/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln><a:ln w="12700"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln><a:ln w="19050"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements></a:theme>')),g&&Q.add("xl/sharedStrings.xml",ME.encode(function(e){const t=e.getAll(),n=t.length;if(0===n)return Qy("sst",{xmlns:EC,count:0,uniqueCount:0},"");const r=[];for(const e of t)r.push(Ny("si",void 0,[Dy(e)]));return Qy("sst",{xmlns:EC,count:n,uniqueCount:n},r)}(l))),R&&Q.add(yC,ME.encode(function(){const e=Sy("metadataType",{name:mC,minSupportedVersion:12e4,copy:1,pasteAll:1,pasteValues:1,merge:1,splitFirst:1,rowColShift:1,clearFormats:1,clearComments:1,assign:1,coerce:1,cellMeta:1}),t=Ny("bk",void 0,[Ny("extLst",void 0,[Ny("ext",{uri:AC},[Sy("xda:dynamicArrayProperties",{fDynamic:1,fCollapsed:0})])])]),n=Ny("bk",void 0,[Sy("rc",{t:1,v:0})]);return Qy("metadata",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:xda":"http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray"},[Ny("metadataTypes",{count:1},[e]),Ny("futureMetadata",{name:mC,count:1},[t]),Ny("cellMetadata",{count:1},[n])])}())),U&&Q.add(Nx,ME.encode(function(){const e=[Sy("bag",{type:"Checkbox"}),Ny("bag",{type:"XFControls"},[Ny("bagId",{k:"CellControl"},"0")]),Ny("bag",{type:"XFComplement"},[Ny("bagId",{k:"XFControls"},"1")]),Ny("bag",{type:"XFComplements",extRef:"XFComplementsMapperExtRef"},[Ny("a",{k:"MappedFeaturePropertyBags"},[Ny("bagId",void 0,"2")])])];return Qy("FeaturePropertyBags",{xmlns:Sx},e)}())),L&&Q.add("xl/vbaProject.bin",e.vbaProject);for(let e=0;e<p.length;e++){const n=p[e],r=m[e],o=B[e];Q.add(`xl/worksheets/sheet${e+1}.xml`,ME.encode(n.xml));const i=n.hyperlinkRelationships.length>0,s=null!==r&&null!==n.drawingRId,a=null!==o&&null!==n.legacyDrawingRId,c=n.tables.length>0,l=null!==n.pictureRId&&null!==x[e],u=n.pivotTables.length>0;if(i||s||a||c||l||u){const t=[];for(const e of n.hyperlinkRelationships)t.push(Sy("Relationship",{Id:e.id,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Target:e.target,TargetMode:"External"}));s&&n.drawingRId&&t.push(Sy("Relationship",{Id:n.drawingRId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/drawing${e+1}.xml`})),a&&n.legacyDrawingRId&&n.commentsRId&&(t.push(Sy("Relationship",{Id:n.legacyDrawingRId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Target:`../drawings/vmlDrawing${e+1}.vml`})),t.push(Sy("Relationship",{Id:n.commentsRId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",Target:`../comments${e+1}.xml`})));for(const e of n.tables)t.push(Sy("Relationship",{Id:e.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table",Target:`../tables/table${e.globalTableIndex}.xml`}));if(l&&n.pictureRId&&x[e]){const r=`../${x[e].slice(3)}`;t.push(Sy("Relationship",{Id:n.pictureRId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:r}))}for(const e of n.pivotTables)t.push(Sy("Relationship",{Id:e.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable",Target:`../pivotTables/pivotTable${e.globalPivotIndex}.xml`}));const r=Qy("Relationships",{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},t);Q.add(`xl/worksheets/_rels/sheet${e+1}.xml.rels`,ME.encode(r))}if(r){Q.add(`xl/drawings/drawing${e+1}.xml`,ME.encode(r.drawingXml)),Q.add(`xl/drawings/_rels/drawing${e+1}.xml.rels`,ME.encode(r.drawingRels));for(const e of r.images)Q.add(e.path,e.data,{compress:!1})}const f=I[e];if(f&&f.length>0)for(const e of f)Q.add(`xl/charts/chart${e.globalIndex}.xml`,ME.encode(e.xml)),Q.add(`xl/charts/_rels/chart${e.globalIndex}.xml.rels`,ME.encode(e.rels));l&&x[e]&&t[e].backgroundImage&&Q.add(x[e],t[e].backgroundImage,{compress:!1}),o&&(Q.add(`xl/comments${e+1}.xml`,ME.encode(o.commentsXml)),Q.add(`xl/drawings/vmlDrawing${e+1}.vml`,ME.encode(o.vmlXml)));const d=t[e];if(d.tables&&d.tables.length>0)for(let e=0;e<d.tables.length;e++){const t=d.tables[e],r=n.tables[e].globalTableIndex;let o=t.range;o||(o=yE(t,d));const i=AE({...t,range:o},r);Q.add(`xl/tables/table${r}.xml`,ME.encode(i.tableXml))}}for(const e of k){const t=e.globalIndex;Q.add(`xl/pivotCache/pivotCacheDefinition${t}.xml`,ME.encode(e.parts.cacheDefinitionXml)),Q.add(`xl/pivotCache/_rels/pivotCacheDefinition${t}.xml.rels`,ME.encode(e.parts.cacheDefinitionRels)),Q.add(`xl/pivotCache/pivotCacheRecords${t}.xml`,ME.encode(e.parts.cacheRecordsXml)),Q.add(`xl/pivotTables/pivotTable${t}.xml`,ME.encode(e.parts.pivotTableXml)),Q.add(`xl/pivotTables/_rels/pivotTable${t}.xml.rels`,ME.encode(e.parts.pivotTableRels))}const O=await Q.build(),P=e.encryption;return P?.password?ww(O,P.password,{spinCount:P.spinCount}):O}function LE(e){if(e.rows&&e.rows.length>0)return e.rows.map(e=>e.map(CC));if(e.data&&e.data.length>0&&e.columns&&e.columns.length>0){const t=[],n=e.columns.map(e=>e.header??e.key??"");t.push(n);for(const n of e.data){const r=e.columns.map(e=>{if(!e.key)return null;const t=n[e.key];return void 0===t?null:lC(t)});t.push(r)}return t}return[]}async function UE(e){if(!Ce(e))return{error:"wb is not an effective object"};if(!we(Ie(e,"sheets")))return{error:"wb.sheets is not an array"};let t=null;try{t=await TE(e)}catch(e){return{error:e}}return t}async function RE(e,t="data",n){if(!Ee(e)){let t="no filename";return console.log(t,e),{error:t}}if(Ee(t)||(t="data"),!we(n)){let e="data is not an array";return console.log(e,n),{error:e}}we(n)&&Ce(Ie(n,0,null))&&(n=cr(n));let r=DA(n,t);if(De(r,"error"))return console.log(r.error),r;let o=await UE(r);if(De(o,"error"))return console.log(o.error),o;if(Vs())kA(e,new Blob([o]));else{(await import("fs")).default.writeFileSync(e,o)}}function HE(e){if(!zs(e))return new Blob;return new Blob([e])}function qE(e,t,n=""){if(!Dn(t))return{};let r={};return mn(t,function(t){r[t]=Ie(e,t,n)}),r}function OE(e,t){if(!xe(e))return{};if(!Dn(t))return{};let n={};return mn(t,function(t){De(e,t)&&(n[t]=Ie(e,t))}),n}function PE(e,t=0,n={}){di(t)||(t=0),t=jo(t);let r=Ie(n,"rounding","");return"ROUND_HALF_UP"!==r&&"ROUND_HALF_EVEN"!==r&&(r="ROUND_HALF_UP"),Se(e)?new Vc(e).toDecimalPlaces(t,Vc[r]).toNumber():""}function zE(e,t={}){if(!Se(e))throw new Error("v is not a number");let n=Ie(t,"returnDigit");if(ir(n)||(n=!1),xr(e))return n?0:Ds(e);let r=null,o=null;for(let t=1;t<=16;t++){let n=e*Math.pow(10,t);if(Math.abs(n-Math.round(n))<1e-9){r=t,o=Wc(e,t);break}}return null===o&&(r=16,o=Ds(e)),n?r:o}let jE=e=>{let t=1;e<0&&(t=-1);let n=null;if((e=Math.abs(e))<.1)for(let r=1;r<16;r++){let o=Math.pow(10,r);if((e*=o)<1){n={r:1/o,v:t*e};break}}else{if(e<1)return{r:1,v:t*e};if(e>=1)for(let r=1;r<16;r++){let o=Math.pow(10,r);if((e/=o)<1){n={r:o,v:t*e};break}}}if(null===n)throw new Error(`can not normalize v[${e}]`);return n};function $E(e,t,n={}){if(!Ee(e))return"";if(!di(t))return e;if(t=jo(t),e.length<=t)return e;let r=Ie(n,"funWithMsg"),o="";if(ls(r)){let n=r(e,t);Ee(n)&&(o=n)}return Zi(e,t)+`...${o}`}function YE(e,t={}){let n=Ie(t,"fs"),r=!1;try{n.statSync(e),r=!0}catch{r=!1}return r}function GE(e,t={}){let n=Ie(t,"fs");return!!YE(e,{fs:n})&&(!n.lstatSync(e).isDirectory()&&!n.lstatSync(e).isSymbolicLink())}function VE(e){return GE(e,{fs:i})}function JE(e,t={}){let n=null,r=Ie(t,"fs"),o="";try{o=r.readFileSync(e,"utf8")}catch(e){n=e}return null!==n?{error:n}:{success:o}}function WE(e){return JE(e,{fs:i})}function _E(e){let t=Gs();return s(Number(e),"SIGKILL",n=>{n?t.reject(n):t.resolve(`pid[${e}] killed`)}),t}function XE(e,t){if("win32"!==process.platform)return{file:e,args:t};let n=function(e){if("win32"!==process.platform)return e;if(/\.(cmd|exe|bat|ps1)$/i.test(e))return e;if(o.isAbsolute(e))return e;try{let t=r.execFileSync("where",[e],{encoding:"utf8",timeout:5e3,windowsHide:!0,shell:!1,stdio:["ignore","pipe","ignore"]}).trim().split(/\r?\n/),n=t.find(e=>/\.cmd$/i.test(e));return n||(t.find(e=>/\.exe$/i.test(e))||t[0]||e)}catch{return e}}(e);if(/\.exe$/i.test(n))return{file:n,args:t};if(/\.(cmd|bat)$/i.test(n)){let e=function(e){let t=Ie(WE(e),"success","");if(!Ee(t))return null;let n=t.match(/%dp0%\\(node_modules\\[^"]+)"/i);if(!n)return null;let r=o.dirname(e),i=o.join(r,n[1]);return VE(i)?i:null}(n);if(e)return/\.exe$/i.test(e)?{file:e,args:t}:{file:process.execPath,args:[e,...t]};let r=t.map(e=>`"${e.replace(/(\\*)"/g,'$1$1\\"').replace(/(\\*)$/,"$1$1")}"`.replace(/[()%!^"<>&|]/g,"^$&")),s=`${i=n,i.replace(/[()%!^"<>&|;, ]/g,"^$&")} ${r.join(" ")}`;return{file:process.env.comspec||process.env.COMSPEC||"cmd.exe",args:["/d","/s","/c",`"${s}"`],opt:{windowsVerbatimArguments:!0}}}var i;return{file:n,args:t}}let KE={funWithMsg:e=>`(truncated, total ${e.length} chars)`};function ZE(e,t=[],n={}){let{timeoutMs:o=12e4,cwd:i=process.cwd(),input:s,validate:a,maxBuffer:c=10485760,onStdout:l,onStderr:u,env:f}=n,d=function(e){if(ls(e))return e;if(!Ee(e))return null;let t=e.split(",").map(e=>e.trim()).filter(Boolean);return 0===t.length?null:e=>{for(let n of t)if("nonempty"===n){if(!Ee(e)||""===e.trim())return!1}else if("json"===n)try{JSON.parse(e)}catch{return!1}else if("min:"===Zi(n,4)){let t=ts(n,4);if(!Se(t))return!1;let r=jo(t);if(!Ee(e)||e.length<r)return!1}return!0}}(a),h=Date.now(),p=Gs(),g={...process.env,PYTHONIOENCODING:"utf-8"};if(void 0!==f){if("win32"===process.platform){let e=Object.keys(f).map(e=>e.toLowerCase());for(let t of Object.keys(g))e.includes(t.toLowerCase())&&delete g[t]}g={...g,...f}}let m=XE(e,t),A=r.spawn(m.file,m.args,{cwd:i,stdio:["pipe","pipe","pipe"],windowsHide:!0,env:g,...m.opt}),y="",v="",b=new TextDecoder("utf-8"),I=new TextDecoder("utf-8"),w=!1,x=!1;A.stdout.on("data",e=>{let t=b.decode(e,{stream:!0});t&&(ls(l)&&l(t),y.length<c&&(y+=t))}),A.stderr.on("data",e=>{let t=I.decode(e,{stream:!0});t&&(ls(u)&&u(t),v.length<c&&(v+=t))}),A.stdin.on("error",()=>{}),void 0!==s&&A.stdin.write(s,"utf8"),A.stdin.end();let C=setTimeout(()=>{w||(x=!0,_E(A.pid).catch(()=>{}),setTimeout(()=>{w||(w=!0,p.resolve({ok:!1,stdout:$E(y,500,KE),stderr:$E(v,500,KE),code:null,error:`TIMEOUT after ${o/1e3}s(子進程未能結束)`,durationMs:Date.now()-h,pid:A.pid}))},3e3).unref())},o);return A.on("error",e=>{w||(w=!0,clearTimeout(C),p.resolve({ok:!1,stdout:"",stderr:"",code:null,error:`${e.code||"UNKNOWN"}: ${e.message}`,durationMs:Date.now()-h,pid:A.pid}))}),A.on("close",(e,t)=>{if(w)return;w=!0,clearTimeout(C);let n=b.decode();n&&y.length<c&&(y+=n);let r=I.decode();r&&v.length<c&&(v+=r);let i=Date.now()-h;x?p.resolve({ok:!1,stdout:$E(y,500,KE),stderr:$E(v,500,KE),code:e,error:`TIMEOUT after ${o/1e3}s`,durationMs:i,pid:A.pid}):0===e?!d||d(y)?p.resolve({ok:!0,stdout:y,stderr:v,code:0,error:"",durationMs:i,pid:A.pid}):p.resolve({ok:!1,stdout:$E(y,500,KE),stderr:$E(v,500,KE),code:0,error:"OUTPUT_VALIDATION_FAILED",durationMs:i,pid:A.pid}):p.resolve({ok:!1,stdout:$E(y,500,KE),stderr:$E(v,1e3,KE),code:e,error:t?`Signal: ${t}`:`Exit code ${e}`,durationMs:i,pid:A.pid})}),p}function eF(e,t){return e>t}function tF(e){return e&&e.length?ip(e,cn,eF):void 0}function nF(e){return null==e?[]:function(e,t){return he(t,function(t){return e[t]})}(e,ft(e))}function rF(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}function oF(e,t,n,r){return ht(e,function(e,o,i){t(r,e,n(e),i)}),r}var iF,sF,aF=Object.prototype.hasOwnProperty,cF=(iF=function(e,t,n){aF.call(e,n)?e[n].push(t):eo(e,n,[t])},function(e,t){var n=v(e)?rF:oF,r=sF?sF():{};return n(e,iF,fn(t),r)}),lF=cF;function uF(e,t){if(!we(e)||!we(t))return[];if(e.length!==t.length)return[];return yn(e,function(n,r){return ig(e[r],t[r])})}function fF(e,t={}){let n=Ie(t,"fs");if(!YE(e,{fs:n}))return!1;let r=n.lstatSync(e);return!r.isFile()&&!r.isSymbolicLink()}function dF(e,t={}){let n=Ie(t,"fs");if(fF(e,{fs:n}))return{success:"input folder is already exists: "+e};if(YE(e,{fs:n}))return{error:"input path already exists: "+e};try{n.mkdirSync(e,{recursive:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function hF(e,t={}){let n=Ie(t,"path"),r=Ie(t,"fs");if(!YE(e,{fs:r})){let t=dF(e,{fs:r});return t.error?t.error:{success:"done: "+e}}if(!fF(e,{fs:r}))return{error:"input path is not a folder"};try{let t=r.readdirSync(e);for(let o of t){let t=n.join(e,o);r.statSync(t).isDirectory()?r.rmSync(t,{recursive:!0,force:!0}):r.unlinkSync(t)}}catch(e){return{error:e}}return{success:"done: "+e}}function pF(e,t,n={}){let r=Ie(n,"path"),o=Ie(n,"fs"),i=Ie(n,"useSync","");ir(i)||(i=!0);let s="";return s=i?function(e,t,n={}){let r=Ie(n,"path"),o=Ie(n,"fs");if(!GE(e,{fs:o}))return{error:`fpSrc[${e}] is not a file`};try{dF(r.dirname(t),{fs:o}),o.copyFileSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}(e,t,{path:r,fs:o}):async function(e,t,n={}){let r=Ie(n,"path"),o=Ie(n,"fs");if(!GE(e,{fs:o}))return{error:`fpSrc[${e}] is not a file`};let i=null;return await(async(e,t)=>{dF(r.dirname(t),{fs:o}),await new Promise((n,r)=>{let i=o.createReadStream(e),s=o.createWriteStream(t);i.on("error",r),s.on("error",r),s.on("finish",n),i.pipe(s)})})(e,t).then(()=>{i={success:"done: "+t}}).catch(e=>{i={error:e}}),i}(e,t,{path:r,fs:o}),s}function gF(e,t,n={}){let r=Ie(n,"path"),o=Ie(n,"fs");if(!fF(e,{fs:o}))return{error:`fpSrc[${e}] is not a folder`};try{o.readdirSync(e).forEach(function(n){let i=r.resolve(e,n),s=r.resolve(t,n),a=o.lstatSync(i);if(a.isDirectory())dF(s,{fs:o}),gF(i,s,{path:r,fs:o});else if(a.isSymbolicLink()){let e=o.readlinkSync(i);o.symlinkSync(e,s)}else dF(r.dirname(s),{fs:o}),o.copyFileSync(i,s)})}catch(e){return{error:e}}return{success:"done: "+t}}function mF(e,t,n={}){let r=Ie(n,"path"),o=Ie(n,"fs"),i=Ie(n,"useSync","");ir(i)||(i=!0);let s="";return s=i?gF(e,t,{path:r,fs:o}):async function(e,t,n={}){let r=Ie(n,"path"),o=Ie(n,"fs");if(!fF(e,{fs:o}))return{error:`fpSrc[${e}] is not a folder`};let i=async(e,t)=>{let n=o.readdirSync(e);for(let s of n){let n=r.join(e,s),a=r.join(t,s),c=o.lstatSync(n);if(c.isDirectory())dF(a,{fs:o}),await i(n,a);else if(c.isSymbolicLink()){let e=o.readlinkSync(n);o.symlinkSync(e,a)}else dF(r.dirname(a),{fs:o}),await new Promise((e,t)=>{let r=o.createReadStream(n),i=o.createWriteStream(a);r.on("error",t),i.on("error",t),i.on("finish",e),r.pipe(i)})}},s=null;return await i(e,t).then(()=>{s={success:"done: "+t}}).catch(e=>{s={error:e}}),s}(e,t,{path:r,fs:o}),s}function AF(e){if(!Ee(e))return{path:"",isRoot:!1};for(;e.indexOf("\\\\")>=0;)e=e.replace("\\\\","\\");for(;e.indexOf("//")>=0;)e=e.replace("//","/");if(":"===es(e,1))return{path:`${e}\\`,isRoot:!0};if("\\"===es(e,1)){let t=Qs(e,1);return":"===es(t,1)?{path:e,isRoot:!0}:{path:t,isRoot:!1}}if("/"===es(e,1)){let t=Qs(e,1);return 0===t.length?{path:e,isRoot:!0}:{path:t,isRoot:!1}}return{path:e,isRoot:!1}}function yF(e){if(!Ee(e))return"";let t=AF(e);if(t.isRoot)return t.path;let n=t.path;try{n=n.split("\\").pop().split("/").pop()}catch(e){}return n}function vF(e){if(!Ee(e))return"";let t=AF(e);if(t.isRoot)return t.path;let n=yF(e=t.path);if(!Ee(n))return e;let r=AF(e=Qs(e,n.length));return r.isRoot,r.path}function bF(e,t="",n={}){let r=Ie(n,"fs"),o=Ie(n,"encoding","");if(Ee(o)||(o="utf8"),YE(e,{fs:r}))return{error:"input path already exists: "+e};if(GE(e,{fs:r}))return{error:"input file is already exists: "+e};let i=vF(e);fF(i,{fs:r})||dF(i,{fs:r});try{r.writeFileSync(e,t,{encoding:o})}catch(e){return{error:e}}return{success:"done: "+e}}function IF(e){return dF(e,{fs:i})}function wF(e,t={}){let n=Ie(t,"fs");if(!YE(e,{fs:n}))return{success:"file does not exist: "+e};if(!GE(e,{fs:n}))return{error:"input path is not a file: "+e};try{n.unlinkSync(e)}catch(e){return{error:e}}return{success:"done: "+e}}async function xF(e,t={}){let n=Ie(t,"numRetry");$o(n)||(n=5),n=jo(n);let r=Ie(t,"fs",null);if(!YE(e,{fs:r}))return"file does not exist: "+e;if(!GE(e,{fs:r}))return Promise.reject("input path is not a file: "+e);for(let t=0;t<n;t++)try{r.unlinkSync(e);break}catch(e){if("EBUSY"!==e.code)return Promise.reject(e);await ua(300)}return"done: "+e}function CF(e,t={}){let n=Ie(t,"fs");if(!YE(e,{fs:n}))return{success:"folder does not exist: "+e};if(!fF(e,{fs:n}))return{error:"input path is not a folder: "+e};try{n.rmSync(e,{recursive:!0,force:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function BF(e){return CF(e,{fs:i})}async function EF(e,t={}){let n=Ie(t,"numRetry");$o(n)||(n=5),n=jo(n);let r=Ie(t,"fs",null);if(!YE(e,{fs:r}))return"folder does not exist: "+e;if(!fF(e,{fs:r}))return Promise.reject("input path is not a folder: "+e);for(let t=0;t<n;t++)try{r.rmSync(e,{recursive:!0,force:!0});break}catch(e){if("EBUSY"!==e.code)return Promise.reject(e);await ua(300)}return"done: "+e}async function FF(e,t,n={}){let r="",o=Ie(n,"fs"),i=Ie(n,"Readable");if(!Ee(e))throw new Error("urlIn in not an effective string");let s=vF(t),a=Ie(n,"fnOut","");Ee(a)||(a=yF(t)),fF(s,{fs:o})||dF(s,{fs:o});let c=Gs();try{let n=await fetch(e);if(!n.ok)return c.reject(n.statusText),c;let s=o.createWriteStream(t);i.fromWeb(n.body).pipe(s),s.on("finish",()=>{c.resolve(t)}),s.on("error",e=>{r=e.message,c.reject(r)})}catch(e){r=e.message,c.reject(r)}return c}function kF(){if(!ls(t))throw new Error("invalid dayjs");return t().format("YYYY-MM-DDTHH:mm:ssZ")}function SF(e){if(!Ee(e))return"";let t=yF(e),n=Mi(t,".");if(rr(n)<=1)return t;let r="";try{n=Ti(n),r=gi(n,".")}catch(e){}return r}function DF(e){return fF(e,{fs:i})}function NF(e,t={}){let n=Ie(t,"polling");ir(n)||(n=!1);let r=Ie(t,"timeInterval");$o(r)||(r=100),r=jo(r);let s=Ie(t,"timeBinaryInterval");$o(s)||(s=300),s=jo(s);let a=new u.EventEmitter,c=e,l=null,d=setInterval(()=>{if(null===l)DF(c)&&(l=f.watch(c,{usePolling:n,interval:r,binaryInterval:s,awaitWriteFinish:!0}),l.on("all",(e,t,n)=>{t=o.resolve(t),a.emit("change",{type:e,fp:t,stats:n}),"unlinkDir"===e&&o.resolve(c)===t&&setTimeout(()=>{h()},1)}));else if(!DF(c)){let e=i.fstatSync;a.emit("change",{type:"unlinkDir",fp:o.resolve(c),stats:e}),setTimeout(()=>{h()},1)}},r),h=()=>{if(null!==l){try{l.unwatch(c)}catch(e){console.log(e)}l.close().catch(e=>{console.log(e)}).finally(()=>{l=null})}};return a.clear=()=>{h(),clearInterval(d)},a}function QF(e,t={}){let n=Ie(t,"fs"),r=Ie(t,"crypto"),o=Ie(t,"type","");Ee(o)||(o="sha512");let i=Gs();if(!GE(e,{fs:n}))return i.reject(`fp[${e}] is not a file`),i;try{let t=r.createHash(o),s=n.createReadStream(e);s.on("readable",()=>{let e=s.read();e?t.update(e):i.resolve(t.digest("hex"))}),s.on("error",e=>{i.reject(e.toString())})}catch(e){i.reject(e.toString())}return i}const MF=new Uint8Array([0,97,115,109,1,0,0,0,1,48,8,96,3,127,127,127,1,127,96,3,127,127,127,0,96,2,127,127,0,96,1,127,1,127,96,3,127,127,126,1,126,96,3,126,127,127,1,126,96,2,127,126,0,96,1,127,1,126,3,11,10,0,0,2,1,3,4,5,6,1,7,5,3,1,0,1,7,85,9,3,109,101,109,2,0,5,120,120,104,51,50,0,0,6,105,110,105,116,51,50,0,2,8,117,112,100,97,116,101,51,50,0,3,8,100,105,103,101,115,116,51,50,0,4,5,120,120,104,54,52,0,5,6,105,110,105,116,54,52,0,7,8,117,112,100,97,116,101,54,52,0,8,8,100,105,103,101,115,116,54,52,0,9,10,251,22,10,242,1,1,4,127,32,0,32,1,106,33,3,32,1,65,16,79,4,127,32,3,65,16,107,33,6,32,2,65,168,136,141,161,2,106,33,3,32,2,65,137,235,208,208,7,107,33,4,32,2,65,207,140,162,142,6,106,33,5,3,64,32,3,32,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,4,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,2,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,5,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,6,32,0,65,4,106,34,0,79,13,0,11,32,2,65,12,119,32,5,65,18,119,106,32,4,65,7,119,106,32,3,65,1,119,106,5,32,2,65,177,207,217,178,1,106,11,32,1,106,32,0,32,1,65,15,113,16,1,11,146,1,0,32,1,32,2,106,33,2,3,64,32,1,65,4,106,32,2,75,69,4,64,32,0,32,1,40,2,0,65,189,220,202,149,124,108,106,65,17,119,65,175,214,211,190,2,108,33,0,32,1,65,4,106,33,1,12,1,11,11,3,64,32,1,32,2,79,69,4,64,32,0,32,1,45,0,0,65,177,207,217,178,1,108,106,65,11,119,65,177,243,221,241,121,108,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,65,15,118,115,65,247,148,175,175,120,108,34,0,65,13,118,32,0,115,65,189,220,202,149,124,108,34,0,65,16,118,32,0,115,11,63,0,32,0,65,8,106,32,1,65,168,136,141,161,2,106,54,2,0,32,0,65,12,106,32,1,65,137,235,208,208,7,107,54,2,0,32,0,65,16,106,32,1,54,2,0,32,0,65,20,106,32,1,65,207,140,162,142,6,106,54,2,0,11,195,4,1,6,127,32,1,32,2,106,33,6,32,0,65,24,106,33,4,32,0,65,40,106,40,2,0,33,3,32,0,32,0,40,2,0,32,2,106,54,2,0,32,0,65,4,106,34,5,32,5,40,2,0,32,2,65,16,79,32,0,40,2,0,65,16,79,114,114,54,2,0,32,2,32,3,106,65,16,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,40,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,16,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,40,2,0,32,4,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,12,106,34,3,32,3,40,2,0,32,4,65,4,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,16,106,34,3,32,3,40,2,0,32,4,65,8,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,20,106,34,3,32,3,40,2,0,32,4,65,12,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,54,2,0,32,0,65,40,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,32,6,65,16,107,77,4,64,32,6,65,16,107,33,8,32,0,65,8,106,40,2,0,33,2,32,0,65,12,106,40,2,0,33,3,32,0,65,16,106,40,2,0,33,5,32,0,65,20,106,40,2,0,33,7,3,64,32,2,32,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,2,32,3,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,3,32,5,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,5,32,7,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,7,32,8,32,1,65,4,106,34,1,79,13,0,11,32,0,65,8,106,32,2,54,2,0,32,0,65,12,106,32,3,54,2,0,32,0,65,16,106,32,5,54,2,0,32,0,65,20,106,32,7,54,2,0,11,32,1,32,6,73,4,64,32,4,32,1,32,6,32,1,107,34,1,252,10,0,0,32,0,65,40,106,32,1,54,2,0,11,11,97,1,1,127,32,0,65,16,106,40,2,0,33,1,32,0,65,4,106,40,2,0,4,127,32,1,65,12,119,32,0,65,20,106,40,2,0,65,18,119,106,32,0,65,12,106,40,2,0,65,7,119,106,32,0,65,8,106,40,2,0,65,1,119,106,5,32,1,65,177,207,217,178,1,106,11,32,0,40,2,0,106,32,0,65,24,106,32,0,65,40,106,40,2,0,16,1,11,255,3,2,3,126,1,127,32,0,32,1,106,33,6,32,1,65,32,79,4,126,32,6,65,32,107,33,6,32,2,66,214,235,130,238,234,253,137,245,224,0,124,33,3,32,2,66,177,169,172,193,173,184,212,166,61,125,33,4,32,2,66,249,234,208,208,231,201,161,228,225,0,124,33,5,3,64,32,3,32,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,3,32,4,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,4,32,2,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,2,32,5,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,5,32,6,32,0,65,8,106,34,0,79,13,0,11,32,2,66,12,137,32,5,66,18,137,124,32,4,66,7,137,124,32,3,66,1,137,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,2,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,2,66,197,207,217,178,241,229,186,234,39,124,11,32,1,173,124,32,0,32,1,65,31,113,16,6,11,134,2,0,32,1,32,2,106,33,2,3,64,32,2,32,1,65,8,106,79,4,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,27,137,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,33,0,32,1,65,8,106,33,1,12,1,11,11,32,1,65,4,106,32,2,77,4,64,32,0,32,1,53,2,0,66,135,149,175,175,152,182,222,155,158,127,126,133,66,23,137,66,207,214,211,190,210,199,171,217,66,126,66,249,243,221,241,153,246,153,171,22,124,33,0,32,1,65,4,106,33,1,11,3,64,32,1,32,2,73,4,64,32,0,32,1,49,0,0,66,197,207,217,178,241,229,186,234,39,126,133,66,11,137,66,135,149,175,175,152,182,222,155,158,127,126,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,32,0,66,33,136,133,66,207,214,211,190,210,199,171,217,66,126,34,0,32,0,66,29,136,133,66,249,243,221,241,153,246,153,171,22,126,34,0,32,0,66,32,136,133,11,77,0,32,0,65,8,106,32,1,66,214,235,130,238,234,253,137,245,224,0,124,55,3,0,32,0,65,16,106,32,1,66,177,169,172,193,173,184,212,166,61,125,55,3,0,32,0,65,24,106,32,1,55,3,0,32,0,65,32,106,32,1,66,249,234,208,208,231,201,161,228,225,0,124,55,3,0,11,244,4,2,3,127,4,126,32,1,32,2,106,33,5,32,0,65,40,106,33,4,32,0,65,200,0,106,40,2,0,33,3,32,0,32,0,41,3,0,32,2,173,124,55,3,0,32,2,32,3,106,65,32,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,200,0,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,32,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,32,3,41,3,0,32,4,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,16,106,34,3,32,3,41,3,0,32,4,65,8,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,24,106,34,3,32,3,41,3,0,32,4,65,16,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,32,106,34,3,32,3,41,3,0,32,4,65,24,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,55,3,0,32,0,65,200,0,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,65,32,106,32,5,77,4,64,32,5,65,32,107,33,2,32,0,65,8,106,41,3,0,33,6,32,0,65,16,106,41,3,0,33,7,32,0,65,24,106,41,3,0,33,8,32,0,65,32,106,41,3,0,33,9,3,64,32,6,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,7,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,7,32,8,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,8,32,9,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,9,32,2,32,1,65,8,106,34,1,79,13,0,11,32,0,65,8,106,32,6,55,3,0,32,0,65,16,106,32,7,55,3,0,32,0,65,24,106,32,8,55,3,0,32,0,65,32,106,32,9,55,3,0,11,32,1,32,5,73,4,64,32,4,32,1,32,5,32,1,107,34,1,252,10,0,0,32,0,65,200,0,106,32,1,54,2,0,11,11,188,2,1,5,126,32,0,65,24,106,41,3,0,33,1,32,0,41,3,0,34,2,66,32,90,4,126,32,0,65,8,106,41,3,0,34,3,66,1,137,32,0,65,16,106,41,3,0,34,4,66,7,137,124,32,1,66,12,137,32,0,65,32,106,41,3,0,34,5,66,18,137,124,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,4,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,1,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,32,5,66,207,214,211,190,210,199,171,217,66,126,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,157,163,181,234,131,177,141,138,250,0,125,5,32,1,66,197,207,217,178,241,229,186,234,39,124,11,32,2,124,32,0,65,40,106,32,2,66,31,131,167,16,6,11]);async function TF(){return function(e){const{exports:{mem:t,xxh32:n,xxh64:r,init32:o,update32:i,digest32:s,init64:a,update64:c,digest64:l}}=e;let u=new Uint8Array(t.buffer);function f(e,n){if(t.buffer.byteLength<e+n){const r=Math.ceil((e+n-t.buffer.byteLength)/65536);t.grow(r),u=new Uint8Array(t.buffer)}}function d(e,t,n,r,o,i){f(e);const s=new Uint8Array(e);return u.set(s),n(0,t),s.set(u.subarray(0,e)),{update(t){let n;return u.set(s),"string"==typeof t?(f(3*t.length,e),n=m.encodeInto(t,u.subarray(e)).written):(f(t.byteLength,e),u.set(t,e),n=t.byteLength),r(0,e,n),s.set(u.subarray(0,e)),this},digest:()=>(u.set(s),i(o(0)))}}function h(e){return e>>>0}const p=2n**64n-1n;function g(e){return e&p}const m=new TextEncoder;function A(e,t=0){return f(3*e.length,0),h(n(0,m.encodeInto(e,u).written,t))}function y(e,t=0n){return f(3*e.length,0),g(r(0,m.encodeInto(e,u).written,t))}return{h32:A,h32ToString:(e,t=0)=>A(e,t).toString(16).padStart(8,"0"),h32Raw:(e,t=0)=>(f(e.byteLength,0),u.set(e),h(n(0,e.byteLength,t))),create32:(e=0)=>d(48,e,o,i,s,h),h64:y,h64ToString:(e,t=0n)=>y(e,t).toString(16).padStart(16,"0"),h64Raw:(e,t=0n)=>(f(e.byteLength,0),u.set(e),g(r(0,e.byteLength,t))),create64:(e=0n)=>d(88,e,a,c,l,g)}}((await WebAssembly.instantiate(MF)).instance)}async function LF(e,t={}){let n=Ie(t,"fs"),r=Ie(t,"chunkSize");if(Se(r)||(r=67108864),r=wr(r),!GE(e,{fs:n}))return Promise.reject("fp is not a file");let o=Gs();try{let{create64:t}=await TF(),i=t(),s=n.createReadStream(e,{highWaterMark:r});s.on("data",e=>{i.update(e)}),s.on("end",()=>{let e=i.digest().toString(16).padStart(16,"0");o.resolve(e)}),s.on("error",o.reject)}catch(e){o.reject(e.toString())}return o}function UF(e,t={}){let n=Ie(t,"fs"),r=Ie(t,"crypto"),o=Ie(t,"type","");Ee(o)||(o="sha512");let i=Ie(t,"chunkSize");Se(i)||(i=67108864),i=wr(i);let s=Gs();return GE(e,{fs:n})?"xxhash64"===o?LF(e,{fs:n,chunkSize:i}):QF(e,{fs:n,crypto:r,type:o}):(s.reject(`fp[${e}] is not a file`),s)}function RF(e,t=1,n={}){let r=1,o=Ie(n,"path"),i=Ie(n,"fs");if(!fF(e,{fs:i}))throw new Error(`fd[${e}] is not a folder`);return null!==t&&$o(t)&&(t=jo(t))<1&&(t=1),function e(n){let s=[];return fF(n,{fs:i})?(mn(i.readdirSync(n),function(a){let c=o.resolve(n,a),l=null;try{l=i.statSync(c)}catch(e){}l&&l.isDirectory()?(s.push({isFolder:!0,level:r,path:c,name:o.basename(c)}),r+=1,(r<=t||null===t)&&(s=s.concat(e(c))),r-=1):s.push({isFolder:!1,level:r,path:c,name:o.basename(c)})}),s):s}(e)}function HF(e,t=1,n={}){let r=Ie(n,"path"),o=Ie(n,"fs");if(!fF(e,{fs:o}))throw new Error(`fd[${e}] is not a folder`);let i=[];return i=RF(e,t,{path:r,fs:o}),i=rs(i,{isFolder:!1}),i=yn(i,e=>(delete e.isFolder,e)),i}async function qF(e,t=1,n={}){let r=Ie(n,"path"),o=Ie(n,"fs"),i=Ie(n,"crypto"),s=Ie(n,"type","");if(Ee(s)||(s="md5"),!fF(e,{fs:o}))throw new Error(`fd[${e}] is not a folder`);let a=HF(e,t,{path:r,fs:o});return a=await Kc(a,async e=>{let t=Ie(e,"path","");return e.hashType=s,e.hash="",Ee(t)&&(e.hash=await UF(t,{fs:o,crypto:i,type:s,useSync:!1})),e}),a}async function OF(e,t=1,n={}){return qF(e,t,{path:o,fs:i,crypto:d,...n})}async function PF(e,t={}){let n=Ie(t,"path"),r=Ie(t,"fs"),o=Ie(t,"crypto"),i=Ie(t,"type","");Ee(i)||(i="md5");let s=[],a=RF(e,null,{path:n,fs:r});return await Kc(a,async e=>{if(e.isFolder)return;let t=await QF(e.path,{fs:r,crypto:o,type:i});s.push(t)}),gi(s,"|")}function zF(e,t=1,n={}){let r=Ie(n,"path"),o=Ie(n,"fs");if(!fF(e,{fs:o}))throw new Error(`fd[${e}] is not a folder`);let i=[];return i=RF(e,t,{path:r,fs:o}),i=rs(i,{isFolder:!0}),i=yn(i,e=>(delete e.isFolder,e)),i}async function jF(e,t,n={}){let r="",o=Ie(n,"fs");if(!Dn(e))throw new Error("fpsIn in not an effective array");let i=vF(t),s=Ie(n,"fnOut","");Ee(s)||(s=yF(t)),fF(i,{fs:o})||dF(i,{fs:o});let a=Gs();try{let n=o.createWriteStream(t);for(let t=0;t<e.length;t++){let i=e[t];if(!GE(i,{fs:o}))throw new Error(`fpIn[${i}] is not a file`);let s=()=>{let e=Gs(),t=o.createReadStream(i);return t.on("error",t=>{r=t.message,e.reject(t)}),t.on("end",()=>{wF(i,{fs:o}),e.resolve()}),t.pipe(n,{end:!1}),e};await s()}n.end(),n.on("error",e=>{r=e.message,a.reject(r)}),n.on("finish",()=>{let e={filename:s,path:t};a.resolve(e)})}catch(e){r=e.message,a.reject(r)}return a}function $F(e,t,n={}){let r=Ie(n,"fs");if(!GE(e,{fs:r}))return{error:`pahOld[${e}] is not a file`};if(YE(t,{fs:r}))return{error:`pahNew[${t}] already exists`};let o=vF(t);fF(o,{fs:r})||dF(o,{fs:r});try{r.renameSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}function YF(e,t,n={}){let r=Ie(n,"fs");if(!fF(e,{fs:r}))return{error:`pahOld[${e}] is not a folder`};if(YE(t,{fs:r}))return{error:`pahNew[${t}] already exists`};let o=vF(t);fF(o,{fs:r})||dF(o,{fs:r});try{r.renameSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}}function GF(e,t,n,r={}){let o=Ie(r,"withInfor");ir(o)||(o=!0);let i={del:[],add:[],same:[],diff:[]};if(!Ee(n))return console.log("invalid key"),o&&(i.infor={}),i;we(e)||(e=[e]),we(t)||(t=[t]),e=rs(e,e=>De(e,n)),t=rs(t,e=>De(e,n));let s=new Map(t.map(e=>[e[n],e]));for(let t of e){let e=s.get(t[n]);if(e){JSON.stringify(t)===JSON.stringify(e)?i.same.push(e):i.diff.push(e),s.delete(t[n])}else i.del.push(t)}if(i.add=Array.from(s.values()),o){let e={};for(let t of i.del)e[t[n]]="del";for(let t of i.add)e[t[n]]="add";for(let t of i.diff)e[t[n]]="diff";for(let t of i.same)e[t[n]]="same";i.infor=e}return i}async function VF(e,t=1,n={}){let r=Ie(n,"path"),o=Ie(n,"fs"),i=Ie(n,"crypto"),s=Ie(n,"type","");Ee(s)||(s="md5");let a=Ie(n,"forFile",null);ir(a)||(a=!0);let c=Ie(n,"forFolder",null);if(ir(c)||(c=!1),!fF(e,{fs:o}))throw new Error(`fd[${e}] is not a folder`);let l=RF(e,t,{path:r,fs:o});return l=await Kc(l,async e=>{let t="";return a&&!e.isFolder&&(t=await QF(e.path,{fs:o,crypto:i,type:s})),c&&e.isFolder&&(t=await PF(e.path,{path:r,fs:o,crypto:i,type:s})),e.hash=t,e}),l}async function JF(e,t,n={}){let r=Ie(n,"path"),o=Ie(n,"fs"),i=Ie(n,"crypto"),s=Ie(n,"type","");if(Ee(s)||(s="md5"),!fF(e,{fs:o}))throw new Error(`fdSrc[${e}] is not a folder`);let a=!1;if(!fF(t,{fs:o}))return await mF(e,t,{path:r,fs:o,useSync:!1}),a=!0,a;let c=r.sep,l=r.sep.length,u=(e,t)=>(e=yn(e,e=>((e,t)=>{let n=e.isFolder?"folder":"file",r=e.path.replace(t,"");return Zi(r,l)===c&&(r=ts(r,l)),r=r.replaceAll("\\","/"),{id:`${n}|${r}`,isFolder:e.isFolder,name:e.name,rpath:r,hash:e.hash}})(e,t)),e),f=await VF(e,null,{path:r,fs:o,crypto:i,type:s,forFile:!0,forFolder:!1});f=u(f,r.resolve(e));let d=await VF(t,null,{path:r,fs:o,crypto:i,type:s,forFile:!0,forFolder:!1});d=u(d,r.resolve(t));let h=GF(d,f,"id",{withInfor:!1});return a=rr(h.del)>0||rr(h.add)>0||rr(h.diff)>0,await Kc(h.del,async e=>{if(e.isFolder){CF(r.resolve(t,e.rpath),{fs:o})}}),await Kc(h.del,async e=>{if(!e.isFolder){wF(r.resolve(t,e.rpath),{fs:o})}}),await Kc([...h.add,...h.diff],async n=>{if(!n.isFolder){let i=r.resolve(e,n.rpath),s=r.resolve(t,n.rpath);await pF(i,s,{path:r,fs:o,useSync:!1})}}),a}function WF(e,t={}){let n=Ie(t,"polling");ir(n)||(n=!1);let r=Ie(t,"timeInterval");$o(r)||(r=100),r=jo(r);let i=Ie(t,"timeBinaryInterval");$o(i)||(i=300),i=jo(i);let s=new u.EventEmitter,a=e,c=null,l=setInterval(()=>{null===c&&VE(a)&&(c=f.watch(a,{usePolling:n,interval:r,binaryInterval:i,awaitWriteFinish:!0}),c.on("all",(e,t,n)=>{t=o.resolve(t),s.emit("change",{type:e,fp:t,stats:n})}))},r);return s.clear=()=>{(()=>{if(null!==c){try{c.unwatch(a)}catch(e){console.log(e)}c.close().catch(e=>{console.log(e)}).finally(()=>{c=null})}})(),clearInterval(l)},s}function _F(e,t,n={}){let r=null,o=Ie(n,"fs"),i=vF(e);fF(i,{fs:o})||dF(i,{fs:o});try{o.writeFileSync(e,t,"utf8")}catch(e){r=e}return null!==r?{error:r}:{success:e}}const XF=[];for(let e=0;e<256;++e)XF.push((e+256).toString(16).slice(1));const KF=new Uint8Array(16);function ZF(){return crypto.getRandomValues(KF)}const ek={};function tk(e,t,n){let r;if(e)r=nk(e.random??e.rng?.()??ZF(),e.msecs,e.seq,t,n);else{const e=Date.now(),o=ZF();!function(e,t,n){e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++)}(ek,e,o),r=nk(o,ek.msecs,ek.seq,t,n)}return t??function(e,t=0){return(XF[e[t+0]]+XF[e[t+1]]+XF[e[t+2]]+XF[e[t+3]]+"-"+XF[e[t+4]]+XF[e[t+5]]+"-"+XF[e[t+6]]+XF[e[t+7]]+"-"+XF[e[t+8]]+XF[e[t+9]]+"-"+XF[e[t+10]]+XF[e[t+11]]+XF[e[t+12]]+XF[e[t+13]]+XF[e[t+14]]+XF[e[t+15]]).toLowerCase()}(r)}function nk(e,t,n,r,o=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(r){if(o<0||o+16>r.length)throw new RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`)}else r=new Uint8Array(16),o=0;return t??=Date.now(),n??=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9],r[o++]=t/1099511627776&255,r[o++]=t/4294967296&255,r[o++]=t/16777216&255,r[o++]=t/65536&255,r[o++]=t/256&255,r[o++]=255&t,r[o++]=112|n>>>28&15,r[o++]=n>>>20&255,r[o++]=128|n>>>14&63,r[o++]=n>>>6&255,r[o++]=n<<2&255|3&e[10],r[o++]=e[11],r[o++]=e[12],r[o++]=e[13],r[o++]=e[14],r[o++]=e[15],r}function rk(e){return"[object Uint16Array]"===Object.prototype.toString.call(e)}function ok(e){if(!(A(e)||ra(e)||zs(e)||rk(e)))return null;try{if(e.byteLength)return e.byteLength}catch(e){}try{if(e.length)return e.length}catch(e){}try{if(e.size)return e.size}catch(e){}return null}function ik(e,t=!0){if(!Dn(e)){return{error:"no data"}}let n=null;try{n=function(e,t=!0){let n=t?"\ufeff":"";return mn(e,e=>{let t=[];mn(e,e=>{Be(e)?(e=ol(e,"\r\n",""),e=ol(e,"\r",""),e=`"${e=ol(e,"\n","")}"`):e=ir(e)?e?"true":"false":Ds(e),t.push(e)}),n+=gi(t,",")+"\r\n"}),n}(e,t)}catch(e){return{error:e}}return n}function sk(e){return ir(e)?e?"true":"false":Ds(e)}function ak(e,t){let n=[];return mn(e,e=>{let r=yn(e.rows,e=>yn(e,e=>null===e?"":t?sk(e):e));n.push({sheetname:e.name,data:r})}),n}async function ck(e,t){let n=Ie(t,"fmt","ltdt");if(!cs(["ltdt","csv","array"],n))return{error:"opt.fmt is not one of 'ltdt', 'csv', 'array'"};let r,o=Ie(t,"valueToString",!0);if(!ir(o))return{error:"opt.valueToString is not a boolean"};try{r=await vB(e)}catch(e){return console.log("error: ",e),{error:"can not read data from u8a"}}let i=null;try{"ltdt"===n?i=function(e,t){let n=[];return mn(e,e=>{let r=e.rows,o=yn(Ie(r,0,[]),e=>null===e||""===e?null:sk(e)),i=[];for(let e=1;e<r.length;e++){let n=r[e];if(hn(n,e=>null===e))continue;let s={};for(let e=0;e<o.length;e++){if(null===o[e])continue;let r=Ie(n,e,null);null!==r&&(t&&(r=sk(r)),s[o[e]]=r)}i.push(s)}n.push({sheetname:e.name,data:i})}),n}(r.sheets,o):"array"===n?i=ak(r.sheets,o):"csv"===n&&(i=function(e,t){let n=ak(e,t);return mn(n,(e,t)=>{n[t].data=ik(e.data,!1)}),n}(r.sheets,o))}catch(e){return console.log("error: ",e),{error:"can not convert data"}}return i}var lk;function uk(e){if(!N(e))return!1;var t=D(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!gu(e)}function fk(e){return uk(e)}
16
16
  /*!
17
17
  * hash-wasm (https://www.npmjs.com/package/hash-wasm)
18
18
  * (c) Dani Biro
19
19
  * @license MIT
20
20
  */
21
- function Bm(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;class Em{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 Bm(this,void 0,void 0,function*(){const t=yield this.lock();try{return yield Promise.resolve(e())}finally{t()}})}}const Cm="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,xm=null!==(ym=Cm.Buffer)&&void 0!==ym?ym:null,Dm=Cm.TextEncoder?new Cm.TextEncoder:null;function Fm(e,t){return(15&e)+(e>>6|e>>3&8)<<4|(15&t)+(t>>6|t>>3&8)}const Qm="a".charCodeAt(0)-10,Sm="0".charCodeAt(0);function km(e,t,r){let n=0;for(let i=0;i<r;i++){let r=t[i]>>>4;e[n++]=r>9?r+Qm:r+Sm,r=15&t[i],e[n++]=r>9?r+Qm:r+Sm}return String.fromCharCode.apply(null,e)}const Nm=null!==xm?e=>{if("string"==typeof e){const t=xm.from(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.length)}if(xm.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 Dm.encode(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")},qm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mm=new Uint8Array(256);for(let e=0;e<64;e++)Mm[qm.charCodeAt(e)]=e;function Hm(e){const t=function(e){let t=Math.floor(.75*e.length);const r=e.length;return"="===e[r-1]&&(t-=1,"="===e[r-2]&&(t-=1)),t}(e),r=e.length,n=new Uint8Array(t);let i=0;for(let t=0;t<r;t+=4){const r=Mm[e.charCodeAt(t)],o=Mm[e.charCodeAt(t+1)],a=Mm[e.charCodeAt(t+2)],s=Mm[e.charCodeAt(t+3)];n[i]=r<<2|o>>4,i+=1,n[i]=(15&o)<<4|a>>2,i+=1,n[i]=(3&a)<<6|63&s,i+=1}return n}const Lm=16384,Um=new Em,Rm=new Map;function Om(e,t){return Bm(this,void 0,void 0,function*(){let r=null,n=null,i=!1;if("undefined"==typeof WebAssembly)throw new Error("WebAssembly is not supported in this environment!");const o=()=>new DataView(r.exports.memory.buffer).getUint32(r.exports.STATE_SIZE,!0),a=Um.dispatch(()=>Bm(this,void 0,void 0,function*(){if(!Rm.has(e.name)){const t=Hm(e.data),r=WebAssembly.compile(t);Rm.set(e.name,r)}const t=yield Rm.get(e.name);r=yield WebAssembly.instantiate(t,{})})),s=(e=null)=>{i=!0,r.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+Lm);t+=i.length,n.set(i),r.exports.Hash_Update(i.length)}})(Nm(e))},c=new Uint8Array(2*t),u=(e,o=null)=>{if(!i)throw new Error("digest() called before init()");return i=!1,r.exports.Hash_Final(o),"binary"===e?n.slice(0,t):km(c,n,t)},f=e=>"string"==typeof e?e.length<4096:e.byteLength<Lm;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(()=>Bm(this,void 0,void 0,function*(){r||(yield a);const e=r.exports.Hash_GetBuffer(),t=r.exports.memory.buffer;n=new Uint8Array(t,e,Lm)}))(),{getMemory:()=>n,writeMemory:(e,t=0)=>{n.set(e,t)},getExports:()=>r.exports,setMemorySize:e=>{r.exports.Hash_SetMemorySize(e);const t=r.exports.Hash_GetBuffer(),i=r.exports.memory.buffer;n=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=r.exports.Hash_GetState(),n=o(),a=r.exports.memory.buffer,s=new Uint8Array(a,t,n),l=new Uint8Array(4+n);return function(e,t){const r=t.length>>1;for(let n=0;n<r;n++){const r=n<<1;e[n]=Fm(t.charCodeAt(r),t.charCodeAt(r+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 n=r.exports.Hash_GetState(),a=o(),s=4+a,l=r.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 r=0;r<t.length;r++){const n=r<<1;if(t[r]!==Fm(e.charCodeAt(n),e.charCodeAt(n+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,n,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=Nm(e);return n.set(a),r.exports.Hash_Calculate(a.length,i,o),km(c,n,t)},hashLength:t}})}new Em,new Em,new Em,new Em,new Em,new Em,new Em;var Tm={name:"md5",data:"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",hash:"e6508e4b"};function Ym(){return Om(Tm,16).then(e=>{e.init();const t={init:()=>(e.init(),t),update:r=>(e.update(r),t),digest:t=>e.digest(t),save:()=>e.save(),load:r=>(e.load(r),t),blockSize:64,digestSize:16};return t})}new Em;var jm={name:"sha1",data:"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",hash:"6b530c24"};function Gm(){return Om(jm,20).then(e=>{e.init();const t={init:()=>(e.init(),t),update:r=>(e.update(r),t),digest:t=>e.digest(t),save:()=>e.save(),load:r=>(e.load(r),t),blockSize:64,digestSize:20};return t})}new Em,new Em,new Em;var Jm={name:"sha256",data:"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c2pBx6KerX1qIhkgASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAaaiICaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakHRxqk2aiIaIAIgAXMgA3EgAiABcXMgAkEedyACQRN3cyACQQp3c2ogGGoiA2oiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pB59KkoQFqIhggAyACcyABcSADIAJxcyADQR53IANBE3dzIANBCndzaiAUaiIBaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakGFldy9AmoiFCABIANzIAJxIAEgA3FzIAFBHncgAUETd3MgAUEKd3NqIBdqIgJqIhMgI2ogJiASaiAiIBFqICUgCWogEyASIBFzcSARc2ogE0EadyATQRV3cyATQQd3c2pBuMLs8AJqIhcgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAZaiIDaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakH827HpBGoiGSADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBpqIgFqIhEgCSATc3EgE3NqIBFBGncgEUEVd3MgEUEHd3NqQZOa4JkFaiIaIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGGoiAmoiEiARIAlzcSAJc2ogEkEadyASQRV3cyASQQd3c2pB1OapqAZqIhggAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAUaiIDaiITaiAoIBJqICQgEWogJyAJaiATIBIgEXNxIBFzaiATQRp3IBNBFXdzIBNBB3dzakG7laizB2oiFCADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBdqIgFqIgkgEyASc3EgEnNqIAlBGncgCUEVd3MgCUEHd3NqQa6Si454aiIXIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGWoiAmoiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pBhdnIk3lqIhkgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAaaiIDaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakGh0f+VemoiGiADIAJz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",hash:"8c18dd94"};function zm(){return Om(Jm,32).then(e=>{e.init(256);const t={init:()=>(e.init(256),t),update:r=>(e.update(r),t),digest:t=>e.digest(t),save:()=>e.save(),load:r=>(e.load(r),t),blockSize:64,digestSize:32};return t})}new Em,new Em;var Vm={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 Pm(){return Om(Vm,48).then(e=>{e.init(384);const t={init:()=>(e.init(384),t),update:r=>(e.update(r),t),digest:t=>e.digest(t),save:()=>e.save(),load:r=>(e.load(r),t),blockSize:128,digestSize:48};return t})}function Xm(){return Om(Vm,64).then(e=>{e.init(512);const t={init:()=>(e.init(512),t),update:r=>(e.update(r),t),digest:t=>e.digest(t),save:()=>e.save(),load:r=>(e.load(r),t),blockSize:128,digestSize:64};return t})}function _m(e){return"[object File]"===Object.prototype.toString.call(e)}async function Wm(e,t={}){if(!ps(e)&&!_m(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let r=Be(t,"type","");Fe(r)||(r="sha512");let n=Be(t,"chunkSize");ke(n)||(n=67108864),n=Hn(n);let i={MD5:Ym,"SHA-1":Gm,"SHA-256":zm,"SHA-384":Pm,"SHA-512":Xm,md5:Ym,sha1:Gm,sha256:zm,sha384:Pm,sha512:Xm};if(!Ne(i,r))return Promise.reject(`type[${r}] must be one of [ 'md5', 'sha1', 'sha256', 'sha384', 'sha512' ]`);let o=Be(i,r),a=await o(),s=0;for(;s<e.size;){let t=e.slice(s,s+n),r=await t.arrayBuffer();a.update(new Uint8Array(r)),s+=n}return a.digest()}async function Km(e,t={}){if(!ps(e)&&!_m(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let r=Be(t,"chunkSize");ke(r)||(r=67108864),r=Hn(r);let{create64:n}=await JA(),i=n(),o=0;for(;o<e.size;){let t=e.slice(o,o+r),n=await t.arrayBuffer();i.update(new Uint8Array(n)),o+=r}return i.digest().toString(16).padStart(16,"0")}new Em,new Em,new Em,new Em,new Em,new Em,new Em,new Em,new Em;var $m=4294967295,Zm=Math.min;function eI(e,t){if((e=Mn(e))<1||e>9007199254740991)return[];var r=$m,n=Zm(e,$m);t=Er(t),e-=$m;for(var i=Le(n,t);++r<e;)t(r);return i}function tI(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 rI(e,t="days"){if(!Fe(e))return null;if(!Fe(t))return null;let n=function(e,t){let n="";return"years"===t?n="-01-01T00:00:00":"months"===t?n="-01T00:00:00":"days"===t?n="T00:00:00":"hours"===t?n=":00:00":"minutes"===t&&(n=":00"),r(e+n,"YYYY-MM-DDTHH:mm:ss")}(e,t),i=tI(t);return e===n.format(i)?n:null}function nI(){let e=vn(),t=()=>Number(e.process.hrtime.bigint())/1e6,r=()=>e.performance.now(),n=null;return n=yn()?r:t,n}function iI(e){if(!Cg(e))return"";return r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")}function oI(e=null){let t,r=function(){let e=vn();return p.UAParser||e.UAParser}();t=De(e)?new r(e):new r;let n=t.getResult();return{browsername:n.browser.name,browserversion:n.browser.version,engineinfor:n.engine.name+n.engine.version,platform:n.os.name+n.os.version,devicetype:Be(n.device,"type",""),cpuarchitecture:Be(n.cpu,"architecture","")}}let aI="in x-range",sI="out of x-range",lI="order list",cI="reverse order list";function uI(e,t){let r=null,n=null;return r=e[0].x,n=e[gn(e)-1].x,t<r?{err:sI,msg:`x[${t}] less than lower limit[${r}]`,data:{ps:e,x:t,xmin:r,xmax:n}}:t>n?{err:sI,msg:`x[${t}] greater than upper limit[${n}]`,data:{ps:e,x:t,xmin:r,xmax:n}}:aI}function fI(e){if(!Ln(e))return!1;return eo(e)<=0}function dI(e){if(!ke(e))return!1;return Hn(e)<=0}function gI(e){if(!ke(e))return!1;return Hn(e)>=0}function pI(e){if(!Fe(e))return!1;return!(null===e.match(/^.*[A-Z]+.*$/))}function hI(e){if(!Fe(e))return!1;return!(null===e.match(/^.*[a-zA-Z]+.*$/))}function AI(e){if(!Fe(e))return!1;return!(null===e.match(/^.*[a-z]+.*$/))}function mI(e){if(!Fe(e))return!1;return!(null===e.match(/^.*[0-9]+.*$/))}function II(e){if(!Fe(e))return!1;return!(null===e.match(/^.*\s+.*$/))}function yI(e){if(!Fe(e))return!1;
21
+ function dk(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;class hk{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 dk(this,void 0,void 0,function*(){const t=yield this.lock();try{return yield Promise.resolve(e())}finally{t()}})}}const pk="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,gk=null!==(lk=pk.Buffer)&&void 0!==lk?lk:null,mk=pk.TextEncoder?new pk.TextEncoder:null;function Ak(e,t){return(15&e)+(e>>6|e>>3&8)<<4|(15&t)+(t>>6|t>>3&8)}const yk="a".charCodeAt(0)-10,vk="0".charCodeAt(0);function bk(e,t,n){let r=0;for(let o=0;o<n;o++){let n=t[o]>>>4;e[r++]=n>9?n+yk:n+vk,n=15&t[o],e[r++]=n>9?n+yk:n+vk}return String.fromCharCode.apply(null,e)}const Ik=null!==gk?e=>{if("string"==typeof e){const t=gk.from(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.length)}if(gk.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 mk.encode(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")},wk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xk=new Uint8Array(256);for(let e=0;e<64;e++)xk[wk.charCodeAt(e)]=e;function Ck(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 o=0;for(let t=0;t<n;t+=4){const n=xk[e.charCodeAt(t)],i=xk[e.charCodeAt(t+1)],s=xk[e.charCodeAt(t+2)],a=xk[e.charCodeAt(t+3)];r[o]=n<<2|i>>4,o+=1,r[o]=(15&i)<<4|s>>2,o+=1,r[o]=(3&s)<<6|63&a,o+=1}return r}const Bk=16384,Ek=new hk,Fk=new Map;function kk(e,t){return dk(this,void 0,void 0,function*(){let n=null,r=null,o=!1;if("undefined"==typeof WebAssembly)throw new Error("WebAssembly is not supported in this environment!");const i=()=>new DataView(n.exports.memory.buffer).getUint32(n.exports.STATE_SIZE,!0),s=Ek.dispatch(()=>dk(this,void 0,void 0,function*(){if(!Fk.has(e.name)){const t=Ck(e.data),n=WebAssembly.compile(t);Fk.set(e.name,n)}const t=yield Fk.get(e.name);n=yield WebAssembly.instantiate(t,{})})),a=(e=null)=>{o=!0,n.exports.Hash_Init(e)},c=e=>{if(!o)throw new Error("update() called before init()");(e=>{let t=0;for(;t<e.length;){const o=e.subarray(t,t+Bk);t+=o.length,r.set(o),n.exports.Hash_Update(o.length)}})(Ik(e))},l=new Uint8Array(2*t),u=(e,i=null)=>{if(!o)throw new Error("digest() called before init()");return o=!1,n.exports.Hash_Final(i),"binary"===e?r.slice(0,t):bk(l,r,t)},f=e=>"string"==typeof e?e.length<4096:e.byteLength<Bk;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(()=>dk(this,void 0,void 0,function*(){n||(yield s);const e=n.exports.Hash_GetBuffer(),t=n.exports.memory.buffer;r=new Uint8Array(t,e,Bk)}))(),{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(),o=n.exports.memory.buffer;r=new Uint8Array(o,t,e)},init:a,update:c,digest:u,save:()=>{if(!o)throw new Error("save() can only be called after init() and before digest()");const t=n.exports.Hash_GetState(),r=i(),s=n.exports.memory.buffer,a=new Uint8Array(s,t,r),c=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]=Ak(t.charCodeAt(n),t.charCodeAt(n+1))}}(c,e.hash),c.set(a,4),c},load:t=>{if(!(t instanceof Uint8Array))throw new Error("load() expects an Uint8Array generated by save()");const r=n.exports.Hash_GetState(),s=i(),a=4+s,c=n.exports.memory.buffer;if(t.length!==a)throw new Error(`Bad state length (expected ${a} 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]!==Ak(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 l=t.subarray(4);new Uint8Array(c,r,s).set(l),o=!0},calculate:(e,o=null,i=null)=>{if(!d(e,o))return a(o),c(e),u("hex",i);const s=Ik(e);return r.set(s),n.exports.Hash_Calculate(s.length,o,i),bk(l,r,t)},hashLength:t}})}new hk,new hk,new hk,new hk,new hk,new hk,new hk;var Sk={name:"md5",data:"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",hash:"e6508e4b"};function Dk(){return kk(Sk,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 hk;var Nk={name:"sha1",data:"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",hash:"6b530c24"};function Qk(){return kk(Nk,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 hk,new hk,new hk;var Mk={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+VemoiGiADIAJz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",hash:"8c18dd94"};function Tk(){return kk(Mk,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 hk,new hk;var Lk={name:"sha512",data:"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",hash:"f2e40eb1"};function Uk(){return kk(Lk,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 Rk(){return kk(Lk,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 Hk(e){return"[object File]"===Object.prototype.toString.call(e)}async function qk(e,t={}){if(!ra(e)&&!Hk(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let n=Ie(t,"type","");Ee(n)||(n="sha512");let r=Ie(t,"chunkSize");Se(r)||(r=67108864),r=wr(r);let o={MD5:Dk,"SHA-1":Qk,"SHA-256":Tk,"SHA-384":Uk,"SHA-512":Rk,md5:Dk,sha1:Qk,sha256:Tk,sha384:Uk,sha512:Rk};if(!De(o,n))return Promise.reject(`type[${n}] must be one of [ 'md5', 'sha1', 'sha256', 'sha384', 'sha512' ]`);let i=Ie(o,n),s=await i(),a=0;for(;a<e.size;){let t=e.slice(a,a+r),n=await t.arrayBuffer();s.update(new Uint8Array(n)),a+=r}return s.digest()}async function Ok(e,t={}){if(!ra(e)&&!Hk(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let n=Ie(t,"chunkSize");Se(n)||(n=67108864),n=wr(n);let{create64:r}=await TF(),o=r(),i=0;for(;i<e.size;){let t=e.slice(i,i+n),r=await t.arrayBuffer();o.update(new Uint8Array(r)),i+=n}return o.digest().toString(16).padStart(16,"0")}new hk,new hk,new hk,new hk,new hk,new hk,new hk,new hk,new hk;var Pk=4294967295,zk=Math.min;function jk(e,t){if((e=Ir(e))<1||e>9007199254740991)return[];var n=Pk,r=zk(e,Pk);t=gn(t),e-=Pk;for(var o=Te(r,t);++n<e;)t(n);return o}function $k(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 Yk(e,n="days"){if(!Ee(e))return null;if(!Ee(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),o=$k(n);return e===r.format(o)?r:null}function Gk(){let e=_c(),t=()=>Number(e.process.hrtime.bigint())/1e6,n=()=>e.performance.now(),r=null;return r=Vs()?n:t,r}function Vk(e){if(!lg(e))return"";return t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")}function Jk(e=null){let t,n=function(){let e=_c();return h.UAParser||e.UAParser}();t=Be(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:Ie(r.device,"type",""),cpuarchitecture:Ie(r.cpu,"architecture","")}}let Wk="in x-range",_k="out of x-range",Xk="order list",Kk="reverse order list";function Zk(e,t){let n=null,r=null;return n=e[0].x,r=e[rr(e)-1].x,t<n?{err:_k,msg:`x[${t}] less than lower limit[${n}]`,data:{ps:e,x:t,xmin:n,xmax:r}}:t>r?{err:_k,msg:`x[${t}] greater than upper limit[${r}]`,data:{ps:e,x:t,xmin:n,xmax:r}}:Wk}function eS(e){if(!xr(e))return!1;return jo(e)<=0}function tS(e){if(!Se(e))return!1;return wr(e)<=0}function nS(e){if(!Se(e))return!1;return wr(e)>=0}function rS(e){if(!Ee(e))return!1;return!(null===e.match(/^.*[A-Z]+.*$/))}function oS(e){if(!Ee(e))return!1;return!(null===e.match(/^.*[a-zA-Z]+.*$/))}function iS(e){if(!Ee(e))return!1;return!(null===e.match(/^.*[a-z]+.*$/))}function sS(e){if(!Ee(e))return!1;return!(null===e.match(/^.*[0-9]+.*$/))}function aS(e){if(!Ee(e))return!1;return!(null===e.match(/^.*\s+.*$/))}function cS(e){if(!Ee(e))return!1;
22
22
  //!"#$%&'()*+,-./ :;<=>?@ [\]^_` {|}~
23
- return/[!-/:-@[-`{-~]/.test(e)}function vI(e){if(!Fe(e))return!1;let t="YYYY-MM-DDTHH:mm:ss.SSS";return e===r(e,t).format(t)}function bI(e){let t;return t=da(e,1),"Z"===t?`${e=Ja(e,1)}+00:00`:e}let wI={checkTZ:function(e){let t;return t=da(e,1),"Z"===t||(t=da(e,6),!!/[+|-]\d\d:\d\d/.test(t))},delTZ:function(e){let t;return t=da(e,1),Ja(e,"Z"===t?1:6)},normTZ:bI,sepTZ:function(e){let t=bI(e);return{t:Ja(t,6),tz:da(t,6)}}};function BI(e){if(!Fe(e))return!1;if(!wI.checkTZ(e))return!1;let t=wI.delTZ(e),n="YYYY-MM-DDTHH:mm:ss.SSS";return t===r(t,n).format(n)}function EI(e){if(!Fe(e))return!1;if(!wI.checkTZ(e))return!1;let t=wI.delTZ(e),n="YYYY-MM-DDTHH:mm:ss";return t===r(t,n).format(n)}let CI=["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 xI(e,t){return new oc(e).eq(t)}function DI(e,t){if(!Or(e))return[];if(!Or(t))return[];if(!Or(t[0]))return[];return Dr(t,function(t){let r=ro(e,t);return Cr(r,function(e,t){void 0===e&&(r[t]="")}),r})}var FI=Oa(function(e){return Pr(Sr(e,1,Ag,!0))});var QI=Oa(function(e,t){var r=Sa(t);return Ag(r)&&(r=void 0),Ag(e)?function(e,t,r,n){var i=-1,o=Gr,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;r&&(t=he(t,Ke(r))),n?(o=Jr,a=!1):t.length>=200&&(o=vt,a=!1,t=new It(t));e:for(;++i<s;){var u=e[i],f=null==r?u:r(u);if(u=n||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,n)||l.push(u)}return l}(e,Sr(t,1,Ag,!0),dr(r)):[]}),SI=QI;function kI(e){if(!Fe(e))return"";let t=si.parse(e);return Vn.stringify(t)}function NI(e,t,r=!1){if(!Fe(e))return"";if(!Fe(t))return"";hn(r)||(r=!1);let n=oi.encrypt(e,t),i="";if(r)i=n.toString();else{let e=n.toString();i=Vn.parse(e).toString(ci)}return i}var qI={exports:{}};!function(e){var t;e.exports=(t=jn(),function(){if("function"==typeof ArrayBuffer){var e=t.lib.WordArray,r=e.init,n=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,n=[],i=0;i<t;i++)n[i>>>2]|=e[i]<<24-i%4*8;r.call(this,n,t)}else r.apply(this,arguments)};n.prototype=e}}(),t.lib.WordArray)}(qI);var MI=Rn(qI.exports);function HI(e){if(!es(e))return"";return MI.create(e).toString(Vn)}function LI(e){return gm(e)?new Uint8Array(e):new Uint8Array}function UI(e){return gm(e)?HI(LI(e)):""}let RI="[Uint8Array]::";let OI="[Uint16Array]::";let TI={tagU8A:RI,u8arr2b64:function(e){return es(e)?RI+HI(e):e},b642u8arr:function(e){return De(e)&&fa(e,14)===RI?Za(e=ga(e,14)):e},tagU16A:OI,u16arr2b64:function(e){return gm(e)?OI+UI(e):e},b642u16arr:function(e){return De(e)&&fa(e,15)===OI?rs(e=ga(e,15)):e}};function YI(e){if(!Ee(e))return{results:"",binarys:[]};if(Hr(e))return{results:"",binarys:[]};let t="",r=[];try{let n=-1;t=JSON.stringify(e,function(e,t){if(es(t)){n+=1;let e=`[Uint8Array]::${n}`;return r.push(t),e}if(gm(t)){n+=1;let e=`[Uint16Array]::${n}`;return r.push(t),e}if(y(t)){n+=1;let e=`[ArrayBuffer]::${n}`;return r.push(t),e}return vm(t)&&(t=t.toString()),t})}catch(e){}return{results:t,binarys:r}}function jI(e){if(!Fe(e))return new Uint8Array;let t;try{t=Za(kI(e))}catch(e){return new Uint8Array}return t}function GI(e,t){if(!Ce(e))return{};if(!ba(t))throw new Error("fun is not a function");let r=Dr(e,(e,r)=>({k:r,v:e,t:t(e,r)}));r=Ta(r,"t");let n={};return Cr(r,e=>{n[e.k]=e.v}),n}function JI(e,t=()=>{}){if(!ba(e))return null;function r(e,t){let r;return Mr(e)||qr(e)?t:(r=Be(e,"data",null),r||e)}return ba(t)||(t=()=>{}),function(){let n,i=is(),o=t({mode:"before",data:arguments});return(Mr(o)||qr(o))&&(o=arguments),e(...o).then(e=>{n=t({mode:"afterThen",data:e}),e=r(n,e),i.resolve(e)}).catch(e=>{n=t({mode:"afterCatch",data:e}),e=r(n,e),i.reject(e)}),i}}function zI(e){if(!De(e))return null;if(""===e)return 0;let t=e.split("").reduce((e,t)=>t.charCodeAt(0)+(e<<6)+(e<<16)-e,0);return t}let VI=0;function PI(e="start1",t=!1){void 0===e?e=(new Date).getTime():"start1"===e&&(VI++,e=VI);let r=624,n=397,i=2147483648,o=2147483647,a=new Array(r),s=625,l=e=>{for(ya(e)?a[0]=e>>>0:(e=ja(e),a[0]=zI(e)),s=1;s<r;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>=r){let c;for(625===s&&l(5489),c=0;c<227;c++)e=a[c]&i|a[c+1]&o,a[c]=a[c+n]^e>>>1^t[1&e];for(;c<623;c++)e=a[c]&i|a[c+1]&o,a[c]=a[c+(n-r)]^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 XI=PI((new Date).getTime(),!0);function _I(){return XI()}function WI(e,t,r){return e==e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=e>=t?e:t)),e}var KI=Math.floor,$I=Math.random;function ZI(e,t){return e+KI($I()*(t-e+1))}function ey(e,t){var r=-1,n=e.length,i=n-1;for(t=void 0===t?n:t;++r<t;){var o=ZI(r,i),a=e[o];e[o]=e[r],e[r]=a}return e.length=t,e}function ty(e,t){return ey(kr(e),WI(t,0,e.length))}function ry(e,t){var r=dA(e);return ey(r,WI(t,0,r.length))}var ny=Math.floor;function iy(e,t,r){return t=(r?gr(e,t,r):void 0===t)?1:Mn(t),function(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=ny(t/2))&&(e+=e)}while(t);return r}(ye(e),t)}var oy=$i("floor");var ay=Rn(Xn());var sy={exports:{}},ly={exports:{}};!function(e){var t;e.exports=(t=jn(),function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[],l=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),l[i]=r(e.pow(n,1/3)),i++),n++}();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],f=r[6],d=r[7],g=0;g<64;g++){if(g<16)c[g]=0|e[t+g];else{var p=c[g-15],h=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,A=c[g-2],m=(A<<15|A>>>17)^(A<<13|A>>>19)^A>>>10;c[g]=h+c[g-7]+m+c[g-16]}var I=n&i^n&o^i&o,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),v=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&f)+l[g]+c[g];d=f,f=u,u=s,s=a+v|0,a=o,o=i,i=n,n=v+(y+I)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+u|0,r[6]=r[6]+f|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(u),r.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256)}(ly);var cy=ly.exports,uy=Rn(cy);!function(e){var t;e.exports=(t=jn(),function(){var e=t,r=e.lib.WordArray,n=e.algo,i=n.SHA256,o=n.SHA224=i.extend({_doReset:function(){this._hash=new r.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)}(sy);var fy,dy=Rn(sy.exports),gy={exports:{}},py={exports:{}};function hy(){return fy||(fy=1,function(e){var t,r,n,i,o,a,s;e.exports=(s=jn(),n=(r=s).lib,i=n.Base,o=n.WordArray,(a=r.x64={}).Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(e,r){e=this.words=e||[],this.sigBytes=r!=t?r:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return o.create(r,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}}),s)}(py)),py.exports}var Ay={exports:{}};!function(e){var t;e.exports=(t=jn(),hy(),function(){var e=t,r=e.lib.Hasher,n=e.x64,i=n.Word,o=n.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=r.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 r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],f=r[6],d=r[7],g=n.high,p=n.low,h=i.high,A=i.low,m=o.high,I=o.low,y=a.high,v=a.low,b=s.high,w=s.low,B=u.high,E=u.low,C=f.high,x=f.low,D=d.high,F=d.low,Q=g,S=p,k=h,N=A,q=m,M=I,H=y,L=v,U=b,R=w,O=B,T=E,Y=C,j=x,G=D,J=F,z=0;z<80;z++){var V,P,X=c[z];if(z<16)P=X.high=0|e[t+2*z],V=X.low=0|e[t+2*z+1];else{var _=c[z-15],W=_.high,K=_.low,$=(W>>>1|K<<31)^(W>>>8|K<<24)^W>>>7,Z=(K>>>1|W<<31)^(K>>>8|W<<24)^(K>>>7|W<<25),ee=c[z-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=c[z-7],ae=oe.high,se=oe.low,le=c[z-16],ce=le.high,ue=le.low;P=(P=(P=$+ae+((V=Z+se)>>>0<Z>>>0?1:0))+ne+((V+=ie)>>>0<ie>>>0?1:0))+ce+((V+=ue)>>>0<ue>>>0?1:0),X.high=P,X.low=V}var fe,de=U&O^~U&Y,ge=R&T^~R&j,pe=Q&k^Q&q^k&q,he=S&N^S&M^N&M,Ae=(Q>>>28|S<<4)^(Q<<30|S>>>2)^(Q<<25|S>>>7),me=(S>>>28|Q<<4)^(S<<30|Q>>>2)^(S<<25|Q>>>7),Ie=(U>>>14|R<<18)^(U>>>18|R<<14)^(U<<23|R>>>9),ye=(R>>>14|U<<18)^(R>>>18|U<<14)^(R<<23|U>>>9),ve=l[z],be=ve.high,we=ve.low,Be=G+Ie+((fe=J+ye)>>>0<J>>>0?1:0),Ee=me+he;G=Y,J=j,Y=O,j=T,O=U,T=R,U=H+(Be=(Be=(Be=Be+de+((fe+=ge)>>>0<ge>>>0?1:0))+be+((fe+=we)>>>0<we>>>0?1:0))+P+((fe+=V)>>>0<V>>>0?1:0))+((R=L+fe|0)>>>0<L>>>0?1:0)|0,H=q,L=M,q=k,M=N,k=Q,N=S,Q=Be+(Ae+pe+(Ee>>>0<me>>>0?1:0))+((S=fe+Ee|0)>>>0<fe>>>0?1:0)|0}p=n.low=p+S,n.high=g+Q+(p>>>0<S>>>0?1:0),A=i.low=A+N,i.high=h+k+(A>>>0<N>>>0?1:0),I=o.low=I+M,o.high=m+q+(I>>>0<M>>>0?1:0),v=a.low=v+L,a.high=y+H+(v>>>0<L>>>0?1:0),w=s.low=w+R,s.high=b+U+(w>>>0<R>>>0?1:0),E=u.low=E+T,u.high=B+O+(E>>>0<T>>>0?1:0),x=f.low=x+j,f.high=C+Y+(x>>>0<j>>>0?1:0),F=d.low=F+J,d.high=D+G+(F>>>0<J>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=r._createHelper(u),e.HmacSHA512=r._createHmacHelper(u)}(),t.SHA512)}(Ay);var my=Ay.exports,Iy=Rn(my);!function(e){var t;e.exports=(t=jn(),hy(),function(){var e=t,r=e.x64,n=r.Word,i=r.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.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)}(gy);let yy={1:ei,224:dy,256:uy,384:Rn(gy.exports),512:Iy};function vy(e,t,r=!1){if(!Fe(e))return"";if(!to(t))throw new Error("n is not a positive integer");if(t=eo(t),!Ne(yy,t))throw new Error(`invalid n[${t}]`);hn(r)||(r=!1);let n=(0,yy[t])(e),i="";return i=r?n.toString(Vn):n.toString(ci),i}function by(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 r=new Map;for(let t=0;t<e.length-1;t++){const n=e.substring(t,t+2),i=r.has(n)?r.get(n)+1:1;r.set(n,i)}let n=0;for(let e=0;e<t.length-1;e++){const i=t.substring(e,e+2),o=r.has(i)?r.get(i):0;o>0&&(r.set(i,o-1),n++)}return 2*n/(e.length+t.length-2)}(e,t):0}function wy(e){return Array.isArray?Array.isArray(e):"[object Array]"===Sy(e)}function By(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 Ey(e){return"string"==typeof e}function Cy(e){return"number"==typeof e}function xy(e){return!0===e||!1===e||function(e){return Dy(e)&&null!==e}(e)&&"[object Boolean]"==Sy(e)}function Dy(e){return"object"==typeof e}function Fy(e){return null!=e}function Qy(e){return!e.trim().length}function Sy(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const ky="Invalid doc index: must be a non-negative integer within the bounds of the docs array",Ny=Object.prototype.hasOwnProperty;var qy=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{const r=My(e);this._keys.push(r),this._keyMap[r.id]=r,t+=r.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 My(e){let t=null,r=null,n=null,i=1,o=null;if(Ey(e)||wy(e))n=e,t=Hy(e),r=Ly(e);else{if(!Ny.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const a=e.name;if(n=a,Ny.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`)(Ly(a)));t=Hy(a),r=Ly(a),o=e.getFn??null}return{path:t,id:r,weight:i,src:n,getFn:o}}function Hy(e){return wy(e)?e:e.split(".")}function Ly(e){return wy(e)?e.join("."):e}const Uy={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:"any",getFn:function(e,t){const r=[];let n=!1;const i=(e,t,o,a)=>{if(Fy(e))if(t[o]){const s=e[t[o]];if(!Fy(s))return;if(o===t.length-1&&(Ey(s)||Cy(s)||xy(s)||"bigint"==typeof s))r.push(void 0!==a?{v:By(s),i:a}:By(s));else if(wy(s)){n=!0;for(let e=0,r=s.length;e<r;e+=1)i(s[e],t,o+1,e)}else t.length&&i(s,t,o+1,a)}else r.push(void 0!==a?{v:e,i:a}:e)};return i(e,Ey(t)?t.split("."):t,0),n?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},Ry=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,...Uy});function Oy(e){return e>=9&&e<=13||32===e||160===e}var Ty=class{constructor({getFn:e=Ry.getFn,fieldNormWeight:t=Ry.fieldNormWeight}={}){this.norm=function(e=1,t=3){const r=new Map,n=Math.pow(10,t);return{get(t){let i=0,o=!1;for(let e=0;e<t.length;e++)Oy(t.charCodeAt(e))?o=!1:o||(i++,o=!0);if(0===i&&(i=1),r.has(i))return r.get(i);const a=Math.round(n/Math.pow(i,.5*e))/n;return r.set(i,a),a},clear(){r.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(Ey(this.docs[0]))for(let r=0;r<e;r++){const e=this._createStringRecord(this.docs[r],r);e&&(this.records[t++]=e)}else for(let r=0;r<e;r++)this.records[t++]=this._createObjectRecord(this.docs[r],r);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw new Error(ky);if(Ey(e)){const r=this._createStringRecord(e,t);return r&&this.records.push(r),r}const r=this._createObjectRecord(e,t);return this.records.push(r),r}removeAt(e){if(!Number.isInteger(e)||e<0)throw new Error(ky);for(let t=0,r=this.records.length;t<r;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,r=this.records.length;t<r;t+=1)this.records[t].i>e&&(this.records[t].i-=1)}removeAll(e){const t=new Set;for(const r of e)Number.isInteger(r)&&r>=0&&t.add(r);if(0===t.size)return;this.records=this.records.filter(e=>!t.has(e.i));const r=Array.from(t).sort((e,t)=>e-t);for(const e of this.records){let t=0,n=r.length;for(;t<n;){const i=t+n>>>1;r[i]<e.i?t=i+1:n=i}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!Fy(e)||Qy(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){const r={i:t,$:{}};for(let t=0,n=this.keys.length;t<n;t++){const n=this.keys[t],i=n.getFn?n.getFn(e):this.getFn(e,n.path);if(Fy(i))if(wy(i)){const e=[];for(let t=0,r=i.length;t<r;t+=1){const r=i[t];if(Fy(r))if(Ey(r)){if(!Qy(r)){const n={v:r,i:t,n:this.norm.get(r)};e.push(n)}}else if(Fy(r.v)){const t=Ey(r.v)?r.v:By(r.v);if(!Qy(t)){const n={v:t,i:r.i,n:this.norm.get(t)};e.push(n)}}}r.$[t]=e}else if(Ey(i)&&!Qy(i)){const e={v:i,n:this.norm.get(i)};r.$[t]=e}}return r}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function Yy(e,t,{getFn:r=Ry.getFn,fieldNormWeight:n=Ry.fieldNormWeight}={}){const i=new Ty({getFn:r,fieldNormWeight:n});return i.setKeys(e.map(My)),i.setSources(t),i.create(),i}function jy(e,t,r,{location:n=Ry.location,distance:i=Ry.distance,threshold:o=Ry.threshold,findAllMatches:a=Ry.findAllMatches,minMatchCharLength:s=Ry.minMatchCharLength,includeMatches:l=Ry.includeMatches,ignoreLocation:c=Ry.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(n,f));let g=o,p=d;const h=(e,t)=>{const r=e/u;if(c)return r;const n=Math.abs(d-t);return i?r+n/i:n?1:r},A=s>1||l,m=A?Array(f):[];let I;for(;(I=e.indexOf(t,p))>-1;){const e=h(0,I);if(g=Math.min(e,g),p=I+u,A){let e=0;for(;e<u;)m[I+e]=1,e+=1}}p=-1;let y=[],v=1,b=0,w=u+f;const B=1<<u-1;for(let t=0;t<u;t+=1){let n=0,i=w;for(;n<i;)h(t,d+i)<=g?n=i:w=i,i=Math.floor((w-n)/2+n);w=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 n=s;n>=o;n-=1){const i=n-1,a=r[e[i]];if(l[n]=(l[n+1]<<1|1)&a,t&&(l[n]|=(y[n+1]|y[n])<<1|1|y[n+1]),l[n]&B&&(v=h(t,i),v<=g)){if(g=v,p=i,b=t,p<=d)break;o=Math.max(1,2*d-p)}}if(h(t+1,d)>g)break;y=l}if(A&&p>=0){const t=Math.min(f-1,p+u-1+b);for(let n=p;n<=t;n+=1)r[e[n]]&&(m[n]=1)}const E={isMatch:p>=0,score:Math.max(.001,v)};if(A){const e=function(e=[],t=Ry.minMatchCharLength){const r=[];let n=-1,i=-1,o=0;for(let a=e.length;o<a;o+=1){const a=e[o];a&&-1===n?n=o:a||-1===n||(i=o-1,i-n+1>=t&&r.push([n,i]),n=-1)}return e[o-1]&&o-n>=t&&r.push([n,o-1]),r}(m,s);e.length?l&&(E.indices=e):E.isMatch=!1}return E}function Gy(e){const t={};for(let r=0,n=e.length;r<n;r+=1){const i=e.charAt(r);t[i]=(t[i]||0)|1<<n-r-1}return t}function Jy(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 r=1,n=e.length;r<n;r+=1){const n=t[t.length-1],i=e[r];i[0]<=n[1]+1?n[1]=Math.max(n[1],i[1]):t.push(i)}return t}const zy={"ł":"l","Ł":"L","đ":"d","Đ":"D","ø":"o","Ø":"O","ħ":"h","Ħ":"H","ŧ":"t","Ŧ":"T","ı":"i","ß":"ss"},Vy=new RegExp("["+Object.keys(zy).join("")+"]","g"),Py="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(Vy,e=>zy[e]):e=>e;var Xy=class{constructor(e,{location:t=Ry.location,threshold:r=Ry.threshold,distance:n=Ry.distance,includeMatches:i=Ry.includeMatches,findAllMatches:o=Ry.findAllMatches,minMatchCharLength:a=Ry.minMatchCharLength,isCaseSensitive:s=Ry.isCaseSensitive,ignoreDiacritics:l=Ry.ignoreDiacritics,ignoreLocation:c=Ry.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:s,ignoreDiacritics:l,ignoreLocation:c},e=s?e:e.toLowerCase(),e=l?Py(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:Gy(e),startIndex:t})},f=this.pattern.length;if(f>32){let e=0;const t=f%32,r=f-t;for(;e<r;)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:r,includeMatches:n}=this.options;if(e=t?e:e.toLowerCase(),e=r?Py(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};const t={isMatch:!0,score:0};return n&&(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:r,startIndex:g})=>{const{isMatch:p,score:h,indices:A}=jy(e,t,r,{location:i+g,distance:o,threshold:a,findAllMatches:s,minMatchCharLength:l,includeMatches:n,ignoreLocation:c});p&&(d=!0),f+=h,p&&A&&u.push(...A)});const g={isMatch:d,score:d?f/this.chunks.length:1};return d&&n&&(g.indices=Jy(u)),g}};const _y=new Set(["fuzzy","include"]);function Wy(e){return e.startsWith("inverse")}const Ky=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(t){const r=t===e;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(t){let r,n=0;const i=[],o=e.length;for(;(r=t.indexOf(e,n))>-1;)n=r+o,i.push([r,n-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 r=t.startsWith(e);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(t){const r=!t.startsWith(e);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(t){const r=!t.endsWith(e);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(t){const r=t.endsWith(e);return{isMatch:r,score:r?0:1,indices:[t.length-e.length,t.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(t){const r=-1===t.indexOf(e);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{const r=new Xy(e,{location:t.location??Ry.location,threshold:t.threshold??Ry.threshold,distance:t.distance??Ry.distance,includeMatches:t.includeMatches??Ry.includeMatches,findAllMatches:t.findAllMatches??Ry.findAllMatches,minMatchCharLength:t.minMatchCharLength??Ry.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??Ry.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??Ry.ignoreDiacritics,ignoreLocation:t.ignoreLocation??Ry.ignoreLocation});return{type:"fuzzy",search:e=>r.searchIn(e)}}}],$y=Ky.length;function Zy(e,t){const r=e.match(t);return r?r[1]:null}const ev=[];function tv(...e){ev.push(...e)}function rv(e,t){for(let r=0,n=ev.length;r<n;r+=1){const n=ev[r];if(n.condition(e,t))return new n(e,t)}return new Xy(e,t)}const nv="$and",iv="$or",ov="$path",av="$val",sv=e=>!(!e[nv]&&!e[iv]),lv=e=>({[nv]:Object.keys(e).map(t=>({[t]:e[t]}))});function cv(e,t,{auto:r=!0}={}){const n=e=>{if(Ey(e)){const n={keyId:null,pattern:e};return r&&(n.searcher=rv(e,t)),n}const i=Object.keys(e),o=(e=>!!e[ov])(e);if(!o&&i.length>1&&!sv(e))return n(lv(e));if((e=>!wy(e)&&Dy(e)&&!sv(e))(e)){const n=o?e[ov]:i[0],a=o?e[av]:e[n];if(!Ey(a))throw new Error((e=>`Invalid value for key ${e}`)(n));const s={keyId:Ly(n),pattern:a};return r&&(s.searcher=rv(a,t)),s}const a={children:[],operator:i[0]};return i.forEach(t=>{const r=e[t];wy(r)&&r.forEach(e=>{a.children.push(n(e))})}),a};return sv(e)||(e=lv(e)),n(e)}function uv(e,{ignoreFieldNorm:t=Ry.ignoreFieldNorm}){let r=1;return e.forEach(({key:e,norm:n,score:i})=>{const o=e?e.weight:null;r*=Math.pow(0===i&&o?Number.EPSILON:i,(o||1)*(t?1:n))}),r}var fv=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 r=e-1>>1;if(this.comparator(t[e],t[r])<=0)break;const n=t[e];t[e]=t[r],t[r]=n,e=r}}_sinkDown(e){const t=this.heap,r=t.length;let n=e;do{const i=2*(e=n)+1,o=2*e+2;if(i<r&&this.comparator(t[i],t[n])>0&&(n=i),o<r&&this.comparator(t[o],t[n])>0&&(n=o),n!==e){const r=t[e];t[e]=t[n],t[n]=r}}while(n!==e)}};function dv(e,t,{includeMatches:r=Ry.includeMatches,includeScore:n=Ry.includeScore}={}){return e.map(e=>{const{idx:i}=e,o={item:t[i],refIndex:i};return r&&(o.matches=function(e){const t=[];return e.matches.forEach(e=>{if(!Fy(e.indices)||!e.indices.length)return;const r={indices:e.indices,value:e.value};e.key&&(r.key=e.key.id),e.idx>-1&&(r.refIndex=e.idx),t.push(r)}),t}(e)),n&&(o.score=e.score),o})}const gv=/[\p{L}\p{M}\p{N}_]+/gu,pv=new WeakSet;function hv(e){if("function"==typeof e){let t=!1;return r=>{const n=e(r);if(!t&&(t=!0,!Array.isArray(n)||n.some(e=>"string"!=typeof e)))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(n)?"array containing non-strings":typeof n}.`);return n}}return e instanceof RegExp?(e.global||function(e){pv.has(e)||(pv.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(gv)||[]}function Av({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:r}={}){const n=hv(r);return{tokenize:r=>(e||(r=r.toLowerCase()),t&&(r=Py(r)),n(r))}}function mv(e,t,r,n){const i=n.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(r,(e.docFieldCount.get(r)||0)+1);const o=new Set(i);let a=e.docTermFieldHits.get(r);a||(a=new Map,e.docTermFieldHits.set(r,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 Iv(e,t,r,n){const{i:i,v:o,$:a}=t;if(void 0===o){if(a)for(let t=0;t<r;t++){const r=a[t];if(r)if(Array.isArray(r))for(const t of r)mv(e,t.v,i,n);else mv(e,r.v,i,n)}}else mv(e,o,i,n)}function yv(e,t){const r=e.docFieldCount.get(t);if(void 0===r)return;e.fieldCount-=r,e.docFieldCount.delete(t);const n=e.docTermFieldHits.get(t);if(n){for(const[t,r]of n){const n=(e.df.get(t)||0)-r;n<=0?e.df.delete(t):e.df.set(t,n)}e.docTermFieldHits.delete(t)}}function vv(e,t){if(0===t.length)return;const r=Array.from(new Set(t)).sort((e,t)=>e-t);for(const t of r)yv(e,t);const n=e=>{let t=0,n=r.length;for(;t<n;){const i=t+n>>>1;r[i]<e?t=i+1:n=i}return e-t},i=r[0],o=new Map;for(const[t,r]of e.docFieldCount)o.set(t>i?n(t):t,r);e.docFieldCount=o;const a=new Map;for(const[t,r]of e.docTermFieldHits)a.set(t>i?n(t):t,r);e.docTermFieldHits=a}var bv=class{constructor(e,t,r){this.options={...Ry,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new qy(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,r),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;const t=rv(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 Ty))throw new Error("Incorrect 'index' type");if(this._myIndex=t||Yy(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const e=Av({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=function(e,t,r){const n={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(const i of e)Iv(n,i,t,r);return n}(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!Fy(e))return;this._docs.push(e);const t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){const e=Av({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});!function(e,t,r,n){Iv(e,t,r,n)}(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){const t=[],r=[];for(let n=0,i=this._docs.length;n<i;n+=1)e(this._docs[n],n)&&(t.push(this._docs[n]),r.push(n));if(r.length){this._invertedIndex&&vv(this._invertedIndex,r);const e=new Set(r);this._docs=this._docs.filter((t,r)=>!e.has(r)),this._myIndex.removeAll(r),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw new Error(ky);this._invertedIndex&&vv(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:r=-1}=t||{},{includeMatches:n,includeScore:i,shouldSort:o,sortFn:a,ignoreFieldNorm:s}=this.options;if(Ey(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return Cy(r)&&r>-1&&(e=e.slice(0,r)),e}const l=o&&Cy(r)&&r>0&&Ey(e),c=a,u=(e,t)=>c(e,t)||e.idx-t.idx;let f;if(l){const t=new fv(r,u);Ey(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),f=t.extractSorted()}else f=Ey(e)?Ey(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),function(e,{ignoreFieldNorm:t=Ry.ignoreFieldNorm}){e.forEach(e=>{e.score=uv(e.matches,{ignoreFieldNorm:t})})}(f,{ignoreFieldNorm:s}),o&&f.sort(Ey(e)?u:c),Cy(r)&&r>-1&&(f=f.slice(0,r));return dv(f,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:r}={}){const n=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(!Fy(e))return;const l=n.searchIn(e);if(l.isMatch){const n={score:l.score,value:e,norm:s,indices:l.indices};i&&(n.matchedMask=l.matchedMask,n.matchedTerms=l.matchedTerms,n.termCount=l.termCount);const c=[n];if(!i||this._coversAllTokens(c)){const n={item:e,idx:o,matches:c};t?(n.score=uv(n.matches,{ignoreFieldNorm:r}),t.insert(n)):a.push(n)}}}),a}_searchLogical(e){const t=cv(e,this.options),r=this._normalizedKeys(),n=(e,t,i)=>{if(!("children"in e)){const{keyId:n,searcher:o}=e;let a;return null===n?(a=[],r.forEach((e,r)=>{a.push(...this._findMatches({key:e,value:t[r],searcher:o}))})):a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:o}),a&&a.length?[{idx:i,item:t,matches:a}]:[]}const{children:o,operator:a}=e,s=[];for(let e=0,r=o.length;e<r;e+=1){const r=o[e],l=n(r,t,i);if(l.length)s.push(...l);else if(a===nv)return[]}return s},i=this._myIndex.records,o=new Map,a=[];return i.forEach(({$:e,i:r})=>{if(Fy(e)){const i=n(t,e,r);i.length&&(o.has(r)||(o.set(r,{idx:r,item:e,matches:[]}),a.push(o.get(r))),i.forEach(({matches:e})=>{o.get(r).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:r}={}){const n=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(!Fy(e))return;const l=[];let c=!1,u=!1;if(a.forEach((t,r)=>{const i=this._findMatches({key:t,value:e[r],searcher:n});i.length?(l.push(...i),i[0].hasInverse&&(u=!0)):c=!0}),(!u||!c)&&l.length&&(!i||this._coversAllTokens(l))){const n={idx:o,item:e,matches:l};t?(n.score=uv(n.matches,{ignoreFieldNorm:r}),t.insert(n)):s.push(n)}}),s}_findMatches({key:e,value:t,searcher:r}){if(!Fy(t))return[];const n=[];if(wy(t))t.forEach(({v:t,i:i,n:o})=>{if(!Fy(t))return;const a=r.searchIn(t);if(a.isMatch){const r={score:a.score,key:e,value:t,idx:i,norm:o,indices:a.indices,hasInverse:a.hasInverse};void 0!==a.termCount&&(r.matchedMask=a.matchedMask,r.matchedTerms=a.matchedTerms,r.termCount=a.termCount),n.push(r)}});else{const{v:i,n:o}=t,a=r.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),n.push(t)}}return n}_coversAllTokens(e){const t=e.length?e[0].termCount:void 0;if(void 0===t)return!0;if(t<=31){let r=0;for(let t=0;t<e.length;t++)r|=e[t].matchedMask||0;return r===2**t-1}const r=new Set;for(let t=0;t<e.length;t++){const n=e[t].matchedTerms;if(n)for(const e of n)r.add(e)}return r.size===t}};bv.version="7.5.0",bv.createIndex=Yy,bv.parseIndex=function(e,{getFn:t=Ry.getFn,fieldNormWeight:r=Ry.fieldNormWeight}={}){const{keys:n,records:i}=e,o=new Ty({getFn:t,fieldNormWeight:r});return o.setKeys(n),o.setIndexRecords(i),o},bv.config=Ry,bv.match=function(e,t,r){if(r&&r.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 rv(e,{...Ry,...r}).searchIn(t)},bv.parseQuery=cv,tv(class{constructor(e,{isCaseSensitive:t=Ry.isCaseSensitive,ignoreDiacritics:r=Ry.ignoreDiacritics,includeMatches:n=Ry.includeMatches,minMatchCharLength:i=Ry.minMatchCharLength,ignoreLocation:o=Ry.ignoreLocation,findAllMatches:a=Ry.findAllMatches,location:s=Ry.location,threshold:l=Ry.threshold,distance:c=Ry.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n,minMatchCharLength:i,findAllMatches:a,ignoreLocation:o,location:s,threshold:l,distance:c},e=t?e:e.toLowerCase(),e=r?Py(e):e,this.pattern=e,this.query=function(e,t={}){return e.replace(/\\\|/g,"\0").split("|").map(e=>{const r=function(e){const t=[],r=e.length;let n=0;for(;n<r;){for(;n<r&&" "===e[n];)n++;if(n>=r)break;let i=n;for(;i<r&&" "!==e[i]&&'"'!==e[i];)i++;if(i<r&&'"'===e[i]){for(i++;i<r;){if('"'===e[i]){const t=i+1;if(t>=r||" "===e[t]){i++;break}if("$"===e[t]&&(t+1>=r||" "===e[t+1])){i+=2;break}}i++}t.push(e.substring(n,i)),n=i}else{for(;i<r&&" "!==e[i];)i++;t.push(e.substring(n,i)),n=i}}return t}(e.replace(/\u0000/g,"|").trim()).filter(e=>e&&!!e.trim()),n=[];for(let e=0,i=r.length;e<i;e+=1){const i=r[e];let o=!1,a=-1;for(;!o&&++a<$y;){const e=Ky[a],r=Zy(i,e.multiRegex);r&&(n.push(e.create(r,t)),o=!0)}if(!o)for(a=-1;++a<$y;){const e=Ky[a],r=Zy(i,e.singleRegex);if(r){n.push(e.create(r,t));break}}}return n})}(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:r,isCaseSensitive:n,ignoreDiacritics:i}=this.options;e=n?e:e.toLowerCase(),e=i?Py(e):e;let o=0;const a=[];let s=0,l=!1;for(let n=0,i=t.length;n<i;n+=1){const i=t[n];a.length=0,o=0,l=!1;for(let t=0,n=i.length;t<n;t+=1){const n=i[t],{isMatch:c,indices:u,score:f}=n.search(e);if(!c){s=0,o=0,a.length=0,l=!1;break}o+=1,s+=f,Wy(n.type)&&(l=!0),r&&(_y.has(n.type)?a.push(...u):a.push(u))}if(o){const e={isMatch:!0,score:s/o};return l&&(e.hasInverse=!0),r&&(e.indices=Jy(a)),e}}return{isMatch:!1,score:1}}}),tv(class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=Av({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});const r=this.analyzer.tokenize(e),{df:n,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(const e of r){this.termSearchers.push(new Xy(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 r=n.get(e)||0,o=Math.log(1+(i-r+.5)/(r+.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 r=0,n=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];n+=c,l.isMatch&&(i++,r+=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=n>0?1-r/n:0,l={isMatch:!0,score:Math.max(.001,s)};return this.options.includeMatches&&t.length&&(l.indices=Jy(t)),this.combineAll&&(this.useMask?l.matchedMask=o:l.matchedTerms=a,l.termCount=this.numTerms),l}}),bv.use=function(...e){e.forEach(e=>tv(e))};var wv=bv;function Bv(e){return function(e,t){var r=null==e?0:e.length;return r?Ca(e,t)/r:NaN}(e,cr)}function Ev(e){if(!Ce(e))return{};let{results:t,binarys:r}=e;if(!Fe(t))return{};if(!xe(r))return{};let n={};try{n=JSON.parse(t,function(e,t){if(Fe(t)){if(t.indexOf("[Uint8Array]::")>=0){let e=eo(t.replace("[Uint8Array]::",""));return r[e]}if(t.indexOf("[Uint16Array]::")>=0){let e=eo(t.replace("[Uint16Array]::",""));return r[e]}if(t.indexOf("[ArrayBuffer]::")>=0){let e=eo(t.replace("[ArrayBuffer]::",""));return r[e]}}return t})}catch(e){}return n}function Cv(e,t=null){if(!ba(r))throw new Error("invalid dayjs");if(!BI(e))return{today:null,msg:"",err:"時間格式錯誤"};let n=r();BI(t)&&(n=r(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=r(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(n>i)return{today:null,msg:"",err:"時間已過"};let o,a=n.format("YYYY-MM-DD"),s=i.format("YYYY-MM-DD"),l=r(a,"YYYY-MM-DD"),c=r(s,"YYYY-MM-DD"),u=i.diff(n,"seconds"),f=i.diff(n,"minutes"),d=i.diff(n,"hours"),g=c.diff(l,"days"),p=c.diff(l,"weeks"),h=c.diff(l,"months"),A=c.diff(l,"years"),m="即將到來";if(u>=0&&(o=!0,m=u+"秒後"),f>0&&(o=!0,m=f+"分鐘後"),d>0){let e=i.format("HH:mm");a===s?(o=!0,m=d+"小時後,今天"+e):(o=!1,m=d+"小時後,明天"+e)}return g>1&&(o=!1,m=2===g?"後天":g+"天後"),p>0&&(o=!1,m=p+"周後"),h>0&&(o=!1,m=h+"個月後"),A>0&&(o=!1,m=A+"年後"),{today:o,msg:m,err:""}}function xv(e,t=null){if(!ba(r))throw new Error("invalid dayjs");if(!BI(e))return{today:null,msg:"",err:"時間格式錯誤"};let n=r();BI(t)&&(n=r(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=r(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(n<i)return{today:null,msg:"",err:"時間未到"};let o=n.format("YYYY-MM-DD"),a=i.format("YYYY-MM-DD"),s=r(o,"YYYY-MM-DD"),l=r(a,"YYYY-MM-DD"),c=n.diff(i,"seconds"),u=n.diff(i,"minutes"),f=n.diff(i,"hours"),d=s.diff(l,"days"),g=s.diff(l,"weeks"),p=s.diff(l,"months"),h=s.diff(l,"years"),A=!1,m="剛剛";if(c>=0&&(A=!0,m=c+"秒前"),u>0&&(A=!0,m=u+"分鐘前"),f>0){let e=i.format("HH:mm");o===a?(A=!0,m=f+"小時前"):(A=!1,m="昨天"+e)}return d>1&&(A=!1,m=d+"天前"),g>0&&(A=!1,m=g+"周前"),p>0&&(A=!1,m=p+"個月前"),h>0&&(A=!1,m=h+"年前"),{today:A,msg:m,err:""}}function Dv(e){let t=wI.sepTZ(e);return e=`${t.t}.000${t.tz}`}function Fv(e){let t=wI.sepTZ(e);return e=`${t.t}.000${t.tz}`}function Qv(e){if(!es(e))return"";let t;try{t=Ka(HI(e))}catch(e){return""}return t}e.ab2blob=function(e){let t=v(e);return new Blob([t])},e.ab2u8arr=v,e.addExcelWorksheetFromData=function(e,t,r="data"){if(!Ce(e))return{error:"wb is not an effective object"};if(!xe(Be(e,"SheetNames")))return{error:"wb.SheetNames is not an array"};if(!Ee(Be(e,"Sheets")))return{error:"wb.Sheets is not an object"};let n=wn(t);return Ne(n,"error")?n:(e.SheetNames.push(r),e.Sheets[r]=n,e)},e.addMonth=function(e,t){return Bn(e)&&Ln(t)?r(e,"YYYY-MM").add(t,"months").format("YYYY-MM"):""},e.aes2str=ui,e.alive=function(e={}){let t=_i(),r={},n=null,i=Be(e,"timeAlive");to(i)||(i=1e4),i=eo(i);let o=Be(e,"timeDetect");return to(o)||(o=50),o=eo(o),t.trigger=function(e,a){Fe(e)?(Ne(r,e)||setTimeout(()=>{t.emit("message",{eventName:"enter",key:e,data:a,now:gn(r)})},1),r[e]={data:a,time:Date.now()},null===n&&(n=setInterval(()=>{Cr(r,(e,n)=>{if(Date.now()-e.time>i){let e=Vi(r[n]);delete r[n],t.emit("message",{eventName:"leave",key:n,data:e.data,now:gn(r)})}}),Ce(r)||(clearInterval(n),n=null)},o))):console.log("trigger need key")},t.get=function(){let e=[];return Cr(r,(t,r)=>{e.push({key:r,data:t.data})}),e=Vi(e),e},t},e.arr2dt=function(e,t=""){if(!Or(e))return{};if(Or(t))return gn(e)===gn(t)?ro(e,t):{};let r=[];for(let n=0;n<gn(e);n++)r.push(Vi(t));return ro(e,r)},e.arrAccum=function(e){if(!Or(e))return[];let t=[],r=0;return Cr(e,function(e){r+=Hn(e),ke(e)?t.push(r):t.push("")}),t},e.arrAdd=function(){if(gn(arguments)<2)return[];let e=arguments[0];for(let t=1;t<gn(arguments);t++){e=no(e,arguments[t])}return e},e.arrAt=Co,e.arrDiff=sa,e.arrFilterByKeywords=function(e,t){if(!Or(e))return[];if(!Fe(t)&&!Or(t))return[];let r=null;r=Fe(t)?ua(t," "):t;let n=gn(r);return Dr(e,e=>function(e){let t=!1,i=0;for(let o=0;o<n;o++){let a=r[o],s=a,l="+"===fa(a,1),c="-"===fa(a,1);if((l||c)&&(s=ga(a,1)),""===la(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/n;e=e**2,i+=e}}return{hasKeyword:t,weight:i}}(e))},e.arrFilterByNum=function(e){return Or(e)?e=Dr(e=ha(e=Vi(e),ke),Hn):[]},e.arrFilterByPnum=ma,e.arrFilterByPnumAndToLog=function(e){return Or(e)?e=Dr(e=ma(e),Math.log):[]},e.arrFind=function(e,t){function r(e){return xe(e)?e:[e]}return Rr(e)||0===(e=r(e)).length||Rr(t)?[]:Dr(t=r(t),function(t){let r=-1;for(let n=0;n<e.length;n++)if(Ia(e[n],t)){r=n;break}return r})},e.arrGroupByMaxmin=function(e,t,r={}){let n=Be(r,"keyMax");Fe(n)||(n="max");let i=Be(r,"keyMin");Fe(i)||(i="min");let o=Be(r,"keyValue");Fe(o)||(o="value");let a=Be(r,"keyItems");if(Fe(a)||(a="items"),!Or(e))return[];if(!Or(t))return[];let s=Vi(t);return Cr(e,(e,r)=>{let l=Be(e,o);ke(l)?l=Hn(l):ke(e)&&(l=Hn(e)),ya(l)&&Cr(t,(t,r)=>{let o=Be(t,n,null),c=Be(t,i,null);if(null!==o&&null!==c&&ke(o)&&ke(c)){let n=Be(t,"maxType");"<="!==n&&"<"!==n&&(n="<=");let i,u,f=Be(t,"minType");">="!==f&&">"!==f&&(f=">="),o=Hn(o),c=Hn(c),i=">="===f?l>=c:l>c,u="<="===n?l<=o:l<o,i&&u&&(Ne(s[r],a)||(s[r][a]=[]),s[r][a].push(e))}})}),s},e.arrHas=va,e.arrInsert=function(e,t,r){if(!xe(e))return[];if(xe(r)||(r=[r]),!Eo(t))return e;if((t=eo(t))>gn(e))return e;let n=e;try{n=[...e.slice(0,t),...r,...e.slice(t)]}catch(e){}return n},e.arrLookupByMaxmin=function(e,t,r={}){let n=Be(r,"keyMax");Fe(n)||(n="max");let i=Be(r,"keyMin");Fe(i)||(i="min");let o=Be(r,"keyValue");Fe(o)||(o="value");let a=Be(r,"keyItems");Fe(a)||(a="items");let s=Be(r,"beforeAddResult",null);if(!Or(e))return[];if(!Or(t))return[];if(!Ce(Be(e,0)))return[];let l=Vi(e);return Cr(l,(e,r)=>{let c=Be(e,o);ke(c)&&(c=Hn(c)),ya(c)&&Cr(t,(e,t)=>{let o=Be(e,n,null),u=Be(e,i,null);if(null!==o&&null!==u&&ke(o)&&ke(u)){let t=Be(e,"maxType");"<="!==t&&"<"!==t&&(t="<=");let n,i,f=Be(e,"minType");">="!==f&&">"!==f&&(f=">="),o=Hn(o),u=Hn(u),n=">="===f?c>=u:c>u,i="<="===t?c<=o:c<o,n&&i&&(ba(s)&&(e=s(e,l[r],r)),Ne(l[r],a)||(l[r][a]=[]),l[r][a].push(e))}})}),l},e.arrMax=function(e,t={}){if(!Or(e))return null;let r=Be(t,"returnIndex");hn(r)||(r=!1);let n=Be(t,"compareKey",null),i=e;Fe(n)&&(i=Dr(e,(e,t)=>Be(e,n,"")));let o=null,a=wa(i,(e,t)=>ke(t)?(t=Hn(t),null===e?(o=t,t):(e=Math.max(e,t),o=e,e)):e,{returnIndex:!0});if(r)return a;let s=null;return a>=0&&(s=Fe(n)?e[a]:o),s},e.arrMin=function(e,t={}){if(!Or(e))return null;let r=Be(t,"returnIndex");hn(r)||(r=!1);let n=Be(t,"compareKey",null),i=e;Fe(n)&&(i=Dr(e,(e,t)=>Be(e,n,"")));let o=null,a=wa(i,(e,t)=>ke(t)?(t=Hn(t),null===e?(o=t,t):(e=Math.min(e,t),o=e,e)):e,{returnIndex:!0});if(r)return a;let s=null;return a>=0&&(s=Fe(n)?e[a]:o),s},e.arrMulti=Ea,e.arrNorm=function(e){if(!Or(e))return null;let t=xa(e,e);return ke(t)?t<=0?null:Math.sqrt(t):null},e.arrProduct=xa,e.arrPull=function(e,t){if(!Or(e))return[];if((Ee(t)||ke(t)||De(t)||hn(t))&&(t=[t]),!Or(t))return e;let r=Vi(e);return Qa(r,t),r},e.arrPullAt=function(e,t){if(!Or(e))return[];if(Eo(t)&&(t=[t]),!Or(t))return e;t=Dr(t,e=>eo(e));let r=Vi(e);return Ha(r,t),r},e.arrReduce=wa,e.arrReverse=function(e){if(!Or(e))return[];let t=Vi(e);return Ua(t),t},e.arrSep=function(e,t){if(!Or(e))return[];if(!to(t)&&!Ce(t))return[];let r="",n=null;if(to(t))n=t,r="numCount";else if(Ce(t))if(to(Be(t,"numCount")))n=t.numCount,r="numCount";else{if(!to(Be(t,"numGroup")))throw new Error("invalid opt.numCount or opt.numGroup");n=t.numGroup,r="numGroup"}let i=gn(e),o=[];if("numCount"===r)for(let t=0;t<i;t+=n){let r=[];for(let o=0;o<n;o++){let n=t+o;n<i&&r.push(e[n])}o.push(r)}else if("numGroup"===r){for(let e=0;e<n;e++)o[e]=[];let t=-1;for(let r=0;r<i;r++)t++,t>n-1&&(t=0),o[t].push(e[r])}return o},e.arrSort=Wa,e.asind=function(e){return ke(e)?(e=Hn(e),180*Math.asin(e)/Math.PI):null},e.atan2d=function(e,t){return ke(e)?(e=Hn(e),ke(t)?(t=Hn(t),180*Math.atan2(t,e)/Math.PI):null):null},e.atand=function(e){return ke(e)?(e=Hn(e),180*Math.atan(e)/Math.PI):null},e.attstr=function(e={}){let t=";",r="@",n="table",i="id",o=Be(e,"uniqItems");hn(o)||(o=!1);let a=Be(e,"dlmItem","");Fe(a)&&(t=a);let s=Be(e,"dlmSep","");Fe(s)&&(r=s);let l=Be(e,"keyTable","");Fe(l)&&(n=l);let c=Be(e,"keyId","");Fe(c)&&(i=c);let u=Be(e,"mode");function f(e){if(!Fe(e))return[];let r=zo(e,t);return o&&(r=Xr(r)),r}function d(e){if(!Or(e))return"";return o&&(e=Xr(e)),Do(e,t)}function g(e){return e=ha(e,Fe),o&&(e=Xr(e)),d(e)}function p(e){let t=[];return Cr(e,e=>{let o=Be(e,n,""),a=Be(e,i,"");if(Fe(o),De(a)||(xe(a)?gn(a):a=""),De(a))t.push(`${o}${r}${a}`);else if(xe(a)){let e=Do(a,r);t.push(`${o}${r}${e}`)}}),e=d(t)}function h(e){if(!Fe(e))return[];return ha(f(e),Fe)}function A(e){if(!Fe(e))return[];let t=f(e),o=[];return Cr(t,e=>{let t=zo(e,r),a=Be(t,0,""),s=Be(t,1,"");gn(t)>=3&&(t=Ga(t),s=t),o.push({item:e,[n]:a,[i]:s})}),o}function m(e,t){let r=[...h(e),...h(t)];return 0===gn(r)?"":g(r)}function I(e,t){let r=[...A(e),...A(t)];return 0===gn(r)?"":p(r)}function y(e,t){let r=h(e),n=h(t),i=[];return Cr(r,e=>{va(e,n)||i.push(e)}),0===gn(i)?"":g(i)}function v(e,t){let r=A(e),n=A(t),i=[];return Cr(r,e=>{va(e,n)||i.push(e)}),0===gn(i)?"":p(i)}"1p"!==u&&"2p"!==u&&(u="auto");let b={parse:function(e,t={}){if(!Fe(e))return[];let n=Be(t,"mode");return"1p"!==n&&"2p"!==n&&(n=u),"1p"===n?h(e):"2p"===n||e.indexOf(r)>=0?A(e):h(e)},join:function(e,t={}){if(!Or(e))return"";let r=Be(t,"mode");if("1p"!==r&&"2p"!==r&&(r=u),"1p"===r)return g(e);if("2p"===r)return p(e);let o=Be(e,0);return Ne(o,n)&&Ne(o,i)?p(e):g(e)},remove:function(e,t,n={}){if(!Fe(e))return"";if(!Fe(t))return e;let i=Be(n,"mode");return"1p"!==i&&"2p"!==i&&(i=u),"1p"===i?y(e,t):"2p"===i||t.indexOf(r)>=0?v(e,t):y(e,t)},add:function(e,t,n={}){let i=Be(n,"mode");if("1p"!==i&&"2p"!==i&&(i=u),"1p"===i)return m(e,t);if("2p"===i)return I(e,t);let o=e.indexOf(r)>=0,a=t.indexOf(r)>=0;return o||a?I(e,t):m(e,t)}};return b},e.b642obj=function(e){if(!De(e))return{};let t={};try{t=$a(Ka(e))}catch(e){t={}}return t},e.b642str=Ka,e.b642u16arr=rs,e.b642u8arr=Za,e.binstr=ns,e.blob2ab=os,e.blob2b64=as,e.blob2str=function(e){let t=is(),r=new FileReader;return r.onload=function(){t.resolve(r.result)},r.onerror=function(e){t.reject(e)},r.readAsText(e),t},e.blob2u8arr=ss,e.blobs2b64s=ls,e.blobs2u8arrs=cs,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>${ds(Dr(arguments,function(e){return An(e)}).join(", "))}</code>\n </div>\n `;document.querySelector("body").insertAdjacentHTML("beforeend",e)},e.browserView=gs,e.browserViewFromBlob=function(e,t){ps(e)&&gs(e,t)},e.browserViewFromText=function(e){De(e)&&gs(e,"text/plain")},e.browserViewFromU8arr=function(e,t){es(e)&&gs(e,t)},e.bs2u8arr=hs,e.bufRead=As,e.bufReadDbl=ms,e.bufWrite=Is,e.bufWriteDbl=ys,e.cache=function(){let e=_i(),t={};function r(t,r){setTimeout(()=>{e.emit(t,r)},1)}function n(e,n={}){if(Ne(t,e))return;let i=Be(n,"fun");ba(i)||(i=async()=>{});let o=Be(n,"inputs");xe(o)||(o=[]);let a=Be(n,"timeExpired");to(a)||(a=5e3),a=eo(a),t[e]={needExec:!0,fun:i,running:!1,inputs:o,value:null,time:null,timeExpired:a},r("message",{fun:"set",key:e,timeExpired:a})}async function i(e){if(Ne(t,e)){let n;r("message",{fun:"get",key:e,msg:"waiting"}),await bs(()=>!t[e].running,{timeInterval:1e3});let i=Date.now();n=t[e].needExec;let o=i-t[e].time;return n?r("message",{fun:"get",key:e,msg:"execute first"}):t[e].timeExpired>0&&o>t[e].timeExpired&&(r("message",{fun:"get",key:e,msg:"execute by timeExpired",timeDiff:o}),n=!0),n?(r("message",{fun:"get",key:e,msg:"fun start"}),t[e].running=!0,t[e].value=await t[e].fun(...t[e].inputs).catch(t=>{r("error",{fun:"get",key:e,msg:t})}),t[e].needExec=!1,t[e].time=i,t[e].running=!1,r("message",{fun:"get",key:e,msg:"fun end"})):r("message",{fun:"get",key:e,msg:"use cache"}),Vi(t[e].value)}return r("error",{fun:"get",key:e,msg:"invalid key"}),null}return e.set=n,e.getProxy=async function(e,t={}){return n(e,t),i(e)},e.get=i,e.update=function(e,n){Ne(t,e)&&(r("message",{fun:"updateValue",key:e}),t[e].value=n,t[e].time=Date.now())},e.clear=function(e){Ne(t,e)&&(r("message",{fun:"clear",key:e}),t[e].needExec=!0)},e.remove=function(e){Ne(t,e)&&(r("message",{fun:"remove",key:e}),delete t[e])},e},e.cacheBd=function(e,t={}){let r=Be(t,"nMax");to(r)||(r=200),r=eo(r);let n=Be(t,"nTrigger");to(n)||(n=3),n=eo(n);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<=r&&(t>n&&!o&&await a(...e).catch(()=>{}),null===i);t++)await ws(1e3);if(null===i)throw new Error(`exceeded nMax[${r}]`);return i}}},e.cacheSt=function(e={}){let t=Be(e,"timeExpire",null);to(t)||(t=18e5),t=eo(t);let r=Be(e,"timeDetect",null);to(r)||(r=2e3),r=eo(r);let n=_i(),i={},o=e=>{if(Ne(i,e)){let t=`checkWithSet: key in use: ${e}`;return n.emit("checkWithSet",{state:"error",msg:t}),!1}i[e]={time:Date.now(),value:!0};let t=`checkWithSet: ${e}`;return n.emit("checkWithSet",{state:"success",msg:t}),!0},a=setInterval(()=>{n.emit("detect",{state:"start"});let e=Date.now();for(let r of Object.keys(i)){let n=i[r];n&&e-n.time>t&&delete i[r]}n.emit("detect",{state:"finish"})},r);return n.checkWithSet=o,n.setWithFree=async(e,t)=>{n.emit("setWithFree",{state:"start"});let r=[];for(let t of e){if(!o(t)){for(let e of r)delete i[e];let e=`setWithFree: key in use: ${t}`;return n.emit("setWithFree",{state:"error",msg:e}),Promise.reject(e)}r.push(t)}try{let r=await t(),i=`setWithFree: ${e.join(", ")}`;return n.emit("setWithFree",{state:"success",msg:i}),r}catch(e){let t=`setWithFree: fn threw: ${e&&e.message||e}`;throw n.emit("setWithFree",{state:"error",msg:t}),e}finally{for(let e of r)delete i[e]}},n.set=async(e,t=!0)=>{i[e]={time:Date.now(),value:t};let r=`set: ${e}`;n.emit("set",{state:"success",msg:r})},n.get=async e=>{let t=i[e],r=void 0===t?null:t.value,o=`get: ${e}`;return n.emit("get",{state:"success",msg:o}),r},n.check=async e=>{let t=Ne(i,e),r=`check: ${e} = ${t}`;return n.emit("check",{state:"success",msg:r}),t},n.del=async e=>{delete i[e];let t=`del: ${e}`;n.emit("del",{state:"success",msg:t})},n.waitExist=async(e,t={})=>{let r=Be(t,"attemptNum",null);to(r)||(r=30),r=eo(r);let o=Be(t,"timeInterval",null);to(o)||(o=100),o=eo(o),n.emit("waitExist",{state:"start"});try{await bs(()=>Ne(i,e),{attemptNum:r,timeInterval:o})}catch(t){let i=`waitExist timeout (${r*o}ms): ${e}`;return n.emit("waitExist",{state:"error",msg:i}),Promise.reject(i)}let a=`waitExist resolved: ${e}`;n.emit("waitExist",{state:"success",msg:a})},n.waitNotExist=async(e,t={})=>{let r=Be(t,"attemptNum",null);to(r)||(r=30),r=eo(r);let o=Be(t,"timeInterval",null);to(o)||(o=100),o=eo(o),n.emit("waitNotExist",{state:"start"});try{await bs(()=>!Ne(i,e),{attemptNum:r,timeInterval:o})}catch(t){let i=`waitNotExist timeout (${r*o}ms): ${e}`;return n.emit("waitNotExist",{state:"error",msg:i}),Promise.reject(i)}let a=`waitNotExist resolved: ${e}`;n.emit("waitNotExist",{state:"success",msg:a})},n.clear=()=>{clearInterval(a)},n},e.cbol=function(e){if(hn(e))return e;if(0===e)return!1;if(1===e)return!0;let t=!1;return Fe(e)&&"true"===(e=Bs(la(e)))&&(t=!0),t},e.cdbl=Hn,e.ceil=ac,e.cfilesize=function(e){return ke(e)?(e=Hn(e))<1024?sc(e,1)+" b":e<1048576?sc(e/1024,1)+" kb":e<1073741824?sc(e/1024/1024,1)+" mb":e<1099511627776?sc(e/1024/1024/1024,1)+" gb":"":""},e.cfinancial=function(e,t=0){if(!ke(e))return"";if(!Eo(t))return"";let r=(e=sc(e,t)).split("."),n=r[0],i=r.length>1?"."+r[1]:"",o=/(\d+)(\d{3})/;for(;o.test(n);)n=n.replace(o,"$1,$2");return n+i},e.cint=eo,e.clearXSS=lc,e.clearXSSDyn=async function(e,t={},r){return Or(r)||(r=["https://cdn.jsdelivr.net/npm/xss@1.0.15/dist/xss.min.js"]),await gc(r),lc(e)},e.color=yu,e.composeToTree=Eu,e.convertToTree=function(e,t={}){if(!Ce(e)&&!Or(e))return[];let r=Be(t,"bindKey",null);Fe(r)||(r="id");let n=Be(t,"bindParent",null);Fe(n)||(n="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 hn(c)||(c=!1),Fe(l)&&(e={[l]:e}),Eu(xu(e,{bindKey:r,bindParent:n,bindText:i,bindType:a,bindNumOfChilren:s}),{bindKey:r,bindParent:n,bindChildren:o,saveExtProps:c})},e.copyStrToClipboard=function(e,t={}){if(!De(e))return"invalid input";let r=Be(t,"eleParent");wr(r)||(r=document.body);let n=document.createElement("textarea");if(n.style.position="fixed",n.style.left=0,n.style.top=0,n.style.zIndex=-1,n.style.background="transparent",n.style.color="transparent",n.value=e,r.appendChild(n),n.select(),!Du(n))return"ele can not be focusd";try{document.execCommand("copy")}catch(e){return"can not copy str to clipboard"}return r.removeChild(n),""},e.cosd=Fu,e.cotd=function(e){return ke(e)?1/Qu(e=Hn(e)):null},e.createExcelWorkbook=Su,e.cscd=function(e){return ke(e)?1/ku(e=Hn(e)):null},e.cstr=ja,e.day2cht=function(e,t=!1){if(!Nu(e))return"";let n=r(e,"YYYY-MM-DD"),i="";return i=t?n.month()+1+"月"+n.date()+"日":"民國 "+(n.year()-1911)+" 年 "+(n.month()+1)+" 月 "+n.date()+" 日",i},e.debounce=qu,e.delay=ws,e.dig=sc,e.digExp=function(e,t=0){if(!ke(e))return"";if(!Eo(t))return"";let r="";return r=0===(e=Hn(e))?"0":Math.abs(e)<=1e-6?e.toExponential(t):sc(e,t),r},e.domAlert=function(e,t={}){if(!Fe(e))return;let r=Be(t,"type","success");Ne(Tu,r)||(r="success");let n=Be(t,"icon",null);Fe(n)||(n=Tu[r]);let i="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(i=t.position);let o=Be(t,"time");ya(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),r=Be(a,"left",0);s=`padding:${e}px ${Be(a,"right",0)}px ${t}px ${r}px;`}let l=Be(t,"textColor","#000");l=hc(l,";","");let c=Be(t,"backgroundColor","#fff");c=hc(c,";","");let u=Be(t,"borderWidth",1),f=Be(t,"borderColor","#ebeef5");f=hc(f,";","");let d=Be(t,"borderRadius",8),g=Be(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");g=hc(g,";","");let p=Be(t,"closeIconShift",null);null===p&&(p={top:10,right:10});let h="";{let e=Be(p,"top",""),t=Be(p,"bottom",""),r=Be(p,"left",""),n=Be(p,"right","");ya(e)&&(e=`top:${e}px;`),ya(t)&&(t=`bottom:${t}px;`),ya(r)&&(r=`left:${r}px;`),ya(n)&&(n=`right:${n}px;`),h=`position:absolute; ${e} ${n} ${t} ${r}`}let A=`alt-${Lu()}`,m=`alt-${Lu()}`,I=`\n <div \n style="display:inline-block; color:${l}; background:${c}; border:${u}px solid ${f}; border-radius:${d}px; box-shadow:${g};"\n onmouseenter="ttWAlertFadeIn('${m}')"\n onmouseleave="ttWAlertFadeOut('${m}')"\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;">${n}</div>\n </div>\n <div>${e}</div>\n </div>\n\n <div style="${h}">\n <div \n id="${m}" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel('${A}')"\n >\n ${Ou}\n </div>\n </div>\n\n </div>\n </div>\n `,y=document.createElement("div");y.id=A,y.style.position="fixed",y.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",y.style.zIndex=-1,y.style.opacity=.001,i.indexOf("-left")>=0?y.style.transform="translateX(-100%)":y.style.transform="translateX(100%)",y.innerHTML=I,document.querySelector("body").appendChild(y);let v=is();return function({id:e,position:t,time:r,pm:n}){Yu[e]={id:e,position:t,ele:null,loc:{height:null,top:null,bottom:null,left:null,right:null},timeShow:r,timeStart:Date.now(),pm:n},Ju(),null===ju&&(ju=setInterval(()=>{Cr(Yu,e=>{Date.now()-e.timeStart>e.timeShow&&(e.pm.resolve(),zu(e.id))}),Ce(Yu)||(clearInterval(ju),ju=null)},50))}({id:A,position:i,time:o,pm:v}),v},e.domAppend=Vu,e.domCancelEvent=Xu,e.domCompareText=function(e,t,r,n,i={}){if(!wr(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=zf();Fe(t)||(t="Text");let l=ta(t,t,r,n),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=_f,e.domConvertToPicDyn=async function(e,t={},r){return Or(r)||(r=["https://cdn.jsdelivr.net/npm/@zumer/snapdom@1.9.14/dist/snapdom.min.js"]),await gc(r),_f(e,t)},e.domDetect=function(e,t={}){let r=Be(t,"timeInterval",null);to(r)||(r=20);let n=Be(t,"tolerancePixel",null);to(n)||(n=1);let i,o=_i(),a={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0,windowWidth:0,windowHeight:0},s=Vi(a),l={width:"",height:""};if(!ba(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},r=s.offsetWidth-e.offsetWidth,i=s.offsetHeight-e.offsetHeight,c=Math.abs(r)>n,u=Math.abs(i)>n,f="";r>0?f="smaller":r<0&&(f="larger");let d="";if(i>0?d="smaller":i<0&&(d="larger"),l={width:f,height:d},c||u){let r={...s};setTimeout(()=>{e.offsetWidth>0&&e.offsetHeight>0&&(o.emit("resize",{sold:r,snew:e,smode:l,ele:t}),o.emit("resizeWithWindow",{sold:r,snew:e,smode:l,ele:t,from:"dom"}))},1)}a=s,s=e}},r);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(!wr(e))return void console.log("ele is not a HTMLElement",e);let r=Be(t,"attIdentify",null);Fe(r)||(r="dragid");let n=Be(t,"attIndex",null);Fe(n)||(n="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);ya(a)||(a=.4);let s=Be(t,"previewDisabledOpacity",null);ya(s)||(s=.2);let l=Be(t,"previewBackground",null);Fe(l)||(l="white");let c=Be(t,"previewBorderWidth",null);ya(c)||(c=1);let u=Be(t,"previewBorderColor",null);Fe(u)||(u="#f26");let f=Be(t,"timeDragStartDelay",null);ya(f)||(f=120);let d=`c${Lu(8)}`,g=o;e.setAttribute(i,g),e.setAttribute(r,d);let p=od(g,d,{attIdentify:r,previewOpacity:a,previewBackground:l,previewBorderWidth:c,previewBorderColor:u}),h=function(e,t){let r=[];return{bind:function(){let n;n="mousedown";let i=function(r){t.dragStart({e:r,ele:e,name:"mousedown"})};e.addEventListener(n,i,!1),r.push({ele:e,name:n,f:i}),n="touchstart";let o=function(r){t.dragStart({e:r,ele:e,name:"touchstart"})};e.addEventListener(n,o,!1),r.push({ele:e,name:n,f:o}),n="touchmove";let a=function(e){t.dragMove({e:e,name:"touchmove"}),e.cancelable&&e.preventDefault()};e.addEventListener(n,a,!1),r.push({ele:e,name:n,f:a})},unbind:function(){Cr(r,({ele:e,name:t,f:r})=>{e.removeEventListener(t,r)})}}}(e,{dragStart:e=>{p.emit(g+"-dragStart",e)},dragMove:e=>{p.emit(g+"-dragMove",e)}});h.bind(),sd({gid:g,attGroup:i,attIndex:n,attIdentify:r,timeDragStartDelay:f,previewOpacity:a,previewDisabledOpacity:s});let A=_i();return p.on(o+"-change",e=>{e.tarEid===d&&A.emit("change",e)}),p.on(o+"-start",e=>{e.tarEid===d&&A.emit("start",e)}),p.on(o+"-move",e=>{e.tarEid===d&&A.emit("move",e)}),p.on(o+"-enter",e=>{e.tarEid===d&&A.emit("enter",e)}),p.on(o+"-leave",e=>{e.tarEid===d&&A.emit("leave",e)}),p.on(o+"-drop",e=>{e.tarEid===d&&A.emit("drop",e)}),A.setIsActive=function(e){id[g].isActive=e},A.unbind=function(){h.unbind(),function(e,t){let r=id[e],n=Vi(r.eleIds);Wf(n,t),r.eleIds=n,0===n.length&&(r.oevg.unbind(),r.pv.clear(),delete id[e])}(g,d)},A},e.domDragBarAndScroll=function(e,t,r={}){let n=null,i=null,o=null,a=null,s=null,l=null,c=null,u=null,f=null,d=null,g=null,p=null,h=null,A=null,m=null,I=!1,y=Be(r,"getHeighRatio",null);O(y)||(y=()=>1);let v=Be(r,"getWidthRatio",null);O(v)||(v=()=>1);let b=Be(r,"stopScrollPropagationForPanel",null);pn(b)||(b=!1);let w=Be(r,"stopTouchDragPropagationForPanel",null);pn(w)||(w=!1);let B=Be(r,"useTouchDragForPanel",null);pn(B)||(B=!0);let E=e,C=t,x=_i();return n=e=>{let t=e.deltaY/Math.abs(e.deltaY),r=e.deltaX/Math.abs(e.deltaX);x.emit("scrollPanel",{ratioY:t,ratioX:r}),b&&Xu(e)},E.addEventListener("wheel",n),i=e=>{if(B){let t=Be(e,"touches.0.clientY",0),r=Be(e,"touches.0.clientX",0),n=-t*y(),i=-r*v();I=!0,x.emit("pressBar",{clientY:n,clientX:i}),w&&Xu(e)}},E.addEventListener("touchstart",i),o=e=>{if(B&&I){let t=Be(e,"touches.0.clientY",0),r=Be(e,"touches.0.clientX",0),n=-t*y(),i=-r*v();x.emit("dragBar",{clientY:n,clientX:i}),w&&Xu(e)}},E.addEventListener("touchmove",o,{passive:!1}),a=e=>{B&&I&&(I=!1,x.emit("freeBar"),w&&Xu(e))},E.addEventListener("touchend",a),s=e=>{I=!0,x.emit("pressBar",{clientY:e.clientY,clientX:e.clientX})},C.addEventListener("mousedown",s),l=e=>{I&&(I=!1,x.emit("freeBar"))},C.addEventListener("mouseup",l),c=e=>{I=!0,x.emit("pressBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX})},C.addEventListener("touchstart",c),u=e=>{I&&(x.emit("dragBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX}),Xu(e))},C.addEventListener("touchmove",u,{passive:!1}),f=e=>{I&&(I=!1,x.emit("freeBar"))},C.addEventListener("touchend",f),d=e=>{I&&x.emit("dragBar",{clientY:e.clientY,clientX:e.clientX})},window.addEventListener("mousemove",d),g=e=>{I&&(I=!1,x.emit("freeBar"),b&&Xu(e))},window.addEventListener("mouseup",g),p=e=>{},window.addEventListener("scroll",p,{passive:!1}),h=e=>{},window.addEventListener("wheel",h,{passive:!1}),A=e=>{},document.addEventListener("scroll",A,{passive:!1}),m=e=>{},document.addEventListener("wheel",m,{passive:!1}),x.clear=function(){E.removeEventListener("wheel",n),E.removeEventListener("touchstart",i),E.removeEventListener("touchmove",o),E.removeEventListener("touchend",a),C.removeEventListener("mousedown",s),C.removeEventListener("mouseup",l),C.removeEventListener("touchstart",c),C.removeEventListener("touchmove",u),C.removeEventListener("touchend",f),window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",g),window.removeEventListener("scroll",p),window.removeEventListener("wheel",h),document.removeEventListener("scroll",A),document.removeEventListener("wheel",m)},x},e.domDragPreview=nd,e.domDropFiles=function(e){let t=!1,r=!1,n=_i();function i(e){Xu(e),r=!0,!1===t&&(t=!0,n.emit("dropIn",{ev:e}))}function o(e){Xu(e),r=!1,setTimeout(function(){r||(t=!1,n.emit("dropOut",{ev:e}))},100)}function a(e){i(e)}function s(e){o(e)}function l(e){function t(){o(e)}i(e),ud(e.dataTransfer).then(r=>{let i=ha(r.entries,{type:"file"});n.emit("getFiles",{ev:e,files:r.files,filesTree:i,entries:r.entries,cb:t})}).catch(e=>{n.emit("error",e)})}return e.addEventListener("dragenter",a,!1),e.addEventListener("dragover",a,!1),e.addEventListener("dragleave",s,!1),e.addEventListener("drop",l,!1),n.off=function(){e.removeEventListener("dragenter",a,!1),e.removeEventListener("dragover",a,!1),e.removeEventListener("dragleave",s,!1),e.removeEventListener("drop",l,!1)},n},e.domElementsFromPoint=Zf,e.domFadeIn=Uu,e.domFadeOut=Ru,e.domFind=fd,e.domFinds=Vf,e.domGetAttr=ed,e.domGetBoudRect=td,e.domGetBoudRectRefSelf=rd,e.domGetFileAccept=yd,e.domGetFiles=vd,e.domGetParents=Kf,e.domGetPointFromEvent=$f,e.domGetScrollableParent=function(e){let t=/(auto|scroll)/,r=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},n=function(e){return t.test(function(e){return r(e,"overflow")+r(e,"overflow-y")+r(e,"overflow-x")}(e))};if(!(e instanceof HTMLElement||e instanceof SVGElement))return;let i=Kf(e);for(let e=0;e<i.length;e+=1)if(n(i[e]))return i[e];return document.scrollingElement||document.documentElement},e.domGetWindowSize=function(){let e=vn();return{width:(()=>{let t=[Be(e,"innerWidth"),Be(e,"document.documentElement.clientWidth"),Be(e,"document.body.clientWidth")];return t=ha(t,ya),Bd(t)})(),height:(()=>{let t=[Be(e,"innerHeight"),Be(e,"document.documentElement.clientHeight"),Be(e,"document.body.clientHeight")];return t=ha(t,ya),Bd(t)})()}},e.domIsClientXYIn=function(e,t,r){if(!ya(e))return void console.log("clientX is not a number",e);if(!ya(t))return void console.log("clientY is not a number",t);if(!wr(r))return void console.log("ele is not a HTMLElement",r);let n;try{n=r.getBoundingClientRect()}catch(e){return void console.log("invalid ele for getBoundingClientRect",e)}let i=!1;try{i=e>=n.left&&e<=n.right&&t>=n.top&&t<=n.bottom}catch(e){console.log("catch when calculating page information of element",e)}return i},e.domIsFocused=Du,e.domIsStable=function(e,t={}){if(!wr(e))return Promise.reject("invalid element");if(!ba(e.getBoundingClientRect))return Promise.reject("invalid element.getBoundingClientRect");let r=Be(t,"mode","");"promise"!==r&&"event"!==r&&(r="promise");let n=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=()=>{try{return e.getAnimations({subtree:!0})}catch(e){return[]}},l=async()=>{let e=is();try{let t=a();await ws(i);let r=((e,t)=>!!e&&!!t&&Math.abs(e.x-t.x)<=n&&Math.abs(e.y-t.y)<=n&&Math.abs(e.w-t.w)<=n&&Math.abs(e.h-t.h)<=n)(t,a());await Promise.allSettled(s().map(e=>e.finished));let o=0===s().length,l=r&&o;e.resolve(l)}catch(t){e.reject(t)}return e},c=()=>{let t=_i(),r=!1,n=null,i=null,a=!1;return t.create=()=>{n=setInterval(()=>{r=(e=>{let r=!1;if(!wr(e))return r;try{let e=!1,n=!1;i=setInterval(()=>{a?clearInterval(i):e||(e=!0,l().then(e=>{a||n!==e&&(n=e,t.emit("stable",e))}).catch(()=>{}).finally(()=>{e=!1}))},o),r=!0}catch(e){}return r})(e),r&&clearInterval(n)},50)},t.dispose=()=>{let e=!1;try{clearInterval(n),clearInterval(i),a=!0,e=!0}catch(e){}return e},t},u=null;return"promise"===r?u=l():"event"===r&&(u=c()),u},e.domIsVisible=function(e,t={}){if(!wr(e))return Promise.reject("invalid element");if(Ed())return Promise.reject("invalid IntersectionObserver");let r=Be(t,"mode","");"promise"!==r&&"event"!==r&&(r="promise");let n=()=>{let t=_i(),r=!1,n=null,i=!1,o=new IntersectionObserver(e=>{if(i)return;let r=e[0].isIntersecting;t.emit("visible",r)});return t.create=()=>{n=setInterval(()=>{i?clearInterval(n):(r=(e=>{let t=!1;if(!wr(e))return t;try{o.observe(e),t=!0}catch(e){}return t})(e),r&&clearInterval(n))},50)},t.dispose=()=>{let e=!1;try{clearInterval(n),o.disconnect(),i=!0,e=!0}catch(e){}return e},t},i=null;return"promise"===r?i=(()=>{let t=is();try{let r=new IntersectionObserver(e=>{t.resolve(e[0].isIntersecting),r.disconnect()});r.observe(e)}catch(e){t.reject(e)}return t})():"event"===r&&(i=n()),i},e.domPrepend=Xf,e.domRemove=Pf,e.domRenderMarkdownMind=Cd,e.domRenderMarkdownMindDyn=async function(e,t,r={},n){return Or(n)||(n=["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 gc(n),Cd(e,t,r)},e.domRipple=function(e,t,r={}){let n=Be(r,"timeDuration",null);to(n)||(n=1e3);let i=Be(r,"color",null);if(Fe(i)||(i="rgba(255, 255, 255, 0.5)"),!wr(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 ${n/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(()=>{Pf(c)},n)},e.domScrollIntoView=function(e,t={}){if(!wr(e))return;Ee(t)||(t={});let r={behavior:"smooth"};r={...r,...t},Pu()&&pg(),e.scrollIntoView(r)},e.domScrollTo=function(e,t={}){if(!wr(e))return;Ee(t)||(t={});let r={behavior:"smooth"};r={...r,...t},Pu()&&pg(),e.scrollTo(r)},e.domSetAttr=function(e,t,r){if(!wr(e))return null;if(!Fe(t))return null;if(!Fe(r)&&!ke(r))return null;try{return e.setAttribute(t,r),e.getAttribute(t)}catch(e){}return null},e.domShowImages=wg,e.domShowImagesDyn=async function(e,t=null,r={},n){return Or(n)||(n=["https://cdn.jsdelivr.net/npm/viewerjs@1.11.7/dist/viewer.min.css","https://cdn.jsdelivr.net/npm/viewerjs@1.11.7/dist/viewer.min.js"]),await gc(n),wg(e,t,r)},e.domShowInputAndGetFiles=Eg,e.domShowInputAndGetFilesU8Arrs=function(e={}){let t=Be(e,"kind","*"),r=Be(e,"multiple");hn(r)||(r=!1);let n=Be(e,"entireHierarchy");hn(n)||(n=!1);let i=Be(e,"sizeMbLimit");ke(i)||(i=1e3),i=Hn(i);let o=is(),a=[];return Eg({kind:t,multiple:r,entireHierarchy:n,sizeMbLimit:i}).then(function(e){let t=is(),r=Be(e,"errs",{}),n=Be(e,"files",[]);return Ce(r)?t.reject(r):t.resolve(n),t}).then(function(e){return Cr(e,function(e){a.push({name:e.name,size:e.size,type:e.type})}),cs(e)}).then(function(e){Cr(e,function(e,t){a[t].u8a=e}),o.resolve(a)}).catch(function(e){o.reject(e)}),o},e.domShowInputDatatime=function(e,t={}){let n=Be(t,"type","");"date"!==n&&"datetime-local"!==n&&(n="datetime-local");let i=Be(t,"eleRef",null);wr(i)||(i=document.activeElement);let o=is(),a="drf"+Lu(),s="GrpDomShowDatatime";Pf(`[name=${s}]`);let l=!1,c="";if("date"===n)Nu(e)&&(l=!0,c=e);else if(Cg(e)){l=!0,c=r(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="${n}" style="opacity:0;" ${l?c:""} />\n </div>\n `;let f=null;wr(i)?i.parentNode.insertBefore(u,i.nextSibling):document.querySelector("body").appendChild(u);let d=!1;function g(){if(!d){d=!0;try{f.removeEventListener("change",h,!0),i.removeEventListener("focusout",A,!0)}catch(e){}if(Pf(`[name=${s}]`),Fe(p)){let e="";e="date"===n?p:`${p}:00`,o.resolve(e)}}}let p="";function h(e){try{p=e.target.value}catch(e){console.log(e)}g()}function A(e){setTimeout(()=>{g()},50)}return setTimeout(()=>{f=fd("#"+a),f.addEventListener("change",h,!0),f.showPicker()},1),i.addEventListener("focusout",A,!0),o},e.domTooltip=function(e,t,r={}){let n=null,i=null;function o(){null!==n&&n.destroy(!0),e.setAttribute("tippystate",""),clearInterval(i)}let a={arrow:!0,theme:"dark",placement:"bottom",delay:150};r=Ce(r)?bg(a,r):a;let s=t;t||(s=e.innerHTML);let l=ke(e.getAttribute("tippystate"));if(e.setAttribute("tippystate","5"),l)return;s=`<div style="text-align:left;">${s}</div>`;let c=Lh;Lh.default&&(c=Lh.default),n=c(e,{...r,content:s,allowHTML:!0,onHidden(){o()},onDestroy(){n=null,o()}}),n.show(),i=setInterval(()=>{let t=e.getAttribute("tippystate");ke(t)?(t=eo(t),t-=1,e.setAttribute("tippystate",t),t<=0&&o()):o()},1e3)},e.domTriggerEvent=Bg,e.domVirtualCreate=Rh,e.domVirtualCreateQueue=function(){return new function(){let e=Gh(1);return async function(t,r={}){return e(Rh,t,r)}}},e.downloadExcelFileFromData=Ph,e.downloadExcelFileFromDataDyn=async function(e,t="data",r,n){Or(n)||(n=["https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.full.min.js"]),await gc(n);let i=Ph(e,t,r);return""!==Be(i,"error","")?Promise.reject(i.error):i},e.downloadFileFromB64=function(e,t){if(!yn())return void console.log("no window");if(!Fe(e))return void console.log("no filename");let r=document.createElement("a");r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)},e.downloadFileFromBlob=Jh,e.downloadFileFromText=function(e,t,r=!0){if(!yn())return void console.log("no window");if(!Fe(e))return void console.log("invalid filename");if(!De(t))return void console.log("invalid content");if(!hn(r))return void console.log("withBOM is not a boolean");let n;n=r?new Blob(["\ufeff",t]):new Blob([t]),Jh(e,n)},e.downloadFileFromU8Arr=function(e,t){if(!yn())return void console.log("no window");if(!Fe(e))return void console.log("no filename");if(!es(t))return void console.log("no data");Jh(e,Xh(t))},e.dtmapping=_h,e.dtpick=Wh,e.estimateTicks=function(e,t,r={}){if(!ke(e))throw new Error("rmin is not a number");if(e=Hn(e),!ke(t))throw new Error("rmax is not a number");if(e===(t=Hn(t))){let t=null;t=0===e?1:Math.abs(e/10);let r=$h(t,{returnDigit:!0});return t=Kh(t,r),{tickNum:3,tickInterval:t,tickPositions:[e-t,e,e+t],tickDig:r}}if(e>t)throw new Error(`rmin[${e}] > rmax[${t}]`);let n=Be(r,"testTickNums");Or(n)||(n=[3,4,5]);let i=e,o=t,a=Zh(i),s=Zh(o),l=Math.max(a.r,s.r),c=Math.log10(l),u=i/l,f=o/l,d=(u+f)/2,g=f-u,p=[];Cr(n,e=>{let t=g/(e-1),r=$h(t,{returnDigit:!0});r=Math.min(r,2),Cr(so(r,-1,-1),r=>{let n=r-c;n=Math.max(n,0);let i=ac(t,r),o=i-1/Math.pow(10,r);o=Kh(o,r);let a=i+1/Math.pow(10,r);a=Kh(a,r);let s=[o,i,a];s=ha(s,e=>e>0);let h=Kh(d,r),A=h-1/Math.pow(10,r);A=Kh(A,r);let m=h+1/Math.pow(10,r);m=Kh(m,r);let I=[A,h,m];Cr(s,t=>{let i=l*t;i=Kh(i,n),Cr(I,o=>{let a=[],s=[];{let i=o-(e-1)/2*t;for(let o=0;o<e;o++){let e=i+o*t;e=Kh(e,r),a.push(e);let c=l*e;c=Kh(c,n),s.push(c)}}let c=(d=a)&&d.length?d[0]:void 0;var d;let h=Sa(a);if(c>u||h<f)return!0;let A=(u-c)/g,m=(h-f)/g,I=(A+m)/2,y=0;Cr(s,e=>{Ln(e)&&y++});let v=y/e,b=0;Cr(a,e=>{0===e&&b++});let w=b/e,B=0;Cr(a,e=>{.5===e&&B++});let E=B/e,C=0;Cr(a,e=>{1===e&&C++});let x=C/e,D={diff:I,rngCenter:o,numInt:y,ratInt:v,num0:b,rat0:w,num5:B,rat5:E,num10:C,rat10:x,overMin:A,overMax:m,fitness:I+.2*r+.1*e+1.5*A+1.5*m+(1-.25*v)+(1-.4*w)+(1-.3*E)+(1-.3*x),idg:r,tickNum:e,_tickDig:r,_tickInterval:t,_tickPositions:a,tickDig:n,tickInterval:i,tickPositions:s};p.push(D)})})})}),p=Ta(p,"fitness");let h=Be(p,0);return{tickNum:h.tickNum,tickInterval:h.tickInterval,tickPositions:h.tickPositions,tickDig:h.tickDig}},e.evem=_i,e.execCli=async function(e,t=[],r={}){if(!Fe(e))return{ok:!1,stdout:"",stderr:"",code:null,error:"command 須為非空字串",durationMs:0,attempts:0};xe(t)||(t=[]),Ee(r)||(r={});let{maxRetries:n=0,retryDelayMs:i=5e3,...o}=r,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);ba(c)||Fe(c)?o.validate=c:o.validate=void 0;let u=Be(o,"onStdout",null);ba(u)?o.onStdout=u:o.onStdout=void 0;let f=Be(o,"onStderr",null);ba(f)?o.onStderr=f:o.onStderr=void 0,n=Eo(n)?eo(n):0,i=to(i)?eo(i):5e3;let d=Be(o,"timeoutMs",null);to(d)?o.timeoutMs=eo(d):o.timeoutMs=12e4;let g,p=Be(o,"maxBuffer",null);to(p)?o.maxBuffer=eo(p):o.maxBuffer=10485760;let h=0;for(let r=0;r<=n;r++){if(r>0){let e=Math.min(i*r,15e3);await ws(e)}if(g=await cA(e,t,o),h=r+1,g.ok)return g.attempts=h,g;if(g.error.includes("ENOENT"))break;if(2===g.code)break}return g.attempts=h,g},e.execJsCode=async function(e,t={}){e=o.resolve(e);let r=(await import(l.pathToFileURL(e).href)).default;if(!ba(r))throw new Error(`the default export of [${e}] is not a function`);return await r(t)},e.execProcess=function(e,t,r={}){if(!Or(t)&&!Fe(t))throw new Error("args is not an effective array or string");Fe(t)&&(t=[t]);let n=Be(r,"mode");"spawn"!==n&&"exec"!==n&&"execFile"!==n&&(n="spawn");let o=Be(r,"cbStdout"),a=Be(r,"cbStderr"),s=Be(r,"codeCmd");Fe(s)||(s="utf8");let l=Be(r,"useChcp");hn(l)||(l=!1);let c=Be(r,"timeout");(!ke(c)||c<=0)&&(c=null);let u=is();if(!va(n,["spawn","exec","execFile"]))return u.reject(`invalid mode[${n}]`),u;let f=null,d="";try{if("spawn"===n){let r=fa(e,1),n=da(e,1);if('"'===r||'"'===n||"'"===r||"'"===n)throw new Error("prog of spawn doens not need to add quotes");f=i.spawn(e,t,{windowsHide:!0,shell:!1})}else if("exec"===n){let r="";l&&(r="cmd /c chcp 65001>nul &&"),f=i.exec(`${r} ${e} ${t.join(" ")} & exit`,{windowsHide:!0,encoding:s})}else"execFile"===n&&(f=i.execFile(e,t,{windowsHide:!0,encoding:s}))}catch(e){return u.reject(e),u}f.stdout.on("data",e=>{let t="";t="spawn"===n?e.toString(s):e.toString(),d+=t+"\n",ba(o)&&o(t)}),f.stderr.on("data",e=>{let t="";t="spawn"===n?e.toString(s):e.toString(),d+=t+"\n",ba(a)&&a(t)});let g=null,p=!1;return null!==c&&(g=setTimeout(()=>{p=!0,f&&f.pid&&aA(f.pid).catch(()=>{})},c)),f.on("close",e=>{null!==g&&clearTimeout(g),p?u.reject(`timeout[${c}ms]:\n${d}`):0!==e?u.reject(`code[${e}]:\n${d}`):u.resolve(d)}),f.on("error",e=>{null!==g&&clearTimeout(g),u.reject(e)}),u},e.execProcessKillPid=aA,e.filepathToTree=function(e,t={}){if(!Or(e))return{};let r=Be(t,"delimiter");Fe(r)||(r="❯");let n=Be(t,"bindRoot");Fe(n)||(n="");let i=Fe(n),o="";o=i?n:"root";let a=Be(t,"soryItems"),s=Dr(e,(e,t)=>{"folder"!==e.type&&"file"!==e.type&&(e.type="file");let n=(e=>{let t=ua(e=(e=e.replace(/\\\\/g,"\\")).replace(/\\/g,"/"),"/");return{ss:t,cfp:Do(t,r)}})(e.path);return{ind:t,type:e.type,ss:n.ss,data:Vi(e)}}),l=e=>{let t=gn(e),n=[];for(let i=0;i<t;i++){let t=[];for(let r=0;r<=i;r++)t.push(e[r]);let o=Do(t,r);n.push({id:o,name:e[i]})}return n},c=-1,u=[],f={};Cr(s,e=>{let t=null;t=[o];let n=null;n=o;let i=gn(e.ss)-1;Cr(e.ss,(o,a)=>{let s=a<i||"folder"===e.type;t.push(o);let d=null,g=null;a===i&&(d=e.ind,g=e.data);let p=Do(t,r),h=l(t);if(Ne(f,p)){let t=f[p],r="folder"===Be(t,"_type","");if(!r&&s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] is unrecognized from a file to folder`);if(!r&&!s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] get repeat data from two files`);if(r&&!s)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] is unrecognized from a folder to file`);if(Ce(f[p].data)&&Ce(g))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&&Ce(g)){f[p]._indOri=d,f[p].data=g;let e=f[p]._indNormalize,t=u[e];u[e]={...g,type:t.type,path:t.path}}}else{c++;let e=c,r=null;r=s?{_indOri:d,_indNormalize:e,ns:gn(t),ts:Vi(t),pathInfors:h,_type:"folder",type:"array",numOfChilren:-1,id:p,parentId:n,text:o,children:[],data:g}:{_indOri:d,_indNormalize:e,ns:gn(t),ts:Vi(t),pathInfors:h,_type:"file",type:"node",numOfChilren:-1,id:p,parentId:n,text:o,data:g},f[p]=r,u.push({...Be(f[p],"data",{}),type:f[p]._type,path:"/"+Do(t,"/")})}n=p})});let d=dA(f);if(d=Ta(d,"id"),d=Ta(d,"ns"),ba(a)){let e=[];Cr(yA(d,"ns"),(t,r)=>{Cr(yA(t,"parentId"),(t,n)=>{let i=a(t,n,r);e=[...e,...i]})}),d=e}let g=[],p=[];Cr(d,e=>{"folder"===e._type?g.push(e):p.push(e)});let h=yA(g,"ns"),A=yA(p,"ns"),m=fA(Dr(g,"ns")),I=fA(Dr(p,"ns")),y=null;{let e=[o];y=[{_indOri:null,_indNormalize:null,ns:gn(e),ts:Vi(e),pathInfors:l(e),_type:"folder",type:"array",numOfChilren:-1,id:o,parentId:"",text:o,children:[],data:null}]}let v={};v[o]="0.children";let b={};b[o]="0";for(let e=2;e<=m;e++){Cr(h[e],e=>{let t=Be(v,e.parentId,"");if(!Fe(t))throw console.log("kpPathFd",v),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in folder`);let r=Be(y,t);if(xe(r)||vu(y,t,[]),r=Be(y,t),!Ce(hd(r,{id:e.id}))){r.push({...e,children:[]});let n=`${t}.${gn(r)-1}`;v[e.id]=`${n}.children`,b[e.id]=n}})}let w=Vi(y),B={};for(let e=2;e<=I;e++){Cr(A[e],e=>{let t=Be(v,e.parentId,"");if(!Fe(t))throw console.log("kpPathFd",v),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in file`);let r=Be(y,t);if(!xe(r))throw console.log("treeItems",y),console.log("k",t),console.log("v",e),new Error("無預先建置資料夾");if(!Ce(hd(r,{id:e.id}))){r.push(e);let n=`${t}.${gn(r)-1}`;B[e.id]=n,b[e.id]=n}})}return{treeItems:y,treeItemsFolder:w,kpPath:b,fpsNormalize:u}},e.files2data=function(e){let t=is(),r=Dr(e,function(e){return{name:e.name,size:e.size,type:e.type}});return ls(e).then(function(e){let n=Dr(e,function(e){return{b64:e}}),i=vA(r,n);t.resolve(i)}),t},e.flattenToConn=xu,e.flattenTree=function(e,t={}){if(xe(e)){if(0===e.length)return[]}else{if(!Ee(e))return[];if(Hr(e))return[]}let r=Be(t,"bindKey",null);Fe(r)||(r="id");let n=Be(t,"bindChildren",null);Fe(n)||(n="children");let i=!1;Ee(e)&&(i=!0,e=[e]);let o=[];return Cu(e,(e,t,i)=>{let a=Be(e,r,null),s=Be(e,n,null);if(a){let r=function(e){let t=[e[0]];for(let r=1;r<e.length;r++){let i=e[r];t.push(n),t.push(i)}return t}([...i,t]);if(o.push({...e,level:(gn(r)-1)/2,nk:r}),s)return s}}),i&&(o=o[0]),o},e.floor=function(e,t=0){return Eo(t)||(t=0),t=eo(t),ke(e)?new oc(e).toDecimalPlaces(t,oc.ROUND_FLOOR).toNumber():""},e.fsBuildReadStreamText=function(e){if(!nA(e))throw new Error("fp is not a file");let t=_i(),r=a.createReadStream(e,{encoding:"utf8"});return t.emit("create"),c.createInterface({input:r,crlfDelay:1/0}).on("line",e=>{t.emit("line",e)}),r.on("close",()=>{t.emit("close")}),t},e.fsBuildWriteStreamText=function(){let e=null;return{create:t=>{let r=is();return e=a.createWriteStream(t,{flags:"w",encoding:"utf8"}),e.on("finish",()=>{r.resolve()}),e.on("error",e=>{r.reject(e)}),r},write:t=>{e.write(t+"\n")},end:()=>{let t=is();return e.on("close",()=>{t.resolve()}),e.end(),t}}},e.fsCleanFolder=function(e){return BA(e,{path:o,fs:a})},e.fsCleanFolderCore=BA,e.fsCopyFile=function(e,t,r={}){return EA(e,t,{path:o,fs:a,...r})},e.fsCopyFileCore=EA,e.fsCopyFolder=function(e,t,r={}){return xA(e,t,{path:o,fs:a,...r})},e.fsCopyFolderCore=xA,e.fsCreateFile=function(e,t,r={}){return SA(e,t,{fs:a,...r})},e.fsCreateFileCore=SA,e.fsCreateFolder=kA,e.fsCreateFolderCore=wA,e.fsDeleteFile=function(e){return NA(e,{fs:a})},e.fsDeleteFileCore=NA,e.fsDeleteFileSafe=async function(e,t={}){return await qA(e,{fs:a,...t})},e.fsDeleteFileSafeCore=qA,e.fsDeleteFolder=HA,e.fsDeleteFolderCore=MA,e.fsDeleteFolderSafe=async function(e,t={}){return await LA(e,{fs:a,...t})},e.fsDeleteFolderSafeCore=LA,e.fsDownloadFile=async function(e,t){return UA(e,t,{fs:a,Readable:u.Readable})},e.fsDownloadFileCore=UA,e.fsEvem=function(e={}){let t=Be(e,"fd");Fe(t)||(t="./_evps");let r=Be(e,"polling");hn(r)||(r=!1);let n=Be(e,"timeInterval");to(n)||(n=100),n=eo(n);let i=Be(e,"timeBinaryInterval");to(i)||(i=300),i=eo(i);let s=Be(e,"keySys");Fe(s)||(s="[::pkg_content::]"),TA(t)||kA(t);let l=YA(t,{polling:r,timeInterval:n,timeBinaryInterval:i});l.on("change",e=>{if("add"!==e.type&&"change"!==e.type)return;let t=OA(e.fp),r="";try{r=a.readFileSync(e.fp,"utf8"),r=$a(r)}catch(e){}Ce(r)&&c.emit(t,{[s]:r})});let c=new f.EventEmitter,u=c.emit;return c.emit=function(e,r){let n=!1;if(Ce(r)&&(n=Ne(r,s)),n){let t=Be(r,s,null),n=Be(t,"pkg",""),i=Be(t,"time","");return u.call(this,e,n,i)}((e,r)=>{let n=o.resolve(t,e);De(r)||(r=An(r)),a.writeFileSync(n,r,"utf8")})(e,{pkg:r,time:RA()})},c.clear=()=>{l.clear(),HA(t)},c},e.fsExists=function(e){return tA(e,{fs:a})},e.fsExistsCore=tA,e.fsGetFileBasicHash=function(e,t={}){return jA(e,{fs:a,crypto:g,...t})},e.fsGetFileBasicHashCore=jA,e.fsGetFileHash=function(e,t={}){return VA(e,{fs:a,crypto:g,...t})},e.fsGetFileHashCore=VA,e.fsGetFileXxHash=function(e,t={}){return zA(e,{fs:a,...t})},e.fsGetFileXxHashCore=zA,e.fsGetFilesInFolder=function(e,t=1){return XA(e,t,{path:o,fs:a})},e.fsGetFilesInFolderCore=XA,e.fsGetFilesWithHashInFolder=WA,e.fsGetFilesWithHashInFolderCore=_A,e.fsGetFolderBasicHash=function(e,t={}){return KA(e,{path:o,fs:a,crypto:g,...t})},e.fsGetFolderBasicHashCore=KA,e.fsGetFoldersInFolder=function(e,t=1){return $A(e,t,{path:o,fs:a})},e.fsGetFoldersInFolderCore=$A,e.fsIsFile=nA,e.fsIsFileCore=rA,e.fsIsFolder=TA,e.fsIsFolderCore=bA,e.fsMergeFiles=async function(e,t,r={}){return ZA(e,t,{fs:a,...r})},e.fsMergeFilesCore=ZA,e.fsReadJson=function(e){let t=null,r=iA(e,{fs:a});if(r.error)return r;let n=r.success,i=null;try{i=JSON.parse(n)}catch(e){t=e}return null!==t?{error:t}:{success:i}},e.fsReadText=oA,e.fsReadTextCore=iA,e.fsRenameFile=function(e,t){return em(e,t,{fs:a})},e.fsRenameFileCore=em,e.fsRenameFolder=function(e,t){return tm(e,t,{fs:a})},e.fsRenameFolderCore=tm,e.fsSrlog=function(e={}){let t=Be(e,"fdSys","");Fe(t)||(t=o.resolve(),t=t.replaceAll("\\","/"));let n=Be(e,"fdLog","");Fe(n)||(n="./syslog"),TA(n)||kA(n);let i=Be(e,"dlm","");Fe(i)||(i="ꓹ");let s=Be(e,"useTime",null);hn(s)||(s=!0);let l=Be(e,"useLoc",null);hn(l)||(l=!0);let c=Be(e,"useLocRela",null);async function u(e,t,...o){let c=(()=>{let e=r().format("YYYY-MM-DD");return`${n}/${e}.log`})(),u=Dr(o,e=>{let t="";return t=Ee(e)||xe(e)?JSON.stringify(e):hn(e)?e?"true":"false":ja(e),t}),f="";s&&(f=`[${e}]\n`,a.appendFileSync(c,f,"utf8")),l&&(f=`[${t}]\n`,a.appendFileSync(c,f,"utf8")),f=`${Do(u,`${i} `)}\n\n`,a.appendFileSync(c,f,"utf8")}return hn(c)||(c=!0),function(...e){let r="";s&&(r=RA());let n="",i="",o=[];if(l){if(o=ua((new Error).stack,"\n"),Cr(o,e=>{if((e=la(e)).indexOf("file:")<0)return!0;if(e.indexOf("fsSrlog.mjs")>=0)return!0;return Cr(ua(e," "),e=>{if(e.indexOf("file:")>=0)return n=e,!1}),!Fe(n)&&void 0}),!Fe(n))throw console.log("stackLines",o),new Error("can not parse stackLines");"("===fa(n,1)&&(n=ga(n,1)),")"===da(n,1)&&(n=Ja(n,1));try{n=decodeURIComponent(n)}catch(e){console.log(e)}i=n,i=ga(i,8),i=i.replace(t,"")}let a=[];s&&(a=[...a,`[${r}]`]);let f="";l&&(f=n,c&&(f=i),a=[...a,`[${f}]`]),a=[...a,...e],console.log(...a),u(r,f,...e)}},e.fsSyncFolder=function(e,t,r={}){return im(e,t,{path:o,fs:a,crypto:g,...r})},e.fsSyncFolderCore=im,e.fsTask=function(e,t={}){let r=Be(t,"fdStorage","");Fe(r)||(r="./_tkfs");let n=Be(t,"levelLimit","");to(n)||(n=1),n=eo(n);let i=Be(t,"typeHash","");Fe(i)||(i="md5");let o=Be(t,"timeInterval");Aa(o)||(o=6e4),o=eo(o),kA(r);let s=_i(),l=!1,c=`${r}/fpHash.json`,u=`${r}/fpResult.json`,f=async()=>{if(!0===l)return;let t=(()=>{let e={};try{e=$a(a.readFileSync(c,"utf8"))}catch(e){}return e})(),r=await(async()=>{let t={};return TA(e)?(Cr(await WA(e,n,{type:i}),e=>{t[e.path]=e.hash}),t):t})(),o=Dr(t,(e,t)=>({path:t,hash:e})),u=Dr(r,(e,t)=>({path:t,hash:e}));Cr(rm(o,u,"path").infor,(e,n)=>{if("same"===e)return!0;let i=Be(t,n,""),o=Be(r,n,""),u="";u="del"===e?i:o;let f=e,d=n,g=FA(n);l=!0;let p=is();return s.emit("change",{type:f,fp:d,fn:g,hash:u,pm:p}),p.then(()=>{let e=Vi(t);e[d]=r[d],(e=>{try{let t=An(e);a.writeFileSync(c,t,"utf8")}catch(e){}})(e)}).finally(()=>{l=!1}),!1})},d=()=>{let e={};try{e=$a(a.readFileSync(u,"utf8"))}catch(e){}return e},g=(e={})=>{try{let t=An(e);a.writeFileSync(u,t,"utf8")}catch(e){}},p=setInterval(()=>{f().catch(()=>{})},o);return s.getResult=(e,t)=>{let r=`${e}|${t}`,n=Be(d(),r,[]);return xe(n)||console.log(`result for key[${r}] is not an array`),n},s.getAndEliminateResult=(e,t)=>{let r=`${e}|${t}`,n=d(),i=Be(n,r,[]);return xe(i)||console.log(`result for key[${r}] is not an array`),n=((e,t)=>{let r={};return Cr(e,(e,n)=>{Be(ua(n,"|"),0,"")!==t&&(r[n]=e)}),r})(n,e),g(n),i},s.setResult=(e,t,r)=>{xe(r)||(console.log("result is not an array, default to []"),r=[]);let n=`${e}|${t}`,i=d();i[n]=r,g(i)},s.clear=()=>{clearInterval(p)},s},e.fsTaskCp=function(e,t,r={}){TA(e)||kA(e),TA(t)||kA(t);let n=`${e}/fpHash.json`,i=`${t}/fpHash.json`,o=e=>{let t={};try{t=$a(a.readFileSync(e,"utf8"))}catch(e){}return t},s=(e,t)=>{try{let r=An(t);a.writeFileSync(e,r,"utf8")}catch(e){}},l=(e,t)=>Be(o(e),t,""),c=(e,t,r)=>{let n=o(e);n[t]=r,s(e,n)},u=(e,t)=>{let r=o(e);Ne(r,t)&&delete r[t],s(e,r)},f=()=>o(n),d=e=>s(n,e),g=e=>l(n,e),p=()=>o(i),h=e=>s(i,e),A=e=>l(i,e),m=(e,t)=>c(i,e,t),I=e=>u(i,e),y=e=>{let t=[];return Cr(e,(e,r)=>{t.push({fp:r,hash:e})}),t},v={buildSrc:()=>{let e=_i();return e.set=(t,r)=>{((e,t)=>{c(n,e,t)})(t,r),e.emit("set",{type:"set",fp:t,hash:r})},e.get=g,e.remove=t=>{(e=>{u(n,e)})(t),e.emit("remove",{type:"remove",fp:t})},e.readKp=f,e.writeKp=d,e},buildTar:()=>{let e=_i(),t=qu(300),r=om(n);return r.on("change",r=>{t(()=>{(async()=>{let t=is(),r=f();if(!Ce(r))return t.resolve("no src"),t;let n=p(),i=y(r),o=rm(y(n),i,"fp",{withInfor:!1}),a=is();return a.then(e=>{h(r)}).catch(()=>{}),e.emit("change",{kpSrc:r,kpTar:n,kpCmp:o,pm:a}),t})().catch(()=>{})})}),e.set=m,e.get=A,e.remove=I,e.readKp=p,e.writeKp=h,e.clear=r.clear,e}};return v},e.fsTreeFolder=function(e,t=1){return PA(e,t,{path:o,fs:a})},e.fsTreeFolderCore=PA,e.fsTreeFolderWithHash=function(e,t=1,r={}){return nm(e,t,{path:o,fs:a,crypto:g,...r})},e.fsTreeFolderWithHashCore=nm,e.fsWatchFile=om,e.fsWatchFolder=YA,e.fsWriteJson=function(e,t,r={}){let n=null;if(!Ee(t)&&!xe(t))return{error:"inp is not an object or array"};let i=Be(r,"useFormat",null);hn(i)||(i=!1);let o="";try{o=i?JSON.stringify(t,null,2):JSON.stringify(t)}catch(e){n=e}return null!==n?{error:n}:am(e,o,{fs:a})},e.fsWriteText=function(e,t){return am(e,t,{fs:a})},e.fsWriteTextCore=am,e.genGradientColor=function(e){if(Rr(e))return{};let t;try{t=yu.toRgba(e)}catch(e){return{}}function r(e,t){return e.a=t,yu.toRgbaString(e)}return{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,r(t,.4)],[1,r(t,.9)]]}},e.genID=Lu,e.genIDSeq=function(){return fm()},e.genPm=is,e.getBufferSize=pm,e.getClearPathName=DA,e.getCsvStrFromData=hm,e.getDataFromExcelFileU8Arr=Im,e.getDataFromExcelFileU8ArrDyn=async function(e,t,r){Or(r)||(r=["https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.full.min.js"]),await gc(r);let n=Im(e,t);return""!==Be(n,"error","")?Promise.reject(n.error):n},e.getEnv=function(){let e=yn(),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=function(e){let t="";if(bm(e))t=e.message;else{if(De(e))return e;if(Ee(e))return Ne(e,"message")?e.message:JSON.stringify(e);if(xe(e))return JSON.stringify(e);t=ja(e)}return t},e.getExcelU8ArrFromData=function(e,t="data"){if(!Or(e)){return{error:"no data"}}Fe(t)||(t="data");let r=null,n=Vh(e,t);return Ne(n,"error")?n:(r=wm(n),Ne(r,"error"),r)},e.getExcelU8ArrFromWorkbook=wm,e.getExcelWorkbookFromData=Vh,e.getExcelWorkbookFromWorksheet=zh,e.getExcelWorksheetFromData=wn,e.getFileAccept=Id,e.getFileBasicHash=Wm,e.getFileHash=async function(e,t={}){if(!ps(e)&&!_m(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let r=Be(t,"type","");Fe(r)||(r="sha512");let n=Be(t,"chunkSize");return ke(n)||(n=67108864),n=Hn(n),Ne({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"},r)?"xxhash64"===r?Km(e,t):Wm(e,t):Promise.reject(`type[${r}] must be one of [ 'md5', 'sha1', 'sha256', 'sha384', 'sha512', 'xxhash64' ]`)},e.getFileName=FA,e.getFileNameExt=function(e){if(!Fe(e))return"";let t=zo(FA(e),".");if(gn(t)<=1)return"";let r="";try{r=Sa(t)}catch(e){}return r},e.getFileTrueName=OA,e.getFileType=md,e.getFileXxHash=Km,e.getGlobal=vn,e.getObjSize=function(e){let t=0,r=function e(r){if(null!=r)switch(typeof r){case"number":t+=8;break;case"string":t+=2*r.length;break;case"boolean":t+=4;break;case"object":let n=Object.prototype.toString.call(r).slice(8,-1);if("Object"===n||"Array"===n)for(let t in r)r.hasOwnProperty(t)&&e(r[t]);else t+=2*r.toString().length}return t}(e),n=function(e){return e<1024?e+" bytes":e<1048576?(e/1024).toFixed(3)+" KiB":e<1073741824?(e/1048576).toFixed(3)+" MiB":(e/1073741824).toFixed(3)+" GiB"}(r);return{int:r,str:n}},e.getPathParent=QA,e.getTimeBetween=function(e,t,r="days"){let n=tI(r);if(""===n)return[];let i=rI(e,r),o=rI(t,r);return null===i||null===o||e>=t?[]:Dr(eI(o.diff(i,r)+1),function(e){return i.clone().add(e,r).format(n)})},e.getTimeFromUnit=tI,e.getTimeHp=nI,e.getTimeObject=rI,e.getTimeRange=function(e,t){if(!Cg(e))return"無起始時間";if(void 0===t&&(t=e),!Cg(t))return"結束時間格式錯誤";let n=r(e,"YYYY-MM-DDTHH:mm:ss"),i=r(t,"YYYY-MM-DDTHH:mm:ss"),o=n.format("YYYY-MM-DD"),a=i.format("YYYY-MM-DD");if(o===a){let r=i.format("HH:mm");if(e===t)return iI(e)+" 至 無";if(e<t)return iI(e)+" 至 "+r;if(e>t)return iI(e)+" 至 "+r+" (起始時間大於結束時間)"}else{if(o<a)return iI(e)+" 至 "+iI(t);if(o>a)return iI(e)+" 至 "+iI(t)+" (起始時間大於結束時間)"}return""},e.getUserAgent=oI,e.getUserAgentDyn=async function(e=null,t){return Or(t)||(t=["https://cdn.jsdelivr.net/npm/ua-parser-js@2.0.3/dist/ua-parser.min.js"]),await gc(t),oI(e)},e.getltdtkeys=_r,e.haskey=Ne,e.html2str=async function(e){if(!Fe(e))return"";let t=await async function(){let e="htmlToText";if(ba(Be(I,e)))return I;if(ba(Be(I,["default",e])))return I.default;let t=globalThis,r=null;if(await bs(()=>(r=Be(t,"ht",null),Ce(r)),{attemptNum:4e3,timeInterval:50}),ba(Be(r,e)))return r;if(ba(Be(r,["default",e])))return r.default;throw console.log("ht",I,"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)?fs.decode(e,t):""},e.htmlEncode=ds,e.importResources=gc,e.interp1=function(e,t,r={}){if(!xe(e))return{err:"ps is not an array"};{let e=!ke(t),r=!xe(t);if(e&&r)return{err:"px is not a number or an array"}}let n=function(e,t={}){if(gn(e)<=0)return[];let r=Be(t,"keyX");Fe(r)||(r="x");let n=Be(t,"keyY");Fe(n)||(n="y");let i=[];return Cr(e,e=>{let t=null,o=null;xe(e)&&gn(e)>=2?(t=Be(e,0),o=Be(e,1)):(t=Be(e,r,null),o=Be(e,n,null)),ke(t)&&ke(o)&&(t=kn(t),o=kn(o),i.push({x:t,y:o}))}),i}(e,r);if(Be(n,"err"))return Be(n,"err");if(0===gn(n))return{err:"ps(length=0) is not an effective array",ps:e,psEff:n};if(1===gn(n))return{err:"ps(length=1) is one point only",ps:e,psEff:n};let i=function(e){let t=!0,r=!0;for(let n=1;n<gn(e);n++){let i=e[n-1],o=e[n];if(t&&i.x>o.x&&(t=!1),r&&i.x<o.x&&(r=!1),i.x===o.x)return{err:`x can not be equal: i=${n}, x=${i.x}`}}return t?lI:r?cI:"no"}(n);if("no"===i)return{err:"psEff is not increasing or decreasing"};i===cI&&(i=lI,n=Ua(n));let o=!xe(t);o&&(t=[t]);let a=function(e,t={}){if(gn(e)<=0)return[];let r=Be(t,"keyX");Fe(r)||(r="x");let n=[];return Cr(e,e=>{let t=null;t=ke(e)?kn(e):xe(e)&&gn(e)>=1?Be(e,0):Be(e,r,null),ke(t)&&(t=kn(t),n.push({x:t}))}),n}(t,r),s=Be(r,"mode");"linear"!==s&&"stairs"!==s&&"blocks"!==s&&(s="linear");let l,c=Dr(a,(e,t)=>{let i=Be(e,"x"),o=null;try{"linear"===s?o=function(e,t){let r=uI(e,t);if(r!==aI)return r;let n=null;for(let r=1;r<gn(e);r++){let i=e[r-1],o=e[r];if(i.x<=t&&t<=o.x){n=((t-i.x)*o.y+(o.x-t)*i.y)/(o.x-i.x);break}}return null===n?{err:sI}:n}(n,i):"blocks"===s?o=function(e,t){let r=uI(e,t);if(r!==aI)return r;let n=null;for(let r=1;r<gn(e);r++){let i=e[r-1],o=e[r],a=i.x,s=o.x;if(a<=t&&t<=s){n=o.y;break}}return null===n?{err:sI}:n}(n,i):"stairs"===s&&(o=function(e,t,r={}){let n=Be(r,"xMin");if(ya(n)){if(n>e[0].x)return{err:`xMin=${n} > ps[0].x=${e[0].x}`};n===e[0].x||(e=[{x:n,y:e[0].y},...e])}let i=Be(r,"xMax");if(ya(i)){if(i<e[gn(e)-1].x)return{err:`xMax=${i} < ps[size(ps)-1].x=${e[gn(e)-1].x}`};if(i===e[gn(e)-1].x);else{let t={x:i,y:e[gn(e)-1].y};e=[...e,t]}}let o=uI(e,t);if(o!==aI)return o;let a=null;for(let r=0;r<gn(e);r++){let n=Be(e,r-1,null),i=Be(e,r,null),o=Be(e,r+1,null),s=i.x;n&&(s=(n.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:sI}:a}(n,i,r))}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)),ke(e)&&(t=Hn(e),t=new Date(e)),t instanceof Date&&!isNaN(t)},e.isDev=function(){return!!location&&ns(location.href,"localhost")},e.isEle=wr,e.isEleExistByID=function(e){return!!Fe(e)&&!(null===document.getElementById(e))},e.isEmail=function(e){return!!Fe(e)&&/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},e.isErr=bm,e.isIE=Pu,e.isNarrow=function(e){if(!yn())return!1;let t=window.innerWidth>0&&window.innerWidth<=1024,r=!1;if(e){let t=Be(e,"clientWidth",0);r=t>0&&t<=700}return t||r},e.isStrHasCapital=pI,e.isStrHasLetter=hI,e.isStrHasLowerCase=AI,e.isStrHasNumber=mI,e.isStrHasSpace=II,e.isStrHasSymbol=yI,e.isUserIdentify=function(e){let t=is();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 r=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)),n=parseInt(e.substring(10,11));return r%10!=0&&10-r%10!==n?(t.reject("非有效身份證"),t):(t.resolve(),t)},e.isUserName=function(e){let t=is();return Fe(e)?(t.resolve(),t):(t.reject("請填入姓名"),t)},e.isUserPw=function(e,t={}){let r=[],n=Be(t,"useKeyForError",null);hn(n)||(n=!1);let i=Be(t,"useOnlyOneError",null);if(hn(i)||(i=!1),De(e)||(n?r.push("keyInvalidPassword"):r.push("密碼非有效字串")),gn(r)>0)throw new Error(r[0]);let o=Be(t,"numLenMin","");(!Ln(o)||eo(o)<0)&&(o=8),o=eo(o);let a=Be(t,"numLenMax","");if((!Ln(a)||eo(a)<0)&&(a=30),a=eo(a),o>a&&(n?r.push("keyLimNumLenMinOrMax"):r.push("設定密碼最小長度大於最大長度")),gn(r)>0)throw new Error(r[0]);let s=Be(t,"noSpace",null);if(hn(s)||(s=!0),s&&(II(e)&&(n?r.push("keyLimHasSpace"):r.push("密碼不可包含空白字元")),i&&gn(r)>0))throw new Error(r[0]);let l=Be(t,"onlyAscii",null);if(hn(l)||(l=!0),l&&(/[^\x20-\x7e]/.test(e)&&(n?r.push("keyLimNonAsciiChar"):r.push("密碼僅允許使用英文大小寫、數字及特殊符號")),i&&gn(r)>0))throw new Error(r[0]);if(gn(e)<o&&(n?r.push("keyLimNumLenMin"):r.push(`密碼長度須大於等於${o}個字元`)),i&&gn(r)>0)throw new Error(r[0]);if(gn(e)>a&&(n?r.push("keyLimNumLenMax"):r.push(`密碼長度須小於等於${a}個字元`)),i&&gn(r)>0)throw new Error(r[0]);let c=Be(t,"requireLetter",null);hn(c)||(c=!1);let u=Be(t,"requireUppercase",null);hn(u)||(u=!0);let f=Be(t,"requireLowercase",null);hn(f)||(f=!0);let d=Be(t,"requireDigit",null);hn(d)||(d=!0);let g=Be(t,"requireSpecial",null);if(hn(g)||(g=!0),c&&!hI(e)&&(n?r.push("keyLimRequireLetter"):r.push("密碼須包含至少一個英文字母")),i&&gn(r)>0)throw new Error(r[0]);if(u&&!pI(e)&&(n?r.push("keyLimRequireUppercase"):r.push("密碼須包含至少一個大寫英文字母")),i&&gn(r)>0)throw new Error(r[0]);if(f&&!AI(e)&&(n?r.push("keyLimRequireLowercase"):r.push("密碼須包含至少一個小寫英文字母")),i&&gn(r)>0)throw new Error(r[0]);if(d&&!mI(e)&&(n?r.push("keyLimRequireDigit"):r.push("密碼須包含至少一個數字")),i&&gn(r)>0)throw new Error(r[0]);if(g&&!yI(e)&&(n?r.push("keyLimRequireSpecial"):r.push("密碼須包含至少一個特殊符號")),i&&gn(r)>0)throw new Error(r[0]);let p=Be(t,"forbiddenChars",null);if(xe(p)||(p=[]),gn(p)>0){for(let t of p)if(e.includes(t)){if(n){r.push("keyLimForbiddenChar");break}r.push(`密碼不可包含字元:${t}`)}if(i&&gn(r)>0)throw new Error(r[0])}let h=Be(t,"commonPasswordBlacklist",null);if(xe(h)||(h=CI),gn(h)>0){let t=e.toLowerCase();if(h.some(e=>De(e)&&t===e.toLowerCase())&&(n?r.push("keyLimCommonPassword"):r.push("此密碼為常見弱密碼,不允許使用")),i&&gn(r)>0)throw new Error(r[0])}let A=Be(t,"account",""),m=Be(t,"noConsecutiveCharsFromAccount",null);hn(m)||(m=!1);let I=Be(t,"consecutiveCharsMinMatch","");if(to(I)||(I=3),I=eo(I),m&&De(A)&&gn(A)>=I){let t=[...A.toLowerCase()],o=e.toLowerCase(),a=!1;for(let e=0;e<=t.length-I;e++){let r=t.slice(e,e+I).join("");if(o.includes(r)){a=!0;break}}if(a&&(n?r.push("keyLimConsecutiveCharsFromAccount"):r.push(`密碼不可包含與帳號相同之${I}個以上連續字元`)),i&&gn(r)>0)throw new Error(r[0])}if(gn(r)>0)throw new Error(r.join(" | "));return!0},e.isWindow=yn,e.isab=y,e.isarr=xe,e.isarr0=Ur,e.isbigint=Ya,e.isblob=ps,e.isbol=hn,e.isday=Nu,e.isearr=Or,e.iseobj=Ce,e.iser=Rr,e.isernot=dd,e.isestr=Fe,e.isfile=_m,e.isfun=ba,e.isint=Ln,e.ismonth=Bn,e.isn0int=fI,e.isn0num=dI,e.isnan=Se,e.isnbr=Qe,e.isnint=Yh,e.isnnum=function(e){return!!ke(e)&&Hn(e)<0},e.isnull=Mr,e.isnum=ke,e.isobj=Ee,e.isobj0=Hr,e.isp0int=Eo,e.isp0num=gI,e.ispint=to,e.ispm=vs,e.ispnum=Aa,e.isstr=De,e.isstr0=Lr,e.istime=Cg,e.istimeTZ=EI,e.istimems=vI,e.istimemsTZ=BI,e.isu16arr=gm,e.isu8arr=es,e.isundefined=qr,e.j2o=$a,e.judge=function(e,t,r,n={}){if(!ke(e))throw new Error("x1 is not a number");if(!ke(r))throw new Error("x2 is not a number");let i=Be(n,"withPreciseNum");if(hn(i)||(i=!0),i&&(e=$h(e),r=$h(r)),"==="===t)return e===r||xI(e,r);if("!=="===t)return function(e,t){return!xI(e,t)}(e,r);if(">="===t)return e===r||function(e,t){return new oc(e).gte(t)}(e,r);if(">"===t)return function(e,t){return new oc(e).gt(t)}(e,r);if("<="===t)return e===r||function(e,t){return new oc(e).lte(t)}(e,r);if("<"===t)return function(e,t){return new oc(e).lt(t)}(e,r);throw console.log(t),new Error(`invalid op[${t}]`)},e.keysmat2ltdt=DI,e.ltdt2vrtsable=function(e,t=[]){if(!Or(e))return[];if(!xe(t))return[];let r=!1;if(Cr(e,function(e){Ce(e)||(r=!0)}),r)return[];let n=_r(e),i=[];Cr(e,function(e){let t={};Cr(n,function(r){t[r]={value:e[r].value,style:e[r].style,rowspan:1}}),i.push(t)});let o=Ua(i),a=gn(o);return Cr(n,function(e){if(va(e,t)){let t=so(0,a,0),r=so(0,a,0),n=so(1,a+1,0);Cr(o,function(i,a){if(a>0){Ia(o[a-1][e].value,o[a][e].value)&&(t[a-1]=1,t[a]=1,n[a]=n[a-1]+1),1===t[a-1]&&1===t[a]&&(r[a-1]=0,r[a]=1)}}),Cr(o,function(i,a){1===t[a]&&(1===r[a]?o[a][e].rowspan=n[a]:o[a][e].rowspan=null)})}}),Ua(o)},e.ltdtDiff=function(e,t,r={}){if(!xe(e))return{};if(!xe(t))return{};if(0===gn(e)&&0===gn(t))return{};let n=Be(r,"empty");Fe(n)||(n="∗empty∗");let i=_r(e),o=_r(t),a=FI(i,o),s={};Cr(a,(e,t)=>{s[t]=e});let l=sa(mn(e,a,{empty:n}),mn(t,a,{empty:n}),{...r,mode:"matrix"});return l.dfs=Dr(l.dfs,e=>{let t={};Cr(e,e=>{e.k=s[e.k],t[e.k]=e});let r={};return Cr(a,e=>{r[e]=t[e]}),r}),l},e.ltdtDiffByKey=rm,e.ltdtkeys2mat=mn,e.ltdtkeysheads2mat=In,e.ltdtmapping=function(e,t,r=""){return Or(e)&&Or(t)?Dr(e,e=>_h(e,t,r)):[]},e.ltdtmerge=vA,e.ltdtpick=function(e,t){return Or(e)&&Or(t)?Dr(e,e=>Wh(e,t)):[]},e.ltdtpull=function(e,t,r){return xe(e)&&xe(t)&&Fe(r)&&pr(e,e=>Ee(e))?0===t.length?e:pr(t,e=>Ee(e))?SI(e,t,r):[]:[]},e.mat2ltdt=function(e){if(!Or(e))return[];if(e.length<=1)return[];let t=!1;return Cr(e,function(e){Or(e)||(t=!0)}),t?[]:DI(na(e)[0],(n=null==(r=e)?0:r.length)?Fo(r,1,n):[]);var r,n},e.matConcat=function(e,t){if(!xe(e))return[];if(!xe(t))return[];if(0===gn(e)&&0===gn(t))return[];let r=gn(e),n=gn(Be(e,0,[])),i=gn(t),o=gn(Be(t,0,[])),a=[],s=Math.max(r,i);for(let r=0;r<s;r++){let i=[],s=-1;for(let t=0;t<n;t++){s++;let n=Be(e,`${r}.${t}`,null);i[s]=n}for(let e=0;e<o;e++){s++;let n=Be(t,`${r}.${e}`,null);i[s]=n}a[r]=i}return a},e.matDiff=function(e,t,r={}){return xe(e)&&xe(t)?0===gn(e)&&0===gn(t)?{}:sa(e,t,{...r,mode:"matrix"}):{}},e.matat=function(e,t,r){return Or(e)?Dr(e,function(e){return Co(e,t,r)}):[]},e.now2str=RA,e.now2strp=function(){if(!ba(r))throw new Error("invalid dayjs");return r().format("YYYYMMDDHHmmss")},e.nowDay2str=function(){if(!ba(r))throw new Error("invalid dayjs");return r().format("YYYY-MM-DD")},e.nowms2str=function(){if(!ba(r))throw new Error("invalid dayjs");return r().format("YYYY-MM-DDTHH:mm:ss.SSSZ")},e.nowms2strp=function(){if(!ba(r))throw new Error("invalid dayjs");return r().format("YYYYMMDDHHmmssSSS")},e.o2j=An,e.obj2b64=function(e){let t="";try{t=kI(An(e))}catch(e){t=""}return t},e.obj2pb64=function(e,t){return void 0===e?"":Fe(t)?NI(An({data:e}),t,!0):""},e.obj2str=function(e,t="Uint8Array"){if(qr(e))return"";De(t)?t=[t]:xe(t)||(t=["Uint8Array"]);let r="";try{r=JSON.stringify(e,function(e,r){return t.indexOf("Uint8Array")>=0&&(r=TI.u8arr2b64(r)),t.indexOf("Uint16Array")>=0&&(r=TI.u16arr2b64(r)),r})}catch(e){r=""}return r},e.obj2stru8arr=YI,e.obj2u8arr=function(e){let t=[],r=[];if(!Or(e)&&!Ce(e))return null;let n=[],i=[];function o(e){n.push(pm(e)),i.push(e)}try{let a=YI(e);o(jI(a.results)),Cr(a.binarys,e=>{o(e)});let s=n,l=jI(JSON.stringify(s)),c=new Uint8Array(8);ys(pm(l),c),t.push(c),t.push(l),Cr(i,e=>{t.push(e)}),Cr(t,e=>{r=function(e,t){let r=pm(e),n=pm(t),i=new Uint8Array(r+n);return i.set(new Uint8Array(e),0),i.set(new Uint8Array(t),r),i}(r,e)})}catch(e){return null}return r},e.objSortBy=GI,e.objSortByKeys=function(e,t){if(!Ce(e))return{};if(!Or(t))return{};let r={};return Cr(t,(e,t)=>{r[e]=t}),GI(e,(e,t)=>Be(r,t,0))},e.oo=function(e){if(void 0!==e)return $a(An(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){return Fe(e)&&Fe(t)?$a(ui(e,t,!0)).data:""},e.pm2resolve=Th,e.pmChain=function(e,t=null){if(!xe(e)){let e=is();return e.reject("pms is not an array"),e}return e.reduce((e,t)=>e.then(t),Promise.resolve(t))},e.pmConvertResolve=Oh,e.pmDebounce=function(e=300){return new function(e){let t=[],r=null,n=null,i="wait";return to(e)||(e=300),e=eo(e),function(o,...a){ba(o)?((null===n||"wait"===i)&&(n=Date.now()),t.push({func:o,input:a,output:null}),null===r&&"wait"===i&&(r=setInterval(()=>{if(null===n)throw new Error("invalid tLast");if("wait"!==i)return;if("wait"===i&&0===t.length)return clearInterval(r),r=null,void(n=null);let o=Date.now();if(o-n>e){i="doing",n=o;let e=t.pop();t=[];let r=e.func(...e.input);vs(r)?r.then(t=>{e.output=t}).catch(t=>{e.output={err:t}}).finally(()=>{i="wait",n=Date.now()}):(e.output=r,i="wait")}"wait"===i&&0===t.length&&(clearInterval(r),r=null,n=null)},20))):console.log("func is not a function")}}(e)},e.pmHook=JI,e.pmHookReject=function(e,t=()=>{}){return ba(e)?(ba(t)||(t=()=>{}),JI(e,e=>{if("afterCatch"===e.mode)return t(e.data)})):null},e.pmIni=function(){return Promise.resolve()},e.pmInvResolve=function(e,t={}){if(!vs(e))throw new Error("pm is not a promise");let r=Be(t,"thenExtractData");hn(r)||(r=!1);let n=is();return e.then(e=>{r&&(e=Be(e,"data"));let t=Be(e,"state",""),i=Be(e,"msg",{});"success"===t?n.resolve(i):"cancelled"===t?n.reject({reason:"cancelled"}):n.reject(i)}).catch(e=>{n.reject(e)}),n},e.pmKeyMutex=function(){return new function(){let e=new Map,t=new Map;return async(r,n)=>{let i=(e.get(r)||Promise.resolve()).then(async()=>await n(),async()=>await n());e.set(r,i.catch(()=>{})),t.set(r,(t.get(r)||0)+1);try{return await i}finally{let n=t.get(r)-1;n<=0?(t.delete(r),e.delete(r)):t.set(r,n)}}}},e.pmMap=function(e,t,r=0){let n={},i=!1,o=is();if(!xe(e)&&!Ee(e))return o.reject("rs is not an array or object"),o;if(0===gn(e))return o.resolve([]),o;let a=!1;if(Ee(e)){a=!0;let t=[];Cr(e,(e,r)=>{t.push({k:r,v:e})}),e=t}let s=jh(r);return s.on("message",function(r){if(i)return;let l,c=s.get();if(ba(t)){let e=c.key,r=c.value;if(a&&(e=c.value.k,r=c.value.v),l=t(r,e),!vs(l))throw new Error("return of fun is not a promise")}else l=c.value;l.then(e=>{n[c.key]=e}).catch(e=>{i=!0,s.clear(),o.reject(e)}).finally(()=>{s.cb(),gn(n)===gn(e)&&o.resolve(dA(n))})}),Cr(e,(e,t)=>{s.push({key:t,value:e})}),o},e.pmQueue=Gh,e.pmSeries=cc,e.pmThrottle=function(){let e=_i(),t=[],r=null,n=!1;return function(i,...o){let a=is();if(!ba(i))return void console.log("func is not a function");let s=Lu();return t.push({id:s,func:i,input:o}),null===r&&(r=setInterval(async()=>{if(n)return;n=!0;let i=t.pop();for(let r=0;r<t.length;r++){let n=t[r].id,i={state:"cancelled"};e.emit(n,i)}if(t=[],i){let t,r=i.id;t=ba(i.func)?await Th(i.func)(...i.input):{state:"error",msg:"fun is not a function"},e.emit(r,t)}n=!1,n||0!==t.length||(clearInterval(r),r=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,r={}){if(!vs(e))throw new Error("invalid pm");if(!Eo(t))throw new Error(`invalid ms[${t}]`);let n=Be(r,"label",null);Fe(n)||(n="");let i,o=`timeout[${t}ms]`;Fe(n)&&(o=`${n} ${o}`);let a=is();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=$h,e.pseudoRandom=PI,e.pseudoRandomIntRange=function(e=0,t=100,r="start1"){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),e>(t=eo(t)))throw new Error(`vstart[${e}] > vend[${t}]`);let n=PI(r)*(t-e+1)+e;return n=Math.floor(n),n},e.pseudoRandomIntsNdpRange=function(e=0,t=100,r,n="start1"){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),t=eo(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=PI(n,!0),o=[],a=t-e;for(let r=0;r<=a;r++){let r=i()*(t-e+1)+e;r=Math.floor(r),o.push(r)}let s=Wa(o,{returnIndex:!0});return s=na(s,r),s},e.pseudoRandomIntsRange=function(e=0,t=100,r,n="start1"){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),t=eo(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=PI(n,!0),o=[];for(let n=1;n<=r;n++){let r=i()*(t-e+1)+e;r=Math.floor(r),o.push(r)}return o},e.pseudoRandomRange=function(e=0,t=1,r="start1"){if(ke(e)||(e=0),e=Hn(e),ke(t)||(t=1),e>(t=Hn(t)))throw new Error(`vstart[${e}] > vend[${t}]`);return PI(r)*(t-e)+e},e.pseudoRandomsRange=function(e=0,t=1,r=1,n="start1"){if(ke(e)||(e=0),e=Hn(e),ke(t)||(t=1),t=Hn(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let i=PI(n,!0),o=[];for(let n=1;n<=r;n++){let r=i()*(t-e)+e;o.push(r)}return o},e.queue=jh,e.random=_I,e.randomIntRange=function(e=0,t=100){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),e>(t=eo(t)))throw new Error(`vstart[${e}] > vend[${t}]`);let r=_I()*(t-e+1)+e;return r=Math.floor(r),r},e.randomIntsNdpRange=function(e=0,t=100,r){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),t=eo(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);return function(e,t,r){return t=(r?gr(e,t,r):void 0===t)?1:Mn(t),(b(e)?ty:ry)(e,t)}(so(e,t+1),r)},e.randomIntsRange=function(e=0,t=100,r){if(Ln(e)||(e=0),e=eo(e),Ln(t)||(t=100),t=eo(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let n=[];for(let i=1;i<=r;i++){let r=_I()*(t-e+1)+e;r=Math.floor(r),n.push(r)}return n},e.randomRange=function(e=0,t=1){if(ke(e)||(e=0),e=Hn(e),ke(t)||(t=1),e>(t=Hn(t)))throw new Error(`vstart[${e}] > vend[${t}]`);return _I()*(t-e)+e},e.randomsRange=function(e=0,t=1,r=1){if(ke(e)||(e=0),e=Hn(e),ke(t)||(t=1),t=Hn(t),to(r)||(r=1),r=eo(r),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let n=[];for(let i=1;i<=r;i++){let r=_I()*(t-e)+e;n.push(r)}return n},e.rang=function(e,t,r=2){if(!ke(e))return[];if(e=Hn(e),!ke(t))return[];if(t=Hn(t),to(r)||(r=2),(r=eo(r))<=0)throw new Error(`num[${r}] <= 0`);let n=(t-e)/r,i=e,o=[];for(let e=0;e<=r;e++)o.push(i),i+=n;return o},e.rep=function(e,t){return Fe(e)&&Eo(t)?iy(e,t):""},e.repObj=function(e,t){return Rr(e)?[]:to(t)?eI(t,go(e)):[]},e.replace=hc,e.replaceObj=function(e,t){return Fe(e)&&Ce(t)?(Cr(t,function(e,t){e=Ee(e)||xe(e)?JSON.stringify(e):ja(e)}),Cr(t,function(t,r){e=hc(e,r,t)}),e):""},e.replacePlus=function(e,t,r,n=null,i){if(!Fe(e)||!Fe(t)||!Fe(r))return"";if(!De(i))return"";let o="[\\s\\S]*";Fe(n)&&(o="[^"+n+"]*");let a=new RegExp(t+o+r,"g");return e.replace(a,i)},e.round=Kh,e.secd=function(e){return ke(e)?1/Fu(e=Hn(e)):null},e.sep=ua,e.sepInt=function(e,t,r=!0){if(!Ln(e))return[];if(!Eo(t))return[];if(!hn(r))return[];let n=oy(e/t),i=e-n*t,o=[];for(let e=1;e<=t;e++){let t=n;e<=i&&(t=n+1),o.push(t)}return r&&(o=Ua(o)),o},e.setIntervalHp=function(e,t=1){let r=vn(),n=yn(),i=e=>{r.setTimeout(e,1)},o=e=>{r.requestAnimationFrame(e)},a=null;a=n?o:i;let s=nI(),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 r=vn(),n=yn(),i=e=>{r.setTimeout(e,1)},o=e=>{r.requestAnimationFrame(e)},a=null;a=n?o:i;let s=nI(),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=ku,e.split=ca,e.str2aes=NI,e.str2b64=kI,e.str2hint=zI,e.str2md5=function(e,t=!1){if(!Fe(e))return"";hn(t)||(t=!1);let r=ay(e),n="";return n=t?r.toString(Vn):r.toString(ci),n},e.str2obj=function(e,t="Uint8Array"){De(t)?t=[t]:xe(t)||(t=["Uint8Array"]);let r={};try{r=JSON.parse(e,function(e,r){return t.indexOf("Uint8Array")>=0&&(r=TI.b642u8arr(r)),t.indexOf("Uint16Array")>=0&&(r=TI.b642u16arr(r)),r})}catch(e){r={}}return r},e.str2sha=vy,e.str2sha512=function(e,t=!1){return vy(e,512,t)},e.str2u8arr=jI,e.strCompare=by,e.strDiff=ia,e.strDiffToHtml=function(e,t,r={}){if(!De(e))return"";if(!De(t))return"";if(""===e&&""===t)return"";let n=Be(r,"useNormNewline");hn(n)||(n=!0),n&&(e=(e=e.replaceAll("\r\n","\n")).replaceAll("\r","\n"),t=(t=t.replaceAll("\r\n","\n")).replaceAll("\r","\n"));let i=zf(),o=ta("file","file",e,t),a=i.html(o,{drawFileList:!1,matching:"none",diffStyle:"char",outputFormat:"line-by-line"}),s=zo(a,"\n"),l="",c=!1;return Cr(s,e=>{'<div class="d2h-code-line">'===la(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>"===la(e)&&(c=!1)}),a=l,a},e.strFindFuzz=function(e,t,r=!1){let n="";if(Fe(e)||ke(e))n=ja(e);else{if(!Or(e))return!!r&&0;n=Do(e,"")}if(""===t)return!r||100;if(Rr(t))return!!r&&0;if(ns(n,t))return!r||100;let i=ua(t," "),o=Dr(i,function(e){return((e,t)=>{let r=new wv([e],{includeScore:!0}).search(t);r=Be(r,0);let n=Be(r,"score",1);return n=1-n,n*=100,n})(n,e)});if(r)return Bv(o);{let e=80;return pr(o,function(t){return t>=e})}},e.strFindSimilar=function(e,t){let r="";if(Fe(e)||ke(e))r=ja(e);else{if(!Or(e))return{};r=Do(e,"")}return ke(t)&&(t=ja(t)),Fe(t)&&(t=[t]),Or(t)?function(e,t){let r=[],n=0;for(let i=0;i<t.length;i++){let o=t[i],a=by(e,o);r.push({target:o,rating:a}),a>r[n].rating&&(n=i)}return{ratings:r,bestMatch:r[n],bestMatchIndex:n}}(r,t=Dr(t,function(e){return ja(e)})):{}},e.strTruncate=eA,e.strdelleft=ga,e.strdelright=Ja,e.strleft=fa,e.strmid=Ac,e.strright=da,e.stru8arr2obj=Ev,e.tand=Qu,e.time2day=function(e){return Cg(e)?r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD"):""},e.time2hour=function(e){return Cg(e)?r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH"):""},e.time2min=iI,e.timeTZ2day=function(e){return EI(e)?(e=wI.delTZ(e),r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")):""},e.timeTZ2expire=function(e,t=null){return EI(e)?Cv(e=Dv(e),t=Dv(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timeTZ2hour=function(e){return EI(e)?(e=wI.delTZ(e),r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")):""},e.timeTZ2min=function(e){return EI(e)?(e=wI.delTZ(e),r(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")):""},e.timeTZ2past=function(e,t=null){return EI(e)?xv(e=Fv(e),t=Fv(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timems2day=function(e){return vI(e)?r(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DD"):""},e.timems2hour=function(e){return vI(e)?r(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH"):""},e.timems2min=function(e){return vI(e)?r(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm"):""},e.timems2time=function(e){return vI(e)?r(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm:ss"):""},e.timemsTZ2day=function(e){return BI(e)?(e=wI.delTZ(e),r(e).format("YYYY-MM-DD")):""},e.timemsTZ2expire=Cv,e.timemsTZ2hour=function(e){return BI(e)?(e=wI.delTZ(e),r(e).format("YYYY-MM-DDTHH")):""},e.timemsTZ2min=function(e){return BI(e)?(e=wI.delTZ(e),r(e).format("YYYY-MM-DDTHH:mm")):""},e.timemsTZ2past=xv,e.timemsTZ2time=function(e){return BI(e)?(e=wI.delTZ(e),r(e).format("YYYY-MM-DDTHH:mm:ss")):""},e.treeObj=Cu,e.treeToFilepath=function(e,t={}){if(!Or(e))return[];let r=Be(t,"delimiter");Fe(r)||(r="/");let n=Be(t,"bindRoot");Fe(n)||(n="root");let i=[];return Cu(e,(e,t,o)=>{let a=Be(e,"_type","");if("folder"!==a&&"file"!==a)return e;let s=Dr(Be(e,"pathInfors",[]),"name"),l=Be(s,0,"")===n;if(1===gn(s)&&l)return e;l&&(s=Ga(s));let c={type:a,path:r+Do(s,r)};return i.push(c),e},{force:!0}),i},e.trim=za,e.u16arr2b64=UI,e.u16arr2u8arr=LI,e.u8arr2ab=function(e){return es(e)?e.buffer:new ArrayBuffer},e.u8arr2b64=HI,e.u8arr2blob=Xh,e.u8arr2bs=function(e){if(!es(e))return"";let t=e.length,r="";for(let n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r},e.u8arr2obj=function(e){let t=null;if(!es(e))return null;try{let r=8,n=e.slice(0,r),i=e.slice(r,pm(e)),o=ms(n),a=i.slice(0,o),s=i.slice(o,pm(i)),l=Qv(a),c=function(e,t){let r=0,n=0,i=[];return Cr(t,t=>{n=r+t;let o=e.slice(r,n);r=n,i.push(o)}),i}(s,JSON.parse(l));t=Ev({results:Qv(c.shift()),binarys:c})}catch(e){}return t},e.u8arr2str=Qv,e.u8arr2u16arr=ts,e.urlParse=function(e){if(!Fe(e))return{};if(!Fe(e=Be(e=zo(e,"?"),"[1]")))return{};let t=zo(e,"&");return t=Dr(t,function(e){return zo(e,"=")}),t=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];gi(n,i[0],i[1])}return n}(t),t},e.verifyValue=function(e,t,r={}){let n=!1,i="";if("isstr"===t)De(e)||(n=!0,i="需要為字串",e="");else if("isnum"===t)ke(e)||(n=!0,i="需要為數字",e=0);else if("isp0num"===t)gI(e)||(n=!0,i="需要為含0的正浮點數",e=0);else if("isn0num"===t)dI(e)||(n=!0,i="需要為含0的負浮點數",e=0);else if("isint"===t)Ln(e)||(n=!0,i="需要為整數",e=0);else if("ispint"===t)to(e)||(n=!0,i="需要為不含0正整數",e=0);else if("isp0int"===t)Eo(e)||(n=!0,i="需要為含0正整數",e=0);else if("isnint"===t)Yh(e)||(n=!0,i="需要為不含0負整數",e=0);else if("isn0int"===t)fI(e)||(n=!0,i="需要為含0負整數",e=0);else if("custom"===t){let t=Be(r,"funCustom");if(!ba(t))throw new Error("invalid opt.funCustom when type='custom'");let o=t(e);if(!hn(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(!ke(o.value)&!De(o.value))throw new Error("invalid return.value for type='custom'");n=o.err,i=o.errmsg,e=o.value}else if(ba(t)){e=t(e)}else"any"===t?ke(e)||De(e)||(n=!0,i="需要為字串或數字",e=""):(n=!0,i="需要指定驗證類型",e=null);return{value:e,err:n,errmsg:i}},e.waitFun=bs});
23
+ return/[!-/:-@[-`{-~]/.test(e)}function lS(e){if(!Ee(e))return!1;let n="YYYY-MM-DDTHH:mm:ss.SSS";return e===t(e,n).format(n)}function uS(e){let t;return t=es(e,1),"Z"===t?`${e=Qs(e,1)}+00:00`:e}let fS={checkTZ:function(e){let t;return t=es(e,1),"Z"===t||(t=es(e,6),!!/[+|-]\d\d:\d\d/.test(t))},delTZ:function(e){let t;return t=es(e,1),Qs(e,"Z"===t?1:6)},normTZ:uS,sepTZ:function(e){let t=uS(e);return{t:Qs(t,6),tz:es(t,6)}}};function dS(e){if(!Ee(e))return!1;if(!fS.checkTZ(e))return!1;let n=fS.delTZ(e),r="YYYY-MM-DDTHH:mm:ss.SSS";return n===t(n,r).format(r)}function hS(e){if(!Ee(e))return!1;if(!fS.checkTZ(e))return!1;let n=fS.delTZ(e),r="YYYY-MM-DDTHH:mm:ss";return n===t(n,r).format(r)}let pS=["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 gS(e,t){return new Vc(e).eq(t)}function mS(e,t){if(!Dn(e))return[];if(!Dn(t))return[];if(!Dn(t[0]))return[];return yn(t,function(t){let n=Yo(e,t);return mn(n,function(e,t){void 0===e&&(n[t]="")}),n})}var AS=Fs(function(e){return Hn(In(e,1,eg,!0))});var yS=Fs(function(e,t){var n=ys(t);return eg(n)&&(n=void 0),eg(e)?function(e,t,n,r){var o=-1,i=Tn,s=!0,a=e.length,c=[],l=t.length;if(!a)return c;n&&(t=he(t,We(n))),r?(i=Ln,s=!1):t.length>=200&&(i=yt,s=!1,t=new mt(t));e:for(;++o<a;){var u=e[o],f=null==n?u:n(u);if(u=r||0!==u?u:0,s&&f==f){for(var d=l;d--;)if(t[d]===f)continue e;c.push(u)}else i(t,f,r)||c.push(u)}return c}(e,In(t,1,eg,!0),fn(n)):[]}),vS=yS;function bS(e){if(!Ee(e))return"";let t=Jr.parse(e);return Mr.stringify(t)}function IS(e,t,n=!1){if(!Ee(e))return"";if(!Ee(t))return"";ir(n)||(n=!1);let r=Gr.encrypt(e,t),o="";if(n)o=r.toString();else{let e=r.toString();o=Mr.parse(e).toString(_r)}return o}var wS={exports:{}};!function(e){var t;e.exports=(t=Sr(),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=[],o=0;o<t;o++)r[o>>>2]|=e[o]<<24-o%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=e}}(),t.lib.WordArray)}(wS);var xS=Br(wS.exports);function CS(e){if(!zs(e))return"";return xS.create(e).toString(Mr)}function BS(e){return rk(e)?new Uint8Array(e):new Uint8Array}function ES(e){return rk(e)?CS(BS(e)):""}let FS="[Uint8Array]::";let kS="[Uint16Array]::";let SS={tagU8A:FS,u8arr2b64:function(e){return zs(e)?FS+CS(e):e},b642u8arr:function(e){return Be(e)&&Zi(e,14)===FS?Ps(e=ts(e,14)):e},tagU16A:kS,u16arr2b64:function(e){return rk(e)?kS+ES(e):e},b642u16arr:function(e){return Be(e)&&Zi(e,15)===kS?$s(e=ts(e,15)):e}};function DS(e){if(!xe(e))return{results:"",binarys:[]};if(En(e))return{results:"",binarys:[]};let t="",n=[];try{let r=-1;t=JSON.stringify(e,function(e,t){if(zs(t)){r+=1;let e=`[Uint8Array]::${r}`;return n.push(t),e}if(rk(t)){r+=1;let e=`[Uint16Array]::${r}`;return n.push(t),e}if(A(t)){r+=1;let e=`[ArrayBuffer]::${r}`;return n.push(t),e}return uk(t)&&(t=t.toString()),t})}catch(e){}return{results:t,binarys:n}}function NS(e){if(!Ee(e))return new Uint8Array;let t;try{t=Ps(bS(e))}catch(e){return new Uint8Array}return t}function QS(e,t){if(!Ce(e))return{};if(!ls(t))throw new Error("fun is not a function");let n=yn(e,(e,n)=>({k:n,v:e,t:t(e,n)}));n=ks(n,"t");let r={};return mn(n,e=>{r[e.k]=e.v}),r}function MS(e,t=()=>{}){if(!ls(e))return null;function n(e,t){let n;return Bn(e)||Cn(e)?t:(n=Ie(e,"data",null),n||e)}return ls(t)||(t=()=>{}),function(){let r,o=Gs(),i=t({mode:"before",data:arguments});return(Bn(i)||Cn(i))&&(i=arguments),e(...i).then(e=>{r=t({mode:"afterThen",data:e}),e=n(r,e),o.resolve(e)}).catch(e=>{r=t({mode:"afterCatch",data:e}),e=n(r,e),o.reject(e)}),o}}function TS(e){if(!Be(e))return null;if(""===e)return 0;let t=e.split("").reduce((e,t)=>t.charCodeAt(0)+(e<<6)+(e<<16)-e,0);return t}let LS=0;function US(e="start1",t=!1){void 0===e?e=(new Date).getTime():"start1"===e&&(LS++,e=LS);let n=624,r=397,o=2147483648,i=2147483647,s=new Array(n),a=625,c=e=>{for(as(e)?s[0]=e>>>0:(e=Ds(e),s[0]=TS(e)),a=1;a<n;a++){let e=s[a-1]^s[a-1]>>>30;s[a]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+a,s[a]>>>=0}},l=()=>(()=>{let e,t=new Array(2567483615);if(a>=n){let l;for(625===a&&c(5489),l=0;l<227;l++)e=s[l]&o|s[l+1]&i,s[l]=s[l+r]^e>>>1^t[1&e];for(;l<623;l++)e=s[l]&o|s[l+1]&i,s[l]=s[l+(r-n)]^e>>>1^t[1&e];e=s[623]&o|s[0]&i,s[623]=s[396]^e>>>1^t[1&e],a=0}return e=s[a++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0})()*(1/4294967296);c(e);let u=null;return u=t?l:l(),u}let RS=US((new Date).getTime(),!0);function HS(){return RS()}function qS(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}var OS=Math.floor,PS=Math.random;function zS(e,t){return e+OS(PS()*(t-e+1))}function jS(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var i=zS(n,o),s=e[i];e[i]=e[n],e[n]=s}return e.length=t,e}function $S(e,t){return jS(wn(e),qS(t,0,e.length))}function YS(e,t){var n=nF(e);return jS(n,qS(t,0,n.length))}var GS=Math.floor;function VS(e,t,n){return t=(n?dn(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=GS(t/2))&&(e+=e)}while(t);return n}(Ae(e),t)}var JS=Po("floor");var WS=Br(Lr());var _S={exports:{}},XS={exports:{}};!function(e){var t;e.exports=(t=Sr(),function(e){var n=t,r=n.lib,o=r.WordArray,i=r.Hasher,s=n.algo,a=[],c=[];!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,o=0;o<64;)t(r)&&(o<8&&(a[o]=n(e.pow(r,.5))),c[o]=n(e.pow(r,1/3)),o++),r++}();var l=[],u=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],u=n[5],f=n[6],d=n[7],h=0;h<64;h++){if(h<16)l[h]=0|e[t+h];else{var p=l[h-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=l[h-2],A=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[h]=g+l[h-7]+A+l[h-16]}var y=r&o^r&i^o&i,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&f)+c[h]+l[h];d=f,f=u,u=a,a=s+b|0,s=i,i=o,o=r,r=b+(v+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+a|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,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(u),n.HmacSHA256=i._createHmacHelper(u)}(Math),t.SHA256)}(XS);var KS=XS.exports,ZS=Br(KS);!function(e){var t;e.exports=(t=Sr(),function(){var e=t,n=e.lib.WordArray,r=e.algo,o=r.SHA256,i=r.SHA224=o.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=o._createHelper(i),e.HmacSHA224=o._createHmacHelper(i)}(),t.SHA224)}(_S);var eD,tD=Br(_S.exports),nD={exports:{}},rD={exports:{}};function oD(){return eD||(eD=1,function(e){var t,n,r,o,i,s,a;e.exports=(a=Sr(),r=(n=a).lib,o=r.Base,i=r.WordArray,(s=n.x64={}).Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var o=e[r];n.push(o.high),n.push(o.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=o.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}}),a)}(rD)),rD.exports}var iD={exports:{}};!function(e){var t;e.exports=(t=Sr(),oD(),function(){var e=t,n=e.lib.Hasher,r=e.x64,o=r.Word,i=r.WordArray,s=e.algo;function a(){return o.create.apply(o,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=a()}();var u=s.SHA512=n.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],a=n[4],u=n[5],f=n[6],d=n[7],h=r.high,p=r.low,g=o.high,m=o.low,A=i.high,y=i.low,v=s.high,b=s.low,I=a.high,w=a.low,x=u.high,C=u.low,B=f.high,E=f.low,F=d.high,k=d.low,S=h,D=p,N=g,Q=m,M=A,T=y,L=v,U=b,R=I,H=w,q=x,O=C,P=B,z=E,j=F,$=k,Y=0;Y<80;Y++){var G,V,J=l[Y];if(Y<16)V=J.high=0|e[t+2*Y],G=J.low=0|e[t+2*Y+1];else{var W=l[Y-15],_=W.high,X=W.low,K=(_>>>1|X<<31)^(_>>>8|X<<24)^_>>>7,Z=(X>>>1|_<<31)^(X>>>8|_<<24)^(X>>>7|_<<25),ee=l[Y-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=l[Y-7],se=ie.high,ae=ie.low,ce=l[Y-16],le=ce.high,ue=ce.low;V=(V=(V=K+se+((G=Z+ae)>>>0<Z>>>0?1:0))+re+((G+=oe)>>>0<oe>>>0?1:0))+le+((G+=ue)>>>0<ue>>>0?1:0),J.high=V,J.low=G}var fe,de=R&q^~R&P,he=H&O^~H&z,pe=S&N^S&M^N&M,ge=D&Q^D&T^Q&T,me=(S>>>28|D<<4)^(S<<30|D>>>2)^(S<<25|D>>>7),Ae=(D>>>28|S<<4)^(D<<30|S>>>2)^(D<<25|S>>>7),ye=(R>>>14|H<<18)^(R>>>18|H<<14)^(R<<23|H>>>9),ve=(H>>>14|R<<18)^(H>>>18|R<<14)^(H<<23|R>>>9),be=c[Y],Ie=be.high,we=be.low,xe=j+ye+((fe=$+ve)>>>0<$>>>0?1:0),Ce=Ae+ge;j=P,$=z,P=q,z=O,q=R,O=H,R=L+(xe=(xe=(xe=xe+de+((fe+=he)>>>0<he>>>0?1:0))+Ie+((fe+=we)>>>0<we>>>0?1:0))+V+((fe+=G)>>>0<G>>>0?1:0))+((H=U+fe|0)>>>0<U>>>0?1:0)|0,L=M,U=T,M=N,T=Q,N=S,Q=D,S=xe+(me+pe+(Ce>>>0<Ae>>>0?1:0))+((D=fe+Ce|0)>>>0<fe>>>0?1:0)|0}p=r.low=p+D,r.high=h+S+(p>>>0<D>>>0?1:0),m=o.low=m+Q,o.high=g+N+(m>>>0<Q>>>0?1:0),y=i.low=y+T,i.high=A+M+(y>>>0<T>>>0?1:0),b=s.low=b+U,s.high=v+L+(b>>>0<U>>>0?1:0),w=a.low=w+H,a.high=I+R+(w>>>0<H>>>0?1:0),C=u.low=C+O,u.high=x+q+(C>>>0<O>>>0?1:0),E=f.low=E+z,f.high=B+P+(E>>>0<z>>>0?1:0),k=d.low=k+$,d.high=F+j+(k>>>0<$>>>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)}(iD);var sD=iD.exports,aD=Br(sD);!function(e){var t;e.exports=(t=Sr(),oD(),function(){var e=t,n=e.x64,r=n.Word,o=n.WordArray,i=e.algo,s=i.SHA512,a=i.SHA384=s.extend({_doReset:function(){this._hash=new o.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=s._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=s._createHelper(a),e.HmacSHA384=s._createHmacHelper(a)}(),t.SHA384)}(nD);let cD={1:Pr,224:tD,256:ZS,384:Br(nD.exports),512:aD};function lD(e,t,n=!1){if(!Ee(e))return"";if(!$o(t))throw new Error("n is not a positive integer");if(t=jo(t),!De(cD,t))throw new Error(`invalid n[${t}]`);ir(n)||(n=!1);let r=(0,cD[t])(e),o="";return o=n?r.toString(Mr):r.toString(_r),o}function uD(e,t){return Ee(e)&&Ee(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),o=n.has(r)?n.get(r)+1:1;n.set(r,o)}let r=0;for(let e=0;e<t.length-1;e++){const o=t.substring(e,e+2),i=n.has(o)?n.get(o):0;i>0&&(n.set(o,i-1),r++)}return 2*r/(e.length+t.length-2)}(e,t):0}function fD(e){return Array.isArray?Array.isArray(e):"[object Array]"===vD(e)}function dD(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 hD(e){return"string"==typeof e}function pD(e){return"number"==typeof e}function gD(e){return!0===e||!1===e||function(e){return mD(e)&&null!==e}(e)&&"[object Boolean]"==vD(e)}function mD(e){return"object"==typeof e}function AD(e){return null!=e}function yD(e){return!e.trim().length}function vD(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const bD="Invalid doc index: must be a non-negative integer within the bounds of the docs array",ID=Object.prototype.hasOwnProperty;var wD=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{const n=xD(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 xD(e){let t=null,n=null,r=null,o=1,i=null;if(hD(e)||fD(e))r=e,t=CD(e),n=BD(e);else{if(!ID.call(e,"name"))throw new Error((e=>`Missing ${e} property in key`)("name"));const s=e.name;if(r=s,ID.call(e,"weight")&&void 0!==e.weight&&(o=e.weight,o<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(BD(s)));t=CD(s),n=BD(s),i=e.getFn??null}return{path:t,id:n,weight:o,src:r,getFn:i}}function CD(e){return fD(e)?e:e.split(".")}function BD(e){return fD(e)?e.join("."):e}const ED={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:"any",getFn:function(e,t){const n=[];let r=!1;const o=(e,t,i,s)=>{if(AD(e))if(t[i]){const a=e[t[i]];if(!AD(a))return;if(i===t.length-1&&(hD(a)||pD(a)||gD(a)||"bigint"==typeof a))n.push(void 0!==s?{v:dD(a),i:s}:dD(a));else if(fD(a)){r=!0;for(let e=0,n=a.length;e<n;e+=1)o(a[e],t,i+1,e)}else t.length&&o(a,t,i+1,s)}else n.push(void 0!==s?{v:e,i:s}:e)};return o(e,hD(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},FD=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,...ED});function kD(e){return e>=9&&e<=13||32===e||160===e}var SD=class{constructor({getFn:e=FD.getFn,fieldNormWeight:t=FD.fieldNormWeight}={}){this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){let o=0,i=!1;for(let e=0;e<t.length;e++)kD(t.charCodeAt(e))?i=!1:i||(o++,i=!0);if(0===o&&(o=1),n.has(o))return n.get(o);const s=Math.round(r/Math.pow(o,.5*e))/r;return n.set(o,s),s},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(hD(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(bD);if(hD(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(bD);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 o=t+r>>>1;n[o]<e.i?t=o+1:r=o}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!AD(e)||yD(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],o=r.getFn?r.getFn(e):this.getFn(e,r.path);if(AD(o))if(fD(o)){const e=[];for(let t=0,n=o.length;t<n;t+=1){const n=o[t];if(AD(n))if(hD(n)){if(!yD(n)){const r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(AD(n.v)){const t=hD(n.v)?n.v:dD(n.v);if(!yD(t)){const r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}n.$[t]=e}else if(hD(o)&&!yD(o)){const e={v:o,n:this.norm.get(o)};n.$[t]=e}}return n}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function DD(e,t,{getFn:n=FD.getFn,fieldNormWeight:r=FD.fieldNormWeight}={}){const o=new SD({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(xD)),o.setSources(t),o.create(),o}function ND(e,t,n,{location:r=FD.location,distance:o=FD.distance,threshold:i=FD.threshold,findAllMatches:s=FD.findAllMatches,minMatchCharLength:a=FD.minMatchCharLength,includeMatches:c=FD.includeMatches,ignoreLocation:l=FD.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=i,p=d;const g=(e,t)=>{const n=e/u;if(l)return n;const r=Math.abs(d-t);return o?n+r/o:r?1:n},m=a>1||c,A=m?Array(f):[];let y;for(;(y=e.indexOf(t,p))>-1;){const e=g(0,y);if(h=Math.min(e,h),p=y+u,m){let e=0;for(;e<u;)A[y+e]=1,e+=1}}p=-1;let v=[],b=1,I=0,w=u+f;const x=1<<u-1;for(let t=0;t<u;t+=1){let r=0,o=w;for(;r<o;)g(t,d+o)<=h?r=o:w=o,o=Math.floor((w-r)/2+r);w=o;let i=Math.max(1,d-o+1);const a=s?f:Math.min(d+o,f)+u,c=Array(a+2);c[a+1]=(1<<t)-1;for(let r=a;r>=i;r-=1){const o=r-1,s=n[e[o]];if(c[r]=(c[r+1]<<1|1)&s,t&&(c[r]|=(v[r+1]|v[r])<<1|1|v[r+1]),c[r]&x&&(b=g(t,o),b<=h)){if(h=b,p=o,I=t,p<=d)break;i=Math.max(1,2*d-p)}}if(g(t+1,d)>h)break;v=c}if(m&&p>=0){const t=Math.min(f-1,p+u-1+I);for(let r=p;r<=t;r+=1)n[e[r]]&&(A[r]=1)}const C={isMatch:p>=0,score:Math.max(.001,b)};if(m){const e=function(e=[],t=FD.minMatchCharLength){const n=[];let r=-1,o=-1,i=0;for(let s=e.length;i<s;i+=1){const s=e[i];s&&-1===r?r=i:s||-1===r||(o=i-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}(A,a);e.length?c&&(C.indices=e):C.isMatch=!1}return C}function QD(e){const t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}function MD(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],o=e[n];o[0]<=r[1]+1?r[1]=Math.max(r[1],o[1]):t.push(o)}return t}const TD={"ł":"l","Ł":"L","đ":"d","Đ":"D","ø":"o","Ø":"O","ħ":"h","Ħ":"H","ŧ":"t","Ŧ":"T","ı":"i","ß":"ss"},LD=new RegExp("["+Object.keys(TD).join("")+"]","g"),UD="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(LD,e=>TD[e]):e=>e;var RD=class{constructor(e,{location:t=FD.location,threshold:n=FD.threshold,distance:r=FD.distance,includeMatches:o=FD.includeMatches,findAllMatches:i=FD.findAllMatches,minMatchCharLength:s=FD.minMatchCharLength,isCaseSensitive:a=FD.isCaseSensitive,ignoreDiacritics:c=FD.ignoreDiacritics,ignoreLocation:l=FD.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:o,findAllMatches:i,minMatchCharLength:s,isCaseSensitive:a,ignoreDiacritics:c,ignoreLocation:l},e=a?e:e.toLowerCase(),e=c?UD(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const u=(e,t)=>{this.chunks.push({pattern:e,alphabet:QD(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?UD(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:o,distance:i,threshold:s,findAllMatches:a,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[];let f=0,d=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:h})=>{const{isMatch:p,score:g,indices:m}=ND(e,t,n,{location:o+h,distance:i,threshold:s,findAllMatches:a,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});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=MD(u)),h}};const HD=new Set(["fuzzy","include"]);function qD(e){return e.startsWith("inverse")}const OD=[{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 o=[],i=e.length;for(;(n=t.indexOf(e,r))>-1;)r=n+i,o.push([n,r-1]);const s=!!o.length;return{isMatch:s,score:s?0:1,indices:o}}})},{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 RD(e,{location:t.location??FD.location,threshold:t.threshold??FD.threshold,distance:t.distance??FD.distance,includeMatches:t.includeMatches??FD.includeMatches,findAllMatches:t.findAllMatches??FD.findAllMatches,minMatchCharLength:t.minMatchCharLength??FD.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??FD.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??FD.ignoreDiacritics,ignoreLocation:t.ignoreLocation??FD.ignoreLocation});return{type:"fuzzy",search:e=>n.searchIn(e)}}}],PD=OD.length;function zD(e,t){const n=e.match(t);return n?n[1]:null}const jD=[];function $D(...e){jD.push(...e)}function YD(e,t){for(let n=0,r=jD.length;n<r;n+=1){const r=jD[n];if(r.condition(e,t))return new r(e,t)}return new RD(e,t)}const GD="$and",VD="$or",JD="$path",WD="$val",_D=e=>!(!e[GD]&&!e[VD]),XD=e=>({[GD]:Object.keys(e).map(t=>({[t]:e[t]}))});function KD(e,t,{auto:n=!0}={}){const r=e=>{if(hD(e)){const r={keyId:null,pattern:e};return n&&(r.searcher=YD(e,t)),r}const o=Object.keys(e),i=(e=>!!e[JD])(e);if(!i&&o.length>1&&!_D(e))return r(XD(e));if((e=>!fD(e)&&mD(e)&&!_D(e))(e)){const r=i?e[JD]:o[0],s=i?e[WD]:e[r];if(!hD(s))throw new Error((e=>`Invalid value for key ${e}`)(r));const a={keyId:BD(r),pattern:s};return n&&(a.searcher=YD(s,t)),a}const s={children:[],operator:o[0]};return o.forEach(t=>{const n=e[t];fD(n)&&n.forEach(e=>{s.children.push(r(e))})}),s};return _D(e)||(e=XD(e)),r(e)}function ZD(e,{ignoreFieldNorm:t=FD.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:o})=>{const i=e?e.weight:null;n*=Math.pow(0===o&&i?Number.EPSILON:o,(i||1)*(t?1:r))}),n}var eN=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 o=2*(e=r)+1,i=2*e+2;if(o<n&&this.comparator(t[o],t[r])>0&&(r=o),i<n&&this.comparator(t[i],t[r])>0&&(r=i),r!==e){const n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function tN(e,t,{includeMatches:n=FD.includeMatches,includeScore:r=FD.includeScore}={}){return e.map(e=>{const{idx:o}=e,i={item:t[o],refIndex:o};return n&&(i.matches=function(e){const t=[];return e.matches.forEach(e=>{if(!AD(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&&(i.score=e.score),i})}const nN=/[\p{L}\p{M}\p{N}_]+/gu,rN=new WeakSet;function oN(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){rN.has(e)||(rN.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(nN)||[]}function iN({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){const r=oN(n);return{tokenize:n=>(e||(n=n.toLowerCase()),t&&(n=UD(n)),r(n))}}function sN(e,t,n,r){const o=r.tokenize(t);if(!o.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);const i=new Set(o);let s=e.docTermFieldHits.get(n);s||(s=new Map,e.docTermFieldHits.set(n,s));for(const t of i)s.set(t,(s.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function aN(e,t,n,r){const{i:o,v:i,$:s}=t;if(void 0===i){if(s)for(let t=0;t<n;t++){const n=s[t];if(n)if(Array.isArray(n))for(const t of n)sN(e,t.v,o,r);else sN(e,n.v,o,r)}}else sN(e,i,o,r)}function cN(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 lN(e,t){if(0===t.length)return;const n=Array.from(new Set(t)).sort((e,t)=>e-t);for(const t of n)cN(e,t);const r=e=>{let t=0,r=n.length;for(;t<r;){const o=t+r>>>1;n[o]<e?t=o+1:r=o}return e-t},o=n[0],i=new Map;for(const[t,n]of e.docFieldCount)i.set(t>o?r(t):t,n);e.docFieldCount=i;const s=new Map;for(const[t,n]of e.docTermFieldHits)s.set(t>o?r(t):t,n);e.docTermFieldHits=s}var uN=class{constructor(e,t,n){this.options={...FD,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new wD(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=YD(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 SD))throw new Error("Incorrect 'index' type");if(this._myIndex=t||DD(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const e=iN({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 o of e)aN(r,o,t,n);return r}(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!AD(e))return;this._docs.push(e);const t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){const e=iN({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});!function(e,t,n,r){aN(e,t,n,r)}(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){const t=[],n=[];for(let r=0,o=this._docs.length;r<o;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){this._invertedIndex&&lN(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(bD);this._invertedIndex&&lN(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:o,shouldSort:i,sortFn:s,ignoreFieldNorm:a}=this.options;if(hD(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return pD(n)&&n>-1&&(e=e.slice(0,n)),e}const c=i&&pD(n)&&n>0&&hD(e),l=s,u=(e,t)=>l(e,t)||e.idx-t.idx;let f;if(c){const t=new eN(n,u);hD(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:a}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:a}),f=t.extractSorted()}else f=hD(e)?hD(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),function(e,{ignoreFieldNorm:t=FD.ignoreFieldNorm}){e.forEach(e=>{e.score=ZD(e.matches,{ignoreFieldNorm:t})})}(f,{ignoreFieldNorm:a}),i&&f.sort(hD(e)?u:l),pD(n)&&n>-1&&(f=f.slice(0,n));return tN(f,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){const r=this._getSearcher(e),o=this.options.useTokenSearch&&"all"===this.options.tokenMatch,{records:i}=this._myIndex,s=t?null:[];return i.forEach(({v:e,i:i,n:a})=>{if(!AD(e))return;const c=r.searchIn(e);if(c.isMatch){const r={score:c.score,value:e,norm:a,indices:c.indices};o&&(r.matchedMask=c.matchedMask,r.matchedTerms=c.matchedTerms,r.termCount=c.termCount);const l=[r];if(!o||this._coversAllTokens(l)){const r={item:e,idx:i,matches:l};t?(r.score=ZD(r.matches,{ignoreFieldNorm:n}),t.insert(r)):s.push(r)}}}),s}_searchLogical(e){const t=KD(e,this.options),n=this._normalizedKeys(),r=(e,t,o)=>{if(!("children"in e)){const{keyId:r,searcher:i}=e;let s;return null===r?(s=[],n.forEach((e,n)=>{s.push(...this._findMatches({key:e,value:t[n],searcher:i}))})):s=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:i}),s&&s.length?[{idx:o,item:t,matches:s}]:[]}const{children:i,operator:s}=e,a=[];for(let e=0,n=i.length;e<n;e+=1){const n=i[e],c=r(n,t,o);if(c.length)a.push(...c);else if(s===GD)return[]}return a},o=this._myIndex.records,i=new Map,s=[];return o.forEach(({$:e,i:n})=>{if(AD(e)){const o=r(t,e,n);o.length&&(i.has(n)||(i.set(n,{idx:n,item:e,matches:[]}),s.push(i.get(n))),o.forEach(({matches:e})=>{i.get(n).matches.push(...e)}))}}),s}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){const r=this._getSearcher(e),o=this.options.useTokenSearch&&"all"===this.options.tokenMatch,{records:i}=this._myIndex,s=this._normalizedKeys(),a=t?null:[];return i.forEach(({$:e,i:i})=>{if(!AD(e))return;const c=[];let l=!1,u=!1;if(s.forEach((t,n)=>{const o=this._findMatches({key:t,value:e[n],searcher:r});o.length?(c.push(...o),o[0].hasInverse&&(u=!0)):l=!0}),(!u||!l)&&c.length&&(!o||this._coversAllTokens(c))){const r={idx:i,item:e,matches:c};t?(r.score=ZD(r.matches,{ignoreFieldNorm:n}),t.insert(r)):a.push(r)}}),a}_findMatches({key:e,value:t,searcher:n}){if(!AD(t))return[];const r=[];if(fD(t))t.forEach(({v:t,i:o,n:i})=>{if(!AD(t))return;const s=n.searchIn(t);if(s.isMatch){const n={score:s.score,key:e,value:t,idx:o,norm:i,indices:s.indices,hasInverse:s.hasInverse};void 0!==s.termCount&&(n.matchedMask=s.matchedMask,n.matchedTerms=s.matchedTerms,n.termCount=s.termCount),r.push(n)}});else{const{v:o,n:i}=t,s=n.searchIn(o);if(s.isMatch){const t={score:s.score,key:e,value:o,norm:i,indices:s.indices,hasInverse:s.hasInverse};void 0!==s.termCount&&(t.matchedMask=s.matchedMask,t.matchedTerms=s.matchedTerms,t.termCount=s.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}};uN.version="7.5.0",uN.createIndex=DD,uN.parseIndex=function(e,{getFn:t=FD.getFn,fieldNormWeight:n=FD.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new SD({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i},uN.config=FD,uN.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 YD(e,{...FD,...n}).searchIn(t)},uN.parseQuery=KD,$D(class{constructor(e,{isCaseSensitive:t=FD.isCaseSensitive,ignoreDiacritics:n=FD.ignoreDiacritics,includeMatches:r=FD.includeMatches,minMatchCharLength:o=FD.minMatchCharLength,ignoreLocation:i=FD.ignoreLocation,findAllMatches:s=FD.findAllMatches,location:a=FD.location,threshold:c=FD.threshold,distance:l=FD.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:o,findAllMatches:s,ignoreLocation:i,location:a,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?UD(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 o=r;for(;o<n&&" "!==e[o]&&'"'!==e[o];)o++;if(o<n&&'"'===e[o]){for(o++;o<n;){if('"'===e[o]){const t=o+1;if(t>=n||" "===e[t]){o++;break}if("$"===e[t]&&(t+1>=n||" "===e[t+1])){o+=2;break}}o++}t.push(e.substring(r,o)),r=o}else{for(;o<n&&" "!==e[o];)o++;t.push(e.substring(r,o)),r=o}}return t}(e.replace(/\u0000/g,"|").trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,o=n.length;e<o;e+=1){const o=n[e];let i=!1,s=-1;for(;!i&&++s<PD;){const e=OD[s],n=zD(o,e.multiRegex);n&&(r.push(e.create(n,t)),i=!0)}if(!i)for(s=-1;++s<PD;){const e=OD[s],n=zD(o,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:o}=this.options;e=r?e:e.toLowerCase(),e=o?UD(e):e;let i=0;const s=[];let a=0,c=!1;for(let r=0,o=t.length;r<o;r+=1){const o=t[r];s.length=0,i=0,c=!1;for(let t=0,r=o.length;t<r;t+=1){const r=o[t],{isMatch:l,indices:u,score:f}=r.search(e);if(!l){a=0,i=0,s.length=0,c=!1;break}i+=1,a+=f,qD(r.type)&&(c=!0),n&&(HD.has(r.type)?s.push(...u):s.push(u))}if(i){const e={isMatch:!0,score:a/i};return c&&(e.hasInverse=!0),n&&(e.indices=MD(s)),e}}return{isMatch:!1,score:1}}}),$D(class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=iN({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});const n=this.analyzer.tokenize(e),{df:r,fieldCount:o}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(const e of n){this.termSearchers.push(new RD(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,i=Math.log(1+(o-n+.5)/(n+.5));this.idfWeights.push(i)}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,o=0,i=0;const s=this.combineAll&&!this.useMask?new Set:null;for(let a=0;a<this.termSearchers.length;a++){const c=this.termSearchers[a].searchIn(e),l=this.idfWeights[a];r+=l,c.isMatch&&(o++,n+=l*(1-c.score),c.indices&&t.push(...c.indices),this.combineAll&&(this.useMask?i|=1<<a:s.add(a)))}if(0===o)return{isMatch:!1,score:1};const a=r>0?1-n/r:0,c={isMatch:!0,score:Math.max(.001,a)};return this.options.includeMatches&&t.length&&(c.indices=MD(t)),this.combineAll&&(this.useMask?c.matchedMask=i:c.matchedTerms=s,c.termCount=this.numTerms),c}}),uN.use=function(...e){e.forEach(e=>$D(e))};var fN=uN;function dN(e){return function(e,t){var n=null==e?0:e.length;return n?hs(e,t)/n:NaN}(e,cn)}function hN(e){if(!Ce(e))return{};let{results:t,binarys:n}=e;if(!Ee(t))return{};if(!we(n))return{};let r={};try{r=JSON.parse(t,function(e,t){if(Ee(t)){if(t.indexOf("[Uint8Array]::")>=0){let e=jo(t.replace("[Uint8Array]::",""));return n[e]}if(t.indexOf("[Uint16Array]::")>=0){let e=jo(t.replace("[Uint16Array]::",""));return n[e]}if(t.indexOf("[ArrayBuffer]::")>=0){let e=jo(t.replace("[ArrayBuffer]::",""));return n[e]}}return t})}catch(e){}return r}function pN(e,n=null){if(!ls(t))throw new Error("invalid dayjs");if(!dS(e))return{today:null,msg:"",err:"時間格式錯誤"};let r=t();dS(n)&&(r=t(n,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let o=t(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r>o)return{today:null,msg:"",err:"時間已過"};let i,s=r.format("YYYY-MM-DD"),a=o.format("YYYY-MM-DD"),c=t(s,"YYYY-MM-DD"),l=t(a,"YYYY-MM-DD"),u=o.diff(r,"seconds"),f=o.diff(r,"minutes"),d=o.diff(r,"hours"),h=l.diff(c,"days"),p=l.diff(c,"weeks"),g=l.diff(c,"months"),m=l.diff(c,"years"),A="即將到來";if(u>=0&&(i=!0,A=u+"秒後"),f>0&&(i=!0,A=f+"分鐘後"),d>0){let e=o.format("HH:mm");s===a?(i=!0,A=d+"小時後,今天"+e):(i=!1,A=d+"小時後,明天"+e)}return h>1&&(i=!1,A=2===h?"後天":h+"天後"),p>0&&(i=!1,A=p+"周後"),g>0&&(i=!1,A=g+"個月後"),m>0&&(i=!1,A=m+"年後"),{today:i,msg:A,err:""}}function gN(e,n=null){if(!ls(t))throw new Error("invalid dayjs");if(!dS(e))return{today:null,msg:"",err:"時間格式錯誤"};let r=t();dS(n)&&(r=t(n,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let o=t(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r<o)return{today:null,msg:"",err:"時間未到"};let i=r.format("YYYY-MM-DD"),s=o.format("YYYY-MM-DD"),a=t(i,"YYYY-MM-DD"),c=t(s,"YYYY-MM-DD"),l=r.diff(o,"seconds"),u=r.diff(o,"minutes"),f=r.diff(o,"hours"),d=a.diff(c,"days"),h=a.diff(c,"weeks"),p=a.diff(c,"months"),g=a.diff(c,"years"),m=!1,A="剛剛";if(l>=0&&(m=!0,A=l+"秒前"),u>0&&(m=!0,A=u+"分鐘前"),f>0){let e=o.format("HH:mm");i===s?(m=!0,A=f+"小時前"):(m=!1,A="昨天"+e)}return d>1&&(m=!1,A=d+"天前"),h>0&&(m=!1,A=h+"周前"),p>0&&(m=!1,A=p+"個月前"),g>0&&(m=!1,A=g+"年前"),{today:m,msg:A,err:""}}function mN(e){let t=fS.sepTZ(e);return e=`${t.t}.000${t.tz}`}function AN(e){let t=fS.sepTZ(e);return e=`${t.t}.000${t.tz}`}function yN(e){if(!zs(e))return"";let t;try{t=qs(CS(e))}catch(e){return""}return t}e.ab2blob=function(e){let t=y(e);return new Blob([t])},e.ab2u8arr=y,e.addExcelWorksheetFromData=function(e,t,n="data"){if(!Ce(e))return{error:"wb is not an effective object"};if(!we(Ie(e,"sheets")))return{error:"wb.sheets is not an array"};Ee(n)||(n="data");let r=lr(t);return De(r,"error")?r:(e.sheets.push({...r,name:n}),e)},e.addMonth=function(e,n){return ur(e)&&xr(n)?t(e,"YYYY-MM").add(n,"months").format("YYYY-MM"):""},e.aes2str=Xr,e.alive=function(e={}){let t=Ho(),n={},r=null,o=Ie(e,"timeAlive");$o(o)||(o=1e4),o=jo(o);let i=Ie(e,"timeDetect");return $o(i)||(i=50),i=jo(i),t.trigger=function(e,s){Ee(e)?(De(n,e)||setTimeout(()=>{t.emit("message",{eventName:"enter",key:e,data:s,now:rr(n)})},1),n[e]={data:s,time:Date.now()},null===r&&(r=setInterval(()=>{mn(n,(e,r)=>{if(Date.now()-e.time>o){let e=Lo(n[r]);delete n[r],t.emit("message",{eventName:"leave",key:r,data:e.data,now:rr(n)})}}),Ce(n)||(clearInterval(r),r=null)},i))):console.log("trigger need key")},t.get=function(){let e=[];return mn(n,(t,n)=>{e.push({key:n,data:t.data})}),e=Lo(e),e},t},e.arr2dt=function(e,t=""){if(!Dn(e))return{};if(Dn(t))return rr(e)===rr(t)?Yo(e,t):{};let n=[];for(let r=0;r<rr(e);r++)n.push(Lo(t));return Yo(e,n)},e.arrAccum=function(e){if(!Dn(e))return[];let t=[],n=0;return mn(e,function(e){n+=wr(e),Se(e)?t.push(n):t.push("")}),t},e.arrAdd=function(){if(rr(arguments)<2)return[];let e=arguments[0];for(let t=1;t<rr(arguments);t++){e=Go(e,arguments[t])}return e},e.arrAt=hi,e.arrDiff=Wi,e.arrFilterByKeywords=function(e,t){if(!Dn(e))return[];if(!Ee(t)&&!Dn(t))return[];let n=null;n=Ee(t)?Ki(t," "):t;let r=rr(n);return yn(e,e=>function(e){let t=!1,o=0;for(let i=0;i<r;i++){let s=n[i],a=s,c="+"===Zi(s,1),l="-"===Zi(s,1);if((c||l)&&(a=ts(s,1)),""===_i(a))continue;let u=e.indexOf(a)>=0;if(c){if(u){t=!0,o=1;break}t=!1,o=0;break}if(l){if(u){t=!1,o=0;break}t=!0,o=1;break}if(u){t=!0;let e=1-i/r;e=e**2,o+=e}}return{hasKeyword:t,weight:o}}(e))},e.arrFilterByNum=function(e){return Dn(e)?e=yn(e=rs(e=Lo(e),Se),wr):[]},e.arrFilterByPnum=is,e.arrFilterByPnumAndToLog=function(e){return Dn(e)?e=yn(e=is(e),Math.log):[]},e.arrFind=function(e,t){function n(e){return we(e)?e:[e]}return Sn(e)||0===(e=n(e)).length||Sn(t)?[]:yn(t=n(t),function(t){let n=-1;for(let r=0;r<e.length;r++)if(ss(e[r],t)){n=r;break}return n})},e.arrGroupByMaxmin=function(e,t,n={}){let r=Ie(n,"keyMax");Ee(r)||(r="max");let o=Ie(n,"keyMin");Ee(o)||(o="min");let i=Ie(n,"keyValue");Ee(i)||(i="value");let s=Ie(n,"keyItems");if(Ee(s)||(s="items"),!Dn(e))return[];if(!Dn(t))return[];let a=Lo(t);return mn(e,(e,n)=>{let c=Ie(e,i);Se(c)?c=wr(c):Se(e)&&(c=wr(e)),as(c)&&mn(t,(t,n)=>{let i=Ie(t,r,null),l=Ie(t,o,null);if(null!==i&&null!==l&&Se(i)&&Se(l)){let r=Ie(t,"maxType");"<="!==r&&"<"!==r&&(r="<=");let o,u,f=Ie(t,"minType");">="!==f&&">"!==f&&(f=">="),i=wr(i),l=wr(l),o=">="===f?c>=l:c>l,u="<="===r?c<=i:c<i,o&&u&&(De(a[n],s)||(a[n][s]=[]),a[n][s].push(e))}})}),a},e.arrHas=cs,e.arrInsert=function(e,t,n){if(!we(e))return[];if(we(n)||(n=[n]),!di(t))return e;if((t=jo(t))>rr(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=Ie(n,"keyMax");Ee(r)||(r="max");let o=Ie(n,"keyMin");Ee(o)||(o="min");let i=Ie(n,"keyValue");Ee(i)||(i="value");let s=Ie(n,"keyItems");Ee(s)||(s="items");let a=Ie(n,"beforeAddResult",null);if(!Dn(e))return[];if(!Dn(t))return[];if(!Ce(Ie(e,0)))return[];let c=Lo(e);return mn(c,(e,n)=>{let l=Ie(e,i);Se(l)&&(l=wr(l)),as(l)&&mn(t,(e,t)=>{let i=Ie(e,r,null),u=Ie(e,o,null);if(null!==i&&null!==u&&Se(i)&&Se(u)){let t=Ie(e,"maxType");"<="!==t&&"<"!==t&&(t="<=");let r,o,f=Ie(e,"minType");">="!==f&&">"!==f&&(f=">="),i=wr(i),u=wr(u),r=">="===f?l>=u:l>u,o="<="===t?l<=i:l<i,r&&o&&(ls(a)&&(e=a(e,c[n],n)),De(c[n],s)||(c[n][s]=[]),c[n][s].push(e))}})}),c},e.arrMax=function(e,t={}){if(!Dn(e))return null;let n=Ie(t,"returnIndex");ir(n)||(n=!1);let r=Ie(t,"compareKey",null),o=e;Ee(r)&&(o=yn(e,(e,t)=>Ie(e,r,"")));let i=null,s=us(o,(e,t)=>Se(t)?(t=wr(t),null===e?(i=t,t):(e=Math.max(e,t),i=e,e)):e,{returnIndex:!0});if(n)return s;let a=null;return s>=0&&(a=Ee(r)?e[s]:i),a},e.arrMin=function(e,t={}){if(!Dn(e))return null;let n=Ie(t,"returnIndex");ir(n)||(n=!1);let r=Ie(t,"compareKey",null),o=e;Ee(r)&&(o=yn(e,(e,t)=>Ie(e,r,"")));let i=null,s=us(o,(e,t)=>Se(t)?(t=wr(t),null===e?(i=t,t):(e=Math.min(e,t),i=e,e)):e,{returnIndex:!0});if(n)return s;let a=null;return s>=0&&(a=Ee(r)?e[s]:i),a},e.arrMulti=ds,e.arrNorm=function(e){if(!Dn(e))return null;let t=ps(e,e);return Se(t)?t<=0?null:Math.sqrt(t):null},e.arrProduct=ps,e.arrPull=function(e,t){if(!Dn(e))return[];if((xe(t)||Se(t)||Be(t)||ir(t))&&(t=[t]),!Dn(t))return e;let n=Lo(e);return As(n,t),n},e.arrPullAt=function(e,t){if(!Dn(e))return[];if(di(t)&&(t=[t]),!Dn(t))return e;t=yn(t,e=>jo(e));let n=Lo(e);return xs(n,t),n},e.arrReduce=us,e.arrReverse=function(e){if(!Dn(e))return[];let t=Lo(e);return Bs(t),t},e.arrSep=function(e,t){if(!Dn(e))return[];if(!$o(t)&&!Ce(t))return[];let n="",r=null;if($o(t))r=t,n="numCount";else if(Ce(t))if($o(Ie(t,"numCount")))r=t.numCount,n="numCount";else{if(!$o(Ie(t,"numGroup")))throw new Error("invalid opt.numCount or opt.numGroup");r=t.numGroup,n="numGroup"}let o=rr(e),i=[];if("numCount"===n)for(let t=0;t<o;t+=r){let n=[];for(let i=0;i<r;i++){let r=t+i;r<o&&n.push(e[r])}i.push(n)}else if("numGroup"===n){for(let e=0;e<r;e++)i[e]=[];let t=-1;for(let n=0;n<o;n++)t++,t>r-1&&(t=0),i[t].push(e[n])}return i},e.arrSort=Hs,e.asind=function(e){return Se(e)?(e=wr(e),180*Math.asin(e)/Math.PI):null},e.atan2d=function(e,t){return Se(e)?(e=wr(e),Se(t)?(t=wr(t),180*Math.atan2(t,e)/Math.PI):null):null},e.atand=function(e){return Se(e)?(e=wr(e),180*Math.atan(e)/Math.PI):null},e.attstr=function(e={}){let t=";",n="@",r="table",o="id",i=Ie(e,"uniqItems");ir(i)||(i=!1);let s=Ie(e,"dlmItem","");Ee(s)&&(t=s);let a=Ie(e,"dlmSep","");Ee(a)&&(n=a);let c=Ie(e,"keyTable","");Ee(c)&&(r=c);let l=Ie(e,"keyId","");Ee(l)&&(o=l);let u=Ie(e,"mode");function f(e){if(!Ee(e))return[];let n=Mi(e,t);return i&&(n=qn(n)),n}function d(e){if(!Dn(e))return"";return i&&(e=qn(e)),gi(e,t)}function h(e){return e=rs(e,Ee),i&&(e=qn(e)),d(e)}function p(e){let t=[];return mn(e,e=>{let i=Ie(e,r,""),s=Ie(e,o,"");if(Ee(i),Be(s)||(we(s)?rr(s):s=""),Be(s))t.push(`${i}${n}${s}`);else if(we(s)){let e=gi(s,n);t.push(`${i}${n}${e}`)}}),e=d(t)}function g(e){if(!Ee(e))return[];return rs(f(e),Ee)}function m(e){if(!Ee(e))return[];let t=f(e),i=[];return mn(t,e=>{let t=Mi(e,n),s=Ie(t,0,""),a=Ie(t,1,"");rr(t)>=3&&(t=Ns(t),a=t),i.push({item:e,[r]:s,[o]:a})}),i}function A(e,t){let n=[...g(e),...g(t)];return 0===rr(n)?"":h(n)}function y(e,t){let n=[...m(e),...m(t)];return 0===rr(n)?"":p(n)}function v(e,t){let n=g(e),r=g(t),o=[];return mn(n,e=>{cs(e,r)||o.push(e)}),0===rr(o)?"":h(o)}function b(e,t){let n=m(e),r=m(t),o=[];return mn(n,e=>{cs(e,r)||o.push(e)}),0===rr(o)?"":p(o)}"1p"!==u&&"2p"!==u&&(u="auto");let I={parse:function(e,t={}){if(!Ee(e))return[];let r=Ie(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(!Dn(e))return"";let n=Ie(t,"mode");if("1p"!==n&&"2p"!==n&&(n=u),"1p"===n)return h(e);if("2p"===n)return p(e);let i=Ie(e,0);return De(i,r)&&De(i,o)?p(e):h(e)},remove:function(e,t,r={}){if(!Ee(e))return"";if(!Ee(t))return e;let o=Ie(r,"mode");return"1p"!==o&&"2p"!==o&&(o=u),"1p"===o?v(e,t):"2p"===o||t.indexOf(n)>=0?b(e,t):v(e,t)},add:function(e,t,r={}){let o=Ie(r,"mode");if("1p"!==o&&"2p"!==o&&(o=u),"1p"===o)return A(e,t);if("2p"===o)return y(e,t);let i=e.indexOf(n)>=0,s=t.indexOf(n)>=0;return i||s?y(e,t):A(e,t)}};return I},e.b642obj=function(e){if(!Be(e))return{};let t={};try{t=Os(qs(e))}catch(e){t={}}return t},e.b642str=qs,e.b642u16arr=$s,e.b642u8arr=Ps,e.binstr=Ys,e.blob2ab=Js,e.blob2b64=Ws,e.blob2str=function(e){let t=Gs(),n=new FileReader;return n.onload=function(){t.resolve(n.result)},n.onerror=function(e){t.reject(e)},n.readAsText(e),t},e.blob2u8arr=_s,e.blobs2b64s=Xs,e.blobs2u8arrs=Ks,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>${ta(yn(arguments,function(e){return sr(e)}).join(", "))}</code>\n </div>\n `;document.querySelector("body").insertAdjacentHTML("beforeend",e)},e.browserView=na,e.browserViewFromBlob=function(e,t){ra(e)&&na(e,t)},e.browserViewFromText=function(e){Be(e)&&na(e,"text/plain")},e.browserViewFromU8arr=function(e,t){zs(e)&&na(e,t)},e.bs2u8arr=function(e){if(!Ee(e))return new Uint8Array;let t=e.length,n=new Uint8Array(t);for(let r=0;r<t;r++)n[r]=e.charCodeAt(r);return n},e.bufRead=oa,e.bufReadDbl=ia,e.bufWrite=sa,e.bufWriteDbl=aa,e.cache=function(){let e=Ho(),t={};function n(t,n){setTimeout(()=>{e.emit(t,n)},1)}function r(e,r={}){if(De(t,e))return;let o=Ie(r,"fun");ls(o)||(o=async()=>{});let i=Ie(r,"inputs");we(i)||(i=[]);let s=Ie(r,"timeExpired");$o(s)||(s=5e3),s=jo(s),t[e]={needExec:!0,fun:o,running:!1,inputs:i,value:null,time:null,timeExpired:s},n("message",{fun:"set",key:e,timeExpired:s})}async function o(e){if(De(t,e)){let r;n("message",{fun:"get",key:e,msg:"waiting"}),await la(()=>!t[e].running,{timeInterval:1e3});let o=Date.now();r=t[e].needExec;let i=o-t[e].time;return r?n("message",{fun:"get",key:e,msg:"execute first"}):t[e].timeExpired>0&&i>t[e].timeExpired&&(n("message",{fun:"get",key:e,msg:"execute by timeExpired",timeDiff:i}),r=!0),r?(n("message",{fun:"get",key:e,msg:"fun start"}),t[e].running=!0,t[e].value=await t[e].fun(...t[e].inputs).catch(t=>{n("error",{fun:"get",key:e,msg:t})}),t[e].needExec=!1,t[e].time=o,t[e].running=!1,n("message",{fun:"get",key:e,msg:"fun end"})):n("message",{fun:"get",key:e,msg:"use cache"}),Lo(t[e].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),o(e)},e.get=o,e.update=function(e,r){De(t,e)&&(n("message",{fun:"updateValue",key:e}),t[e].value=r,t[e].time=Date.now())},e.clear=function(e){De(t,e)&&(n("message",{fun:"clear",key:e}),t[e].needExec=!0)},e.remove=function(e){De(t,e)&&(n("message",{fun:"remove",key:e}),delete t[e])},e},e.cacheBd=function(e,t={}){let n=Ie(t,"nMax");$o(n)||(n=200),n=jo(n);let r=Ie(t,"nTrigger");$o(r)||(r=3),r=jo(r);let o=null,i=!1,s=async(...t)=>(i=!0,o=await e(...t),i=!1,o);return{get:s,getFromCache:async(...e)=>{for(let t=1;t<=n&&(t>r&&!i&&await s(...e).catch(()=>{}),null===o);t++)await ua(1e3);if(null===o)throw new Error(`exceeded nMax[${n}]`);return o}}},e.cacheSt=function(e={}){let t=Ie(e,"timeExpire",null);$o(t)||(t=18e5),t=jo(t);let n=Ie(e,"timeDetect",null);$o(n)||(n=2e3),n=jo(n);let r=Ho(),o={},i=e=>{if(De(o,e)){let t=`checkWithSet: key in use: ${e}`;return r.emit("checkWithSet",{state:"error",msg:t}),!1}o[e]={time:Date.now(),value:!0};let t=`checkWithSet: ${e}`;return r.emit("checkWithSet",{state:"success",msg:t}),!0},s=setInterval(()=>{r.emit("detect",{state:"start"});let e=Date.now();for(let n of Object.keys(o)){let r=o[n];r&&e-r.time>t&&delete o[n]}r.emit("detect",{state:"finish"})},n);return r.checkWithSet=i,r.setWithFree=async(e,t)=>{r.emit("setWithFree",{state:"start"});let n=[];for(let t of e){if(!i(t)){for(let e of n)delete o[e];let e=`setWithFree: key in use: ${t}`;return r.emit("setWithFree",{state:"error",msg:e}),Promise.reject(e)}n.push(t)}try{let n=await t(),o=`setWithFree: ${e.join(", ")}`;return r.emit("setWithFree",{state:"success",msg:o}),n}catch(e){let t=`setWithFree: fn threw: ${e&&e.message||e}`;throw r.emit("setWithFree",{state:"error",msg:t}),e}finally{for(let e of n)delete o[e]}},r.set=async(e,t=!0)=>{o[e]={time:Date.now(),value:t};let n=`set: ${e}`;r.emit("set",{state:"success",msg:n})},r.get=async e=>{let t=o[e],n=void 0===t?null:t.value,i=`get: ${e}`;return r.emit("get",{state:"success",msg:i}),n},r.check=async e=>{let t=De(o,e),n=`check: ${e} = ${t}`;return r.emit("check",{state:"success",msg:n}),t},r.del=async e=>{delete o[e];let t=`del: ${e}`;r.emit("del",{state:"success",msg:t})},r.waitExist=async(e,t={})=>{let n=Ie(t,"attemptNum",null);$o(n)||(n=30),n=jo(n);let i=Ie(t,"timeInterval",null);$o(i)||(i=100),i=jo(i),r.emit("waitExist",{state:"start"});try{await la(()=>De(o,e),{attemptNum:n,timeInterval:i})}catch(t){let o=`waitExist timeout (${n*i}ms): ${e}`;return r.emit("waitExist",{state:"error",msg:o}),Promise.reject(o)}let s=`waitExist resolved: ${e}`;r.emit("waitExist",{state:"success",msg:s})},r.waitNotExist=async(e,t={})=>{let n=Ie(t,"attemptNum",null);$o(n)||(n=30),n=jo(n);let i=Ie(t,"timeInterval",null);$o(i)||(i=100),i=jo(i),r.emit("waitNotExist",{state:"start"});try{await la(()=>!De(o,e),{attemptNum:n,timeInterval:i})}catch(t){let o=`waitNotExist timeout (${n*i}ms): ${e}`;return r.emit("waitNotExist",{state:"error",msg:o}),Promise.reject(o)}let s=`waitNotExist resolved: ${e}`;r.emit("waitNotExist",{state:"success",msg:s})},r.clear=()=>{clearInterval(s)},r},e.cbol=function(e){if(ir(e))return e;if(0===e)return!1;if(1===e)return!0;let t=!1;return Ee(e)&&"true"===(e=fa(_i(e)))&&(t=!0),t},e.cdbl=wr,e.ceil=Jc,e.cfilesize=function(e){return Se(e)?(e=wr(e))<1024?Wc(e,1)+" b":e<1048576?Wc(e/1024,1)+" kb":e<1073741824?Wc(e/1024/1024,1)+" mb":e<1099511627776?Wc(e/1024/1024/1024,1)+" gb":"":""},e.cfinancial=function(e,t=0){if(!Se(e))return"";if(!di(t))return"";let n=(e=Wc(e,t)).split("."),r=n[0],o=n.length>1?"."+n[1]:"",i=/(\d+)(\d{3})/;for(;i.test(r);)r=r.replace(i,"$1,$2");return r+o},e.cint=jo,e.clearXSS=Xc,e.clearXSSDyn=async function(e,t={},n){return Dn(n)||(n=["https://cdn.jsdelivr.net/npm/xss@1.0.15/dist/xss.min.js"]),await nl(n),Xc(e)},e.color=cu,e.composeToTree=vu,e.convertToTree=function(e,t={}){if(!Ce(e)&&!Dn(e))return[];let n=Ie(t,"bindKey",null);Ee(n)||(n="id");let r=Ie(t,"bindParent",null);Ee(r)||(r="parentId");let o=Ie(t,"bindText",null);Ee(o)||(o="text");let i=Ie(t,"bindChildren",null);Ee(i)||(i="children");let s=Ie(t,"bindType",null);Ee(s)||(s="type");let a=Ie(t,"bindNumOfChilren",null);Ee(a)||(a="numOfChilren");let c=Ie(t,"bindRoot",null);Ee(c)||(c="root");let l=Ie(t,"saveExtProps",null);return ir(l)||(l=!1),Ee(c)&&(e={[c]:e}),vu(Iu(e,{bindKey:n,bindParent:r,bindText:o,bindType:s,bindNumOfChilren:a}),{bindKey:n,bindParent:r,bindChildren:i,saveExtProps:l})},e.copyStrToClipboard=function(e,t={}){if(!Be(e))return"invalid input";let n=Ie(t,"eleParent");wu(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(),!xu(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=Cu,e.cotd=function(e){return Se(e)?1/Bu(e=wr(e)):null},e.createExcelWorkbook=Eu,e.cscd=function(e){return Se(e)?1/Fu(e=wr(e)):null},e.cstr=Ds,e.day2cht=function(e,n=!1){if(!ku(e))return"";let r=t(e,"YYYY-MM-DD"),o="";return o=n?r.month()+1+"月"+r.date()+"日":"民國 "+(r.year()-1911)+" 年 "+(r.month()+1)+" 月 "+r.date()+" 日",o},e.debounce=Su,e.delay=ua,e.dig=Wc,e.digExp=function(e,t=0){if(!Se(e))return"";if(!di(t))return"";let n="";return n=0===(e=wr(e))?"0":Math.abs(e)<=1e-6?e.toExponential(t):Wc(e,t),n},e.domAlert=function(e,t={}){if(!Ee(e))return;let n=Ie(t,"type","success");De(Uu,n)||(n="success");let r=Ie(t,"icon",null);Ee(r)||(r=Uu[n]);let o="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(o=t.position);let i=Ie(t,"time");as(i)||(i=4e3),i<0&&(i=4e3);let s=Ie(t,"paddingStyle",null);null===s&&(s={top:14,right:26,bottom:14,left:14});let a="";{let e=Ie(s,"top",0),t=Ie(s,"bottom",0),n=Ie(s,"left",0);a=`padding:${e}px ${Ie(s,"right",0)}px ${t}px ${n}px;`}let c=Ie(t,"textColor","#000");c=ol(c,";","");let l=Ie(t,"backgroundColor","#fff");l=ol(l,";","");let u=Ie(t,"borderWidth",1),f=Ie(t,"borderColor","#ebeef5");f=ol(f,";","");let d=Ie(t,"borderRadius",8),h=Ie(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");h=ol(h,";","");let p=Ie(t,"closeIconShift",null);null===p&&(p={top:10,right:10});let g="";{let e=Ie(p,"top",""),t=Ie(p,"bottom",""),n=Ie(p,"left",""),r=Ie(p,"right","");as(e)&&(e=`top:${e}px;`),as(t)&&(t=`bottom:${t}px;`),as(n)&&(n=`left:${n}px;`),as(r)&&(r=`right:${r}px;`),g=`position:absolute; ${e} ${r} ${t} ${n}`}let m=`alt-${Qu()}`,A=`alt-${Qu()}`,y=`\n <div \n style="display:inline-block; color:${c}; background:${l}; border:${u}px solid ${f}; border-radius:${d}px; box-shadow:${h};"\n onmouseenter="ttWAlertFadeIn('${A}')"\n onmouseleave="ttWAlertFadeOut('${A}')"\n >\n <div style="position:relative; ${a}">\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="${A}" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel('${m}')"\n >\n ${Lu}\n </div>\n </div>\n\n </div>\n </div>\n `,v=document.createElement("div");v.id=m,v.style.position="fixed",v.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",v.style.zIndex=-1,v.style.opacity=.001,o.indexOf("-left")>=0?v.style.transform="translateX(-100%)":v.style.transform="translateX(100%)",v.innerHTML=y,document.querySelector("body").appendChild(v);let b=Gs();return function({id:e,position:t,time:n,pm:r}){Ru[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},Ou(),null===Hu&&(Hu=setInterval(()=>{mn(Ru,e=>{Date.now()-e.timeStart>e.timeShow&&(e.pm.resolve(),Pu(e.id))}),Ce(Ru)||(clearInterval(Hu),Hu=null)},50))}({id:m,position:o,time:i,pm:b}),b},e.domAppend=zu,e.domCancelEvent=$u,e.domCompareText=function(e,t,n,r,o={}){if(!wu(e))return Promise.reject("invalid ele");let i=Ie(o,"format");"side"!==i&&"line"!==i&&(i="side");let s="side"===i?"side-by-side":"line-by-line",a=Pf();Ee(t)||(t="Text");let c=ji(t,t,n,r),l=a.html(c,{drawFileList:!0,matching:"lines",outputFormat:s,...o});l=l.replace('<span class="d2h-file-list-title">Files changed (1)</span>',"");try{e.innerHTML=l}catch(e){console.log(e)}return{diff:c,html:l}},e.domConvertToPic=Mh,e.domConvertToPicDyn=async function(e,t={},n){return await Mh(e,t)},e.domDetect=function(e,t={}){let n=Ie(t,"timeInterval",null);$o(n)||(n=20);let r=Ie(t,"tolerancePixel",null);$o(r)||(r=1);let o,i=Ho(),s={offsetWidth:0,offsetHeight:0,clientWidth:0,clientHeight:0,windowWidth:0,windowHeight:0},a=Lo(s),c={width:"",height:""};if(!ls(e))return console.log("invalid f",e),null;o=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=a.offsetWidth-e.offsetWidth,o=a.offsetHeight-e.offsetHeight,l=Math.abs(n)>r,u=Math.abs(o)>r,f="";n>0?f="smaller":n<0&&(f="larger");let d="";if(o>0?d="smaller":o<0&&(d="larger"),c={width:f,height:d},l||u){let n={...a};setTimeout(()=>{e.offsetWidth>0&&e.offsetHeight>0&&(i.emit("resize",{sold:n,snew:e,smode:c,ele:t}),i.emit("resizeWithWindow",{sold:n,snew:e,smode:c,ele:t,from:"dom"}))},1)}s=a,a=e}},n);let l=e=>{i.emit("resizeWithWindow",{sold:s,snew:a,smode:c,from:"window"})};return window.addEventListener("resize",l),i.clear=()=>{clearInterval(o),window.removeEventListener("resize",l)},i},e.domDrag=function(e,t={}){if(!wu(e))return void console.log("ele is not a HTMLElement",e);let n=Ie(t,"attIdentify",null);Ee(n)||(n="dragid");let r=Ie(t,"attIndex",null);Ee(r)||(r="dragindex");let o=Ie(t,"attGroup",null);Ee(o)||(o="draggroup");let i=Ie(t,"group",null);Ee(i)||(i="group");let s=Ie(t,"previewOpacity",null);as(s)||(s=.4);let a=Ie(t,"previewDisabledOpacity",null);as(a)||(a=.2);let c=Ie(t,"previewBackground",null);Ee(c)||(c="white");let l=Ie(t,"previewBorderWidth",null);as(l)||(l=1);let u=Ie(t,"previewBorderColor",null);Ee(u)||(u="#f26");let f=Ie(t,"timeDragStartDelay",null);as(f)||(f=120);let d=`c${Qu(8)}`,h=i;e.setAttribute(o,h),e.setAttribute(n,d);let p=jh(h,d,{attIdentify:n,previewOpacity:s,previewBackground:c,previewBorderWidth:l,previewBorderColor:u}),g=function(e,t){let n=[];return{bind:function(){let r;r="mousedown";let o=function(n){t.dragStart({e:n,ele:e,name:"mousedown"})};e.addEventListener(r,o,!1),n.push({ele:e,name:r,f:o}),r="touchstart";let i=function(n){t.dragStart({e:n,ele:e,name:"touchstart"})};e.addEventListener(r,i,!1),n.push({ele:e,name:r,f:i}),r="touchmove";let s=function(e){t.dragMove({e:e,name:"touchmove"}),e.cancelable&&e.preventDefault()};e.addEventListener(r,s,!1),n.push({ele:e,name:r,f:s})},unbind:function(){mn(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(),Yh({gid:h,attGroup:o,attIndex:r,attIdentify:n,timeDragStartDelay:f,previewOpacity:s,previewDisabledOpacity:a});let m=Ho();return p.on(i+"-change",e=>{e.tarEid===d&&m.emit("change",e)}),p.on(i+"-start",e=>{e.tarEid===d&&m.emit("start",e)}),p.on(i+"-move",e=>{e.tarEid===d&&m.emit("move",e)}),p.on(i+"-enter",e=>{e.tarEid===d&&m.emit("enter",e)}),p.on(i+"-leave",e=>{e.tarEid===d&&m.emit("leave",e)}),p.on(i+"-drop",e=>{e.tarEid===d&&m.emit("drop",e)}),m.setIsActive=function(e){zh[h].isActive=e},m.unbind=function(){g.unbind(),function(e,t){let n=zh[e],r=Lo(n.eleIds);Th(r,t),n.eleIds=r,0===r.length&&(n.oevg.unbind(),n.pv.clear(),delete zh[e])}(h,d)},m},e.domDragBarAndScroll=function(e,t,n={}){let r=null,o=null,i=null,s=null,a=null,c=null,l=null,u=null,f=null,d=null,h=null,p=null,g=null,m=null,A=null,y=!1,v=Ie(n,"getHeighRatio",null);R(v)||(v=()=>1);let b=Ie(n,"getWidthRatio",null);R(b)||(b=()=>1);let I=Ie(n,"stopScrollPropagationForPanel",null);or(I)||(I=!1);let w=Ie(n,"stopTouchDragPropagationForPanel",null);or(w)||(w=!1);let x=Ie(n,"useTouchDragForPanel",null);or(x)||(x=!0);let C=e,B=t,E=Ho();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}),I&&$u(e)},C.addEventListener("wheel",r),o=e=>{if(x){let t=Ie(e,"touches.0.clientY",0),n=Ie(e,"touches.0.clientX",0),r=-t*v(),o=-n*b();y=!0,E.emit("pressBar",{clientY:r,clientX:o}),w&&$u(e)}},C.addEventListener("touchstart",o),i=e=>{if(x&&y){let t=Ie(e,"touches.0.clientY",0),n=Ie(e,"touches.0.clientX",0),r=-t*v(),o=-n*b();E.emit("dragBar",{clientY:r,clientX:o}),w&&$u(e)}},C.addEventListener("touchmove",i,{passive:!1}),s=e=>{x&&y&&(y=!1,E.emit("freeBar"),w&&$u(e))},C.addEventListener("touchend",s),a=e=>{y=!0,E.emit("pressBar",{clientY:e.clientY,clientX:e.clientX})},B.addEventListener("mousedown",a),c=e=>{y&&(y=!1,E.emit("freeBar"))},B.addEventListener("mouseup",c),l=e=>{y=!0,E.emit("pressBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX})},B.addEventListener("touchstart",l),u=e=>{y&&(E.emit("dragBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX}),$u(e))},B.addEventListener("touchmove",u,{passive:!1}),f=e=>{y&&(y=!1,E.emit("freeBar"))},B.addEventListener("touchend",f),d=e=>{y&&E.emit("dragBar",{clientY:e.clientY,clientX:e.clientX})},window.addEventListener("mousemove",d),h=e=>{y&&(y=!1,E.emit("freeBar"),I&&$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}),A=e=>{},document.addEventListener("wheel",A,{passive:!1}),E.clear=function(){C.removeEventListener("wheel",r),C.removeEventListener("touchstart",o),C.removeEventListener("touchmove",i),C.removeEventListener("touchend",s),B.removeEventListener("mousedown",a),B.removeEventListener("mouseup",c),B.removeEventListener("touchstart",l),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",A)},E},e.domDragPreview=Ph,e.domDropFiles=function(e){let t=!1,n=!1,r=Ho();function o(e){$u(e),n=!0,!1===t&&(t=!0,r.emit("dropIn",{ev:e}))}function i(e){$u(e),n=!1,setTimeout(function(){n||(t=!1,r.emit("dropOut",{ev:e}))},100)}function s(e){o(e)}function a(e){i(e)}function c(e){function t(){i(e)}o(e),Jh(e.dataTransfer).then(n=>{let o=rs(n.entries,{type:"file"});r.emit("getFiles",{ev:e,files:n.files,filesTree:o,entries:n.entries,cb:t})}).catch(e=>{r.emit("error",e)})}return e.addEventListener("dragenter",s,!1),e.addEventListener("dragover",s,!1),e.addEventListener("dragleave",a,!1),e.addEventListener("drop",c,!1),r.off=function(){e.removeEventListener("dragenter",s,!1),e.removeEventListener("dragover",s,!1),e.removeEventListener("dragleave",a,!1),e.removeEventListener("drop",c,!1)},r},e.domElementsFromPoint=Rh,e.domFadeIn=Mu,e.domFadeOut=Tu,e.domFind=Wh,e.domFinds=Dh,e.domGetAttr=Hh,e.domGetBoudRect=qh,e.domGetBoudRectRefSelf=Oh,e.domGetFileAccept=rp,e.domGetFiles=op,e.domGetParents=Lh,e.domGetPointFromEvent=Uh,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 o=Lh(e);for(let e=0;e<o.length;e+=1)if(r(o[e]))return o[e];return document.scrollingElement||document.documentElement},e.domGetWindowSize=function(){let e=_c();return{width:(()=>{let t=[Ie(e,"innerWidth"),Ie(e,"document.documentElement.clientWidth"),Ie(e,"document.body.clientWidth")];return t=rs(t,as),ap(t)})(),height:(()=>{let t=[Ie(e,"innerHeight"),Ie(e,"document.documentElement.clientHeight"),Ie(e,"document.body.clientHeight")];return t=rs(t,as),ap(t)})()}},e.domIsClientXYIn=function(e,t,n){if(!as(e))return void console.log("clientX is not a number",e);if(!as(t))return void console.log("clientY is not a number",t);if(!wu(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 o=!1;try{o=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 o},e.domIsFocused=xu,e.domIsStable=function(e,t={}){if(!wu(e))return Promise.reject("invalid element");if(!ls(e.getBoundingClientRect))return Promise.reject("invalid element.getBoundingClientRect");let n=Ie(t,"mode","");"promise"!==n&&"event"!==n&&(n="promise");let r=Ie(t,"tolerance",0),o=Ie(t,"timeDiff",100),i=Ie(t,"timeDetect",50),s=()=>{let t=e.getBoundingClientRect();return{x:t.left,y:t.top,w:t.width,h:t.height}},a=()=>{try{return e.getAnimations({subtree:!0})}catch(e){return[]}},c=async()=>{let e=Gs();try{let t=s();await ua(o);let n=((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)(t,s());await Promise.allSettled(a().map(e=>e.finished));let i=0===a().length,c=n&&i;e.resolve(c)}catch(t){e.reject(t)}return e},l=()=>{let t=Ho(),n=!1,r=null,o=null,s=!1;return t.create=()=>{r=setInterval(()=>{n=(e=>{let n=!1;if(!wu(e))return n;try{let e=!1,r=!1;o=setInterval(()=>{s?clearInterval(o):e||(e=!0,c().then(e=>{s||r!==e&&(r=e,t.emit("stable",e))}).catch(()=>{}).finally(()=>{e=!1}))},i),n=!0}catch(e){}return n})(e),n&&clearInterval(r)},50)},t.dispose=()=>{let e=!1;try{clearInterval(r),clearInterval(o),s=!0,e=!0}catch(e){}return e},t},u=null;return"promise"===n?u=c():"event"===n&&(u=l()),u},e.domIsVisible=function(e,t={}){if(!wu(e))return Promise.reject("invalid element");if(cp())return Promise.reject("invalid IntersectionObserver");let n=Ie(t,"mode","");"promise"!==n&&"event"!==n&&(n="promise");let r=()=>{let t=Ho(),n=!1,r=null,o=!1,i=new IntersectionObserver(e=>{if(o)return;let n=e[0].isIntersecting;t.emit("visible",n)});return t.create=()=>{r=setInterval(()=>{o?clearInterval(r):(n=(e=>{let t=!1;if(!wu(e))return t;try{i.observe(e),t=!0}catch(e){}return t})(e),n&&clearInterval(r))},50)},t.dispose=()=>{let e=!1;try{clearInterval(r),i.disconnect(),o=!0,e=!0}catch(e){}return e},t},o=null;return"promise"===n?o=(()=>{let t=Gs();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&&(o=r()),o},e.domPrepend=Qh,e.domRemove=Nh,e.domRenderMarkdownMind=lp,e.domRenderMarkdownMindDyn=async function(e,t,n={},r){return Dn(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 nl(r),lp(e,t,n)},e.domRipple=function(e,t,n={}){let r=Ie(n,"timeDuration",null);$o(r)||(r=1e3);let o=Ie(n,"color",null);if(Ee(o)||(o="rgba(255, 255, 255, 0.5)"),!wu(e))return;e.style.position="relative",e.style.overflow="hidden";let i=e.getBoundingClientRect(),s=t.clientX-i.left,a=t.clientY-i.top,c=2*Math.max(e.clientWidth,e.clientHeight),l=document.createElement("div");l.style.width=`${c}px`,l.style.height=`${c}px`,l.style.transition=`all ${r/1e3}s linear`,l.style.position="absolute",l.style.zIndex=1,l.style.left=`${s}px`,l.style.top=`${a}px`,l.style.borderRadius="50%",l.style.transformOrigin="center",l.style.transform="translate(-50%,-50%) scale(0)",l.style.background=o,l.style.userSelect="none",l.style.pointerEvents="none",e.appendChild(l),setTimeout(()=>{l.style.transform="translate(-50%,-50%) scale(2)",l.style.opacity=0},1),setTimeout(()=>{Nh(l)},r)},e.domScrollIntoView=function(e,t={}){if(!wu(e))return;xe(t)||(t={});let n={behavior:"smooth"};n={...n,...t},ju()&&Kp(),e.scrollIntoView(n)},e.domScrollTo=function(e,t={}){if(!wu(e))return;xe(t)||(t={});let n={behavior:"smooth"};n={...n,...t},ju()&&Kp(),e.scrollTo(n)},e.domSetAttr=function(e,t,n){if(!wu(e))return null;if(!Ee(t))return null;if(!Ee(n)&&!Se(n))return null;try{return e.setAttribute(t,n),e.getAttribute(t)}catch(e){}return null},e.domShowImages=sg,e.domShowImagesDyn=async function(e,t=null,n={},r){return Dn(r)||(r=["https://cdn.jsdelivr.net/npm/viewerjs@1.11.7/dist/viewer.min.css","https://cdn.jsdelivr.net/npm/viewerjs@1.11.7/dist/viewer.min.js"]),await nl(r),sg(e,t,n)},e.domShowInputAndGetFiles=cg,e.domShowInputAndGetFilesU8Arrs=function(e={}){let t=Ie(e,"kind","*"),n=Ie(e,"multiple");ir(n)||(n=!1);let r=Ie(e,"entireHierarchy");ir(r)||(r=!1);let o=Ie(e,"sizeMbLimit");Se(o)||(o=1e3),o=wr(o);let i=Gs(),s=[];return cg({kind:t,multiple:n,entireHierarchy:r,sizeMbLimit:o}).then(function(e){let t=Gs(),n=Ie(e,"errs",{}),r=Ie(e,"files",[]);return Ce(n)?t.reject(n):t.resolve(r),t}).then(function(e){return mn(e,function(e){s.push({name:e.name,size:e.size,type:e.type})}),Ks(e)}).then(function(e){mn(e,function(e,t){s[t].u8a=e}),i.resolve(s)}).catch(function(e){i.reject(e)}),i},e.domShowInputDatatime=function(e,n={}){let r=Ie(n,"type","");"date"!==r&&"datetime-local"!==r&&(r="datetime-local");let o=Ie(n,"eleRef",null);wu(o)||(o=document.activeElement);let i=Gs(),s="drf"+Qu(),a="GrpDomShowDatatime";Nh(`[name=${a}]`);let c=!1,l="";if("date"===r)ku(e)&&(c=!0,l=e);else if(lg(e)){c=!0,l=t(e).format("YYYY-MM-DDTHH:mm")}Ee(l)&&(l=`value="${l}"`);let u=document.createElement("div");u.setAttribute("name",a),u.style.width=0,u.style.height=0,u.style.overflow="hidden",u.innerHTML=`\n <div style="transform:translateY(-100%);">\n <input id="${s}" type="${r}" style="opacity:0;" ${c?l:""} />\n </div>\n `;let f=null;wu(o)?o.parentNode.insertBefore(u,o.nextSibling):document.querySelector("body").appendChild(u);let d=!1;function h(){if(!d){d=!0;try{f.removeEventListener("change",g,!0),o.removeEventListener("focusout",m,!0)}catch(e){}if(Nh(`[name=${a}]`),Ee(p)){let e="";e="date"===r?p:`${p}:00`,i.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=Wh("#"+s),f.addEventListener("change",g,!0),f.showPicker()},1),o.addEventListener("focusout",m,!0),i},e.domTooltip=function(e,t,n={}){let r=null,o=null;function i(){null!==r&&r.destroy(!0),e.setAttribute("tippystate",""),clearInterval(o)}let s={arrow:!0,theme:"dark",placement:"bottom",delay:150};n=Ce(n)?ig(s,n):s;let a=t;t||(a=e.innerHTML);let c=Se(e.getAttribute("tippystate"));if(e.setAttribute("tippystate","5"),c)return;a=`<div style="text-align:left;">${a}</div>`;let l=bA;bA.default&&(l=bA.default),r=l(e,{...n,content:a,allowHTML:!0,onHidden(){i()},onDestroy(){r=null,i()}}),r.show(),o=setInterval(()=>{let t=e.getAttribute("tippystate");Se(t)?(t=jo(t),t-=1,e.setAttribute("tippystate",t),t<=0&&i()):i()},1e3)},e.domTriggerEvent=ag,e.domVirtualCreate=wA,e.domVirtualCreateQueue=function(){return new function(){let e=FA(1);return async function(t,n={}){return e(wA,t,n)}}},e.downloadExcelFileFromData=RE,e.downloadExcelFileFromDataDyn=async function(e,t="data",n,r){let o=await RE(e,t,n);return""!==Ie(o,"error","")?Promise.reject(o.error):o},e.downloadFileFromB64=function(e,t){if(!Vs())return void console.log("no window");if(!Ee(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=kA,e.downloadFileFromText=function(e,t,n=!0){if(!Vs())return void console.log("no window");if(!Ee(e))return void console.log("invalid filename");if(!Be(t))return void console.log("invalid content");if(!ir(n))return void console.log("withBOM is not a boolean");let r;r=n?new Blob(["\ufeff",t]):new Blob([t]),kA(e,r)},e.downloadFileFromU8Arr=function(e,t){if(!Vs())return void console.log("no window");if(!Ee(e))return void console.log("no filename");if(!zs(t))return void console.log("no data");kA(e,HE(t))},e.dtmapping=qE,e.dtpick=OE,e.estimateTicks=function(e,t,n={}){if(!Se(e))throw new Error("rmin is not a number");if(e=wr(e),!Se(t))throw new Error("rmax is not a number");if(e===(t=wr(t))){let t=null;t=0===e?1:Math.abs(e/10);let n=zE(t,{returnDigit:!0});return t=PE(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=Ie(n,"testTickNums");Dn(r)||(r=[3,4,5]);let o=e,i=t,s=jE(o),a=jE(i),c=Math.max(s.r,a.r),l=Math.log10(c),u=o/c,f=i/c,d=(u+f)/2,h=f-u,p=[];mn(r,e=>{let t=h/(e-1),n=zE(t,{returnDigit:!0});n=Math.min(n,2),mn(_o(n,-1,-1),n=>{let r=n-l;r=Math.max(r,0);let o=Jc(t,n),i=o-1/Math.pow(10,n);i=PE(i,n);let s=o+1/Math.pow(10,n);s=PE(s,n);let a=[i,o,s];a=rs(a,e=>e>0);let g=PE(d,n),m=g-1/Math.pow(10,n);m=PE(m,n);let A=g+1/Math.pow(10,n);A=PE(A,n);let y=[m,g,A];mn(a,t=>{let o=c*t;o=PE(o,r),mn(y,i=>{let s=[],a=[];{let o=i-(e-1)/2*t;for(let i=0;i<e;i++){let e=o+i*t;e=PE(e,n),s.push(e);let l=c*e;l=PE(l,r),a.push(l)}}let l=(d=s)&&d.length?d[0]:void 0;var d;let g=ys(s);if(l>u||g<f)return!0;let m=(u-l)/h,A=(g-f)/h,y=(m+A)/2,v=0;mn(a,e=>{xr(e)&&v++});let b=v/e,I=0;mn(s,e=>{0===e&&I++});let w=I/e,x=0;mn(s,e=>{.5===e&&x++});let C=x/e,B=0;mn(s,e=>{1===e&&B++});let E=B/e,F={diff:y,rngCenter:i,numInt:v,ratInt:b,num0:I,rat0:w,num5:x,rat5:C,num10:B,rat10:E,overMin:m,overMax:A,fitness:y+.2*n+.1*e+1.5*m+1.5*A+(1-.25*b)+(1-.4*w)+(1-.3*C)+(1-.3*E),idg:n,tickNum:e,_tickDig:n,_tickInterval:t,_tickPositions:s,tickDig:r,tickInterval:o,tickPositions:a};p.push(F)})})})}),p=ks(p,"fitness");let g=Ie(p,0);return{tickNum:g.tickNum,tickInterval:g.tickInterval,tickPositions:g.tickPositions,tickDig:g.tickDig}},e.evem=Ho,e.execCli=async function(e,t=[],n={}){if(!Ee(e))return{ok:!1,stdout:"",stderr:"",code:null,error:"command 須為非空字串",durationMs:0,attempts:0};we(t)||(t=[]),xe(n)||(n={});let{maxRetries:r=0,retryDelayMs:o=5e3,...i}=n,s=Ie(i,"cwd",null);Ee(s)?i.cwd=s:i.cwd=process.cwd();let a=Ie(i,"input",null);Ee(a)?i.input=a:i.input=void 0;let c=Ie(i,"env",null);xe(c)?i.env=c:i.env=void 0;let l=Ie(i,"validate",null);ls(l)||Ee(l)?i.validate=l:i.validate=void 0;let u=Ie(i,"onStdout",null);ls(u)?i.onStdout=u:i.onStdout=void 0;let f=Ie(i,"onStderr",null);ls(f)?i.onStderr=f:i.onStderr=void 0,r=di(r)?jo(r):0,o=$o(o)?jo(o):5e3;let d=Ie(i,"timeoutMs",null);$o(d)?i.timeoutMs=jo(d):i.timeoutMs=12e4;let h,p=Ie(i,"maxBuffer",null);$o(p)?i.maxBuffer=jo(p):i.maxBuffer=10485760;let g=0;for(let n=0;n<=r;n++){if(n>0){let e=Math.min(o*n,15e3);await ua(e)}if(h=await ZE(e,t,i),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.execJsCode=async function(e,t={}){e=o.resolve(e);let n=(await import(a.pathToFileURL(e).href)).default;if(!ls(n))throw new Error(`the default export of [${e}] is not a function`);return await n(t)},e.execProcess=function(e,t,n={}){if(!Dn(t)&&!Ee(t))throw new Error("args is not an effective array or string");Ee(t)&&(t=[t]);let o=Ie(n,"mode");"spawn"!==o&&"exec"!==o&&"execFile"!==o&&(o="spawn");let i=Ie(n,"cbStdout"),s=Ie(n,"cbStderr"),a=Ie(n,"codeCmd");Ee(a)||(a="utf8");let c=Ie(n,"useChcp");ir(c)||(c=!1);let l=Ie(n,"timeout");(!Se(l)||l<=0)&&(l=null);let u=Gs();if(!cs(o,["spawn","exec","execFile"]))return u.reject(`invalid mode[${o}]`),u;let f=null,d="";try{if("spawn"===o){let n=Zi(e,1),o=es(e,1);if('"'===n||'"'===o||"'"===n||"'"===o)throw new Error("prog of spawn doens not need to add quotes");f=r.spawn(e,t,{windowsHide:!0,shell:!1})}else if("exec"===o){let n="";c&&(n="cmd /c chcp 65001>nul &&"),f=r.exec(`${n} ${e} ${t.join(" ")} & exit`,{windowsHide:!0,encoding:a})}else"execFile"===o&&(f=r.execFile(e,t,{windowsHide:!0,encoding:a}))}catch(e){return u.reject(e),u}f.stdout.on("data",e=>{let t="";t="spawn"===o?e.toString(a):e.toString(),d+=t+"\n",ls(i)&&i(t)}),f.stderr.on("data",e=>{let t="";t="spawn"===o?e.toString(a):e.toString(),d+=t+"\n",ls(s)&&s(t)});let h=null,p=!1;return null!==l&&(h=setTimeout(()=>{p=!0,f&&f.pid&&_E(f.pid).catch(()=>{})},l)),f.on("close",e=>{null!==h&&clearTimeout(h),p?u.reject(`timeout[${l}ms]:\n${d}`):0!==e?u.reject(`code[${e}]:\n${d}`):u.resolve(d)}),f.on("error",e=>{null!==h&&clearTimeout(h),u.reject(e)}),u},e.execProcessKillPid=_E,e.filepathToTree=function(e,t={}){if(!Dn(e))return{};let n=Ie(t,"delimiter");Ee(n)||(n="❯");let r=Ie(t,"bindRoot");Ee(r)||(r="");let o=Ee(r),i="";i=o?r:"root";let s=Ie(t,"soryItems"),a=yn(e,(e,t)=>{"folder"!==e.type&&"file"!==e.type&&(e.type="file");let r=(e=>{let t=Ki(e=(e=e.replace(/\\\\/g,"\\")).replace(/\\/g,"/"),"/");return{ss:t,cfp:gi(t,n)}})(e.path);return{ind:t,type:e.type,ss:r.ss,data:Lo(e)}}),c=e=>{let t=rr(e),r=[];for(let o=0;o<t;o++){let t=[];for(let n=0;n<=o;n++)t.push(e[n]);let i=gi(t,n);r.push({id:i,name:e[o]})}return r},l=-1,u=[],f={};mn(a,e=>{let t=null;t=[i];let r=null;r=i;let o=rr(e.ss)-1;mn(e.ss,(i,s)=>{let a=s<o||"folder"===e.type;t.push(i);let d=null,h=null;s===o&&(d=e.ind,h=e.data);let p=gi(t,n),g=c(t);if(De(f,p)){let t=f[p],n="folder"===Ie(t,"_type","");if(!n&&a)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] is unrecognized from a file to folder`);if(!n&&!a)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] get repeat data from two files`);if(n&&!a)throw console.log("kpLv[id]",t),console.log("v",e),new Error(`id[${p}] is unrecognized from a folder to file`);if(Ce(f[p].data)&&Ce(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&&Ce(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{l++;let e=l,n=null;n=a?{_indOri:d,_indNormalize:e,ns:rr(t),ts:Lo(t),pathInfors:g,_type:"folder",type:"array",numOfChilren:-1,id:p,parentId:r,text:i,children:[],data:h}:{_indOri:d,_indNormalize:e,ns:rr(t),ts:Lo(t),pathInfors:g,_type:"file",type:"node",numOfChilren:-1,id:p,parentId:r,text:i,data:h},f[p]=n,u.push({...Ie(f[p],"data",{}),type:f[p]._type,path:"/"+gi(t,"/")})}r=p})});let d=nF(f);if(d=ks(d,"id"),d=ks(d,"ns"),ls(s)){let e=[];mn(lF(d,"ns"),(t,n)=>{mn(lF(t,"parentId"),(t,r)=>{let o=s(t,r,n);e=[...e,...o]})}),d=e}let h=[],p=[];mn(d,e=>{"folder"===e._type?h.push(e):p.push(e)});let g=lF(h,"ns"),m=lF(p,"ns"),A=tF(yn(h,"ns")),y=tF(yn(p,"ns")),v=null;{let e=[i];v=[{_indOri:null,_indNormalize:null,ns:rr(e),ts:Lo(e),pathInfors:c(e),_type:"folder",type:"array",numOfChilren:-1,id:i,parentId:"",text:i,children:[],data:null}]}let b={};b[i]="0.children";let I={};I[i]="0";for(let e=2;e<=A;e++){mn(g[e],e=>{let t=Ie(b,e.parentId,"");if(!Ee(t))throw console.log("kpPathFd",b),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in folder`);let n=Ie(v,t);if(we(n)||lu(v,t,[]),n=Ie(v,t),!Ce(Zh(n,{id:e.id}))){n.push({...e,children:[]});let r=`${t}.${rr(n)-1}`;b[e.id]=`${r}.children`,I[e.id]=r}})}let w=Lo(v),x={};for(let e=2;e<=y;e++){mn(m[e],e=>{let t=Ie(b,e.parentId,"");if(!Ee(t))throw console.log("kpPathFd",b),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in file`);let n=Ie(v,t);if(!we(n))throw console.log("treeItems",v),console.log("k",t),console.log("v",e),new Error("無預先建置資料夾");if(!Ce(Zh(n,{id:e.id}))){n.push(e);let r=`${t}.${rr(n)-1}`;x[e.id]=r,I[e.id]=r}})}return{treeItems:v,treeItemsFolder:w,kpPath:I,fpsNormalize:u}},e.files2data=function(e){let t=Gs(),n=yn(e,function(e){return{name:e.name,size:e.size,type:e.type}});return Xs(e).then(function(e){let r=yn(e,function(e){return{b64:e}}),o=uF(n,r);t.resolve(o)}),t},e.flattenToConn=Iu,e.flattenTree=function(e,t={}){if(we(e)){if(0===e.length)return[]}else{if(!xe(e))return[];if(En(e))return[]}let n=Ie(t,"bindKey",null);Ee(n)||(n="id");let r=Ie(t,"bindChildren",null);Ee(r)||(r="children");let o=!1;xe(e)&&(o=!0,e=[e]);let i=[];return bu(e,(e,t,o)=>{let s=Ie(e,n,null),a=Ie(e,r,null);if(s){let n=function(e){let t=[e[0]];for(let n=1;n<e.length;n++){let o=e[n];t.push(r),t.push(o)}return t}([...o,t]);if(i.push({...e,level:(rr(n)-1)/2,nk:n}),a)return a}}),o&&(i=i[0]),i},e.floor=function(e,t=0){return di(t)||(t=0),t=jo(t),Se(e)?new Vc(e).toDecimalPlaces(t,Vc.ROUND_FLOOR).toNumber():""},e.fsBuildReadStreamText=function(e){if(!VE(e))throw new Error("fp is not a file");let t=Ho(),n=i.createReadStream(e,{encoding:"utf8"});return t.emit("create"),c.createInterface({input:n,crlfDelay:1/0}).on("line",e=>{t.emit("line",e)}),n.on("close",()=>{t.emit("close")}),t},e.fsBuildWriteStreamText=function(){let e=null;return{create:t=>{let n=Gs();return e=i.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=Gs();return e.on("close",()=>{t.resolve()}),e.end(),t}}},e.fsCleanFolder=function(e){return hF(e,{path:o,fs:i})},e.fsCleanFolderCore=hF,e.fsCopyFile=function(e,t,n={}){return pF(e,t,{path:o,fs:i,...n})},e.fsCopyFileCore=pF,e.fsCopyFolder=function(e,t,n={}){return mF(e,t,{path:o,fs:i,...n})},e.fsCopyFolderCore=mF,e.fsCreateFile=function(e,t,n={}){return bF(e,t,{fs:i,...n})},e.fsCreateFileCore=bF,e.fsCreateFolder=IF,e.fsCreateFolderCore=dF,e.fsDeleteFile=function(e){return wF(e,{fs:i})},e.fsDeleteFileCore=wF,e.fsDeleteFileSafe=async function(e,t={}){return await xF(e,{fs:i,...t})},e.fsDeleteFileSafeCore=xF,e.fsDeleteFolder=BF,e.fsDeleteFolderCore=CF,e.fsDeleteFolderSafe=async function(e,t={}){return await EF(e,{fs:i,...t})},e.fsDeleteFolderSafeCore=EF,e.fsDownloadFile=async function(e,t){return FF(e,t,{fs:i,Readable:l.Readable})},e.fsDownloadFileCore=FF,e.fsEvem=function(e={}){let t=Ie(e,"fd");Ee(t)||(t="./_evps");let n=Ie(e,"polling");ir(n)||(n=!1);let r=Ie(e,"timeInterval");$o(r)||(r=100),r=jo(r);let s=Ie(e,"timeBinaryInterval");$o(s)||(s=300),s=jo(s);let a=Ie(e,"keySys");Ee(a)||(a="[::pkg_content::]"),DF(t)||IF(t);let c=NF(t,{polling:n,timeInterval:r,timeBinaryInterval:s});c.on("change",e=>{if("add"!==e.type&&"change"!==e.type)return;let t=SF(e.fp),n="";try{n=i.readFileSync(e.fp,"utf8"),n=Os(n)}catch(e){}Ce(n)&&l.emit(t,{[a]:n})});let l=new u.EventEmitter,f=l.emit;return l.emit=function(e,n){let r=!1;if(Ce(n)&&(r=De(n,a)),r){let t=Ie(n,a,null),r=Ie(t,"pkg",""),o=Ie(t,"time","");return f.call(this,e,r,o)}((e,n)=>{let r=o.resolve(t,e);Be(n)||(n=sr(n)),i.writeFileSync(r,n,"utf8")})(e,{pkg:n,time:kF()})},l.clear=()=>{c.clear(),BF(t)},l},e.fsExists=function(e){return YE(e,{fs:i})},e.fsExistsCore=YE,e.fsGetFileBasicHash=function(e,t={}){return QF(e,{fs:i,crypto:d,...t})},e.fsGetFileBasicHashCore=QF,e.fsGetFileHash=function(e,t={}){return UF(e,{fs:i,crypto:d,...t})},e.fsGetFileHashCore=UF,e.fsGetFileXxHash=function(e,t={}){return LF(e,{fs:i,...t})},e.fsGetFileXxHashCore=LF,e.fsGetFilesInFolder=function(e,t=1){return HF(e,t,{path:o,fs:i})},e.fsGetFilesInFolderCore=HF,e.fsGetFilesWithHashInFolder=OF,e.fsGetFilesWithHashInFolderCore=qF,e.fsGetFolderBasicHash=function(e,t={}){return PF(e,{path:o,fs:i,crypto:d,...t})},e.fsGetFolderBasicHashCore=PF,e.fsGetFoldersInFolder=function(e,t=1){return zF(e,t,{path:o,fs:i})},e.fsGetFoldersInFolderCore=zF,e.fsIsFile=VE,e.fsIsFileCore=GE,e.fsIsFolder=DF,e.fsIsFolderCore=fF,e.fsMergeFiles=async function(e,t,n={}){return jF(e,t,{fs:i,...n})},e.fsMergeFilesCore=jF,e.fsReadJson=function(e){let t=null,n=JE(e,{fs:i});if(n.error)return n;let r=n.success,o=null;try{o=JSON.parse(r)}catch(e){t=e}return null!==t?{error:t}:{success:o}},e.fsReadText=WE,e.fsReadTextCore=JE,e.fsRenameFile=function(e,t){return $F(e,t,{fs:i})},e.fsRenameFileCore=$F,e.fsRenameFolder=function(e,t){return YF(e,t,{fs:i})},e.fsRenameFolderCore=YF,e.fsSrlog=function(e={}){let n=Ie(e,"fdSys","");Ee(n)||(n=o.resolve(),n=n.replaceAll("\\","/"));let r=Ie(e,"fdLog","");Ee(r)||(r="./syslog"),DF(r)||IF(r);let s=Ie(e,"dlm","");Ee(s)||(s="ꓹ");let a=Ie(e,"useTime",null);ir(a)||(a=!0);let c=Ie(e,"useLoc",null);ir(c)||(c=!0);let l=Ie(e,"useLocRela",null);async function u(e,n,...o){let l=(()=>{let e=t().format("YYYY-MM-DD");return`${r}/${e}.log`})(),u=yn(o,e=>{let t="";return t=xe(e)||we(e)?JSON.stringify(e):ir(e)?e?"true":"false":Ds(e),t}),f="";a&&(f=`[${e}]\n`,i.appendFileSync(l,f,"utf8")),c&&(f=`[${n}]\n`,i.appendFileSync(l,f,"utf8")),f=`${gi(u,`${s} `)}\n\n`,i.appendFileSync(l,f,"utf8")}return ir(l)||(l=!0),function(...e){let t="";a&&(t=kF());let r="",o="",i=[];if(c){if(i=Ki((new Error).stack,"\n"),mn(i,e=>{if((e=_i(e)).indexOf("file:")<0)return!0;if(e.indexOf("fsSrlog.mjs")>=0)return!0;return mn(Ki(e," "),e=>{if(e.indexOf("file:")>=0)return r=e,!1}),!Ee(r)&&void 0}),!Ee(r))throw console.log("stackLines",i),new Error("can not parse stackLines");"("===Zi(r,1)&&(r=ts(r,1)),")"===es(r,1)&&(r=Qs(r,1));try{r=decodeURIComponent(r)}catch(e){console.log(e)}o=r,o=ts(o,8),o=o.replace(n,"")}let s=[];a&&(s=[...s,`[${t}]`]);let f="";c&&(f=r,l&&(f=o),s=[...s,`[${f}]`]),s=[...s,...e],console.log(...s),u(t,f,...e)}},e.fsSyncFolder=function(e,t,n={}){return JF(e,t,{path:o,fs:i,crypto:d,...n})},e.fsSyncFolderCore=JF,e.fsTask=function(e,t={}){let n=Ie(t,"fdStorage","");Ee(n)||(n="./_tkfs");let r=Ie(t,"levelLimit","");$o(r)||(r=1),r=jo(r);let o=Ie(t,"typeHash","");Ee(o)||(o="md5");let s=Ie(t,"timeInterval");os(s)||(s=6e4),s=jo(s),IF(n);let a=Ho(),c=!1,l=`${n}/fpHash.json`,u=`${n}/fpResult.json`,f=async()=>{if(!0===c)return;let t=(()=>{let e={};try{e=Os(i.readFileSync(l,"utf8"))}catch(e){}return e})(),n=await(async()=>{let t={};return DF(e)?(mn(await OF(e,r,{type:o}),e=>{t[e.path]=e.hash}),t):t})(),s=yn(t,(e,t)=>({path:t,hash:e})),u=yn(n,(e,t)=>({path:t,hash:e}));mn(GF(s,u,"path").infor,(e,r)=>{if("same"===e)return!0;let o=Ie(t,r,""),s=Ie(n,r,""),u="";u="del"===e?o:s;let f=e,d=r,h=yF(r);c=!0;let p=Gs();return a.emit("change",{type:f,fp:d,fn:h,hash:u,pm:p}),p.then(()=>{let e=Lo(t);e[d]=n[d],(e=>{try{let t=sr(e);i.writeFileSync(l,t,"utf8")}catch(e){}})(e)}).finally(()=>{c=!1}),!1})},d=()=>{let e={};try{e=Os(i.readFileSync(u,"utf8"))}catch(e){}return e},h=(e={})=>{try{let t=sr(e);i.writeFileSync(u,t,"utf8")}catch(e){}},p=setInterval(()=>{f().catch(()=>{})},s);return a.getResult=(e,t)=>{let n=`${e}|${t}`,r=Ie(d(),n,[]);return we(r)||console.log(`result for key[${n}] is not an array`),r},a.getAndEliminateResult=(e,t)=>{let n=`${e}|${t}`,r=d(),o=Ie(r,n,[]);return we(o)||console.log(`result for key[${n}] is not an array`),r=((e,t)=>{let n={};return mn(e,(e,r)=>{Ie(Ki(r,"|"),0,"")!==t&&(n[r]=e)}),n})(r,e),h(r),o},a.setResult=(e,t,n)=>{we(n)||(console.log("result is not an array, default to []"),n=[]);let r=`${e}|${t}`,o=d();o[r]=n,h(o)},a.clear=()=>{clearInterval(p)},a},e.fsTaskCp=function(e,t,n={}){DF(e)||IF(e),DF(t)||IF(t);let r=`${e}/fpHash.json`,o=`${t}/fpHash.json`,s=e=>{let t={};try{t=Os(i.readFileSync(e,"utf8"))}catch(e){}return t},a=(e,t)=>{try{let n=sr(t);i.writeFileSync(e,n,"utf8")}catch(e){}},c=(e,t)=>Ie(s(e),t,""),l=(e,t,n)=>{let r=s(e);r[t]=n,a(e,r)},u=(e,t)=>{let n=s(e);De(n,t)&&delete n[t],a(e,n)},f=()=>s(r),d=e=>a(r,e),h=e=>c(r,e),p=()=>s(o),g=e=>a(o,e),m=e=>c(o,e),A=(e,t)=>l(o,e,t),y=e=>u(o,e),v=e=>{let t=[];return mn(e,(e,n)=>{t.push({fp:n,hash:e})}),t},b={buildSrc:()=>{let e=Ho();return e.set=(t,n)=>{((e,t)=>{l(r,e,t)})(t,n),e.emit("set",{type:"set",fp:t,hash:n})},e.get=h,e.remove=t=>{(e=>{u(r,e)})(t),e.emit("remove",{type:"remove",fp:t})},e.readKp=f,e.writeKp=d,e},buildTar:()=>{let e=Ho(),t=Su(300),n=WF(r);return n.on("change",n=>{t(()=>{(async()=>{let t=Gs(),n=f();if(!Ce(n))return t.resolve("no src"),t;let r=p(),o=v(n),i=GF(v(r),o,"fp",{withInfor:!1}),s=Gs();return s.then(e=>{g(n)}).catch(()=>{}),e.emit("change",{kpSrc:n,kpTar:r,kpCmp:i,pm:s}),t})().catch(()=>{})})}),e.set=A,e.get=m,e.remove=y,e.readKp=p,e.writeKp=g,e.clear=n.clear,e}};return b},e.fsTreeFolder=function(e,t=1){return RF(e,t,{path:o,fs:i})},e.fsTreeFolderCore=RF,e.fsTreeFolderWithHash=function(e,t=1,n={}){return VF(e,t,{path:o,fs:i,crypto:d,...n})},e.fsTreeFolderWithHashCore=VF,e.fsWatchFile=WF,e.fsWatchFolder=NF,e.fsWriteJson=function(e,t,n={}){let r=null;if(!xe(t)&&!we(t))return{error:"inp is not an object or array"};let o=Ie(n,"useFormat",null);ir(o)||(o=!1);let s="";try{s=o?JSON.stringify(t,null,2):JSON.stringify(t)}catch(e){r=e}return null!==r?{error:r}:_F(e,s,{fs:i})},e.fsWriteText=function(e,t){return _F(e,t,{fs:i})},e.fsWriteTextCore=_F,e.genGradientColor=function(e){if(Sn(e))return{};let t;try{t=cu.toRgba(e)}catch(e){return{}}function n(e,t){return e.a=t,cu.toRgbaString(e)}return{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,n(t,.4)],[1,n(t,.9)]]}},e.genID=Qu,e.genIDSeq=function(){return tk()},e.genPm=Gs,e.getBufferSize=ok,e.getClearPathName=AF,e.getCsvStrFromData=ik,e.getDataFromExcelFileU8Arr=ck,e.getDataFromExcelFileU8ArrDyn=async function(e,t,n){let r=await ck(e,t);return""!==Ie(r,"error","")?Promise.reject(r.error):r},e.getEnv=function(){let e=Vs(),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=function(e){let t="";if(fk(e))t=e.message;else{if(Be(e))return e;if(xe(e))return De(e,"message")?e.message:JSON.stringify(e);if(we(e))return JSON.stringify(e);t=Ds(e)}return t},e.getExcelU8ArrFromData=async function(e,t="data"){if(!Dn(e)){return{error:"no data"}}Ee(t)||(t="data");let n=null,r=DA(e,t);return De(r,"error")?r:(n=await UE(r),De(n,"error"),n)},e.getExcelU8ArrFromWorkbook=UE,e.getExcelWorkbookFromData=DA,e.getExcelWorkbookFromWorksheet=SA,e.getExcelWorksheetFromData=lr,e.getFileAccept=np,e.getFileBasicHash=qk,e.getFileHash=async function(e,t={}){if(!ra(e)&&!Hk(e))return console.log("inp",e),Promise.reject("inp is not a Blob or File");let n=Ie(t,"type","");Ee(n)||(n="sha512");let r=Ie(t,"chunkSize");return Se(r)||(r=67108864),r=wr(r),De({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?Ok(e,t):qk(e,t):Promise.reject(`type[${n}] must be one of [ 'md5', 'sha1', 'sha256', 'sha384', 'sha512', 'xxhash64' ]`)},e.getFileName=yF,e.getFileNameExt=function(e){if(!Ee(e))return"";let t=Mi(yF(e),".");if(rr(t)<=1)return"";let n="";try{n=ys(t)}catch(e){}return n},e.getFileTrueName=SF,e.getFileType=tp,e.getFileXxHash=Ok,e.getGlobal=_c,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=vF,e.getTimeBetween=function(e,t,n="days"){let r=$k(n);if(""===r)return[];let o=Yk(e,n),i=Yk(t,n);return null===o||null===i||e>=t?[]:yn(jk(i.diff(o,n)+1),function(e){return o.clone().add(e,n).format(r)})},e.getTimeFromUnit=$k,e.getTimeHp=Gk,e.getTimeObject=Yk,e.getTimeRange=function(e,n){if(!lg(e))return"無起始時間";if(void 0===n&&(n=e),!lg(n))return"結束時間格式錯誤";let r=t(e,"YYYY-MM-DDTHH:mm:ss"),o=t(n,"YYYY-MM-DDTHH:mm:ss"),i=r.format("YYYY-MM-DD"),s=o.format("YYYY-MM-DD");if(i===s){let t=o.format("HH:mm");if(e===n)return Vk(e)+" 至 無";if(e<n)return Vk(e)+" 至 "+t;if(e>n)return Vk(e)+" 至 "+t+" (起始時間大於結束時間)"}else{if(i<s)return Vk(e)+" 至 "+Vk(n);if(i>s)return Vk(e)+" 至 "+Vk(n)+" (起始時間大於結束時間)"}return""},e.getUserAgent=Jk,e.getUserAgentDyn=async function(e=null,t){return Dn(t)||(t=["https://cdn.jsdelivr.net/npm/ua-parser-js@2.0.3/dist/ua-parser.min.js"]),await nl(t),Jk(e)},e.getltdtkeys=On,e.haskey=De,e.html2str=async function(e){if(!Ee(e))return"";let t=await async function(){let e="htmlToText";if(ls(Ie(m,e)))return m;if(ls(Ie(m,["default",e])))return m.default;let t=globalThis,n=null;if(await la(()=>(n=Ie(t,"ht",null),Ce(n)),{attemptNum:4e3,timeInterval:50}),ls(Ie(n,e)))return n;if(ls(Ie(n,["default",e])))return n.default;throw console.log("ht",m,"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 Ee(e)?ea.decode(e,t):""},e.htmlEncode=ta,e.importResources=nl,e.interp1=function(e,t,n={}){if(!we(e))return{err:"ps is not an array"};{let e=!Se(t),n=!we(t);if(e&&n)return{err:"px is not a number or an array"}}let r=function(e,t={}){if(rr(e)<=0)return[];let n=Ie(t,"keyX");Ee(n)||(n="x");let r=Ie(t,"keyY");Ee(r)||(r="y");let o=[];return mn(e,e=>{let t=null,i=null;we(e)&&rr(e)>=2?(t=Ie(e,0),i=Ie(e,1)):(t=Ie(e,n,null),i=Ie(e,r,null)),Se(t)&&Se(i)&&(t=yr(t),i=yr(i),o.push({x:t,y:i}))}),o}(e,n);if(Ie(r,"err"))return Ie(r,"err");if(0===rr(r))return{err:"ps(length=0) is not an effective array",ps:e,psEff:r};if(1===rr(r))return{err:"ps(length=1) is one point only",ps:e,psEff:r};let o=function(e){let t=!0,n=!0;for(let r=1;r<rr(e);r++){let o=e[r-1],i=e[r];if(t&&o.x>i.x&&(t=!1),n&&o.x<i.x&&(n=!1),o.x===i.x)return{err:`x can not be equal: i=${r}, x=${o.x}`}}return t?Xk:n?Kk:"no"}(r);if("no"===o)return{err:"psEff is not increasing or decreasing"};o===Kk&&(o=Xk,r=Bs(r));let i=!we(t);i&&(t=[t]);let s=function(e,t={}){if(rr(e)<=0)return[];let n=Ie(t,"keyX");Ee(n)||(n="x");let r=[];return mn(e,e=>{let t=null;t=Se(e)?yr(e):we(e)&&rr(e)>=1?Ie(e,0):Ie(e,n,null),Se(t)&&(t=yr(t),r.push({x:t}))}),r}(t,n),a=Ie(n,"mode");"linear"!==a&&"stairs"!==a&&"blocks"!==a&&(a="linear");let c,l=yn(s,(e,t)=>{let o=Ie(e,"x"),i=null;try{"linear"===a?i=function(e,t){let n=Zk(e,t);if(n!==Wk)return n;let r=null;for(let n=1;n<rr(e);n++){let o=e[n-1],i=e[n];if(o.x<=t&&t<=i.x){r=((t-o.x)*i.y+(i.x-t)*o.y)/(i.x-o.x);break}}return null===r?{err:_k}:r}(r,o):"blocks"===a?i=function(e,t){let n=Zk(e,t);if(n!==Wk)return n;let r=null;for(let n=1;n<rr(e);n++){let o=e[n-1],i=e[n],s=o.x,a=i.x;if(s<=t&&t<=a){r=i.y;break}}return null===r?{err:_k}:r}(r,o):"stairs"===a&&(i=function(e,t,n={}){let r=Ie(n,"xMin");if(as(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 o=Ie(n,"xMax");if(as(o)){if(o<e[rr(e)-1].x)return{err:`xMax=${o} < ps[size(ps)-1].x=${e[rr(e)-1].x}`};if(o===e[rr(e)-1].x);else{let t={x:o,y:e[rr(e)-1].y};e=[...e,t]}}let i=Zk(e,t);if(i!==Wk)return i;let s=null;for(let n=0;n<rr(e);n++){let r=Ie(e,n-1,null),o=Ie(e,n,null),i=Ie(e,n+1,null),a=o.x;r&&(a=(r.x+o.x)/2);let c=o.x;if(i&&(c=(i.x+o.x)/2),a<=t&&t<=c){s=o.y;break}}return null===s?{err:_k}:s}(r,o,n))}catch(e){i={err:e.toString()}}return i});return c=i?l[0]:l,c},e.isDate=function(e){let t=e;return Ee(e)&&(t=new Date(e)),Se(e)&&(t=wr(e),t=new Date(e)),t instanceof Date&&!isNaN(t)},e.isDev=function(){return!!location&&Ys(location.href,"localhost")},e.isEle=wu,e.isEleExistByID=function(e){return!!Ee(e)&&!(null===document.getElementById(e))},e.isEmail=function(e){return!!Ee(e)&&/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},e.isErr=fk,e.isIE=ju,e.isNarrow=function(e){if(!Vs())return!1;let t=window.innerWidth>0&&window.innerWidth<=1024,n=!1;if(e){let t=Ie(e,"clientWidth",0);n=t>0&&t<=700}return t||n},e.isStrHasCapital=rS,e.isStrHasLetter=oS,e.isStrHasLowerCase=iS,e.isStrHasNumber=sS,e.isStrHasSpace=aS,e.isStrHasSymbol=cS,e.isUserIdentify=function(e){let t=Gs();if(!Ee(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=Gs();return Ee(e)?(t.resolve(),t):(t.reject("請填入姓名"),t)},e.isUserPw=function(e,t={}){let n=[],r=Ie(t,"useKeyForError",null);ir(r)||(r=!1);let o=Ie(t,"useOnlyOneError",null);if(ir(o)||(o=!1),Be(e)||(r?n.push("keyInvalidPassword"):n.push("密碼非有效字串")),rr(n)>0)throw new Error(n[0]);let i=Ie(t,"numLenMin","");(!xr(i)||jo(i)<0)&&(i=8),i=jo(i);let s=Ie(t,"numLenMax","");if((!xr(s)||jo(s)<0)&&(s=30),s=jo(s),i>s&&(r?n.push("keyLimNumLenMinOrMax"):n.push("設定密碼最小長度大於最大長度")),rr(n)>0)throw new Error(n[0]);let a=Ie(t,"noSpace",null);if(ir(a)||(a=!0),a&&(aS(e)&&(r?n.push("keyLimHasSpace"):n.push("密碼不可包含空白字元")),o&&rr(n)>0))throw new Error(n[0]);let c=Ie(t,"onlyAscii",null);if(ir(c)||(c=!0),c&&(/[^\x20-\x7e]/.test(e)&&(r?n.push("keyLimNonAsciiChar"):n.push("密碼僅允許使用英文大小寫、數字及特殊符號")),o&&rr(n)>0))throw new Error(n[0]);if(rr(e)<i&&(r?n.push("keyLimNumLenMin"):n.push(`密碼長度須大於等於${i}個字元`)),o&&rr(n)>0)throw new Error(n[0]);if(rr(e)>s&&(r?n.push("keyLimNumLenMax"):n.push(`密碼長度須小於等於${s}個字元`)),o&&rr(n)>0)throw new Error(n[0]);let l=Ie(t,"requireLetter",null);ir(l)||(l=!1);let u=Ie(t,"requireUppercase",null);ir(u)||(u=!0);let f=Ie(t,"requireLowercase",null);ir(f)||(f=!0);let d=Ie(t,"requireDigit",null);ir(d)||(d=!0);let h=Ie(t,"requireSpecial",null);if(ir(h)||(h=!0),l&&!oS(e)&&(r?n.push("keyLimRequireLetter"):n.push("密碼須包含至少一個英文字母")),o&&rr(n)>0)throw new Error(n[0]);if(u&&!rS(e)&&(r?n.push("keyLimRequireUppercase"):n.push("密碼須包含至少一個大寫英文字母")),o&&rr(n)>0)throw new Error(n[0]);if(f&&!iS(e)&&(r?n.push("keyLimRequireLowercase"):n.push("密碼須包含至少一個小寫英文字母")),o&&rr(n)>0)throw new Error(n[0]);if(d&&!sS(e)&&(r?n.push("keyLimRequireDigit"):n.push("密碼須包含至少一個數字")),o&&rr(n)>0)throw new Error(n[0]);if(h&&!cS(e)&&(r?n.push("keyLimRequireSpecial"):n.push("密碼須包含至少一個特殊符號")),o&&rr(n)>0)throw new Error(n[0]);let p=Ie(t,"forbiddenChars",null);if(we(p)||(p=[]),rr(p)>0){for(let t of p)if(e.includes(t)){if(r){n.push("keyLimForbiddenChar");break}n.push(`密碼不可包含字元:${t}`)}if(o&&rr(n)>0)throw new Error(n[0])}let g=Ie(t,"commonPasswordBlacklist",null);if(we(g)||(g=pS),rr(g)>0){let t=e.toLowerCase();if(g.some(e=>Be(e)&&t===e.toLowerCase())&&(r?n.push("keyLimCommonPassword"):n.push("此密碼為常見弱密碼,不允許使用")),o&&rr(n)>0)throw new Error(n[0])}let m=Ie(t,"account",""),A=Ie(t,"noConsecutiveCharsFromAccount",null);ir(A)||(A=!1);let y=Ie(t,"consecutiveCharsMinMatch","");if($o(y)||(y=3),y=jo(y),A&&Be(m)&&rr(m)>=y){let t=[...m.toLowerCase()],i=e.toLowerCase(),s=!1;for(let e=0;e<=t.length-y;e++){let n=t.slice(e,e+y).join("");if(i.includes(n)){s=!0;break}}if(s&&(r?n.push("keyLimConsecutiveCharsFromAccount"):n.push(`密碼不可包含與帳號相同之${y}個以上連續字元`)),o&&rr(n)>0)throw new Error(n[0])}if(rr(n)>0)throw new Error(n.join(" | "));return!0},e.isWindow=Vs,e.isab=A,e.isarr=we,e.isarr0=kn,e.isbigint=Ss,e.isblob=ra,e.isbol=ir,e.isday=ku,e.isearr=Dn,e.iseobj=Ce,e.iser=Sn,e.isernot=_h,e.isestr=Ee,e.isfile=Hk,e.isfun=ls,e.isint=xr,e.ismonth=ur,e.isn0int=eS,e.isn0num=tS,e.isnan=ke,e.isnbr=Fe,e.isnint=BA,e.isnnum=function(e){return!!Se(e)&&wr(e)<0},e.isnull=Bn,e.isnum=Se,e.isobj=xe,e.isobj0=En,e.isp0int=di,e.isp0num=nS,e.ispint=$o,e.ispm=ca,e.ispnum=os,e.isstr=Be,e.isstr0=Fn,e.istime=lg,e.istimeTZ=hS,e.istimems=lS,e.istimemsTZ=dS,e.isu16arr=rk,e.isu8arr=zs,e.isundefined=Cn,e.j2o=Os,e.judge=function(e,t,n,r={}){if(!Se(e))throw new Error("x1 is not a number");if(!Se(n))throw new Error("x2 is not a number");let o=Ie(r,"withPreciseNum");if(ir(o)||(o=!0),o&&(e=zE(e),n=zE(n)),"==="===t)return e===n||gS(e,n);if("!=="===t)return function(e,t){return!gS(e,t)}(e,n);if(">="===t)return e===n||function(e,t){return new Vc(e).gte(t)}(e,n);if(">"===t)return function(e,t){return new Vc(e).gt(t)}(e,n);if("<="===t)return e===n||function(e,t){return new Vc(e).lte(t)}(e,n);if("<"===t)return function(e,t){return new Vc(e).lt(t)}(e,n);throw console.log(t),new Error(`invalid op[${t}]`)},e.keysmat2ltdt=mS,e.ltdt2vrtsable=function(e,t=[]){if(!Dn(e))return[];if(!we(t))return[];let n=!1;if(mn(e,function(e){Ce(e)||(n=!0)}),n)return[];let r=On(e),o=[];mn(e,function(e){let t={};mn(r,function(n){t[n]={value:e[n].value,style:e[n].style,rowspan:1}}),o.push(t)});let i=Bs(o),s=rr(i);return mn(r,function(e){if(cs(e,t)){let t=_o(0,s,0),n=_o(0,s,0),r=_o(1,s+1,0);mn(i,function(o,s){if(s>0){ss(i[s-1][e].value,i[s][e].value)&&(t[s-1]=1,t[s]=1,r[s]=r[s-1]+1),1===t[s-1]&&1===t[s]&&(n[s-1]=0,n[s]=1)}}),mn(i,function(o,s){1===t[s]&&(1===n[s]?i[s][e].rowspan=r[s]:i[s][e].rowspan=null)})}}),Bs(i)},e.ltdtDiff=function(e,t,n={}){if(!we(e))return{};if(!we(t))return{};if(0===rr(e)&&0===rr(t))return{};let r=Ie(n,"empty");Ee(r)||(r="∗empty∗");let o=On(e),i=On(t),s=AS(o,i),a={};mn(s,(e,t)=>{a[t]=e});let c=Wi(ar(e,s,{empty:r}),ar(t,s,{empty:r}),{...n,mode:"matrix"});return c.dfs=yn(c.dfs,e=>{let t={};mn(e,e=>{e.k=a[e.k],t[e.k]=e});let n={};return mn(s,e=>{n[e]=t[e]}),n}),c},e.ltdtDiffByKey=GF,e.ltdtkeys2mat=ar,e.ltdtkeysheads2mat=cr,e.ltdtmapping=function(e,t,n=""){return Dn(e)&&Dn(t)?yn(e,e=>qE(e,t,n)):[]},e.ltdtmerge=uF,e.ltdtpick=function(e,t){return Dn(e)&&Dn(t)?yn(e,e=>OE(e,t)):[]},e.ltdtpull=function(e,t,n){return we(e)&&we(t)&&Ee(n)&&hn(e,e=>xe(e))?0===t.length?e:hn(t,e=>xe(e))?vS(e,t,n):[]:[]},e.mat2ltdt=function(e){if(!Dn(e))return[];if(e.length<=1)return[];let t=!1;return mn(e,function(e){Dn(e)||(t=!0)}),t?[]:mS(Yi(e)[0],(r=null==(n=e)?0:n.length)?mi(n,1,r):[]);var n,r},e.matConcat=function(e,t){if(!we(e))return[];if(!we(t))return[];if(0===rr(e)&&0===rr(t))return[];let n=rr(e),r=rr(Ie(e,0,[])),o=rr(t),i=rr(Ie(t,0,[])),s=[],a=Math.max(n,o);for(let n=0;n<a;n++){let o=[],a=-1;for(let t=0;t<r;t++){a++;let r=Ie(e,`${n}.${t}`,null);o[a]=r}for(let e=0;e<i;e++){a++;let r=Ie(t,`${n}.${e}`,null);o[a]=r}s[n]=o}return s},e.matDiff=function(e,t,n={}){return we(e)&&we(t)?0===rr(e)&&0===rr(t)?{}:Wi(e,t,{...n,mode:"matrix"}):{}},e.matat=function(e,t,n){return Dn(e)?yn(e,function(e){return hi(e,t,n)}):[]},e.now2str=kF,e.now2strp=function(){if(!ls(t))throw new Error("invalid dayjs");return t().format("YYYYMMDDHHmmss")},e.nowDay2str=function(){if(!ls(t))throw new Error("invalid dayjs");return t().format("YYYY-MM-DD")},e.nowms2str=function(){if(!ls(t))throw new Error("invalid dayjs");return t().format("YYYY-MM-DDTHH:mm:ss.SSSZ")},e.nowms2strp=function(){if(!ls(t))throw new Error("invalid dayjs");return t().format("YYYYMMDDHHmmssSSS")},e.o2j=sr,e.obj2b64=function(e){let t="";try{t=bS(sr(e))}catch(e){t=""}return t},e.obj2pb64=function(e,t){return void 0===e?"":Ee(t)?IS(sr({data:e}),t,!0):""},e.obj2str=function(e,t="Uint8Array"){if(Cn(e))return"";Be(t)?t=[t]:we(t)||(t=["Uint8Array"]);let n="";try{n=JSON.stringify(e,function(e,n){return t.indexOf("Uint8Array")>=0&&(n=SS.u8arr2b64(n)),t.indexOf("Uint16Array")>=0&&(n=SS.u16arr2b64(n)),n})}catch(e){n=""}return n},e.obj2stru8arr=DS,e.obj2u8arr=function(e){let t=[],n=[];if(!Dn(e)&&!Ce(e))return null;let r=[],o=[];function i(e){r.push(ok(e)),o.push(e)}try{let s=DS(e);i(NS(s.results)),mn(s.binarys,e=>{i(e)});let a=r,c=NS(JSON.stringify(a)),l=new Uint8Array(8);aa(ok(c),l),t.push(l),t.push(c),mn(o,e=>{t.push(e)}),mn(t,e=>{n=function(e,t){let n=ok(e),r=ok(t),o=new Uint8Array(n+r);return o.set(new Uint8Array(e),0),o.set(new Uint8Array(t),n),o}(n,e)})}catch(e){return null}return n},e.objSortBy=QS,e.objSortByKeys=function(e,t){if(!Ce(e))return{};if(!Dn(t))return{};let n={};return mn(t,(e,t)=>{n[e]=t}),QS(e,(e,t)=>Ie(n,t,0))},e.oo=function(e){if(void 0!==e)return Os(sr(e))},e.openLink=function(e){if(!Ee(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){return Ee(e)&&Ee(t)?Os(Xr(e,t,!0)).data:""},e.pm2resolve=CA,e.pmChain=function(e,t=null){if(!we(e)){let e=Gs();return e.reject("pms is not an array"),e}return e.reduce((e,t)=>e.then(t),Promise.resolve(t))},e.pmConvertResolve=xA,e.pmDebounce=function(e=300){return new function(e){let t=[],n=null,r=null,o="wait";return $o(e)||(e=300),e=jo(e),function(i,...s){ls(i)?((null===r||"wait"===o)&&(r=Date.now()),t.push({func:i,input:s,output:null}),null===n&&"wait"===o&&(n=setInterval(()=>{if(null===r)throw new Error("invalid tLast");if("wait"!==o)return;if("wait"===o&&0===t.length)return clearInterval(n),n=null,void(r=null);let i=Date.now();if(i-r>e){o="doing",r=i;let e=t.pop();t=[];let n=e.func(...e.input);ca(n)?n.then(t=>{e.output=t}).catch(t=>{e.output={err:t}}).finally(()=>{o="wait",r=Date.now()}):(e.output=n,o="wait")}"wait"===o&&0===t.length&&(clearInterval(n),n=null,r=null)},20))):console.log("func is not a function")}}(e)},e.pmHook=MS,e.pmHookReject=function(e,t=()=>{}){return ls(e)?(ls(t)||(t=()=>{}),MS(e,e=>{if("afterCatch"===e.mode)return t(e.data)})):null},e.pmIni=function(){return Promise.resolve()},e.pmInvResolve=function(e,t={}){if(!ca(e))throw new Error("pm is not a promise");let n=Ie(t,"thenExtractData");ir(n)||(n=!1);let r=Gs();return e.then(e=>{n&&(e=Ie(e,"data"));let t=Ie(e,"state",""),o=Ie(e,"msg",{});"success"===t?r.resolve(o):"cancelled"===t?r.reject({reason:"cancelled"}):r.reject(o)}).catch(e=>{r.reject(e)}),r},e.pmKeyMutex=function(){return new function(){let e=new Map,t=new Map;return async(n,r)=>{let o=(e.get(n)||Promise.resolve()).then(async()=>await r(),async()=>await r());e.set(n,o.catch(()=>{})),t.set(n,(t.get(n)||0)+1);try{return await o}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={},o=!1,i=Gs();if(!we(e)&&!xe(e))return i.reject("rs is not an array or object"),i;if(0===rr(e))return i.resolve([]),i;let s=!1;if(xe(e)){s=!0;let t=[];mn(e,(e,n)=>{t.push({k:n,v:e})}),e=t}let a=EA(n);return a.on("message",function(n){if(o)return;let c,l=a.get();if(ls(t)){let e=l.key,n=l.value;if(s&&(e=l.value.k,n=l.value.v),c=t(n,e),!ca(c))throw new Error("return of fun is not a promise")}else c=l.value;c.then(e=>{r[l.key]=e}).catch(e=>{o=!0,a.clear(),i.reject(e)}).finally(()=>{a.cb(),rr(r)===rr(e)&&i.resolve(nF(r))})}),mn(e,(e,t)=>{a.push({key:t,value:e})}),i},e.pmQueue=FA,e.pmSeries=Kc,e.pmThrottle=function(){let e=Ho(),t=[],n=null,r=!1;return function(o,...i){let s=Gs();if(!ls(o))return void console.log("func is not a function");let a=Qu();return t.push({id:a,func:o,input:i}),null===n&&(n=setInterval(async()=>{if(r)return;r=!0;let o=t.pop();for(let n=0;n<t.length;n++){let r=t[n].id,o={state:"cancelled"};e.emit(r,o)}if(t=[],o){let t,n=o.id;t=ls(o.func)?await CA(o.func)(...o.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(a,e=>{"success"===e.state?s.resolve(e.msg):"cancelled"===e.state?s.reject({reason:"cancelled"}):s.reject(e.msg)}),s}},e.pmTimeout=async function(e,t,n={}){if(!ca(e))throw new Error("invalid pm");if(!di(t))throw new Error(`invalid ms[${t}]`);let r=Ie(n,"label",null);Ee(r)||(r="");let o,i=`timeout[${t}ms]`;Ee(r)&&(i=`${r} ${i}`);let s=Gs();return o=setTimeout(()=>{let e=new Error(i);e.code="TIMEOUT",e.timeout=t,s.reject(e)},t),Promise.race([e,s]).finally(()=>clearTimeout(o))},e.preciseNum=zE,e.pseudoRandom=US,e.pseudoRandomIntRange=function(e=0,t=100,n="start1"){if(xr(e)||(e=0),e=jo(e),xr(t)||(t=100),e>(t=jo(t)))throw new Error(`vstart[${e}] > vend[${t}]`);let r=US(n)*(t-e+1)+e;return r=Math.floor(r),r},e.pseudoRandomIntsNdpRange=function(e=0,t=100,n,r="start1"){if(xr(e)||(e=0),e=jo(e),xr(t)||(t=100),t=jo(t),$o(n)||(n=1),n=jo(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let o=US(r,!0),i=[],s=t-e;for(let n=0;n<=s;n++){let n=o()*(t-e+1)+e;n=Math.floor(n),i.push(n)}let a=Hs(i,{returnIndex:!0});return a=Yi(a,n),a},e.pseudoRandomIntsRange=function(e=0,t=100,n,r="start1"){if(xr(e)||(e=0),e=jo(e),xr(t)||(t=100),t=jo(t),$o(n)||(n=1),n=jo(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let o=US(r,!0),i=[];for(let r=1;r<=n;r++){let n=o()*(t-e+1)+e;n=Math.floor(n),i.push(n)}return i},e.pseudoRandomRange=function(e=0,t=1,n="start1"){if(Se(e)||(e=0),e=wr(e),Se(t)||(t=1),e>(t=wr(t)))throw new Error(`vstart[${e}] > vend[${t}]`);return US(n)*(t-e)+e},e.pseudoRandomsRange=function(e=0,t=1,n=1,r="start1"){if(Se(e)||(e=0),e=wr(e),Se(t)||(t=1),t=wr(t),$o(n)||(n=1),n=jo(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let o=US(r,!0),i=[];for(let r=1;r<=n;r++){let n=o()*(t-e)+e;i.push(n)}return i},e.queue=EA,e.random=HS,e.randomIntRange=function(e=0,t=100){if(xr(e)||(e=0),e=jo(e),xr(t)||(t=100),e>(t=jo(t)))throw new Error(`vstart[${e}] > vend[${t}]`);let n=HS()*(t-e+1)+e;return n=Math.floor(n),n},e.randomIntsNdpRange=function(e=0,t=100,n){if(xr(e)||(e=0),e=jo(e),xr(t)||(t=100),t=jo(t),$o(n)||(n=1),n=jo(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);return function(e,t,n){return t=(n?dn(e,t,n):void 0===t)?1:Ir(t),(v(e)?$S:YS)(e,t)}(_o(e,t+1),n)},e.randomIntsRange=function(e=0,t=100,n){if(xr(e)||(e=0),e=jo(e),xr(t)||(t=100),t=jo(t),$o(n)||(n=1),n=jo(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let r=[];for(let o=1;o<=n;o++){let n=HS()*(t-e+1)+e;n=Math.floor(n),r.push(n)}return r},e.randomRange=function(e=0,t=1){if(Se(e)||(e=0),e=wr(e),Se(t)||(t=1),e>(t=wr(t)))throw new Error(`vstart[${e}] > vend[${t}]`);return HS()*(t-e)+e},e.randomsRange=function(e=0,t=1,n=1){if(Se(e)||(e=0),e=wr(e),Se(t)||(t=1),t=wr(t),$o(n)||(n=1),n=jo(n),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let r=[];for(let o=1;o<=n;o++){let n=HS()*(t-e)+e;r.push(n)}return r},e.rang=function(e,t,n=2){if(!Se(e))return[];if(e=wr(e),!Se(t))return[];if(t=wr(t),$o(n)||(n=2),(n=jo(n))<=0)throw new Error(`num[${n}] <= 0`);let r=(t-e)/n,o=e,i=[];for(let e=0;e<=n;e++)i.push(o),o+=r;return i},e.rep=function(e,t){return Ee(e)&&di(t)?VS(e,t):""},e.repObj=function(e,t){return Sn(e)?[]:$o(t)?jk(t,ti(e)):[]},e.replace=ol,e.replaceObj=function(e,t){return Ee(e)&&Ce(t)?(mn(t,function(e,t){e=xe(e)||we(e)?JSON.stringify(e):Ds(e)}),mn(t,function(t,n){e=ol(e,n,t)}),e):""},e.replacePlus=function(e,t,n,r=null,o){if(!Ee(e)||!Ee(t)||!Ee(n))return"";if(!Be(o))return"";let i="[\\s\\S]*";Ee(r)&&(i="[^"+r+"]*");let s=new RegExp(t+i+n,"g");return e.replace(s,o)},e.round=PE,e.secd=function(e){return Se(e)?1/Cu(e=wr(e)):null},e.sep=Ki,e.sepInt=function(e,t,n=!0){if(!xr(e))return[];if(!di(t))return[];if(!ir(n))return[];let r=JS(e/t),o=e-r*t,i=[];for(let e=1;e<=t;e++){let t=r;e<=o&&(t=r+1),i.push(t)}return n&&(i=Bs(i)),i},e.setIntervalHp=function(e,t=1){let n=_c(),r=Vs(),o=e=>{n.setTimeout(e,1)},i=e=>{n.requestAnimationFrame(e)},s=null;s=r?i:o;let a=Gk(),c=!0,l=a(),u=()=>{if(!c)return;if(a()-l>=t){try{e()}catch(e){console.log(e)}l=a()}s(u)};return s(u),()=>{c=!1}},e.setTimeoutHp=function(e,t=1){let n=_c(),r=Vs(),o=e=>{n.setTimeout(e,1)},i=e=>{n.requestAnimationFrame(e)},s=null;s=r?i:o;let a=Gk(),c=!0,l=a(),u=()=>{if(!c)return;if(a()-l>=t){c=!1;try{e()}catch(e){console.log(e)}}s(u)};return s(u),null},e.sind=Fu,e.split=Xi,e.str2aes=IS,e.str2b64=bS,e.str2hint=TS,e.str2md5=function(e,t=!1){if(!Ee(e))return"";ir(t)||(t=!1);let n=WS(e),r="";return r=t?n.toString(Mr):n.toString(_r),r},e.str2obj=function(e,t="Uint8Array"){Be(t)?t=[t]:we(t)||(t=["Uint8Array"]);let n={};try{n=JSON.parse(e,function(e,n){return t.indexOf("Uint8Array")>=0&&(n=SS.b642u8arr(n)),t.indexOf("Uint16Array")>=0&&(n=SS.b642u16arr(n)),n})}catch(e){n={}}return n},e.str2sha=lD,e.str2sha512=function(e,t=!1){return lD(e,512,t)},e.str2u8arr=NS,e.strCompare=uD,e.strDiff=Gi,e.strDiffToHtml=function(e,t,n={}){if(!Be(e))return"";if(!Be(t))return"";if(""===e&&""===t)return"";let r=Ie(n,"useNormNewline");ir(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 o=Pf(),i=ji("file","file",e,t),s=o.html(i,{drawFileList:!1,matching:"none",diffStyle:"char",outputFormat:"line-by-line"}),a=Mi(s,"\n"),c="",l=!1;return mn(a,e=>{'<div class="d2h-code-line">'===_i(e)&&(l=!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;">')),l&&(c+=e+"\n"),l&&"</div>"===_i(e)&&(l=!1)}),s=c,s},e.strFindFuzz=function(e,t,n=!1){let r="";if(Ee(e)||Se(e))r=Ds(e);else{if(!Dn(e))return!!n&&0;r=gi(e,"")}if(""===t)return!n||100;if(Sn(t))return!!n&&0;if(Ys(r,t))return!n||100;let o=Ki(t," "),i=yn(o,function(e){return((e,t)=>{let n=new fN([e],{includeScore:!0}).search(t);n=Ie(n,0);let r=Ie(n,"score",1);return r=1-r,r*=100,r})(r,e)});if(n)return dN(i);{let e=80;return hn(i,function(t){return t>=e})}},e.strFindSimilar=function(e,t){let n="";if(Ee(e)||Se(e))n=Ds(e);else{if(!Dn(e))return{};n=gi(e,"")}return Se(t)&&(t=Ds(t)),Ee(t)&&(t=[t]),Dn(t)?function(e,t){let n=[],r=0;for(let o=0;o<t.length;o++){let i=t[o],s=uD(e,i);n.push({target:i,rating:s}),s>n[r].rating&&(r=o)}return{ratings:n,bestMatch:n[r],bestMatchIndex:r}}(n,t=yn(t,function(e){return Ds(e)})):{}},e.strTruncate=$E,e.strdelleft=ts,e.strdelright=Qs,e.strleft=Zi,e.strmid=il,e.strright=es,e.stru8arr2obj=hN,e.tand=Bu,e.time2day=function(e){return lg(e)?t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD"):""},e.time2hour=function(e){return lg(e)?t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH"):""},e.time2min=Vk,e.timeTZ2day=function(e){return hS(e)?(e=fS.delTZ(e),t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")):""},e.timeTZ2expire=function(e,t=null){return hS(e)?pN(e=mN(e),t=mN(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timeTZ2hour=function(e){return hS(e)?(e=fS.delTZ(e),t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")):""},e.timeTZ2min=function(e){return hS(e)?(e=fS.delTZ(e),t(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")):""},e.timeTZ2past=function(e,t=null){return hS(e)?gN(e=AN(e),t=AN(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timems2day=function(e){return lS(e)?t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DD"):""},e.timems2hour=function(e){return lS(e)?t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH"):""},e.timems2min=function(e){return lS(e)?t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm"):""},e.timems2time=function(e){return lS(e)?t(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm:ss"):""},e.timemsTZ2day=function(e){return dS(e)?(e=fS.delTZ(e),t(e).format("YYYY-MM-DD")):""},e.timemsTZ2expire=pN,e.timemsTZ2hour=function(e){return dS(e)?(e=fS.delTZ(e),t(e).format("YYYY-MM-DDTHH")):""},e.timemsTZ2min=function(e){return dS(e)?(e=fS.delTZ(e),t(e).format("YYYY-MM-DDTHH:mm")):""},e.timemsTZ2past=gN,e.timemsTZ2time=function(e){return dS(e)?(e=fS.delTZ(e),t(e).format("YYYY-MM-DDTHH:mm:ss")):""},e.treeObj=bu,e.treeToFilepath=function(e,t={}){if(!Dn(e))return[];let n=Ie(t,"delimiter");Ee(n)||(n="/");let r=Ie(t,"bindRoot");Ee(r)||(r="root");let o=[];return bu(e,(e,t,i)=>{let s=Ie(e,"_type","");if("folder"!==s&&"file"!==s)return e;let a=yn(Ie(e,"pathInfors",[]),"name"),c=Ie(a,0,"")===r;if(1===rr(a)&&c)return e;c&&(a=Ns(a));let l={type:s,path:n+gi(a,n)};return o.push(l),e},{force:!0}),o},e.trim=Ms,e.u16arr2b64=ES,e.u16arr2u8arr=BS,e.u8arr2ab=function(e){return zs(e)?e.buffer:new ArrayBuffer},e.u8arr2b64=CS,e.u8arr2blob=HE,e.u8arr2bs=function(e){if(!zs(e))return"";let t=e.length,n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n},e.u8arr2obj=function(e){let t=null;if(!zs(e))return null;try{let n=8,r=e.slice(0,n),o=e.slice(n,ok(e)),i=ia(r),s=o.slice(0,i),a=o.slice(i,ok(o)),c=yN(s),l=function(e,t){let n=0,r=0,o=[];return mn(t,t=>{r=n+t;let i=e.slice(n,r);n=r,o.push(i)}),o}(a,JSON.parse(c));t=hN({results:yN(l.shift()),binarys:l})}catch(e){}return t},e.u8arr2str=yN,e.u8arr2u16arr=js,e.urlParse=function(e){if(!Ee(e))return{};if(!Ee(e=Ie(e=Mi(e,"?"),"[1]")))return{};let t=Mi(e,"&");return t=yn(t,function(e){return Mi(e,"=")}),t=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];eo(r,o[0],o[1])}return r}(t),t},e.verifyValue=function(e,t,n={}){let r=!1,o="";if("isstr"===t)Be(e)||(r=!0,o="需要為字串",e="");else if("isnum"===t)Se(e)||(r=!0,o="需要為數字",e=0);else if("isp0num"===t)nS(e)||(r=!0,o="需要為含0的正浮點數",e=0);else if("isn0num"===t)tS(e)||(r=!0,o="需要為含0的負浮點數",e=0);else if("isint"===t)xr(e)||(r=!0,o="需要為整數",e=0);else if("ispint"===t)$o(e)||(r=!0,o="需要為不含0正整數",e=0);else if("isp0int"===t)di(e)||(r=!0,o="需要為含0正整數",e=0);else if("isnint"===t)BA(e)||(r=!0,o="需要為不含0負整數",e=0);else if("isn0int"===t)eS(e)||(r=!0,o="需要為含0負整數",e=0);else if("custom"===t){let t=Ie(n,"funCustom");if(!ls(t))throw new Error("invalid opt.funCustom when type='custom'");let i=t(e);if(!ir(i.err))throw new Error("invalid return.err for type='custom'");if(i.err&&!Ee(i.errmsg))throw new Error("invalid return.errmsg when return.err=true for type='custom'");if(!Se(i.value)&!Be(i.value))throw new Error("invalid return.value for type='custom'");r=i.err,o=i.errmsg,e=i.value}else if(ls(t)){e=t(e)}else"any"===t?Se(e)||Be(e)||(r=!0,o="需要為字串或數字",e=""):(r=!0,o="需要指定驗證類型",e=null);return{value:e,err:r,errmsg:o}},e.waitFun=la});
24
24
  //# sourceMappingURL=wsemi.umd.js.map